(function(e){function t(t){for(var s,r,o=t[0],l=t[1],c=t[2],u=0,p=[];u{try{let e={isDevelopmentMode:!1,identifyRequest:{userIdentities:c()}};s["a"].init("eu1-95bf369bfffe334ab80282ed8c65ab23",e),s["a"].ready(()=>{i["a"].state.isLoggedIn&&d()})}catch(e){console.error("mParticle init failed"),console.error(e)}},o=e=>{const t=["Error Message Appeared","Credit Transfer Started","Credit Transfer Completed","Offer Appeared","Offer Accepted","Offer Rejected","Offer Postponed","Service Activation Started","Service Activation Completed","Service Activation Failed"],a=["Transaction Started","Transaction Cancelled","Transaction Completed","Transaction Failed"],s=["Viewed Home","Viewed Offers","Viewed Quickpay","Viewed Profile","Viewed Notifications"];return a.includes(e)?"transaction":t.includes(e)?"other":s.includes(e)?"screen_view":"navigation"},l=e=>{var t,a,s,r,o,l,c,d,u;const p="ar"===n["a"].locale?"Arabic":"English",m=null!==(t=null===i["a"]||void 0===i["a"]||null===(a=i["a"].state)||void 0===a||null===(s=a[i["b"].AUTOPAY])||void 0===s||null===(r=s.data)||void 0===r?void 0:r.active)&&void 0!==t&&t;e.setUserAttribute("FirstName",null===i["a"]||void 0===i["a"]||null===(o=i["a"].getters)||void 0===o?void 0:o.getFirstName),e.setUserAttribute("LastName",null===i["a"]||void 0===i["a"]||null===(l=i["a"].getters)||void 0===l?void 0:l.getLastName),e.setUserAttribute("Country","Kuwait"),e.setUserAttribute("ServiceType",null===i["a"]||void 0===i["a"]||null===(c=i["a"].getters)||void 0===c?void 0:c.getBasicServiceType),e.setUserAttribute("ContractCategoryCode",null===i["a"]||void 0===i["a"]||null===(d=i["a"].getters)||void 0===d?void 0:d.getCustomerCategory),e.setUserAttribute("BillingType",null===i["a"]||void 0===i["a"]||null===(u=i["a"].getters)||void 0===u?void 0:u.getBillingType),e.setUserAttribute("Language",p),e.setUserAttribute("IsAutoPayActive",m)},c=()=>{var e,t;const a=i["a"].state.msisdn?"+965"+i["a"].state.msisdn:"";return{customerid:i["a"].state.isLoggedIn?`${i["a"].state.contractNumber}-${i["a"].state.msisdn}`:"",other:a,other2:null!==(e=i["a"].getters.getContractNumber)&&void 0!==e?e:"",other3:"",email:null!==(t=i["a"].getters.getEmail)&&void 0!==t?t:""}},d=()=>{try{const e=e=>{if(e.getUser()){const e=s["a"].Identity.getCurrentUser();l(e)}};s["a"].Identity.login({userIdentities:c()},e)}catch(e){console.error("mParticle login failed"),console.error(e)}},u=()=>{try{s["a"].Identity.logout()}catch(e){console.error("mParticle logout failed"),console.error(e)}},p={unknown:0,navigation:1,location:2,search:3,transaction:4,userContent:5,userPreference:6,social:7,other:8,media:9},m=e=>{const t=o(e.event_name);null!==e&&void 0!==e&&e.custom_attributes?e.custom_attributes.channel="MyZain":e.custom_attributes={channel:"MyZain"};try{if("screen_view"===t)s["a"].logPageView(e.event_name,e.custom_attributes);else{const a=p[t];s["a"].logEvent(e.event_name,a,e.custom_attributes)}}catch(a){console.log("error occurred for mParticle addEvent")}};t["default"]={initmParticle:r,addEvent:m,logout:u,login:d}},1125:function(e,t,a){"use strict";a("25ae")},1274:function(e,t,a){e.exports=a.p+"img/youtube.8f58f5bf.svg"},"128e":function(e,t,a){},"136b":function(e,t,a){e.exports=a.p+"img/afghanistan.cab08179.svg"},"14d0":function(e,t,a){e.exports=a.p+"img/card-popup.0e753d84.svg"},1541:function(e,t,a){e.exports=a.p+"img/offers.34e605fe.svg"},"17de":function(e,t,a){"use strict";a("78e4")},"18de":function(e,t,a){e.exports=a.p+"img/usage.94bf0338.svg"},1907:function(e,t,a){e.exports=a.p+"img/36-months.62fee06b.svg"},"1ab6":function(e,t,a){"use strict";var s=a("d722");t["a"]=async(e,t,a=null,i)=>{let n={page:null!==a&&void 0!==a?a:location.pathname,m:i};await e.dispatch("getLoginUrl");let r=encodeURI(JSON.stringify(n)),o=e.state.loginUrl+"&response_mode=query&prompt=none&state="+r;if(e.state.isLoggingIn=!0,"login_required"!==e.state.keycloakResult)try{var l;const a=await s["a"].loggedInStatus();"keycloak"===(null===a||void 0===a||null===(l=a.data)||void 0===l?void 0:l.loginType)||t?await e.dispatch("resumeSession",a.data):location.href=o}catch(d){var c;401===(null===d||void 0===d||null===(c=d.response)||void 0===c?void 0:c.status)&&(t?await e.dispatch("simLogin"):location.href=o)}else"login_required"===e.state.keycloakResult&&await e.dispatch("simLogin");e.state.isLoggingIn=!1,e.state.didTryToLogin=!0}},"1b17":function(e,t,a){"use strict";a("9cb2")},"1b9d":function(e,t,a){e.exports=a.p+"img/slide-arrow-up.a35b5d2e.svg"},"1bc7":function(e,t,a){e.exports=a.p+"img/worldwide.1896969d.svg"},"1d17":function(e,t,a){e.exports=a.p+"img/youtube.a5de09da.svg"},"1e0e":function(e,t,a){e.exports=a.p+"img/collect_from_store.7d7132bf.svg"},"1eaa":function(e,t,a){e.exports=a.p+"img/shahid.7cd7ff13.png"},"1ede":function(e,t,a){e.exports=a.p+"img/SMS-Myplan.0069f4bb.svg"},"1ee8":function(e,t,a){e.exports=a.p+"img/bills.30a24852.svg"},"201a":function(e,t,a){e.exports=a.p+"img/bahrain.027a096c.svg"},"207e":function(e,t,a){e.exports=a.p+"img/my-dashboard.5a8f1e78.svg"},"20f2":function(e,t,a){e.exports=a.p+"img/cross.696cbfd3.svg"},2187:function(e,t,a){e.exports=a.p+"img/KNETLogo.1f3f4092.svg"},"230f":function(e,t,a){e.exports=a.p+"img/extra-icon.dc867044.svg"},"23fd":function(e,t,a){e.exports=a.p+"img/movie-icon.05dc242e.svg"},2409:function(e,t,a){},2413:function(e,t,a){e.exports=a.p+"img/tool-tip-icon.0cb62171.svg"},2480:function(e,t,a){e.exports=a.p+"img/osn.0a7603c1.svg"},"24db":function(e,t,a){e.exports=a.p+"img/Footballfantasy.1fb85055.svg"},"24eb":function(e,t,a){e.exports=a.p+"img/12-months.1cbd9f8c.svg"},"24f1":function(e,t,a){e.exports=a.p+"img/phone-call.b8a007e4.svg"},"25ae":function(e,t,a){},"25de":function(e,t,a){e.exports=a.p+"img/visapng.1e377220.png"},"26d5":function(e){e.exports=JSON.parse('{"4DigitsOTP":"4 Digits OTP","5G":"5G","5GInternetPlans":"Wiyana Internet Plans","AboutZain":"About Zain","AccessWillBeGrantedFor72HoursOnly":"Access will be granted for 72 hours only","Accessories":"Accessories","AccountNumber":"Account Number","Prefix":"Prefix","ActivationCode":"Activation Code","Add":"Add","AddADevice":"Add A Device","AddAnother":"Add Another","AddLine":"Add Line","AddLines":"Add More Lines","AddNewAddress":"Add New Address","AddNewLine":"Add New Line","AddNickname":"Add Nickname","Addon":"Add-on","AddressCreated":"Address Created","AddressDeleted":"Address Deleted","AddressUpdated":"Address Updated","All":"All","Amount":"Amount","AmountMustBeBetween":"Amount must be between {from} and {to} KD","AnErrorOccurred":"An error occurred","AnotherDevice":"Another Device","ApplyFilters":"Apply Filters","April":"April","AreYouSureDeleteLine":"Are you sure you want to delete {msisdn}?","Aug":"Aug","AutoRechargeEnabledError":"Error while activating Auto Recharge","AutoRechargeEnabledSuccess":"Auto Recharge is enabled successfully","AutoRechargeSummary":"Autopay Summary","AutoRechargeUpdatedError":"Error while updating Auto Recharge","AutoRechargeUpdatedSuccess":"Your Auto Recharge info was updated successfully","AutoRenew":"Auto Renew","AutoRenewal":"Auto Renewal","AutoRenewDisableResultFailure":"Error while enabling Auto Renew","AutoRenewDisableResultSuccess":"Auto Renew has been disabled","AutoRenewEnableResultFailure":"Error while enabling auto renew","AutoRenewEnableResultSuccess":"Auto Renew has been enabled for your line","AutoRenewTurnOnMsg":"Would you like to turn on auto renewal for your current plan?","Autopay":"Autopay","AutopayEnabledError":"Error while activating Autopay","AutopayEnabledSuccess":"Autopay is enabled successfully","AutopaySummary":"Autopay Summary","AutopayUpdatedError":"Error while updating Autopay","AutopayUpdatedSuccess":"Your Autopay info was updated successfully","AutorenewIsActive":"Auto Renew is active","AutorenewIsActiveOn":"Auto Renew is active on","AutorenewIsNotActive":"Auto Renew is not active","BackToDashboard":"Back to home","BackToRechargeOptions":"Back to recharge options","Balance":"Balance","Bank":"Bank","BillGenerated":"Your bill will be generated","Bills":"Bills","Brands":"Brands","BuildYourPlan":"Customize your plan","Bundles":"Plans","Business":"Business","BuyEeZeeSIMCard":"Buy eeZee SIM Card","BuyEezeeSimCard":"Buy eeZee Sim Card","BuyMore":"Buy More {service}","BuyNow":"Buy Now","BuyPlan":"Buy Plan","CONTRACT_NUMBER":"Contract Number","CallsUsage":"Calls Usage","Cancel":"Cancel","CardDeleted":"Card Deleted","CardNumber":"Card Number","ChangePassword":"Change Password","Charges":"Charges","ChatWithZBot":"Chat With ZBot","CheckOutOffers":"Explore our offers","ChoosePlan":"Choose a plan","ClickHere":"Click Here","ClickingAgreeTerms":"By clicking on the button, you agree to our","ClickingAgreeTermsGhost":"By clicking (Place Order), you agree to our","CodeSentTo":"Code sent to","Confirm":"Confirm","ConfirmDeleteAddress":"Confirm Delete Address","ConfirmRemoveCard":"Confirm Remove card?","ConnectWithUs":"Contact Us","Consumer":"Consumer","ContinueToPayment":"Continue to Payment","ContractNumber":"Contract Number","Copied":"Copied","Copy":"Copy","Copyright © 2021 Zain All Rights Reserved":"Copyright © 2022 Zain. All Rights Reserved","CreditCard":"Credit Card","CreditTransfer":"Credit Transfer","CreditTransferIncorrectNumberError":"The number you have entered is invalid.","CreditTransferPostPaidNumberError":"The number you have entered is a postpaid number. Please enter a prepaid number.","CreditTransferPrePaidNumberError":"The number you have entered is a prepaid number. Please enter a postpaid number.","CreditTransferSuccess":"Your credit has been successfully transferred to {msisdn}","CurrentlyActiveFor":"Autopay is currently active for your line","CustomisePlan":"Customize Your Plan","DATA":"Internet","Data":"Data","DataUsageExceedsSub":"Your Internet usage seems to exceed your current subscription!","Days":"Day | Days","days":"days","DebitCard":"Debit Card","Dec":"Dec","DeleteAddress":"Delete Address","DeleteInboxMessage":"Are you sure you want to delete this message?","Device":"Device","DeviceTradeIn":"Device Trade In","Devices":"Devices","DisableAutoRenew":"Disable Auto Renew","Dismiss":"Dismiss","DontHaveFuturePlan":"It seems that you don\'t have a future plan set!","DontWantToMissPayments":"Do you want to activate Autopay?","DueBy":"Due By","DueFees":"Due Fees","E-Cards":"E-Cards","Edit":"Edit","EditFuturePlan":"Edit Future Plan","EditName":"Edit Name","EditRecharges":"Edit recharge","EditYourFuturePlan":"Edit Your Future Plan","EeZeeFlexi":"eeZee Flexi","EeZeeReadyMadePlans":"eeZee Ready Made Plans","EezeeFlexi":"eeZee Flexi","EezeeRecharge":"eeZee Recharge","Email":"Email","Enable":"Enable","EnableAutoRenew":"Enable Auto Renew","EndingIn":"Ending in","EndsOn":"Ends on","EnterAmount":"Enter Amount","EnterCode":"Enter Code","EnterContractNumber":"Enter Contract Number","EnterEmailAddress":"Enter Email Address","EnterLimit":"Enter Limit","EnterMobileNumber":"Enter Mobile Number","EnterMobileNumberForSMS":"Mobile Number for SMS Receipt","EnterNumber99XX":"Enter Number: 99XXXXXX","EnterOTP":"Enter the OTP to verify and confirm your transaction.","EnterOtp":"Enter OTP","EnterPassword":"Enter Password","EnterNickname":"Enter Nickname","EnterLineNumber":"Enter Line Number","ErrorSendingCode":"Error while sending code","ErrorUpdatingCode":"Error while updating password","Expires":"Expires","ExpiresOn":"Expires on","ExpiryDate":"Expiry Date","ExpiryMonth":"Expiry Month","ExpiryYear":"Expiry Year","ExtendValidity":"Extend Validity","Extra":"Extra","ExtraCharges":"Extras Charges","Extras":"Extras","FAQ":"FAQ","Feb":"Feb","Filter":"Filter","FindUs":"Find Us","FirstName":"First Name","FlippedLanguage":"العربية","GB":"GB","Gaming":"Gaming","GeneralError":"General Error","Health":"Health","Hello":"Hello","Help?":"Help?","HideCallsHistory":"Hide calls history","HidePastBills":"Hide Past Bills","HideRechargeHistory":"Hide Recharge history","HideSMSHistory":"Hide SMS history","HideSharedData":"Hide Internet Sharing Lines","Home":"Home","IAmLookingFor":"I Am Looking For","INTERNATIONALMINUTES":"International Minutes","IWouldLikeToPayFor":"I would like to pay for","IWouldLikeToRechargeFor":"I would like to recharge for","IncomingInternationalCalls":"Incoming International Calls","IncomingInternationalSMS":"Incoming International SMS","IncomingLocalCalls":"Incoming Local Calls","IncomingLocalSMS":"Incoming Local SMS","IncomingRoamingCalls":"Incoming Roaming Calls","IncomingRoamingSMS":"Incoming Roaming SMS","InsufficientBalance":"Remaining balance should be at least 1KD to complete the transaction.","International":"International","Internet":"Internet","InternetCapacity":"data","InternetDevices":"Internet Devices","InternetSharingLines":"Internet Sharing Line |{count} Internet Sharing Lines","InternetUsage":"Internet Usage","IsEnabledFor":"is enabled for","Jan":"Jan","July":"July","June":"June","KD":"KD","Kuwait":"Kuwait","LOCALMINUTES":"Local Minutes","Laptops&Tablets":"Laptops & Tablets","LaptopsandTablets":"Laptops and Tablets","LastName":"Last Name","Left":"Left","Less":"Less","LimitUsage":"Limit Usage","Line":"Line | Lines","Lines":"Lines","Local":"Local","LocalMinutes":"Local Minutes","Logout":"Logout","MB":"MB","ManagePlan":"Manage Plan","ManageUsageLimit":"Manage Usage Limit","March":"March","MaximumAllowedLimitIs":"Maximum allowed limit is","May":"May","MaybeLater":"Maybe Later","MemberSince":"Member since","Mins":"Mins","Minute":"Minute","Minutes":"Minutes","minutes":"minutes","MobileInsurance":"Mobile Insurance","MobileNumber":"Mobile Number","Month":"Month","month":"month","Monthly":"Monthly","MonthlyCharges":"Monthly Charges","MonthlyInternet":"Monthly Internet","MonthlyLimit":"Monthly Limit","MonthlySMS":"Monthly SMS","MonthlySubscription":"Monthly Subscription","Months":"Months","months":"months","MonthWithPluralization":"Month | Months","More":"More","MoreLines":"More Lines","MustBeZain":"Must be a Zain number","MyBill":"My Bill","MyCommitments":"My Commitments","MyCurrentPlan":"My Current Plan","MyFuturePlan":"My Future Plan","MyInbox":"Notifications","MyLines":"My Lines","MyNumbers":"My Numbers","MyPastBills":"My Past Bills","MyPlan":"My Plan","MyProfile":"My Profile","MyRechargeHistory":"Recharge History","MySavedAddresses":"My Saved Addresses","MySavedCards":"My Saved Cards","MyUsage":"My Usage","MyZain":"My Zain","NOTIFICATION":"Notifications","NameOnCard":"Name on card","Need":"Need","NextDays":"Tomorrow! | In the next {count} days!","Nickname":"Nickname","NoAddresses":"No addresses found","NoAvailablePlanUpgrades":"Plan upgrades not available","NoHistoryFound":"No history found","NoLinesFound":"No lines found","NoMessages":"No messages","NoNotifications":"No notifications","NoOfCalls":"No. Of Calls","NoOffers":"No offers","NoSavedCards":"You have no cards saved. Complete a payment with a credit card to save it","NotInterested":"Not Interested","NotValidated":"Not Validated","Nov":"Nov","Now":"Now","NumbersSelected":"Numbers Selected","OFFERS":"Offers","OK":"Confirm","ONNETMINUTES":"Zain to Zain Minutes","ORDERS":"Orders","OTPAttemptsError":"You have reached the maximum number of attempts. Please click on \\"Resend OTP\\".","OTPExpiredError":"The OTP is expired. Please click on \\"Resend OTP\\"","OTPSent":"An OTP has been sent to {msisdn}.","OTPWrongError":"Please enter the correct OTP","Oct":"Oct","Of":"of","Offers":"Offers","OffersForYou":"Offers For You","OrderHistory":"Order History","OtherAmount":"Other Amount","OtherNumber":"Other Number","OtherNumbers":"Add another number","OtherServices":"Other Services","OutOf":"out of","OutgoingInternationalCalls":"Outgoing International Calls","OutgoingInternationalSMS":"Outgoing International SMS","OutgoingLocalCalls":"Outgoing Local Calls","OutgoingLocalSMS":"Outgoing Local SMS","OutgoingRoamingCalls":"Outgoing Roaming Calls","OutgoingRoamingSMS":"Outgoing Roaming SMS","OverridePlan":"Override My Plan","PUKCode":"PUK Code","Paid":"Paid","Pay":"Pay","PayBill":"Pay Bill","PayByClickingOn":"By clicking on \'Pay Bill\'","PayTotal":"Total amount","Payment":"Payment","PaymentComplete":"Payment Complete","PaymentDetails":"Payment Details","PaymentMethod":"Payment Method","Personal":"Personal","PlanPricing":"Price","PlansForYou":"Plans For You","PleaseTryAfter5Minutes":"Please try after 5 minutes","PleaseVerifyOTPCallHistory":"Please verify by OTP to have access to your call history and details for your line","Postpaid":"Postpaid","PostpaidAutoPayActive":"Autopay","PostpaidAutoPayNotActive":"Autopay","PostpaidAutopay":"Autopay","PostpaidAutopayActivateMessage":"Once Autopay is activated, you will be charged monthly starting from the next bill","PostpaidDisableAutopay":"Disable Autopay","PostpaidDisableAutopayMessage":"Are you sure you want to disable Auto Pay for your line","PostpaidEnableAutopay":"Enable Autopay","PostpaidManageAutopay":"Manage Autopay","PreferredContactNumber":"Preferred Contact Number","PreferredLanguage":"Preferred Language","PreferredNumber":"Preferred Number","Prepaid":"Prepaid","PrepaidAutoPayActive":"Autopay is active","PrepaidAutoPayNotActive":"Autopay is not active","PrepaidAutopay":"Auto Recharge","PrepaidAutopayActivateMessage":"Once Autopay is activated, your line will be recharged with your preferred amount","PrepaidDisableAutopay":"Disable Autopay","PrepaidDisableAutopayMessage":"Are you sure you want to disable Auto Recharge for your line","PrepaidEnableAutopay":"Enable Auto Recharge","PrepaidManageAutopay":"Manage Autopay","Primary":"Primary","PrivacyPolicy":"Privacy Policy","ProceedToPay":"Pay now","ProceedToRecharge":"Recharge now","Profile":"Profile","QuickPay":"Quick Pay","ReadyMadePlans":"Ready Made Plans","Recharge":"Recharge","RechargeAmount":"Recharge Amount","RechargeByClickingOn":"By clicking on \'Recharge Now\'","RechargeNow":"Recharge now","RechargeVoucher":"Recharge card","RechargeWhen":"Recharge when credit reaches","Remove":"Remove","RemoveLine":"Remove Line","RenewYourPlan":"Renew Your Plan","RequestPUKCode":"Request PUK Code","ResendCode":"Resend Code","ResendOTP":"Resend OTP","Results":"Results","RetryPayment":"Retry Payment","RetypePassword":"Re-enter password","Roaming":"Roaming","SIMCard":"SIM Card","SIMcards":"SIM Cards","SMS":"SMS","SMSUsage":"SMS Usage","SOCIALMEDIA":"Unlimited Social Media","Save":"Save","SaveAddress":"Save Address","SaveAndSelectAddress":"Save And Select Address","SaveCard":"Save this card for a faster checkout experience","SaveChanges":"Save Changes","SearchExistingNumber":"Search Existing numbers","SelectNewNickname":"Select a new nickname for the line {msisdn}","SelectPaymentMethod":"Select Payment Method","Selected":"Selected","SelectedNumber":"Selected Number","SendOTP":"Send OTP","SendingActivationCode":"Sending activation code to your device...","SendingOTP":"Sending OTP","Sep":"Sep","SetFuturePlan":"Set Your Future Plan","SetUpAutoRecharge":"activate autopay","SetUsageLimit":"Set Usage Limit","Shop":"Shop","ShowPastBills":"View Past Bills","ShowRechargeHistory":"Show Recharge History","ShowSharedData":"View Internet Sharing Lines","SmartHome":"Smart Home","SmartHome&TVs":"Smart Home & TVs","SmartPhones":"Smartphones","SmartTV’s":"Smart TV’s","Smartphones":"Smartphones","StartingFrom":"Starting at","Submit":"Submit","Subscription":"Subscription","SubscriptionCharges":"Subscription Charges","Summary":"Summary","Support":"Support","TB":"TB","Terms&Conditions":"Terms & Conditions","RoamingTerms&Conditions":"Roaming Terms & Conditions","TermsAndConditions":"Terms & Conditions","ThankYou":"Thank You!","Total":"Total","TotalBill":"Total Bill","TrackYourOrder":"Track Your Order","TrackingNumber":"Tracking Number","TransactionDate":"Transaction Date","Transfer":"Transfer","TransferAmount":"Transfer Amount","TransferFrom":"Transfer From","TransferTo":"Transfer To","TerminatedMsisdn":"The number you have entered is terminated","Unlimited":"Unlimited","Update":"Update","UpdateFuturePlan":"Update Future Plan","UpdateYourPlan":"Update Your Plan","UpgradePlan":"Upgrade Plan","Usage":"Usage","UsageDetails":"Usage Details","UsageLimitExceedsAllowedMaximum":"Your usage limit exceeds the allowed maximum","Used":"Used","UserNewCard":"Use a new {cardType}","ValidUntil":"Valid Until","Validate":"Validate","Validity":"Validity","VerificationRequired":"Verification Required","Verify":"Verify","VerifyByOTP":"Verify By OTP","ViewAll":"View All","ViewBills":"View Bills","ViewCallsHistory":"View calls history","ViewSMSHistory":"View SMS history","WHATSAPP":"Unlimited WhatsApp","WantToKnowTheBestDeals":"Get to know the best deals","WantToTransferCredit":"Want to transfer credit?","Wearable&Headsets":"Wearable & Headsets","WearablesandHeadsets":"Wearables and Headsets","WhatAreYouLookingFor?":"What are you looking for?","WillBeEnabledFor":"will be enabled for","WithZainCreditTransfer":"With Zain Credit Transfer, you can transfer balance easily to another number","WiyanaSmartphonePlans":"Wiyana Mobile Plans","WouldYouLikeToAddThisPlan?":"Would you like to add this plan?","WouldYouLikeToThisService":"Would you like to {action} this service?","YOUTUBE":"Unlimited YouTube","YouAreRunningOutOf":"You\'re running out of {service}","YouHaveNoCommitments":"You have no commitments","YourFuturePlanIsSetAndWillBeActivatedFrom":"Your Future Plan is set and will be activated at","YourPUKCodeIs":"Your PUK code is","YourPlanIsExpiringSoon":"Your plan is expiring soon","YourRequestHasBeenSuccessfullySubmitted":"Your request has been submitted succesfully","ZAIN":"Zain","ZainPlus":"Zain Plus","creditAmountExceedsBalance":"The credit transfer amount exceeds your available balance","creditTransferEmptyTransferToError":"Please enter a number to transfer credit to","eCards":"eCards","password":"Password","AddressName":"Address Name","ContactNumber":"Contact Number","MobilePhoneNumber":"Mobile phone number","Governorate":"Governorate","Area":"Area","Block":"Block","Street":"Street","Building":"Building","UnitType":"Unit Type","Floor":"Floor","Directions":"Directions","Avenue":"Avenue","ChooseInternetMinutes":"Choose Internet & Minutes","YouSelected":"You selected","ChooseExtrasAddons":"Choose Extras & Addons","MinimumPlanPrice":"The minimum bundle price is KD {amount}","PlanDuration":"PLAN DURATION - {days} DAYS","ValidForXDays":"Valid for {x} Days","ConfirmFlexiPlan":"Confirm the activation of the selected bundle on your line ","FlexiNowOrFuture":"Would you like to activate the selected bundle NOW? Or set as your Future Bundle?","Yes":"Yes","ConfirmFlexiSwap":"You are about to change your existing bundle which will result in cancelling your current benefits along with any add-ons you might have purchased.\\n\\n Would you like to continue?","SetAsFuturePlan":"Set as Future Plan","SignInForTailored":"Please sign in to MyZain for a tailored experience","LogIn":"Log in","NoLinesInAccount":"Your account has no lines, please add lines to your account to access all features","AcceptToProceed":"please accept to view your bill","EnterCodeToProceed":"please accept to view your bill","GetAnotherCode":"Get another code","CVV":"CVV","NoUsageData":"You have no usage data","ChangeMyFlexiPlan":"Customize eeZee Flexi","CreateMyFlexiPlan":"Start eeZee Flexi","NoPlanSet":"It seems that you don\'t have a plan set!","CancelService":"Remove","BillPrivacyOn":"Bill Privacy is on","TurnOffBillPrivacy":"Turn off bill privacy","BillPrivacy":"Bill Privacy","BillPrivacyTurnOffInstructions":"An SMS will be sent to your mobile number {msisdn} with the steps to turn off Bill Privacy.","BillPrivacyExtraMessage":"Bill privacy hides your bill amount","SendSMS":"Send SMS","SMSSent":"SMS Sent","FlexiPlanActivationSuccess":"The bundle has been activated successfully. This bundle is valid for {days} days.","RequestError":"Sorry. An error occurred while processing your request. Please try again later. Thank you.","NotEnoughBalance":"You have no sufficient balance to activate this service. Please recharge and try again.","ChooseThisPlan":"Choose Plan","House":"House","Apartment":"Apartment","Office":"Office","Search":"Search","Special":"Special","PackagePrice":"Package price","AddExtras":"Add Extras","NoBalance":"You have no sufficient balance to activate this bundle. Please recharge and try again.","YesPlease":"Yes Please","NoThanks":"No Thanks","MainPlanPrice":"Main Plan Price","Close":"Close","ShopOrExistingLine":"Would you like to buy a new line or link an existing one?","BuyNewLine":"Buy New Line","MonthsFree":"{months} Months Free","GetPlanForXMonths":"Get this plan for {months} month | Get this plan for {months} months","YouSaveXMonthly":"You save {price} monthly","CommitMorePayLess":"Get more and pay less","SelectPlanDuration":"Select your plan duration","PayFullPrice":"You pay full price","Off":"OFF","HOME":"Home","You are not eligible to purchase this plan. Call 107 to know about our latest offers":"You are not eligible to purchase this plan. Call 107 to know about our latest offers","PlainPlanDuration":"Plan Duration","fills/day":" fills/day","AddExistingLine":"Add Existing Line","RechargeByVoucher":"Recharge by voucher","RechargeCode":"Recharge Code","RechargedSuccessfully":"Recharged Successfully","RechargeFailed":"Recharge is not successful, please check the code and try again","CurrentPlan":"Current Plan","SelectAnOption":"Select an option","ClaimYourOffer":"Claim Your Offer","Hours":"Hour | Hours","Remaining":"Remaining","HurryUp!":"Hurry Up!","ExtraInternetCharges":"Extra Internet Charges","ExtraCapacityCharges":"Extra Internet Charges","ExtraMinutesCharges":"Extra Minutes Charges","ExtraSMSCharges":"Extra SMS Charges","NumberOfRecharges":"No. of Recharges","Paypal":"Paypal","GhostCheckoutDeliveryTitle":"Please provide your delivery address","GhostCheckoutDeliverySubtitle":"Select an existing address or create a new one","GhostCheckoutDeliveryType":"Select the delivery type","GhostCheckoutDeliveryTypeExpress":"Express Delivery","GhostCheckoutDeliveryTypeExpressDescription":"At your door step in the next three hours","GhostCheckoutDeliveryTypeSameDay":"Same Day Delivery","GhostCheckoutDeliveryTypeSameDayDescription":"If ordered before 3 PM same day","GhostCheckoutDeliveryTypeStandard":"Standard Delivery","GhostCheckoutDeliveryTypeStandardDescription":"Select the preferred date and time slot","GhostCheckoutDeliveryOrderSummary":"Order Summary","free":"Free","CommitmentsForXMonths":"{months} month commitment | {months} months commitments","PlaceOrder":"Place Order","Router":"Router","PlanDetails":"Plan Details","Delivery":"Delivery","Confirmation":"Confirmation","Your billing information isnt available yet.":"Your billing information isn\'t available yet.","Please check back again later.":"Please check back again later.","WelcomeToMaxPlan":"WELCOME TO MAX PLAN!","StartConfiguringYourContentNow":"Start activating your content now","StartConfiguringYourContentNowMobile":"Start activating your\\ncontent now","ActivateContent":"ACTIVATE CONTENT","YouAreNowSubscribedTo":"Subscription activated for","OnYourNumber":"on your number","BackToHome":"Back To Home","WeWereNotAble":"We were not able to activate this service, \\nplease try again later.\\n\\nIf the issue persists, please call 107.","ViewOffer":"View Offer","MyContent":"My Content","MyContentAndSubscriptions":"My Content and Subscriptions","BasicContent":"Basic Content","PremiumContent":"Premium Content","ActiveSince":"Active since","NotActive":"Not active","content":" Content","Content":" Content","FreeContent":"Free","PerMonth":"/month","GhostOnBoardingBannerUpperText":"Join our new Internet plans; MAX!","GhostOnBoardingBannerTitle":"IMAGINE... AND MORE","GhostOnBoardingBannerLowerText":"5G and Entertainment in one plan","Success!":"Success!","Error":"Error","PremiumContentIsNotPartOfYourAllowance":"Premium content is not part of your allowance","YouHaveAlreadyActivatedAllYourFREEContent":"You have already activated all your content","UpgradeToThe":"Upgrade to the ","PlanToAccessPremium":" plan to access more premium content on us","YesUpgradeMyPlan":"Yes, upgrade my plan","NoAddOTTOnlyForMonthly":"No, add {ott} only for KD {price} Monthly","ConfirmYourPlanUpgrade":"Confirm your plan upgrade","FeaturedContent":"Featured Content","YouAreNowSubscribedToThe ":"You are now subscribed to the ","PlanAndYour":" plan and your ","FREE":"FREE","FREEOnUs":"on us","ContentAllowanceHasBeen":" content allowance has been ","HeresWhatHappensNext":"Here\'s what happens next:","YouWillReceiveEmailWithOrderDetails":"We will send you an email with the order details. You can track your order through the Zain App.","YourOrderNumber:":"Your Order Number: ","ORDER":"ORDER","WeReceivedYourOrderYouCanTrackItHere":"We received your order and it is in progress. You can track your order status.","ThankYouForYourOrder":"Thank you for your order","OutForDelivery":"Out for Delivery","Delivered":"Delivered","OrderPlaced":"Order Placed","OrderStatus":"Order Status","ViewOrderStatus":"View Order Status","Upgraded":"upgraded","YouActivatedThisContentLessThanDaysAgo":"You activated this content less than {days} days ago","YouCouldSwapOrDeactivateThisContentStarting":"You could swap or deactivate this content starting ","MyBoosters":"My Boosters","GhostPlanTitle":"MAX Internet Plans","GhostPlanDescription":"All the entertainment you need in one place! Select your preferred MAX plan","YoureAboutToDeactivateThisService":"You’re about to deactivate this service","ThisMeansYourAccountOnThisPlatformWillBeDeactivated":"This means your account on this platform will be deactivated","YouDeactivatedYourSubscriptionSuccessfully":"You deactivated your {subscription} subscription successfully","UpgradeYourPlanToUnlockYourBenefits":"Upgrade your plan to MAX!","UpgradeYourPlan":"Upgrade my plan","Subscribe":"SUBSCRIBE","ConfirmYourAccountDetails":"Confirm your account details","UpgradeMyPlan":"Upgrade My Plan","TotalMonthlyFee":"Total Monthly Fee","Streaming":"Streaming","SpecialOffersForYou":"Special offers for you","DeliveryDate":"Delivery date","SelectDate":"Select date","DeliveryTime":"Delivery Time","SelectTime":"Select Time","TimeSlot":"{from} TO {to}","YouAlreadyHaveAnActiveSubscription":"You already have an active {ott} subscription","YouCanOnlyHaveOneActiveSubscriptionAtATime":"You can only have one active {ott} subscription at a time.","GhostErrorMessage":"We are not able to complete your order, please try again later. If the issue persists, please call 107.","OnUs":"On us","Activate":"Activate","EnterLast4DigitsOfCivilId":"Add the last 4 digits of your civil ID to verify your broadband line","VerifyByCivilID":"Verify by Civil ID","GhostEligibilityFailure":"You are not eligible to take this offer.\\n\\nPlease call 107 for more assistance.","OrderSuccessful":"Order successful","OrderNumber: ":"Order number: ","NextSteps:":"Next steps: ","GhostSuccessNoCommitmentsTitle":"Here’s what happened next:","GhostSuccessNoCommitmentsDescription":"Your request is in process. Once complete, you will receive a confirmation SMS.","ThisPlanDoesNotSupportTheDataSharingService":"This plan does not support the data sharing service. Once confirmed the additional SIM will be automatically deactivated.","OTPHasBeenSentTo":"OTP has been sent to {MSISDN}. Please use it to verify.","RoamingAdd-Ons":"Roaming","DisneyOfferBannerText":"Subscribe to Disney+ and get 6 months on us","ActivateNow":"ACTIVATE NOW","GhostDataShareWarningTitle":"Confirm Disconnection","GhostDataShareWarning":"Once you activate this plan your current datashare phone number will be disconnected","ActivatePlan":"ACTIVATE PLAN","YourExistingDatashareSIMCardWillContinue":"Your existing datashare SIM card will continue to be active as part of your new plan.","ActivateNowAndEnjoyUpTo6MonthsFREEOnUs":"Activate now and enjoy up to 6 months FREE on us!","ActivateMyContent":"Activate my content","SactBannerTitle":"You have terminated dues","SactBannerDescription":"In order to avoid legal actions. Please settle dues against terminated lines.","TerminatedDues":"Terminated Dues","TerminatedDuesNotLessThan30":"The terminated dues amount must not be less than KD30","TerminatedFees":"Terminated Fees","CivilIDNumber":"Civil ID Number","UpdateCivilID":"Update Civil ID","UpdateMyCivilID":"Update my Civil ID","RemindMeLater":"Remind me later","VerifyYourIdentity":"Verify your identity","EnterYourCivilID":"Enter your Civil ID number below ","YouMustBeContractHolder":"You must be the contract holder to update the Civil ID information in Zain’s database","PaciNotificationDisclaimer":"*You will be prompted to continue the authentication process on Kuwait Mobile ID.","ApprovePaciRequest":"Approve the authentication request on Kuwait Mobile ID","PaciNotificationAcceptDisclaimer":"You will be prompted to authenticate via the Kuwait Mobile ID app. Please approve the authentication request to continue.","CivilIDUpdatedSuccessfully":"Your Civil ID has been successfully updated in Zain’s database","CivilIDUpdateFailed":"Authorization declined from Kuwait Mobile ID. Submit the request again.","Continue":"Continue","RechargeOfferDescriptionKD":"The FREE KD{amount} is valid for {day} days only","Offer":"Offer","NightInternetDescription":"Night Internet* - 11 PM to 5 AM","NightInternet":"Night Internet","GBX":"GB {GB}","RechargeOfferDescriptionGB":"The Free GB {amount} is valid for {day} days only"}')},"28b5":function(e,t,a){e.exports=a.p+"img/www.15afe1ea.svg"},"29f5":function(e,t,a){},"2a08":function(e,t,a){e.exports=a.p+"img/isle-of-man.b8e0704d.svg"},"2abf":function(e,t,a){e.exports=a.p+"img/speech-bubble.35688a4c.svg"},"2ac0":function(e,t,a){e.exports=a.p+"img/mb-twitter.7965b454.svg"},"2af4":function(e,t,a){e.exports=a.p+"img/pagenav_zainlife.453078de.svg"},"2c46":function(e,t,a){e.exports=a.p+"img/delete.93c90980.svg"},"2c68":function(e,t,a){e.exports=a.p+"img/favorite-star.eb4db2ab.svg"},"2d3e":function(e,t,a){},"2e2e":function(e,t,a){e.exports=a.p+"img/roaming-without-internet.b52557ff.svg"},"2ed8":function(e,t,a){e.exports=a.p+"img/wifi.9556c947.svg"},"2ef1":function(e,t,a){e.exports=a.p+"img/pagenav_plans.62f3c951.svg"},"2f3d":function(e,t,a){},"2f6c":function(e,t,a){e.exports=a.p+"img/thumb.63dedebd.svg"},"300b":function(e,t,a){e.exports=a.p+"img/sn.b70b0975.svg"},3035:function(e,t,a){e.exports=a.p+"img/aghani.ccd868d0.svg"},3049:function(e,t,a){e.exports=a.p+"img/bein-sports.6b12b10f.svg"},"311a":function(e,t,a){e.exports=a.p+"img/trash.8af76e3b.svg"},3134:function(e,t,a){e.exports=a.p+"img/partner-email.7483d217.svg"},"318e":function(e,t,a){e.exports=a.p+"img/support.3082248b.svg"},"328b":function(e,t,a){e.exports=a.p+"img/my-zain-dashboard-gray.a85c1e8e.svg"},"337d":function(e,t,a){e.exports=a.p+"img/home_delivery.93ecc764.svg"},"344a":function(e,t,a){e.exports=a.p+"img/tod.683a4670.png"},"34cb":function(e,t,a){e.exports=a.p+"img/plans--.f08fbf35.svg"},3589:function(e,t,a){e.exports=a.p+"img/location.8ced9c48.svg"},"360b":function(e,t,a){e.exports=a.p+"img/password-gradient.7cd5d114.svg"},3670:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));var s=a("ade3"),i=a("d9f3");const n=(e,t)=>Math.round(1e12*(e+t))/1e12;class r{constructor(e=null){Object(s["a"])(this,"msisdn",null),Object(s["a"])(this,"pastDue",0),Object(s["a"])(this,"unbilled",0),Object(s["a"])(this,"balance",0),Object(s["a"])(this,"amount",0),Object(s["a"])(this,"nickname",null),Object(s["a"])(this,"validated",!1),Object(s["a"])(this,"billingType",null),Object(s["a"])(this,"cardIndex",2),Object(s["a"])(this,"selectionType",i["numberSelectionTypes"].OTHER_NUMBER),Object(s["a"])(this,"amountType",i["paymentAmountTypes"].TOTAL),Object(s["a"])(this,"errorFlag",""),Object(s["a"])(this,"canRemove",!0),Object(s["a"])(this,"isMyLine",!1),Object(s["a"])(this,"billPrivacyEnabled",!1),Object(s["a"])(this,"initialAmount",0),Object(s["a"])(this,"subscriberType",null),null!==e&&void 0!==e&&e.msisdn&&(this.msisdn=e.msisdn),null!==e&&void 0!==e&&e.Msisdn&&(this.msisdn=e.msisdn),null!==e&&void 0!==e&&e.pastDue&&(this.pastDue=e.pastDue),null!==e&&void 0!==e&&e.PastDue&&(this.pastDue=e.pastDue),null!==e&&void 0!==e&&e.unbilled&&(this.unbilled=e.unbilled),null!==e&&void 0!==e&&e.Unbilled&&(this.unbilled=e.unbilled),null!==e&&void 0!==e&&e.balance&&(this.balance=e.balance),null!==e&&void 0!==e&&e.amount&&(this.amount=e.amount),null!==e&&void 0!==e&&e.nickname&&(this.nickname=e.nickname),null!==e&&void 0!==e&&e.validated&&(this.validated=e.validated),null!==e&&void 0!==e&&e.billingType&&(this.billingType=e.billingType),null!==e&&void 0!==e&&e.cardIndex&&(this.cardIndex=e.cardIndex),null!==e&&void 0!==e&&e.selectionType&&(this.selectionType=e.selectionType),null!==e&&void 0!==e&&e.errorFlag&&(this.errorFlag=e.errorFlag),!1!==(null===e||void 0===e?void 0:e.canRemove)&&!0!==(null===e||void 0===e?void 0:e.canRemove)||(this.canRemove=e.canRemove),null!==e&&void 0!==e&&e.isMyLine&&(this.isMyLine=e.isMyLine),null!==e&&void 0!==e&&e.billPrivacyEnabled&&(this.billPrivacyEnabled=e.billPrivacyEnabled),null!==e&&void 0!==e&&e.initialAmount&&(this.initialAmount=e.initialAmount),null!==e&&void 0!==e&&e.subscriberType&&(this.subscriberType=e.subscriberType)}setPostpaid(){return this.billingType="Postpaid",this}setPrepaid(){return this.billingType="Prepaid",this}setMsisdn(e){return this.msisdn=e,this}setNickname(e){return this.nickname=e,this}setValidated(e){return this.validated=e,this}setPrepaidBalance(e){return e&&(this.balance=e),this}setCardIndex(e){return e&&(this.cardIndex=e),this}setAmount(e){return this.amount=e,this}setPostpaidBalance(e,t){return this.pastDue=e,this.unbilled=t,this.amount=Math.max(n(null!==t&&void 0!==t?t:0,null!==e&&void 0!==e?e:0),0),this.amount<=1&&(this.amountType=i["paymentAmountTypes"].OTHER_AMOUNT,this.amount=0),this}static makeOtherNumber(){return new this}static makeMyNumber(){const e={isMyLine:!0,selectionType:i["numberSelectionTypes"].MY_NUMBERS};return new this(e)}static makeValidatedPostpaidMyNumber(){const e=this.makeMyNumber();return e.setPostpaid(),e.setValidated(!0),e}static makeValidatedPrepaidMyNumber(){const e=this.makeMyNumber();return e.setPrepaid(),e.amount=6,e.setValidated(!0),e}static mapFromList(e,t){return e.map(e=>{var a,s,i;let n=this[t]().setNickname(e.nickname).setMsisdn(e.msisdn);return"Postpaid"===n.billingType?n=n.setPostpaidBalance(null===e||void 0===e||null===(a=e.balance)||void 0===a?void 0:a.PastDue,null===e||void 0===e||null===(s=e.balance)||void 0===s?void 0:s.Unbilled):"Prepaid"===n.billingType&&(n=n.setPrepaidBalance(null===e||void 0===e||null===(i=e.balance)||void 0===i?void 0:i.Balance)),n})}}const o={POST_VALIDATED:"makeValidatedPostpaidMyNumber",PREP_VALIDATED:"makeValidatedPrepaidMyNumber"}},3707:function(e,t,a){e.exports=a.p+"img/voice-mail.8087c85f.svg"},3797:function(e,t,a){"use strict";a("f4c3")},"37aa":function(e,t,a){e.exports=a.p+"img/filter-filled.d72a3655.svg"},"3a09":function(e,t,a){},"3a79":function(e,t,a){},"3af4":function(e,t,a){"use strict";a("5c5b")},"3b3a":function(e,t,a){"use strict";a("d512")},"3c3e":function(e,t,a){e.exports=a.p+"img/mastercard.2e0df4b3.png"},"3c53":function(e,t,a){e.exports=a.p+"img/order-history.d637ad8a.svg"},"3cbd":function(e,t,a){e.exports=a.p+"img/slide-down-arrow.0605e6b3.svg"},"3cc6":function(e,t,a){e.exports=a.p+"img/MobileWelcomeGhostBannerV4.af59131b.png"},"3d14":function(e,t,a){e.exports=a.p+"img/bangladesh.db2b288e.svg"},"3d84":function(e,t,a){e.exports=a.p+"img/prfole.165f3ea1.svg"},"3f98":function(e,t,a){e.exports=a.p+"img/DisneyTransparentBackgroundMyZain.80a6f17a.png"},"3f9b":function(e,t,a){"use strict";a("e0c1")},"403d":function(e,t,a){e.exports=a.p+"img/starz.7e17befe.svg"},"424c":function(e,t,a){e.exports=a.p+"img/prepaid-line.e0f907e2.svg"},"42b6":function(e,t,a){e.exports=a.p+"img/input-camera.7154c48b.svg"},4360:function(e,t,a){"use strict";a.d(t,"b",(function(){return _}));a("14d9"),a("13d5");var s=a("a026"),i=a("2f62"),n=a("d722"),r=a("1315"),o=a("d9f3"),l=a("9225"),c=a("3670"),d=a("a02d"),u={namespaced:!0,state:{selectedOtherLines:[],selectedMyLines:[],currentQuickPayStep:o["quickPayStep"].PAYMENT_DETAILS,selectedTab:o["paymentTypes"].PAY_BILL,selectedNumberSelectionType:o["numberSelectionTypes"].OTHER_NUMBER,selectedPaymentAmountType:o["paymentAmountTypes"].TOTAL,selectedPaymentMethod:null,selectedCardType:null,contractNumberValue:null,contractAmountValue:null,contractMsisdnNotificationValue:null,contractEmailNotificationValue:null,contractBalance:{Paid:null,PastDue:null,Total:null,Unbilled:null},loading:!1,captchaVerified:!1,tokenizedCard:null,haveValidQuickPayParams:!1,quickPayRouteParams:null,verifiedCaptchaCode:null},mutations:{},actions:{addOrderLine({state:e},t=!1){const a=c["b"].makeOtherNumber().setAmount(e.selectedTab===o["paymentTypes"].PAY_BILL?null:6);e.selectedOtherLines=t?[a]:[...e.selectedOtherLines,a]},updateOrderLine({state:e},{newVal:t,index:a,prop:s,isMyLine:i}){const n=i?"selectedMyLines":"selectedOtherLines";e[n][a][s]=t},removeOrderLine({state:e},{index:t,isMyLine:a}){const s=a?"selectedMyLines":"selectedOtherLines";e[s]=e[s].filter((e,a)=>a!==t)},reset({state:e,dispatch:t,getters:a}){e.selectedMyLines=[],e.selectedOtherLines=[],e.selectedPaymentAmountType=o["paymentAmountTypes"].TOTAL,a.getTerminatedBalance.Total>0&&e.selectedMyLines.push(a.getTerminatedDefaultLine),t("resetContract")},resetContract({state:e}){e.contractNumberValue=null,e.contractAmountValue=null,e.contractMsisdnNotificationValue=null,e.contractEmailNotificationValue=null,e.contractBalance={Paid:null,PastDue:null,Total:null,Unbilled:null}},selectLine({state:e},t){e[t.isMyLine?"selectedMyLines":"selectedOtherLines"]=[new c["b"](t)],e[t.isMyLine?"selectedOtherLines":"selectedMyLines"]=[]},setQuickPayStep({state:e},t){e.currentQuickPayStep=t,e.selectedMyLines=e.selectedMyLines.filter(e=>e.amount>0),setTimeout((function(){document.getElementById("app").scrollIntoView()}),10)},setSelectedNumberSelectionType({state:e,dispatch:t},a){e.selectedNumberSelectionType=a,e.selectedNumberSelectionType===o["numberSelectionTypes"].OTHER_NUMBER&&t("addOrderLine",!0)},setSelectedPaymentAmountType({state:e},t){e.selectedPaymentAmountType=t,e.selectedMyLines.forEach(e=>m(e,t)),e.selectedOtherLines.forEach(e=>m(e,t))},async setActiveTab({state:e},t){e.selectedTab=t},async getPostpaidLinesData({rootState:e,state:t,dispatch:a,rootGetters:s,getters:i},n={setLines:!0}){if(e.isLoggedIn){if(t.loading=!0,"keycloak"===e.loginType){var r;await a("fetchResource",{resource:_.KEYCLOAK_POSTPAID_LINES_BALANCES},{root:!0});const s=null===(r=e[_.KEYCLOAK_POSTPAID_LINES_BALANCES])||void 0===r?void 0:r.data;n.setLines&&((null===s||void 0===s?void 0:s.length)>0&&(t.selectedMyLines=c["b"].mapFromList(s,c["a"].POST_VALIDATED).filter(t=>t.msisdn===e.msisdn),t.selectedNumberSelectionType=o["numberSelectionTypes"].MY_NUMBERS),i.getTerminatedBalance.Total>0&&(t.selectedMyLines=[...t.selectedMyLines,i.getTerminatedDefaultLine]))}else if("sim"===e.loginType&&"Postpaid"===s.getBillingType&&(await a("fetchResource",{resource:_.BALANCE,payload:{msisdn:e.msisdn}},{root:!0}),n.setLines)){var l,d,u,p,m,h,v,g;const a=c["b"].makeValidatedPostpaidMyNumber().setMsisdn(e.msisdn).setPostpaidBalance(null===(l=e[_.BALANCE])||void 0===l||null===(d=l.data)||void 0===d?void 0:d.PastDue,null===(u=e[_.BALANCE])||void 0===u||null===(p=u.data)||void 0===p?void 0:p.Unbilled);(null===(m=e[_.BALANCE])||void 0===m||null===(h=m.data)||void 0===h?void 0:h.PastDue)+(null===(v=e[_.BALANCE])||void 0===v||null===(g=v.data)||void 0===g?void 0:g.Unbilled)<=1&&(t.selectedPaymentAmountType=o["paymentAmountTypes"].OTHER_AMOUNT),t.selectedMyLines=[a],t.selectedMyLines.length&&(t.selectedNumberSelectionType=o["numberSelectionTypes"].MY_NUMBERS)}t.loading=!1}},async getPrepaidLinesData({rootState:e,state:t,dispatch:a,rootGetters:s},i={setLines:!0}){if(t.loading=!0,"keycloak"===e.loginType){var n,r;await a("fetchResource",{resource:_.KEYCLOAK_PREPAID_LINES_BALANCES},{root:!0});let s=null!==(n=null===(r=e[_.KEYCLOAK_PREPAID_LINES_BALANCES])||void 0===r?void 0:r.data)&&void 0!==n?n:[];const d=s.findIndex(t=>t.msisdn===e.msisdn);var l;if(d>-1&&(s=[s[d],...s.filter(t=>t.msisdn!==e.msisdn)]),i.setLines)if(null!==(l=s)&&void 0!==l&&l.length){t.selectedNumberSelectionType=o["numberSelectionTypes"].MY_NUMBERS;const e=c["b"].makeValidatedPrepaidMyNumber().setAmount(6).setCardIndex(2).setMsisdn(s[0].msisdn).setPrepaidBalance(s[0].balance.Balance).setNickname(s[0].nickname);a("selectLine",e)}else t.selectedNumberSelectionType=o["numberSelectionTypes"].OTHER_NUMBER}else if("sim"===e.loginType&&"Prepaid"===s.getBillingType){if(await a("fetchResource",{resource:_.BALANCE,payload:{msisdn:e.msisdn}},{root:!0}),i.setLines){var d,u;const s=c["b"].makeValidatedPrepaidMyNumber().setMsisdn(e.msisdn).setPrepaidBalance(null===(d=e[_.BALANCE])||void 0===d||null===(u=d.data)||void 0===u?void 0:u.Balance);a("selectLine",s),t.selectedNumberSelectionType=o["numberSelectionTypes"].MY_NUMBERS}}else i.setLines&&(t.selectedNumberSelectionType=o["numberSelectionTypes"].OTHER_NUMBER);t.loading=!1},async getContractBalance({state:e}){e.contractBalance=(await n["a"].contractBalance({contractNumber:e.contractNumberValue})).data},async submitPayment({state:e,getters:t,rootGetters:a},s){var i,r;e.loading=!0;let c=null;e.selectedNumberSelectionType===o["numberSelectionTypes"].CONTRACT_NUMBER&&(e.selectedPaymentAmountType===o["paymentAmountTypes"].DUES?c=e.contractBalance.PastDue:e.selectedPaymentAmountType===o["paymentAmountTypes"].TOTAL?c=e.contractBalance.Total:e.selectedPaymentAmountType===o["paymentAmountTypes"].OTHER_AMOUNT&&(c=e.contractAmountValue));const d={cardDetails:{...s,cardType:e.selectedPaymentMethod===o["paymentMethods"].SAVED_CARD?"":e.selectedPaymentMethod},totalAmount:t.billTotal,cardToken:e.selectedPaymentMethod===o["paymentMethods"].SAVED_CARD?e.tokenizedCard.token:null,registerCard:s.registerCard,locale:l["a"].locale,orderLines:e.selectedNumberSelectionType===o["numberSelectionTypes"].CONTRACT_NUMBER?[{msisdn:e.contractMsisdnNotificationValue,amount:c,contractNumber:e.contractNumberValue,orderType:o["orderTypes"].ContractPayment}]:t.allOrderLines.map(t=>{var s;const i=null!==(s=(null===t||void 0===t?void 0:t.selectionType)===o["numberSelectionTypes"].TERMINATED_DUES)&&void 0!==s&&s,n={msisdn:t.msisdn,amount:t.amount,nickname:i?a.getMsisdnNickname:t.nickname,orderType:i?o["orderTypes"].ContractPayment:h(t.selectionType?t.selectionType:e.selectedNumberSelectionType,e.selectedTab),numberSelectionType:t.selectionType?t.selectionType:e.selectedNumberSelectionType};return i&&(n.contractNumber=a.getContractNumber),n}),verifiedCaptchaCode:e.verifiedCaptchaCode};e.selectedPaymentMethod===o["paymentMethods"].SAVED_CARD?d.paymentMethod="TokenizedCard":e.selectedPaymentMethod===o["paymentMethods"].PAYPAL?d.paymentMethod="Paypal":d.paymentMethod="BankCard",e.selectedNumberSelectionType===o["numberSelectionTypes"].CONTRACT_NUMBER&&e.contractEmailNotificationValue&&(d.orderLines[0].email=e.contractEmailNotificationValue);const u={java_script_enabled:!0,browser_agent:navigator.userAgent,pay_language:l["a"].locale,screen_width:window.innerWidth,screen_color_depth:window.screen.colorDepth,timezone:"-180",window_size:"FULL_SCREEN",screen_height:window.innerHeight,java_enabled:!0};let p;try{p=await n["a"].payment({...d,threeDSecureVersion2:u})}catch(g){console.log(g)}return null!==(i=p)&&void 0!==i&&null!==(r=i.data)&&void 0!==r&&r.url?(location.href=p.data.url,!0):(e.loading=!1,null===(m=p)||void 0===m||null===(v=m.data)||void 0===v?void 0:v.success);var m,v}},getters:{allOrderLines:e=>{if(e.selectedNumberSelectionType===o["numberSelectionTypes"].CONTRACT_NUMBER){const t=e.selectedPaymentAmountType===o["paymentAmountTypes"].TOTAL;return[{msisdn:e.contractMsisdnNotificationValue,amount:t?e.contractBalance.Total:e.contractAmountValue,contractNumber:e.contractNumberValue,email:e.contractEmailNotificationValue,selectionType:o["numberSelectionTypes"].CONTRACT_NUMBER,validated:!0}]}return[...e.selectedOtherLines,...e.selectedMyLines]},getSelectedNumbersTotals:(e,t)=>t.allOrderLines.map(e=>{var t,a;return Math.max(p(null!==(t=e.unbilled)&&void 0!==t?t:0,null!==(a=e.pastDue)&&void 0!==a?a:0),0)}).reduce((e,t)=>p(e,t),0),getSelectedNumbersDues:(e,t)=>t.allOrderLines.map(e=>{var t;return Math.max(null!==(t=e.pastDue)&&void 0!==t?t:0,0)}).reduce((e,t)=>p(e,t),0),getSelectedNumbersCustomAmounts:(e,t)=>t.allOrderLines.map(e=>{var t;return null!==(t=e.amount)&&void 0!==t?t:0}).reduce((e,t)=>p(e,t),0),getPrepaidLinesData:(e,t,a,s)=>{var i,n;if("sim"===a.loginType&&"Prepaid"===s.getBillingType)return[c["b"].makeValidatedPrepaidMyNumber().setMsisdn(null===a||void 0===a?void 0:a.msisdn).setAmount(6).setPrepaidBalance(null===(i=a[_.BALANCE])||void 0===i||null===(n=i.data)||void 0===n?void 0:n.Balance)];if("keycloak"===a.loginType){var r,o;let e=null!==(r=null===(o=a[_.KEYCLOAK_PREPAID_LINES_BALANCES])||void 0===o?void 0:o.data)&&void 0!==r?r:[];return e=e.filter(e=>!1===e.balance.IsLocked),c["b"].mapFromList(e,c["a"].PREP_VALIDATED).map(e=>e.setAmount(6))}return[]},getPostpaidLinesData:(e,t,a,s)=>{if("sim"===a.loginType&&"Postpaid"===s.getBillingType&&a[_.BALANCE].data)return[c["b"].makeValidatedPostpaidMyNumber().setMsisdn(null===a||void 0===a?void 0:a.msisdn).setPostpaidBalance(a[_.BALANCE].data.PastDue,a[_.BALANCE].data.Unbilled)];if("keycloak"===a.loginType){var i,n;const e=null!==(i=null===(n=a[_.KEYCLOAK_POSTPAID_LINES_BALANCES])||void 0===n?void 0:n.data)&&void 0!==i?i:[];return c["b"].mapFromList(e,c["a"].POST_VALIDATED)}return[]},billTotal:(e,t)=>{if(e.selectedNumberSelectionType!==o["numberSelectionTypes"].CONTRACT_NUMBER){const e=t.allOrderLines.reduce((e,t)=>p(e,isNaN(t.amount)?0:t.amount),0);return e}var a,s,i;return e.selectedPaymentAmountType===o["paymentAmountTypes"].OTHER_AMOUNT?null!==(a=e.contractAmountValue)&&void 0!==a?a:0:e.selectedPaymentAmountType===o["paymentAmountTypes"].DUES?null!==(s=e.contractBalance.PastDue)&&void 0!==s?s:0:e.selectedPaymentAmountType===o["paymentAmountTypes"].TOTAL?null!==(i=e.contractBalance.Total)&&void 0!==i?i:0:void 0},getTerminatedBalance:(e,t,a,s)=>{var i,n,r;return null!==s&&void 0!==s&&s.isPostpaid&&d["a"].SactEnabled&&null!==(i=null===a||void 0===a||null===(n=a[_.BALANCE])||void 0===n||null===(r=n.data)||void 0===r?void 0:r.TerminatedBalance)&&void 0!==i?i:0},getTerminatedDefaultLine:(e,t,a,s)=>new c["b"]({msisdn:s.getContractNumber,nickname:l["a"].t("TerminatedDues"),amount:t.getTerminatedBalance.Total,pastDue:t.getTerminatedBalance.Total,selectionType:o["numberSelectionTypes"].TERMINATED_DUES,unbilled:0,validated:!0}),canProceedToPaymentMethod:(e,t,a)=>{var s,i,n;let r=!0;if(e.selectedPaymentAmountType===o["paymentAmountTypes"].OTHER_AMOUNT&&(r=!!t.getSelectedNumbersCustomAmounts),0===t.allOrderLines.length&&(r=!1),t.billTotal<1||t.billTotal>5e3)return!1;if(e.selectedNumberSelectionType===o["numberSelectionTypes"].CONTRACT_NUMBER&&e.contractMsisdnNotificationValue&&8!==(null===(s=e.contractMsisdnNotificationValue)||void 0===s?void 0:s.length))return!1;if(!e.captchaVerified&&"anonymous"===a.loginType&&0===e.selectedTab)return!1;const l=e.selectedPaymentAmountType===o["paymentAmountTypes"].OTHER_AMOUNT;return!(t.getTerminatedBalance.Total>0&&(null===(i=t.allOrderLines)||void 0===i||null===(n=i.find(e=>e.sact))||void 0===n?void 0:n.amount)<30&&l)&&(r&&t.allOrderLines.every(e=>e.validated))}}};const p=(e,t)=>Math.round(1e12*(e+t))/1e12,m=(e,t)=>{switch(t){case o["paymentAmountTypes"].OTHER_AMOUNT:e.amount=null;break;case o["paymentAmountTypes"].TOTAL:e.amount=p(Math.max(e.pastDue,0),Math.max(e.unbilled,0));break;case o["paymentAmountTypes"].DUES:e.amount=e.pastDue;break}},h=(e,t)=>{switch(e){case o["numberSelectionTypes"].OTHER_NUMBER:case o["numberSelectionTypes"].MY_NUMBERS:return t===o["paymentTypes"].PAY_BILL?o["orderTypes"].SubscriberPayment:o["orderTypes"].Recharge;case o["numberSelectionTypes"].CONTRACT_NUMBER:return o["orderTypes"].ContractPayment}};var v=a("84e7"),g={namespaced:!0,state:{selectedGhostPlan:{},selectedOTT:{},isUpsell:!1,email:"",msisdn:"",selectedAddress:null,selectedDeliveryDate:new Date(new Date).toISOString().split("T")[0],selectedDeliveryType:v["a"].EXPRESS,selectedDeliveryTime:""},actions:{async createNewSubscription({state:e,rootGetters:t,rootState:a}){return await n["a"].addGhostPlan(y(a,t,e))},async changePlan({state:e,rootGetters:t,rootState:a}){return await n["a"].updateGhostPlan(y(a,t,e))},async changePlanWithPartnerService({state:e,rootGetters:t,rootState:a}){const s=y(a,t,e);return await n["a"].activateOTTWithPlan({...s,orderInfo:{...s.orderInfo,partnerServiceId:e.selectedOTT.id}})},setSelectedGhostPlan({state:e},t){e.selectedGhostPlan=t},setSelectedOTT({state:e},t){e.selectedOTT=t},setIsUpsell({state:e},t){e.isUpsell=t}},getters:{isEligibleForGhostOnBoarding(e,t,a,s){const i=s.isPostpaid;return i&&(t.isVoiceNonQuad||t.isDataNonGhost)},isDataNonGhost(e,t,a,s){const i="Data"===s.getBasicServiceType,n=s.getQuadValidity;return i&&n===v["c"]["NORMAL"]},isVoiceNonQuad(e,t,a,s){const i=s.getQuad;return"Voice"===s.getBasicServiceType&&i===v["b"]["NORMAL-V"]},canSubscribeOrUpgradeGhost(e,t,a,s){return s.getQuad===v["b"]["QUAD"]&&"Voice"===s.getBasicServiceType}}};function f(e,t){return{email:e.getEmail,phone:t.msisdn,language:l["a"].locale}}function y(e,t,a){return{msisdn:e.msisdn,contractNumber:e.contractNumber,orderInfo:{account:f(t,e),address:t.hasCommitments?{contactNumber1:a.msisdn,contact_number1:a.msisdn,email:a.email}:b(a),planId:a.selectedGhostPlan.id}}}function b(e){const t=e.selectedAddress;var a;t&&(t.addressId=t.address_id,t.addressName=t.address_name,t.buildingName=t.building_name,t.paciId=t.paci_id,t.isDefault=t.is_default,t.unitType=t.unit_type,t.deliveryType=e.selectedDeliveryType,t.paciId=null!==(a=t.paci_id)&&void 0!==a?a:0,e.selectedDeliveryType===v["a"].STANDARD&&(t.deliveryTime=e.selectedDeliveryDate+" "+e.selectedDeliveryTime),t.email=e.email,t.contactNumber1=e.msisdn,t.contact_number1=e.msisdn);return t}var x=a("2ef0"),C=a.n(x);const w=(async()=>{try{return await Promise.resolve().then(a.bind(null,"10a9"))}catch(e){console.error("wee3")}})();s["a"].use(i["a"]);const _={USER_INFO:"UserInfo",BALANCE:"Balance",BILLS:"Bills",USAGE:"Usage",COMMITMENTS:"Commitments",CALL_HISTORY:"CallHistory",PRODUCTS:"Products",PRODUCTS_PER_USER:"ProductsPerUser",SERVICES:"Services",INVOICES:"Invoices",KEYCLOAK_POSTPAID_LINES_BALANCES:"KCPostpaidLinesBalances",KEYCLOAK_PREPAID_LINES_BALANCES:"KCPrepaidLinesBalances",TOKENIZED_CARDS:"TokenizedCards",AUTOPAY:"AutoPay",RECHARGE_HISTORY:"RechargeHistory",DATA_SHARING:"DataSharing",USAGE_HISTORY:"UsageHistory",PLANS:"Plans",CAMPAIGNS:"Campaigns",CONTRACT_LINES:"ContractLines",CONTRACT_BALANCE:"ContractBalance",INBOX:"Inbox",ADDRESS:"Addressees",HAPPY_TUESDAY:"HappyTuesday",READY_MADE_PLANS:"ReadyMadePlans",OTTS:"OTTS",OTTJourney:"OTTJourney",GHOST_PLANS:"GhostPlans",GHOST_ORDERS:"GhostOrders",PREPAID_MANAGEMENT:"PrepaidManagement",FEATURE_FLAGS:"FeatureFlags"},A=()=>{let e={};return Object.values(_).forEach(t=>{e[t]={loading:!1,isDirty:!1,fetchedAt:null,msisdn:null,data:null}}),e};t["a"]=new i["a"].Store({state:{windowScroll:0,windowWidth:0,isLoggedIn:!1,isLoggingIn:!0,didTryToLogin:!1,loginType:"",loginUrl:"",msisdn:null,contractNumber:null,globalLoading:!0,keycloakResult:null,customerLines:[],resourceMinutesTTL:30,userNetworkSource:"",contentLayout:{},zainURL:"https://www.kw.zain.com/",userIp:"",maintenanceMode:!1,paymentAttempt:{hadAttempted:!1,paymentInfo:{}},...A(),lockedModeActive:!0,flexi:{offerEnabled:!0},fixedScrollContainerIsActive:!1,sentBillPrivacySMS:!1,recentOrders:[],selectedOffer:{},isOffersPopUpActive:!1,cmsBackendHost:"https://channels-cms.zcloud.kw.zain.com",pathParam:""},actions:{async simLogin({commit:e,state:t},a){e("setGlobalLoading",!0);try{var s,i;const c=await n["a"].simLogin(a);var r,o;if(c.data.isZainCustomer)e("setLoggedIn","sim"),e("setUserInfo",{userInfo:c.data.userInfo,msisdn:c.data.msisdn,contractNumber:c.data.contractNumber}),l["a"].setLocale(null!==(r=null===(o=c.data.userInfo)||void 0===o?void 0:o.Language)&&void 0!==r?r:"ar");else e("setLoggedIn","anonymous");t.userIp=null===c||void 0===c||null===(s=c.data)||void 0===s?void 0:s.realIP,t.userNetworkSource=null===c||void 0===c||null===(i=c.data)||void 0===i?void 0:i.networkSource}catch(c){console.log(c)}finally{e("setGlobalLoading",!1)}},async keycloakLogin({commit:e},t){try{e("setGlobalLoading",!0);const i=await n["a"].keycloakLogin(t);var a,s;if(i.data.success)e("setLoggedIn","keycloak"),e("setUserInfo",{userInfo:i.data.userInfo,msisdn:i.data.msisdn,contractNumber:i.data.contractNumber}),e("setCustomerLines",i.data.customerLines),l["a"].setLocale(null!==(a=null===(s=i.data.userInfo)||void 0===s?void 0:s.Language)&&void 0!==a?a:"ar")}catch(i){console.log(i)}finally{e("setGlobalLoading",!1)}},async keycloakLogout({commit:e}){e("setGlobalLoading",!0);try{const t=await n["a"].keycloakLogout();if(t){e("clearAllData"),e("clearLoginData");const{logout:a}=(await w).default;return a(),t.data}}catch(i){var t,a,s;return e("setGlobalLoading",!1),{success:!1,error:null!==(t=null===(a=i.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.message)&&void 0!==t?t:i.message}}},async resumeSession({dispatch:e,commit:t},a){"anonymous"!==a.loginType&&(t("setUserInfo",{msisdn:a.msisdn,contractNumber:a.contractNumber}),await e("getUserInfo"),"keycloak"===a.loginType&&await e("getKeycloakCustomerLines"),t("setLoggedIn",a.loginType)),t("setLoggedIn",a.loginType),t("setGlobalLoading",!1)},async setActiveKeycloakMsisdn({commit:e},t){try{const a=await n["a"].setActiveKeycloakMsisdn(t);e("clearAllData"),e("setUserInfo",{msisdn:t,contractNumber:a.data.userInfo.ContractID,userInfo:a.data.userInfo});const{login:s}=(await w).default;s()}catch(s){var a;403===(null===s||void 0===s||null===(a=s.response)||void 0===a?void 0:a.status)&&alert("Unauthorized")}},async getKeycloakCustomerLines({commit:e}){const t=await n["a"].keycloakLines();e("setCustomerLines",t.data)},async getKCPostpaidLinesBalances({commit:e,state:t}){await S({commit:e,resource:_.KEYCLOAK_POSTPAID_LINES_BALANCES,apiMethod:n["a"].keycloakLinesBalances,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getKCPrepaidLinesBalances({commit:e,state:t}){await S({commit:e,resource:_.KEYCLOAK_PREPAID_LINES_BALANCES,apiMethod:n["a"].keycloakPrepaidLinesBalances,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getLoginUrl({commit:e}){const t=await n["a"].loginUrl();e("setLoginUrl",t.data.url)},async fetchResource({state:e,dispatch:t},{resource:a,force:s=!1,payload:i}){var n,r;if(null!==(n=e[a])&&void 0!==n&&n.data&&(null===(r=e[a])||void 0===r||!r.isDirty)&&!s&&e[a].msisdn===e.msisdn){if(e[a].loading)return;const t=e[a].fetchedAt,s=new Date,i=(s.getTime()-t.getTime())/1e3/60;if(i<=e.resourceMinutesTTL)return}i?await t("get"+a,i):await t("get"+a)},async getUserInfo({commit:e,state:t}){t.msisdn&&await S({commit:e,resource:_.USER_INFO,apiMethod:n["a"].userInfo,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getBalance({commit:e,getters:t,state:a},s){var i;const r=t.isPostpaid?n["a"].postpaidBalance:n["a"].prepaidBalance;await S({commit:e,resource:_.BALANCE,apiMethod:r,args:{msisdn:null!==(i=null===s||void 0===s?void 0:s.msisdn)&&void 0!==i?i:a.msisdn,contractNumber:a.contractNumber}})},async getBills({state:e,commit:t},{amountOfMonths:a=6}){t("getResource",_.BILLS),e.Bills.isDirty=!1;let s=r["DateTime"].now().startOf("month");const i=[],o=[];for(let n=0;n{o.push(e.data),t("getResourceSuccess",{resource:_.BILLS,payload:o})})}},async getUsage({commit:e,state:t}){await S({commit:e,resource:_.USAGE,apiMethod:n["a"].usage,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getFeatureFlags({commit:e,state:t}){var a,s;await S({commit:e,resource:_.FEATURE_FLAGS,apiMethod:n["a"].featureFlags,args:{msisdn:null!==(a=t.msisdn)&&void 0!==a?a:"anonymous",contractNumber:null!==(s=t.contractNumber)&&void 0!==s?s:"anonymous"}})},async getOTTS({commit:e,state:t}){await S({commit:e,resource:_.OTTS,apiMethod:n["a"].AllOTTS,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getOTTJourney({commit:e,state:t}){await S({commit:e,resource:_.OTTJourney,apiMethod:n["a"].OTTJourney,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getHappyTuesday({commit:e,state:t}){await S({commit:e,resource:_.HAPPY_TUESDAY,apiMethod:n["a"].happyTuesday,args:{msisdn:t.msisdn,contractNumber:t.contractNumber,lang:`${l["a"].locale[0].toUpperCase()}${l["a"].locale[1]}`}})},async getUsageHistory({commit:e,state:t},{from:a,to:s}){e("getResource",_.USAGE_HISTORY),t.UsageHistory.isDirty=!1,s&&a&&n["a"].usageHistory({msisdn:t.msisdn,contractNumber:t.contractNumber,from:a,to:s}).then(t=>{e("getResourceSuccess",{resource:_.USAGE_HISTORY,payload:t.data.result})})},async getCallHistory({commit:e,state:t},{from:a,to:s,otpValue:i}){await S({commit:e,resource:_.CALL_HISTORY,apiMethod:n["a"].callHistory,args:{msisdn:t.msisdn,contractNumber:t.contractNumber,from:a,to:s,otpValue:i}})},async getCommitments({commit:e,state:t}){await S({commit:e,resource:_.COMMITMENTS,apiMethod:n["a"].commitments,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getCampaigns({commit:e,state:t}){await S({commit:e,resource:_.CAMPAIGNS,apiMethod:n["a"].campaigns,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getProducts({commit:e}){await S({commit:e,resource:_.PRODUCTS,apiMethod:n["a"].products})},async getProductsPerUser({commit:e}){await S({commit:e,resource:_.PRODUCTS_PER_USER,apiMethod:n["a"].productsPerUser})},async getServices({commit:e,state:t}){await S({commit:e,resource:_.SERVICES,apiMethod:n["a"].services,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getPlans({commit:e,getters:t,state:a}){await S({commit:e,resource:_.PLANS,apiMethod:t.isPostpaid||"Data"===t.getBasicServiceType?n["a"].plans:n["a"].prepaidPlanInfo,args:{msisdn:a.msisdn,contractNumber:a.contractNumber}})},async getGhostPlans({commit:e,state:t}){await S({commit:e,resource:_.GHOST_PLANS,apiMethod:n["a"].ghostPlans,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getGhostOrders({commit:e,state:t}){await S({commit:e,resource:_.GHOST_ORDERS,apiMethod:n["a"].getGhostPlanOrderStatus,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getRechargeHistory({commit:e,state:t}){e("getResource",_.RECHARGE_HISTORY),t[_.RECHARGE_HISTORY].isDirty=!1,n["a"].prepaidRechargeHistory({msisdn:t.msisdn,contractNumber:t.contractNumber}).then(t=>{e("getResourceSuccess",{resource:_.RECHARGE_HISTORY,payload:t.data})})},async getInvoices({commit:e,state:t}){await S({commit:e,resource:_.INVOICES,apiMethod:n["a"].invoices,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getTokenizedCards({commit:e,state:t}){await S({commit:e,resource:_.TOKENIZED_CARDS,apiMethod:n["a"].tokenizedCards,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getAutoPay({commit:e,getters:t,state:a}){const s=t.isPostpaid?n["a"].autopayPostpaid:n["a"].autopayPrepaid;await S({commit:e,resource:_.AUTOPAY,apiMethod:s,args:{msisdn:a.msisdn,contractNumber:a.contractNumber}})},async getDataSharing({commit:e,state:t}){await S({commit:e,resource:_.DATA_SHARING,apiMethod:n["a"].datasharing,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getContractLines({commit:e,state:t}){await S({commit:e,resource:_.CONTRACT_LINES,apiMethod:n["a"].contractLines,args:{contractNumber:t.contractNumber}})},async getContractBalance({commit:e,state:t}){await S({commit:e,resource:_.CONTRACT_BALANCE,apiMethod:n["a"].contractBalance,args:{contractNumber:t.contractNumber}})},async getReadyMadePlans({commit:e,state:t}){await S({commit:e,resource:_.READY_MADE_PLANS,apiMethod:n["a"].readyMadePlans,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getPrepaidManagement({commit:e,state:t}){await S({commit:e,resource:_.PREPAID_MANAGEMENT,apiMethod:n["a"].prepaidManagement,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getInbox({commit:e,state:t}){await S({commit:e,resource:_.INBOX,apiMethod:n["a"].inboxMessages,args:{msisdn:t.msisdn,contractNumber:t.contractNumber}})},async getAddressees({commit:e}){await S({commit:e,resource:_.ADDRESS,apiMethod:n["a"].userAddressees})},async updateInboxMessagesToRead({state:e},{messageIds:t}){try{await this.$store.dispatch("callApi",{apiMethod:n["a"].updateInboxMessagesToRead,args:{messageIds:t}}),e[_.INBOX].forEach(e=>e.id.includes(t)?(e.isRead=!0,e):e)}catch(a){console.log(a)}},async deleteInboxMessage({state:e},{messageId:t}){try{await this.$store.dispatch("callApi",{apiMethod:n["a"].deleteInboxMessage,args:{messageId:t}});let a=e[_.INBOX].findIndex(e=>e.id===t);delete e[_.INBOX][a]}catch(a){console.log(a)}},async callApi({state:e},{apiMethod:t,args:a}){return t({msisdn:e.msisdn,contractNumber:e.contractNumber,...a})},async setFixedScrollContainer({state:e},t){"boolean"===typeof t&&(e.fixedScrollContainerIsActive=t),e.fixedScrollContainerIsActive?document.documentElement.classList.add("no-scroll"):document.documentElement.classList.remove("no-scroll")},addTrackedOrder(e,{name:t,payload:a}){const s={id:Math.random().toString().replace("0.",""),orderDate:new Date,name:t,payload:a,status:{}};switch(e.state.recentOrders.push(s),console.log("addTrackedOrder",s),t){case"addService":a.price>0&&T(e,_.BALANCE,s,5,10),T(e,_.SERVICES,s,5,10),T(e,_.USAGE,s,2,20);break;case"removeService":T(e,_.SERVICES,s,5,10);break}}},mutations:{getResource(e,t){e[t].loading=!0},getResourceSuccess(e,{resource:t,payload:a}){e[t].loading=!1,e[t].isDirty=!1,e[t].data=a,e[t].msisdn=e.msisdn,e[t].fetchedAt=new Date,e[t].error=null},getResourceFailed(e,{resource:t,error:a}){e[t].loading=!1,e[t].error=a},setGlobalLoading(e,t){e.globalLoading=t},setLoggedIn(e,t){e.loginType=t,e.isLoggedIn="anonymous"!==t,e.isLoggingIn=!1},setUserInfo(e,{userInfo:t,msisdn:a,contractNumber:s}){t&&(e.UserInfo.data=t),s&&(e.contractNumber=s),e.msisdn=a},setCustomerLines(e,t){e.customerLines=t},clearAllData(e){for(let t=0;t{var t,a;return"POST"===(null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.BillingType)},isPrepaid:e=>{var t,a;return"PREP"===(null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.BillingType)},isCorporate:e=>{var t,a;return"Corporate"===(null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.CustomerType)},getQuad:e=>{var t,a;return null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.Quad},getCustomerCategory:e=>{var t,a;return null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.CustomerCategory},getBillingType:e=>{var t,a,s,i;return"POST"===(null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.BillingType)?"Postpaid":"PREP"===(null===e||void 0===e||null===(s=e.UserInfo)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.BillingType)?"Prepaid":null},getBasicServiceType:e=>{var t,a,s,i;return"VOICE"===(null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.BasicServiceType)?"Voice":"DATA"===(null===e||void 0===e||null===(s=e.UserInfo)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.BasicServiceType)?"Data":null},getFirstName:e=>{var t,a,s,i;if(null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a||!a.FirstName)return"";if("ar"===l["a"].locale)return null===(s=e[_.USER_INFO])||void 0===s||null===(i=s.data)||void 0===i?void 0:i.ArabicFirstName;{var n,r,o,c;const t=null===(n=e[_.USER_INFO])||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.FirstName)||void 0===o?void 0:o.toLowerCase();return null!==(c=t.charAt(0).toUpperCase()+t.slice(1))&&void 0!==c?c:""}},getLastName:e=>{var t,a,s,i;if(null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a||!a.LastName)return"";if("ar"===l["a"].locale)return null===(s=e[_.USER_INFO])||void 0===s||null===(i=s.data)||void 0===i?void 0:i.ArabicLastName;{var n,r,o,c;const t=null===(n=e.UserInfo)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.LastName)||void 0===o?void 0:o.toLowerCase();return null!==(c=t.charAt(0).toUpperCase()+t.slice(1))&&void 0!==c?c:""}},getMsisdnNickname:e=>t=>{if("keycloak"!==e.loginType)return"";const a=e.customerLines.find(e=>e.msisdn===t);return a?a.nickname:""},getMainLine:e=>{var t,a;return"keycloak"!==e.loginType?null:null===(t=e.customerLines)||void 0===t||null===(a=t.find(e=>1===e.is_main))||void 0===a?void 0:a.msisdn},hasLines:e=>{if("sim"===e.loginType)return!0;const t=e.customerLines.filter(e=>e.is_validated);return t.length>0},hasCommitments:e=>{var t,a,s;return(null===e||void 0===e||null===(t=e[_.COMMITMENTS])||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.commitment)||void 0===s?void 0:s.filter(e=>!e.description.toLowerCase().includes("discount")).length)>0},getQuadValidity:e=>{var t,a,s;return null===e||void 0===e||null===(t=e[_.OTTS])||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.quadPlayInfo)||void 0===s?void 0:s.validity},getPostpaidPlanPrice:(e,t)=>{var a,s,i,n,r,o,l,c;const d=null===e||void 0===e||null===(a=e[_.COMMITMENTS])||void 0===a||null===(s=a.data)||void 0===s?void 0:s.commitment,u=null===e||void 0===e||null===(i=e[_.COMMITMENTS])||void 0===i||null===(n=i.data)||void 0===n?void 0:n.subscriptionsAmount,p=null!==(r=null===(o=e[_.OTTS])||void 0===o||null===(l=o.data)||void 0===l||null===(c=l.quadPlayInfo)||void 0===c?void 0:c.partnerSubscriptions)&&void 0!==r?r:[];if(!t.hasCommitments&&!u)return 0;let m=u;for(const h of d)h.productFee.amount&&(m+=h.productFee.amount);return m+=p.filter(e=>"addon-promotion"!==(null===e||void 0===e?void 0:e.supscriptionType)).reduce((e,t)=>e+t.price,0),m},getContractNumber:e=>{var t,a;return null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.ContractID},isDataSharing:e=>{var t,a,s;return(null===e||void 0===e||null===(t=e.DataSharing)||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.DependentsInfo)||void 0===s?void 0:s.DependentInfo.length)>0},getTotalUnreadMessages:e=>{var t,a,s;return null!==(t=null===e||void 0===e||null===(a=e.Inbox)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.filter(e=>!1===e.isRead).length)&&void 0!==t?t:0},getEmail:e=>{var t,a;return"keycloak"!==e.loginType?null:null===e||void 0===e||null===(t=e.UserInfo)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.email},getValidatedCustomerLines:e=>e.customerLines.filter(e=>e.is_validated)},modules:{quickPay:u,ghostPostpaid:g}});const S=async({commit:e,resource:t,apiMethod:a,args:s})=>{if(null!==(null===s||void 0===s?void 0:s.msisdn)){e("getResource",t);try{const{result:i,isSuccess:n,message:r,quadPlayInfo:o}=(await a(s)).data,l=n?"getResourceSuccess":"getResourceFailed";e(l,{resource:t,error:r||null,payload:o?{result:i,quadPlayInfo:o}:i||null})}catch(i){console.error("resource fetching failed",i),e("getResourceFailed",{resource:t,error:i,payload:null})}}},T=async(e,t,a,s,i,n=null)=>{const r=a.payload;if(console.log("tracking!",t,a,n),n){if(n.fireCount>=n.maxFires)return console.log("errormax tries",r),void(a.status={[t]:"error-max-tries-reached"});n.fireCount++,e.dispatch("fetchResource",{resource:t,force:!0})}else n={resource:t,trackedPayload:r,maxFires:s,fireCount:0};switch(t){case _.USAGE:case _.BALANCE:var o;if(n.resourceRef=null===(o=e.state[t])||void 0===o?void 0:o.data,n.resourceRefPrev){if(!C.a.isEqual(n.resourceRef,n.resourceRefPrev))return console.log("tracking is done!",r),void(a.status={[t]:"done"})}else n.resourceRefPrev=n.resourceRef,setTimeout(()=>{T(e,t,a,s,i,n)},1e3*i);break;case _.SERVICES:var l,c,d,u,p,m,h,v;if("Toggle"!==(null===(l=n)||void 0===l||null===(c=l.trackedPayload)||void 0===c?void 0:c.activationType))return void(a.status={[t]:"done-no-track"});if(n.serviceRef=null===(d=e.state[_.SERVICES])||void 0===d||null===(u=d.data)||void 0===u?void 0:u.find(e=>{var t,a;return e.serviceCode===(null===(t=n)||void 0===t||null===(a=t.trackedPayload)||void 0===a?void 0:a.serviceCode)}),n.trackedPayload.toggle&&null!==(p=n)&&void 0!==p&&null!==(m=p.serviceRef)&&void 0!==m&&m.isInstalled||!n.trackedPayload.toggle&&(null===(h=n)||void 0===h||null===(v=h.serviceRef)||void 0===v||!v.isInstalled))return console.log("tracking is done!",r),void(a.status={[t]:"done"});setTimeout(()=>{T(e,t,a,s,i,n)},1e3*i);break}}},"43ac":function(e,t,a){e.exports=a.p+"img/my-plan-gradient.2601077a.svg"},4426:function(e,t,a){e.exports=a.p+"img/smart-home-zain-life.690b0ad6.svg"},"444e":function(e,t,a){e.exports=a.p+"img/MyzainOttsGhostBannerV4.7fcf59c8.png"},4488:function(e,t,a){e.exports=a.p+"img/logout.8772d790.svg"},"44bd":function(e,t,a){"use strict";a("de5c")},"466a":function(e,t,a){e.exports=a.p+"img/clock-circle.d9054ada.svg"},4678:function(e,t,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(e){var t=n(e);return a(t)}function n(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=n,e.exports=i,i.id="4678"},"48ba":function(e,t,a){e.exports=a.p+"img/international-mins.702a2298.svg"},"48cd":function(e,t,a){},4915:function(e,t,a){e.exports=a.p+"img/cross.696cbfd3.svg"},"4dfa":function(e,t,a){e.exports=a.p+"img/tod.9792d0c1.svg"},"4e39":function(e,t,a){e.exports=a.p+"img/my-zain-dashboard.c6af568d.svg"},"4e55":function(e,t,a){e.exports=a.p+"img/history.03dea58d.svg"},"512e":function(e,t,a){"use strict";a("ecdc")},"51c7":function(e,t,a){e.exports=a.p+"img/check.a4e2d819.svg"},"51f7":function(e,t,a){e.exports=a.p+"img/new-wifi.c2263acd.svg"},5237:function(e,t,a){e.exports=a.p+"img/argentina.a721cbf2.svg"},"525d":function(e,t,a){e.exports=a.p+"img/albania.812d6aef.svg"},"52ab":function(e,t,a){e.exports=a.p+"img/delivery-home-truck.b2a648bb.svg"},5451:function(e,t,a){"use strict";a("b4e7")},"551b":function(e,t,a){e.exports=a.p+"img/disney2.eae68eda.png"},"551f":function(e,t,a){e.exports=a.p+"img/visibility.292a2c0f.svg"},5687:function(e,t,a){"use strict";a("8819")},"56b2":function(e,t,a){e.exports=a.p+"img/mb-instagram.cfa1bc07.svg"},"56d7":function(e,t,a){"use strict";a.r(t);var s={};a.r(s),a.d(s,"ZButton",(function(){return R})),a.d(s,"ZCard",(function(){return pe})),a.d(s,"ZCircleProgress",(function(){return ye})),a.d(s,"ZInput",(function(){return H})),a.d(s,"ZListBox",(function(){return ze})),a.d(s,"ZListBoxItem",(function(){return Ze})),a.d(s,"ZLoading",(function(){return Je})),a.d(s,"ZModal",(function(){return Be})),a.d(s,"ZProgressBarHorizontal",(function(){return nt})),a.d(s,"ZProgressBarVertical",(function(){return ut})),a.d(s,"ZSelect",(function(){return A})),a.d(s,"ZSkeleton",(function(){return ft})),a.d(s,"ZSlider",(function(){return Bt})),a.d(s,"ZSliderThumb",(function(){return St})),a.d(s,"ZSliderTick",(function(){return Ot})),a.d(s,"ZTag",(function(){return N})),a.d(s,"ZToggle",(function(){return Ft})),a.d(s,"ZRadio",(function(){return Kt})),a.d(s,"ZRadioButton",(function(){return ea})),a.d(s,"ZTabs",(function(){return ra})),a.d(s,"ZTabItem",(function(){return pa})),a.d(s,"ZStepper",(function(){return Ng})),a.d(s,"ZStepperStep",(function(){return Rg}));var i=a("a026"),n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"min-h-full h-full w-full"},[e.$store.state.lockedModeActive?t("div",{staticClass:"flex h-full w-full justify-center items-center"},[t("div",{staticClass:"flex flex-col space-y-3"},[t("z-input",{attrs:{"input-type":"password",label:"Password"},model:{value:e.myZP,callback:function(t){e.myZP=t},expression:"myZP"}}),t("z-button",{on:{click:e.unlock}},[e._v("Enter")])],1)]):t("app")],1)},r=[],o=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app",dir:"ar"===e.$i18n.locale?"rtl":"ltr"}},[e.maintenanceMode?t("temporary-down",{staticClass:"h-full"}):t("div",[t("z-loading",{attrs:{active:e.$store.state.globalLoading,"is-full-page":""}}),e.showNav?t("z-nav"):e._e(),t("router-view",{staticClass:"pb-12 dark:text-white"}),t("z-footer",{directives:[{name:"show",rawName:"v-show",value:e.showFooter,expression:"showFooter"}]}),e.showPopup?t("offers-popup"):e._e()],1)],1)},l=[],c=(a("14d9"),function(){var e=this,t=e._self._c;return t("div",[t("my-zain-top-nav"),t("my-zain-main-nav",{attrs:{"mobile-menu-active":e.mobileMenuActive},on:{mobileMenu:()=>this.mobileMenu=!this.mobileMenu}}),t("my-zain-main-nav",{staticClass:"header-bg fixed top-0 z-40 z-50 w-full bg-black",class:{hidden:!e.fixedMainNavVisible&&!e.mobileMenuActive,"animate-slide-in-down":e.fixedMainNavVisible,"animate-slide-out-up":e.fixedMainNavSlideUpAnimation&&!e.mobileMenuActive},on:{mobileMenu:()=>this.mobileMenu=!this.mobileMenu}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.mobileMenuActive,expression:"mobileMenuActive"}],staticClass:"mobile-menu fixed right-0 z-50 w-full transform shadow-xl transition-all origin-top-end lg:hidden",class:e.mobileMenuClasses},[t("div",{staticClass:"bg-primary"},[t("select",{staticClass:"h-9 mx-auto white-select-arrow text-center text-sm font-bold text-white flex justify-center bg-transparent border-none text-center text-white mt-0 py-1.5",domProps:{value:e.$t("Personal")}},[t("option",[e._v(e._s(e.$t("Personal")))]),t("option",[e._v(e._s(e.$t("Business")))])])]),t("div",{staticClass:"flex justify-between px-4 py-5"},[t("a",{staticClass:"block px-3 py-2 text-xl font-semibold font-medium text-primary",attrs:{href:`https://www.kw.zain.com/${e.$i18n.locale}/shop`+e.shopURLParameters,"aria-current":"page"}},[t("span",{staticClass:"icon-cart-with-plus pe-2"}),e._v(" "+e._s(e.$t("Shop"))+" ")]),t("img",{staticClass:"inline-block w-6 px-2",class:{"rotate-180 transform":"ar"===e.$i18n.locale},attrs:{src:a("d0ec"),alt:"arrow"}})]),t("hr",{staticClass:"mx-2 border-t border-gray-400 opacity-50"}),t("div",{staticClass:"flex justify-between px-4 py-5"},[t("a",{staticClass:"block px-3 py-2 text-xl font-semibold font-medium text-white",attrs:{href:`https://www.kw.zain.com/${e.$i18n.locale}/support`+e.shopURLParameters,"aria-current":"page"}},[t("span",{staticClass:"icon-headphones-with-mic pe-2"}),e._v(" "+e._s(e.$t("Support"))+" ")]),t("img",{staticClass:"inline-block w-6 px-2",class:{"rotate-180 transform":"ar"===e.$i18n.locale},attrs:{src:a("d0ec"),alt:"arrow"}})]),t("hr",{staticClass:"mx-2 border-t border-gray-400 opacity-50"}),t("div",{staticClass:"flex justify-between px-4 py-5"},[t("a",{staticClass:"block flex px-3 py-2 text-xl font-semibold font-medium text-white",attrs:{href:`https://www.kw.zain.com/${e.$i18n.locale}/shop/internet-devices`+e.shopURLParameters,"aria-current":"page"}},[t("span",{staticClass:"icon-Group-1561 pe-2"}),t("span",[e._v(e._s(e.$t("5G")))])]),t("img",{staticClass:"inline-block w-6 px-2",class:{"rotate-180 transform":"ar"===e.$i18n.locale},attrs:{src:a("d0ec"),alt:"arrow"}})]),t("hr",{staticClass:"mx-2 border-t border-gray-400 opacity-50"}),t("div",{staticClass:"block py-6"},[t("a",{staticClass:"px-3 font-semibold uppercase text-white",on:{click:e.onClickUpdateCivilID}},[e._v(" "+e._s(e.$t("UpdateCivilID"))+" ")]),t("img",{staticClass:"inline-block w-2",class:{"rotate-180 transform":"ar"===e.$i18n.locale},attrs:{src:a("d0ec"),alt:"arrow"}})]),t("hr",{staticClass:"mx-2 border-t border-gray-400 opacity-50"}),t("div",{staticClass:"block pt-6"},[t("a",{staticClass:"px-3 font-semibold uppercase text-white",on:{click:()=>{this.mobileMenu=!1,this.$router.push("/pay")}}},[e._v(" "+e._s(e.$t("QuickPay"))+" ")]),t("img",{staticClass:"inline-block w-2",class:{"rotate-180 transform":"ar"===e.$i18n.locale},attrs:{src:a("d0ec"),alt:"arrow"}})]),t("div",{staticClass:"flex bg-white p-2 mx-3 mt-5 rounded-md"},[t("z-input",{staticClass:"mb-1 text-black w-full font-bold",attrs:{borderless:"",inputStyle:"color: black;","input-classes":"font-bold",placeholder:e.$t("Search")},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(()=>e.document.getElementById("search_b").click()).apply(null,arguments)}},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}),t("a",{staticClass:"rounded-md bg-primary p-3 text-white",attrs:{id:"search_b",href:"https://www.kw.zain.com/en/shop/search?q="+(e.searchQuery?e.searchQuery:"")+e.searchURLParameters}},[t("span",{staticClass:"icon-magnifying-glass px-6 text-xl"})])],1),t("div",{staticClass:"block pt-6 text-center text-white"},[t("a",{staticClass:"px-3",on:{click:()=>{e.$i18n.setLocale("en"),this.mobileMenu=!1}}},[e._v(" EN ")]),t("a",{staticClass:"px-3",on:{click:()=>{e.$i18n.setLocale("ar"),this.mobileMenu=!1}}},[e._v(" العربية ")])]),t("div",{staticClass:"block py-6 text-white"},[t("z-select",{staticClass:"mx-auto w-48",attrs:{"custom-classes":"bg-transparent border-primary"},on:{input:e.onCountryDropdownClick},model:{value:e.selectedCountry,callback:function(t){e.selectedCountry=t},expression:"selectedCountry"}},e._l(Object.keys(e.countries),(function(a){return t("option",{key:a+"lol",staticClass:"text-black",domProps:{value:a}},[e._v(" "+e._s(e.countries[a][e.$i18n.locale])+" ")])})),0)],1)]),t("my-zain-nav",{staticClass:"z-10 w-full"}),t("my-zain-profile-header",{directives:[{name:"show",rawName:"v-show",value:!["/pay","/payment","/profile","/update-civil-id","/verify-civil-id"].includes(e.$route.path),expression:"!['/pay', '/payment', '/profile', '/update-civil-id', '/verify-civil-id'].includes($route.path)"}],staticClass:"w-full",attrs:{id:"mz-profile-header"}})],1)}),d=[],u=function(){var e=this,t=e._self._c;return e.$store.state.isLoggedIn&&e.$store.state.msisdn?t("nav",[t("div",{staticClass:"bg-gray-100 hidden md:block dark:bg-gray-800"},[t("div",{staticClass:"max-w-5xl mx-auto px-2 sm:px-6 lg:px-8"},[t("div",{staticClass:"relative flex items-center justify-center text-gray-500 dark:text-gray-200 space-s-12"},[t("router-link",{staticClass:"flex items-center",class:e.menuItemClasses,attrs:{to:"/","exact-active-class":"active"}},[t("span",{staticClass:"icon-app-Home-Default pe-2 inline-block text-lg"}),t("span",[e._v(e._s(e.$t("Home")))])]),t("router-link",{class:e.menuItemClasses,attrs:{to:"/plan","exact-active-class":"active"}},[t("img",{staticClass:"px-2 inline-block h-5",attrs:{src:a("6f00"),alt:"menu-item"}}),t("span",[e._v(e._s(e.$t("MyPlan")))])]),t("router-link",{class:e.menuItemClasses,attrs:{to:"/usage","exact-active-class":"active"}},[t("img",{staticClass:"px-2 inline-block h-4",attrs:{src:a("18de"),alt:"menu-item"}}),t("span",[e._v(e._s(e.$t("Usage")))])]),e.$store.getters.isPostpaid?t("router-link",{class:e.menuItemClasses,attrs:{to:"/bills","exact-active-class":"active"}},[t("img",{staticClass:"px-2 inline-block h-5",attrs:{src:a("1ee8"),alt:"menu-item"}}),t("span",[e._v(e._s(e.$t("Bills")))])]):e._e(),t("router-link",{staticClass:"flex items-center",class:e.menuItemClasses,attrs:{to:"/offers","exact-active-class":"active"}},[t("span",{staticClass:"icon-app-Shop-Default pe-2 inline-block text-xl"}),t("span",[e._v(e._s(e.$t("Offers")))])])],1)])]),"/pay"===e.$route.path&&e.$store.state.windowWidth<767?e._e():t("div",{staticClass:"md:hidden bg-gray-100 dark:bg-gray-800 w-full px-3 sm:px-10 text-gray-font overflow-hidden fixed bottom-0 z-30 border-t border-gray-100 dark:border-gray-700 dark:text-gray-300",staticStyle:{"padding-bottom":"env(safe-area-inset-bottom)"}},[t("div",{staticClass:"pb-1 flex justify-between"},[t("router-link",{attrs:{"exact-active-class":"active-m",to:"/"}},[t("div",{staticClass:"px-2 py-1 cursor-pointer hover:bg-gray-200 hover:text-gray-700 text-sm flex flex-col items-center text-center"},[t("i",{staticClass:"icon-app-Home-Default inline-block mt-2 mb-2 h-5 text-lg"}),t("p",{staticClass:"text-xs"},[e._v(e._s(e.$t("Home")))])])]),t("router-link",{attrs:{"exact-active-class":"active-m",to:"/plan"}},[t("div",{staticClass:"px-2 py-1 cursor-pointer hover:bg-gray-200 hover:text-gray-700 text-sm flex flex-col items-center text-center"},[t("img",{staticClass:"inline-block mt-2 mb-2 h-5",attrs:{src:a("6f00"),alt:"menu-item"}}),t("p",{staticClass:"text-xs"},[e._v(e._s(e.$t("MyPlan")))])])]),t("router-link",{attrs:{"exact-active-class":"active-m",to:"/usage"}},[t("div",{staticClass:"px-2 py-1 cursor-pointer hover:bg-gray-200 hover:text-gray-700 text-sm flex flex-col items-center text-center"},[t("img",{staticClass:"inline-block mt-2 mb-2 h-5",attrs:{src:a("18de"),alt:"menu-item"}}),t("p",{staticClass:"text-xs"},[e._v(e._s(e.$t("Usage")))])])]),e.$store.getters.isPostpaid?t("router-link",{attrs:{"exact-active-class":"active-m",to:"/bills"}},[t("div",{staticClass:"px-2 py-1 cursor-pointer hover:bg-gray-200 hover:text-gray-700 text-sm flex flex-col items-center text-center"},[t("img",{staticClass:"inline-block mt-2 mb-2 h-5",attrs:{src:a("1ee8"),alt:"menu-item"}}),t("p",{staticClass:"text-xs"},[e._v(e._s(e.$t("Bills")))])])]):e._e(),t("router-link",{attrs:{"exact-active-class":"active-m",to:"/offers"}},[t("div",{staticClass:"px-2 py-1 cursor-pointer hover:bg-gray-200 hover:text-gray-700 text-sm flex flex-col items-center text-center"},[t("i",{staticClass:"icon-app-Shop-Default inline-block mt-2 mb-2 h-5 text-lg"}),t("p",{staticClass:"text-xs"},[e._v(e._s(e.$t("Offers")))])])])],1)])]):e._e()},p=[],m={name:"MyZainNav",data:()=>({menuItemClasses:"border-b-2 border-transparent hover:border-primary hover:text-black dark:hover:text-white py-3"})},h=m,v=(a("e73f"),a("2877")),g=Object(v["a"])(h,u,p,!1,null,"d13cf92a",null),f=g.exports,y=function(){var e=this,t=e._self._c;return t("label",{staticClass:"block text-sm font-medium"},[t("span",{class:{required:e.required}},[e._v(e._s(e.getLabel))]),t("span",{staticClass:"relative"},[t("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],staticClass:"mt-1 w-full me-6 px-3 py-2.5 rounded-md focus:outline-none focus:ring focus:ring-blue-200 focus:border-blue-400",class:[{"border-danger":"danger"===this.getType&&this.isBorder},{[e.customClasses]:e.customClasses},{"bg-gray-100 dark:bg-gray-800 dark:placeholder-gray-100 border border-gray-200 dark:border-gray-500":!this.borderless&&!e.customClasses,"bg-white text-primary border-0":this.borderless&&!e.customClasses}],on:{input:e.onInput,change:function(t){var a=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.computedValue=t.target.multiple?a:a[0]}}},"select",e.$attrs,!1),[e.placeholder?t("option",{attrs:{value:"",disabled:"",selected:""}},[e._v(e._s(e.placeholder))]):e._e(),e._t("default")],2)])])},b=[],x={props:{type:{type:[String,Object]},label:{type:String}},computed:{getType(){let e;if(this.type&&(e=this.type),this.$parent.$data.isField&&this.$parent.type&&(e=this.$parent.type),e&&"string"===typeof e)return e;if(e&&"object"===typeof e)for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t])return t},getLabel(){return this.label?this.label:this.$parent.$data.isField&&this.$parent.label?this.$parent.label:void 0}}},C={inheritAttrs:!1,name:"ZSelect",mixins:[x],props:{value:[String,Number],placeholder:{type:String},borderless:{type:Boolean,default:!1},customClasses:{type:String,default:""},isBorder:{type:Boolean,default:!0},required:{type:Boolean,default:!1}},computed:{computedValue:{get(){return this.localValue},set(e){this.localValue=e,this.$emit("input",e)}}},watch:{value(e){this.computedValue=e}},data(){return{localValue:""}},methods:{onInput(e){this.computedValue=e.target.value}},mounted(){this.localValue=this.value}},w=C,_=(a("9116"),Object(v["a"])(w,y,b,!1,null,"478b3fc9",null)),A=_.exports,S=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"bg-zainPurple-dark w-full z-20 md:z-auto relative"},[e.isLoggedIn?t("div",{staticClass:"flex text-white max-w-6xl py-3 mx-auto h-full md:px-3 md:justify-between md:items-center"},[e.hasLines?t("div",{staticClass:"flex flex-1 lg:hidden"}):e._e(),t("div",{staticClass:"flex flex-col flex-initial space-y-1 text-center lg:flex-row lg:items-end lg:space-s-6 lg:w-full ms-3 md:ms-0",class:{"flex-grow":!e.isLoggedIn||!e.hasLines}},[e.$store.state.UserInfo.data?t("h1",{staticClass:"text-lg lg:text-3xl lg:ml-3.5"},[e._v(" "+e._s(e.$t("Hello"))+" "+e._s(e.$store.getters.getFirstName)+"! ")]):e._e(),e.isLoggedIn&&e.hasLines?t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.onClickOutside,expression:"onClickOutside"}],staticClass:"cursor-pointer sm:relative",attrs:{dir:"auto"}},[t("div",{staticClass:"flex flex-wrap-reverse justify-center",on:{click:e.onClickNumbers}},["ar"===this.$i18n.locale?t("img",{staticClass:"px-2 transform transition-transform inline-block",class:{"rotate-90":!e.isNumbersDropdownActive,"-rotate-90":e.isNumbersDropdownActive},attrs:{src:a("d0ec"),alt:"arrow"}}):e._e(),t("span",[e._v(" "+e._s(e.$store.state.msisdn)+" ")]),e.$store.getters.getMsisdnNickname(e.$store.state.msisdn)?t("span",[e._v("  -  ")]):e._e(),e.$store.getters.getMsisdnNickname(e.$store.state.msisdn)?t("span",[e._v(" "+e._s(e.$store.getters.getMsisdnNickname(e.$store.state.msisdn))+" ")]):e._e(),"en"===this.$i18n.locale?t("img",{staticClass:"px-2 transform transition-transform inline-block",class:{"rotate-90":!e.isNumbersDropdownActive,"-rotate-90":e.isNumbersDropdownActive},attrs:{src:a("d0ec"),alt:"arrow"}}):e._e()]),e.isNumbersDropdownActive?t("div",{staticClass:"absolute w-full start-0 sm:w-96 sm:rounded-md shadow-lg bg-white dark:bg-gray-700 dark:text-white z-40 mt-3 md:mt-2 ring-1 ring-black ring-opacity-5 focus:outline-none z-10 text-zainPurple",attrs:{role:"menu","aria-orientation":"vertical","aria-labelledby":"user-menu",dir:"auto"}},[t("div",{ref:"numberDropdownScroll",staticClass:"overflow-y-auto my-numbers-drop overscroll-contain",staticStyle:{"max-height":"50vh"}},e._l(e.getCustomerLines,(function(a,s){return t("div",{key:s,staticClass:"animate-fade-in-down"},[t("div",{staticClass:"block p-4 text-sm hover:bg-pink-200 hover:bg-opacity-30 rounded-md flex justify-between items-center text-lg",class:{"bg-gray-100 bg-opacity-30 cursor-default":e.$store.state.msisdn===a.msisdn},attrs:{role:"menuitem"},on:{click:function(t){return t.target!==t.currentTarget?null:e.setMsisdn(a.msisdn)}}},[t("span",{staticClass:"text-start"},[a.nickname?t("span",{staticClass:"font-bold text-zainPurple dark:text-white pr-1",attrs:{dir:"auto"},on:{click:function(t){return t.target!==t.currentTarget?null:e.setMsisdn(a.msisdn)}}},[e._v(" "+e._s(a.nickname)+" ")]):t("a",{staticClass:"select-none",on:{click:function(t){return e.onAddNickname(a.msisdn)}}},[t("span",{staticClass:"icon-add-1 pe-2 text-xs"}),t("span",{staticClass:"hover:underline"},[e._v(e._s(e.$t("AddNickname")))])]),a.is_main?t("z-tag",{staticClass:"ms-2",attrs:{size:"small"}},[e._v(" "+e._s(e.$t("Primary"))+" ")]):e._e()],1),t("span",{staticClass:"hover:underline ml-3",on:{click:function(t){return t.target!==t.currentTarget?null:e.setMsisdn(a.msisdn)}}},[e._v(" "+e._s(a.msisdn)+" ")])]),e.currentlyAddingNicknameFor===a.msisdn?t("div",{staticClass:"block flex w-full px-2 items-center animate-fade-in-down mb-2"},[t("z-input",{staticClass:"w-full",attrs:{placeholder:e.$t("EnterNickname"),"input-classes":"text-black dark:text-white dark:placeholder-white bg-opacity-0 placeholder-gray-300"},model:{value:e.addNicknameInput,callback:function(t){e.addNicknameInput=t},expression:"addNicknameInput"}}),t("z-button",{staticClass:"ms-2 mt-1",staticStyle:{width:"52px",height:"45px"},attrs:{paddingless:"",loading:e.addNicknameLoading},on:{click:e.onConfirmAddNNickname}},[t("span",{staticClass:"icon-check-mark-button"})])],1):e._e(),s0,expression:"$store.getters.getTotalUnreadMessages > 0"}],staticClass:"absolute top-0 right-0 inline-flex h-5 w-5 rounded-full bg-primary text-xs text-center justify-center items-center"},[e._v(" "+e._s(e.$store.getters.getTotalUnreadMessages)+" ")])])])],1):e._e()]):e._e(),e.isLoggedIn&&e.hasLines?e._e():t("div",{staticClass:"w-full shadow-lg p-3 bg-white ring-1 ring-black ring-opacity-5 bg-zainPurple-light text-white"},[t("div",{staticClass:"text-center max-w-6xl mx-auto"},[e.isLoggedIn?e.hasLines?e._e():t("div",{staticClass:"flex flex-col lg:flex-row items-center justify-between"},[t("div",{staticClass:"text-start"},[e._v(" "+e._s(e.$t("NoLinesInAccount"))+" ")]),"keycloak"===e.$store.state.loginType?t("z-button",{staticClass:"mt-2 w-full lg:w-auto",attrs:{outlined:"",type:"white"},on:{click:function(t){return e.$router.replace("/profile")}}},[t("span",{staticClass:"icon-add-1 pe-4 text-xs"}),t("span",{staticClass:"pe-2"},[e._v(" "+e._s(e.$t("AddLine"))+" ")])]):e._e(),t("div",{staticClass:"mt-1 text-center"},[t("a",{staticClass:"underline",on:{click:e.onLogout}},[e._v(" "+e._s(e.$t("Logout"))+" ")])])],1):t("div",{staticClass:"flex items-center justify-between"},[t("div",{staticClass:"text-start"},[e._v(e._s(e.$t("SignInForTailored")))]),t("z-button",{staticClass:"ms-1 w-32 whitespace-nowrap",on:{click:function(t){return e.goToLoginPage()}}},[e._v(" "+e._s(e.$t("LogIn"))+" ")])],1)])])])},T=[],k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-5 inline-block inline-flex flex-col px-2 justify-center",class:e.backgroundClasses},[t("p",{staticClass:"font-semibold",class:e.textClasses},[e._t("default")],2)])},P=[],$={name:"ZTag",props:{size:{type:String,default:()=>"medium"},type:{type:String,default:()=>"primary"},rounded:{type:Boolean,default:()=>!0}},computed:{backgroundClasses(){let e=[];switch(this.size){case"small":e=[...e,"px-3 py-2"];break;case"medium":e=[...e,"px-4 py-3"];break;case"large":e=[...e,"px-5 py-4"];break}switch(this.type){case"primary":e=[...e,"bg-primary"];break;case"secondary":e=[...e,"bg-secondary"];break;case"info":e=[...e,"bg-info"];break;case"success":e=[...e,"bg-green"];break;case"warning":e=[...e,"bg-warning"];break;case"danger":e=[...e,"bg-danger"];break;case"purple":e=[...e,"bg-purple-100"];break}return e=[...e,this.rounded?"rounded-full":"rounded-sm"],e},textClasses(){let e=[];switch(this.size){case"small":e=[...e,"text-xs"];break;case"medium":e=[...e,"text-base"];break;case"large":e=[...e,"text-lg"];break}switch(this.type){case"info":case"danger":case"warning":case"primary":case"success":e=[...e,"text-white"];break;case"secondary":e=[...e,"text-white"];break;case"purple":e=[...e,"text-purple-900"];break}return e}}},M=$,O=Object(v["a"])(M,k,P,!1,null,"7f449ff0",null),N=O.exports,E=function(){var e=this,t=e._self._c;return t("button",e._g(e._b({staticClass:"transition ease-in duration-200 focus:outline-none focus:ring-2 focus:ring-offset focus:ring-blue-200 focus:ring-blue-400 text-center rounded-lg btn-active",class:e.classes,attrs:{type:"button"}},"button",e.$attrs,!1),e.$listeners),[e.isLoading?t("svg",{staticClass:"animate-spin h-5 w-5 text-white mx-auto",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}},[t("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t("path",{staticClass:"opacity-75",attrs:{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})]):e._t("default")],2)},D=[],I={props:{outlined:{type:Boolean,default:()=>!1},borderless:{type:Boolean,default:()=>!1},size:{type:String,default:()=>"medium"},type:{type:String,default:()=>"primary"},paddingless:{type:Boolean,default:()=>!1}},name:"ZButton",computed:{classes(){var e,t;let a=[];switch(this.size){case"xsmall":a=a.concat(this.paddingless?["text-xs"]:["py-2","px-2","text-xs"]);break;case"small":a=a.concat(this.paddingless?["text-sm"]:["py-2","px-4","text-sm"]);break;case"medium":a=a.concat(this.paddingless?["text-base"]:["py-3","px-4","text-base font-black"]);break;case"large":a=a.concat(this.paddingless?["text-xl"]:["py-2","px-4","text-xl font-black"]);break}if(""===(null===(e=this.$attrs)||void 0===e?void 0:e.disabled)||null!==(t=this.$attrs)&&void 0!==t&&t.disabled)a=[...a,"cursor-not-allowed","bg-gray-200","text-gray-400"];else if(this.borderless)a=[...a,"underline","text-gray-600","hover:text-primary"];else{var s,i;if(a=[...a,"hover:shadow-lg"],!this.outlined)a=[...a,null===(s=this.types)||void 0===s?void 0:s[this.type],"text-white","hover:bg-transparent","border-2"];if(this.outlined)a=[...a,null===(i=this.outlinedTypes)||void 0===i?void 0:i[this.type],"border-2","bg-transparent","hover:text-white","dark:text-white"]}return a},isLoading(){var e;return""===(null===(e=this.$attrs)||void 0===e?void 0:e.loading)||this.$attrs.loading}},data(){return{types:{primary:"bg-primary hover:text-primary border-primary",secondary:"bg-secondary hover:text-secondary border-secondary",white:"bg-transparent hover:text-primary border-white"},outlinedTypes:{primary:"border-primary text-primary hover:bg-primary",secondary:"border-secondary text-secondary hover:bg-secondary",white:"border-white text-white hover:bg-primary"}}}},B=I,L=(a("b1d7"),Object(v["a"])(B,E,D,!1,null,null,null)),R=L.exports,U=function(){var e=this,t=e._self._c;return t("div",{class:{"flex items-center":e.horizontal}},[t("label",{staticClass:"text-sm font-medium block",class:{"flex items-center me-3":e.horizontal},attrs:{for:"cc"+e.$uuid()}},[e._v(" "+e._s(e.getLabel)+" "),e._t("label")],2),t("div",{staticClass:"relative"},[t("div",{staticClass:"flex items-center"},[e.prefix?t("span",{staticClass:"absolute start-2 font-bold text-secondary text-base py-2.5 mt-1"},[e._v(e._s(e.prefix))]):e._e(),e.suffix?t("span",{staticClass:"absolute end-2 font-bold text-secondary text-base py-2.5 mt-1"},[e._v(e._s(e.suffix))]):e._e(),"textarea"!==e.inputType?t("input",e._b({class:[e.classes,e.inputClasses],style:e.inputStyle,attrs:{dir:e.direction,id:"cc"+e.$uuid(),placeholder:e.placeholder,name:e.getLabel,type:e.inputType,maxlength:e.maxLength},domProps:{value:e.computedValue},on:{paste:t=>(e.$emit("paste",t),!1),input:e.onInput}},"input",e.$attrs,!1)):t("textarea",{class:[e.classes,e.inputClasses],attrs:{dir:e.direction},domProps:{value:e.computedValue},on:{input:e.onInput}}),e._v(" "),t("div",{staticClass:"absolute end-2 items-end"},[e._t("right")],2)])])])},z=[],j={inheritAttrs:!1,name:"ZInput",mixins:[x],props:{direction:{type:String,default:""},value:[String,Number],outlined:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},inputType:{type:String,default:"text"},maxLength:{type:String,default:""},placeholder:{type:String},inputClasses:String,inputStyle:String,prefix:String,suffix:String,horizontal:Boolean},computed:{computedValue:{get(){return this.localValue},set(e){this.localValue=e,this.$emit("input",e),this.$emit("change",e)}},inputListeners:function(){let e=this;return Object.assign({},this.$listeners,{input:function(t){e.$emit("input",t.target.value)}})},classes(){return[{"bg-gray-100 dark:bg-gray-800 border rounded-md":!this.outlined&&!this.borderless,"border-primary border-b border-t-0 border-l-0 border-r-0 px-0":this.outlined&&!this.borderless,"bg-white text-primary border-0":this.borderless},{"cursor-not-allowed":""===this.$attrs.disabled||this.$attrs.disabled},{"border border-gray-200 dark:border-gray-500":!this.borderless},"mt-1 w-full","py-2.5 dark:placeholder-gray-700 dark:text-black focus:border-transparent focus:outline-none","focus:ring focus:ring-blue-200 focus:border-blue-400",{"border-danger":"danger"===this.getType,"border-green":"success"===this.getType},{"ps-10 text-left":this.prefix,"pe-10 text-left":this.suffix},{"pe-7 text-start":this.hasRightSlot}]},hasRightSlot(){return!!this.$scopedSlots.right}},data(){return{localValue:this.value,id:0}},watch:{value(e){this.localValue=e}},methods:{onInput(e){this.computedValue=e.target.value}},beforeMount(){this.id=this.$uuid()}},F=j,V=(a("17de"),Object(v["a"])(F,U,z,!1,null,"1f187122",null)),H=V.exports,G=a("d722");a("d9e2");const Z="undefined"!==typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0),q=Z?["touchstart","click"]:["click"],K=[];function Y(e){const t="function"===typeof e;if(!t&&"object"!==typeof e)throw new Error(`v-click-outside: Binding value should be a function or an object, typeof ${e} given`);return{handler:t?e:e.handler,middleware:e.middleware||(e=>e),events:e.events||q}}function W({el:e,event:t,handler:a,middleware:s}){const i=t.target!==e&&!e.contains(t.target);i&&s(t,e)&&a(t,e)}function Q(e,{value:t}){const{handler:a,middleware:s,events:i}=Y(t),n={el:e,eventHandlers:i.map(t=>({event:t,handler:t=>W({event:t,el:e,handler:a,middleware:s})}))};n.eventHandlers.forEach(({event:e,handler:t})=>document.addEventListener(e,t)),K.push(n)}function X(e,{value:t}){const{handler:a,middleware:s,events:i}=Y(t),n=K.filter(t=>t.el===e)[0];n.eventHandlers.forEach(({event:e,handler:t})=>document.removeEventListener(e,t)),n.eventHandlers=i.map(t=>({event:t,handler:t=>W({event:t,el:e,handler:a,middleware:s})})),n.eventHandlers.forEach(({event:e,handler:t})=>document.addEventListener(e,t))}function J(e){const t=K.filter(t=>t.el===e)[0];t.eventHandlers.forEach(({event:e,handler:t})=>document.removeEventListener(e,t))}const ee={bind:Q,update:X,unbind:J,instances:K};var te=ee,ae=a("4360"),se={data(){return{unwatchFunctions:[]}},beforeDestroy(){for(let e=0;ee[a].isDirty,e=>{e&&this.fetchResource(s)});this.unwatchFunctions.push(i)}},async fetchResource(e){await this.$store.dispatch("fetchResource",e)}}},ie=function(){var e=this,t=e._self._c;return t("validation-observer",{ref:"observer",staticClass:"p-12",attrs:{tag:"div"}},[t("validation-provider",{attrs:{rules:"required|kuwait_msisdn",mode:"lazy",name:"Line"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-6 text-start",attrs:{message:a[0],type:{danger:a[0]}}},[t("z-input",{directives:[{name:"cleave-numbers",rawName:"v-cleave-numbers",value:{numeralDecimalScale:0,numeralIntegerScale:8},expression:"{numeralDecimalScale: 0, numeralIntegerScale: 8}"}],staticClass:"w-full",attrs:{required:"",pattern:"[0-9]*",label:e.$t("EnterLineNumber"),type:"number",min:"8",max:"8"},model:{value:e.newLineInput,callback:function(t){e.newLineInput=t},expression:"newLineInput"}})],1)]}}])}),t("z-input",{staticClass:"text-start w-full",attrs:{label:e.$t("EnterNickname")},model:{value:e.newLineNickname,callback:function(t){e.newLineNickname=t},expression:"newLineNickname"}}),t("z-button",{staticClass:"mt-12 w-full max-w-xs uppercase",on:{click:function(t){return e.submit()}}},[e._v(" "+e._s(e.$t("AddLine"))+" ")])],1)},ne=[],re=a("7bb1"),oe=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-white dark:bg-gray-700 dark:text-white rounded-lg text-center flex-col",class:{"overflow-hidden":"hidden"===e.overflow,[e.shadow]:!0}},[e.$slots.header?t("div",{staticClass:"px-4 py-5 text-lg leading-6 font-medium text-left text-gray-900 dark:text-white"},[e._t("header")],2):e._e(),t("div",{class:{"border-t border-gray-200":this.$slots.header}},[e._t("default")],2),e.$slots.footer?t("div",{staticClass:"text-sm font-semibold text-left text-purple-900 dark:text-purple-300 bg-purple-200 dark:bg-gray-800 align-middle"},[e._t("footer")],2):e._e()])},le=[],ce={props:{overflow:{type:String,default:"hidden"},shadow:{type:String,default:"shadow-xl"}},name:"ZCard"},de=ce,ue=Object(v["a"])(de,oe,le,!1,null,"af76353e",null),pe=ue.exports,me=function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-8xl sm:text-9xl",style:e.styleVars},[t("div",{staticClass:"pie-wrapper"},[t("div",{staticClass:"label flex flex-wrap flex-col content-center justify-center"},[e._t("default")],2),t("div",[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1 -1 34 34"}},[t("circle",{staticClass:"progress-bar__background",attrs:{cx:"16",cy:"16",r:"15.9155"}}),t("circle",{staticClass:"progress-bar__progress js-progress-bar",attrs:{cx:"16",cy:"16",r:"15.9155"}})])])])])},he=[],ve={name:"ZCircleProgress",components:{},computed:{styleVars(){return{"--circle-color":this.circleColor,"--progress-value":100-this.value,"--progress-bar-stroke-width":1.9}}},props:{value:{type:Number,default:()=>100},circleColor:{type:String,default:()=>"rgba(76, 29, 149, 1)"}},data:()=>({localValue:0})},ge=ve,fe=(a("9523"),Object(v["a"])(ge,me,he,!1,null,"f49317f6",null)),ye=fe.exports,be=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeOnClickOutside,expression:"closeOnClickOutside"}]},[t("label",{staticClass:"block text-sm font-medium mb-1",attrs:{id:e.getUUID()}},[e._v(" "+e._s(e.label)+" ")]),t("div",{staticClass:"relative"},[t("button",{staticClass:"relative w-full bg-white dark:bg-opacity-10 border-b border-primary hover:border-black pl-3 pr-10 py-3 text-left cursor-pointer focus:outline-none sm:text-sm",attrs:{type:"button","aria-haspopup":"listbox","aria-expanded":e.isOpen.toString(),"aria-labelledby":e.getUUID()},on:{click:()=>e.isOpen=!e.isOpen}},[t("span",{staticClass:"flex items-center"},[t("span",{staticClass:"block text-start truncate w-full font-bold h-5 select-none h-full"},[e.multiSelect?t("span",[e.$i18n&&e.$i18n.locale?t("span",[e._v(" "+e._s(e.selected.length)+" "+e._s(e.$t("OutOf"))+" "+e._s(e.items.filter(e=>!e.isSelectAll).length)+" "+e._s(e.$t("Selected"))+" ")]):t("span",[e._v(" "+e._s(e.selected.length)+" out of "+e._s(e.items.filter(e=>!e.isSelectAll).length)+" Selected ")]),e.multiSelectLabelField&&e.selected.length>0?t("span",{staticClass:"text-gray-500"},[e._v("("+e._s(e.selected.map(t=>t[e.multiSelectLabelField]).join(", "))+")")]):e._e()]):e.items.length>0&&e.items.find(t=>t.value===e.selected)?t("z-slot-component",{attrs:{component:e.items.find(t=>t.value===e.selected)}}):e._e()],1)]),t("span",{staticClass:"ml-3 absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none"},[t("svg",{staticClass:"transform transition-transform duration-300",class:{"rotate-180":e.isOpen},staticStyle:{"transform-origin":"center"},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"13.838",height:"8.758",viewBox:"0 0 13.838 8.758"}},[t("path",{attrs:{id:"Path_2439","data-name":"Path 2439",d:"M-12874.445-18625.674l6,6,6-6",transform:"translate(12875.364 18626.594)",fill:"none",stroke:"#d12b8a","stroke-width":"2.6"}})])])]),e.screenWidth()>=768||e.alwaysDropdown?t("ul",{directives:[{name:"show",rawName:"v-show",value:e.isOpen,expression:"isOpen"}],staticClass:"absolute mt-1 w-full bg-white dark:bg-gray-800 shadow-lg max-h-72 rounded-md py-1 text-base ring-1 ring-black ring-opacity-5 overflow-auto focus:outline-none sm:text-sm z-10"},[e._t("default")],2):t("z-modal",{attrs:{active:e.isOpen,"can-cancel":""},on:{"update:active":function(t){e.isOpen=t}}},[t("div",{staticClass:"p-5"},[t("p",[e._v(e._s(e.mobileDropDownLabel))]),t("ul",{staticClass:"list-none"},[e._t("default")],2)])])],1)])},xe=[];function Ce(e){return e&&e._isVue}var we={name:"ZSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh(){this.$forceUpdate()}},created(){Ce(this.component)&&this.component.$on(this.event,this.refresh)},beforeDestroy(){Ce(this.component)&&this.component.$off(this.event,this.refresh)},render(e){if(Ce(this.component))return e(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}},_e=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.localActive,expression:"localActive"}],staticClass:"fixed z-50 inset-0 overflow-y-auto",class:"bg-black bg-opacity-"+e.bgOpacity,attrs:{"aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"}},[t("div",{staticClass:"flex items-center flex-col justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:p-0 transition-opacity",class:e.overlayClasses},[t("div",{staticClass:"fixed inset-0",attrs:{"aria-hidden":"true"},on:{click:()=>{e.canClickOutside&&e.onClickCancel()}}}),t("div",{ref:"modal",staticClass:"inline-block rounded-xl overflow-hidden shadow-xl transform transition-all my-4 align-middle w-full overflow-x-hidden panel",class:[...e.panelClasses,e.maxWidthClass],style:e.hasMaxHeight?"max-height: 75vh;":""},[t("div",{staticClass:"bg-white dark:bg-gray-700 dark:text-white"},[e.canCancel?t("span",{staticClass:"absolute right-2 top-2 cursor-pointer",on:{click:e.onClickCancel}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("20f2"),alt:"Cancel"}})]):e._e(),e.component?t(e.component,e._g(e._b({tag:"component",attrs:{"can-cancel":e.canCancel},on:{close:e.close}},"component",e.props,!1),e.events)):e.content?[t("div",{staticClass:"p-6",domProps:{innerHTML:e._s(e.content)}})]:e._t("default")],2),e.canConfirm||e.canCancel&&e.cancelLabel?t("div",{staticClass:"bg-gray-50 dark:bg-gray-800 px-4 py-3 sm:px-6 flex flex-row-reverse"},[e.canConfirm?t("z-button",{staticClass:"ms-3",on:{click:e.onClickConfirm}},[e._v(" "+e._s(e.confirmLabel)+" ")]):e._e(),e.canCancel&&e.cancelLabel?t("z-button",{staticClass:"bg-transparent bg-gray-200 no-underline",attrs:{borderless:""},on:{click:e.onClickCancel}},[e._v(" "+e._s(e.cancelLabel)+" ")]):e._e()],1):e._e()]),e._t("belowModal")],2)])},Ae=[];a("13d5");function Se(e){"undefined"!==typeof e.remove?e.remove():"undefined"!==typeof e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}const Te=e=>"object"===typeof e&&!Array.isArray(e),ke=(e,t,a=!1)=>{if(a||!Object.assign){const s=a=>Te(t[a])&&null!==e&&e.hasOwnProperty(a)&&Te(e[a]),i=Object.getOwnPropertyNames(t).map(i=>({[i]:s(i)?ke(e[i],t[i],a):t[i]})).reduce((e,t)=>({...e,...t}),{});return{...e,...i}}return Object.assign(e,t)},Pe=ke;let $e;function Me(e,t){if("object"!==typeof e)return e===t;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(let i of a)if(e[i]!==t[i])return!1;return!0}function Oe(e,t,a){return e[a]===t[a]}var Ne=a("e181"),Ee={name:"ZModal",components:{ZButton:R},props:{component:[Object,Function,String],content:[String,Array],events:Object,props:Object,hasModalCard:Boolean,active:{type:Boolean,default:()=>!1},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},cancelLabel:{type:String,default:""},canConfirm:Boolean,onConfirm:{type:Function,default:()=>{}},confirmLabel:{type:String,default:"OK"},canClickOutside:{type:Boolean,default:()=>!0},bgOpacity:{type:Number,default:40},programmatic:Boolean,maxWidthClass:{type:String,default:()=>"max-w-lg"},hasMaxHeight:{type:Boolean,default:()=>!0}},data:()=>({localActive:!1,enter:["ease-out","duration-300"],exit:["ease-in","duration-200"],enterOverlayFrom:["opacity-0"],enterOverlayTo:["opacity-100"],exitOverlayFrom:["opacity-100"],exitOverlayTo:["opacity-0"],enterPanelFrom:["opacity-0","translate-y-4","sm:translate-y-0","sm:scale-95"],enterPanelTo:["opacity-100","translate-y-0","sm:scale-100"],exitPanelFrom:["opacity-100","translate-y-0","sm:scale-100"],exitPanelTo:["opacity-0","translate-y-4","sm:translate-y-0","sm:scale-95"],overlayClasses:[],panelClasses:[],bsl:{disableBodyScroll:Ne["b"],clearAllBodyScrollLocks:Ne["a"]}}),computed:{},watch:{active:{handler:function(){this.active?this.enterAnimation():this.exitAnimation()}}},methods:{onClickConfirm(){this.onConfirm(),this.close()},onClickCancel(){this.onCancel(),this.close()},close(){this.$emit("update:active",!1),this.programmatic&&this.exitAnimation()},enterAnimation(){this.overlayClasses=[...this.enter,...this.enterOverlayFrom],this.panelClasses=[...this.enter,...this.enterPanelFrom],this.localActive=!0;const e=this;setTimeout(()=>{var t;e.overlayClasses=[...e.enter,...e.enterOverlayTo],e.panelClasses=[...e.exit,...e.enterPanelTo],null===e||void 0===e||null===(t=e.bsl)||void 0===t||t.disableBodyScroll(this.$refs.modal)},0)},exitAnimation(){this.overlayClasses=[...this.exit,...this.exitOverlayTo],this.panelClasses=[...this.exit,...this.exitPanelTo];const e=this;setTimeout(()=>{e.localActive=!1,e.bsl.clearAllBodyScrollLocks(),e.programmatic&&(e.$destroy(),Se(this.$el))},200)}},beforeDestroy(){var e;null===(e=this.bsl)||void 0===e||e.clearAllBodyScrollLocks()},beforeMount(){this.programmatic&&this.$parent.$el.appendChild(this.$el)},mounted(){this.programmatic?this.enterAnimation():this.localActive=this.active}},De=Ee,Ie=(a("fce8"),Object(v["a"])(De,_e,Ae,!1,null,"1861030c",null)),Be=Ie.exports,Le={name:"ZListBox",components:{ZModal:Be,ZSlotComponent:we},provide(){return{parentInstance:this}},directives:{clickOutside:te},props:{label:{type:String},value:{type:[Number,String,Object,Array],default:0},multiSelect:{type:Boolean,default:!1},multiSelectLabelField:{type:String,default:null},alwaysDropdown:{type:Boolean,default:!1},mobileDropDownLabel:{type:String,default:"Select an option"}},data:()=>({isOpen:!1,selected:null,uuid:null,items:[]}),methods:{selectItem(e){if(this.multiSelect){var t;this.selected||(this.selected=[]);const s=null===(t=this.items.filter(e=>e.isSelectAll))||void 0===t?void 0:t[0];if(e.isSelectAll)this.selected.length===(s?this.items.length-1:this.items.length)?(this.selected=this.items.filter(e=>{var t;return!(null!==e&&void 0!==e&&null!==(t=e.value)&&void 0!==t&&t.canRemove)&&!e.isSelectAll}).map(e=>e.value),s&&(s.isSelectAllSelected=!1)):(this.selected=this.items.filter(e=>!e.isSelectAll).map(e=>e.value),s&&(s.isSelectAllSelected=!0));else{const t=this.multiSelectLabelField?Oe:Me,i=this;if(this.selected.findIndex(a=>t(a,e.value,i.multiSelectLabelField))>-1){var a;if(null===e||void 0===e||null===(a=e.value)||void 0===a||!a.canRemove)return;this.selected=this.selected.filter(a=>!t(a,e.value,i.multiSelectLabelField)),s&&(s.isSelectAllSelected=!1)}else this.selected.push(e.value),this.selected.length===(s?this.items.length-1:this.items.length)&&s&&(s.isSelectAllSelected=!0)}}else this.selected=e.value,this.isOpen=!1;this.$emit("input",this.selected)},getUUID(){return this.uuid||(this.uuid="listbox-"+this.$uuid()),this.uuid},closeOnClickOutside(){this.isOpen=!1},registerItem(e){return this.items.push(e)},unregisterItem(e){this.items=this.items.filter(t=>t!==e)},screenWidth(){return window.innerWidth}},watch:{value:{handler:function(e){this.selected=e}}},beforeMount(){this.selected=this.value}},Re=Le,Ue=Object(v["a"])(Re,be,xe,!1,null,null,null),ze=Ue.exports,je=function(){var e=this,t=e._self._c;return t("li",{tag:"div",staticClass:"list-box-item text-gray-900 dark:text-white select-none relative py-2 pl-3 pr-3 cursor-pointer border-gray-200",class:{" bg-primary bg-opacity-10 ":e.isSelected&&e.highlightBackground},attrs:{id:"lb-"+this.$uuid(),role:"option"},on:{click:e.selectItem,mouseenter:e.itemMouseEnter,mouseleave:e.itemMouseLeave}},[t("div",{staticClass:"font-normal block w-full flex justify-between items-center",class:{"text-primary font-bold":e.isSelected}},[t("span",{staticClass:"inline-block flex-grow-0 me-2 w-4"},[e.customCheckbox?t("span",[e.isSelected?t("span",[e._t("activeCheckbox")],2):t("span",[e._t("notActiveCheckbox")],2)]):t("span",[e.isSelected?t("span",{staticClass:"icon-check-mark-button"}):e._e()])]),t("span",{staticClass:"flex-grow"},[e._t("default")],2)])])},Fe=[],Ve={name:"ZListBoxItem",props:{value:{type:[String,Number,Object]},isSelectAll:{type:Boolean,default:!1},customCheckbox:{type:Boolean,default:!1},highlightBackground:{type:Boolean,default:!1}},inject:["parentInstance"],data:()=>({isHovering:!1,isSelectAllSelected:!1}),computed:{isSelected(){return this.isSelectAll?this.isSelectAllSelected:this.parentInstance.multiSelect?this.parentInstance.selected.findIndex(e=>Oe(e,this.value,this.parentInstance.multiSelectLabelField))>-1:this.parentInstance.selected===this.value}},methods:{selectItem(){this.parentInstance.selectItem(this)},itemMouseEnter(e){e.target.classList.add("text-primary","bg-pink-200"),e.target.classList.remove("text-gray-900")},itemMouseLeave(e){e.target.classList.add("text-gray-900"),e.target.classList.remove("text-primary","bg-pink-200")}},mounted(){this.parentInstance.registerItem(this)},beforeDestroy(){this.parentInstance.unregisterItem(this)}},He=Ve,Ge=(a("1062"),Object(v["a"])(He,je,Fe,!1,null,"6b568f73",null)),Ze=Ge.exports,qe=function(){var e=this,t=e._self._c;return t("div",{class:e.isActive?e.extraClasses:""},[t("transition",{attrs:{name:e.animation}},[e.isActive?t("div",{staticClass:"is-active",class:[{"is-full-page":e.displayInFullPage},{"loading-overlay":!e.localInlineSize}]},[t("div",{staticClass:"loading-background",class:e.hasBackground?e.backgroundClasses:"",on:{click:e.cancel}}),t("svg",{staticClass:"animate-spin -ml-1 mr-3 h-10 text-primary",class:e.localInlineSize?e.localInlineSize:"w-105",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"}},[t("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),t("path",{staticClass:"opacity-75",attrs:{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})])]):e._e()])],1)},Ke=[];function Ye(e){"undefined"!==typeof e.remove?e.remove():"undefined"!==typeof e.parentNode&&null!==e.parentNode&&e.parentNode.removeChild(e)}var We={name:"ZLoading",model:{prop:"active",event:"update:active"},props:{active:Boolean,programmatic:Boolean,container:[Object,Function,window.HTMLElement],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},hasBackground:{type:Boolean,default:!0},backgroundClasses:{type:String,default:"bg-white"},extraClasses:String,inlineSize:{type:String,default:""}},data(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage,localInlineSize:""}},watch:{active(e){this.isActive=e},isFullPage(e){this.displayInFullPage=e}},methods:{cancel(){this.canCancel&&this.isActive&&this.close()},close(){this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{this.$destroy(),Ye(this.$el)},150))},keyPress({key:e}){"Escape"!==e&&"Esc"!==e||this.cancel()},getSize(){switch(this.inlineSize){case"xsmall":this.localInlineSize="w-4";break;case"small":this.localInlineSize="w-7";break;case"medium":this.localInlineSize="w-10";break;case"large":this.localInlineSize="w-15";break;default:break}}},created(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted(){this.programmatic&&(this.isActive=!0),this.inlineSize&&this.getSize()},beforeDestroy(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}},Qe=We,Xe=(a("0f8d"),Object(v["a"])(Qe,qe,Ke,!1,null,null,null)),Je=Xe.exports,et=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inline-flex flex-col justify-center items-center",class:{"w-full":e.fullWidth},style:{"--bar-color":e.barColor}},[t("span",{staticClass:"font-semibold pb-2 text-xs"},[e._v(e._s(e.labelTop))]),t("div",{staticClass:"relative pt-1",class:{"w-full":e.fullWidth}},[t("div",{staticClass:"overflow-hidden h-3 mb-4 text-xs flex rounded-xl bg-gray-200 dark:bg-gray-800 dark:bg-opacity-60",class:{"w-full":e.fullWidth,"w-40":!e.fullWidth}},[t("div",{staticClass:"h-full bar",style:{width:e.localValue+"%",transition:"width 1s"}})])]),t("span",{staticClass:"font-bold text-sm"},[e._v(e._s(e.labelBottom))]),t("span",{staticClass:"font-bold text-xs text-gray-600 dark:text-gray-300"},[e._v(e._s(e.labelBottomSub))])])},tt=[],at={name:"ZProgressBarHorizontal",props:{value:{type:Number,default:()=>20},labelTop:{type:String,default:()=>"Top Label"},labelBottom:{type:String,default:()=>"Bottom Label"},labelBottomSub:{type:String},fullWidth:{type:Boolean,default:()=>!1},barColor:{type:String,default:()=>"rgba(105, 190, 41, 1)"}},data:()=>({localValue:0}),mounted(){this.$forceNextTick(()=>{this.localValue=this.value})}},st=at,it=(a("7516"),Object(v["a"])(st,et,tt,!1,null,"eada3f10",null)),nt=it.exports,rt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"inline-flex flex-col justify-center items-center"},[t("span",{staticClass:"font-semibold pb-2 text-gray-500 small-text"},[e._v(e._s(e.labelTop))]),t("div",{staticClass:"relative pt-1"},[t("div",{class:e.classes},[t("div",{class:"w-full rounded-b-xl bg-"+e.mainColor,style:{height:e.localValue+"%",transition:"height 1s"}}),e.secondaryValue>0?t("div",{class:"w-full rounded-b-xl bg-"+e.secondaryColor,style:{height:e.secondaryValue+"%",transition:"height 1s"}}):e._e()])]),e.labelBottom?t("span",{staticClass:"font-bold text-sm"},[e._v(e._s(e.labelBottom))]):e._e(),e.labelBottomSub?t("span",{staticClass:"font-bold text-xs text-purple-800 dark:text-purple-500 bg-purple-100 px-2 py-0.5 rounded-lg"},[e._v(e._s(e.labelBottomSub))]):e._e(),e.labelBottomSecond?t("span",{staticClass:"font-bold text-1.5xs text-teal px-2 py-1"},[e._v(e._s(e.labelBottomSecond))]):e._e()])},ot=[],lt={name:"ZProgressBarVertical",props:{value:{type:Number,default:()=>20},mainColor:{type:String,default:()=>"secondary"},secondaryValue:{type:Number,default:()=>0},secondaryColor:{type:String,default:()=>"yellow-500"},labelTop:{type:String,default:()=>"Top Label"},labelBottom:{type:String,default:()=>"Bottom Label"},labelBottomSub:{type:String},labelBottomSecond:{type:String},size:{type:String,default:()=>"medium"}},computed:{classes(){let e="transform rotate-180 overflow-hidden w-3 mb-4 text-xs flex flex-col\n rounded-xl bg-gray-200 dark:bg-gray-800 dark:bg-opacity-60";switch(this.size){case"medium":e=e.concat(" h-32");break;case"large":e=e.concat(" h-44");break}return e}},data:()=>({localValue:0}),watch:{value(e){this.$forceNextTick(()=>{this.localValue=e})}},mounted(){this.$forceNextTick(()=>{this.localValue=this.value})}},ct=lt,dt=(a("3797"),Object(v["a"])(ct,rt,ot,!1,null,"2fbfb088",null)),ut=dt.exports,pt=function(){var e=this;e._self._c;return e._m(0)},mt=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col items-center py-1 space-y-4 justify-around animate-pulse min-h-full"},[t("div",{staticClass:"h-4 bg-gray-200 rounded w-3/4"}),t("div",{staticClass:"h-4 bg-gray-200 rounded w-3/4"}),t("div",{staticClass:"h-4 bg-gray-200 rounded w-3/4"})])}],ht={name:"ZSkeleton"},vt=ht,gt=Object(v["a"])(vt,pt,mt,!1,null,"7fb9e4d0",null),ft=gt.exports,yt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-slider mb-4",class:[e.size,e.type,e.rootClasses,{"mt-16":e.ticks||e.$slots.default},{"mt-2":!e.ticks&&!e.$slots.default}],on:{click:e.onSliderClick}},[t("div",{ref:"slider",staticClass:"b-slider-track"},[t("div",{staticClass:"b-slider-fill bg-primary",staticStyle:{transition:"width 1s"},style:e.barStyle}),e.ticks?e._l(e.tickValues,(function(a,s){return t("z-slider-tick",{key:s,attrs:{value:a}},[e._v(e._s(a)+" ")])})):e._e(),e._t("default"),t("z-slider-thumb",{ref:"button1",attrs:{tooltip:e.tooltip,"custom-formatter":e.customFormatter,indicator:e.indicator,format:e.format,role:"slider","aria-valuenow":e.value1,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":"horizontal","aria-label":Array.isArray(e.ariaLabel)?e.ariaLabel[0]:e.ariaLabel,"aria-disabled":e.disabled},on:{dragstart:e.onDragStart,dragend:e.onDragEnd},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],2)])},bt=[],xt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":e.dragging,"has-indicator":e.indicator},style:e.wrapperStyle},[t("div",e._b({staticClass:"b-slider-thumb bg-info rounded-full hover:scale-50",attrs:{tabindex:!e.disabled&&0},on:{mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.onFocus,blur:e.onBlur,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:(t.preventDefault(),e.onLeftKeyDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:(t.preventDefault(),e.onRightKeyDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"home",void 0,t.key,void 0)?null:(t.preventDefault(),e.onHomeKeyDown.apply(null,arguments))},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"end",void 0,t.key,void 0)?null:(t.preventDefault(),e.onEndKeyDown.apply(null,arguments))}]}},"div",e.$attrs,!1),[e.indicator?t("span",[e._v(e._s(e.formattedValue))]):e._e()])])},Ct=[],wt={name:"ZSliderThumb",components:{},inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},indicator:{type:Boolean,default:!1},customFormatter:Function,format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0},locale:{type:[String,Array],default:()=>{}},tooltipAlways:{type:Boolean,default:!1}},data(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled(){return this.$parent.disabled},max(){return this.$parent.max},min(){return this.$parent.min},step(){return this.$parent.step},precision(){return this.$parent.precision},currentPosition(){return(this.value-this.min)/(this.max-this.min)*100+"%"},wrapperStyle(){return{left:this.currentPosition}},formattedValue(){return"undefined"!==typeof this.customFormatter?this.customFormatter(this.value):"percent"===this.format?new Intl.NumberFormat(this.locale,{style:"percent"}).format((this.value-this.min)/(this.max-this.min)):new Intl.NumberFormat(this.locale).format(this.value)}},methods:{onFocus(){this.isFocused=!0},onBlur(){this.isFocused=!1},onButtonDown(e){this.disabled||(e.preventDefault(),this.onDragStart(e),"undefined"!==typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart(e){this.dragging=!0,this.$emit("dragstart"),"touchstart"===e.type&&(e.clientX=e.touches[0].clientX),this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging(e){if(this.dragging){"touchmove"===e.type&&(e.clientX=e.touches[0].clientX);const t=(e.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!==typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition(e){if(null===e||isNaN(e))return;e<0?e=0:e>100&&(e=100);const t=100/((this.max-this.min)/this.step),a=Math.round(e/t);let s=a*t/100*(this.max-this.min)+this.min;s=parseFloat(s.toFixed(this.precision)),this.$emit("input",s),this.dragging||s===this.oldValue||(this.oldValue=s)}}},_t=wt,At=(a("5687"),Object(v["a"])(_t,xt,Ct,!1,null,null,null)),St=At.exports,Tt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"b-slider-tick transition-colors duration-1000",class:{"bg-primary":e.active,"bg-purple-300":!e.active,"tick-active":e.activeExact},style:[e.getTickStyle(e.position)]},[e.$slots.default?t("span",{staticClass:"b-slider-tick-label py-1 px-6 font-bold text-purple-900 dark:text-purple-200 text-sm",class:{"bg-white border border-info rounded-lg text-primary dark:text-primary":e.activeExact}},[e._t("default")],2):e._e()])},kt=[],Pt={name:"ZSliderTick",props:{value:{type:Number,default:0}},computed:{active(){return this.$parent.value1>=this.value},activeExact(){return this.$parent.value1===this.value},position(){const e=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return e>=0&&e<=100?e:0}},methods:{getTickStyle(e){return{left:e+"%"}}},created(){if(!this.$parent.$data.isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}},$t=Pt,Mt=(a("44bd"),Object(v["a"])($t,Tt,kt,!1,null,null,null)),Ot=Mt.exports;function Nt(e,t,a){return Math.max(t,Math.min(a,e))}var Et={name:"ZSlider",components:{ZSliderThumb:St,ZSliderTick:Ot,[St.name]:St,[Ot.name]:Ot},props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:5},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1},indicator:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:e=>["raw","percent"].indexOf(e)>=0}},data(){return{value1:null,value2:null,dragging:!1,isRange:!1,isSlider:!0}},computed:{tickValues(){if(!this.ticks||this.min>this.max||0===this.step)return[];const e=[];for(let t=this.min;t{let t=(""+e).split(".")[1];return t?t.length:0});return Math.max(...e)},barStyle(){return{width:this.barSize,left:this.barStart}},rootClasses(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{value(e){this.setValues(e)},value1(){this.onInternalValueUpdate()},value2(){this.onInternalValueUpdate()},min(){this.setValues(this.value)},max(){this.setValues(this.value)}},methods:{setValues(e){if(!(this.min>this.max))if(Array.isArray(e)){this.isRange=!0;const t="number"!==typeof e[0]||Number.isNaN(e[0])?this.min:Nt(e[0],this.min,this.max),a="number"!==typeof e[1]||Number.isNaN(e[1])?this.max:Nt(e[1],this.min,this.max);this.value1=this.isThumbReversed?a:t,this.value2=this.isThumbReversed?t:a}else this.isRange=!1,this.value1=Number.isNaN(e)?this.min:Nt(e,this.min,this.max),this.value2=null},onInternalValueUpdate(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick(e){if(this.disabled||this.isTrackClickDisabled)return;const t=this.$refs.slider.getBoundingClientRect().left,a=(e.clientX-t)/this.sliderSize()*100,s=this.min+a*(this.max-this.min)/100,i=Math.abs(s-this.value1);if(this.isRange){const e=Math.abs(s-this.value2);if(i<=e){if(i{this.isTrackClickDisabled=!1},0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("input")},emitValue(e){this.$emit(e,this.isRange?[this.minValue,this.maxValue]:this.value1)}},created(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.value)}},Dt=Et,It=(a("fe64"),Object(v["a"])(Dt,yt,bt,!1,null,null,null)),Bt=It.exports,Lt=function(){var e=this,t=e._self._c;return t("label",{staticClass:"inline-block"},[e.$slots.default?t("span",{staticClass:"text-black font-medium dark:text-white me-2"},[e._t("default")],2):e._e(),t("span",{staticClass:"relative inline-block align-middle select-none",class:[{"w-10":"small"===e.size},{"w-14":"medium"===e.size}]},[t("span",{ref:"label",staticClass:"block overflow-hidden rounded-full cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary focus:ring-opacity-50",class:[{"bg-gray-400":!e.computedValue,"bg-secondary":e.computedValue},{"h-6":"small"===e.size},{"h-8":"medium"===e.size}],on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:(t.preventDefault(),e.$refs.label.click())}}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],staticClass:"outline-none focus:outline-none top-0.5 duration-200 ease-in absolute block rounded-full bg-white appearance-none cursor-pointer text-white border-transparent",class:[{"right-4.5":!e.computedValue&&"small"===e.size,"right-6.5":!e.computedValue&&"medium"===e.size,"right-0.5":e.computedValue},{"w-5 h-5":"small"===e.size},{"w-7 h-7":"medium"===e.size}],attrs:{type:"checkbox",name:"toggle"},domProps:{checked:Array.isArray(e.computedValue)?e._i(e.computedValue,null)>-1:e.computedValue},on:{input:e.onToggle,click:function(e){e.stopPropagation()},change:function(t){var a=e.computedValue,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=null,r=e._i(a,n);s.checked?r<0&&(e.computedValue=a.concat([n])):r>-1&&(e.computedValue=a.slice(0,r).concat(a.slice(r+1)))}else e.computedValue=i}}})])])])},Rt=[],Ut={name:"ZToggle",props:{value:{type:Boolean},size:{type:String,default:()=>"small"}},data:()=>({localValue:!1,uuid:null}),methods:{onToggle(e){this.$emit("input",e.target.checked)}},watch:{value(e){this.localValue=e}},computed:{computedValue:{get(){return this.localValue},set(e){this.localValue=e,this.$emit("input",e)}}},mounted(){this.localValue=this.value},beforeCreate:function(){this.uuid=Math.random().toString(36).substr(2,12)}},zt=Ut,jt=Object(v["a"])(zt,Lt,Rt,!1,null,"3b3c8804",null),Ft=jt.exports,Vt=function(){var e=this,t=e._self._c;return t("label",{staticClass:"inline-flex items-center w-full",class:{"cursor-not-allowed":""===e.$attrs.disabled||e.$attrs.disabled,"cursor-pointer":!e.$attrs.disabled}},[t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],ref:"input",staticClass:"form-radio text-primary border-transparent focus:outline-none focus:ring focus:ring-blue-200 focus:border-blue-400",class:{"bg-gray-200 cursor-not-allowed":""===e.$attrs.disabled||e.$attrs.disabled,"bg-pink-100 cursor-pointer":!e.$attrs.disabled},attrs:{type:"radio",name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{change:function(t){e.computedValue=e.nativeValue}}},"input",e.$attrs,!1)),e.label?t("span",{staticClass:"ms-3",class:e.labelClass},[e._v(e._s(e.label))]):e._t("default")],2)},Ht=[],Gt={name:"ZRadio",props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],name:{type:String,default:"radio"},label:{type:String},labelClass:[String,Object]},data(){return{newValue:this.value}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("input",e)}}},watch:{value(e){this.newValue=e}},methods:{},mounted(){}},Zt=Gt,qt=Object(v["a"])(Zt,Vt,Ht,!1,null,null,null),Kt=qt.exports,Yt=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex items-center"},[t("label",{staticClass:"flex items-center cursor-pointer border border-gray-300 p-2 rounded-md w-full hover:border-black ring-opacity-40",class:{"border-primary":e.computedValue===e.nativeValue,"ring-offset-2 ring-2 ring-primary":e.isFocused},attrs:{for:e.getUUID()}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],staticClass:"opacity-0 w-0",attrs:{id:e.getUUID(),type:"radio",name:e.name},domProps:{value:e.nativeValue,checked:e._q(e.computedValue,e.nativeValue)},on:{focus:function(t){e.isFocused=!0},blur:function(t){e.isFocused=!1},change:function(t){e.computedValue=e.nativeValue}}}),e._t("default")],2)])},Wt=[],Qt={name:"ZRadioButton",props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],name:{type:String,default:"radio"},label:{type:String}},data(){return{uuid:null,newValue:this.value,isFocused:!1}},computed:{computedValue:{get(){return this.newValue},set(e){this.newValue=e,this.$emit("input",e)}}},watch:{value(e){this.newValue=e}},methods:{getUUID(){return this.uuid||(this.uuid="radio-"+this.$uuid()),this.uuid}}},Xt=Qt,Jt=(a("bc5a"),Object(v["a"])(Xt,Yt,Wt,!1,null,"7c822d4d",null)),ea=Jt.exports,ta=function(){var e=this,t=e._self._c;return t("div",[t("ul",{class:[e.getOuterClasses()," ",e.customOuterClasses]},e._l(e.sortedItems,(function(a,s){return t("li",{key:s,staticClass:"px-4 py-2 relative flex-1 text-center",class:e.getInnerClasses(s),attrs:{tabindex:s===e.activeTabInternal?-1:0},on:{click:function(t){return e.setActiveTab(s)}}},[a.$scopedSlots.header?t("z-slot-component",{attrs:{component:a,name:"header",tag:"a"}}):t("div",{staticClass:"flex justify-center items-center gap-2 text-sm md:text-md"},[t("div",{staticClass:"flex justify-center items-center"},[t("span",{class:a.$props.icon})]),t("div",{class:{[a.$props.labelClasses]:a.$props.labelClasses}},[e._v(e._s(a.$props.label))])])],1)})),0),t("div",{staticClass:"relative flex flex-col",class:{"overflow-hidden":e.isTransitioning}},[e._t("default")],2)])},aa=[],sa={name:"ZTabs",components:{ZSlotComponent:we},props:{value:{type:Number,default:0},isToggle:{type:Boolean,default:!1},customOuterClasses:{type:String,default:""}},computed:{sortedItems(){let e=this.items;return e.sort((e,t)=>e.sequence-t.sequence),e}},data:()=>({items:[],activeTabInternal:0,isTransitioning:!1}),watch:{value:{handler:function(e){this.setActiveTab(e)}}},methods:{registerItem(e){return this.items.push(e)},unregisterItem(e){this.items=this.items.filter(t=>t!==e)},setActiveTab(e){if(e===this.activeTabInternal)return;const t=this.activeTabInternal,a=e;this.items[t].deactivate(a),this.items[a].activate(t),this.activeTabInternal=a,this.$emit("input",e)},getOuterClasses(){return this.isToggle?"list-none rounded-sm border border-gray-300 flex items-stretch justify-center text-primary":"list-none flex items-stretch justify-center border-b border-gray-300"},getInnerClasses(e){if(this.isToggle){let t="border-gray-300 cursor-pointer hover:text-white hover:bg-primary";return e!==this.items.length-1&&(t=t.concat(" border-r")),{"text-white bg-primary":e===this.activeTabInternal,[t]:e!==this.activeTabInternal}}return{"text-primary border-b border-primary font-bold":e===this.activeTabInternal,"text-gray-600 cursor-pointer border-b hover:border-black dark:text-white dark:hover:border-gray-400":e!==this.activeTabInternal}}},mounted(){this.setActiveTab(this.value)}},ia=sa,na=Object(v["a"])(ia,ta,aa,!1,null,null,null),ra=na.exports,oa=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:e.transitionName},on:{"before-enter":function(t){e.$parent.isTransitioning=!0},"after-enter":function(t){e.$parent.isTransitioning=!1}}},[e.isActive?t("div",{staticClass:"flex-shrink-0"},[e._t("default")],2):e._e()])},la=[],ca={name:"ZTabItem",props:{label:String,icon:String,sequence:Number,labelClasses:String},data:()=>({tabIndex:-1,transitionName:""}),computed:{isActive(){return this.$parent.activeTabInternal===this.tabIndex}},methods:{activate(e){this.transitionName=this.tabIndexe?"slide-next":"slide-prev"}},mounted(){this.tabIndex=this.$parent.registerItem(this)-1},beforeDestroy(){this.$parent.unregisterItem(this)}},da=ca,ua=Object(v["a"])(da,oa,la,!1,null,null,null),pa=ua.exports,ma=function(){var e=this,t=e._self._c;return t("div",[e._t("default",null,{type:e.type}),t("div",{staticClass:"text-sm pt-1",class:e.getMessageClasses()},["danger"===this.getType&&e.message?t("span",{staticClass:"icon-Shortcut---close text-danger text-xs"}):"success"===this.getType?t("span",{staticClass:"icon-check-mark-button text-green text-xs"}):e._e(),e._v(" "+e._s(e.message)+" ")])],2)},ha=[],va={name:"ZField",mixins:[x],props:{message:{type:String}},methods:{getMessageClasses(){return[{"text-danger":"danger"===this.getType,"text-green":"success"===this.getType}]}},data(){return{isField:!0}}},ga=va,fa=Object(v["a"])(ga,ma,ha,!1,null,"83ff3774",null),ya=fa.exports,ba=a("1315"),xa=a("7fd9");const Ca=e=>{const t=new Event("input",{bubbles:!0});setTimeout((function(){e.value=e.cleave.properties.result,e.dispatchEvent(t)}),100)};var wa={data(){return{ccType:""}},directives:{cleave:{inserted:(e,t)=>{e.cleave=new xa["a"](e.getElementsByTagName("input")[0],t.value||{})},update:Ca},cleaveNumbers:{inserted:(e,t)=>{e.cleave=new xa["a"](e.getElementsByTagName("input")[0],{numeral:!0,numeralThousandsGroupStyle:"none",numeralDecimalScale:3,...t.value||{}})},update:Ca},cleaveCredit:{inserted:(e,t)=>{e.cleave=new xa["a"](e.getElementsByTagName("input")[0],{creditCard:!0,...t.value||{}})},update:Ca}},methods:{onKeyUpFormat(e,t,a){const s=e.which?e.which:e.keyCode;if(!(s>31&&(s<48||s>57)))return this.$forceNextTick(()=>{const e=t.split(".");1===e.length?this[e[0]]=a(this[e[0]]):2===e.length&&(this[e[0]][e[1]]=a(this[e[0]][e[1]]))}),!0;e.preventDefault()},formatNumber(e){return t=>(t=t.replace(/\D/g,""),t.slice(0,e))},formatCreditCard(e){var t,a,s,i,n,r,o,l,c,d,u,p,m,h;e=null!==(t=null===(a=e)||void 0===a?void 0:a.replace(/[^0-9X]/g,""))&&void 0!==t?t:"";let v=[];for(let g=0,f=e.length;g<=f;g+=4)v.push(e.substring(g,g+4));return"4"===(null===(s=e)||void 0===s?void 0:s[0])&&this.cardChanged("visa"),"5"===(null===(i=e)||void 0===i?void 0:i[0])&&this.cardChanged("mastercard"),"3"!==(null===(n=e)||void 0===n?void 0:n[0])||"7"!==(null===(r=e)||void 0===r?void 0:r[1])&&"4"!==(null===(o=e)||void 0===o?void 0:o[1])||this.cardChanged("americanExpress"),null!==(l=e)&&void 0!==l&&l[0]&&("4"===(null===(c=e)||void 0===c?void 0:c[0])||"5"===(null===(d=e)||void 0===d?void 0:d[0])||"3"===(null===(u=e)||void 0===u?void 0:u[0])||"7"===(null===(p=e)||void 0===p?void 0:p[1])&&"4"===(null===(m=e)||void 0===m?void 0:m[1]))&&""!==(null===(h=e)||void 0===h?void 0:h[0])||this.cardChanged(""),v.join(" ").slice(0,19)},cardChanged(e){e!==this.ccType&&(this.ccType=e)},getExpiryYears(e=20){const t=ba["DateTime"].local().year,a=[];for(let s=0;s({label:e.toString(),value:e.toString().substr(2,2)}))},getExpiryMonths(e){const t=ba["DateTime"].local().year;let a=[1,2,3,4,5,6,7,8,9,10,11,12];return e===t&&(a=a.filter(e=>e>=ba["DateTime"].local().month)),a.map(e=>e.toString().padStart(2,"0"))},maskCard(e){return e.slice(0,6)+"XXXXXX"+e.slice(-4)},removeSpaces(e){return e.replace(/ /g,"")}}},_a={name:"AddNewLine",components:{ValidationProvider:re["b"],ValidationObserver:re["a"],ZField:ya},mixins:[wa],data(){return{newLineInput:"",newLineNickname:""}},methods:{async submit(){const e=await this.$refs.observer.validate();e&&this.$emit("clicked",{newLineNickname:this.newLineNickname,newLineInput:this.newLineInput})}}},Aa=_a,Sa=Object(v["a"])(Aa,ie,ne,!1,null,"33be04e5",null),Ta=Sa.exports,ka=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-12"},[e.validationLine?t("p",[e._v(e._s("VOICE"===e.validationLine.basic_service_type?e.$t("OTPHasBeenSentTo",{MSISDN:e.validationLine.msisdn}):e.$t("VerifyByCivilID")))]):e._e(),t("z-input",{staticClass:"text-center",attrs:{"max-length":e.validationLine&&"VOICE"!==e.validationLine.basic_service_type?"4":"",label:e.validationLine&&"VOICE"===e.validationLine.basic_service_type?e.$t("EnterOtp"):e.$t("EnterLast4DigitsOfCivilId")+" "+e.validationLine.msisdn},on:{input:e.onInput},model:{value:e.lineValidateCode,callback:function(t){e.lineValidateCode=t},expression:"lineValidateCode"}})],1)},Pa=[],$a={name:"validateLine",data(){return{lineValidateCode:""}},props:{validationLine:{type:Object,default:()=>{}},value:{type:String,default:""}},methods:{onInput(){this.$emit("input",this.lineValidateCode)}}},Ma=$a,Oa=Object(v["a"])(Ma,ka,Pa,!1,null,"5a4cc9a5",null),Na=Oa.exports,Ea=a("10a9"),Da={data(){return{validationLine:"",lineValidateCode:"",addNewLineModal:{},lineValidateModal:{}}},methods:{addNewLine(){"keycloak"===this.$store.state.loginType?this.addNewLineModal=this.$zcl.modal.open({parent:this.$root,canConfirm:!1,canCancel:!0,events:{clicked:e=>{this.OnNewlineConfirm(e),this.addNewLineModal.close()}},component:Ta}):this.onLogin()},async OnNewlineConfirm(e){try{const t=await G["a"].addKeycloakLine(e.newLineInput,e.newLineNickname);t.data.success&&(await this.$store.dispatch("getKeycloakCustomerLines"),this.validationLine=t.data.data,await this.OnLineValidate(t.data.data))}catch(s){var t,a;console.log(s),null!==(t=s.response)&&void 0!==t&&null!==(a=t.data)&&void 0!==a&&a.error?(this.$zcl.modal.open({parent:this.$root,canConfirm:!0,content:s.response.data.error}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:s.response.data.error}})):(this.$zcl.modal.open({parent:this.$root,canConfirm:!0,content:"Error while adding line"}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while adding line"}}))}},async OnLineValidate(e){this.validationLine=e,"VOICE"===this.validationLine.basic_service_type&&await G["a"].validateKeycloakLine(this.validationLine.msisdn),this.lineValidateModal=this.$zcl.modal.open({parent:this.$root,canConfirm:!0,canCancel:!0,onConfirm:this.OnNewlineValidate,props:{validationLine:this.validationLine,value:this.lineValidateCode},events:{input:e=>this.lineValidateCode=e},component:Na})},async OnNewlineValidate(){try{const e=await G["a"].verifyKeycloakLine(this.validationLine.msisdn,this.lineValidateCode);e.data.success&&await this.$store.dispatch("getKeycloakCustomerLines")}catch(a){var e,t;null!==(e=a.response)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.error?this.$zcl.modal.open({parent:this.$root,canConfirm:!0,content:a.response.data.error}):this.$zcl.modal.open({parent:this.$root,canConfirm:!0,content:"Error while validating line"})}this.lineValidateCode=""}}},Ia=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-8"},[t("p",{staticClass:"text-lg font-bold"},[e._v(" "+e._s(e.$t("ShopOrExistingLine"))+" ")]),t("z-button",{staticClass:"w-full mt-4",on:{click:e.onClickBuyNewLine}},[e._v(" "+e._s(e.$t("BuyNewLine"))+" ")]),t("br"),t("z-button",{staticClass:"w-full mt-4",attrs:{outlined:""},on:{click:e.onClickExistingLine}},[e._v(" "+e._s(e.$t("AddExistingLine"))+" ")])],1)},Ba=[],La={name:"ShopOrNewLineModal",components:{ZButton:R},mixins:[Da],methods:{onClickBuyNewLine(){this.$router.push("/offers"),this.$emit("close")},onClickExistingLine(){this.addNewLine(this.$parent),this.$emit("close")}}},Ra=La,Ua=Object(v["a"])(Ra,Ia,Ba,!1,null,"f876df86",null),za=Ua.exports,ja=a("a02d"),Fa={name:"MyZainProfileHeader",components:{ZInput:H,ZButton:R,ZTag:N},mixins:[se,Da],async mounted(){await this.initStateResources(ae["b"].INBOX)},directives:{clickOutside:te},computed:{getCustomerLines(){var e,t;const a=null!==(e=null===(t=this.$store.state.customerLines)||void 0===t?void 0:t.filter(e=>e.is_validated))&&void 0!==e?e:[];return a.sort(e=>e.msisdn===this.$store.state.msisdn?-1:1)},isLoggedIn(){return this.$store.state.isLoggedIn},hasLines(){return"sim"===this.$store.state.loginType||this.getCustomerLines.length>0}},data(){return{currentlyAddingNicknameFor:"",addNicknameInput:"",addNicknameLoading:!1,showNoLinesDisclaimer:!0,isNumbersDropdownActive:!1}},methods:{onClickInbox(){},async goToLoginPage(){await this.$store.dispatch("getLoginUrl"),window.location.replace(this.$store.state.loginUrl)},onAddNickname(e){this.currentlyAddingNicknameFor!==e?this.currentlyAddingNicknameFor=e:this.currentlyAddingNicknameFor=""},async onConfirmAddNNickname(){if(!this.addNicknameLoading)try{this.addNicknameLoading=!0,await G["a"].updateKeycloakLine(this.currentlyAddingNicknameFor,this.addNicknameInput),await this.$store.dispatch("getKeycloakCustomerLines"),this.addNicknameLoading=!1,this.addNicknameInput="",this.currentlyAddingNicknameFor=""}catch(a){var e,t;null!==(e=a.response)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.error?alert(a.response.data.error):alert("Error while setting nickname"),this.addNicknameLoading=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while setting nickname"}})}},async setMsisdn(e){if(this.$store.state.msisdn===e)return;const t="Corporate"===this.getCustomerLines.find(t=>t.msisdn===e).segment;if(t&&ja["a"].CorporateRedirection)return location.replace(` https://www.kw.zain.com/${this.$i18n.locale}/shop?m=${e}`);await this.$store.dispatch("setActiveKeycloakMsisdn",e);const a=this.$store.getters.getBillingType;("Postpaid"===a&&["/flexi-edit-plan"].includes(this.$route.path)||"Prepaid"===a&&["/bills"].includes(this.$route.path))&&await this.$router.push("/"),["/plan-details/checkout"].includes(this.$route.path)&&await this.$router.push("/"),this.isNumbersDropdownActive=!1},onClickNumbers(){this.isNumbersDropdownActive=!this.isNumbersDropdownActive},onClickOutside(){this.isNumbersDropdownActive=!1,this.currentlyAddingNicknameFor=""},async onClickAddNewLine(){this.onClickOutside(),await this.$zcl.modal.open({parent:this,component:za,props:{canCancel:!0}})},async onLogout(){const e=await this.$store.dispatch("keycloakLogout");null!==e&&void 0!==e&&e.logoutUrl&&window.location.replace(e.logoutUrl)}}},Va=Fa,Ha=Object(v["a"])(Va,S,T,!1,null,"f0a074c4",null),Ga=Ha.exports,Za=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"z-50 hidden w-full bg-white dark:bg-black lg:block",attrs:{"aria-label":"Top Nav"}},[t("div",{staticClass:"mx-auto max-w-7xl px-2 sm:px-6 lg:px-8 2xl:max-w-8xl"},[t("div",{staticClass:"relative flex items-center justify-between"},[t("div",{staticClass:"h-full 2xl:text-lg"},[t("a",{staticClass:"inline-block h-full bg-primary px-6 leading-8 text-white",on:{click:e.onClickConsumer}},[e._v(" "+e._s(e.$t("Personal"))+" ")]),t("a",{staticClass:"inline-block h-full bg-white px-6 leading-8 text-primary dark:bg-gray-700",on:{click:e.onClickBusiness}},[e._v(" "+e._s(e.$t("Business"))+" ")])]),t("div",{staticClass:"flex items-center space-s-5 dark:text-white"},[t("router-link",{staticClass:"text-sm font-semibold uppercase",attrs:{to:"/update-civil-id"}},[e._v(" "+e._s(e.$t("UpdateCivilID"))+" ")]),t("router-link",{staticClass:"text-sm font-semibold uppercase",attrs:{to:"/pay"}},[e._v(" "+e._s(e.$t("QuickPay"))+" ")]),t("div",{staticClass:"relative inline-block text-left"},[t("div",[t("button",{staticClass:"focus:outline-none",attrs:{type:"button",id:"menu-button","aria-expanded":"true","aria-haspopup":"true"},on:{click:()=>e.isSelectCountryDropdownOpen=!e.isSelectCountryDropdownOpen}},[t("a",[e._v(" "+e._s(e.countries[e.selectedCountry][e.$i18n.locale])+" "),t("img",{staticClass:"inline-block rotate-90 transform px-2",attrs:{src:a("fa97"),alt:"arrow"}})])])]),t("transition",{attrs:{name:"country-dropdown-fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isSelectCountryDropdownOpen,expression:"isSelectCountryDropdownOpen"}],staticClass:"focus:outline-none absolute right-0 z-10 mt-2 w-28 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5",attrs:{role:"menu","aria-orientation":"vertical","aria-labelledby":"menu-button",tabindex:"-1"}},[t("div",{staticClass:"cursor-pointer",attrs:{role:"none"}},e._l(Object.keys(e.countries),(function(a,s){return t("a",{key:s,staticClass:"block px-4 py-2 text-xs text-gray-700 hover:bg-primary hover:text-white",class:[a===e.selectedCountry?"bg-gray-200":"",0===s?"rounded-t":"",s===Object.keys(e.countries).length-1?"rounded-b":""],attrs:{href:"#",role:"menuitem",tabindex:"-1"},on:{click:function(t){return e.onCountryDropdownClick(a)}}},[e._v(" "+e._s(e.countries[a][""+e.$i18n.locale])+" ")])})),0)])])],1),t("a",{on:{click:e.changeLocale}},[e._v(" "+e._s("ar"===e.$i18n.locale?"EN":"العربية")+" ")])],1)])])])},qa=[],Ka={name:"MyZainTopNav",data(){return{countries:{kuwait:{en:"Kuwait",ar:"الكويت",link:"https://www.kw.zain.com/"},bahrain:{en:"Bahrain",ar:"البحرين",link:"https://www.bh.zain.com/en"},iraq:{en:"Iraq",ar:"العراق",link:"https://www.iq.zain.com/en"},jordan:{en:"Jordan",ar:"الأردن",link:"https://www.jo.zain.com/en"},lebanon:{en:"Lebanon",ar:"لبنان",link:"https://www.touch.com.lb/autoforms/portal/touch"},morocco:{en:"Morocco",ar:"المغرب",link:"https://inwi.ma/"},saudiArabia:{en:"Saudi Arabia",ar:"السعودية",link:"https://www.sa.zain.com/en"},sudan:{en:"Sudan",ar:"السودان",link:"https://www.sd.zain.com/en"}},selectedCountry:"kuwait",isSelectCountryDropdownOpen:!1}},methods:{onCountryDropdownClick(e){this.selectedCountry=e,this.isSelectCountryDropdownOpen=!1,window.open(this.countries[e]["link"],"_self")},changeLocale(){this.$i18n.setLocale("ar"===this.$i18n.locale?"en":"ar"),Object(re["e"])()},onClickConsumer(){},onClickBusiness(){}}},Ya=Ka,Wa=(a("1125"),Object(v["a"])(Ya,Za,qa,!1,null,"107a5dec",null)),Qa=Wa.exports,Xa=function(){var e=this,t=e._self._c;return t("nav",{staticClass:"header-bg z-40 w-full bg-black",attrs:{"aria-label":"Main Nav"}},[t("div",{staticClass:"mx-auto ps-2 sm:px-6 lg:px-8"},[t("div",{staticClass:"relative flex h-14 w-full items-center lg:h-18 lg:px-6"},[t("div",{staticClass:"flex-1 flex items-center justify-start sm:items-stretch sm:justify-start"},[t("a",{staticClass:"flex flex-shrink-0 items-center",attrs:{href:""+(e.featureFlags.testEcommerceRedirect?`https://zkwuatweb.kw.zain.com/${e.$i18n.locale}/web/consumer`:"https://www.kw.zain.com/"+e.$i18n.locale)+e.shopURLParameters}},[t("img",{staticClass:"block h-8 w-auto cursor-pointer lg:h-10",attrs:{src:a("ca9b"),alt:"Zain Logo"},on:{click:()=>{"/"!==e.$route.path&&e.$router.push("/")}}})])]),t("div",{staticClass:"hidden h-full sm:ms-6 lg:block"},[t("div",{staticClass:"flex h-full text-lg text-white 2xl:text-2xl"},[t("a",{staticClass:"flex items-center border-b-2 border-transparent px-7 py-2 space-s-3 hover:border-primary",attrs:{href:"https://www.kw.zain.com/"+e.$i18n.locale+e.shopURLParameters,"aria-current":"page"}},[t("span",{staticClass:"icon-cart-with-plus"}),t("span",[e._v(e._s(e.$t("Shop")))])]),t("a",{staticClass:"flex items-center border-b-2 border-primary px-6 py-2 space-s-3",attrs:{href:"#"}},[t("span",{staticClass:"icon-Group-1561"}),t("span",{staticClass:"whitespace-nowrap"},[e._v(e._s(e.$t("MyZain")))])]),t("a",{staticClass:"flex items-center border-b-2 border-transparent px-7 py-2 space-s-3 hover:border-primary",attrs:{href:`https://www.kw.zain.com/${e.$i18n.locale}/support`+e.shopURLParameters}},[t("span",{staticClass:"icon-headphones-with-mic"}),t("span",[e._v(e._s(e.$t("Support")))])])])]),t("div",{staticClass:"flex-1 justify-self-end flex items-center justify-end pe-2 sm:static sm:inset-auto sm:pe-0 sm:ms-6"},[t("div",{staticClass:"hidden h-9 w-9 cursor-pointer items-center justify-center rounded-full text-white hover:bg-white hover:text-primary lg:flex",on:{click:function(t){e.searchBarActive=!e.searchBarActive}}},[t("span",{staticClass:"icon-magnifying-glass text-xl"})]),t("div",{staticClass:"mx-2 hidden h-5 border-r-2 border-white border-opacity-40 lg:block"}),e.$store.state.isLoggedIn&&"anonymous"!==e.$store.state.loginType?[t("router-link",{staticClass:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full text-white hover:bg-teal lg:hidden border-teal border",attrs:{to:"/profile"}},[t("span",{staticClass:"icon-user-4 text-md"})]),t("div",{staticClass:"mx-2 block h-5 border-r-2 border-white border-opacity-40 lg:hidden"})]:e._e(),t("a",{staticClass:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full bg-white lg:h-10 lg:w-10",attrs:{href:`https://www.kw.zain.com/${e.$i18n.locale}/shop`+e.shopURLParameters}},[t("span",{staticClass:"icon-empty-shopping-card text-lg text-primary"})]),t("div",{staticClass:"mx-2 h-5 border-r-2 border-white border-opacity-40"}),t("a",{staticClass:"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full text-white hover:bg-white hover:text-primary",attrs:{href:`https://www.kw.zain.com/${e.$i18n.locale}/shop/wish-list`+e.shopURLParameters}},[t("span",{staticClass:"icon-heart-feel-grey text-lg"})]),e._e(),e.$store.state.isLoggedIn&&"anonymous"!==e.$store.state.loginType?t("router-link",{staticClass:"hidden h-12 px-2 space-s-3 cursor-pointer items-center justify-center rounded-md text-white hover:bg-teal lg:flex border-teal border-2 ms-3",staticStyle:{"min-width":"max-content"},attrs:{to:"/profile"}},[t("span",{staticClass:"icon-user-4 text-md"}),t("div",{staticClass:"leading-3 px-2"},[t("p",{staticClass:"text-xs"},[e._v(" "+e._s(e.$t("Hello"))+" "),t("span",{staticClass:"font-semibold"},[e._v(e._s(e.$store.getters.getFirstName))])]),t("span",{staticClass:"text-xs font-bold"},[e._v(e._s(e.$store.state.msisdn))])])]):e._e(),t("button",{staticClass:"h-12 px-2 focus:outline-none inline-flex items-center justify-center rounded-md text-gray-400 hover:bg-gray-700 hover:text-white focus:ring-2 focus:ring-inset focus:ring-white lg:hidden",attrs:{type:"button","aria-controls":"mobile-menu","aria-expanded":"false"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),(()=>e.$emit("mobileMenu")).apply(null,arguments)}}},[t("span",{staticClass:"text-gray-100",class:{"icon-cancel-1":e.mobileMenuActive,"icon-hamburger":!e.mobileMenuActive}})])],2)])]),e.searchBarActive?t("div",{staticClass:"overlay",on:{click:function(t){if(t.target!==t.currentTarget)return null;e.searchBarActive=!1}}},[t("div",{staticClass:"fixed top-20 left-1/2 z-20 -translate-x-1/2 transform rounded-lg bg-white p-2 px-3 text-center w-11/12 md:w-6/12 flex"},[t("z-input",{staticClass:"mb-1 text-black w-full",attrs:{borderless:"",placeholder:e.$t("Search"),inputStyle:"color: black;","input-classes":"p-0 font-bold"},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.goToSearch.apply(null,arguments)}},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}),t("a",{staticClass:"rounded-md bg-primary p-3 text-white",attrs:{id:"search_a",href:`https://www.kw.zain.com/${e.$i18n.locale}/shop/search?q=${e.searchQuery?e.searchQuery:""}`+e.searchURLParameters}},[t("span",{staticClass:"icon-magnifying-glass text-xl px-6"})])],1)]):e._e()])},Ja=[],es={name:"MyZainMainNav",props:{mobileMenuActive:Boolean},components:{ZToggle:Ft,ZInput:H},data(){return{searchBarActive:!1,darkMode:!1,searchQuery:null}},methods:{toggleDarkMode(){this.darkMode?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},goToSearch(){document.getElementById("search_a").click()}},computed:{shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""},searchURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"&m="+this.$store.state.msisdn:""},featureFlags(){return ja["a"]}}},ts=es,as=(a("6288"),Object(v["a"])(ts,Xa,Ja,!1,null,null,null)),ss=as.exports,is={name:"ZNav",components:{ZInput:H,MyZainMainNav:ss,MyZainTopNav:Qa,MyZainProfileHeader:Ga,ZSelect:A,MyZainNav:f},computed:{windowScroll(){return this.$store.state.windowScroll},windowWidth(){return this.$store.state.windowWidth},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""},searchURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"&m="+this.$store.state.msisdn:""}},data:()=>({topNavHeight:0,fixedMainNavVisible:!1,fixedMainNavSlideUpAnimation:!1,scrollAt:250,countries:{kuwait:{en:"Kuwait",ar:"الكويت",link:"https://www.kw.zain.com/"},bahrain:{en:"Bahrain",ar:"البحرين",link:"https://www.bh.zain.com/en"},iraq:{en:"Iraq",ar:"العراق",link:"https://www.iq.zain.com/en"},jordan:{en:"Jordan",ar:"الأردن",link:"https://www.jo.zain.com/en"},lebanon:{en:"Lebanon",ar:"لبنان",link:"https://www.touch.com.lb/autoforms/portal/touch"},morocco:{en:"Morocco",ar:"المغرب",link:"https://inwi.ma/"},saudiArabia:{en:"Saudi Arabia",ar:"السعودية",link:"https://www.sa.zain.com/en"},sudan:{en:"Sudan",ar:"السودان",link:"https://www.sd.zain.com/en"}},selectedCountry:"kuwait",isSelectCountryDropdownOpen:!1,mobileMenu:!1,mobileMenuActive:!1,mobileMenuClasses:[],switchClass:[],enter:["ease-out","duration-300"],exit:["ease-in","duration-200"],enterMobileMenuFrom:["opacity-0","translate-y-0","scale-y-50"],enterMobileMenuTo:["opacity-100","translate-y-0","scale-y-100"],exitMobileMenuTo:["opacity-0","translate-y-0","scale-y-50"],searchQuery:""}),watch:{mobileMenu:{handler:function(){if(this.mobileMenu){this.mobileMenuClasses=[...this.enter,...this.enterMobileMenuFrom],this.mobileMenuActive=!0;const e=this;setTimeout(()=>{e.mobileMenuClasses=[...e.enter,...e.enterMobileMenuTo]},0)}else{this.mobileMenuClasses=[...this.exit,...this.exitMobileMenuTo];const e=this;setTimeout(()=>e.mobileMenuActive=!1,200)}}},windowScroll:{handler:function(e){this.setMainNavVisibility(e)}},"$store.state.fixedScrollContainerIsActive":{handler:function(){this.registerViewListeners()}}},mounted(){this.registerViewListeners()},methods:{setMainNavVisibility(e){e>300&&!this.fixedMainNavVisible?this.fixedMainNavVisible=!0:e<301&&this.fixedMainNavVisible&&(this.fixedMainNavSlideUpAnimation=!0,setTimeout(()=>{this.fixedMainNavVisible=!1,this.fixedMainNavSlideUpAnimation=!1},280))},onCountryDropdownClick(e){this.selectedCountry=e,this.isSelectCountryDropdownOpen=!1,window.open(this.countries[e]["link"],"_self")},registerViewListeners(){let e=this;e.$store.state.windowWidth=window.innerWidth;const t=this.$store.state.fixedScrollContainerIsActive?document.getElementById("app"):window;e.$store.state.windowScroll=(null===t||void 0===t?void 0:t.scrollTop)||(null===t||void 0===t?void 0:t.offsetTop),e.$store.state.windowWidth=window.innerWidth,t.onscroll=t=>{e.$store.state.windowScroll=t.target.scrollTop||window.scrollY},window.addEventListener("resize",()=>{e.$store.state.windowWidth=window.innerWidth})},onClickUpdateCivilID(){this.mobileMenu=!1,this.$router.push("/update-civil-id")}}},ns=is,rs=(a("91c9"),Object(v["a"])(ns,c,d,!1,null,null,null)),os=rs.exports,ls=function(){var e=this,t=e._self._c;return t("div",{staticClass:"footer border-t-2 border-primary px-5"},[t("div",{staticClass:"max-w-sm mx-auto md:max-w-full mx-0"},[t("div",{staticClass:"max-w-6xl mx-auto md:grid md:grid-cols-4 text-white text-center md:text-start"},[t("div",[t("ZFooterSection",{attrs:{title:"Postpaid",link:"/shop/postpaid"+e.shopURLParameters,list:e.footerContent.postpaid}}),t("hr",{staticClass:"md:hidden border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"}),t("ZFooterSection",{staticClass:"md:mt-5",attrs:{title:"Devices",link:"/shop/devices"+e.shopURLParameters,list:e.footerContent.devices}}),t("hr",{staticClass:"md:hidden border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"})],1),t("div",[t("ZFooterSection",{attrs:{title:"Prepaid",link:"/shop/prepaid"+e.shopURLParameters,list:e.footerContent.prepaid}}),t("hr",{staticClass:"md:hidden border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"}),t("ZFooterSection",{staticClass:"md:mt-5",attrs:{title:"OtherServices",link:"/shop/services"+e.shopURLParameters,list:e.footerContent.otherServices}}),t("hr",{staticClass:"md:hidden border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"})],1),t("div",[t("ZFooterSection",{attrs:{title:"Support",link:"/support"+e.shopURLParameters,list:e.footerContent.support}}),t("hr",{staticClass:"md:hidden border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"})],1),t("div",[t("p",{staticClass:"hidden bold mb-5 md:block text-2xl"},[e._v(e._s(e.$t("ConnectWithUs")))]),e._m(0),t("div",[t("hr",{staticClass:"border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"}),t("p",{staticClass:"bold mb-5 block text-2xl",attrs:{role:"button"},on:{click:e.onClickUpdateCivilID}},[e._v(e._s(e.$t("UpdateCivilID")))])]),t("hr",{staticClass:"border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"}),t("p",{staticClass:"bold mb-5 block text-2xl"},[e._v(e._s(e.$t("TrackYourOrder")))]),t("z-input",{staticClass:"w-full text-white",attrs:{"input-style":"color: white",pattern:"[0-9]*",placeholder:e.$t("TrackingNumber"),"input-type":"number","input-classes":"text-white bg-gray-300 bg-opacity-40 rounded-md placeholder-white",borderless:""},nativeOn:{keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onTrackOrder.apply(null,arguments)}},scopedSlots:e._u([{key:"right",fn:function(){return[t("div",{staticClass:"icon-arrow-pointing-to-right",class:{"transform rotate-180":"ar"===e.$i18n.locale},attrs:{role:"button"},on:{click:e.onTrackOrder}})]},proxy:!0}]),model:{value:e.trackingNumber,callback:function(t){e.trackingNumber=t},expression:"trackingNumber"}})],1)]),t("hr",{staticClass:"border-t border-opacity-10 border-white my-4 max-w-6xl mx-auto"}),t("div",{staticClass:"mb-24 md:mb-0 gap-4 flex flex-col md:flex-row md:justify-center items-center"},[t("img",{staticClass:"block h-8 w-auto",attrs:{src:a("ca9b"),alt:"Zain Logo"}}),t("a",{staticClass:"text-white",attrs:{href:e.$store.state.zainURL+e.$i18n.locale+"/shop/privacy-policy"+e.shopURLParameters}},[e._v(" "+e._s(e.$t("PrivacyPolicy"))+" ")]),t("div",{staticClass:"text-white text-sm"},[e._v(" "+e._s(e.$t("Copyright © 2021 Zain All Rights Reserved"))+" ")])])])])},cs=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-wrap justify-between"},[t("a",{staticClass:"icon-Group-1564 hover:text-primary text-3xl",attrs:{href:"https://www.instagram.com/zainkuwait"}}),t("a",{staticClass:"icon-twitter hover:text-primary text-3xl",attrs:{href:"https://twitter.com/zainkuwait"}}),t("a",{staticClass:"icon-facebook hover:text-primary text-3xl",attrs:{href:"https://www.facebook.com/zainkuwait"}}),t("a",{staticClass:"icon-Youtube hover:text-primary text-3xl",attrs:{href:"https://www.youtube.com/user/ZainTelecom"}})])}],ds=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"md:hidden inline text-2xl",attrs:{role:"button"},on:{click:e.onClickShowList}},[e._v(" "+e._s(e.showList?"−":"+")+" ")]),t("a",{staticClass:"bold mb-5 block text-2xl inline",attrs:{href:e.$store.state.zainURL+e.$i18n.locale+""+e.link}},[e._v(" "+e._s(e.$t(e.title))+" ")]),e.showList?t("div",{staticClass:"md:hidden"},e._l(e.list,(function(a){return t("a",{key:"postpaid "+a.name,staticClass:"block leading-9 animate-fade-in-down",attrs:{href:a.bypass?a.link+e.shopURLParameters:e.$store.state.zainURL+e.$i18n.locale+a.link+e.shopURLParameters}},[e._v(" "+e._s(e.$t(a.name.replace(/ /g,"")))+" ")])})),0):e._e(),e._l(e.list,(function(a){return t("a",{key:"postpaid "+a.name,staticClass:"block leading-9 hidden md:block",attrs:{href:a.bypass?a.link+e.shopURLParameters:e.$store.state.zainURL+e.$i18n.locale+a.link+e.shopURLParameters}},[e._v(" "+e._s(e.$t(a.name.replace(/ /g,"")))+" ")])}))],2)},us=[],ps={name:"ZFooterSection",props:{title:{type:String,default:""},list:{type:Array,default:()=>[]},link:{type:String,default:""}},computed:{shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""}},methods:{onClickShowList(){this.showList=!this.showList}},data(){return{showList:!1}}},ms=ps,hs=Object(v["a"])(ms,ds,us,!1,null,"c354f6aa",null),vs=hs.exports,gs={name:"ZFooter",components:{ZFooterSection:vs,ZInput:H},data(){return{footerContent:{devices:[{name:"Accessories",link:"/shop/accessories"},{name:"Gaming",link:"/shop/gaming"},{name:"Internet Devices",link:"/shop/internet-devices"},{name:"Laptops & Tablets",link:"/shop/laptops-tablets"},{name:"Smart Home",link:"/shop/smart-home"},{name:"Smart TV’s",link:"/shop/tvs"},{name:"Smart Phones",link:"/shop/smartphones"},{name:"Wearables and Headsets",link:"/shop/wearables"}],postpaid:[{name:"5G Internet Plans",link:"/shop/5g-internet"},{name:"Roaming",link:"/roaming"},{name:"Wiyana Smartphone Plans",link:"/shop/wiyana"},{name:"Zain Plus",link:"/shop/zainplus"}],prepaid:[{name:"Buy Eezee Sim Card",link:"/shop/eezeesim"},{name:"Eezee Flexi",link:"/shop/flexi"},{name:"EeZee Ready Made Plans",link:"/shop/eezee-plans"},{name:"Roaming",link:"/roaming"}],otherServices:[{name:"Device Trade In",link:"/shop/device-trade-in"},{name:"Mobile Insurance",link:"/shop/mobile-insurance"}],support:[{name:"Chat With ZBot",link:"https://chat.kw.zain.com/",bypass:!0},{name:"Order History",link:"/"},{name:"Find Us",link:"/branch-locator"},{name:"FAQ",link:"/faq"},{name:"About Zain",link:"/our-story"}]},trackingNumber:""}},computed:{products(){var e,t,a;return null!==(e=this.$store)&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&null!==(a=t.contentLayout)&&void 0!==a&&a.footer?this.getFooterContent("Products"):[]},plans(){var e,t,a;return null!==(e=this.$store)&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&null!==(a=t.contentLayout)&&void 0!==a&&a.footer?this.getFooterContent("Plans"):[]},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""},trackingURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"&m="+this.$store.state.msisdn:""}},methods:{getFooterContent(e){return this.$store.state.contentLayout.footer.find(t=>t.nameEn===e).submeuLists.filter(e=>null!==e)},onTrackOrder(){this.trackingNumber&&window.open(this.$store.state.zainURL+this.$i18n.locale+"/shop/order-tracking?orderId="+this.trackingNumber+this.trackingURLParameters)},onClickUpdateCivilID(){this.$router.push("/update-civil-id")}}},fs=gs,ys=(a("da3b"),Object(v["a"])(fs,ls,cs,!1,null,"787f99fc",null)),bs=ys.exports,xs=function(){var e=this,t=e._self._c;return e.campaign?t("div",{staticStyle:{background:"black"}},[t("z-modal",{staticClass:"bg-opacity-80",attrs:{active:e.isOffersPopUpActive,"bg-opacity":80},on:{"update:active":function(t){e.isOffersPopUpActive=t}}},[t("z-loading",{attrs:{active:e.loading},on:{"update:active":function(t){e.loading=t}}}),t("img",{staticClass:"w-full",attrs:{src:e.getCampaignUrl(),alt:"offers popup picture"}}),t("div",{staticClass:"p-6 text-start"},[t("div",[t("div",{staticClass:"text-2xl font-bold mb-2"},[e._v(e._s(e.getCampaignTitle()))]),t("div",{staticClass:"mb-2"},[e._v(e._s(e.getCampaignDescription()))])]),e.getCampaignCost()?t("div",[t("div",[e._v(" "+e._s(e.$t("PackagePrice"))+" ")]),t("div",[t("span",{staticClass:"text-2xl font-bold text-green"},[e._v(e._s(e.positionedPrice(e.getCampaignCost())))]),t("span",{staticClass:"ms-1"},[e._v(e._s(e.$t("Monthly").toLowerCase()))])])]):e._e(),e.defaultActionsShown?t("div",{staticClass:"pt-1.5"},[t("z-button",{on:{click:e.onClickBuyNow}},[e._v(" "+e._s(e.$t("BuyNow").toUpperCase())+" ")])],1):e._e(),e.isCivilIdCampaign?t("div",{staticClass:"flex justify-between items-center"},[t("z-button",{on:{click:e.onClickUpdateCivilID}},[e._v(" "+e._s(e.$t("UpdateMyCivilID"))+" ")]),e.loading?e._e():t("div",{staticClass:"underline opacity-50",attrs:{role:"button"},on:{click:function(t){return e.onCampaignFeedback("later")}}},[e._v(" "+e._s(e.$t("RemindMeLater"))+" ")])],1):e._e(),e.isUnityCampaign?t("div",{staticClass:"flex justify-between items-center"},[t("z-button",{on:{click:e.onClickBuyNow}},[e._v(" "+e._s(e.$t("ClickHere"))+" ")]),e.loading?e._e():t("div",{staticClass:"underline opacity-50",attrs:{role:"button"},on:{click:function(t){return e.onCampaignFeedback("rejected")}}},[e._v(" "+e._s(e.$t("NotInterested").toUpperCase())+" ")])],1):e._e()]),!e.loading&&e.defaultActionsShown?t("div",{staticClass:"w-full z-50 max-w-lg w-full text-white sm:block sm:p-0",attrs:{slot:"belowModal"},slot:"belowModal"},[t("div",{staticClass:"flex justify-between items-center"},[t("div",{staticClass:"underline",attrs:{role:"button"},on:{click:function(t){return e.onCampaignFeedback("rejected")}}},[e._v(" "+e._s(e.$t("NotInterested").toUpperCase())+" ")]),t("div",{on:{click:function(t){return e.onCampaignFeedback("later")}}},[t("z-button",{attrs:{size:"small",outlined:"",type:"white"}},[e._v(" "+e._s(e.$t("MaybeLater").toUpperCase())+" ")])],1)])]):e._e()],1),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":"",message:e.$t("YourRequestHasBeenSuccessfullySubmitted"),title:e.$t("ThankYou")},on:{"update:active":e.onStatusModalCancel}})],1):e._e()},Cs=[],ws={methods:{positionedPrice(e,t=!1,a=3){return e=parseFloat(e),t?(this.$i18n.locale,`${e.toFixed(a)} ${this.$t("KD")}`):"ar"===this.$i18n.locale?`${e.toFixed(a)} ${this.$t("KD")}`:`${this.$t("KD")} ${e.toFixed(a)}`}}},_s=function(){var e=this,t=e._self._c;return t("z-modal",{attrs:{"can-cancel":"",active:e.isModalActive,"on-cancel":e.onModalCancel},on:{"update:active":[e.onCancel,function(t){e.isModalActive=t}]}},[t("div",{staticClass:"flex flex-col justify-between items-center pt-8 pb-4 px-2"},[e.title?t("h1",{staticClass:"text-xl font-bold"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("div",{staticClass:"text-6xl pt-6"},[t("span",{class:e.isSuccess?"icon-check-mark-button text-green":"icon-Shortcut---close text-danger"})]),e.message?t("h4",{staticClass:"mt-6 mb-6"},[e._v(" "+e._s(e.message)+" ")]):e._e(),e._t("default")],2)])},As=[],Ss={name:"StatusModal",components:{ZModal:Be},props:{isStatusModalActive:{type:Boolean,default:!1},isSuccess:{type:Boolean,default:!1},title:{type:String,default:""},message:{type:String,default:""},onModalCancel:Function},watch:{isStatusModalActive:function(e){this.isModalActive=e}},data(){return{isModalActive:!1}},methods:{onCancel(){this.isModalActive=!1,this.$emit("update:active",!1)}},beforeMount(){this.isModalActive=this.isStatusModalActive}},Ts=Ss,ks=Object(v["a"])(Ts,_s,As,!1,null,"7d9f5b74",null),Ps=ks.exports,$s={name:"OffersPopup",components:{StatusModal:Ps,ZLoading:Je,ZButton:R,ZModal:Be},mixins:[se,ws],computed:{campaigns(){return Ea["default"].addEvent({event_name:"Offer Appeared"}),this.$store.state[ae["b"].CAMPAIGNS]},campaign(){var e,t,a;return null===(e=this.$store.state[ae["b"].CAMPAIGNS].data)||void 0===e||null===(t=e.Campaigns)||void 0===t||null===(a=t.Campaign.filter(e=>e.CampaignParams.StringParam.find(e=>{var t;return"OfferType"===e.attributes.name&&("unity"===(null===(t=e.$value)||void 0===t?void 0:t.toLowerCase())||"KYC"===e.$value||"Generic"===e.$value||e.$value.includes("zos"))})))||void 0===a?void 0:a[0]},isCivilIdCampaign(){var e;return"New_Expiry_ID_website"===(null===(e=this.campaign)||void 0===e?void 0:e.CampaignName)},isUnityCampaign(){var e;return"unity"===(null===(e=this.stringParamExtractor("OfferType"))||void 0===e?void 0:e.toLowerCase())},defaultActionsShown(){return!this.isCivilIdCampaign&&!this.isUnityCampaign},selectedOffer(){return this.$store.state.selectedOffer},isOffersPopUpActive:{get(){return this.$store.state.isOffersPopUpActive},set(e){this.$store.state.isOffersPopUpActive=e}}},data(){return{isStatusModalActive:!1,loading:!1}},methods:{stringParamExtractor(e){const t=this.selectedOffer.OfferID?this.selectedOffer:this.campaign,a=t.CampaignParams.StringParam.find(t=>t.attributes.name===e);return a.$value},getCampaignUrl(){return"ar"===this.$i18n.locale?this.stringParamExtractor("ArabicImageURL"):this.stringParamExtractor("EnglishImageURL")},getCampaignTitle(){return"ar"===this.$i18n.locale?this.stringParamExtractor("ArabicOfferTitle"):this.stringParamExtractor("EnglishOfferTitle")},getCampaignDescription(){return"ar"===this.$i18n.locale?this.stringParamExtractor("ArabicOfferDescription"):this.stringParamExtractor("EnglishOfferDescription")},getCampaignCost(){return this.stringParamExtractor("OfferCost")},clearSelectedOffer(){setTimeout(()=>{this.$store.state.selectedOffer={}},700)},onClickUpdateCivilID(){this.$router.push("/update-civil-id"),this.isOffersPopUpActive=!1},async onCampaignFeedback(e){this.loading=!0;try{await this.$store.dispatch("callApi",{apiMethod:G["a"].sendCampaignFeedback,args:{response:e,campaignId:this.campaign.CampaignID,offerId:this.campaign.OfferID}}).then(()=>{"accepted"===e&&(this.isStatusModalActive=!0)}),this.isOffersPopUpActive=!1,this.clearSelectedOffer(),this.loading=!1,this.campaigns.isDirty=!0}catch(t){this.clearSelectedOffer(),this.loading=!1}},async onClickBuyNow(){const e=this.stringParamExtractor("OfferType");if(e.includes("zos")){await this.onCampaignFeedback("submitted"),this.isOffersPopUpActive=!0,this.loading=!0;const t=e.slice(4),a=`https://www.kw.zain.com/${this.$i18n.locale}/shop/zo/${t}?msisdn=${this.$store.state.msisdn}&channelName=MYZAIN`;window.open(a,"_self"),this.isOffersPopUpActive=!1,this.clearSelectedOffer(),this.loading=!1}else if(this.isUnityCampaign){await this.onCampaignFeedback("submitted"),this.isOffersPopUpActive=!0,this.loading=!0;const e=this.stringParamExtractor("OfferURL");window.open(e,"_self"),this.isOffersPopUpActive=!1,this.clearSelectedOffer(),this.loading=!1}else await this.onCampaignFeedback("accepted"),this.clearSelectedOffer()},onStatusModalCancel(){this.isStatusModalActive=!1}},mounted(){this.initStateResources(ae["b"].CAMPAIGNS),this.$store.subscribe(e=>{"setUserInfo"===e.type&&(this.$store.dispatch("fetchResource",{resource:ae["b"].CAMPAIGNS,force:!0}),this.clearSelectedOffer(),["/pay","/payment"].includes(window.location.pathname)||(this.isOffersPopUpActive=!0))})}},Ms=$s,Os=Object(v["a"])(Ms,xs,Cs,!1,null,"d2ec4470",null),Ns=Os.exports,Es=a("1ab6"),Ds=function(){var e=this;e._self._c;return e._m(0)},Is=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"px-3 h-full header-bg"},[t("div",{staticClass:"text-white text-center flex flex-col justify-center items-center h-full space-y-3"},[t("img",{attrs:{src:a("ca9b")}}),t("div",{staticClass:"max-w-lg space-y-3 text-xl"},[t("div",{staticStyle:{direction:"rtl"}},[e._v(" عالمنا الجميل قيد التطوير لخدمتكم بشكل أفضل، نقوم بتحديث وتطوير موقعنا الإلكتروني. نعتذر عن الإزعاج ونشكر تفهّمكم. "),t("br"),e._v(" للمساعدة، يرجى الإتصال على "),t("a",{staticClass:"text-blue-600 underline",attrs:{href:"tel:107"}},[e._v("107")])]),t("div",[e._v(" Upgrading our wonderful world To provide you with a better service, our website is currently experiencing an upgrade. We appreciate your understanding and apologize for any inconvenience. "),t("br"),e._v(" For assistance, please call "),t("a",{staticClass:"text-blue-600 underline",attrs:{href:"tel:107"}},[e._v("107")])])])])])}],Bs={name:"TemporaryDown",computed:{userAgent(){return navigator.userAgent||navigator.vendor||window.opera},isAndroid(){return this.userAgent.includes("Android")},isHuawei(){let e=!1;const t=["ALP-","AMN-","ANA-","ANE-","ANG-","AQM-","ARS-","ART-","ATU-","BAC-","BLA-","BRQ-","CAG-","CAM-","CAN-","CAZ-","CDL-","CDY-","CLT-","CRO-","CUN-","DIG-","DRA-","DUA-","DUB-","DVC-","ELE-","ELS-","EML-","EVA-","EVR-","FIG-","FLA-","FRL-","GLK-","HMA-","HW-","HWI-","INE-","JAT-","JEF-","JER-","JKM-","JNY-","JSC-","LDN-","LIO-","LON-","LUA-","LYA-","LYO-","MAR-","MED-","MHA-","MLA-","MRD-","MYA-","NCE-","NEO-","NOH-","NOP-","OCE-","PAR-","PIC-","POT-","PPA-","PRA-","RNE-","SEA-","SLA-","SNE-","SPN-","STK-","TAH-","TAS-","TET-","TRT-","VCE-","VIE-","VKY-","VNS-","VOG-","VTR-","WAS-","WKG-","WLZ-","YAL"];for(let a=0;a{e.window.location="https://apps.apple.com/kw/app/zain-kw/id399198545"},1e3)}}},mounted(){this.$i18n.locale="en"}},Ls=Bs,Rs=Object(v["a"])(Ls,Ds,Is,!1,null,"004a2ffe",null),Us=Rs.exports,zs=a("bc3a"),js=a.n(zs),Fs={metaInfo:{title:"MyZain",meta:[{name:"description",content:"Zain is the pioneer of mobile telecommunications in the Middle East. We began life in 1983 in Kuwait as the region’s first mobile operator, and since the initiation of our expansion strategy in 2003, we have expanded rapidly. Today, we are a leading"},{name:"viewport",content:"width=device-width, initial-scale=1"}],htmlAttrs:{lang:"en"}},components:{TemporaryDown:Us,OffersPopup:Ns,ZLoading:Je,ZFooter:bs,ZNav:os},mixins:[se],async mounted(){if(this.maintenanceMode||!this.showNav)return this.$store.state.globalLoading=!1;await this.checkLangParam(),await this.loginFlow(),this.$store.getters.isCorporate&&ja["a"].CorporateRedirection&&"sim"===this.$store.state.loginType&&(this.$store.state.globalLoading=!0,await location.replace(`https://www.kw.zain.com/${this.$i18n.locale}/web/business-myzain`)),this.initStateResources(ae["b"].FEATURE_FLAGS).then(),this.darkModeEasterEgg();let e=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;await this.$store.dispatch("setFixedScrollContainer",e),Ea["default"].initmParticle()},computed:{getCustomerLines(){var e,t;return null!==(e=null===(t=this.$store.state.customerLines)||void 0===t?void 0:t.filter(e=>e.is_validated))&&void 0!==e?e:[]},isLoggedIn(){return this.$store.state.isLoggedIn},locale(){return this.$i18n.locale},showFooter(){const e=["/pay","/payment","/flexi-edit-plan","/max"];return!e.includes(this.$route.path)},showNav(){const e=["/max"];return!e.includes(this.$route.path)},showPopup(){const e=["/max"];return!e.includes(this.$route.path)},maintenanceMode(){return this.$store.state.maintenanceMode}},methods:{async loginFlow(){js.a.get("/config.json").then(e=>{var t,a;null!==(t=e.data)&&void 0!==t&&t["CHANNEL_CMS_URL"]&&(this.$store.state.cmsBackendHost=null===(a=e.data)||void 0===a?void 0:a["CHANNEL_CMS_URL"])}).catch(e=>{console.error(e,"failed to set config")});const e=new URLSearchParams(window.location.search),t=e.get("code"),a=e.get("error"),s=e.get("state"),i=e.get("external_reference"),n=e.get("transaction_id");let r=e.get("m");const o=e.get("c");if(t||a)if(Vs(),"login_required"===a&&"sim"!==this.$store.state.loginType)this.$store.state.globalLoading=!0,this.$store.state.keycloakResult="login_required";else if(t&&(this.$store.state.globalLoading=!0,await this.$store.dispatch("keycloakLogin",t),ja["a"].CorporateRedirection&&this.$store.getters.isCorporate)){const e=this.getCustomerLines.find(e=>"Corporate"!==e.segment);e?(this.$store.state.globalLoading=!0,await this.setMsisdn(e.msisdn,!1)):await location.replace(`https://www.kw.zain.com/${this.$i18n.locale}/web/business-myzain`)}if(n)return Object(Es["a"])(this.$store,!0,location.href,r);if(!i){const e="/pay"===window.location.pathname;await Object(Es["a"])(this.$store,(!!r||!!o)&&e,null,r)}if(s){this.$store.state.globalLoading=!0;const e=JSON.parse(s);if(r=e.m,!r)return this.$store.state.globalLoading=!1,await this.$router.push(e.page)}if(r&&this.isLoggedIn&&this.getCustomerLines.find(e=>e.msisdn===r)&&(this.$store.state.globalLoading=!0,await this.setMsisdn(r,!0)),this.$store.getters.isCorporate&&ja["a"].CorporateRedirection)if(this.$store.state.globalLoading=!0,"sim"===this.$store.state.loginType)await location.replace(`https://www.kw.zain.com/${this.$i18n.locale}/web/business-myzain`);else{const e=this.getCustomerLines.find(e=>"Corporate"!==e.segment);e?await this.setMsisdn(e.msisdn,!1):await location.replace(`https://www.kw.zain.com/${this.$i18n.locale}/web/business-myzain`)}setTimeout(()=>{this.$store.state.globalLoading=!1},1e3)},async setMsisdn(e,t){(this.$store.state.msisdn!==e||t)&&(await this.$store.dispatch("setActiveKeycloakMsisdn",e),this.$store.state.globalLoading=!1,await this.$router.push("/"))},darkModeEasterEgg(){document.addEventListener("keyup",e=>{const t=["ArrowUp","ArrowUp","ArrowDown","ArrowDown","ArrowLeft","ArrowRight","ArrowLeft","ArrowRight","b","a"];let a=JSON.parse(localStorage.getItem("darkModeCode"));const s=e.key;null===a||0===a.length?a=[s]:a.push(s);const i=()=>localStorage.setItem("darkModeCode",JSON.stringify([]));t[a.length-1]===s?t.length===a.length?document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),i()):(document.documentElement.classList.add("dark"),i()):localStorage.setItem("darkModeCode",JSON.stringify(a)):i()})},async checkLangParam(){this.$route.query.lang&&["ar","en"].includes(this.$route.query.lang)&&this.$i18n.setLocale(this.$route.query.lang)}},watch:{locale(e){["en","ar"].includes(e)||(localStorage.setItem("locale","ar"),this.$i18n.locale="ar")}}};const Vs=()=>{window.history.pushState(null,"","/")};var Hs=Fs,Gs=(a("5d45"),Object(v["a"])(Hs,o,l,!1,null,null,null)),Zs=Gs.exports;class qs{static get CONFIG(){return{host:"/api",lockedModeEnabled:"false",lockedModePassword:"Z@inDevTeam",otpResendAfter:"60"}}static value(e){if(!(e in this.CONFIG))return void console.warn(`Configuration: There is no key named: "${e}"`);const t=this.CONFIG[e];if(t){if(!t.startsWith("$VUE_APP_"))return t;{const e=t.substr(1),a=Object({VUE_APP_BACKEND_HOST:"/api",VUE_APP_LOG_ROCKET_ENABLED:"false",VUE_APP_CHANNELS_CMS_URL:"https://channels-cms.zcloud.kw.zain.com",VUE_APP_MPARTICLE_MODE:"production",NODE_ENV:"production",VUE_APP_LOG_ROCKET_APP_ID:"pjv2ye/myzain",VUE_APP_OTP_RESEND_AFTER:"60",VUE_APP_LOCKED_MODE_ENABLED:"true",VUE_APP_LOCKED_MODE_PASSWORD:"Z@inDevTeam",BASE_URL:"/"})[e];if(a)return a;console.warn(`Configuration: Environment variable "${e}" is not defined`)}}else console.warn(`Configuration: Value for "${e}" is not defined`)}}var Ks={name:"Entry",components:{ZButton:R,ZInput:H,App:Zs},data(){return{myZP:""}},methods:{unlock(){this.myZP!==qs.value("lockedModePassword")?alert("Wrong Password"):(localStorage.setItem("lockedModeActive","noEsN0t019"),this.$store.state.lockedModeActive=!1)}},mounted(){if("true"===qs.value("lockedModeEnabled")){const e=localStorage.getItem("lockedModeActive");"noEsN0t019"===e&&(this.$store.state.lockedModeActive=!1)}else this.$store.state.lockedModeActive=!1}},Ys=Ks,Ws=Object(v["a"])(Ys,n,r,!1,null,"9f83da10",null),Qs=Ws.exports,Xs=(a("5b81"),a("8c4f")),Js=function(){var e=this,t=e._self._c;return t("div",[e.$store.state.isLoggedIn&&e.isContractHolder?t("b2-b-dashboard"):e.$store.state.isLoggedIn&&e.$store.state.msisdn?t("dashboard"):t("anon-dashboard")],1)},ei=[],ti=function(){var e=this,t=e._self._c;return t("div",[t("zbot-fixed-circle"),t("div",{staticClass:"px-3 mt-3"},[e.$store.getters["quickPay/getTerminatedBalance"].Total>0?t("div",[t("div",{staticClass:"py-4 mb-3 max-w-6xl mx-auto"},[t("SactDashboardBanner")],1)]):t("div",[e.isHappyTuesdayEnabled?t("div",{staticClass:"py-4 mb-10 bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center relative"},[t("happy-tuesday")],1):e._e(),e.$store.getters["ghostPostpaid/isEligibleForGhostOnBoarding"]&&!e.showDisneyBanner?t("ghost-on-boarding-banner"):e._e(),e.showDisneyBanner&&e.$store.getters.isPostpaid&&"Voice"===e.$store.getters.getBasicServiceType?t("DisneyOfferBanner"):e._e(),e.$store.getters.isPostpaid?t("ghost-order-status-banner"):e._e(),e.isQuadValidity?t("div",[t("ghost-configuration-banner")],1):e._e()],1),t("div",{staticClass:"bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center relative"},[t("div",{staticClass:"md:grid md:grid-cols-2 md:gap-y-10"},[t("div",{staticClass:"px-3 py-3 md:h-85 border-0 md:border-e md:border-gray-200 dark:border-gray-600 relative"},[t("balance")],1),e.$store.getters.isPostpaid?t("div",{staticClass:"px-4 py-5 border-t border-gray-300 dark:border-gray-600 md:border-0 relative"},[t("past-bills")],1):e._e(),e.$store.getters.isPrepaid?t("div",{staticClass:"px-4 py-5 border-t border-gray-300 dark:border-gray-600 md:border-0 relative"},[t("recharge-history",{staticClass:"h-full"})],1):e._e()])]),e.$store.getters.isPostpaid?t("pink-h-r",{staticClass:"mt-10",attrs:{noMargin:""}}):e._e(),e.$store.state.msisdn&&"Voice"===e.$store.getters.getBasicServiceType?t("div",{staticClass:"py-4 mt-10 bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center"},[t("img",{staticClass:"inline-block mx-2",attrs:{src:a("c116"),alt:"Transfer Credit"}}),t("p",{staticClass:"inline-block text-gray-500 dark:text-gray-50 font-semibold text-lg"},[e._v(" "+e._s(e.$t("WantToTransferCredit"))+" "),t("router-link",{staticClass:"underline text-primary",attrs:{to:"/creditTransfer","exact-active-class":"active"}},[t("span",[e._v(e._s(e.$t("ClickHere")))])])],1)]):e._e(),t("div",{staticClass:"max-w-6xl mx-auto space-y-10 md:space-y-0",class:{"md:grid md:grid-cols-2 md:gap-y-10 md:gap-10":e.$store.getters.isPostpaid}},[t("usage"),e.$store.getters.isPostpaid?t("commitments"):e._e()],1)],1),t("pink-h-r",{staticClass:"mt-10",attrs:{noMargin:""}}),!(e.services.loading&&!e.services.fetchedAt||e.services.data&&e.services.data.length>0&&e.services.fetchedAt)||e.isQuadValidity||e.$store.getters.isPostpaid&&"Voice"===e.$store.getters.getBasicServiceType?e._e():t("div",[t("services",{staticClass:"h-96",attrs:{services:e.services}}),t("pink-h-r",{staticClass:"mt-20",attrs:{noMargin:""}})],1),e.isQuadValidity||e.$store.getters.isPostpaid&&"Voice"===e.$store.getters.getBasicServiceType?t("div",[t("ghost-content",{ref:"MyContent",staticStyle:{"scroll-margin":"50px"},attrs:{id:"MyContent","is-quad":e.isQuadValidity}}),"anonymous"!==e.$store.state.loginType?t("ECards"):e._e(),"Voice"===e.$store.getters.getBasicServiceType&&e.services.data&&e.services.data.length>0?t("roaming-carousel",{attrs:{services:e.services.data.filter(e=>"Roaming"===e.groupName)}}):e._e()],1):e._e(),t("offers")],1)},ai=[],si=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-full"},[t("z-loading",{attrs:{active:e.balance.loading||e.loading,"is-full-page":!1}}),e.hasBalanceData?t("div",{staticClass:"pt-8 flex-col flex h-full"},[t("h3",{staticClass:"text-lg leading-6 font-medium text-gray-900 dark:text-white"},[e._v(" "+e._s(e.$store.getters.isPostpaid?e.$t("TotalBill"):e.$t("Balance"))+" ")]),t("p",{staticClass:"mt-4 text-4xl font-bold"},[e.$store.getters.isPostpaid?t("span",{staticClass:"text-green"},[e._v(" "+e._s(e.positionedPrice(e.balance.data.PastDue+e.balance.data.Unbilled))+" ")]):t("span",{class:{"text-red-600":e.balance.data.Balance.toFixed(3)<0,"text-green":e.balance.data.Balance.toFixed(3)>=0}},[e._v(" "+e._s(e.positionedPrice(e.balance.data.Balance))+" ")])]),t("p",{staticClass:"py-4 dark:text-white"},[e.$store.getters.isPostpaid?t("span",[e._v(" "+e._s(e.$t("DueBy"))+" "+e._s(e.DueBy()))]):t("span",[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(e.balance.data.ExpiryDate.split("T")[0])))])]),t("auto-pay-toggle"),t("div",{staticClass:"mt-6",class:{"md:mt-8":e.$store.getters.isPrepaid&&"sim"===e.$store.state.loginType,"md:mt-10":!(e.$store.getters.isPrepaid&&"sim"===e.$store.state.loginType)}},[e.$store.getters.isPostpaid?t("z-button",{staticClass:"mx-auto w-full max-w-sm",on:{click:function(t){return e.$router.push("/pay")}}},[e._v(" "+e._s(e.$t("PayBill"))+" ")]):e._e(),e.$store.getters.isPrepaid?t("z-button",{staticClass:"mx-auto w-full max-w-sm",on:{click:function(t){return e.$router.push("/pay")}}},[e._v(" "+e._s(e.$t("Recharge"))+" ")]):e._e(),e.$store.getters.isPrepaid&&"sim"===e.$store.state.loginType?t("a",{staticClass:"mx-auto w-full block text-gray-700 mt-2"},[t("span",{staticClass:"zunderline",on:{click:e.rechargeByVoucherModal}},[e._v(e._s(e.$t("RechargeByVoucher")))])]):e._e()],1)],1):t("div",[e._v("No Balance Data Available")])],1)},ii=[];ba["Settings"].defaultZoneName="UTC+3";var ni={data(){return{monthNames:{en:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],ar:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر"]},fullMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],DateTime:ba["DateTime"]}},methods:{prettyDate(e,t){return t||(t=this.$i18n.locale),"ar"===t?ba["DateTime"].fromISO(e).toFormat("yyyy/LL/dd"):ba["DateTime"].fromISO(e).toFormat("dd/LL/yyyy")},formatDate(e,t,a){a||(a=this.$i18n.locale);const s="ar"===a?t.split("").reverse().join(""):t;return ba["DateTime"].fromISO(e).toFormat(s)},daysUntilNextMonth(){return Math.ceil(ba["DateTime"].local().plus({month:1}).startOf("month").diffNow("days").days)},getPast6Months(){const e=[],t=new Date;for(let a=0;a<6;a++){const s=new Date(t.getFullYear(),t.getMonth()-a),i=s.getMonth();e.push({value:i,year:s.getFullYear(),name:{en:this.fullMonthNames[i],ar:this.monthNames["ar"][i]}})}return e.reverse()},getApproxTime(e,t){t||(t=this.$i18n.locale);let a=ba["DateTime"].fromISO(e),s=ba["DateTime"].now().diff(a,["days","hours","minutes","months","years"]).toObject();switch(!0){case s.minutes<5&&0===s.hours&&0===s.days:return"en"===t?"Now":"حاليا";case s.minutes>=5&&s.hours<1&&0===s.days:return"en"===t?Math.ceil(s.minutes)+" mins ago":` قبل ${Math.ceil(s.minutes)} دقيقة `;case s.hours>=1&&0===s.days:return 1===s.hours?"en"===t?"An hour ago":" قبل ساعة ":"en"===t?Math.ceil(s.hours)+" hours ago":` قبل ${Math.ceil(s.hours)} ساعات `;case s.days>=1&&0===s.months:return 1===s.days?"en"===t?"A day ago":" قبل يوم ":"en"===t?Math.ceil(s.days)+" days ago":` قبل ${Math.ceil(s.days)} أيام `;case s.months>=1&&0===s.years:return 1===s.months?"en"===t?"A month ago":" قبل شهر ":"en"===t?Math.ceil(s.months)+" months ago":` قبل ${Math.ceil(s.months)} شهور `;case s.years>=1:return 1===s.years?"en"===t?"A year ago":" قبل عام ":"en"===t?Math.ceil(s.years)+" years ago":` قبل ${Math.ceil(s.years)} سنين `;default:return"ar"===t?ba["DateTime"].fromISO(e).toFormat("yyyy/LL/dd"):ba["DateTime"].fromISO(e).toFormat("dd/LL/yyyy")}}}},ri=function(){var e=this,t=e._self._c;return e.autopay.data?t("div",{staticClass:"flex w-full justify-center items-center animate-fade-in-down"},[t("div",[t("div",{staticClass:"w-2 h-2 rounded-full inline-block mx-2",class:{"bg-red-600":!e.autopayIsActive,"bg-green":e.autopayIsActive}})]),t("p",{staticClass:"text-gray-500 dark:text-white text-sm inline-block"},[e._v(" "+e._s(e.autopayIsActive?e.$t(e.$store.getters.getBillingType+"AutoPayActive"):e.$t(e.$store.getters.getBillingType+"AutoPayNotActive"))+" ")]),e.autopayIsActive?t("div",{staticClass:"inline-block icon-Settings-1 text-2xl text-gray-700 cursor-pointer px-2",on:{click:function(t){return e.toggleAutopay()}}}):t("z-toggle",{staticClass:"inline-block ps-3",on:{input:function(t){return e.toggleAutopay()}},model:{value:e.localAutopayIsActive,callback:function(t){e.localAutopayIsActive=t},expression:"localAutopayIsActive"}}),t("z-modal",{attrs:{active:e.autopayModalIsActive,"can-cancel":"","on-cancel":()=>e.localAutopayIsActive=!e.localAutopayIsActive},on:{"update:active":function(t){e.autopayModalIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"Autopay"))+" ")]),e.autopayIsActive?t("div",[t("p",[e._v(e._s(e.$t(e.$store.getters.getBillingType+"Autopay"))+" "+e._s(e.$t("CurrentlyActiveFor"))+" "),t("span",{staticClass:"font-bold"},[e._v(" "+e._s(e.$store.state.msisdn))])]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:()=>e.$router.push(e.$store.getters.isPostpaid?"/auto-pay":"auto-recharge")}},[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"ManageAutopay"))+" ")]),t("z-button",{attrs:{outlined:""},on:{click:()=>(e.disableAutopayModalIsActive=!0)&&(e.autopayModalIsActive=!1)}},[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"DisableAutopay"))+" ")])],1)]):t("div",[t("p",{staticClass:"text-lg"},[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"AutopayActivateMessage"))+" ")]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:()=>e.$router.push(e.$store.getters.isPostpaid?"/auto-pay":"auto-recharge")}},[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"EnableAutopay"))+" ")])],1)])])]),t("z-modal",{attrs:{"can-cancel":"",active:e.disableAutopayModalIsActive},on:{"update:active":function(t){e.disableAutopayModalIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"DisableAutopay"))+" ")]),t("p",[e._v(" "+e._s(e.$t(e.$store.getters.getBillingType+"DisableAutopayMessage"))+" "),t("span",{staticClass:"font-bold"},[e._v(" "+e._s(e.$store.state.msisdn))])]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:function(t){return e.unregisterAutopay()}}},[e._v(" "+e._s(e.$t("Confirm"))+" ")])],1)])]),t("z-modal",{attrs:{active:e.disableAutopayModalResultIsActive},on:{"update:active":function(t){e.disableAutopayModalResultIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.disableAutopayResultIsSuccess?"Request Complete":"Error")+" ")]),t("p",[e._v(" "+e._s(e.disableAutopayResultIsSuccess?"Auto Pay has been disabled for your line ":"Error while disabling Autopay for ")+" "),t("span",{staticClass:"font-bold"},[e._v(e._s(e.$store.state.msisdn))])]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:()=>e.disableAutopayModalResultIsActive=!1}},[e._v(" OK ")])],1)])])],1):e._e()},oi=[],li={name:"AutoPayToggle",components:{ZButton:R,ZModal:Be,ZToggle:Ft},mixins:[se],data(){return{autopayModalIsActive:!1,disableAutopayModalIsActive:!1,localAutopayIsActive:!1,disableAutopayModalResultIsActive:!1,disableAutopayResultIsSuccess:!1}},computed:{autopay(){return this.$store.state[ae["b"].AUTOPAY]},autopayIsActive(){var e,t;return null===(e=this.$store.state[ae["b"].AUTOPAY])||void 0===e||null===(t=e.data)||void 0===t?void 0:t.active}},methods:{toggleAutopay(){this.autopayModalIsActive=!0},async unregisterAutopay(){this.disableAutopayModalIsActive=!1,this.loading=!0;try{var e,t,a;const i=this.$store.getters.isPostpaid?G["a"].autopayUnregisterPostpaid:G["a"].autopayUnregisterPrepaid;let n=await this.$myZainApi(i,{maskedCardNumber:null===(e=this.autopay)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.maskedCardNumber});var s;if(null!==n&&void 0!==n&&null!==(a=n.data)&&void 0!==a&&a.success)this.disableAutopayResultIsSuccess=null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.success;await this.getAutoPayData(!0)}catch(i){this.disableAutopayResultIsSuccess=!1,console.error(i)}finally{this.loading=!1,this.disableAutopayModalResultIsActive=!0}},async getAutoPayData(e=!1){await this.$store.dispatch("fetchResource",{resource:ae["b"].AUTOPAY,force:e}),this.localAutopayIsActive=this.autopayIsActive}},async mounted(){await this.initStateResources(ae["b"].AUTOPAY),this.localAutopayIsActive=this.autopayIsActive}},ci=li,di=Object(v["a"])(ci,ri,oi,!1,null,"415872b4",null),ui=di.exports,pi=function(){var e=this,t=e._self._c;return t("validation-provider",{ref:"valProv",attrs:{mode:e.mode,tag:"div",vid:e.vid,rules:e.rules,name:e.getLabel},scopedSlots:e._u([{key:"default",fn:function({errors:a,passed:s}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0],success:s&&e.showSuccessField}}},[t("div",{class:{"flex items-center":e.horizontal}},[t("label",{staticClass:"text-sm font-medium block",class:{"flex items-center me-3":e.horizontal,required:e.isRequired},attrs:{for:"cc"+e.$uuid()}},[e._v(" "+e._s(e.getLabel)+" "),e._t("label")],2),t("div",{staticClass:"relative"},[t("div",{staticClass:"flex items-center"},[e.prefix?t("span",{staticClass:"absolute start-2 font-bold text-secondary text-base py-2.5 mt-1"},[e._v(" "+e._s(e.prefix)+" ")]):e._e(),e.suffix?t("span",{staticClass:"absolute end-2 font-bold text-secondary text-base py-2.5 mt-1"},[e._v(" "+e._s(e.suffix)+" ")]):e._e(),"checkbox"===e.inputType&&"textarea"!==e.inputType?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],class:[e.classes,e.inputClasses],style:e.inputStyle,attrs:{dir:e.direction,id:"cc"+e.$uuid(),placeholder:e.placeholder,name:e.getLabel,type:"checkbox"},domProps:{checked:Array.isArray(e.localValue)?e._i(e.localValue,null)>-1:e.localValue},on:{blur:e.onBlur,change:function(t){var a=e.localValue,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=null,r=e._i(a,n);s.checked?r<0&&(e.localValue=a.concat([n])):r>-1&&(e.localValue=a.slice(0,r).concat(a.slice(r+1)))}else e.localValue=i}}},"input",e.$attrs,!1)):"radio"===e.inputType&&"textarea"!==e.inputType?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],class:[e.classes,e.inputClasses],style:e.inputStyle,attrs:{dir:e.direction,id:"cc"+e.$uuid(),placeholder:e.placeholder,name:e.getLabel,type:"radio"},domProps:{checked:e._q(e.localValue,null)},on:{blur:e.onBlur,change:function(t){e.localValue=null}}},"input",e.$attrs,!1)):"textarea"!==e.inputType?t("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],class:[e.classes,e.inputClasses],style:e.inputStyle,attrs:{dir:e.direction,id:"cc"+e.$uuid(),placeholder:e.placeholder,name:e.getLabel,type:e.inputType},domProps:{value:e.localValue},on:{blur:e.onBlur,input:function(t){t.target.composing||(e.localValue=t.target.value)}}},"input",e.$attrs,!1)):t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.localValue,expression:"localValue"}],class:[e.classes,e.inputClasses],attrs:{dir:e.direction},domProps:{value:e.localValue},on:{input:function(t){t.target.composing||(e.localValue=t.target.value)}}}),e._v(" "),t("div",{staticClass:"absolute end-2 items-end"},[e._t("right")],2)])])])])]}}],null,!0)})},mi=[],hi={name:"ZInputWithValidation",components:{ZField:ya,ValidationProvider:re["b"]},inheritAttrs:!1,mixins:[x],props:{direction:{type:String,default:""},value:[String,Number],outlined:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},inputType:{type:[String,Number],default:"text"},placeholder:{type:String},inputClasses:String,inputStyle:String,prefix:String,suffix:String,horizontal:Boolean,rules:{type:[Object,String],default:""},vid:{type:String,default:void 0},validateOnLength:{type:[Number,Boolean],default:!1},mode:{type:String,default:"passive"},showSuccessField:{type:Boolean,default:!0},isNoValidationSameValueMode:{type:Boolean,default:!1}},computed:{classes(){return[{"bg-gray-100 border rounded-md":!this.outlined&&!this.borderless,"border-primary border-b border-t-0 border-l-0 border-r-0":this.outlined&&!this.borderless,"bg-white text-primary border-0":this.borderless},{"cursor-not-allowed":""===this.$attrs.disabled||this.$attrs.disabled},{"border border-gray-200 dark:border-gray-500":!this.borderless},"mt-1 w-full","py-2.5 dark:bg-gray-600 dark:placeholder-gray-400 dark:text-white focus:border-transparent focus:outline-none","focus:ring focus:ring-blue-200 focus:border-blue-400",{"border-danger":"danger"===this.getType,"border-green":"success"===this.getType},{"ps-10 text-left":this.prefix,"pe-10 text-left":this.suffix},{"pe-7 text-start":this.hasRightSlot}]},hasRightSlot(){return!!this.$scopedSlots.right},isRequired(){return"string"===typeof this.rules?this.rules.includes("required"):null===(e=this.rules)||void 0===e?void 0:e.required;var e}},data(){return{originalValue:this.value,localValue:this.value,id:0}},watch:{localValue(e){var t;this.$emit("input",e),this.validateOnLength&&(null===e||void 0===e||null===(t=e.toString())||void 0===t?void 0:t.length)===this.validateOnLength&&this.$refs.valProv.validate()},value(e){this.localValue=e}},beforeMount(){this.id=this.$uuid()},methods:{async onBlur(){this.isNoValidationSameValueMode?this.localValue!==this.originalValue&&this.$emit("blur",(await this.$refs.valProv.validate()).valid):this.$emit("blur",(await this.$refs.valProv.validate()).valid)}}},vi=hi,gi=(a("1b17"),Object(v["a"])(vi,pi,mi,!1,null,"9224202c",null)),fi=gi.exports;ba["Settings"].defaultZoneName="UTC+3";const yi={components:{ZInputWithValidation:fi,ValidationObserver:re["a"],ZLoading:Je},template:'\n
\n \n

{{ $t(\'RechargeByVoucher\') }}

\n \n \n {{ $t(\'Recharge\') }}\n \n
\n ',data(){return{rechargeCode:"",loading:!1}},methods:{async recharge(){this.loading=!0;const e=await G["a"].rechargeByCode(this.rechargeCode);e.data.success?(setTimeout(()=>this.$store.dispatch("fetchResource",{resource:ae["b"].BALANCE,force:!0}),5e3),this.$zcl.modal.open({parent:this.$parent.$parent,canConfirm:!0,content:this.$t("RechargedSuccessfully")}),this.$parent.close()):(this.loading=!1,this.$zcl.modal.open({parent:this.$parent.$parent,canConfirm:!0,content:this.$t("RechargeFailed")}))}}};var bi={name:"Balance",mixins:[ni,ws,se],components:{AutoPayToggle:ui,ZLoading:Je,ZButton:R},data(){return{loading:!1}},computed:{balance(){return this.$store.state[ae["b"].BALANCE]},hasBalanceData(){if(this.$store.getters.isPostpaid){var e,t;const a=null===(e=this.balance.data)||void 0===e?void 0:e.PastDue,s=null===(t=this.balance.data)||void 0===t?void 0:t.Unbilled;return this.balance.data&&!Number.isNaN(a+s)}{var a;const e=null===(a=this.balance.data)||void 0===a?void 0:a.Balance;return this.balance.data&&!Number.isNaN(e)}}},methods:{DueBy(){return"ar"===this.$i18n.locale?ba["DateTime"].local().endOf("month").toFormat("yyyy/LL/dd"):ba["DateTime"].local().endOf("month").toFormat("dd/LL/yyyy")},rechargeByVoucherModal(){this.$zcl.modal.open({parent:this,component:yi,canCancel:!0})}},mounted(){this.initStateResources(ae["b"].BALANCE)}},xi=bi,Ci=(a("7b63"),Object(v["a"])(xi,si,ii,!1,null,"3b90cba8",null)),wi=Ci.exports,_i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"min-h-full"},[t("z-loading",{attrs:{active:e.$store.state.Bills.loading,"is-full-page":!1}}),t("div",{staticClass:"dark:text-white",class:{"hidden md:block":e.BillsHidden,"md:block":!e.BillsHidden}},[t("div",{staticClass:"flex start pb-1"},[t("div",{staticClass:"font-bold text-2xl"},[e._v(e._s(e.$t("MyPastBills")))])]),e.$store.state.Bills?t("div",{staticClass:"flex start text-gray-600 dark:text-gray-300 text-xs pb-5"},[e._v(e._s(e.monthRangeString))]):e._e(),e.$store.state.Bills.error?t("div",{staticClass:"relative pointer-events-none content-center"},[t("span",{staticClass:"font-semibold text-sm absolute text-center ml-auto mr-auto left-0 right-0 mt-9 z-50"},[e._v(e._s(e.$t("Your billing information isnt available yet.")))]),t("span",{staticClass:"font-semibold text-sm absolute text-center ml-auto mr-auto left-0 right-0 mt-14 z-50"},[e._v(e._s(e.$t("Please check back again later.")))]),t("div",{staticClass:"flex justify-between lg:px-8 filter blur"},e._l(5,(function(a){return t("div",{key:a,staticClass:"pointer-events-none"},[t("ZProgressBarVertical",{attrs:{value:50,"label-top":e.getDisplayedPrice(10),"label-bottom":e.monthNames[e.$i18n.locale][e.DateTime().fromFormat("2022-12-02","yyyy-LL-dd").month-1]}}),t("a",{staticClass:"icon-app-new-download text-4xl flex justify-center items-center mx-auto mt-1.5",attrs:{target:"_blank"}})],1)})),0)]):t("div",{staticClass:"flex justify-between lg:px-8"},e._l(e.userBills,(function(a){return t("div",{key:a.fromDate},[t("ZProgressBarVertical",{attrs:{value:e.getBarValue(a.total),"label-top":e.getDisplayedPrice(a.total),"label-bottom":e.monthNames[e.$i18n.locale][e.DateTime().fromFormat(a.fromDate,"yyyy-LL-dd").month-1]}}),t("a",{staticClass:"icon-app-new-download text-4xl flex justify-center items-center mx-auto mt-1.5",attrs:{href:e.getInvoiceLink(a.fromDate),target:"_blank"}})],1)})),0)]),t("div",{staticClass:"text-center md:hidden"},[t("div",{staticClass:"border-e border-white dark:border-gray-700 p-3 text-pink-600 font-bold",on:{click:function(t){e.BillsHidden=!e.BillsHidden}}},[t("a",{staticClass:"inline-block cursor-pointer"},[e._v(e._s(e.BillsHidden?e.$t("ShowPastBills"):e.$t("HidePastBills"))+" ")]),e.BillsHidden?t("img",{staticClass:"inline-block m-2",attrs:{src:a("b9f4"),alt:""}}):t("img",{staticClass:"inline-block m-2",attrs:{src:a("67fc"),alt:""}})])])],1)},Ai=[];ba["Settings"].defaultZoneName="UTC+3";var Si={name:"PastBills",components:{ZLoading:Je,ZProgressBarVertical:ut},mixins:[se,ws],computed:{bills(){return this.$store.state[ae["b"].BILLS]},invoices(){return this.$store.state[ae["b"].INVOICES]},userBills(){const e=JSON.parse(JSON.stringify(this.bills.data));return e?e.sort((e,t)=>new Date(e.fromDate)-new Date(t.fromDate)):[]},monthRangeString(){const e=new Date;return e.setDate(0),this.monthNames[this.$i18n.locale][(e.getMonth()+7)%12]+" - "+this.monthNames[this.$i18n.locale][e.getMonth()]+" "+e.getFullYear()}},data:()=>({monthNames:{en:["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"],ar:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر"]},BillsHidden:!0}),methods:{DateTime(){return ba["DateTime"]},getBarValue(e){var t,a;let s=null===(t=this.$store.state)||void 0===t||null===(a=t.Bills)||void 0===a?void 0:a.data;return s?e/Math.max(...s.map(e=>e.total))*100:0},getInvoiceLink(e){var t,a;const s=null===(t=this.invoices)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.find(t=>{const a=ba["DateTime"].fromISO(t.InvoiceFromDate).toFormat("yyyy-LL-dd");return e===a});return null===s||void 0===s?void 0:s.InvoiceURL},getDisplayedPrice(e){return"ar"===this.$i18n.locale?`${e.toString()} ${this.$t("KD")}`:`${this.$t("KD")} ${e.toString()}`}},mounted(){this.$store.getters.isPostpaid&&this.initStateResources({resource:ae["b"].BILLS,payload:6},ae["b"].INVOICES)}},Ti=Si,ki=Object(v["a"])(Ti,_i,Ai,!1,null,"042b339c",null),Pi=ki.exports,$i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col"},[e.showTitle?t("z-level",{scopedSlots:e._u([{key:"start",fn:function(){return[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("MyPlan"))+" ")])]},proxy:!0},{key:"end",fn:function(){return[e.usage.data&&e.usage.data.length>1?t("swiper-nav-buttons",{key:"usage",attrs:{"swiper-name":"usage"}}):e._e()]},proxy:!0}],null,!1,2613517718)}):e._e(),t("z-card",{staticClass:"flex-grow relative"},[t("z-loading",{attrs:{active:e.usage.loading||e.otts.loading,"is-full-page":!1}}),e.$store.getters.isPrepaid&&e.isFlexi?t("div",[t("z-tabs",[t("z-tab-item",{attrs:{label:e.$t("MyCurrentPlan")}},[t("div",{staticClass:"pt-3 px-3"},[e.usage.data&&e.usage.data.length>0?t("swiper",{attrs:{options:e.swiperOptions}},[e._l(e.usage.data,(function(a,s){return t("swiper-slide",{key:s,staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",{staticClass:"flex flex-wrap justify-center"},[t("h3",{staticClass:"font-bold text-sm inline-block mx-1"},[e._v(" "+e._s("en"===e.$i18n.locale?a.serviceCategory:a.serviceCategoryAr)+" ")])]),t("p",{staticClass:"text-gray-700 dark:text-gray-200 font-light text-xs pt-1"},[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(a.endDate,e.$i18n.locale))+" ")]),t("div",{staticClass:"flex-grow"}),a.used/a.threshold*100>75&&!a.isUnlimited?t("div",[t("p",{staticClass:"text-xs font-bold dark:text-pink-300 text-pink-600 my-2"},[e._v(" "+e._s(e.$t("YouAreRunningOutOf",{service:"mins"===a.unit.toLowerCase()?e.$t("minutes"):e.$t("InternetCapacity")}))+" ")]),t("z-button",{attrs:{outlined:"",size:"xsmall"},on:{click:function(t){return e.$router.push("/plan?tab=extras")}}},[e._v(" "+e._s(e.$tc("BuyMore",0,{service:"ar"===e.$i18n.locale?a.serviceCategoryAr:a.serviceCategory}))+" ")])],1):e._e(),t("div",{staticClass:"p-2"},[t("z-circle-progress",{attrs:{value:a.isUnlimited?0:a.used/a.threshold*100,circleColor:e.getCircleColor(a.used/a.threshold*100)}},[a.isUnlimited?t("div",[t("div",{},[t("span",{staticClass:"icon-Infinity bg-clip-text violet-darker"})]),t("div",{},[t("span",{staticClass:"text-black text-xs dark:text-gray-300"},[e._v(" "+e._s(e.$t("Unlimited"))+" ")])]),t("div",{staticClass:"text-black font-bold dark:text-purple-300"},[t("span",[e._v(e._s(a.used.toFixed(2).replace(".00","")))]),"Count"!==a.unit?t("span",{staticClass:"text-sm"},[e._v(" "+e._s(e.$t(a.unit)))]):e._e()]),t("div",{staticClass:"text-black"},[t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t("Used")))])])]):t("div",[t("div",{staticClass:"text-black font-bold dark:text-purple-300"},[t("span",[e._v(e._s(a.used.toFixed(2).replace(".00","")))]),"Count"!==a.unit?t("span",{staticClass:"text-sm"},[e._v(e._s(e.$t(a.unit)))]):e._e()]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(" "+e._s(e.$t("Used"))+" "+e._s(e.$t("Of"))+" ")]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(" "+e._s(a.threshold.toFixed(2).replace(".00",""))+" "),"Count"!==a.unit?t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t(a.unit)))]):e._e()])])])],1)])})),t("swiper-slide",{staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",{staticClass:"flex-grow"}),t("z-circle-progress",{staticClass:"p-2",attrs:{value:0}},[t("a",{staticClass:"text-xs font-bold dark:text-pink-300 text-pink-600",on:{click:()=>e.$router.push("/plan?tab=extras")}},[t("img",{staticClass:"mb-2 w-6 mx-auto",attrs:{src:a("c337"),alt:"Add Extras"}}),e._v(" "+e._s(e.$t("AddExtras"))+" ")])])],1)],2):e._e(),e.usage.data&&0===e.usage.data.length?t("div",{staticClass:"flex flex-col justify-center h-64 items-center w-full"},[t("p",[e._v(e._s(e.$t("NoUsageData")))])]):e._e()],1),t("div",{staticClass:"flex justify-center items-baseline"},[t("p",{staticClass:"font-bold text-2xs me-1"},[e._v(e._s(e.$t("PlainPlanDuration"))+":")]),t("span",{staticClass:"text-2xs"},[e._v(e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(e.plans.data.currentOfferEndDate,e.$i18n.locale)))])]),t("div",{staticClass:"p-3"},[t("z-button",{staticClass:"w-full max-w-sm uppercase",on:{click:()=>this.$router.push("/flexi-edit-plan")}},[e._v(" "+e._s(e.$t("ManagePlan"))+" ")])],1)]),t("z-tab-item",{attrs:{label:e.$t("MyFuturePlan")}},[t("flexi-plan-benefits",{attrs:{"is-future":!0}})],1)],1)],1):t("div",[t("div",{staticClass:"pt-3 px-3"},[e.showAutoRenew?t("div",{staticClass:"flex justify-end items-center p-2 text-xs text-gray-500"},[t("div",[t("auto-renew-prepaid-plan-toggle")],1)]):e._e(),e.usage.data&&e.usage.data.length>0&&!e.otts.loading?t("swiper",{attrs:{options:e.swiperOptions}},[e._l(e.usage.data,(function(a,s){return t("swiper-slide",{key:s.product+"-"+s,staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",[t("div",{staticClass:"flex flex-wrap justify-center"}),t("h3",{staticClass:"font-bold text-sm inline-block mx-1"},[e._v(" "+e._s("en"===e.$i18n.locale?a.serviceCategory:a.serviceCategoryAr)+" ")]),t("p",{staticClass:"text-gray-700 dark:text-gray-200 font-light text-xs pt-1"},[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(a.endDate,e.$i18n.locale))+" ")])]),t("div",{staticClass:"flex-grow"}),t("div",{staticClass:"p-2"},[t("z-circle-progress",{attrs:{value:a.isUnlimited?0:a.used/a.threshold*100,circleColor:e.getCircleColor(a.used/a.threshold*100)}},[a.isUnlimited?t("div",[t("div",{},[t("span",{staticClass:"icon-Infinity bg-clip-text violet-darker"})]),t("div",{},[t("span",{staticClass:"text-black text-xs dark:text-gray-300"},[e._v(" "+e._s(e.$t("Unlimited"))+" ")])]),t("div",{staticClass:"text-black font-bold dark:text-purple-300"},[t("span",[e._v(e._s(a.used.toFixed(2).replace(".00","")))]),"Count"!==a.unit?t("span",{staticClass:"text-sm"},[e._v(e._s(e.$t(a.unit)))]):e._e()]),t("div",{staticClass:"text-black"},[t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t("Used")))])])]):t("div",[t("div",{staticClass:"text-black font-bold dark:text-purple-300"},[t("span",[e._v(e._s(a.used.toFixed(2).replace(".00","")))]),"Count"!==a.unit?t("span",{staticClass:"text-sm"},[e._v(e._s(e.$t(a.unit)))]):e._e()]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t("Used"))+" "+e._s(e.$t("Of")))]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(" "+e._s(a.threshold.toFixed(2).replace(".00",""))+" "),"Count"!==a.unit?t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t(a.unit)))]):e._e()])])]),a.used/a.threshold*100>75&&!a.isUnlimited?t("div",[t("p",{staticClass:"text-xs font-bold dark:text-pink-300 text-pink-600 my-2"},[e._v(" "+e._s(e.$t("YouAreRunningOutOf",{service:"mins"===a.unit.toLowerCase()?e.$t("minutes"):e.$t("InternetCapacity")}))+" ")]),t("z-button",{attrs:{outlined:"",size:"xsmall"},on:{click:()=>e.$router.push("/plan?tab=extras")}},[e._v(" "+e._s(e.$tc("BuyMore",0,{service:e.$t(a.buyMore)}))+" ")])],1):e._e()],1)])})),e._l(e.activeOtts,(function(a,s){return t("swiper-slide",{key:s.id,staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",[t("div",{staticClass:"flex flex-wrap justify-center"}),t("h3",{staticClass:"font-bold text-sm inline-block mx-1"},[e._v(" "+e._s(e.$t("content"))+" ")]),t("p",{staticClass:"text-gray-700 dark:text-gray-200 font-light text-xs pt-1"},[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(e.internetUsageEndDate,e.$i18n.locale))+" ")])]),t("div",{staticClass:"flex-grow"}),t("div",{staticClass:"p-2"},[t("z-circle-progress",{attrs:{value:0}},[t("div",[a.icon.url?t("img",{attrs:{alt:a.title,src:e.$store.state.cmsBackendHost+a.icon.url}}):e._e()])])],1)])})),t("swiper-slide",{staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",{staticClass:"flex-grow"}),t("z-circle-progress",{staticClass:"p-2",attrs:{value:0}},[t("a",{staticClass:"text-xs font-bold dark:text-pink-300 text-pink-600",on:{click:()=>e.$router.push("/plan?tab=extras")}},[t("img",{staticClass:"mb-2 w-6 mx-auto",attrs:{src:a("c337"),alt:"Add Extras"}}),e._v(" "+e._s(e.$t("AddExtras"))+" ")])])],1)],2):e.usage.data&&0===e.usage.data.length&&e.$store.getters.isPrepaid?t("div",{staticClass:"flex flex-col justify-center items-center w-full"},[t("div",{staticClass:"mt-5 mb-5 flex justify-center items-center flex-col"},[t("img",{staticClass:"w-16 mb-3",attrs:{src:a("43ac"),alt:"gradient-design"}}),t("div",{staticClass:"text-gray-500 text-sm mt-3"},[e._v(" "+e._s(e.$t("NoPlanSet"))+" ")])]),"Voice"===e.$store.getters.getBasicServiceType?t("z-button",{staticClass:"w-full max-w-sm uppercase mb-6",attrs:{outlined:""},on:{click:()=>e.$router.push("/flexi-edit-plan")}},[e._v(" "+e._s(e.$t("CreateMyFlexiPlan"))+" ")]):t("z-button",{staticClass:"w-full max-w-sm uppercase mb-6",attrs:{outlined:""},on:{click:()=>e.$router.push("/plan?tab=extras")}},[e._v(" "+e._s(e.$t("ChooseThisPlan"))+" ")])],1):e._e()],1),e.showButtons&&e.$store.getters.isPrepaid&&"Voice"===e.$store.getters.getBasicServiceType&&e.usage.data&&e.usage.data.length>0?t("div",{staticClass:"p-3 space-s-3 flex justify-center"},[t("z-button",{staticClass:"w-full max-w-sm",on:{click:()=>e.$router.push("/flexi-edit-plan")}},[e._v(" "+e._s(e.$t("CreateMyFlexiPlan"))+" ")])],1):e._e(),e.showPostpaidManagePlanButton?t("div",{staticClass:"p-3 space-s-3 flex justify-center"},[t("z-button",{staticClass:"w-full max-w-sm",on:{click:e.onClickManagePlanPostpaid}},[e._v(" "+e._s(e.$t("ManagePlan"))+" ")])],1):e._e(),e.showButtons&&e.$store.getters.isDataSharing?t("div",[t("div",{class:{hidden:e.DataSharingHidden,"":!e.DataSharingHidden}},[t("hr",{staticClass:"relative border-t border-solid border-primary my-6 max-w-6xl mx-auto"}),t("div",{staticClass:"block"},[t("z-loading",{attrs:{active:e.DataSharing.loading,"is-full-page":!1}}),t("h2",{staticClass:"text-xl font-extrabold inline-block dark:text-white"},[e._v(" "+e._s(e.$tc("InternetSharingLines",1,{count:e.DataSharing.data.DependentsInfo.DependentInfo.length}))+" ")]),t("div",{key:e.$i18n.locale,staticClass:"leading-8 text-xs text-gray-400 font-normal"},[t("div",{staticClass:"mt-2.5 mx-4"},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("bd45"),alt:""}}),t("router-link",{staticClass:"underline text-primary",attrs:{to:"/LimitUsage","exact-active-class":"active"}},[t("span",{staticClass:"text-sm font-bold"},[e._v(e._s(e.$t("LimitUsage")))])])],1)])],1),t("div",{key:e.$i18n.locale,staticClass:"pt-3 px-3"},[e.DataSharing.data&&e.DataSharing.data.DependentsInfo.DependentInfo.length>0?t("swiper",{key:e.DataSharingHidden,attrs:{options:{}}},e._l(e.DataSharing.data.DependentsInfo.DependentInfo,(function(a,s){return t("swiper-slide",{key:s},[t("h3",{staticClass:"font-bold text-sm inline-block mx-1"},[e._v(" "+e._s(e.$store.getters.getMsisdnNickname(a.Msisdn))+" ")]),t("p",{staticClass:"text-gray-700 dark:text-gray-200 font-light text-xs pt-1"},[e._v(" "+e._s(a.Msisdn)+" ")]),t("div",{staticClass:"p-2"},[t("z-circle-progress",{attrs:{value:a.Used/a.Threshold*100,circleColor:e.getCircleColor(a.Used/a.Threshold*100)}},[t("div",[t("div",{staticClass:"text-black font-bold dark:text-purple-300"},[t("span",[e._v(e._s(Math.round(a.Used.toFixed(2))))]),t("span",{staticClass:"text-sm"},[e._v(" "+e._s(e.$t("GB"))+" ")])]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t("Used"))+" "+e._s(e.$t("Of")))]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(" "+e._s(a.Threshold)+" "),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(" "+e._s(e.$t("GB"))+" ")])])])])],1)])})),1):e._e()],1)]),t("div",{staticClass:"text-center bg-white"},[t("div",{staticClass:"border-e border-white 0 p-3 text-pink-600 font-bold cursor-pointer",on:{click:function(t){e.DataSharingHidden=!e.DataSharingHidden}}},[t("p",{staticClass:"inline-block"},[e._v(" "+e._s(e.DataSharingHidden?e.$t("ShowSharedData"):e.$t("HideSharedData"))+" ")]),e.DataSharingHidden?t("img",{staticClass:"inline-block m-2",attrs:{src:a("b9f4"),alt:""}}):t("img",{staticClass:"inline-block m-2",attrs:{src:a("67fc"),alt:""}})])])]):e._e()])],1)],1)},Mi=[],Oi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative"},[t("div",{directives:[{name:"carousel",rawName:"v-carousel",value:{options:e.localOptions},expression:"{ options: localOptions }"}],key:e.$i18n.locale,staticClass:"swiper-container swiper-container-horizontal w-full",class:{"pb-6":!this.options.pagination}},[t("div",{staticClass:"swiper-wrapper"},[e._t("default")],2),t("div",{staticClass:"swiper-pagination"})])])},Ni=[],Ei=a("defa"),Di=(a("bbe3"),{name:"Swiper",props:{options:Object,default:()=>({})},data(){return{localOptions:this.options}},directives:{carousel:{inserted:function(e,t){new Ei["a"](e,{pagination:{el:e.childNodes[1],clickable:!0,dynamicBullets:!0},spaceBetween:10,slidesPerView:2,slidesPerGroup:2,breakpointsBase:"container",breakpoints:{680:{slidesPerView:3,spaceBetween:30,slidesPerGroup:3},840:{slidesPerView:4,spaceBetween:10,slidesPerGroup:4}},...t.value.options})}}},watch:{options(e){this.localOptions=e}},mounted(){this.localOptions=this.options}}),Ii=Di,Bi=Object(v["a"])(Ii,Oi,Ni,!1,null,null,null),Li=Bi.exports,Ri=function(){var e=this,t=e._self._c;return t("div",{staticClass:"swiper-slide h-auto"},[e._t("default")],2)},Ui=[],zi={name:"SwiperSlide"},ji=zi,Fi=Object(v["a"])(ji,Ri,Ui,!1,null,null,null),Vi=Fi.exports,Hi={methods:{getImage(e){return a("0ded")(`./${this.getBenefitIcon(e)}.svg`)},getBenefitIcon(e){switch(e.type){case"DATA":return"wifi";case"ON-NET MINUTES":return"phone-call";case"ON-NETMINUTES":return"phone-call";case"LOCAL MINUTES":return"phone";case"LOCALMINUTES":return"phone";case"INTERNATIONAL MINUTES":return"world";case"INTERNATIONALMINUTES":return"world";case"phone":return"whatsapp-primary";case"SOCIAL MEDIA":return"thumb-primary";case"YOUTUBE":return"youtube-primary";case"WHATSAPP":return"whatsapp-primary";default:return"wifi"}}}},Gi=function(){var e=this,t=e._self._c;return t("div",[e.isFuture?t("div",{staticClass:"p-3"},[e.isAutoRenew?t("div",{staticClass:"px-10 text-gray-500 text-sm mb-2"},[e._v(" "+e._s(e.$t("YourFuturePlanIsSetAndWillBeActivatedFrom"))+" "+e._s(e.plans&&e.plans.data?e.prettyDate(e.activatedAtDate):"")+" "),e.futureAdvancedPaymentValue>1&&e.isFuture?t("div",{staticClass:"flex justify-center items-baseline"},[t("p",{staticClass:"font-bold text-2xs me-1"},[e._v(e._s(e.$t("PlainPlanDuration"))+":")]),t("span",{staticClass:"text-2xs"},[e._v(e._s(30*e.futureAdvancedPaymentValue)+" "+e._s(e.$tc("Days",30*e.futureAdvancedPaymentValue)))])]):e._e()]):t("div",[t("div",{staticClass:"my-10 flex justify-center items-center flex-col"},[t("img",{attrs:{src:a("43ac"),alt:"gradient-design"}}),t("div",{staticClass:"text-gray-500 text-sm mt-3"},[e._v(" "+e._s(e.$t("DontHaveFuturePlan"))+" ")])])])]):e._e(),!e.isFuture||e.isFuture&&e.isAutoRenew?t("swiper",{attrs:{options:e.options}},[e._l(e.benefits,(function(a,s){return t("swiper-slide",{key:"futureBenefit"+s,staticClass:"flex justify-center items-center flex-col"},[t("div",{staticClass:"flex justify-center items-center flex-col"},[t("img",{staticClass:"w-8 h-8",attrs:{src:e.getImage(a),alt:"benefit icon"}}),t("div",{staticClass:"font-bold text-sm mt-1 whitespace-nowrap"},[e._v(" "+e._s(e.getBenefitValue(a))+" ")]),t("div",{staticClass:"text-gray-500 text-xs"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.titleAr:a.titleEn)+" ")])])])})),e.isFuture?e._e():t("swiper-slide",{staticClass:"p-8"},[t("div",{staticClass:"flex justify-center items-center flex-col cursor-pointer",on:{click:function(t){return e.onAddExtras()}}},[t("div",{staticClass:"text-2xl text-primary icon-Extra-GB"}),t("div",{staticClass:"font-extrabold text-sm mt-1 leading-4 whitespace-nowrap"},[e._v(" "+e._s(e.$t("Add"))+" "+e._s(e.$t("Extras"))+" ")])])])],2):e._e(),e.isAutoRenew&&e.isFuture&&!e.hideButton&&e.advancedPaymentValue<=1?t("div",{staticClass:"p-3"},[t("z-button",{staticClass:"uppercase w-full max-w-xs",on:{click:e.onClickEditYourFuturePlan}},[e._v(" "+e._s(e.$t("EditYourFuturePlan"))+" ")])],1):e._e()],1)},Zi=[],qi={name:"FlexiPlanBenefits",components:{SwiperSlide:Vi,Swiper:Li,ZButton:R},mixins:[Hi,ni],props:{isFuture:{type:Boolean,default:!1},hideButton:{type:Boolean,default:!1}},computed:{plans(){return this.$store.state[ae["b"].PLANS]},benefits(){return this.plans&&this.plans.data&&this.plans.data.futureOrderBenefits.length?this.isFuture?this.plans.data.futureOrderBenefits.filter(e=>e.value>0&&"BUNDLE"!==e.type):this.plans.data.currentOfferBenefits.filter(e=>e.value>0&&"BUNDLE"!==e.type):this.plans&&this.plans.data&&!this.plans.data.hasFlexiOffer?this.plans.data.currentOfferBenefits.filter(e=>e.value>0&&"BUNDLE"!==e.type):[]},isAutoRenew(){var e,t;return null===(e=this.plans)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.currentOfferAutoRenew},isFlexi(){var e;const t=null===(e=this.plans)||void 0===e?void 0:e.data;return!!t&&(t.hasFlexiOffer||"FLEXIOFFER"===t.currentOfferCode)},futureAdvancedPaymentValue(){const e=this.plans.data.futureOrderBenefits.find(e=>"BUNDLE"===e.type);return e?parseFloat(e.value):1},advancedPaymentValue(){const e=this.plans.data.currentOfferBenefits.find(e=>"BUNDLE"===e.type);return e?parseFloat(e.value):1},activatedAtDate(){var e,t,a;if(null===(e=this.plans)||void 0===e||!e.data)return"";let s=new Date(null===(t=this.plans)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.currentOfferEndDate);return s.setDate(s.getDate()+1),s.toISOString()}},data(){return{options:{breakpoints:{320:{slidesPerView:3,spaceBetween:20},620:{slidesPerView:6,spaceBetween:20}}}}},methods:{getBenefitValue(e){if(e.isUnlimited)return this.$t("Unlimited");const t="DATA"===e.type?"GB":e.type.toLowerCase().includes("minute")?"Mins":"";return`${e.value} ${t}`},onAddExtras(){this.$emit("onFlexiAddExtras")},onClickEditYourFuturePlan(){this.$router.push("/flexi-edit-plan?future=true")}}},Ki=qi,Yi=Object(v["a"])(Ki,Gi,Zi,!1,null,"e9c37d68",null),Wi=Yi.exports,Qi=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex justify-between items-center"},[e._t("start"),e._t("end")],2)},Xi=[],Ji={name:"ZLevel"},en=Ji,tn=Object(v["a"])(en,Qi,Xi,!1,null,"577ba3be",null),an=tn.exports,sn=function(){var e=this,t=e._self._c;return t("div",{key:e.$i18n.locale,staticClass:"leading-8 text-xs text-gray-400 font-normal flex flex-row-reverse",class:{"flex-row-reverse":"ar"===e.$i18n.locale}},[t("a",{staticClass:"cursor-pointer p-3 icon-Arrow-back transform flex justify-center items-center",class:{"rotate-180":"en"===e.$i18n.locale,[e.swiperName+"-swiper-next-slide"]:!0}}),t("a",{staticClass:"cursor-pointer p-3 icon-Arrow-back transform flex justify-center items-center",class:{"rotate-180":"ar"===e.$i18n.locale,[e.swiperName+"-swiper-prev-slide"]:!0}})])},nn=[],rn={props:{swiperName:String},name:"SwiperNavButtons"},on=rn,ln=Object(v["a"])(on,sn,nn,!1,null,null,null),cn=ln.exports,dn=function(){var e=this,t=e._self._c;return t("h"+e.level,{tag:"div",staticClass:"inline-block dark:text-white my-5",class:[e.textSize,e.fontStyle]},[e._t("default")],2)},un=[],pn={name:"ZHeading",props:{fontBlack:String,textSize:{type:String,default:"text-2xl"},fontStyle:{type:String,default:"font-black"},level:{type:Number,default:1}}},mn=pn,hn=Object(v["a"])(mn,dn,un,!1,null,"cbaae508",null),vn=hn.exports,gn=function(){var e=this,t=e._self._c;return e.plans.data?t("div",{staticClass:"flex w-full justify-center items-center animate-fade-in-down"},[t("z-loading",{attrs:{"background-classes":"bg-black bg-opacity-60","is-full-page":!0,active:e.autoRenewLoading},on:{"update:active":function(t){e.autoRenewLoading=t}}}),t("div",{staticClass:"flex flex-col items-end"},[t("z-toggle",{staticClass:"inline-block ps-3",on:{input:function(t){return e.toggleAutoRenew()}},model:{value:e.localAutoRenewIsActive,callback:function(t){e.localAutoRenewIsActive=t},expression:"localAutoRenewIsActive"}}),t("div",[t("div",{staticClass:"w-2 h-2 rounded-full inline-block mx-2",class:{"bg-red-600":!e.currentOfferAutoRenew,"bg-green":e.currentOfferAutoRenew}}),t("p",{staticClass:"text-gray-500 dark:text-white text-xs mt-1 inline-block text-end"},[e._v(" "+e._s(e.currentOfferAutoRenew?e.$t("AutorenewIsActive"):e.$t("AutorenewIsNotActive"))+" ")])])],1),t("z-modal",{attrs:{active:e.autoRenewModalIsActive,"can-cancel":"","on-cancel":()=>e.localAutoRenewIsActive=!e.localAutoRenewIsActive},on:{"update:active":function(t){e.autoRenewModalIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.$t("AutoRenewal"))+" ")]),e.currentOfferAutoRenew?t("div",[t("p",[e._v(" "+e._s(e.$t("AutorenewIsActiveOn"))+" "),t("span",{staticClass:"font-bold"},[e._v(" "+e._s(e.$store.state.msisdn))])]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:function(t){return e.setAutoRenew(!1)}}},[e._v(" "+e._s(e.$t("DisableAutoRenew"))+" ")])],1)]):t("div",[t("p",{staticClass:"text-lg"},[e._v(" "+e._s(e.$t("AutoRenewTurnOnMsg"))+" ")]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:function(t){return e.setAutoRenew(!0)}}},[e._v(" "+e._s(e.$t("EnableAutoRenew"))+" ")])],1)])])]),t("z-modal",{attrs:{active:e.autoRenewModalResultIsActive},on:{"update:active":function(t){e.autoRenewModalResultIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.autoRenewResultIsSuccess?e.$t("YourRequestHasBeenSuccessfullySubmitted"):e.$t("AnErrorOccurred"))+" ")]),e.isAutoRenewOn?t("p",[e._v(" "+e._s(e.autoRenewResultIsSuccess?e.$t("AutoRenewEnableResultSuccess"):e.$t("AutoRenewEnableResultFailure"))+" "),t("span",{staticClass:"font-bold"},[e._v(e._s(e.$store.state.msisdn))])]):t("p",[e._v(" "+e._s(e.autoRenewResultIsSuccess?e.$t("AutoRenewDisableResultSuccess"):e.$t("AutoRenewDisableResultFailure"))+" "),t("span",{staticClass:"font-bold"},[e._v(e._s(e.$store.state.msisdn))])]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:()=>e.autoRenewModalResultIsActive=!1}},[e._v(" "+e._s(e.$t("OK"))+" ")])],1)])])],1):e._e()},fn=[],yn={name:"AutoRenewPrepaidPlanToggle",components:{ZLoading:Je,ZButton:R,ZModal:Be,ZToggle:Ft},mixins:[se],data(){return{autoRenewModalIsActive:!1,localAutoRenewIsActive:!1,autoRenewModalResultIsActive:!1,autoRenewResultIsSuccess:!1,isAutoRenewOn:!1,autoRenewLoading:!1}},computed:{plans(){return this.$store.state[ae["b"].PLANS]},currentOfferAutoRenew(){var e,t;return null===(e=this.plans)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.currentOfferAutoRenew}},methods:{toggleAutoRenew(){this.autoRenewModalIsActive=!0},async setAutoRenew(e){this.autoRenewModalIsActive=!1,this.autoRenewLoading=!0,this.isAutoRenewOn=e;try{var t;const a=await this.$myZainApi(G["a"].prepaidPlanSetAutoRenew,{serviceCode:this.plans.data.currentOfferCode,isAutoRenewOn:e});this.autoRenewResultIsSuccess=(null===a||void 0===a||null===(t=a.data)||void 0===t?void 0:t.isSuccess)||!1,this.autoRenewResultIsSuccess&&await this.$store.dispatch("fetchResource",{resource:"Plans",force:!0})}catch(a){this.autoRenewResultIsSuccess=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error occurred in auto renew prepaid plan"}})}finally{this.autoRenewModalResultIsActive=!0,this.autoRenewLoading=!1}}},async mounted(){await this.initStateResources(ae["b"].PLANS),this.localAutoRenewIsActive=this.currentOfferAutoRenew}},bn=yn,xn=Object(v["a"])(bn,gn,fn,!1,null,"3c0b326a",null),Cn=xn.exports,wn={name:"Usage",components:{ZHeading:vn,SwiperNavButtons:cn,ZLevel:an,ZTabItem:pa,ZTabs:ra,FlexiPlanBenefits:Wi,ZButton:R,ZLoading:Je,SwiperSlide:Vi,Swiper:Li,ZCard:pe,ZCircleProgress:ye,AutoRenewPrepaidPlanToggle:Cn},mixins:[ni,se,Hi],props:{showButtons:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showAutoRenew:{type:Boolean,default:!1}},data:()=>({DataSharingHidden:!0,swiperOptions:{navigation:{nextEl:".usage-swiper-next-slide",prevEl:".usage-swiper-prev-slide"}}}),computed:{DataSharing(){return this.$store.state[ae["b"].DATA_SHARING]},isFlexi(){var e;const t=null===(e=this.plans)||void 0===e?void 0:e.data;return!!t&&(t.hasFlexiOffer||"FLEXIOFFER"===t.currentOfferCode)},plans(){return this.$store.state[ae["b"].PLANS]},usage(){return this.formatUsageData(),this.$store.state[ae["b"].USAGE]},hasCommitments(){return this.$store.getters.hasCommitments},ghostPlans(){var e,t;return this.$store.getters["ghostPostpaid/isEligibleForGhostOnBoarding"]?null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t?void 0:t[ae["b"].GHOST_PLANS]:this.plans},filteredGhostPlans(){return this.ghostPlans.data?this.hasCommitments?null===(e=this.ghostPlans)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.filter(e=>e.canInstall):null===(a=this.ghostPlans)||void 0===a?void 0:a.data:[];var e,t,a},showPostpaidManagePlanButton(){var e,t;const a=this.$store.getters.isPostpaid,s="Data"===this.$store.getters.getBasicServiceType;var i;return this.showButtons&&a?s?(null===(i=this.filteredGhostPlans)||void 0===i?void 0:i.length)>0:this.showButtons&&a:this.showButtons&&(a||s)&&(null===(e=this.usage)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)>0},otts(){return this.$store.state[ae["b"].OTTS]},activeOtts(){var e,t,a,s;return null!==(e=null===(t=this.otts)||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.result)||void 0===s?void 0:s.filter(e=>e.isInstalled))&&void 0!==e?e:[]},internetUsageEndDate(){var e,t,a,s;return null!==(e=null===(t=this.$store.state[ae["b"].USAGE])||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.filter(e=>e.serviceCategory="Internet")[0])||void 0===s?void 0:s.endDate)&&void 0!==e?e:null}},mounted(){let e=[ae["b"].USAGE,ae["b"].DATA_SHARING,ae["b"].PLANS,ae["b"].COMMITMENTS];this.initStateResources(...e)},methods:{formatUsageData(){var e;let t=[];null!==(e=this.$store.state.Usage)&&void 0!==e&&e.data&&(this.$store.state.Usage.data.forEach(e=>{e.unit="Minutes"===e.unit?"Mins":e.unit,"Data"===e.service?(e.buyMore="Data",e.threshold%1024===0&&(e.threshold=e.threshold/1024,e.used=e.used/1024,e.unit="TB"),1024*e.threshold<1&&(e.threshold=1024*e.threshold,e.used=1024*e.used,e.unit="MB")):"Voice"===e.service?e.buyMore="Minutes":e.buyMore=e.service,t.push(e)}),this.$store.state.Usage.data=t)},onClickManagePlanPostpaid(){const e=this.$store.getters.getBasicServiceType;"Data"===e&&this.$store.getters.isPostpaid?this.$router.push("/plan-details"):this.$router.push("/plan?tab=extras")},getCircleColor(e){return e<50?"#7cc53f":e<75?"#FCD06E":"#E25E5E"},daysTillEndDate(){var e;if(null===(e=this.plans)||void 0===e||!e.data)return;const t=new Date,a=new Date(this.plans.data.currentOfferEndDate),s=Math.abs(a.getTime()-t.getTime());return Math.ceil(s/864e5)}}},_n=wn,An=(a("76d1"),Object(v["a"])(_n,$i,Mi,!1,null,null,null)),Sn=An.exports,Tn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col"},[t("z-level",{scopedSlots:e._u([{key:"start",fn:function(){return[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("MyCommitments"))+" ")])]},proxy:!0},{key:"end",fn:function(){return[e.commitments.data&&e.commitments.data.commitment&&e.FilteredCommitments.length>1?t("swiper-nav-buttons",{key:"commitment",attrs:{"swiper-name":"commitment"}}):e._e()]},proxy:!0}])}),t("z-card",{staticClass:"relative mt-2 flex-grow"},[t("z-loading",{attrs:{active:e.commitments.loading,"is-full-page":!1}}),t("div",{key:e.$i18n.locale,staticClass:"p-3"},[e.commitments.data&&e.commitments.data.commitment&&e.FilteredCommitments.length>0?t("swiper",{attrs:{options:e.swiperOptions}},[e._l(e.FilteredCommitments,(function(a,s){return t("swiper-slide",{key:s,staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",[t("h3",{staticClass:"font-bold text-sm inline-block mx-1"},[e._v(e._s(a.description))]),t("p",{staticClass:"text-gray-600 dark:text-gray-200 font-light text-xs pt-1"},[e._v(e._s(e.$t("EndsOn"))+" "+e._s(e.prettyDate(a.endDate))+" ")])]),t("div",{staticClass:"flex-grow"}),t("div",{staticClass:"p-2"},[t("z-circle-progress",{attrs:{value:(a.period-a.monthsLeft)/a.period*100,circleColor:e.getCircleColor((a.period-a.monthsLeft)/a.period*100)}},[t("div",{staticClass:"text-black font-bold dark:text-purple-300"},[t("span",[e._v(e._s(a.monthsLeft))]),t("span",{staticClass:"text-sm"},[e._v(" "+e._s(e.$t("Month")))])]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(e.$t("Left"))+" "+e._s(e.$t("Of")))]),t("span",{staticClass:"text-xs dark:text-gray-300"},[e._v(e._s(a.period)+" "+e._s(e.$t("Month"))+" ")])])],1)])})),t("swiper-slide",{staticClass:"flex flex-col h-20 items-center justify-between"},[t("div",{staticClass:"flex-grow"}),t("z-circle-progress",{staticClass:"text-center p-2",attrs:{value:0}},[t("a",{staticClass:"text-xs font-bold dark:text-pink-300 text-pink-600",on:{click:()=>e.$router.push("/offers")}},[t("img",{staticClass:"mb-2 mx-auto w-6 mx-auto",attrs:{src:a("c337"),alt:"Add Another Device"}}),e._v(" "+e._s(e.$t("AddAnother"))+" "),t("br"),e._v(" "+e._s(e.$t("Device"))+" ")])])],1)],2):t("div",{staticClass:"flex flex-col justify-center items-center mx-auto",staticStyle:{height:"235px"}},[e._v(" "+e._s(e.$t("YouHaveNoCommitments"))+" ")])],1)],1)],1)},kn=[],Pn={name:"Commitments",components:{ZHeading:vn,SwiperNavButtons:cn,ZLevel:an,ZLoading:Je,SwiperSlide:Vi,Swiper:Li,ZCircleProgress:ye,ZCard:pe},mixins:[ni,se],computed:{commitments(){return this.$store.state[ae["b"].COMMITMENTS]},FilteredCommitments(){let e=this.$store.state[ae["b"].COMMITMENTS].data.commitment.filter(e=>!e.description.includes("Discount"));return e}},data:()=>({swiperOptions:{navigation:{nextEl:".commitment-swiper-next-slide",prevEl:".commitment-swiper-prev-slide"}}}),methods:{getCircleColor(e){return e<50?"#7cc53f":e<75?"#FCD06E":"#E25E5E"}},mounted(){this.$store.getters.isPostpaid&&this.initStateResources(ae["b"].COMMITMENTS)}},$n=Pn,Mn=Object(v["a"])($n,Tn,kn,!1,null,"45b8557d",null),On=Mn.exports,Nn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"max-w-6xl mx-auto px-3 relative min-h-full animate-fade-in-up"},[t("z-loading",{attrs:{"background-classes":"bg-opacity-0","is-full-page":!1,active:e.services.loading},on:{"update:active":function(t){return e.$set(e.services,"loading",t)}}}),t("z-loading",{attrs:{"background-classes":"bg-black bg-opacity-60","is-full-page":!0,active:e.changeServiceLoading},on:{"update:active":function(t){e.changeServiceLoading=t}}}),t("z-level",{scopedSlots:e._u([e.hideTitle?null:{key:"start",fn:function(){return[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("Extras"))+" ")])]},proxy:!0},e.hideSwiperArrows?null:{key:"end",fn:function(){return[t("swiper-nav-buttons",{key:"service",attrs:{"swiper-name":"service"}})]},proxy:!0}],null,!0)}),e.isGrid?t("div",{staticClass:"grid grid-cols-1 md:grid-cols-3 md:gap-6 rounded-md shadow-lg md:shadow-none"},e._l(e.services.data,(function(a,s){return t("div",{key:s,staticClass:"border-b md:border md:shadow-md md:rounded-md md:h-64 md:p-2"},[t("div",{staticClass:"flex items-center md:flex-col md:text-center h-full"},[t("div",{staticClass:"me-2 md:me-0"},[t("div",{class:a.icon.concat(" p-4 text-purple-900 dark:text-purple-300 text-5xl")})]),t("div",{staticClass:"flex-1"},[t("div",{staticClass:"font-bold text-sm"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.titleAr:a.title)+" ")]),t("div",{staticClass:"text-gray-500 dark:text-gray-300"},[e._v(" "+e._s(a.price?e.positionedPrice(a.price):"")+" "+e._s("ar"===e.$i18n.locale?a.priceDescriptionAr:a.priceDescription)+" ")])]),t("div",{staticClass:"md:mb-4"},["Toggle"===a.activationType?t("z-toggle",{staticClass:"me-3 md:me-0",attrs:{value:a.isInstalled},on:{input:t=>e.onToggleService(a,t)}}):"Plus"===a.activationType?t("z-button",{staticClass:"w-14 font-bold me-3",attrs:{outlined:"",size:"small",type:"primary"},on:{click:function(t){return e.onToggleService(a,!0)}}},[e._v(" "+e._s(e.$t("Add"))+" ")]):e._e()],1)])])})),0):e.eligibleServiceCategories&&e.eligibleServiceCategories.length>0?t("swiper",{ref:"serviceSwiper",attrs:{options:e.sliderOptions}},e._l(e.eligibleServiceCategories,(function(a,s){return t("swiper-slide",{key:s,staticClass:"mb-8"},[t("service-category-card",{attrs:{"service-category":a},on:{select:function(t){return e.onSelectServiceCategory(a)}}})],1)})),1):e._e(),t("service-confirmation-modal",{attrs:{service:e.currentService},on:{input:e.onModalCancel},model:{value:e.addServiceModal,callback:function(t){e.addServiceModal=t},expression:"addServiceModal"}})],1)},En=[],Dn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-3 md:p-6 flex flex-col justify-between space-y-4"},e._l(e.filteredServices,(function(a,s){return t("div",{key:s},[t("div",{staticClass:"flex flex-row justify-between"},[t("div",{staticClass:"flex flex-row space-s-2"},[a.icon&&a.icon.url?t("img",{staticStyle:{width:"32px",height:"32px",margin:"auto"},attrs:{alt:"Service",src:e.$store.state.cmsBackendHost+a.icon.url}}):t("span",{staticClass:"text-4xl self-center text-purple-900",class:e.getIcon(a.icon)}),t("div",{staticClass:"flex flex-col items-start text-start"},[t("h2",{staticClass:"font-semibold text-start"},[e._v(" "+e._s("en"===e.$i18n.locale?a.title:a.titleAr)+" ")]),t("p",{staticClass:"text-xs text-gray-500"},[a.price>0&&""===a.priceDescription?t("span",[e._v(e._s(e.positionedPrice(a.price)))]):a.price>0&&""!==a.priceDescription?t("span",[e._v(e._s(a.price))]):e._e(),e._v(" "+e._s("en"===e.$i18n.locale?a.priceDescription:a.priceDescriptionAr)+" ")])])]),"Toggle"===a.activationType?t("z-toggle",{staticClass:"self-center",attrs:{size:"small",value:a.isInstalled},on:{input:t=>e.onChangeService({isAddService:t,service:a})}}):t("div",{staticClass:"flex items-center"},[t("z-button",{staticClass:"h-6 w-18 flex justify-center items-center",attrs:{outlined:"",size:"xsmall",type:"primary"},on:{click:function(t){return e.onChangeService({isAddService:!0,service:a})}}},[t("div",{staticClass:"uppercase font-bold starz"},[e._v(e._s(e.$t("Add")))])])],1)],1),s!==e.filteredServices.length-1?t("hr",{staticClass:"mt-4 -mx-3"}):e._e()])})),0)},In=[],Bn={name:"ServiceModal",props:{serviceCategory:Object,services:Array},components:{ZButton:R,ZToggle:Ft},mixins:[ws,se],watch:{services:{deep:!0,handler(e){this.localServices=JSON.parse(JSON.stringify(e))}}},computed:{filteredServices(){var e;return null!==(e=this.serviceCategory)&&void 0!==e&&e.titleEn?[...this.OTTServices,...this.localServices].filter(e=>e.serviceCategory.titleEn===this.serviceCategory.titleEn):{}},plans(){return this.$store.state[ae["b"].PLANS]}},data(){return{localServices:[],isToggleOn:!1,GROUP_NAMES:{EXTRAGBS:"Extra GBs",ROAMING:"Roaming",VALIDITY:"Validity"},OTTServices:[]}},methods:{async onChangeService({isAddService:e,service:t}){var a;t.DOB?window.open(t.link):this.$emit("change-service",t,e),null===(a=this.$parent)||void 0===a||a.close()},getIcon(e){return null!==e&&void 0!==e&&e.name?e.name.replace("icon-","icon-app-"):"string"===typeof e?e.replace("icon-","icon-app-"):""}},mounted(){this.localServices=JSON.parse(JSON.stringify(this.services))}},Ln=Bn,Rn=Object(v["a"])(Ln,Dn,In,!1,null,null,null),Un=Rn.exports,zn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-full"},[t("div",{staticClass:"h-1 bg-gradient-to-r from-purple-600 via-zainPurple-light to-teal"}),t("div",{staticClass:"bg-white dark:bg-gray-700 dark:text-white shadow-lg overflow-hidden rounded-lg max-w-md text-start flex flex-col justify-evenly items-stretch p-3 pt-6 space-y-10 w-full h-full"},[t("div",{staticClass:"flex flex-col space-y-3"},[t("span",{staticClass:"text-4xl",class:e.serviceCategory.icon.name}),t("p",{staticClass:"flex-none h-10 font-extrabold text-xl w-44"},[e._v(" "+e._s("en"===e.$i18n.locale?e.serviceCategory.titleEn:e.serviceCategory.titleAr)+" ")])]),t("div",{staticClass:"flex flex-col"},[t("p",{staticClass:"font-normal mb-2 h-10"},[e._v(" "+e._s("en"===e.$i18n.locale?e.serviceCategory.descriptionEn:e.serviceCategory.descriptionAr)+" ")])]),t("z-button",{staticClass:"font-semibold w-full rounded-xl uppercase",attrs:{size:"medium",outlined:""},on:{click:e.onViewService}},[e._v(" "+e._s(e.$t("BuyNow"))+" ")])],1)])},jn=[],Fn={name:"ServiceCategoryCard",components:{ZButton:R},props:{serviceCategory:{type:Object,default:()=>{}}},data(){return{}},methods:{onViewService(){this.$emit("select",this.serviceCategory)}}},Vn=Fn,Hn=Object(v["a"])(Vn,zn,jn,!1,null,"4446f122",null),Gn=Hn.exports,Zn=a("2ef0"),qn=a.n(Zn),Kn=function(){var e=this,t=e._self._c;return t("div",[t("z-modal",{attrs:{"can-cancel":"","on-cancel":e.onModalCancel,active:e.addServiceModal},on:{"update:active":function(t){e.addServiceModal=t}}},[e.service?t("div",[t("div",{staticClass:"flex flex-col justify-between py-7"},[t("p",{staticClass:"pb-5"},[e._v(" "+e._s(e.$tc("WouldYouLikeToThisService",0,{action:e.service.isInstalled?e.$t("CancelService"):e.$t("Add")}))+" ")]),this.addCircle&&e.service.icon?t("div",{staticClass:"flex justify-center"},[""!==e.service.icon.url?t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$store.state.cmsBackendHost+e.service.icon.url,expression:"$store.state.cmsBackendHost + service.icon.url"}],staticClass:"h-26 object-contain border border-gray-300 rounded-full",attrs:{alt:"Product"}}):t("span",{class:e.service.icon.name.replace("icon-","icon-app-"),staticStyle:{padding:"14px","font-size":"78px",color:"#70489d","border-width":"1px","--tw-border-opacity":"1","border-radius":"9999px","border-color":"rgba(212, 212, 212, var(--tw-border-opacity))"}})]):e.service.icon?t("div",[""!==e.service.icon.url?t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$store.state.cmsBackendHost+e.service.icon.url,expression:"$store.state.cmsBackendHost + service.icon.url"}],staticClass:"h-26 w-26 mx-auto object-contain",attrs:{alt:"Product"}}):t("span",{class:e.service.icon.name.replace("icon-","icon-app-"),staticStyle:{padding:"14px","font-size":"78px",color:"#70489d"}})]):e._e(),t("p",{staticClass:"text-lg font-bold py-2 text-green"},[e._v(" "+e._s(e.service.price?e.$t("KD")+" "+e.service.price:"")+" "+e._s("ar"===e.$i18n.locale?e.service.priceDescriptionAr:e.service.priceDescription)+" ")]),t("div",[t("z-button",{staticClass:"uppercase w-1/2",attrs:{size:"small"},on:{click:e.onModalConfirm}},[e._v(" "+e._s(e.$t("OK"))+" ")])],1),"Roaming"===e.service.groupName?t("p",{staticClass:"mt-6 text-center text-xs"},[t("a",{staticClass:"font-bold text-primary underline",on:{click:function(t){e.TnCModalActive=!0}}},[e._v(e._s(e.$t("RoamingTerms&Conditions")))])]):e._e()])]):e._e()]),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":e.statusModalIsSuccess,message:e.statusModalMessage,title:e.statusModalTitle},on:{"update:active":e.onStatusModalCancel}},[e.$t("NotEnoughBalance")===e.statusModalMessage?t("z-button",{on:{click:function(t){return e.$router.push("/pay")}}},[e._v(" "+e._s(e.$t("Recharge"))+" ")]):e._e()],1),t("tn-c-popup",{attrs:{"on-confirm":()=>this.TnCModalActive=!1,"on-cancel":()=>this.TnCModalActive=!1,"confirm-label":e.$t("OK"),type:"roaming"},model:{value:e.TnCModalActive,callback:function(t){e.TnCModalActive=t},expression:"TnCModalActive"}})],1)},Yn=[],Wn=function(){var e=this,t=e._self._c;return t("z-modal",{attrs:{"can-confirm":"","can-cancel":"","confirm-label":e.confirmLabel,"on-confirm":e.onConfirm,"on-cancel":e.onCancel,active:e.isActive},on:{"update:active":function(t){e.isActive=t}}},[t("div",{staticClass:"p-6 text-start whitespace-pre-wrap"},[t("h1",{staticClass:"font-bold text-lg text-center"},[e._v(e._s(e.$t("Terms&Conditions")))]),"roaming"===e.type?t("div",[t("span",{domProps:{innerHTML:e._s(e.roamingTerms[e.$i18n.locale])}})]):t("div",[e._v(" "+e._s(e.TnC[e.type][e.$i18n.locale])+" ")])])])},Qn=[],Xn={name:"TnCPopup",components:{ZModal:Be},props:{value:{type:Boolean,default:!1},onCancel:{type:Function,default:()=>{}},onConfirm:{type:Function,default:()=>{}},confirmLabel:{type:String,default:""},type:{type:String,default:"autoPay"}},watch:{value:{handler:function(e){this.isActive=e}}},data(){return{isActive:!1,TnC:{autoPay:{en:"\n1. If the client fails or delays to settle his/her dues on the due date or upon Zain’s demand, Zain has the right to disconnect any or all mobile line services of the client.\n\n2. When the client instructs his/her financial institution to establish a direct debit from his/her account for Zain services, he/she authorizes his/her financial institution to charge the necessary amount to his/her Bank account or credit card account designated to the benefit of Zain.\n\n3. The client agrees that he/she will always maintain sufficient balance in the relevant Bank account or credit card account to enable Zain to realize its due.\n\n4. The client must always keep his/her personal and Bank account or credit card information accurate and up to date with Zain. Any change in the account details or personal information of the client should be promptly reported by the client to Zain. Zain is not responsible for any damage or loss that may be caused if the service has been halted for such a reason and the client shall be solely responsible for any change that is made without informing Zain.\n\n5. The client is responsible for the security of all his/her personal and account information and credit or bank cards. Zain shall not be responsible for any fraud, loss, damages or misuse of the client’s account information or cards due to negligence of the client.\n\n6. The client may revoke the authorization given to Zain at any time by sending a written notice of revocation to Zain. Such revocation shall not end or alter any contract that exists between the client and Zain.\n\n7. The client’s financial institution is not obligated to check any debit that has been authorized by the client. The client may dispute a debit if 1) the debit was not drawn in accordance with authorization; or 2) this authorization has been terminated with proper and timely written notice from the client; or 3) the debit was posted to the wrong account due to invalid/incorrect information supplied by Zain, by giving a written notice to any of Zain’s branches within 90 days maximum of the debit from the client’s account.\n\n8. Zain reserves the right to cancel this service agreement any time by sending advance notice to the client without any sort of liabilities towards the client.\n\n9. Zain will keep all confidential information related to the client, and has the right to provide its employees, agents and affiliates on a need to need basis if required. If necessary, Zain reserves the right to provide client’s information to the government and any other regulatory authorities upon their requests as required by any applicable law or court order.\n\n10. The client understands and agrees that Zain and the client’s financial institution will do the reasonable efforts to ensure full performance of obligations under this contract.\n\n11. The above terms and conditions are subject to change by Zain without any prior notice to the client, and Zain reserves the right to inform the client of such changes in any manner suitable to Zain.\n\n12. In case of any dispute, the decision of Zain shall be considered as final.\n\n13. The customer waives any right to complain or take any action or claim or file any litigation after 3 months from the final cancellation of his/her services or the contract containing more than one service.\n\n14. This agreement is governed by Kuwaiti laws.\n ",ar:"\n1. إذا لم يتمكن أو تأخر العميل في تسوية المستحقات المطلوبة منه في تاريخ الإستحقاق أو بناءً على طلب شركة زين، فإنه يحق لشركة زين فصل أي أو كل خدمات الخط النقال الخاص بالعميل.\n\n2. عندما يطلب العميل من المؤسسة المالية خصم المستحق عليه مباشرة من حسابه مقابل خدمات شركة زين، فإنه بذلك يفوض المؤسسة المالية بقيد جميع المبالغ اللازمة في الحساب البنكي أو حساب بطاقة الائتمان الخاصة به والمحددة لمنفعة شركة زين.\n\n3. يلتزم العميل بتوفير رصيد كافٍ في الحساب البنكي أو حساب البطاقة ذات الصلة بصورة دائمة لتمكين شركة زين من الحصول على مستحقاتها.\n\n4. على العميل تحديث بياناته الشخصية وبيانات الحساب البنكي أو بطاقة الائتمان بصورة دائمة لدى شركة زين. وعليه أن يبلغ فوراً عند أي تغير في تفاصيل الحسابات أو البيانات الشخصية الخاصة به لدى شركة زين. و إن شركة زين ليست مسؤولة عن أي ضرر أو خسارة قد تنتج إذا ما تم إيقاف الخدمة لذلك السبب وسيكون العميل وحده مسؤولاً عن أي تغير يتم بدون إبلاغ شركة زين.\n\n5. العميل مسؤول عن سرية بياناته الشخصية وبيانات حسابه والبطاقات الائتمانية والبنكية. إن شركة زين ليست مسؤولة عن أي غش، خسارة، ضرر أو سوء إستعمال لبيانات حساب العميل أو بطاقاته بسبب إهماله.\n\n6. يجوز للعميل أن يلغي التفويض الممنوح إلى شركة زين في أي وقت عن طريق إرسال إشعار خطي بذلك ولن ينهي أو يغير هذا الإلغاء أي عقد قائم بين العميل وشركة زين.\n\n7. لا يتعين على المؤسسة المالية التابع لها العميل أن تتأكد أن أي خصم معتمد من قبل العميل. يجوز للعميل أن يعترض على الخصم إذا (1) لم يتم سحب الخصم طبقاً للتفويض أو (2) تم إنهاء التفويض بموجب إشعار خطي قانوني في حينه من قبل العميل أو (3) تم قيد الخصم في حساب خطأ بسبب بيانات غير قانونية وغير صحيحة مقدمة من قبل شركة زين وذلك عن طريق إرسال إشعار خطي إلى أي فرع من فروع شركة زين خلال 90 يوم من الخصم من حساب العميل كحد أقصى.\n\n8. تحتفظ شركة زين بالحق في إلغاء عقد الخدمة هذا في أي وقت عن طريق إرسال إشعار مسبق إلى العميل.\n\n9. تحتفظ شركة زين بسرية بيانات العميل ولها الحق بتزويد موظفيها ووكلائها وتابعيهم بتلك البيانات على أساس الحاجة إلى المعرفة. وفي حال طلبها عند الضرورة، تحتفظ شركة زين بالحق في تقديم بيانات العميل إلى الجهات الحكومية والنظامية الأخرى بناءً على طلبهم أو حسبما هو مطلوب في القانون القابل للتطبيق أو قرارات المحكمة.\n\n10. يعلم العميل ويوافق على أن تقوم شركة زين والمؤسسة المالية التابع لها العميل على بذل الجهود المناسبة لضمان تقديم الأداء الأفضل التام للإلتزامات بموجب هذا العقد.\n\n11. البنود والشروط المذكورة أعلاه قابلة للتغير من قبل شركة زين بدون أي إشعار مسبق إلى العميل وتحتفظ شركة زين بالحق في إبلاغ العميل بذلك التغيير بأي طريقة تراها مناسبة.\n\n12. في حالة النزاع، يعتبر قرار شركة زين نهائياً.\n\n13. يتنازل العميل مقدماً عن حقه في الشكوى أو الدعوى أو أي نوع من أنواع النزاع بعد مضي ثلاثة شهور على إلغاء خدمته أو إلغاء العقد الذي يحتوي على أكثر من خدمة.\n\n14. يخضع هذا العقد للقوانين الكويتية.\n"},payment:{en:"• The customer acknowledges that he/she read and is aware of all subscription terms and conditions for Zain services, in addition to all the relevant details found on the company's website. The customer hereby undertakes to carry out all of his/her obligations owed to the company. The customer hereby declares his/her knowledge and consents that this electronic application is an integral part of the main subscription contract and the general terms with Zain for the mentioned line subscription and is associated with the existence or non-existence of the terms, and its provisions shall be applied in all that is not mentioned in this application. The customer also acknowledges that adding the service via the electronic application of Zain is considered an acceptance of these terms, and acknowledges his/her acceptance to deal with Zain through the electronic application of Zain and in accordance with the procedures followed by Zain.\n\n• The agreed data transfer service speed may be affected by the volume of use. The customer hereby acknowledges and agrees that the weakness of the coverage or failure to reach the stated maximum speed for reasons beyond Zain's control and in a specific location shall not be considered a breach of the services provided. The fair usage policy shall be applied during the month for any over usage of data (including uploading and downloading data). In the event the usage limit is reached, the internet service will be suspended until the end of the month in which usage is exceeded. The usage, speed and price volumes are subject to change and adjustment according to Zain's procedures.\n\n• In the event of the suspension of the line or service permanently or temporarily for non-payment or the assignment of the line to any other customer or transfer to another plan with a lower monthly subscription or cancellation of the line or service before the end of the commitment period. The customer shall pay the fees owed for the service added through the electronic application. The Customer undertakes to pay all amounts due and resulting from any use (as a result of purchasing additional data transfer capacity) that exceeds the permissible monthly subscription value.\n\n• The International voice call prices are subject to the prices of the Ministry of Communications, the regulation and the company procedures. Charges on International roaming for voice services or data transmission (internet) are charged according to each country’s network prices, without the slightest liability on Zain in relation to the prices of foreign companies. Zain shall not be held responsible for customer’s unawareness of the costs of using voice or data services during international roaming.\n\n• The client acknowledges his/her consent to collect and process data and/ or use the data recorded in the information system in direct and indirect contact for the purposes of telemarketing, e-mail marketing, social media ... etc. In addition to the field survey work for the development of the company's services in accordance with the regulations of the Communications and Information Technology Authority.\n\n• The Client acknowledge and agrees that Zain will update his personal data directly through the Public Authority For Civil Information, according to the determined fees.\n\n",ar:'• يقر العميل باطلاعه علي كافة شروط الاشتراك في خدمات شركة زين بالإضافة الى كافه التفاصيل المذكوره على موقع الشركة الالكتروني ويتعهد بتنفيذ كافة الالتزامات المترتبه عليه تجاه الشركة. كما يقر العميل بعلمه وموافقته بأن هذا الطلب الإلكتروني جزء لا يتجزأ من عقد الاشتراك الأساسي والشروط العامة مع شركة "زين" لخط الاشتراك المذكور ومرتبط به وجوداً وعدماً، وتطبق أحكامه في كل ما لم يرد نصه في هذا الطلب ،كما يقر العميل بعلمه بأن اضافه الخدمه من خلال تطبيق زين الالكتروني تعتبر بمثابة الموافقة منه لهذه الشروط، ويقر العميل بقبوله التعامل مع زين من خلال تطبيق زين الالكتروني ووفقا للإجراءات المتبعة بزين .\n\n• قد تتأثر سرعة خدمة نقل البيانات المتفق عليها وفقا لحجم الاستخدام كما يقر العميل بعلمه وموافقته على ان ضعف التغطية و/أو عدم بلوغ السرعة القصوى المعلنة لأسباب خارجة عن ارادة زين و بمكان معين لا يعد خللا في الخدمة المقدمة وفي حال تجاوز حد الاستخدام العادل سيتم تطبيق سياسة الاستخدام العادل خلال الشهر (شامل تحميل و تنزيل البيانات) حيث سيتم ايقاف خدمة الانترنت حتى نهاية الشهر الذي تم استهلاك السعه فيه . كما أن حجم الاستخدام والسرعات والأسعار قابلة للتغيير والتعديل وفقا لإجراءات الشركة.\n\n• وفي حال فصل الخط أو الخدمة نهائيا او الفصل المؤقت لعدم السداد او تم التنازل عن الخط لأي عميل آخر أو الانتقال الى مجموعة ذات اشتراك شهري اقل او الغاء الخط او الخدمة قبل انتهاء مدة الالتزام الخاصة بالعميل يلتزم العميل بسداد الرسوم المستحقه عن الخدمه المضافه من خلال التطبيق الالكتروني، ويتعهد العميل بسداد جميع المبالغ المستحقة و الناتجة عن الاستخدام ايا كانت (نتيجة شراء سعة اضافية لنقل البيانات) و التي تتجاوز قيمة الاشتراك الشهري\n\n• اسعار المكالمات الصوتية الدوليه تخضع لأسعار الجهة المنظمة لقطاع الاتصالات والقرارات المنظمة واجراءات الشركة وكذلك تخضع رسوم مكالمات التجوال الدولي سواء للخدمات الصوتية او نقل البيانات (الانترنت) لأسعار الشبكة المستخدمة لكل دولة. دون ادنى مسئولية على زين فيما يتعلق بأسعار الشركات الخارجية كما تخلي زين مسئوليتها عن اي ادعاء بشأن عدم معرفة تكاليف استخدام الخدمات الصوتية او نقل البيانات اثناء التجوال الخارجي.\n\n• يقر العميل بموافقته على جمع ومعالجة البيانات/استخدام البيانات المسجلة بنظام المعلومات في الاتصال المباشر والغير مباشر لأغراض التسويق عبر الهاتف/البريد الالكتروني/وسائل التواصل الاجتماعي.. الخ، بالإضافة الي أعمال المسح الميداني الخاص بتطوير خدمات الشركة وبما يتوافق مع لوائح الهيئة العامة للاتصالات وتقنية المعلومات.\n\n• يقر العميل بعلمه وموافقته على قيام شركة زين بتحديث بياناته الشخصية مباشرة عن طريق هيئة المعلومات المدنية و ذلك وفقاً للرسوم المقررة.\n'},roaming:{en:"Postpaid Roaming\nWiden your horizon with Zain roaming bundles\n\n1)KD13 - Postpaid Roaming Plus\n\n Package details:\n •Price: KD 13 per week auto-renewal every 7 days\n •Activate through SMS, send “13” to 99990\n •Bundle includes:\n -3GB daily internet roaming (Fair Usage Policy applies)\n -30 minutes outgoing calls within the visited network\n -30 minutes outgoing calls to Kuwait\n -30 outgoing SMS to any country\n\n Terms & Conditions:\n -Hotspot is not available with the KD13 Postpaid Roaming Plus Bundle.\n -Received calls will be charged as per Zain’s standard roaming rates.\n -Outgoing calls are only offered with the KD13 Roaming Plus Bundle.\n -After the 30 minutes of outgoing local calls or 30 minutes of outgoing to Kuwait or 30 SMS is consumed, Zain’s standard roaming rates will apply.\n -Roaming calls are available without the KD13 Roaming Plus Bundle but will be charged as per Zain’s standard roaming rates.\n -Per Fair usage policy, if 3GB daily internet capacity is exceeded, it will not be stopped but speed will be reduced to 256 kb/s till end of day.\n -If 3GB is exceeded, an SMS will be sent to enjoy full speed of 3GB on the same day. Send UT to 99990. Cost is KD2 per activation.\n -The bundle can be activated whilst in Kuwait but KD13 will be charged upon arrival and connected to a partner network in the visited country (activation time).\n -However, if the KD13 Roaming Plus bundle is active and data roaming on the handset is turned off data roaming will not work – will be charged.\n -While roaming, the bundle will be automatically renewed after 7 days starting from the time of activation.\n -Data roaming is available only with the bundles on partner network and internet will not work without a bundle.\n -If the customer does not connect to a partner network in the visited country, data roaming will not work. The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.\n -Local internet bundle is not required to activate roaming services.\n -SMS notifications will be sent to confirm the bundle of the customers each time when the roaming service is renewed, and an amount of KD 13 will be charged.\n -The KD 13 Roaming Plus bundle is available for both consumer and corporate segments. Corporate customers should check with their account manager for availability of services while roaming.\n -Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.\n\n\n2)KD 7 - Postpaid Internet Roaming\n\n Package details:\n •Price: KD7 per week auto-renewal every 7 days\n •Activate through SMS, send “7” to 99990\n •Bundle includes:\n -Data Allowance: 1GB daily internet roaming (Fair Usage Policy applies)\n\n Terms & Conditions:\n •Hotspot is not available with the KD7 Internet Roaming Bundle.\n •Outgoing or Incoming voice calls or SMS are not part of the KD7 Internet Roaming Bundle but\n will be charged as per Zain’s standard roaming rates.\n •Per Fair usage policy, if 1GB daily internet capacity is exceeded, it will not be stopped but speed will be reduced to 256 kb/s till end of day.\n •If 1GB is exceeded, an SMS will be sent to enjoy full speed of 1GB on the same day. Send UT to 99990. Cost is KD2 per activation.\n •The bundle can be activated whilst in Kuwait but KD7 will be charged upon arrival and connected to a partner network in the visited country (activation time).\n •However, if the KD7 Internet roaming is active and data roaming on the handset is turned off data roaming will not work – will be charged.\n •While roaming, the bundle will be automatically renewed after 7 days starting from the time of activation.\n •Data roaming is available only with the bundles on partner network and internet will not work without a bundle.\n •If the customer does not connect to a partner network in the visited country, data roaming will not work. The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.\n •Local internet bundle is not required to activate roaming services.\n •SMS notifications will be sent to confirm the bundle of the customers each time when the roaming service is renewed, and an amount of KD7 will be charged.\n •The KD7 Internet Roaming bundle is available for both consumer and corporate segments. Corporate customers should check with their account manager for availability of services while roaming.\n •Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.\n\n\n3)KD 3 - Roaming Local Calls\n\n Package details:\n •Price: KD 3per week\n •Activate through SMS, send “ROAMLC” to 99990\n •Bundle includes:\n -30 Minutes outgoing calls within the visited network\n\n Terms & Conditions:\n •It will not be auto renewed after (7 days).\n •The package will not include receiving calls while roaming.\n •The package will start once you activate the bundle.\n •The voice calls while roaming “3KWD” is an additional package, and the customer must activate one of the roaming services, KD7 or KD13 as prerequisites.\n •Incoming Calls, Outgoing Calls to Kuwait or any other country or SMS are not part of the KD3 roaming local calls bundle and will be charged as per Zain’s standard roaming rates.\n •The bundle can be activated whilst in Kuwait, but KD 3 will be charged upon arrival and connected to a partner network in the visited country (activation time).\n •After the 30 minutes of outgoing local calls is consumed, Zain’s standard roaming rates will apply.\n •After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer will need to send “ROAMLC” again.\n •Customers can subscribe to the KD3 Roaming Local Calls Bundles even if the KD13 Roaming Plus and KD7 Internet Roaming Bundles are active.\n •The Roaming Local Calls Bundle is available only with partner networks.\n •Local internet bundle is not required to activate roaming services.\n •The KD7 Internet Roaming is available for both consumer and corporate segments. Corporate customers should check with their account manager for availability of services while roaming.\n •Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.\n\n4)KD 5 - Inflight Roaming Service\n\n Package details:\n •Price: KD5 per week\n •Activate through SMS, send “FLYZAIN” to 99990\n •Bundle includes:\n -Unlimited Data\n -Unlimited Outgoing Calls\n -Unlimited SMS\n While flying on routes where Aeromobile or OnAir offer coverage in the aircraft.\n\n\n Terms & Conditions:\n •Zain In-Flight is available with “On-Air” and “Aeromobile” networks.\n •The service will be valid for 7 days, starting from connecting to the network onboard.\n •Zain prepaid customers will require a minimum balance of KD5.1 in order to subscribe to inflight roaming. This service will be available only on those flights, which provide “OnAir” or “Aeromobile” networks on their flights. The said charges include cost KD5 as subscription charges for the service.\n •In-Flight Fair Usage Policy: 500 minutes outgoing calls to any destination, 500 SMS, 100GB data roaming.\n •Incoming Calls, are not part of the KD5 Inflight Roaming bundle and will be charged as per Zain’s standard roaming rates.\n •The bundle can be activated only in the aircraft and will be charged upon activation.\n •After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer needs to send “FLYZAIN” again.\n •The KD5 Inflight Roaming Bundle is a standalone bundle valid for 7 days and any unutilized minutes or SMS or GBs cannot be carried forward or combined with any other bundle.\n •Customers can subscribe to the KD5 Inflight Roaming bundle even if the KD13 Roaming Plus and KD7 Internet Roaming Bundles.\n •The KD5 Inflight Roaming bundle is available on Aeromobile and OnAir networks (inside the aircraft) only.\n •Local internet bundle is not required to activate this bundle.\n\nADD-ON SERVICES\n1)KD 2 - Extra GBs at full speed (Unthrottling)\n\n Package details:\n •Price: KD2 per activation\n •Activate through SMS, send “UT” 99990\n •Bundle includes:\n -1 extra GB per activation for KD7 Internet Roaming Bundle\n -3 extra GBs per activation for KD13 Roaming Plus Bundle\n\n Terms & Conditions:\n •Each activation costs KD2 and until 12am Kuwait time on the same day.\n •The full speed allowance of the main package will reset at 12am Kuwait time.\n •Any unused allowance cannot be carried forward.\n •The customer can activate the extra GBs more than once a day.\n •Not available for corporate customers.\n\nPrepaid Roaming\n PREPAID PLANS\n1)KD13 - Prepaid Roaming Plus\n Package details:\n •Price: KD13 per week auto-renewal every 7 days provided the customer has sufficient credit\n •Activate through SMS, send “13” to 99990\n •Bundle includes:\n -3GB daily internet roaming (Fair Usage Policy applies)\n -30 Minutes outgoing calls within the visited network\n -30 Minutes outgoing calls to Kuwait\n -30 outgoing SMS to any country.\n\n Terms & Conditions:\n •Hotspot is not available with the KD 13 Prepaid Roaming Plus Bundle.\n •Receiving call will be charged as per Zain’s standard roaming rates.\n •Outgoing calls are only offered with the KD 13 Roaming Plus Bundle.\n •Roaming calls is available without the KD 13 Roaming Plus Bundle but will be charged as per Zain’s standard roaming rates.\n •Per Fair usage policy, if 3GB daily internet capacity is exceeded, it will not be stopped but speed will be reduced to 256 kb/s till end of day.\n •SMS will be sent to enjoy full speed of 3 GB on the same day. Send UT to 99990. Cost is KD2 per activation.\n •The bundle can be activated whilst in Kuwait but KD13 will be charged upon arrival and connected to a partner network in the visited country (activation time).\n •However, if the KD 13 Roaming Plus bundle is active and Data Roaming on the handset is Turned Off data roaming will not work – will be charged.\n •While roaming, the bundle will be automatically renewed after 7 days starting from the time of activation.\n •Data roaming is available only with the bundles on partner network and internet will not work without a bundle.\n •If the customer does not connect to a partner network in the visited country, data roaming will not work. The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.\n •Local internet bundle is not required to activate roaming services.\n •SMS notifications will be sent to confirm the of bundle the customers each time when the roaming service is renewed, and an amount of KD13 will be charged.\n •Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.\n\nADD-ON SERVICES for KD 13 Bundle\n\nA)KD 2 - Extra GBs bundle (Unthrottling) for KD13 Bundle\n\n Package details:\n •Price: KD 2 per activation\n •Activate through SMS, send “UT” 99990\n •Bundle includes:\n -3 extra GBs per activation for KD13 Roaming Plus Bundle\n\n Terms & Conditions:\n •After the main package allowance or daily threshold is consumed, an SMS will be sent to notify the customer.\n •Each activation costs KD2 and valid until 12am Kuwait time same day.\n •The full speed allowance of the main package will reset at 12am Kuwait time.\n •Any unused allowance cannot be carried forward.\n •The customer can activate the extra GBs more than once a day.\n\n\n2)KD 9 - Prepaid Roaming Bundle\n Package details:\n •Price: KD9 per week (non- renewal)\n •Activate through SMS, send “9” to 99990\n •Bundle includes:\n -5GB Data Allowance per week\n -25 Minutes outgoing calls within the visited network\n -25 outgoing SMS to any country.\n\n Terms & Conditions:\n •Hotspot is not available with the KD 9 Prepaid Roaming Bundle.\n •Receiving call will be charged as per Zain’s standard roaming rates.\n •Customers can use the Add-On service in the following :\n a)If the 5GB Data is consumed before one week, Internet will be stopped and the customer can use the 1GB Add-on service. SMS will be sent to enjoy full speed of 1 GB. Send 1G to 99990. Cost is KD2 per 1 GB valid until the expiry of the roaming plan\n b)After the 25 min of Outgoing calls is consumed, Zain’s standard roaming rates will apply or customer can subscribe to the Voice Add-On of 25Min by sending 25 to 99990 (valid until the expiry of the roaming plan).\n a)After the 25 SMS is consumed, Zain’s standard roaming rates will apply.\n •The customer can reactivate KD9 bundle more than once but the service must be cancelled and reactivated each time. Send ‘9’ to 99990 to activate and send “Data Off” to 99990 to deactivate\n •Voice calls are available without the KD9 Prepaid Roaming Bundle but will be charged as per Zain’s standard roaming rates.\n •The bundle can be activated whilst in Kuwait but KD9 will be charged once you subscribe then connected to a partner network in the visited country (activation time).\n •However, if the KD9 Prepaid Roaming Bundle is active and data roaming on the handset is turned off data roaming won’t be active – will be charged.\n •Data roaming is available only with the bundles on partner network and internet will not work without a bundle.\n •If the customer does not connect to a partner network in the visited country, data roaming will not work. The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.\n •Local internet bundle is not required to activate roaming services.\n\n\nADD-ON SERVICES for KD 9\nB)KD 2 - Extra GBs bundle (Unthrottling) for KD 9 Bundle\n\n Package details:\n •Price: KD2 per activation\n •Activate through SMS, send “UT” 99990\n •Bundle includes:\n -1 extra GB per activation for KD 9 Internet Roaming Bundle\n\n Terms & Conditions:\n •After the main package allowance is consumed, an SMS will be sent to notify the customer.\n •Each activation costs KD2 and is valid until the 1GB is consumed or until the expiry of the main bundle.\n •The customer can activate extra GBs bundle more than once until the expiry of the main bundle.\n\nC)KD 2 - Extra 25 min Local Roaming Calls for KD 9 Bundle\n\n Package details:\n •Price: KD2 per activation\n •Activate through SMS, send “25” 99990\n •Bundle includes:\n -25 minutes of local calls in the visited country\n\n\n Terms & Conditions:\n •After the main package allowance is consumed, an SMS will be sent to notify the customer.\n •Each activation costs KD 2 valid until the 25 extra minutes is consumed or until the expiry of the main bundle.\n •The customer can activate extra minutes more than once until the expiry of the main bundle.\n\n\n5)KD 5 - Prepaid Roaming Local Calls\n\n Package details:\n •Price: KD5 per week\n •Activate through SMS, send “5” to 99990\n •Bundle includes:\n -30 Minutes outgoing calls within the visited network\n -30 Minutes outgoing calls to Kuwait\n -30 outgoing SMS to any country.\n\n Terms & Conditions:\n •Incoming Calls, Outgoing Calls to any other country (except Kuwait and the visited country) are not part of the KD5 Prepaid Roaming Local Calls bundle and will be charged as per Zain’s standard roaming rates.\n •The bundle can be activated whilst in Kuwait but KD5 will be charged upon arrival and connected to a partner network in the visited country (activation time).\n •After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer needs to send “ROAMLC” again.\n •Customers can subscribe to the KD5 Prepaid Roaming Local Calls bundle even if they have the KD13 Roaming Plus and KD7 Internet Roaming Bundles.\n •The KD5 Prepaid Roaming Local Calls bundle is available with partner networks only.\n •Local internet bundle is not required to activate roaming services.\n\n\n\n6)KD 5 - Inflight Roaming Service\n\n Package details:\n •Price: KD5 per week\n •Activate through SMS, send “FLYZAIN” to 99990\n •Bundle includes:\n -Unlimited Data\n -Unlimited Outgoing Calls\n -Unlimited SMS\n While flying on routes where Aeromobile or OnAir offer coverage in the aircraft.\n\n\n Terms & Conditions:\n •Zain In-Flight is available with “On-Air” and “Aeromobile” networks.\n •The service will be valid for 7 days, starting from connecting to the network onboard.\n •Zain Prepaid Customers will require a minimum balance of KD5.1 in order to subscribe to inflight roaming on board flights. This service will be available only on those flights, which provide “OnAir” or “Aeromobile” networks on their flights. The said charges include cost KD5 as subscription charges for the service.\n •In-Flight Fair Usage Policy: 500 minutes outgoing calls to any destination, 500 SMS, 100GB data roaming.\n •Incoming Calls, are not part of the KD5 Inflight Roaming bundle and will be charged as per Zain’s standard roaming rates.\n •The bundle will be activated only in the aircraft and will be charged upon activation\n •After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer needs to send “FLYZAIN” again.\n •The KD5 Inflight Roaming Bundle is a standalone bundle valid for 7 days and any unutilized minutes or SMS or GBs cannot be carried forward or combined with any other bundle.\n •Customers can subscribe to the KD5 Inflight Roaming bundle even if they have the KD13 Roaming Plus and KD7 Internet Roaming Bundles.\n •The KD5 Inflight Roaming bundle is available on Aeromobile and OnAir networks (inside the aircraft) only.\n •Local internet bundle is not required to activate this bundle.\n ",ar:'باقات التجوال الدفع الآجل\n\nوسع آفاقك واستمتع بباقات تجوال زين\n1) 13 د. ك - باقة التجوال بلس للدفع الآجل\nتفاصيل الباقة:\n•السعر: 13 د.ك أسبوعيًا ويتم التجديد تلقائيًا كل 7 أيام\n•للتفعيل، إرسال رسالة نصية "13" إلى 99990\n•عرض الباقة:\n•GB3 انترنت يوميًا (تطبيق سياسة الاستخدام العادل)\n•30 دقيقة مكالمات صادرة داخل شبكة الدولة التي تمت زيارتها\n•30 دقيقة مكالمات صادرة إلى الكويت\n•30 رسالة نصية صادرة لأي دولة\nالشروط والأحكام:\n- خدمة مشاركة الانترنت”Hotspot” غير متوفرة مع خدمة تجوال بلس لخطوط الدفع الآجل - 13 د.ك.\n- يتم احتساب المكالمات الواردة وفقًا لتسعيرة التجوال للدول المحددة.\n- المكالمات الصادرة متاحة فقط مع باقة التجوال بلس 13 د.ك.\n- بعد 30 دقيقة من المكالمات المحلية الصادرة أثناء التجوال أو 30 دقيقة من المكالمات الصادرة إلى الكويت أو 30 رسالة قصيرة، سيتم تطبيق أسعار التجوال وفقًا لتسعيرة التجوال للدول المحددة.\n- تتوفر مكالمات التجوال بدون باقة تجوال بلس 13 د.ك وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة.\n- تطبق سياسة الاستخدام العادل بعد GB3 انترنت يوميًا (كحد أقصى يوميًا، ولن تتوقف الخدمة إنما ستنخفض سرعتها إلى KB256 حتى نهاية اليوم.\n- يمكن للعميل الاستمتاع بالسرعة الكاملة GB3 انترنت في نفس اليوم، من خلال إرسال رسالة نصية UT إلى 99990. وتبلغ التكلفة 2 د. ك. لكل تفعيل.\n- يمكن تفعيل الباقة أثناء تواجدك في الكويت وسيتم احتساب مبلغ 13 د.ك عند الوصول والاتصال بالشبكة الشريكة في البلد التي سيتم زيارتها.\n- إذا كانت باقة تجوال بلس 13 د.ك فعالة وتم إيقاف تشغيل إنترنت التجوال في الهاتف، فلن تعمل الخدمة – وسيتم احتساب قيمتها.\n- تتجدد الباقة تلقائيًا بعد 7 أيام من بداية الاستخدام أثناء التجوال.\n- تتوفر خدمة تجوال الإنترنت مع الباقات لدى الشبكات الشريكة فقط ولن تعمل الخدمة دون باقة.\n- يستطيع العميل الإستمتاع بمزايا باقات التجوال فقط عند اتصاله بالشبكات الشريكة مع زين. (أدرج رابط الشركات غير الشريكة)\n- باقة الإنترنت المحلية غير مطلوبة لتفعيل خدمات التجوال.\n- سيتم إرسال رسالة نصية لتأكيد الباقة إلى العملاء في كل مرة يتم فيها تجديد الباقة، وسيتم احتساب مبلغ 13 د.ك. عند كل تجديد.\n- باقة تجوال بلس لخطوط الدفع الآجل 13 د.ك متاحة للأفراد والشركات، ويجب على عملاء الشركات مراجعة مدير حسابهم لتزويدهم بالخدمة أثناء التجوال.\n- يمكن إلغاء تفعيل باقات التجوال بإرسال "Data Off" إلى 99909 أثناء التجوال أو عند التواجد في دولة الكويت.\n\n\n2) 7 د. ك - باقة تجوال الإنترنت للدفع الآجل.\nتفاصيل الباقة:\n•السعر: 7 د.ك أسبوعيًا ويتم التجديد تلقائيًا كل 7 أيام\n•للتفعيل، إرسال رسالة نصية "7" إلى 99990\n•عرض الباقة:\n- باقة الإنترنت: GB1 انترنت يوميًا (تطبق سياسة الاستخدام العادل)\nالشروط والأحكام:\n- خدمة مشاركة الانترنت”Hotspot” غير متوفرة مع باقة التجوال 7 د.ك.\n- المكالمات الصادرة والواردة والرسائل النصية ليست جزءً من باقة التجوال لخطوط الدفع المسبق - 7 د.ك وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة.\n- تطبق سياسة الاستخدام العادل بعد GB1 انترنت بحد أقصى يوميًا، ولن يتوقف الانترنت وإنما ستنخفض سرعته إلى KB256 حتى نهاية اليوم.\n- يمكن للعميل الاستمتاع بالسرعة الكاملة لسعة 1GB انترنت في نفس اليوم، من خلال إرسال رسالة نصية UT إلى 99990. وتبلغ التكلفة 2 د. ك. لكل تفعيل\n- يمكن تفعيل الباقة اثناء تواجدك في الكويت وسيتم احتساب مبلغ 7 د.ك عند الوصول والاتصال بالشبكة الشريكة في البلد التي سيتم زيارتها.\n- إذا كانت باقة تجوال الإنترنت 7 د.ك فعالة وتم إيقاف تشغيل إنترنت التجوال في الهاتف، فلن تعمل الخدمة – وسيتم احتساب قيمتها.\n- تتجدد الباقة تلقائيًا بعد 7 أيام من بداية الاستخدام أثناء التجوال.\n- تتوفر خدمة تجوال الإنترنت مع الباقات لدى الشبكات الشريكة فقط ولن تعمل الخدمة بدون باقة.\n- يستطيع العميل الإستمتاع بمزايا باقات التجوال فقط عند اتصاله بالشبكات الشريكة مع زين. (أدرج رابط الشركات غير الشريكة)\n- لا يتطلب وجود باقة إنترنت محلية لتفعيل خدمات التجوال.\n- سيتم إرسال رسالة نصية لتأكيد الباقة إلى العملاء في كل مرة يتم فيها تجديد الباقة، وسيتم احتساب مبلغ 7 د.ك. عند كل تجديد.\n- باقة تجوال الإنترنت للدفع الآجل 7 د.ك متاحة للأفراد والشركات، ويجب على عملاء الشركات مراجعة مدير حسابهم لتزويدهم بالخدمة أثناء التجوال.\n- يمكن إلغاء تفعيل باقات التجوال بإرسال "Data Off" إلى 99990 أثناء التجوال أو عند التواجد في دولة الكويت.\n\n3) 3 د.ك – خدمة مكالمات محلية تجوال\nتفاصيل الباقة:\n•السعر: 3 د.ك أسبوعيًا\n•للتفعيل، إرسال رسالة نصية "ROAMLC" إلى 99990\n•عرض الباقة:\n - 30 دقيقة مكالمات صادرة داخل شبكة الدولة التي سيتم زيارتها\nالشروط والأحكام:\n•لا تُجدد هذه الباقة تلقائيًا بعد (7 أيام).\n•لن تشمل الباقة استقبال المكالمات أثناء التجوال.\n•ستبدأ الخدمة فور قيامك بالتفعيل.\n•المكالمات الصوتية أثناء التجوال "3 د.ك “هي خدمة إضافية، ويجب على العميل تفعيل إحدى باقات التجوال، 7 د.ك أو 13 د.ك كشروط مسبقة.\n•المكالمات الواردة والمكالمات الصادرة إلى الكويت أو لأي دولة أخرى أو الرسائل النصية القصيرة ليست جزءًا من خدمة مكالمات التجوال المحلية 3 د.ك وسيتم احتسابها وفقا لتسعيرة التجوال للدول المحددة.\n•يمكن تفعيل الخدمة اثناء تواجدك في الكويت ولكن سيتم احتسابها مقابل بمبلغ 3 د.ك عند الوصول واتصالها بالشبكة الشريكة في البلد الذي تمت زيارته (وقت التفعيل).\n•بعد استهلاك 30 دقيقة من المكالمات المحلية الصادرة، سيتم تطبيق تسعيرة التجوال للدول المحددة لشركة زين.\n•بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الخدمة تلقائيًا ويحتاج العميل إلى إرسال "ROAMLC" لتفعيلها مرة أخرى.\n•يمكن للعملاء الاشتراك في خدمة المكالمات المحلية للتجوال مقابل 3 د.ك حتى لو كان لديهم باقات تجوال بلس بقيمة 13 د.ك، أو تجوال إنترنت بقيمة 7 د.ك.\n•باقات المكالمات المحلية للتجوال متوفرة مع الشبكات المشاركة مع زين فقط.\n•لا يتُطلب وجود باقة إنترنت محلية لتفعيل خدمات التجوال.\n•باقة تجوال الإنترنت بقيمة 7 د.ك متاحة للأفراد والشركات. ويجب على عملاء الشركات التواصل مع مدير حساباتهم لتزويدهم بالخدمات أثناء التجوال.\n•يمكن إلغاء تفعيل الخدمة بإرسال "Data Off" إلى 99990 أثناء التجوال أو أثناء التواجد في الكويت.\n\n4) خدمة التجوال داخل الطائرة – 5 د.ك\nتفاصيل الباقة:\n•السعر: 5 د.ك اسبوعيًا\n•للتفعيل، إرسال رسالة نصية "FLYZAIN " إلى 99990\n•عرض الباقة:\n- خدمة بيانات غير محدودة\n- مكالمات صادرة غير محدودة\n- رسائل نصية غير محدودة\nاثناء تحليق الطائرة في مساراتها، تقدم شبكات On-Air و Aeromobile تغطية داخل الطائرة.\n\nالشروط والأحكام:\n•خدمة التجوال داخل الطائرة من زين متاحة عبر شبكات On-Air و Aeromobile.\n•الخدمة صالحة لمدة 7 أيام، بدءًا من الاتصال بالشبكة داخل الطائرة.\n•يتطلب من عملاء خطوط الدفع المسبق زين وجود رصيد لا يقل عن 5.1 د. ك للاشتراك في خدمة التجوال داخل الطائرة. وتتوفر هذه الخدمة فقط في الرحلات الجوية التي يتوافر بطائراتها شبكات On-Air و Aeromobile ". وتشمل الرسوم 5 د. ك كرسوم اشتراك للخدمة.\n•سياسة الاستخدام العادل لخدمة "التجوال داخل الطائرة": 500 دقيقة مكالمات صادرة إلى أي وجهة و 500 رسالة قصيرة و 100 جيجابايت خدمة تجوال البيانات.\n•المكالمات الواردة ليست جزءًا من خدمة التجوال داخل الطائرة 5 د. ك وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة لشركة زين\n•يمكن تفعيل الخدمة داخل الطائرة فقط ويتم احتسابها عند التفعيل.\n•بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الخدمة تلقائيًا ويحتاج العميل إلى إرسال "FLYZAIN" مرة أخرى.\n•خدمة التجوال داخل الطائرة 5 د. ك هي خدمة مستقلة صالحة لمدة 7 أيام وأي دقائق غير مستخدمة أو رسائل نصية أو سعة انترنت لن يتم ترحيلها أو دمجها مع أي باقة أخرى.\n•يمكن للعملاء الاشتراك في خدمة التجوال داخل الطائرة 5 د. ك حتى لو كانوا مشتركين بخدمة تجوال بلس 13 د. ك وخدمة تجوال 7 د. ك.\n•باقة الخدمة داخل الطائرة 5 د. ك متاحة عبر شبكات On-Air و Aeromobile (داخل الطائرة) فقط.\n•لا يُتطلب الإشتراك في خدمة الانترنت المحلية لتفعيل هذه الباقة.\n\nالخدمات الإضافية\n GB1 سعة انترنت إضافية بالسرعة الكاملة (غير مقيدة السعة) - 2 د. ك\nتفاصيل الخدمة:\n•السعر: 2 د. ك لكل تفعيل\n•للتفعيل، إرسال رسالة نصية "UT” إلى 99990\n•عرض الخدمة:\n- GB1 سعة انترنت إضافية لكل عملية تفعيل لباقة تجوال الانترنت 7 د. ك\n GB3 سعة انترنت إضافية لكل عملية تفعيل لباقة تجوال بلس 13 د. ك.\nالشروط والأحكام:\n•تبلغ تكلفة التفعيل 2 د. ك حتى الساعة 12 صباحًا بتوقيت الكويت في نفس اليوم.\n•سيتم إعادة ضبط رصيد السرعة الكاملة للباقة الرئيسية في الساعة 12 صباحًا بتوقيت الكويت.\n•لن يتم ترحيل أي رصيد غير مستخدم.\n•يمكن للعميل تفعيل سعة انترنت إضافية أكثر من مرة في اليوم.\n•الباقة غير متاحة لعملاء الشركات.\n\nخدمات التجوال لخطوط الدفع المسبق\n\nخطط الدفع المسبق\n1) باقات التجوال لخطوط الدفع المسبق – 13 د. ك\nتفاصيل الباقة:\n•السعر: 13 د.ك أسبوعيًا ويتم التجديد تلقائيًا كل 7 أيام\n•يتم التفعيل بإرسال رسالة "13" إلى 99990.\n•عرض الباقة:\n•GB3 انترنت يوميًا (تطبيق سياسة الاستخدام العادل)\n•30 دقيقة من المكالمات الصادرة داخل شبكة الدولة التي تمت زيارتها\n•30 دقيقة من المكالمات الصادرة إلى الكويت\n•30 رسالة نصية صادرة لأي دولة.\nالشروط والاحكام:\n- خدمة مشاركة الانترنت”Hotspot” غير متوفرة مع خدمة تجوال بلس لخطوط الدفع المسبق 13 د.ك.\n- سيتم فرض رسوم استقبال المكالمات وفقًا لتسعيرة التجوال للدول المحددة لشركة زين .\n- تتوفر مكالمات التجوال الصادرة فقط مع خدمة تجوال بلس 13 د.ك.\n- تتوفر مكالمات التجوال بدون خدمة تجوال بلس 13 د.ك ولكن ستحتسب وفقا لتسعيرة التجوال للدول المحددة لشركة زين.\n- تطبق سياسة الاستخدام العادل بعد GB3 انترنت بحد أقصى، ولن يتوقف الانترنت ولكن ستنخفض سرعته إلى KB256 حتى نهاية اليوم.\n- يتطلب ارسال رسائل نصية للإستمتاع بسرعة كاملة GB3 انترنت في نفس اليوم. أرسل UT إلى 99990 وتبلغ تكلفة التفعيل 2 د. ك.\n- يمكن تفعيل الخدمة اثناء تواجدك في الكويت ولكن سيحتسب مبلغ 13 د.ك عند الوصول والاتصال بالشبكة المشاركة مع زين في الدولة التي تمت زيارتها (وقت التفعيل).\n- ومع ذلك، إذا كانت خدمة تجوال بلس 13 د.ك فعالة وتم إيقاف تشغيل تجوال البيانات في الهاتف فلن تعمل خدمة التجوال – وسيتم احتسابها.\n- أثناء التجوال، سيتم تجديد الخدمة تلقائيًا بعد 7 أيام بداية من وقت التفعيل\n- تتوفر خدمة تجوال الانترنت فقط مع الباقات على الشبكات المشاركة مع زين ولن يعمل الانترنت بدون وجود الخدمة.\n- إذا لم يتصل العميل بالشباكات المشاركة مع زين في الدولة التي تمت زيارتها، فلن يعمل تجوال الانترنت، ويجب على العميل الاتصال بالشبكة الشريكة للإستمتاع بمزايا خدمات تجوال شركة زين. (أدرج رابط الشركات الغير مشاركة مع زين)\n- لا يتطلب وجود خدمة انترنت محلية لتفعيل خدمات التجوال.\n- سيتم إرسال رسالة نصية لتأكيد الباقة إلى العملاء في كل مرة يتم فيها تجديد خدمة التجوال، وسيحتسب مبلغ 13 د. ك.\n- يمكن إلغاء تفعيل خدمة التجوال بإرسال "Data Off" إلى 99990 أثناء التجوال أو أثناء التواجد في دولة الكويت.\n\nباقة خدمات إضافية 13 د.ك\nأ) 2 د.ك – خدمة سعة انترنت إضافية (غير مقيدة السعة) مقابل 13 د.ك\nتفاصيل الباقة:\n•السعر: 2 د.ك لكل تفعيل\n•يتم التفعيل بإرسال رسالة نصية “UT” إلى 99990\n•عرض الباقة:\n - GB3 سعة انترنت إضافية مقابل 13 د.ك باقة تجوال بلس\nالشروط والاحكام:\n•بعد استهلاك الرصيد الرئيسي للباقة أو الحد اليومي، يتم إرسال رسالة نصية.\n•تبلغ تكلفة التفعيل 2 د. ك حتى الساعة 12 صباحًا بتوقيت الكويت في نفس اليوم.\n•يتم إعادة ضبط السرعة الكاملة لرصيد الباقة الرئيسية في الساعة 12 صباحً بتوقيت الكويت\n•لا يمكن ترحيل أي رصيد غير مستخدم.\n•يمكن للعميل تفعيل سعة انترنت إضافية أكثر من مرة في اليوم.\n\n2) باقة التجوال لخطوط الدفع المسبق - 9 د.ك\nتفاصيل الباقة:\n\n•السعر: 9 د.ك أسبوعيًا (لا تتجدد)\n•يتم التفعيل بإرسال رسالة نصية “9" إلى 99990\n•عرض الباقة:\n- GB5 انترنت لكل أسبوع\n- 25 دقيقة مكالمات جارية داخل شبكة اتصال الدولة التي تمت زيارتها\n- 25 دقيقة رسائل نصية جارية إلى أي بلد.\n\nالشروط والاحكام:\n•خدمة مشاركة الانترنت”Hotspot” غير في خدمة التجوال لخطوط الدفع المسبق.\n•سيتم فرض رسوم استقبال المكالمات وفقًا لتسعيرة التجوال للدول المحددة لشركة زين.\n•يمكن للعملاء استخدام الخدمة الإضافية على النحو التالي:\nأ) عند استهلاك سعة الانترنت GB5 قبل أسبوع واحد، ستتوقف خدمة الانترنت ويمكن للعميل استخدام خدمة GB1 الإضافية. سيتم إرسال رسالة نصية للإستمتاع بالسرعة الكاملة لخدمة GB1. من خلال إرسال رسالة نصية" 1G" إلى 99990 . تبلغ التكلفة 2 د.ك لكل GB1 انترنت وتظل سارية حتى انتهاء مدة باقة التجوال.\nب) بعد استهلاك 25 دقيقة للمكالمات الجارية، ستطبق تسعيرة التجوال للدول المحددة لشركة زين أو يمكن للعميل الإشتراك في الخدمة الصوتية الإضافية 25 دقيقة بإرسال 25 إلى 99990 (وتظل سارية حتى انتهاء مدة خطة التجوال)\nأ) بعد استهلاك 25 رسالة نصية، ستطبق تسعيرة التجوال للدول المحددة لشركة زين\n•يمكن للعميل تفعيل الخدمة 9 د.ك أكثر من مرة ولكن يجب إلغاء الخدمة وإعادة تفعيلها كل مرة من خلال إرسال "9" إلى 99990 للتفعيل وأرسال " Data off" إلى 99990 لإلغاء التفعيل.\n•المكالمات الصوتية متاحة بدون خدمة التجوال للخطوط الدفع المسبق 9 د.ك ولكن سوف تحتسب وفقًا لتسعيرة التجوال للدول المحددة لشركة زين\n• يمكن تفعيل الخدمة اثناء تواجدك في الكويت ولكن سيتم احتسابها بمبلغ 9 د.ك بمجرد اشتراكك بالخدمة وسيتم توصيلك بالشبكات المشاركة في الدولة التي تمت زيارتها (وقت التفعيل).\n•ورغم ذلك، إذا تم تفعيل خدمة التجوال المدفوعة مسبقًا بقيمة 9 د.ك وكانت بيانات التجوال في الهاتف في حالة إغلاق تشغيل، حينئذ لن تعمل بيانات التجوال. – وسيتم احتسابها.\n•بيانات التجوال متاحة فقط مع الخدمات لدى الشبكة الشريكة ولن يعمل الانترنت بدون الخدمة.\n•إذا لم يتصل العميل بالشبكة المشاركة في الدولة التي تمت زيارتها، فلن تعمل بيانات التجوال. ويجب على العميل الاتصال بشبكة شريكة للإستمتاع بمزايا بخدمات تجوال زين. (رابط للشبكات الغير مشاركة مع زين).\n•لا يُتطلب وجود خدمة انترنت محلية لتفعيل خدمات التجوال.\n\nباقة الخدمات الإضافية 9 د.ك\nب) – 2 د.ك – باقة جيجا بايت إضافية (غير مقيدة السعة) مقابل خدمة بمبلغ 9 د.ك\nتفاصيل الباقة:\n•السعر: 2 د.ك لكل تفعيل\n•يتم تفعيل الباقة بإرسال رسالة نصية“UT” إلى 99990\n•عرض الباقة:\n - 1GB سعة انترنت إضافية لكل تفعيل خدمة تجوال انترنت بسعر 9 د.ك\nالشروط والاحكام:\n•بعد استهلاك رصيد الباقة الرئيسية، سيتم إرسال رسالة نصية.\n•يتم إعادة ضبط السرعة الكاملة لرصيد الباقة الرئيسية في الساعة 12 صباحًا بتوقيت الكويت\n•يمكن للعميل تفعيل سعة انترنت إضافية أكثر من مرة حتى انتهاء مدة الباقة الرئيسية.\nج) – 2 د.ك – باقة 25 دقيقة إضافية مكالمات تجوال محلية مقابل خدمة 9 د.ك\nتفاصيل الخدمة:\n•السعر: 2 د.ك لكل تفعيل\n•يتم تفعيل الباقة برسالة نصية "25" إلى 99990\n•عرض الخدمة:\n - 25 دقيقة محلية في البلد التي تمت زيارتها.\nالشروط والاحكام:\n•بعد استهلاك رصيد الباقة الرئيسية، سيتم إرسال رسالة نصية.\n•تكلفة كل تفعيل 2 د.ك ويظل ساريًا حتى استهلاك 1GB سعة انترنت أو حتى انتهاء مدة الباقة الرئيسية\n•يمكن للعميل سعة الانترنت الإضافية أكثر من مرة حتى انتهاء مدة الباقة الرئيسية.\nج) – 2 د.ك – باقة 25 دقيقة إضافية مكالمات تجوال محلية بقيمة 9 د.ك\nتفاصيل الخدمة:\n•السعر: 2 د.ك لكل تفعيل\n•يتم تفعيل الباقة برسالة نصية "25" إلى 99990\n•عرض الخدمة:\n - 25 دقيقة في البلد التي تمت زيارتها.\nالشروط والاحكام:\n•بعد استهلاك رصيد الباقة الرئيسية، سيتم إرسال رسالة نصية .\n•تكلفة كل تفعيل 2 د.ك ويظل ساريًا حتى استهلاك الـ 25 دقيقة الإضافية أو حتى انتهاء مدة الباقة الرئيسية\n•يمكن للعميل تفعيل الدقائق الإضافية أكثر من مرة حتى انتهاء مدة الباقة الرئيسية.\n\n\n5) مكالمات تجوال محلية لخطوط الدفع المسبق - 5 د.ك\nتفاصيل الباقة:\n•السعر: 5 د.ك اسبوعيًا\n•التفعيل من خلال رسالة نصية "5" إلى 99990.\n•عرض الباقة:\n - 30 دقيقة مكالمات صادرة داخل شبكة البلد التي تمت زيارتها.\n -30 دقيقة مكالمات صادرة إلى الكويت\n - 30 دقيقة مكالمات صادرة إلى أي بلد\n\nالشروط والاحكام:\n•المكالمات الواردة والمكالمات الصادرة إلى أي بلد آخر (باستثناء الكويت والبلد التي تمت زيارتها) ليست جزءًا من باقة مكالمات التجوال المحلية 3 د.ك وسيتم احتسابها وفقا لتسعيرة التجوال للدول المحددة لشركة زين.\n•يمكن تفعيل الخدمة أثناء تواجدك في الكويت ولكن سيحتسب مبلغ 5 د.ك عند الوصول والاتصال بالشبكات المشاركة مع زين التي تمت زيارتها (وقت التفعيل).\n•بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن تُجدد الخدمة تلقائيًا ويحتاج العميل إلى ارسال "ROAMLC" مرة أخرى.\n•يمكن للعملاء الأشتراك في خدمة تجوال المكالمات المحلية لخطوط الدفع المسبق، سيتم تطبيق أسعار التجوال وفقًا لتسعيرة التجوال للدول المحددة لشركة زين.\n•بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الباقة تلقائيًا ويحتاج العميل إلى إرسال "ROAMLC" مرة أخرى.\n•يمكن للعملاء الأشتراك في خدمة مكالمات التجوال المحلية لخطوط الدفع المسبق 5 د.ك حتى إن كان مشترك في خدمات تجوال بلس 13 د.ك، أو خدمة تجوال انترنت 7 د.ك.\n•خدمة مكالمات التجوال المحلية لخطوط الدفع المسبق 5 د.ك متوفرة مع الشبكات المشاركة مع زين فقط.\n•خدمة الانترنت المحلية غير مطلوبة لتفعيل خدمات التجوال.\n\n6) خدمة لتجوال داخل الطائرة - 5 د.ك\nتفاصيل الباقة:\n•السعر: 5 د.ك أسبوعيًا\n•التفعيل بإرسال رسالة نصية "FLYZAIN" إلى 99990.\n•عرض الباقة:\n- خدمة سعة الانترنت غير محدودة\n- مكالمات صادرة غير محدودة\n- رسائل نصية غير محدودة\nأثناء تحليق الطائرة، تقدم شبكات AeroMobile أو ONAIR تغطية داخل الطائرة.\nالشروط والاحكام:\n•خدمة زين للتجوال داخل الطائرة (In-Flight) متاحة على شبكات AeroMobile أو ONAIR\n•الخدمة سارية لمدة 7 أيام، بدءً من الاتصال بالشبكة على الطائرة.\n•يتطلب من عملاء خطوط الدفع المسبق توفر رصيد لا يقل عن 5.1 د. ك للإشتراك في خدمة التجوال داخل الطائرة (In-Flight) في الرحلات الجوية بالطائرة. وتتوفر هذه الخدمة فقط بتلك الطائرات التي يتوفر فيها شبكات AeroMobile أو ONAIR. وتشمل تكلفة الخدمة 5 د. ك كرسوم اشتراك للخدمة.\n•سياسة الاستخدام العادلة لخدمة التجوال داخل الطائرة (In-Flight): 500 دقيقة مكالمات صادرة إلى أي وجهة و 500 رسالة قصيرة و 100GB سعة الانترنت.\nالشروط والأحكام:\n•المكالمات الواردة، ليست جزءًا من خدمة التجوال داخل الطائرة (In-Flight) وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة لشركة زين\n•يمكن تفعيل الخدمة فقط داخل الطائرة وسيتم احتسابها عند التفعيل.\n•بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الباقة تلقائيًا ويحتاج العميل إلى ارسال "FLYZAIN" مرة أخرى.\n•خدمة التجوال داخل الطائرة (In-Flight) 5 د. ك هي خدمة مستقلة تسري لمدة 7 أيام والمتبقي من دقائق أو رسائل نصية أو سعة انترنت غير مستخدمة لا يمكن ترحيلها أو دمجها مع أي باقة أخرى.\n•يمكن للعملاء الاشتراك في خدمة التجوال داخل الطائرة (In-Flight) 5 د. ك حتى لو كانوا مشتركين في خدمات تجوال بلس 13 د. ك وتجوال إنترنت 7 د. ك.\n•خدمة التجوال داخل الطائرة (In-Flight) 5 د. ك متاحة على شبكات AeroMobile أو ONAIR (داخل الطائرة) فقط.\n•خدمة الانترنت المحلية غير مطلوبة لتفعيل هذه الخدمة.\n\n\n\n '}},roamingTerms:{en:'

 

\n

POSTPAID ROAMING

\n

Widen your horizon with Zain roaming bundles

\n
    \n
  • KD13 - Postpaid Roaming Plus
  • \n
\n

Package details:

\n
    \n
  • Price: KD 13 per week auto-renewal every 7 days
  • \n
  • Activate through SMS, send “13” to 99990
  • \n
  • Bundle includes:
  • \n
  • 3GB daily internet roaming Fair Usage Policy applies
  • \n
  • 30 minutes outgoing calls within the visited network
  • \n
  • 30 minutes outgoing calls to Kuwait
  • \n
  • 30 outgoing SMS to any country
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • Hotspot is not available with the KD13 Postpaid Roaming Plus Bundle.
  • \n
  • Received calls will be charged as per Zain’s standard roaming rates.
  • \n
  • Outgoing calls are only offered with the KD13 Roaming Plus Bundle.
  • \n
  • After the 30 minutes of outgoing local calls or 30 minutes of outgoing to Kuwait or 30 SMS is consumed, Zain’s standard roaming rates will apply.
  • \n
  • Roaming calls are available without the KD13 Roaming Plus Bundle but will be charged as per Zain’s standard roaming rates.
  • \n
  • Per Fair usage policy, if 3GB daily internet capacity is exceeded, it will not be stopped but speed will be reduced to 256 kb/s till end of day.
  • \n
  • If 3GB is exceeded, an SMS will be sent to enjoy full speed of 3GB on the same day. Send UT to 99990. Cost is KD2 per activation.
  • \n
  • The bundle can be activated whilst in Kuwait but KD13 will be charged upon arrival and connected to a partner network in the visited country (activation time).
  • \n
  • However, if the KD13 Roaming Plus bundle is active and data roaming on the handset is turned off data roaming will not work – will be charged.
  • \n
  • While roaming, the bundle will be automatically renewed after 7 days starting from the time of activation.
  • \n
  • Data roaming is available only with the bundles on partner network and internet will not work without a bundle.
  • \n
  • If the customer does not connect to a partner network in the visited country, data roaming will not work.  The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.
  • \n
  • Local internet bundle is not required to activate roaming services.
  • \n
  • SMS notifications will be sent to confirm the bundle of the customers each time when the roaming service is renewed, and an amount of KD 13 will be charged.
  • \n
  • The KD 13 Roaming Plus bundle is available for both consumer and corporate segments. Corporate customers should check with their account manager for availability of services while roaming.
  • \n
  • Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.
  • \n
\n

 

\n
    \n
  • KD 7 - Postpaid Internet Roaming
  • \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD7 per week auto-renewal every 7 days
  • \n
  • Activate through SMS, send “7” to 99990
  • \n
  • Bundle includes:
  • \n
  • Data Allowance: 1GB daily internet roaming (Fair Usage Policy applies)
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • Hotspot is not available with the KD7 Internet Roaming Bundle.
  • \n
  • Outgoing or Incoming voice calls or SMS are not part of the KD7 Internet Roaming Bundle but
  • \n
\n

 will be charged as per Zain’s standard roaming rates.

\n
    \n
  • Per Fair usage policy, if 1GB daily internet capacity is exceeded, it will not be stopped but speed will be reduced to 256 kb/s till end of day.
  • \n
  • If 1GB is exceeded, an SMS will be sent to enjoy full speed of 1GB on the same day. Send UT to 99990. Cost is KD2 per activation.    
  • \n
  • The bundle can be activated whilst in Kuwait but KD7 will be charged upon arrival and connected to a partner network in the visited country (activation time).
  • \n
  • However, if the KD7 Internet roaming is active and data roaming on the handset is turned off data roaming will not work – will be charged.
  • \n
  • While roaming, the bundle will be automatically renewed after 7 days starting from the time of activation.
  • \n
  • Data roaming is available only with the bundles on partner network and internet will not work without a bundle.
  • \n
  • If the customer does not connect to a partner network in the visited country, data roaming will not work.  The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.
  • \n
  • Local internet bundle is not required to activate roaming services.
  • \n
  • SMS notifications will be sent to confirm the bundle of the customers each time when the roaming service is renewed, and an amount of KD7 will be charged.
  • \n
  • The KD7 Internet Roaming bundle is available for both consumer and corporate segments. Corporate customers should check with their account manager for availability of services while roaming.
  • \n
  • Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.
  • \n
\n

 

\n
    \n
  • KD 3 - Roaming Local Calls
  • \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD 3per week
  • \n
  • Activate through SMS, send “ROAMLC” to 99990
  • \n
  • Bundle includes:
  • \n
  • 30 Minutes outgoing calls within the visited network
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • It will not be auto renewed after (7 days).
  • \n
  • The package will not include receiving calls while roaming.
  • \n
  • The package will start once you activate the bundle.
  • \n
  • The voice calls while roaming “3KWD” is an additional package, and the customer must activate one of the roaming services, KD7 or KD13 as prerequisites.
  • \n
  • Incoming Calls, Outgoing Calls to Kuwait or any other country or SMS are not part of the KD3 roaming local calls bundle and will be charged as per Zain’s standard roaming rates.
  • \n
  • The bundle can be activated whilst in Kuwait, but KD 3 will be charged upon arrival and connected to a partner network in the visited country (activation time).
  • \n
  • After the 30 minutes of outgoing local calls is consumed, Zain’s standard roaming rates will apply.
  • \n
  • After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer will need to send “ROAMLC” again.
  • \n
  • Customers can subscribe to the KD3 Roaming Local Calls Bundles even if the KD13 Roaming Plus and KD7 Internet Roaming Bundles are active.
  • \n
  • The Roaming Local Calls Bundle is available only with partner networks.
  • \n
  • Local internet bundle is not required to activate roaming services.
  • \n
  • The KD7 Internet Roaming is available for both consumer and corporate segments. Corporate customers should check with their account manager for availability of services while roaming.
  • \n
  • Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.
  • \n
\n

 

\n
    \n
  • KD 5 - Inflight Roaming Service
  • \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD5 per week
  • \n
  • Activate through SMS, send “FLYZAIN” to 99990
  • \n
  • Bundle includes:
  • \n
  • Unlimited Data
  • \n
  • Unlimited Outgoing Calls
  • \n
  • Unlimited SMS
  • \n
\n

While flying on routes where Aeromobile or OnAir offer coverage in the aircraft.

\n

 

\n

Terms & Conditions:

\n
    \n
  • Zain In-Flight is available with “On-Air” and “Aeromobile” networks.
  • \n
  • The service will be valid for 7 days, starting from connecting to the network onboard.
  • \n
  • Zain prepaid customers will require a minimum balance of KD5.1 in order to subscribe to inflight roaming. This service will be available only on those flights, which provide “OnAir” or “Aeromobile” networks on their flights. The said charges include cost KD5 as subscription charges for the service.
  • \n
  • In-Flight Fair Usage Policy: 500 minutes outgoing calls to any destination, 500 SMS, 100GB data roaming.
  • \n
  • Incoming Calls, are not part of the KD5 Inflight Roaming bundle and will be charged as per Zain’s standard roaming rates.
  • \n
  • The bundle can be activated only in the aircraft and will be charged upon activation.
  • \n
  • After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer needs to send “FLYZAIN” again.
  • \n
  • The KD5 Inflight Roaming Bundle is a standalone bundle valid for 7 days and any unutilized minutes or SMS or GBs cannot be carried forward or combined with any other bundle.
  • \n
  • Customers can subscribe to the KD5 Inflight Roaming bundle even if the KD13 Roaming Plus and KD7 Internet Roaming Bundles.
  • \n
  • The KD5 Inflight Roaming bundle is available on Aeromobile and OnAir networks (inside the aircraft) only.
  • \n
  • Local internet bundle is not required to activate this bundle.
  • \n
\n

 

\n

ADD-ON SERVICES

\n
    \n
  • KD 2 - Extra GBs at full speed (Unthrottling)
  • \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD2 per activation
  • \n
  • Activate through SMS, send “UT” 99990
  • \n
  • Bundle includes:
  • \n
  • 1 extra GB per activation for KD7 Internet Roaming Bundle
  • \n
  • 3 extra GBs per activation for KD13 Roaming Plus Bundle
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • Each activation costs KD2 and until 12am Kuwait time on the same day.
  • \n
  • The full speed allowance of the main package will reset at 12am Kuwait time.
  • \n
  • Any unused allowance cannot be carried forward.
  • \n
  • The customer can activate the extra GBs more than once a day.
  • \n
  • Not available for corporate customers.
  • \n
\n

 

\n

 PREPAID ROAMING

\n

 

\n

 PREPAID PLANS

\n
    \n
  • KD13 - Prepaid Roaming Plus
  • \n
\n

Package details:

\n
    \n
  • Price: KD13 per week auto-renewal every 7 days provided the customer has sufficient credit
  • \n
  • Activate through SMS, send “13” to 99990
  • \n
  • Bundle includes:
  • \n
  • 3GB daily internet roaming (Fair Usage Policy applies)
  • \n
  • 30 Minutes outgoing calls within the visited network
  • \n
  • 30 Minutes outgoing calls to Kuwait
  • \n
  • 30 outgoing SMS to any country.
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • Hotspot is not available with the KD 13 Prepaid Roaming Plus Bundle.
  • \n
  • Receiving call will be charged as per Zain’s standard roaming rates.
  • \n
  • Outgoing calls are only offered with the KD 13 Roaming Plus Bundle.
  • \n
  • Roaming calls is available without the KD 13 Roaming Plus Bundle but will be charged as per Zain’s standard roaming rates.
  • \n
  • Per Fair usage policy, if 3GB daily internet capacity is exceeded, it will not be stopped but speed will be reduced to 256 kb/s till end of day.
  • \n
  • SMS will be sent to enjoy full speed of 3 GB on the same day. Send UT to 99990. Cost is KD2 per activation.
  • \n
  • The bundle can be activated whilst in Kuwait but KD13 will be charged upon arrival and connected to a partner network in the visited country (activation time).
  • \n
  • However, if the KD 13 Roaming Plus bundle is active and Data Roaming on the handset is Turned Off data roaming will not work – will be charged.
  • \n
  • While roaming, the bundle will be automatically renewed after 7 days starting from the time of activation.
  • \n
  • Data roaming is available only with the bundles on partner network and internet will not work without a bundle.
  • \n
  • If the customer does not connect to a partner network in the visited country, data roaming will not work.  The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.
  • \n
  • Local internet bundle is not required to activate roaming services.
  • \n
  • SMS notifications will be sent to confirm the of bundle the customers each time when the roaming service is renewed, and an amount of KD13 will be charged.
  • \n
  • Roaming bundles can be deactivated by sending “Data Off” to 99990 while roaming or while in Kuwait.
  • \n
\n

 

\n

ADD-ON SERVICES for KD 13 Bundle

\n

 

\n
    \n
  1. KD 2 - Extra GBs bundle (Unthrottling) for KD13 Bundle
  2. \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD 2 per activation
  • \n
  • Activate through SMS, send “UT” 99990
  • \n
  • Bundle includes:
  • \n
  • 3 extra GBs per activation for KD13 Roaming Plus Bundle
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • After the main package allowance or daily threshold is consumed, an SMS will be sent to notify the customer.
  • \n
  • Each activation costs KD2 and valid until 12am Kuwait time same day.
  • \n
  • The full speed allowance of the main package will reset at 12am Kuwait time.
  • \n
  • Any unused allowance cannot be carried forward.
  • \n
  • The customer can activate the extra GBs more than once a day.
  • \n
\n

 

\n
    \n
  • KD 9 - Prepaid Roaming Bundle
  • \n
\n

Package details:

\n
    \n
  • Price: KD9 per week  (non- renewal)
  • \n
  • Activate through SMS, send “9” to 99990
  • \n
  • Bundle includes:
  • \n
  • 5GB Data Allowance per week
  • \n
  • 25 Minutes outgoing calls within the visited network
  • \n
  • 25 outgoing SMS to any country.
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • Hotspot is not available with the KD 9 Prepaid Roaming Bundle.
  • \n
  • Receiving call will be charged as per Zain’s standard roaming rates.
  • \n
  • Customers can use the Add-On service in the following :
  • \n
\n
    \n
  1. If the 5GB Data is consumed before one week, Internet will be stopped and the customer can use the 1GB Add-on service. SMS will be sent to enjoy full speed of 1 GB.   Send 1G to 99990.  Cost is KD2 per 1 GB valid until the expiry of the roaming plan
  2. \n
  3. After the 25 min of Outgoing calls is consumed, Zain’s standard roaming rates will apply or customer can subscribe to the Voice Add-On of 25Min by sending 25 to 99990 (valid until the expiry of the roaming plan).
  4. \n
  5. After the 25 SMS is consumed, Zain’s standard roaming rates will apply.

  6. \n
\n
    \n
  • The customer can reactivate KD9 bundle more than once but the service must be cancelled and reactivated each time. Send ‘9’ to 99990 to activate and send “Data Off” to 99990 to deactivate
  • \n
  • Voice calls are available without the KD9 Prepaid Roaming Bundle but will be charged as per Zain’s standard roaming rates.
  • \n
  • The bundle can be activated whilst in Kuwait but KD9 will be charged once you subscribe then connected to a partner network in the visited country (activation time).
  • \n
  • However, if the KD9 Prepaid Roaming Bundle is active and data roaming on the handset is turned off data roaming won’t be active – will be charged.
  • \n
  • Data roaming is available only with the bundles on partner network and internet will not work without a bundle.
  • \n
  • If the customer does not connect to a partner network in the visited country, data roaming will not work.  The customer must connect to a partner network to enjoy the benefits of Zain roaming bundles.
  • \n
  • Local internet bundle is not required to activate roaming services.
  • \n
\n

 

\n

ADD-ON SERVICES for KD 9

\n
    \n
  1. KD 2 - Extra GBs bundle (Unthrottling) for KD 9 Bundle
  2. \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD2 per activation
  • \n
  • Activate through SMS, send “UT” 99990
  • \n
  • Bundle includes:
  • \n
  • 1 extra GB per activation for KD 9 Internet Roaming Bundle
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • After the main package allowance is consumed, an SMS will be sent to notify the customer.
  • \n
  • Each activation costs KD2 and is valid until the 1GB is consumed or until the expiry of the main bundle.
  • \n
  • The customer can activate extra GBs bundle more than once until the expiry of the main bundle.
  • \n
\n

 

\n
    \n
  1. KD 2 - Extra 25 min Local Roaming Calls for KD 9 Bundle
  2. \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD2 per activation
  • \n
  • Activate through SMS, send “25” 99990
  • \n
  • Bundle includes:
  • \n
  • 25 minutes of local calls in the visited country
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • After the main package allowance is consumed, an SMS will be sent to notify the customer.
  • \n
  • Each activation costs KD 2 valid until the 25 extra minutes is consumed or until the expiry of the main bundle.
  • \n
  • The customer can activate extra minutes more than once until the expiry of the main bundle.
  • \n
\n

 

\n
    \n
  • KD 5 - Prepaid Roaming Local Calls
  • \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD5 per week
  • \n
  • Activate through SMS, send “5” to 99990
  • \n
  • Bundle includes:
  • \n
  • 30 Minutes outgoing calls within the visited network
  • \n
  • 30 Minutes outgoing calls to Kuwait
  • \n
  • 30 outgoing SMS to any country.
  • \n
\n

 

\n

Terms & Conditions:

\n
    \n
  • Incoming Calls, Outgoing Calls to any other country (except Kuwait and the visited country) are not part of the KD5 Prepaid Roaming Local Calls bundle and will be charged as per Zain’s standard roaming rates.
  • \n
  • The bundle can be activated whilst in Kuwait but KD5 will be charged upon arrival and connected to a partner network in the visited country (activation time).
  • \n
  • After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer needs to send “ROAMLC” again.
  • \n
  • Customers can subscribe to the KD5 Prepaid Roaming Local Calls bundle even if they have the KD13 Roaming Plus and KD7 Internet Roaming Bundles.
  • \n
  • The KD5 Prepaid Roaming Local Calls bundle is available with partner networks only.
  • \n
  • Local internet bundle is not required to activate roaming services.
  • \n
\n

 

\n

 

\n
    \n
  • KD 5 - Inflight Roaming Service
  • \n
\n

 

\n

Package details:

\n
    \n
  • Price: KD5 per week
  • \n
  • Activate through SMS, send “FLYZAIN” to 99990
  • \n
  • Bundle includes:
  • \n
  • Unlimited Data
  • \n
  • Unlimited Outgoing Calls
  • \n
  • Unlimited SMS
  • \n
\n

While flying on routes where Aeromobile or OnAir offer coverage in the aircraft.

\n

  

\n

Terms & Conditions:

\n
    \n
  • Zain In-Flight is available with “On-Air” and “Aeromobile” networks.
  • \n
  • The service will be valid for 7 days, starting from connecting to the network onboard.
  • \n
  • Zain Prepaid Customers will require a minimum balance of KD5.1 in order to subscribe to inflight roaming on board flights. This service will be available only on those flights, which provide “OnAir” or “Aeromobile” networks on their flights. The said charges include cost KD5 as subscription charges for the service.
  • \n
  • In-Flight Fair Usage Policy: 500 minutes outgoing calls to any destination, 500 SMS, 100GB data roaming.
  • \n
  • Incoming Calls, are not part of the KD5 Inflight Roaming bundle and will be charged as per Zain’s standard roaming rates.
  • \n
  • The bundle will be activated only in the aircraft and will be charged upon activation
  • \n
  • After consuming the 30 minutes or after 7 days, the bundle will not be automatically renewed, and the customer needs to send “FLYZAIN” again.
  • \n
  • The KD5 Inflight Roaming Bundle is a standalone bundle valid for 7 days and any unutilized minutes or SMS or GBs cannot be carried forward or combined with any other bundle.
  • \n
  • Customers can subscribe to the KD5 Inflight Roaming bundle even if they have the KD13 Roaming Plus and KD7 Internet Roaming Bundles.
  • \n
  • The KD5 Inflight Roaming bundle is available on Aeromobile and OnAir networks (inside the aircraft) only.
  • \n
  • Local internet bundle is not required to activate this bundle.
  • \n
',ar:'

وسع آفاقك واستمتع بباقات تجوال زين

\n

1) 13 د. ك - باقة التجوال بلس للدفع الآجل

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 13 د.ك أسبوعيًا ويتم التجديد تلقائيًا كل 7 أيام
  • \n
  • للتفعيل، إرسال رسالة نصية "13" إلى 99990
  • \n
  • عرض الباقة:
  • \n
  • GB3 انترنت يوميًا (تطبيق سياسة الاستخدام العادل)
  • \n
  • 30 دقيقة مكالمات صادرة داخل شبكة الدولة التي تمت زيارتها
  • \n
  • 30 دقيقة مكالمات صادرة إلى الكويت
  • \n
  • 30 رسالة نصية صادرة لأي دولة
  • \n
\n

الشروط والأحكام:

\n

- خدمة مشاركة الانترنت”Hotspot” غير متوفرة مع خدمة تجوال بلس لخطوط الدفع الآجل - 13 د.ك.

\n

- يتم احتساب المكالمات الواردة وفقًا لتسعيرة التجوال للدول المحددة.

\n

- المكالمات الصادرة متاحة فقط مع باقة التجوال بلس 13 د.ك.

\n

- بعد 30 دقيقة من المكالمات المحلية الصادرة أثناء التجوال أو 30 دقيقة من المكالمات الصادرة إلى الكويت أو 30 رسالة قصيرة، سيتم تطبيق أسعار التجوال وفقًا لتسعيرة التجوال للدول المحددة.

\n

- تتوفر مكالمات التجوال بدون باقة تجوال بلس 13 د.ك وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة.

\n

- تطبق سياسة الاستخدام العادل بعد GB3  انترنت يوميًا (كحد أقصى يوميًا، ولن تتوقف الخدمة إنما ستنخفض سرعتها إلى KB256 حتى نهاية اليوم.

\n

- يمكن للعميل الاستمتاع بالسرعة الكاملة GB3  انترنت في نفس اليوم، من خلال إرسال رسالة نصية UT إلى 99990. وتبلغ التكلفة 2 د. ك. لكل تفعيل.

\n

- يمكن تفعيل الباقة أثناء تواجدك في الكويت وسيتم احتساب مبلغ 13 د.ك عند الوصول والاتصال بالشبكة الشريكة في البلد التي سيتم زيارتها.

\n

- إذا كانت باقة تجوال بلس 13 د.ك فعالة وتم إيقاف تشغيل إنترنت التجوال في الهاتف، فلن تعمل الخدمة – وسيتم احتساب قيمتها.

\n

- تتجدد الباقة تلقائيًا بعد 7 أيام من بداية الاستخدام أثناء التجوال.

\n

- تتوفر خدمة تجوال الإنترنت مع الباقات لدى الشبكات الشريكة فقط ولن تعمل الخدمة دون باقة.

\n

- يستطيع العميل الإستمتاع بمزايا باقات التجوال فقط عند اتصاله بالشبكات الشريكة مع زين. (أدرج رابط الشركات غير الشريكة)

\n

- باقة الإنترنت المحلية غير مطلوبة لتفعيل خدمات التجوال.

\n

- سيتم إرسال رسالة نصية لتأكيد الباقة إلى العملاء في كل مرة يتم فيها تجديد الباقة، وسيتم احتساب مبلغ 13 د.ك. عند كل تجديد.

\n

- باقة تجوال بلس لخطوط الدفع الآجل 13 د.ك متاحة للأفراد والشركات، ويجب على عملاء الشركات مراجعة مدير حسابهم لتزويدهم بالخدمة أثناء التجوال.

\n

- يمكن إلغاء تفعيل باقات التجوال بإرسال "Data Off" إلى 99909 أثناء التجوال أو عند التواجد في دولة الكويت.

\n

 

\n

2) 7 د. ك - باقة تجوال الإنترنت للدفع الآجل.  

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 7 د.ك أسبوعيًا ويتم التجديد تلقائيًا كل 7 أيام
  • \n
  • للتفعيل، إرسال رسالة نصية "7" إلى 99990
  • \n
  • عرض الباقة:
  • \n
\n

- باقة الإنترنت: GB1  انترنت يوميًا (تطبق سياسة الاستخدام العادل)

\n

الشروط والأحكام:

\n

- خدمة مشاركة الانترنت”Hotspot” غير متوفرة مع باقة التجوال 7 د.ك.

\n

- المكالمات الصادرة والواردة والرسائل النصية ليست جزءً من باقة التجوال لخطوط الدفع المسبق - 7 د.ك وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة.

\n

- تطبق سياسة الاستخدام العادل بعد GB1  انترنت بحد أقصى يوميًا، ولن يتوقف الانترنت وإنما ستنخفض سرعته إلى KB256 حتى نهاية اليوم.

\n

- يمكن للعميل الاستمتاع  بالسرعة الكاملة لسعة 1GB  انترنت  في نفس اليوم، من خلال إرسال رسالة نصية UT إلى 99990. وتبلغ التكلفة 2 د. ك. لكل تفعيل

\n

- يمكن تفعيل الباقة اثناء تواجدك في الكويت وسيتم احتساب مبلغ 7 د.ك عند الوصول والاتصال بالشبكة الشريكة في البلد التي سيتم زيارتها.

\n

- إذا كانت باقة تجوال الإنترنت 7 د.ك فعالة وتم إيقاف تشغيل إنترنت التجوال في الهاتف، فلن تعمل الخدمة – وسيتم احتساب قيمتها.

\n

- تتجدد الباقة تلقائيًا بعد 7 أيام من بداية الاستخدام أثناء التجوال.

\n

- تتوفر خدمة تجوال الإنترنت مع الباقات لدى الشبكات الشريكة فقط ولن تعمل الخدمة بدون باقة.

\n

- يستطيع العميل الإستمتاع بمزايا باقات التجوال فقط عند اتصاله بالشبكات الشريكة مع زين. (أدرج رابط الشركات غير الشريكة)

\n

- لا يتطلب وجود باقة إنترنت محلية لتفعيل خدمات التجوال.

\n

- سيتم إرسال رسالة نصية لتأكيد الباقة إلى العملاء في كل مرة يتم فيها تجديد الباقة، وسيتم احتساب مبلغ 7 د.ك. عند كل تجديد.

\n

- باقة تجوال الإنترنت للدفع الآجل 7 د.ك متاحة للأفراد والشركات، ويجب على عملاء الشركات مراجعة مدير حسابهم لتزويدهم بالخدمة أثناء التجوال.

\n

 

\n

- يمكن إلغاء تفعيل باقات التجوال بإرسال "Data Off" إلى 99990 أثناء التجوال أو عند التواجد في دولة الكويت.

\n

 

\n

3) 3 د.ك – خدمة مكالمات محلية تجوال

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 3 د.ك أسبوعيًا
  • \n
  • للتفعيل، إرسال رسالة نصية "ROAMLC" إلى 99990
  • \n
  • عرض الباقة:
  • \n
\n

           - 30 دقيقة مكالمات صادرة داخل شبكة الدولة التي سيتم زيارتها

\n

الشروط والأحكام:

\n
    \n
  • لا تُجدد هذه الباقة تلقائيًا بعد (7 أيام).
  • \n
  • لن تشمل الباقة استقبال المكالمات أثناء التجوال.
  • \n
  • ستبدأ الخدمة فور قيامك بالتفعيل.
  • \n
  • المكالمات الصوتية أثناء التجوال "3 د.ك “هي خدمة إضافية، ويجب على العميل تفعيل إحدى باقات التجوال، 7 د.ك أو 13 د.ك كشروط مسبقة.
  • \n
  • المكالمات الواردة والمكالمات الصادرة إلى الكويت أو لأي دولة أخرى أو الرسائل النصية القصيرة ليست جزءًا من خدمة مكالمات التجوال المحلية 3 د.ك وسيتم احتسابها وفقا لتسعيرة التجوال للدول المحددة.
  • \n
  • يمكن تفعيل الخدمة اثناء تواجدك في الكويت ولكن سيتم احتسابها مقابل بمبلغ 3 د.ك عند الوصول واتصالها بالشبكة الشريكة في البلد الذي تمت زيارته (وقت التفعيل).
  • \n
  • بعد استهلاك 30 دقيقة من المكالمات المحلية الصادرة، سيتم تطبيق تسعيرة التجوال للدول المحددة لشركة زين.
  • \n
  • بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الخدمة تلقائيًا ويحتاج العميل إلى إرسال "ROAMLC" لتفعيلها مرة أخرى.
  • \n
  • يمكن للعملاء الاشتراك في خدمة المكالمات المحلية للتجوال مقابل 3 د.ك حتى لو كان لديهم باقات تجوال بلس بقيمة 13 د.ك، أو تجوال إنترنت بقيمة 7 د.ك.
  • \n
  • باقات المكالمات المحلية للتجوال متوفرة مع الشبكات المشاركة مع زين فقط.
  • \n
  • لا يتُطلب وجود باقة إنترنت محلية لتفعيل خدمات التجوال.
  • \n
  • باقة تجوال الإنترنت بقيمة 7 د.ك متاحة للأفراد والشركات. ويجب على عملاء الشركات التواصل مع مدير حساباتهم لتزويدهم بالخدمات أثناء التجوال.
  • \n
  • يمكن إلغاء تفعيل الخدمة بإرسال "Data Off" إلى 99990 أثناء التجوال أو أثناء التواجد في الكويت.
  • \n
\n

 

\n

4) خدمة التجوال داخل الطائرة – 5 د.ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 5 د.ك اسبوعيًا
  • \n
  • للتفعيل، إرسال رسالة نصية "FLYZAIN " إلى 99990
  • \n
  • عرض الباقة:
  • \n
\n

- خدمة بيانات غير محدودة

\n

- مكالمات صادرة غير محدودة

\n

- رسائل نصية غير محدودة

\n

اثناء تحليق الطائرة في مساراتها، تقدم شبكات On-Air  و Aeromobile تغطية داخل الطائرة.

\n

 

\n

الشروط والأحكام:

\n
    \n
  • خدمة التجوال داخل الطائرة من زين متاحة عبر شبكات On-Air و Aeromobile.
  • \n
  • الخدمة صالحة لمدة 7 أيام، بدءًا من الاتصال بالشبكة داخل الطائرة.
  • \n
  • يتطلب من عملاء خطوط الدفع المسبق زين وجود رصيد لا يقل عن 5.1 د. ك للاشتراك في خدمة التجوال داخل الطائرة. وتتوفر هذه الخدمة فقط في الرحلات الجوية التي يتوافر بطائراتها شبكات On-Air و Aeromobile ". وتشمل الرسوم 5 د. ك كرسوم اشتراك للخدمة.
  • \n
  • سياسة الاستخدام العادل لخدمة "التجوال داخل الطائرة": 500 دقيقة مكالمات صادرة إلى أي وجهة و 500 رسالة قصيرة و 100 جيجابايت خدمة تجوال البيانات.
  • \n
  • المكالمات الواردة ليست جزءًا من خدمة التجوال داخل الطائرة 5 د. ك وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة لشركة زين
  • \n
  • يمكن تفعيل الخدمة داخل الطائرة فقط ويتم احتسابها عند التفعيل.
  • \n
  • بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الخدمة تلقائيًا ويحتاج العميل إلى إرسال "FLYZAIN" مرة أخرى.
  • \n
  • خدمة التجوال داخل الطائرة 5 د. ك هي خدمة مستقلة صالحة لمدة 7 أيام وأي دقائق غير مستخدمة أو رسائل نصية أو سعة انترنت لن يتم ترحيلها أو دمجها مع أي باقة أخرى.
  • \n
  • يمكن للعملاء الاشتراك في خدمة التجوال داخل الطائرة 5 د. ك حتى لو كانوا مشتركين بخدمة تجوال بلس 13 د. ك وخدمة تجوال 7 د. ك.
  • \n
  • باقة الخدمة داخل الطائرة 5 د. ك متاحة عبر شبكات On-Air و Aeromobile (داخل الطائرة) فقط.
  • \n
  • لا يُتطلب الإشتراك في خدمة الانترنت المحلية لتفعيل هذه الباقة.
  • \n
\n

 

\n

الخدمات الإضافية

\n

 GB1 سعة انترنت إضافية بالسرعة الكاملة (غير مقيدة السعة) - 2 د. ك

\n

تفاصيل الخدمة:

\n
    \n
  • السعر: 2 د. ك لكل تفعيل
  • \n
  • للتفعيل، إرسال رسالة نصية "UT” إلى 99990
  • \n
  • عرض الخدمة:
  • \n
\n

- GB1 سعة انترنت إضافية لكل عملية تفعيل لباقة تجوال الانترنت 7 د. ك

\n

            GB3 سعة انترنت إضافية لكل عملية تفعيل لباقة تجوال بلس 13 د. ك.

\n

الشروط والأحكام:

\n
    \n
  • تبلغ تكلفة التفعيل 2 د. ك حتى الساعة 12 صباحًا بتوقيت الكويت في نفس اليوم.
  • \n
  • سيتم إعادة ضبط رصيد السرعة الكاملة للباقة الرئيسية في الساعة 12 صباحًا بتوقيت الكويت.
  • \n
  • لن يتم ترحيل أي رصيد غير مستخدم.
  • \n
  • يمكن للعميل تفعيل سعة انترنت إضافية أكثر من مرة في اليوم.
  • \n
  • الباقة غير متاحة لعملاء الشركات.
  • \n
\n

 

\n

خدمات التجوال لخطوط الدفع المسبق

\n

 

\n

خطط الدفع المسبق

\n

1) باقات التجوال لخطوط الدفع المسبق – 13 د. ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 13 د.ك أسبوعيًا ويتم التجديد تلقائيًا كل 7 أيام
  • \n
  • يتم التفعيل بإرسال رسالة "13" إلى 99990.
  • \n
  • عرض الباقة:
  • \n
  • GB3 انترنت يوميًا (تطبيق سياسة الاستخدام العادل)
  • \n
  • 30 دقيقة من المكالمات الصادرة داخل شبكة الدولة التي تمت زيارتها
  • \n
  • 30 دقيقة من المكالمات الصادرة إلى الكويت
  • \n
  • 30 رسالة نصية صادرة لأي دولة.
  • \n
\n

الشروط والاحكام:

\n

-  خدمة مشاركة الانترنت”Hotspot” غير متوفرة مع خدمة تجوال بلس لخطوط الدفع المسبق 13 د.ك.

\n

- سيتم فرض رسوم استقبال المكالمات وفقًا لتسعيرة التجوال للدول المحددة لشركة زين .

\n

- تتوفر مكالمات التجوال الصادرة فقط مع خدمة تجوال بلس 13 د.ك.

\n

- تتوفر مكالمات التجوال بدون خدمة تجوال بلس 13 د.ك ولكن ستحتسب وفقا لتسعيرة التجوال للدول المحددة لشركة زين.

\n

- تطبق سياسة الاستخدام العادل بعد GB3 انترنت بحد أقصى، ولن يتوقف الانترنت ولكن ستنخفض سرعته إلى KB256 حتى نهاية اليوم.

\n

- يتطلب ارسال رسائل نصية للإستمتاع بسرعة كاملة GB3 انترنت في نفس اليوم. أرسل UT إلى 99990 وتبلغ تكلفة التفعيل 2 د. ك.  

\n

- يمكن تفعيل الخدمة اثناء تواجدك في الكويت ولكن سيحتسب مبلغ 13 د.ك عند الوصول والاتصال بالشبكة المشاركة مع زين في الدولة التي تمت زيارتها (وقت التفعيل).

\n

- ومع ذلك، إذا كانت خدمة تجوال بلس 13 د.ك فعالة وتم إيقاف تشغيل تجوال البيانات في الهاتف فلن تعمل خدمة التجوال – وسيتم احتسابها.

\n

- أثناء التجوال، سيتم تجديد الخدمة تلقائيًا بعد 7 أيام بداية من وقت التفعيل

\n

- تتوفر خدمة تجوال الانترنت فقط مع الباقات على الشبكات المشاركة مع زين ولن يعمل الانترنت بدون وجود الخدمة.

\n

- إذا لم يتصل العميل بالشباكات المشاركة مع زين في الدولة التي تمت زيارتها، فلن يعمل تجوال الانترنت، ويجب على العميل الاتصال بالشبكة الشريكة للإستمتاع بمزايا خدمات تجوال شركة زين. (أدرج رابط الشركات الغير مشاركة مع زين)

\n

- لا يتطلب وجود خدمة انترنت محلية لتفعيل خدمات التجوال.

\n

- سيتم إرسال رسالة نصية لتأكيد الباقة إلى العملاء في كل مرة يتم فيها تجديد خدمة التجوال، وسيحتسب مبلغ 13 د. ك.

\n

- يمكن إلغاء تفعيل خدمة التجوال بإرسال "Data Off" إلى 99990 أثناء التجوال أو أثناء التواجد في دولة الكويت.

\n

 

\n

باقة خدمات إضافية 13 د.ك

\n

أ) 2 د.ك – خدمة سعة انترنت إضافية (غير مقيدة السعة) مقابل 13 د.ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 2 د.ك لكل تفعيل
  • \n
  • يتم التفعيل بإرسال رسالة نصية “UT” إلى 99990
  • \n
  • عرض الباقة:
  • \n
\n

           - GB3 سعة انترنت إضافية مقابل 13 د.ك باقة تجوال بلس

\n

الشروط والاحكام:

\n
    \n
  • بعد استهلاك الرصيد الرئيسي للباقة أو الحد اليومي، يتم إرسال رسالة نصية.
  • \n
  • تبلغ تكلفة التفعيل 2 د. ك حتى الساعة 12 صباحًا بتوقيت الكويت في نفس اليوم.
  • \n
  • يتم إعادة ضبط السرعة الكاملة لرصيد الباقة الرئيسية في الساعة 12 صباحً بتوقيت الكويت
  • \n
  • لا يمكن ترحيل أي رصيد غير مستخدم.
  • \n
  • يمكن للعميل تفعيل سعة انترنت إضافية أكثر من مرة في اليوم.
  • \n
\n

 

\n

2) باقة التجوال لخطوط الدفع المسبق - 9 د.ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 9 د.ك أسبوعيًا (لا تتجدد)
  • \n
  • يتم التفعيل بإرسال رسالة نصية “9" إلى 99990
  • \n
  • عرض الباقة:
  • \n
\n

-  GB5  انترنت لكل أسبوع

\n

- 25 دقيقة مكالمات جارية داخل شبكة اتصال الدولة التي تمت زيارتها

\n

- 25 دقيقة رسائل نصية جارية إلى أي بلد.

\n

 

\n

الشروط والاحكام:

\n
    \n
  • خدمة مشاركة الانترنت”Hotspot” غير في خدمة التجوال لخطوط الدفع المسبق.
  • \n
  • سيتم فرض رسوم استقبال المكالمات وفقًا لتسعيرة التجوال للدول المحددة لشركة زين.
  • \n
  • يمكن للعملاء استخدام الخدمة الإضافية على النحو التالي:
  • \n
\n

أ) عند استهلاك سعة الانترنت GB5 قبل أسبوع واحد، ستتوقف خدمة الانترنت ويمكن للعميل استخدام خدمة GB1 الإضافية. سيتم إرسال رسالة نصية للإستمتاع بالسرعة الكاملة لخدمة GB1. من خلال إرسال رسالة نصية"  1G" إلى 99990 . تبلغ التكلفة 2 د.ك لكل GB1  انترنت وتظل سارية حتى انتهاء مدة باقة التجوال.

\n

ب) بعد استهلاك 25 دقيقة للمكالمات الجارية، ستطبق تسعيرة التجوال للدول المحددة لشركة زين أو يمكن للعميل الإشتراك في الخدمة الصوتية الإضافية 25 دقيقة بإرسال 25 إلى 99990 (وتظل سارية حتى انتهاء مدة خطة التجوال)

\n

أ) بعد استهلاك 25 رسالة نصية، ستطبق تسعيرة التجوال للدول المحددة لشركة زين    

\n
    \n
  • يمكن للعميل تفعيل الخدمة 9 د.ك أكثر من مرة ولكن يجب إلغاء الخدمة وإعادة تفعيلها كل مرة من خلال إرسال "9" إلى 99990 للتفعيل وأرسال " Data off" إلى 99990 لإلغاء التفعيل.
  • \n
  • المكالمات الصوتية متاحة بدون خدمة التجوال للخطوط الدفع المسبق 9 د.ك ولكن سوف تحتسب وفقًا لتسعيرة التجوال للدول المحددة لشركة زين    
  • \n
  • يمكن تفعيل الخدمة اثناء تواجدك في الكويت ولكن سيتم احتسابها بمبلغ 9 د.ك بمجرد اشتراكك بالخدمة وسيتم توصيلك بالشبكات المشاركة في الدولة التي تمت زيارتها (وقت التفعيل).
  • \n
  • ورغم ذلك، إذا تم تفعيل خدمة التجوال المدفوعة مسبقًا بقيمة 9 د.ك وكانت بيانات التجوال في الهاتف في حالة إغلاق تشغيل، حينئذ لن تعمل بيانات التجوال. – وسيتم احتسابها.
  • \n
  • بيانات التجوال متاحة فقط مع الخدمات لدى الشبكة الشريكة ولن يعمل الانترنت بدون الخدمة.
  • \n
  • إذا لم يتصل العميل بالشبكة المشاركة في الدولة التي تمت زيارتها، فلن تعمل بيانات التجوال. ويجب على العميل الاتصال بشبكة شريكة للإستمتاع بمزايا بخدمات تجوال زين. (رابط للشبكات الغير مشاركة مع زين).
  • \n
  • لا يُتطلب وجود خدمة انترنت محلية لتفعيل خدمات التجوال.
  • \n
\n

 

\n

باقة الخدمات الإضافية 9 د.ك

\n

ب) – 2 د.ك – باقة جيجا بايت إضافية (غير مقيدة السعة) مقابل خدمة بمبلغ 9 د.ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 2 د.ك لكل تفعيل
  • \n
  • يتم تفعيل الباقة بإرسال رسالة نصية“UT” إلى 99990
  • \n
  • عرض الباقة:
  • \n
\n

           - 1GB  سعة انترنت إضافية لكل تفعيل خدمة تجوال انترنت بسعر 9 د.ك

\n

الشروط والاحكام:

\n
    \n
  • بعد استهلاك رصيد الباقة الرئيسية، سيتم إرسال رسالة نصية.
  • \n
  • يتم إعادة ضبط السرعة الكاملة لرصيد الباقة الرئيسية في الساعة 12 صباحًا بتوقيت الكويت
  • \n
  • يمكن للعميل تفعيل سعة انترنت إضافية أكثر من مرة حتى انتهاء مدة الباقة الرئيسية.
  • \n
\n

ج) – 2 د.ك – باقة 25 دقيقة إضافية مكالمات تجوال محلية مقابل خدمة 9 د.ك

\n

تفاصيل الخدمة:

\n
    \n
  • السعر: 2 د.ك لكل تفعيل
  • \n
  • يتم تفعيل الباقة برسالة نصية "25" إلى 99990
  • \n
  • عرض الخدمة:
  • \n
\n

           - 25 دقيقة محلية في البلد التي تمت زيارتها.

\n

الشروط والاحكام:

\n
    \n
  • بعد استهلاك رصيد الباقة الرئيسية، سيتم إرسال رسالة نصية.
  • \n
  • تكلفة كل تفعيل 2 د.ك ويظل ساريًا حتى استهلاك 1GB سعة انترنت أو حتى انتهاء مدة الباقة الرئيسية
  • \n
  • يمكن للعميل سعة الانترنت الإضافية أكثر من مرة حتى انتهاء مدة الباقة الرئيسية.
  • \n
\n

ج) – 2 د.ك – باقة 25 دقيقة إضافية مكالمات تجوال محلية بقيمة 9 د.ك

\n

تفاصيل الخدمة:

\n
    \n
  • السعر: 2 د.ك لكل تفعيل
  • \n
  • يتم تفعيل الباقة برسالة نصية "25" إلى 99990
  • \n
  • عرض الخدمة:
  • \n
\n

           - 25 دقيقة في البلد التي تمت زيارتها.

\n

الشروط والاحكام:

\n
    \n
  • بعد استهلاك رصيد الباقة الرئيسية، سيتم إرسال رسالة نصية .
  • \n
  • تكلفة كل تفعيل 2 د.ك ويظل ساريًا حتى استهلاك الـ 25 دقيقة الإضافية أو حتى انتهاء مدة الباقة الرئيسية
  • \n
  • يمكن للعميل تفعيل الدقائق الإضافية أكثر من مرة حتى انتهاء مدة الباقة الرئيسية.
  • \n
\n

 

\n

5) مكالمات تجوال محلية لخطوط الدفع المسبق - 5 د.ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 5 د.ك اسبوعيًا
  • \n
  • التفعيل من خلال رسالة نصية "5" إلى 99990.
  • \n
  • عرض الباقة:
  • \n
\n

           - 30 دقيقة مكالمات صادرة داخل شبكة البلد التي تمت زيارتها.

\n

           -30 دقيقة مكالمات صادرة إلى الكويت

\n

            - 30 دقيقة مكالمات صادرة إلى أي بلد

\n

 

\n

الشروط والاحكام:

\n
    \n
  • المكالمات الواردة والمكالمات الصادرة إلى أي بلد آخر (باستثناء الكويت والبلد التي تمت زيارتها) ليست جزءًا من باقة مكالمات التجوال المحلية 3 د.ك وسيتم احتسابها وفقا لتسعيرة التجوال للدول المحددة لشركة زين.
  • \n
  • يمكن تفعيل الخدمة أثناء تواجدك في الكويت ولكن سيحتسب مبلغ 5 د.ك عند الوصول والاتصال بالشبكات المشاركة مع زين التي تمت زيارتها (وقت التفعيل).
  • \n
  • بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن تُجدد الخدمة تلقائيًا ويحتاج العميل إلى ارسال "ROAMLC" مرة أخرى.
  • \n
  • يمكن للعملاء الأشتراك في خدمة تجوال المكالمات المحلية لخطوط الدفع المسبق، سيتم تطبيق أسعار التجوال وفقًا لتسعيرة التجوال للدول المحددة لشركة زين.
  • \n
  • بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الباقة تلقائيًا ويحتاج العميل إلى إرسال "ROAMLC" مرة أخرى.
  • \n
  • يمكن للعملاء الأشتراك في خدمة مكالمات التجوال المحلية لخطوط الدفع المسبق 5 د.ك حتى إن كان مشترك في خدمات تجوال بلس 13 د.ك، أو خدمة تجوال انترنت 7 د.ك.
  • \n
  • خدمة مكالمات التجوال المحلية لخطوط الدفع المسبق 5 د.ك متوفرة مع الشبكات المشاركة مع زين فقط.
  • \n
  • خدمة الانترنت المحلية غير مطلوبة لتفعيل خدمات التجوال.
  • \n
\n

 

\n

6) خدمة لتجوال داخل الطائرة - 5 د.ك

\n

تفاصيل الباقة:

\n
    \n
  • السعر: 5 د.ك أسبوعيًا
  • \n
  • التفعيل بإرسال رسالة نصية "FLYZAIN" إلى 99990.
  • \n
  • عرض الباقة:
  • \n
\n

-  خدمة سعة الانترنت غير محدودة

\n

- مكالمات صادرة غير محدودة

\n

- رسائل نصية غير محدودة

\n

أثناء تحليق الطائرة، تقدم شبكات AeroMobile أو ONAIR تغطية داخل الطائرة.

\n

الشروط والاحكام:

\n
    \n
  • خدمة زين للتجوال داخل الطائرة (In-Flight) متاحة على شبكات AeroMobile أو ONAIR
  • \n
  • الخدمة سارية لمدة 7 أيام، بدءً من الاتصال بالشبكة على الطائرة.
  • \n
  • يتطلب من عملاء خطوط الدفع المسبق توفر رصيد لا يقل عن 5.1 د. ك للإشتراك في خدمة التجوال داخل الطائرة (In-Flight) في الرحلات الجوية بالطائرة. وتتوفر هذه الخدمة فقط بتلك الطائرات التي يتوفر فيها شبكات AeroMobile أو ONAIR. وتشمل تكلفة الخدمة 5 د. ك كرسوم اشتراك للخدمة.
  • \n
  • سياسة الاستخدام العادلة لخدمة التجوال داخل الطائرة (In-Flight): 500 دقيقة مكالمات صادرة إلى أي وجهة و 500 رسالة قصيرة و 100GB سعة الانترنت.
  • \n
\n

الشروط والأحكام:

\n
    \n
  • المكالمات الواردة، ليست جزءًا من خدمة التجوال داخل الطائرة (In-Flight) وسيتم احتسابها وفقًا لتسعيرة التجوال للدول المحددة لشركة زين
  • \n
  • يمكن تفعيل الخدمة فقط داخل الطائرة وسيتم احتسابها عند التفعيل.
  • \n
  • بعد استهلاك 30 دقيقة أو بعد 7 أيام، لن يتم تجديد الباقة تلقائيًا ويحتاج العميل إلى ارسال "FLYZAIN" مرة أخرى.
  • \n
  • خدمة التجوال داخل الطائرة (In-Flight) 5 د. ك هي خدمة مستقلة تسري لمدة 7 أيام والمتبقي من دقائق أو رسائل نصية أو سعة انترنت غير مستخدمة لا يمكن ترحيلها أو دمجها مع أي باقة أخرى.
  • \n
  • يمكن للعملاء الاشتراك في خدمة التجوال داخل الطائرة (In-Flight) 5 د. ك حتى لو كانوا مشتركين في خدمات تجوال بلس 13 د. ك وتجوال إنترنت 7 د. ك.
  • \n
  • خدمة التجوال داخل الطائرة (In-Flight) 5 د. ك متاحة على شبكات AeroMobile أو ONAIR (داخل الطائرة) فقط.
  • \n
  • خدمة الانترنت المحلية غير مطلوبة لتفعيل هذه الخدمة.
  • \n
\n'}}}},Jn=Xn,er=Object(v["a"])(Jn,Wn,Qn,!1,null,"5ff3faec",null),tr=er.exports,ar={name:"ServiceConfirmationModal",components:{StatusModal:Ps,ZModal:Be,ZButton:R,TnCPopup:tr},data(){return{isStatusModalActive:!1,statusModalIsSuccess:!0,statusModalMessage:"",statusModalTitle:"",addServiceModal:!1,TnCModalActive:!1}},watch:{value(e){this.addServiceModal=e}},props:{service:{type:Object,default:()=>{}},value:{type:Boolean,default:!1},isHappyTuesday:{type:Boolean,default:!1},addCircle:{type:Boolean,default:!1}},methods:{onModalCancel(){this.$emit("input",{value:!1,service:this.service})},showErrorModal(e){this.statusModalIsSuccess=!1,this.statusModalTitle=this.$t("AnErrorOccurred"),this.statusModalMessage=e||this.$t("PleaseTryAfter5Minutes"),this.isStatusModalActive=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:this.statusModalMessage}})},showSuccessModal(){this.statusModalIsSuccess=!0,this.statusModalTitle=this.$t("ThankYou"),this.statusModalMessage=this.$t("YourRequestHasBeenSuccessfullySubmitted"),this.isStatusModalActive=!0},async onModalConfirm(){const e=!this.service.isInstalled,t=e?"addService":"removeService",a=G["a"][this.isHappyTuesday?"addHappyTuesdayOffer":t];try{if(this.$parent.$data.changeServiceLoading=!0,e&&"Prepaid"===this.$store.getters.getBillingType){const e=this.$store.state[ae["b"].BALANCE].data.Balance;if(this.service.price>e)return this.onModalCancel(),void this.showErrorModal(this.$t("NotEnoughBalance"))}let s=await this.$myZainApi(a,{serviceCode:this.service.serviceCode,price:this.service.price});s.data.isSuccess?(await this.$store.dispatch("addTrackedOrder",{name:t,payload:this.service}),this.addServiceModal=!1,this.showSuccessModal()):(this.onModalCancel(),this.showErrorModal(s.data.error||s.data.message))}catch(o){var s,i,n,r;this.onModalCancel(),this.showErrorModal((null===(s=o.response)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.message)||(null===(n=o.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||this.$t("AnErrorOccurred"))}finally{this.$parent.$data.changeServiceLoading=!1}},onStatusModalCancel(){this.isStatusModalActive=!1,this.$emit("input",!1)}}},sr=ar,ir=Object(v["a"])(sr,Kn,Yn,!1,null,"30eb6f0c",null),nr=ir.exports,rr={name:"Services",components:{ServiceConfirmationModal:nr,ZHeading:vn,SwiperNavButtons:cn,ZLevel:an,ZButton:R,ZLoading:Je,ZToggle:Ft,ServiceCategoryCard:Gn,SwiperSlide:Vi,Swiper:Li},mixins:[ws],computed:{eligibleServiceCategories(){var e,t,a;if(null===(e=this.services)||void 0===e||!e.data)return[];const s=null===(t=this.services)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.map(e=>e.serviceCategory);return s.forEach(e=>{e.icon.name.includes("icon-app")||(e.icon.name=e.icon.name.replace("icon-","icon-app-"))}),qn.a.uniqBy(s,e=>e.titleEn)},rightSwiperArrowClasses(){return this.swiper&&this.swiper.isEnd?this.swiperArrowClasses.concat(" rotate-180 opacity-50"):this.swiperArrowClasses.concat(" rotate-180 cursor-pointer")}},props:{isGrid:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1},hideSwiperArrows:{type:Boolean,default:!1},services:{type:Object,required:!0,default:()=>{}},paddingTop:{type:Boolean,default:!0}},data:()=>({currentServiceCategory:null,serviceCategories:[],addServiceModal:!1,currentService:null,swiper:null,swiperArrowClasses:"px-2 h-10 w-10 text-2xs icon-Arrow-back hidden xl:flex text-white bg-gray-500 float-right transform rounded-full flex justify-center items-center",isStatusModalActive:!1,statusModalIsSuccess:!0,statusModalMessage:"",statusModalTitle:"",isServiceModalActive:!1,sliderOptions:{breakpoints:{0:{slidesPerView:1.25,spaceBetween:12,slidesPerGroup:1},380:{slidesPerView:2.25,spaceBetween:12,slidesPerGroup:1},640:{slidesPerView:2.5,spaceBetween:12,slidesPerGroup:2},768:{slidesPerView:4,spaceBetween:12,slidesPerGroup:1}},navigation:{nextEl:".service-swiper-next-slide",prevEl:".service-swiper-prev-slide"}},changeServiceLoading:!1}),methods:{onSelectServiceCategory(e){this.currentServiceCategory=e,this.showServiceModal()},onToggleService(e,t){this.isServiceModalActive=!1,this.currentService=e,this.currentService.toggle=t,this.addServiceModal=!0},showServiceModal(){var e;this.$zcl.modal.open({parent:this,component:Un,props:{serviceCategory:this.currentServiceCategory,services:null===(e=this.services)||void 0===e?void 0:e.data},events:{"change-service":this.onToggleService}})},onModalCancel(){this.addServiceModal=!1},async onModalConfirm(){const e=this.currentService.toggle,t=e?"addService":"removeService",a=G["a"][t];try{if(this.changeServiceLoading=!0,e&&"Prepaid"===this.$store.getters.getBillingType){const e=this.$store.state[ae["b"].BALANCE].data.Balance;if(this.currentService.price>e)return this.onModalCancel(),void this.showErrorModal(this.$t("NotEnoughBalance"))}let s=await this.$myZainApi(a,{serviceCode:this.currentService.serviceCode,price:this.currentService.price});s.data.isSuccess?(await this.$store.dispatch("addTrackedOrder",{name:t,payload:this.currentService}),this.addServiceModal=!1,this.showSuccessModal()):(this.onModalCancel(),this.showErrorModal(s.data.error||s.data.message))}catch(o){var s,i,n,r;this.onModalCancel(),this.showErrorModal((null===(s=o.response)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.message)||(null===(n=o.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.error)||this.$t("AnErrorOccurred"))}finally{this.changeServiceLoading=!1}},showErrorModal(e){this.statusModalIsSuccess=!1,this.statusModalTitle=this.$t("AnErrorOccurred"),this.statusModalMessage=e||this.$t("PleaseTryAfter5Minutes"),this.isStatusModalActive=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:this.statusModalMessage}})},showSuccessModal(){this.statusModalIsSuccess=!0,this.statusModalTitle=this.$t("ThankYou"),this.statusModalMessage=this.$t("YourRequestHasBeenSuccessfullySubmitted"),this.isStatusModalActive=!0},onStatusModalCancel(){this.isStatusModalActive=!1}}},or=rr,lr=Object(v["a"])(or,Nn,En,!1,null,null,null),cr=lr.exports,dr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative max-w-6xl mx-auto px-3"},[t("z-level",{scopedSlots:e._u([e.hideTitle?null:{key:"start",fn:function(){return[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("Offers"))+" ")])]},proxy:!0},e.hideViewAll?null:{key:"end",fn:function(){return[t("div",{staticClass:"leading-8 text-sm text-primary underline font-bold text-end uppercase",attrs:{role:"button"},on:{click:function(t){return e.$router.push("/offers")}}},[e._v(" "+e._s(e.$t("ViewAll"))+" ")])]},proxy:!0}],null,!0)}),t("div",{staticClass:"min-h-52 h-full w-full relative"},[t("z-loading",{attrs:{active:e.campaignsLoading||e.productsPerUserLoading,"is-full-page":!1}}),e.filteredProducts&&e.filteredProducts.length?t("swiper",{key:e.filteredProductsKey,attrs:{options:e.swiperOptions}},[e._l(e.filteredProducts,(function(a,s){return t("swiper-slide",{key:s,staticClass:"mb-8"},[a.CampaignID?t("card-with-tag",{attrs:{width:"auto","tag-label":e.$t("Special").toUpperCase(),"custom-color":"#7843a2","show-border":"","show-tag":"","invert-skew":""}},[t("c-v-m-offer-card-content",{attrs:{"inner-margin":10,campaign:a},on:{feedback:function(t){return e.onCampaignFeedback(a)}}})],1):t("card-with-tag",{attrs:{width:"auto"}},[t("zos-product-card-content",{staticClass:"mb-8",attrs:{"product-name":a.Name,"product-price":parseFloat(a.StartPrice),"buy-url":e.zainURL+e.$i18n.locale+"/"+a.BuyURL+e.shopURLParameters,"image-url":a.ImageURL}})],1)],1)})),t("div",{ref:"mySwiperPagination",staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"})],2):t("div",[e._v(" "+e._s(e.$t("NoOffers"))+" ")])],1),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":"",message:e.$t("YourRequestHasBeenSuccessfullySubmitted"),title:e.$t("ThankYou")},on:{"update:active":e.onStatusModalCancel}})],1)},ur=[],pr=function(){var e=this,t=e._self._c;return t("div",{class:`${e.showBorder?"border-2":""} bg-white dark:bg-gray-700 border-${e.color} shadow-xl rounded-md w-${e.width} h-full`,style:"border-color: "+e.customColor},[e.showTag?t("div",{class:"flex justify-end "+(e.showBorder?"-mt-0.5 -me-0.5":"")},[t("div",{class:`transform py-3 ${e.invertSkew?"-skew-x-20":"skew-x-20"} relative start-1.5 bg-${e.color}`,style:"background-color: "+e.customColor},[t("div",{staticClass:"w-6"})]),t("div",{class:`flex justify-center items-center ps-2 pe-5 text-xs text-white bg-${e.color} rounded-te-md`,style:"background-color: "+e.customColor},[e._v(" "+e._s(e.tagLabel)+" ")])]):t("div",{staticClass:"h-6 border-purple-600"}),e._t("default")],2)},mr=[],hr={name:"CardWithTag",props:{showBorder:{type:Boolean,default:!1},showTag:{type:Boolean,default:!1},tagLabel:{type:String,default:""},color:{type:String,default:"purple-800"},customColor:{type:String,default:""},width:{type:String,default:"auto"},invertSkew:{type:Boolean,default:!1}}},vr=hr,gr=Object(v["a"])(vr,pr,mr,!1,null,"825f82e0",null),fr=gr.exports,yr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col justify-center items-center h-full px-2"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.imageUrl,expression:"imageUrl"}],staticClass:"h-32 md:h-40 object-contain",attrs:{alt:"Product"}}),t("div",{staticClass:"flex justify-center font-bold text-lg md:text-xl text-center mt-3 h-18"},[t("div",{staticStyle:{"-webkit-line-clamp":"3",overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","line-height":"23px"}},[e._v(" "+e._s(e.productName)+" ")])]),t("div",{staticClass:"text-sm"},[e._v(" "+e._s(e.$t("StartingFrom"))+" ")]),t("div",[t("span",{staticClass:"text-sm font-bold"},[e._v(" "+e._s(e.positionedPrice(e.productPrice))+" ")]),t("span",[e._v(" "+e._s(e.$t("Monthly"))+" ")])]),t("z-button",{staticClass:"mb-2 font-bold rounded-xl w-full my-3",attrs:{size:"small",disabled:e.isButtonDisabled,outlined:""},on:{click:e.onButtonClick}},[e._v(" "+e._s(e.buttonText?e.buttonText:e.$t("BuyNow").toUpperCase())+" ")])],1)},br=[],xr={name:"ZosProductCardContent",components:{ZButton:R},mixins:[ws],props:{isButtonDisabled:{type:Boolean,default:!1},productName:{type:String,default:""},productPrice:{type:Number,default:0},imageUrl:{type:String,default:""},buyUrl:{type:String,default:""},buttonText:{type:String,default:""}},methods:{onButtonClick(){Ea["default"].addEvent({event_name:"Navigated To Product",custom_attributes:{channel:"",product_name:this.productName,payment_url:this.buyUrl,starting_price:this.productPrice+" KD"}}),window.open(this.buyUrl)}}},Cr=xr,wr=Object(v["a"])(Cr,yr,br,!1,null,"297f0e96",null),_r=wr.exports,Ar=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col justify-center items-center h-full px-2"},[t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.getCampaignUrl(),expression:"getCampaignUrl()"}],staticClass:"h-32 md:h-40 object-contain",attrs:{alt:"Product"}}),t("div",{staticClass:"flex justify-center font-bold text-lg md:text-xl text-center mt-3 h-18",class:"mb-"+e.innerMargin},[t("div",{staticStyle:{"-webkit-line-clamp":"3",overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","line-height":"23px"}},[e._v(" "+e._s(e.getCampaignTitle())+" ")])]),t("z-button",{staticClass:"mb-2 font-bold rounded-xl w-full my-3",attrs:{size:"small",outlined:""},on:{click:e.onButtonClick}},[e._v(" "+e._s(e.$t("BuyNow").toUpperCase())+" ")])],1)},Sr=[],Tr={name:"CVMOfferCardContent",components:{ZButton:R},props:{campaign:{type:Object,default:()=>{}},innerMargin:{type:Number,default:0}},methods:{async onButtonClick(){this.$store.state.selectedOffer=this.campaign,this.$store.state.isOffersPopUpActive=!0},stringParamExtractor(e){const t=this.campaign.CampaignParams.StringParam.find(t=>t.attributes.name===e);return t.$value},getCampaignUrl(){var e,t;return"ar"===this.$i18n.locale?null!==(e=this.stringParamExtractor("CardImgAR"))&&void 0!==e?e:this.stringParamExtractor("ArabicImageURL"):null!==(t=this.stringParamExtractor("CardImgEN"))&&void 0!==t?t:this.stringParamExtractor("EnglishImageURL")},getCampaignTitle(){return"ar"===this.$i18n.locale?this.stringParamExtractor("ArabicOfferTitle"):this.stringParamExtractor("EnglishOfferTitle")}}},kr=Tr,Pr=Object(v["a"])(kr,Ar,Sr,!1,null,"620b13f6",null),$r=Pr.exports,Mr={name:"Offers",components:{StatusModal:Ps,CVMOfferCardContent:$r,ZHeading:vn,ZLevel:an,ZosProductCardContent:_r,CardWithTag:fr,SwiperSlide:Vi,Swiper:Li,ZLoading:Je},mixins:[se],computed:{productsPerUser(){var e,t,a,s;return(null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t[ae["b"].PRODUCTS_PER_USER])||void 0===a||null===(s=a.data)||void 0===s?void 0:s.length)>0?this.$store.state[ae["b"].PRODUCTS_PER_USER]:[]},campaigns(){var e,t,a,s,i,n,r;return null!==(e=this.$store)&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&null!==(a=t[ae["b"].CAMPAIGNS])&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&null!==(i=s.Campaigns)&&void 0!==i&&i.Campaign?null===(n=this.$store.state[ae["b"].CAMPAIGNS].data)||void 0===n||null===(r=n.Campaigns)||void 0===r?void 0:r.Campaign.filter(e=>e.CampaignParams.StringParam.find(e=>"OfferType"===e.attributes.name&&("Generic"===e.$value||e.$value.includes("zos")))):[]},filteredProducts(){var e;const t=null===(e=this.productsPerUser)||void 0===e?void 0:e.data;let a=[];if(t){const e=this.$store.getters.getBillingType,s=this.$store.getters.getBasicServiceType,i=e?e+s:"Anonymous";a=t.find(e=>e.UserType.replace("Consumer","").replace(/ /g,"")===i),a=a.Products.sort((e,t)=>Number(e.priority)-Number(t.priority)).filter((e,t)=>t<20&&e.IsActive)}return this.onlyCampaigns?this.campaigns:[...this.campaigns,...a]},campaignsLoading(){return this.$store.state[ae["b"].CAMPAIGNS].loading},productsPerUserLoading(){return this.$store.state[ae["b"].PRODUCTS_PER_USER].loading},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""}},watch:{filteredProducts(){this.filteredProductsKey+=1}},props:{hideTitle:{type:Boolean,default:!1},hideViewAll:{type:Boolean,default:!1},onlyCampaigns:{type:Boolean,default:!1}},data:()=>({swiperOptions:{breakpoints:{350:{slidesPerView:2,spaceBetween:10},540:{slidesPerView:3,spaceBetween:10},780:{slidesPerView:4,spaceBetween:10}}},filteredProductsKey:0,zainURL:"https://www.kw.zain.com/",loading:!1,isStatusModalActive:!1}),methods:{async onCampaignFeedback(e){if(!this.loading){this.loading=!0;try{await this.$store.dispatch("callApi",{apiMethod:G["a"].sendCampaignFeedback,args:{response:"accepted",campaignId:e.CampaignID,offerId:e.OfferID}}).then(()=>{this.isStatusModalActive=!0}),this.loading=!1,this.$store.state[ae["b"].CAMPAIGNS].isDirty=!0}catch(t){console.log(t),this.loading=!1}}},onStatusModalCancel(){this.isStatusModalActive=!1}},mounted(){this.initStateResources(ae["b"].PRODUCTS_PER_USER)}},Or=Mr,Nr=Object(v["a"])(Or,dr,ur,!1,null,"0afac505",null),Er=Nr.exports,Dr=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"fixed w-12 h-12 bottom-26 left-8 md:w-16 md:h-16 md:bottom-9 md:left-9 z-30 bg-gray-500 rounded-full animate-ping-slow",style:`bottom: calc(${e.widthBiggerThan767?7:6.7}rem + env(safe-area-inset-bottom))`}),t("div",{staticClass:"fixed w-18 h-18 bottom-24 md:bottom-5 md:w-24 md:h-24 text-center justify-center space-y-1 left-5 z-30 bg-white rounded-full cursor-pointer border-teal border text-teal flex flex-col dark:bg-gray-600",staticStyle:{bottom:"calc(6rem + env(safe-area-inset-bottom))"},on:{click:function(t){return e.onZbotClick()}}},[t("span",{staticClass:"icon-zbot-active text-2xl md:text-4xl"}),t("span",{staticClass:"text-2xs md:text-sm md:leading-4"},[e._v(e._s(e.$t("Need"))),t("br"),e._v(e._s(e.$t("Help?")))])])])},Ir=[],Br={name:"ZbotFixedCircle",methods:{onZbotClick(){window.open("https://www.kw.zain.com/chat/")}},computed:{widthBiggerThan767(){return this.$store.state.windowWidth>767}}},Lr=Br,Rr=Object(v["a"])(Lr,Dr,Ir,!1,null,null,null),Ur=Rr.exports,zr=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"min-h-full dark:text-white",class:{"hidden md:block":e.isHidden,"md:block":!e.isHidden}},[t("z-loading",{attrs:{active:e.$store.state.RechargeHistory.loading,"is-full-page":!1}}),t("div",{staticClass:"flex start pb-1"},[t("div",{staticClass:"font-bold text-2xl"},[e._v(e._s(e.$t("MyRechargeHistory")))])]),e.$store.state.Bills&&e.monthNames["en"].length>0&&e.$i18n.locale?t("div",{staticClass:"flex start text-gray-600 dark:text-gray-300 text-xs pb-5"},[e._v(e._s(e.monthRangeString))]):e._e(),t("div",{staticClass:"flex justify-between lg:px-8"},e._l(e.rechargeHistoryByMonth,(function(a){return t("div",{key:a.month},[t("ZProgressBarVertical",{attrs:{value:e.getBarValue(a.amount),"label-top":e.getDisplayedPrice(a.amount),"label-bottom":a.month,labelBottomSecond:a.number.toString()}})],1)})),0),t("div",{staticClass:"flex justify-center pt-10"},[t("ball-with-text",{attrs:{text:""+e.$t("NumberOfRecharges"),color:"teal"}})],1)],1),t("div",{staticClass:"text-center md:hidden"},[t("div",{staticClass:"border-e border-white dark:border-gray-700 p-3 text-pink-600 font-bold",on:{click:function(t){e.isHidden=!e.isHidden}}},[t("a",{staticClass:"inline-block cursor-pointer"},[e._v(e._s(e.isHidden?e.$t("ShowRechargeHistory"):e.$t("HideRechargeHistory"))+" ")]),e.isHidden?t("img",{staticClass:"inline-block m-2",attrs:{src:a("b9f4"),alt:""}}):t("img",{staticClass:"inline-block m-2",attrs:{src:a("67fc"),alt:""}})])])])},jr=[],Fr=function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-start"},[t("span",{staticClass:"text-1.5xs text-gray-500"},[t("nobr",[e._v(e._s(e.title))])],1),t("div",{staticClass:"grid grid-cols-7"},[t("div",{staticClass:"h-full flex justify-center items-center"},[t("div",{class:e.ballClasses})]),t("span",{staticClass:"text-xs col-span-6 mx-2"},[t("nobr",[e._v(e._s(e.text))])],1)])])},Vr=[],Hr={name:"BallWithText",props:{title:{type:String,default:()=>""},text:{type:String,default:()=>""},color:{type:String,default:()=>"teal"}},computed:{ballClasses(){let e="col-span-1 rounded-full px-1 py-1";return e=e+" bg-"+this.color,e}}},Gr=Hr,Zr=Object(v["a"])(Gr,Fr,Vr,!1,null,"1ae6232d",null),qr=Zr.exports,Kr={name:"RechargeHistory",components:{BallWithText:qr,ZLoading:Je,ZProgressBarVertical:ut},mixins:[ni,se,ws],computed:{rechargeHistory(){return this.$store.state[ae["b"].RECHARGE_HISTORY]},rechargeHistoryByMonth(){var e,t,a,s,i,n;const r=null===(e=this.rechargeHistory)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.map(e=>({amount:e.Amount,month:this.DateTime.fromISO(e.Timestamp).month})))||void 0===a?void 0:a.reduce((e,t)=>(e[t.month]?e[t.month]+=t.amount:e[t.month]=t.amount,e),{}),o=null===(s=this.rechargeHistory)||void 0===s||null===(i=s.data)||void 0===i||null===(n=i.map(e=>({number:1,month:this.DateTime.fromISO(e.Timestamp).month})))||void 0===n?void 0:n.reduce((e,t)=>(e[t.month]?e[t.month]+=t.number:e[t.month]=t.number,e),{}),l=[];for(let u=5;u>=0;u--){var c,d;let e=this.DateTime.utc().minus({months:u}).month,t=this.monthNames[this.$i18n.locale][e-1];l.push({month:t,amount:null!==(c=null===r||void 0===r?void 0:r[e])&&void 0!==c?c:0,number:null!==(d=null===o||void 0===o?void 0:o[e])&&void 0!==d?d:0})}return l},monthRangeString(){var e,t;if(!this.$i18n.locale&&(null===(e=this.monthNames)||void 0===e||null===(t=e.en)||void 0===t||!t.length))return"";const a=new Date;return a.setDate(1),this.monthNames[this.$i18n.locale][(a.getMonth()+7)%12]+" - "+this.monthNames[this.$i18n.locale][a.getMonth()]+" "+a.getFullYear()}},data:()=>({isHidden:!0}),methods:{getBarValue(e){let t=this.rechargeHistoryByMonth;return t?e/Math.max(...t.map(e=>e.amount))*100:0},getDisplayedPrice(e){return"ar"===this.$i18n.locale?`${e.toString()} ${this.$t("KD")}`:`${this.$t("KD")} ${e.toString()}`}},mounted(){this.$store.getters.isPrepaid&&this.initStateResources(ae["b"].RECHARGE_HISTORY)}},Yr=Kr,Wr=Object(v["a"])(Yr,zr,jr,!1,null,null,null),Qr=Wr.exports,Xr=function(){var e=this,t=e._self._c;return t("hr",{staticClass:"relative border-t border-solid border-primary mx-auto",class:{"my-10":!e.noMargin,"max-w-6xl":e.hasMaxWidth}})},Jr=[],eo={name:"PinkHR",props:{noMargin:{type:Boolean,default:!1},hasMaxWidth:{type:Boolean,default:!0}}},to=eo,ao=Object(v["a"])(to,Xr,Jr,!1,null,"221b3c62",null),so=ao.exports,io=function(){var e=this,t=e._self._c;return e.happyTuesdayData?t("div",{staticClass:"px-3 md:px-10"},[t("div",{staticClass:"flex justify-between items-center"},[t("div",{staticClass:"w-2/3 flex flex-col justify-between text-start space-y-6"},[t("div",{staticClass:"space-y-1"},[t("div",{staticClass:"text-primary font-bold text-xl"},[e._v(" "+e._s("ar"===e.locale?e.happyTuesdayData.TitleAr:e.happyTuesdayData.TitleEnglish)+" ")]),t("div",{staticClass:"text-sm"},[e._v(e._s(e.happyTuesdayData.schemeName))])]),t("div",{staticClass:"uppercase text-sm text-primary font-bold items-center flex",attrs:{role:"button"},on:{click:e.onClickClaimOffer}},[t("div",{staticClass:"me-1"},[e._v(e._s(e.$t("ClaimYourOffer")))]),t("img",{staticClass:"w-5 transform",class:{"rotate-90":"ar"===e.locale,"-rotate-90":"ar"!==e.locale},attrs:{src:a("82f5")}})])]),t("div",{staticClass:"pe-2"},[t("z-circle-progress",{attrs:{"circle-color":e.circleColor,value:e.valueForCircle}},[t("div",{staticClass:"text-black font-bold"},[e._v(e._s(e.remainingTime)+" "+e._s(e.$tc("Hours",e.remainingTime)))]),t("div",{staticClass:"text-xs"},[e._v(e._s(e.$t("Remaining")))])]),e.valueForCircle>=75?t("div",{staticClass:"font-bold text-sm mt-2",style:"color: "+e.circleColor},[e._v(" "+e._s(e.$t("HurryUp!"))+" ")]):e._e()],1)]),t("service-confirmation-modal",{attrs:{"is-happy-tuesday":"",service:e.happyTuesdayToServiceMapper()},model:{value:e.isModalActive,callback:function(t){e.isModalActive=t},expression:"isModalActive"}})],1):e._e()},no=[],ro={name:"HappyTuesday",components:{ServiceConfirmationModal:nr,ZCircleProgress:ye},mixins:[se],watch:{locale(){this.$store.dispatch("fetchResource",{resource:ae["b"].HAPPY_TUESDAY,force:!0})}},data(){return{isModalActive:!1}},computed:{happyTuesdayData(){var e,t,a;return null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t[ae["b"].HAPPY_TUESDAY])||void 0===a?void 0:a.data},locale(){return this.$i18n.locale},totalTime(){const e=new Date(this.happyTuesdayData.EndDate)-new Date(this.happyTuesdayData.StartDate);return Math.abs(e)/36e5},remainingTime(){const e=new Date(this.happyTuesdayData.EndDate)-new Date;return parseInt(String(Math.abs(e)/36e5),10)},valueForCircle(){return(this.totalTime-this.remainingTime)/this.totalTime*100},circleColor(){return this.valueForCircle>=75?"rgb(226, 94, 94)":"rgb(124, 197, 62)"}},methods:{onClickClaimOffer(){"R"===this.happyTuesdayData.type?this.$router.push("/pay"):"S"===this.happyTuesdayData.type&&(this.isModalActive=!0)},happyTuesdayToServiceMapper(){return{titleAr:this.happyTuesdayData.TitleAr,title:this.happyTuesdayData.TitleEnglish,price:this.happyTuesdayData.price,toggle:!0,icon:"",serviceCode:this.happyTuesdayData.serviceCode,description:this.happyTuesdayData.schemeName,descriptionAr:this.happyTuesdayData.schemeName}}}},oo=ro,lo=Object(v["a"])(oo,io,no,!1,null,"8dd42106",null),co=lo.exports,uo=function(){var e=this,t=e._self._c;return t("div",[e.products.data.length>0?t("div",{staticClass:"relative max-w-6xl mx-auto px-3"},[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("eCards"))+" ")]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.products.data.filter(e=>"eCards"===e.type),(function(a){return t("swiper-slide",{key:a.sectionid,staticClass:"mb-8"},[t("card-with-tag",[t("zos-product-card-content",{staticClass:"mb-8",attrs:{"product-name":a.name,"product-price":parseFloat(a.startprice),"buy-url":e.$store.state.zainURL+e.$i18n.locale+"/"+a.buyurl+e.shopURLParameters,"image-url":e.$store.state.zainURL+a.image}})],1)],1)})),1)],1):e._e(),t("pink-h-r",{staticClass:"mt-10",attrs:{noMargin:""}})],1)},po=[],mo={name:"ECards",data(){return{swiperOptions:{breakpoints:{350:{slidesPerView:2,spaceBetween:10},540:{slidesPerView:3,spaceBetween:10},780:{slidesPerView:4,spaceBetween:10}}}}},components:{PinkHR:so,ZHeading:vn,SwiperSlide:Vi,CardWithTag:fr,ZosProductCardContent:_r,Swiper:Li},mixins:[se],computed:{products(){var e,t,a,s;if((null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t[ae["b"].PRODUCTS])||void 0===a||null===(s=a.data)||void 0===s?void 0:s.length)>0){let e=[];return this.$store.state[ae["b"].PRODUCTS].data.forEach(t=>{e.some(e=>e.sectionid===t.sectionid)||e.push(t)}),{data:e}}return{data:[]}},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""}},async mounted(){await this.initStateResources({resource:ae["b"].PRODUCTS})}},ho=mo,vo=Object(v["a"])(ho,uo,po,!1,null,"19a1d1d3",null),go=vo.exports,fo=function(){var e=this,t=e._self._c;return e.showCard?t("div",[e.windowWidth>745?t("div",{staticClass:"px-3 md:px-10 py-4 bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center relative",staticStyle:{"margin-bottom":"24px"}},[t("div",{staticClass:"flex justify-between"},[e._m(0),t("div",{staticClass:"flex flex-col justify-center"},[t("div",{staticClass:"text-center text-xl font-bold"},[e._v(e._s(e.$t("WelcomeToMaxPlan")))]),t("div",{staticClass:"text-center font-normal text-m mt-2"},[e._v(e._s(e.$t("StartConfiguringYourContentNow")))]),t("div",{staticClass:"mt-2 flex justify-center"},[t("z-button",{staticClass:"mb-2 font-bold rounded-xl w-full my-3 p-y0",staticStyle:{width:"143px","padding-right":"0","padding-left":"0","border-radius":"8px"},attrs:{size:"xsmall",outlined:""},on:{click:e.scrollToContent}},[e._v(" "+e._s(e.$t("ActivateContent"))+" ")])],1)]),e._m(1)])]):t("div",{staticClass:"bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center relative",staticStyle:{height:"151px","margin-bottom":"14px"}},[t("div",{class:e.flexDir,staticStyle:{height:"151px"}},[t("div",{staticClass:"w-1/2 z-0 pointer-events-none"},[e.windowWidth>550?t("img",{staticClass:"overflow-hidden absolute left-0 z-0",staticStyle:{"max-width":"35%","max-height":"160px",bottom:"0"},attrs:{alt:"5g",src:a("3cc6")}}):e.windowWidth>480?t("img",{staticClass:"overflow-hidden absolute left-0 z-0",staticStyle:{"max-width":"40%",bottom:"0"},attrs:{alt:"5g",src:a("3cc6")}}):e.windowWidth>430?t("img",{staticClass:"overflow-hidden absolute left-0 z-0",staticStyle:{"max-width":"45%",bottom:"0"},attrs:{alt:"5g",src:a("3cc6")}}):t("img",{staticClass:"overflow-hidden absolute left-0 z-0",staticStyle:{"max-width":"50%",bottom:"0"},attrs:{alt:"5g",src:a("3cc6")}})]),t("div",{staticClass:"flex flex-col px-1.5 justify-between",staticStyle:{height:"151px"}},[t("div",{staticClass:"text-center text-sm font-bold z-10 top mt-3.5"},[e._v(e._s(e.$t("WelcomeToMaxPlan")))]),t("div",{staticClass:"text-center font-normal mt-2.5 px-6 mb-3",staticStyle:{"font-size":"13px"}},[e._v(e._s(e.$t("StartConfiguringYourContentNowMobile"))+" ")]),t("div",{staticClass:"px-7"},[t("z-button",{class:e.buttonMargin,staticStyle:{width:"134px","padding-right":"0","padding-left":"0"},attrs:{size:"xsmall",outlined:""},on:{click:e.scrollToContent}},[e._v(" "+e._s(e.$t("ActivateContent"))+" ")])],1)])])])]):e._e()},yo=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"pointer-events-none"},[t("img",{staticClass:"overflow-hidden absolute left-0",staticStyle:{"max-width":"25%",bottom:"-10px"},attrs:{alt:"5g",src:a("0547")}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"pointer-events-none"},[t("img",{staticClass:"overflow-hidden absolute right-6.5",staticStyle:{"max-width":"17%",bottom:"18%"},attrs:{src:a("444e"),alt:"Services image"}})])}],bo={name:"GhostConfigurationBanner",mixins:[se],components:{ZButton:R},methods:{scrollToContent(){var e;null===(e=document.querySelector("#MyContent"))||void 0===e||e.scrollIntoView({behavior:"smooth"})}},computed:{flexDir(){return"ar"===this.$i18n.locale?"flex justify-between items-center flex-row-reverse":"flex justify-between items-center"},buttonMargin(){return"ar"===this.$i18n.locale?"mb-4.5 font-bold rounded-xl w-full":"mb-2.5 font-bold rounded-xl w-full"},windowWidth(){return this.$store.state.windowWidth},showCard(){var e,t,a,s,i,n,r,o,l,c,d,u,p,m;return!(null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||!t[ae["b"].OTTS].data)&&((null===(a=this.$store)||void 0===a||null===(s=a.state)||void 0===s||null===(i=s[ae["b"].OTTS].data)||void 0===i||null===(n=i.quadPlayInfo)||void 0===n?void 0:n.totalPoints)===(null===(r=this.$store)||void 0===r||null===(o=r.state)||void 0===o||null===(l=o[ae["b"].OTTS].data)||void 0===l||null===(c=l.quadPlayInfo)||void 0===c?void 0:c.remainingPoints)&&0!==(null===(d=this.$store)||void 0===d||null===(u=d.state)||void 0===u||null===(p=u[ae["b"].OTTS].data)||void 0===p||null===(m=p.quadPlayInfo)||void 0===m?void 0:m.totalPoints))}},watch:{locale(){this.$store.dispatch("fetchResource",{resource:ae["b"].HAPPY_TUESDAY,force:!0})}},data(){return{}},beforeDestroy(){}},xo=bo,Co=Object(v["a"])(xo,fo,yo,!1,null,"6c01edfd",null),wo=Co.exports,_o=function(){var e=this,t=e._self._c;return e.showOnBoardingBanner&&0===e.ghostOrders.length?t("div",{staticClass:"w-full flex justify-center"},[t("z-card",{staticClass:"my-3 max-w-6xl w-full"},[e.isBannerExpanded?e._e():t("div",{staticClass:"flex flex-row justify-between w-full md:grid md:grid-cols-3"},[t("div",{staticClass:"flex w-64 xs:w-40 max-w-xs items-end"},[t("img",{attrs:{src:a("5721"),alt:"5G Banner"}})]),t("div",{},[t("div",{staticClass:"flex flex-col space-y-1 p-3 w-full mx-auto"},[t("div",{staticClass:"text-sm font-bold"},[e._v(" "+e._s(e.$t("GhostOnBoardingBannerUpperText"))+" ")]),t("div",{staticClass:"flex justify-center"},[t("img",{staticClass:"w-10",attrs:{src:a("551b"),alt:"disney"}}),t("img",{staticClass:"w-10",attrs:{src:a("1eaa"),alt:"shahid"}}),t("img",{staticClass:"w-10",attrs:{src:a("344a"),alt:"tod"}}),t("img",{staticClass:"w-10",attrs:{src:a("cc41"),alt:"osn"}})]),t("div",[t("z-button",{staticClass:"px-5 py-1 uppercase",attrs:{outlined:"",paddingless:"",size:"small"},on:{click:e.onClickViewOffer}},[e._v(" "+e._s(e.$t("ViewOffer"))+" ")])],1)])]),t("div",{staticClass:"hidden md:block"})]),e.isBannerExpanded?t("div",{staticClass:"animate-fade-in-down flex flex-col justify-center space-y-4 pt-3"},[t("div",{},[t("div",[e._v(" "+e._s(e.$t("GhostOnBoardingBannerUpperText"))+" ")]),t("div",{staticClass:"font-bold my-1"},[e._v(" "+e._s(e.$t("GhostOnBoardingBannerTitle"))+" ")]),t("div",{staticClass:"text-sm"},[e._v(" "+e._s(e.$t("GhostOnBoardingBannerLowerText"))+" ")])]),t("div",[t("z-button",{staticClass:"px-5 py-1 uppercase",attrs:{paddingless:"",size:"small"},on:{click:e.onClickBuyNow}},[e._v(" "+e._s(e.$t("BuyNow"))+" ")])],1),t("div",{staticClass:"max-w-sm mx-auto pe-3 pt-2 md:pe-0"},[t("img",{attrs:{src:a("e778"),alt:"5G Banner"}})])]):e._e()])],1):e._e()},Ao=[],So={name:"GhostOnBoardingBanner",components:{ZButton:R,ZCard:pe},data(){return{isBannerExpanded:!1}},computed:{showOnBoardingBanner(){return this.$store.getters["ghostPostpaid/isEligibleForGhostOnBoarding"]},ghostOrders(){var e,t,a,s;return null!==(e=null===(t=this.$store)||void 0===t||null===(a=t.state)||void 0===a||null===(s=a[ae["b"].GHOST_ORDERS])||void 0===s?void 0:s.data)&&void 0!==e?e:[]}},methods:{onClickViewOffer(){this.isBannerExpanded=!0},onClickBuyNow(){this.$router.push("/plan-details")},onScroll(){this.isBannerExpanded=!1}},created(){window.addEventListener("scroll",this.onScroll),window.addEventListener("touchmove",this.onScroll)},destroyed(){window.removeEventListener("scroll",this.onScroll),window.removeEventListener("touchmove",this.onScroll)}},To=So,ko=Object(v["a"])(To,_o,Ao,!1,null,"74762ae8",null),Po=ko.exports,$o=function(){var e=this,t=e._self._c;return t("div",[t("z-loading",{attrs:{active:e.loading,"is-full-page":!0,"background-classes":"bg-opacity-60"}}),e.OTTs.result&&e.OTTs.result.length>0?t("div",{staticClass:"relative max-w-6xl mx-auto px-3",staticStyle:{"scroll-margin-top":"70px"}},[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t(e.isQuad?"MyContent":"MyContentAndSubscriptions"))+" ")]),e.isQuad?t("div",[t("div",{staticClass:"flex justify-between items-center content-header"},[t("div",{staticClass:"content-type-label basic-content-label"},[t("span",{staticClass:"icon-app-entertainment-3 text-2xl"}),t("span",[e._v(e._s(e.$t("BasicContent")))])]),e.availableSubscriptions>0?t("div",["ar"!==this.$i18n.locale?t("div",[t("span",{staticClass:"text-primary font-bold"},[e._v(" "+e._s(e.OTTs.result.filter(e=>e.isInstalled&&e.partnerSubscription.supscriptionType&&"bundle"===e.partnerSubscription.supscriptionType).length)+" ")]),t("span",{staticClass:"text-gray-500"},[e._v(" out of ")]),t("span",{staticClass:"text-primary font-bold"},[e._v(" "+e._s(e.availableSubscriptions)+" ")]),t("span",{staticClass:"text-gray-500"},[e._v(" activated ")])]):t("div",[t("span",{staticClass:"text-gray-500"},[e._v(" تم تفعيل ")]),t("span",{staticClass:"text-primary font-bold"},[e._v(" "+e._s(e.OTTs.result.filter(e=>e.isInstalled&&e.partnerSubscription.supscriptionType&&"bundle"===e.partnerSubscription.supscriptionType).length))]),t("span",{staticClass:"text-gray-500"},[e._v(" من ")]),t("span",{staticClass:"text-primary font-bold"},[e._v(" "+e._s(e.availableSubscriptions))])])]):e._e()]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.basicOTTs,(function(a,s){return t("swiper-slide",{key:a.id,staticClass:"mb-8"},[t("ghost-content-card",{attrs:{index:s,ott:a,type:"basic",promotion:e.getPromotion(a.serviceCode),"within-allowance":e.getIsWithinAllowance(a.points)},on:{toggleOttEvent:e.toggleOtt}})],1)})),1),t("div",{staticClass:"flex justify-between align-middle content-header mt-6"},[t("div",{staticClass:"content-type-label premium-content-label"},[t("span",{staticClass:"icon-app-entertainment-3 premium text-2xl"}),t("span",[e._v(e._s(e.$t("PremiumContent")))])]),t("div")]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.premiumOTTs,(function(a){return t("swiper-slide",{key:a.id,staticClass:"mb-8"},[t("ghost-content-card",{key:a.id,attrs:{ott:a,type:"premium",promotion:e.getPromotion(a.serviceCode),"within-allowance":e.getIsWithinAllowance(a.points)},on:{toggleOttEvent:e.toggleOtt}})],1)})),1)],1):t("div",[t("swiper",{key:e.OTTs.result.length,attrs:{options:e.swiperOptions}},e._l(e.OTTs.result,(function(a,s){return t("swiper-slide",{key:a.id,staticClass:"mb-8"},[t("ghost-content-card",{attrs:{index:s,ott:a,type:"basic",promotion:e.getPromotion(a.serviceCode)},on:{toggleOttEvent:e.toggleOtt}})],1)})),1)],1),t("pink-h-r",{staticClass:"mt-10",attrs:{noMargin:""}})],1):e._e(),t("ghost-upsell-modal",{attrs:{ott:e.selectedOTT,plan:e.upsellPlan,"on-cancel":e.onCancel,"premium-not-part-of-plan":e.premiumNotPartOfPlan,"upsell-modal-is-active":e.upsellModalIsActive},on:{activateAsDCB:e.activateAsDCB,upgrade:e.onUpgrade}}),t("GhostConfirmPlanModal",{attrs:{value:e.confirmUpsellModalIsActive,plan:e.upsellPlan,"is-upsell":!0,ott:e.selectedOTT},on:{input:e.onCancel}}),t("ghost-deactivation-modal",{attrs:{"back-to-home":e.onCancel,"deactivation-modal-is-active":e.deactivationModalIsActive,"on-cancel":e.onCancel,ott:e.selectedOTT}}),t("OTTJourneyModal",{attrs:{"cancel-modal":e.onCancel,"is-modal-active":e.journeyModalIsActive,journey:e.journey,ott:e.selectedOTT}}),t("ghost-status-modal",{attrs:{"status-modal-is-active":e.statusModalIsActive,"ott-group-name":e.selectedOTT.groupName},on:{backToHome:e.onCancel}})],1)},Mo=[],Oo=function(){var e=this,t=e._self._c;return t("div",[t("card-with-tag",[t("div",{staticClass:"flex flex-col items-center h-full w-full",staticStyle:{height:"264px"}},[e.ott.icon.url?t("img",{class:"OTT-image"+(this.ott.isInstalled?"":" inactiveOTT"),attrs:{src:e.$store.state.cmsBackendHost+this.ott.icon.url,alt:"ott"}}):e._e(),this.ott.isInstalled?t("div",{staticClass:"w-full"},[t("div",{staticClass:"flex items-center justify-center w-full active-since"},[t("div",{staticClass:"w-2 h-2 rounded-full inline-block mx-2 bg-green"}),t("span",[e._v(e._s(e.$t("ActiveSince")+" "+e.prettyDate(this.ott.partnerSubscription.startDate)))])]),t("div",{class:e.priceClasses},["bundle"===this.ott.partnerSubscription.supscriptionType?t("span",{staticClass:"w-full"},[t("span",[e._v(e._s(e.$t("OnUs")))])]):"addon"!==this.ott.partnerSubscription.supscriptionType||this.promotion?t("span",{staticClass:"w-full"},[e._v(" "+e._s("ar"!==this.$i18n.locale?e.freeDuration+" "+e.freeDurationType+" on us":e.getArabicDurationText(this.ott.partnerSubscription.duration,!0))+" ")]):t("span",{staticClass:"w-full"},[t("span",[e._v(e._s(e.price(this.ott.price)))]),t("span",{staticClass:"font-normal"},[e._v(e._s(e.$t("PerMonth")))])])])]):e._e(),this.ott.isInstalled?e._e():t("div",[t("div",{staticClass:"content-price flex items-center",staticStyle:{"margin-bottom":"0 !important","line-height":"1.25"}},[this.promotion&&!e.withinAllowance?t("div",{staticClass:"w-full mx-2"},[t("span",[e._v(e._s("ar"!==this.$i18n.locale?"Get "+this.promotion.duration+" "+this.promotion.durationType+" on us":e.getArabicDurationText(e.promotion.duration)))])]):t("div",[t("span",[t("span",[e._v(e._s("ar"===this.$i18n.locale?e.$t("Subscription")+" "+this.ott.titleAr:this.ott.title+" "+e.$t("Subscription")))])])])]),t("div",{staticClass:"flex items-center justify-center w-full active-since mt-0.5",staticStyle:{"margin-bottom":"18px !important"}},[t("div",{staticClass:"w-2 h-2 mx-2 rounded-full inline-block bg-red-600",attrs:{"data-v-50491efc":""}}),t("div",[t("span",[e._v(e._s(e.$t("NotActive")))])])])]),t("z-toggle",{attrs:{value:e.isInstalled,size:"medium"},on:{input:e.toggle}})],1)])],1)},No=[],Eo={name:"GhostContentCard",components:{CardWithTag:fr,ZToggle:Ft},mixins:[ni],props:{type:{type:String,default:()=>"basic"},ott:{type:Object},promotion:{type:Object},withinAllowance:{type:Boolean,default:!1}},computed:{isInstalled:{get(){return"undefined"===typeof this.ott._toggle?this.ott.isInstalled:this.ott._toggle},set(e){e!==this.ott.isInstalled&&this.toggle()}},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:"active since 18/10/2021"},priceClasses(){return"basic"===this.type?"content-price basic-content-label text-center":"content-price premium-content-label text-center"},freeDuration(){var e,t,a;return null!==(e=null===(t=this.ott)||void 0===t||null===(a=t.partnerSubscription)||void 0===a?void 0:a.duration)&&void 0!==e?e:""},freeDurationType(){var e,t,a;return null!==(e=null===(t=this.ott)||void 0===t||null===(a=t.partnerSubscription)||void 0===a?void 0:a.durationType)&&void 0!==e?e:""}},methods:{price(e){return"ar"===this.$i18n.locale?`+ ${e} د.ك`:"+ KD "+e},toggle(){this.$emit("toggleOttEvent",{ott:this.ott,eventName:this.ott.isInstalled?"deactivate":"activate"})},getArabicDurationText(e,t=!1){if(!e)return"";this.$tc("MonthWithPluralization",e);const a="استمتع بـ ",s="علينا";let i=this.$tc("MonthWithPluralization",e)+" ";return e>2&&(i=`${e} ${i} `),t?i+s:a+i+s}}},Do=Eo,Io=(a("d325"),Object(v["a"])(Do,Oo,No,!1,null,"56984f1b",null)),Bo=Io.exports,Lo=function(){var e=this,t=e._self._c;return t("z-modal",{attrs:{active:e.localActive,"can-cancel":"","on-cancel":e.onCancel,"has-max-height":!1},on:{"update:active":function(t){e.localActive=t}}},[t("div",{staticClass:"flex flex-col py-10 xl:py-24 mx-2 justify-center"},[t("div",{staticClass:"flex flex-col justify-center md:mb-6"},[e.ott&&e.ott.icon&&e.ott&&e.ott.icon&&e.ott.icon.url?t("img",{staticClass:"OTT-image mb-2",attrs:{alt:"ott",src:e.$store.state.cmsBackendHost+e.ott.icon.url}}):e._e(),t("span",{staticClass:"font-bold md:text-xl xs:text-md mx-4 xxs:mb-4"},[e._v(e._s(e.premiumNotPartOfPlan?e.$t("PremiumContentIsNotPartOfYourAllowance"):e.$t("YouHaveAlreadyActivatedAllYourFREEContent")))])]),t("div",[t("div",{staticClass:"md:mx-24 mx-7"},[t("div",{staticClass:"font-bold md:text-l mb-4"},[t("span",[e._v(" "+e._s(e.$t("UpgradeToThe"))+" ")]),t("span",{staticClass:"text-primary"},[e._v(" "+e._s(this.price))]),t("span",[e._v(" "+e._s(e.$t("PlanToAccessPremium")))])]),t("hr",{staticClass:"modal-divider"}),e.plan&&e.plan.childServices?t("div",{staticClass:"flex justify-between"},e._l(e.plan.childServices.slice(0,4),(function(a){return t("div",{key:a.id},[a&&a.icon&&a.icon.url?t("img",{staticClass:"mini-otts",attrs:{alt:a.title,src:e.$store.state.cmsBackendHost+a.icon.url}}):e._e()])})),0):e._e(),t("hr",{staticClass:"modal-divider mb-3 md:mb-10"}),t("z-button",{staticClass:"w-full",staticStyle:{"margin-bottom":"17px"},on:{click:function(t){return e.$emit("upgrade")}}},[e._v(" "+e._s(e.$t("YesUpgradeMyPlan"))+" ")]),t("z-button",{staticClass:"w-full",attrs:{outlined:""},on:{click:function(t){return e.$emit("activateAsDCB")}}},[e._v(" "+e._s(e.$t("NoAddOTTOnlyForMonthly",{ott:this.ott.title,price:this.ott.price}))+" ")])],1)])])])},Ro=[],Uo={name:"GhostUpsellModal",components:{ZModal:Be,ZButton:R},props:{upsellModalIsActive:Boolean,onCancel:Function,premiumNotPartOfPlan:Boolean,ott:Object,plan:Object},computed:{localActive:{get(){return this.upsellModalIsActive},set(e){this.$emit("update:upsellModalIsActive",e)}},price(){return"ar"===this.$i18n.locale?this.plan.price+" د.ك":"KD "+this.plan.price}}},zo=Uo,jo=(a("ecce"),Object(v["a"])(zo,Lo,Ro,!1,null,"1a85293f",null)),Fo=jo.exports,Vo=function(){var e=this,t=e._self._c;return t("div",[t("z-modal",{staticClass:"bg-opacity-80",attrs:{active:e.localValue,"bg-opacity":80,"on-cancel":e.onModalCancel,"can-cancel":"","can-click-outside":""},on:{"update:active":function(t){e.localValue=t}}},[e.showGhostSuccessModal?t("div",[t("ghost-success",{staticClass:"p-5",attrs:{plan:e.plan,"back-to-home":e.onClickBackToHome}})],1):t("div",{staticClass:"p-5 space-y-5 flex flex-col items-center"},[t("div",{staticClass:"font-bold"},[e._v(" "+e._s(e.$t("ConfirmYourPlanUpgrade"))+" ")]),t("GhostPlanCard",{staticClass:"border-2 shadow-none sm:w-8/12",attrs:{plan:e.plan}}),t("ZButton",{staticClass:"uppercase",on:{click:e.onConfirm}},[e._v(" "+e._s(e.$t("Confirm"))+" ")])],1)]),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":!1,message:e.$t("Error"),"on-modal-cancel":e.onStatusModalCancel,title:e.$t("GhostErrorMessage")}})],1)},Ho=[],Go=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-white rounded-xl shadow-md flex flex-col py-2 md:min-h-96",class:[e.isSelected&&"border-2 border-primary",e.isSelectable&&"cursor-pointer"]},[t("div",{staticClass:"p-3 flex flex-row space-s-3",class:[!e.isSelectable&&"justify-center"]},[e.isSelectable?t("div",[t("input",{staticClass:"form-radio border-black bg-white ring-2 ring-white ring-inset checked:bg-primary pointer-events-none",staticStyle:{"background-image":"none"},attrs:{type:"radio"},domProps:{checked:e.isSelected}})]):e._e(),t("div",{staticClass:"flex flex-col content-between"},[t("p",{staticClass:"text-primary font-extrabold",staticStyle:{"font-size":"20px"}},[e._v(" "+e._s("ar"===e.$i18n.locale?e.plan.titleAr:e.plan.title))]),t("p",[t("span",{staticClass:"font-black"},[e._v(e._s(e.positionedPrice(e.plan.price,!1,0)))]),t("span",{staticClass:"text-gray-600"},[e._v(" /"+e._s(e.$t("Month").toLowerCase())+" ")])])])]),t("div",{staticClass:"w-full bg-gray-200 h-px"}),e.isPlanPage&&e.windowWidth>745?t("div",{staticClass:"flex justify-center items-start flex-col gap-2.5 py-5 mx-12"},[e._l(e.getPlanDevices(e.plan),(function(a){return t("div",{key:`${e.plan.id} - ${a.name}`,staticClass:"flex flex-row justify-center items-center space-s-4 text-sm"},[t("div",{staticClass:"text-primary flex justify-center items-center icon-router w-8"}),t("div",{staticClass:"text-black text-sm"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.nameAr:a.name)+" "+e._s("ar"===e.$i18n.locale?a.descriptionAr:a.description)+" ")])])})),e._l(e.getPlanBenefits(e.plan),(function(a){return t("div",{key:`${e.plan.id} - ${a.description} - ${a.name}`,staticClass:"flex flex-row justify-center items-center space-s-4 text-sm"},[t("div",{staticClass:"text-primary flex justify-center items-center w-8",class:""+a.icon.name.replace("icon-","icon-app-")}),t("div",{staticClass:"text-black text-sm"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.nameAr:a.name)+" "+e._s("ar"===e.$i18n.locale?a.descriptionAr:a.description)+" ")])])}))],2):t("div",{staticClass:"flex justify-start flex-row py-5"},[e._l(e.getPlanDevices(e.plan),(function(a){return t("div",{key:`${e.plan.id} - ${a.name}`,staticClass:"flex flex-row justify-center items-center space-s-2 text-sm w-1/3"},[t("div",{staticClass:"text-primary icon-router"}),t("div",{staticClass:"flex flex-col"},[t("div",{staticClass:"font-bold text-xs"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.nameAr:a.name)+" ")]),t("div",{staticClass:"text-gray-500 text-xs"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.descriptionAr:a.description)+" ")])])])})),e._l(e.getPlanBenefits(e.plan),(function(a){return t("div",{key:`${e.plan.id} - ${a.description} - ${a.name}`,staticClass:"flex flex-row justify-center items-center space-s-2 text-sm w-1/3"},[t("div",{staticClass:"text-primary",class:""+a.icon.name.replace("icon-","icon-app-")}),t("div",{staticClass:"flex flex-col"},[t("div",{staticClass:"font-bold text-xs"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.nameAr:a.name)+" ")]),t("div",{staticClass:"text-gray-500 text-xs"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.descriptionAr:a.description)+" ")])])])}))],2),e.showDisclaimer?t("div",[t("div",{staticClass:"text-gray-600 text-xs mx-3 mb-3"},[t("span",{staticClass:"font-bold text-primary"},[e._v("*")]),e._v(" "+e._s(e.$t("ThisPlanDoesNotSupportTheDataSharingService"))+" ")])]):e._e(),e.getPlanChildServices(e.plan).length>0?t("div",[t("div",{staticClass:"text-center py-2 font-semibold border-b border-t border-gray-200",staticStyle:{"background-color":"#f8f8f8","font-size":"14px","line-height":"24px",color:"#2e2e2e"}},[e._v(" "+e._s(e.$t("FeaturedContent"))+" ")]),t("div",{staticClass:"flex flex-row flex-wrap justify-center mt-5",class:e.windowWidth>745?"px-10":"px-5"},e._l(e.getPlanChildServices(e.plan),(function(a){return t("div",{key:`${e.plan.id} - ${a.title}`,staticClass:"flex justify-center p-1 rounded-full border mb-2.5 me-3",class:e.windowWidth>745?"w-18":"w-14"},[a.icon.url?t("img",{attrs:{src:e.$store.state.cmsBackendHost+a.icon.url,alt:a.name}}):e._e()])})),0)]):e._e()])},Zo=[],qo={name:"GhostPlanCard",mixins:[ws],computed:{hasCommitments(){return this.$store.getters.hasCommitments},windowWidth(){return this.$store.state.windowWidth},showDisclaimer(){return 0===this.getPlanBenefits(this.plan).filter(e=>e.name.toLowerCase().includes("sim")).length&&this.hasDataSharing}},props:{plan:{type:Object,default:()=>{}},isSelected:{type:Boolean,default:!1},isSelectable:{type:Boolean,default:!1},isPlanPage:{type:Boolean,default:!1},hasDataSharing:{type:Boolean,default:!1}},methods:{getPlanBenefits(e){var t;return null!==(t=null===e||void 0===e?void 0:e.benefits)&&void 0!==t?t:[]},getPlanChildServices(e){var t;return null!==(t=null===e||void 0===e?void 0:e.childServices)&&void 0!==t?t:[]},getPlanDevices(e){var t;return this.hasCommitments?[]:null!==(t=null===e||void 0===e?void 0:e.devices)&&void 0!==t?t:[]}}},Ko=qo,Yo=(a("0212"),Object(v["a"])(Ko,Go,Zo,!1,null,"66de9dde",null)),Wo=Yo.exports,Qo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-center"},[e._m(0),t("div",{staticClass:"pt-3"},[t("span",{staticClass:"font-bold"},[e._v(e._s(e.$t("Success!")))])]),t("div",[t("div",{staticClass:"mt-3"},[t("span",[e._v(e._s(e.$t("YouAreNowSubscribedToThe "))+" ")]),t("span",{staticClass:"font-bold"},[e._v(e._s(e.positionedPrice(e.plan.price,!1,0)))]),t("span",[e._v(" "+e._s(e.$t("PlanAndYour")))]),t("span",{staticClass:"font-bold text-primary"},[e._v(e._s(e.$t("FREEOnUs")))]),t("span",[e._v(e._s(e.$t("ContentAllowanceHasBeen")))]),t("span",{staticClass:"font-bold text-primary"},[e._v(e._s(e.$t("Upgraded")))]),e.$store.getters.hasCommitments?t("div",[t("div",{staticClass:"my-5"},[t("div",{staticClass:"font-bold mb-1"},[e._v(" "+e._s(e.$t("GhostSuccessNoCommitmentsTitle"))+" ")]),t("div",{staticClass:"text-sm"},[e._v(" "+e._s(e.$t("GhostSuccessNoCommitmentsDescription"))+" ")])])]):e._e(),t("z-button",{staticClass:"w-full",staticStyle:{"margin-top":"30px"},attrs:{outlined:""},on:{click:e.backToHome}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("BackToHome"))+" ")])])],1)])])},Xo=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex justify-center"},[t("div",{staticClass:"flex flex-col justify-center items-center h-16 w-16 rounded rounded-full bg-primary bg-opacity-5 text-center"},[t("span",{staticClass:"icon-app-Ghost-confirmation-new text-primary text-4xl font-bold"})])])}],Jo={name:"GhostSuccess",components:{ZButton:R},mixins:[ws],props:{backToHome:{type:Function,default:()=>{}},plan:{type:Object,default:()=>{}}}},el=Jo,tl=Object(v["a"])(el,Qo,Xo,!1,null,"0c6341b1",null),al=tl.exports,sl={name:"GhostConfirmPlanModal",components:{GhostSuccess:al,StatusModal:Ps,ZButton:R,ZModal:Be,GhostPlanCard:Wo},props:{value:{type:Boolean,default:!1},plan:{type:Object,default:()=>{}},isUpsell:{type:Boolean,default:!1},ott:{type:Object,default:()=>{}}},data(){return{localValue:!1,isStatusModalActive:!1,showGhostSuccessModal:!1}},watch:{value(e){this.localValue=e}},methods:{onModalCancel(){this.showGhostSuccessModal?this.onClickBackToHome():this.$emit("input",!1)},onClickBackToHome(){"/"===this.$route.path?this.onModalCancel():this.$router.push("/")},async onConfirm(){const e=e=>{console.error(e),this.isStatusModalActive=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:e}})};await this.$store.dispatch("ghostPostpaid/setIsUpsell",this.isUpsell);try{const t=this.isUpsell?"ghostPostpaid/changePlanWithPartnerService":"ghostPostpaid/changePlan",a=await this.$store.dispatch(t),s=a.data.isSuccess;if(s)return void(this.showGhostSuccessModal=!0);e(a.data.message)}catch(t){this.onModalCancel(),e(t)}},onStatusModalCancel(){this.isStatusModalActive=!1}}},il=sl,nl=Object(v["a"])(il,Vo,Ho,!1,null,"5061805b",null),rl=nl.exports,ol=function(){var e=this,t=e._self._c;return t("z-modal",{attrs:{active:e.localActive,"can-cancel":"","on-cancel":e.onCancel},on:{"update:active":function(t){e.localActive=t}}},[t("div",{staticClass:"py-16"},[t("z-loading",{attrs:{"is-full-page":!0,active:e.changeOTTLoading},on:{"update:active":function(t){e.changeOTTLoading=t}}}),null===this.result?t("div",[t("div",{staticClass:"flex justify-center"},[e.ott&&e.ott.icon&&e.ott.icon.url?t("img",{staticClass:"OTT-image",attrs:{alt:"ott",src:e.$store.state.cmsBackendHost+this.ott.icon.url}}):e._e()]),t("div",{staticClass:"pt-3 mb-5 px-3"},[e.canDeactivate?e._e():t("span",{staticClass:"font-bold"},[e._v(e._s(e.$t("YouActivatedThisContentLessThanDaysAgo",{days:90}))+" ")]),e.canDeactivate?t("span",{staticClass:"font-bold"},[e._v(e._s(e.$t("YoureAboutToDeactivateThisService"))+" ")]):e._e()]),t("div",[t("div",{staticClass:"px-6 lg:px-26 sm:px-16 pt-3"},[e.canDeactivate?e._e():t("div",{staticClass:"mb-5"},[t("span",[e._v(e._s(e.$t("YouCouldSwapOrDeactivateThisContentStarting")))]),e.deactivationDate?t("span",{staticClass:"font-bold text-primary"},[e._v(e._s(e.prettyDate(this.deactivationDate.toISOString())))]):e._e()]),e.canDeactivate?t("div",{staticClass:"mb-5"},[t("span",[e._v(e._s(e.$t("ThisMeansYourAccountOnThisPlatformWillBeDeactivated")))])]):e._e(),e.canDeactivate?e._e():t("z-button",{staticClass:"w-full",staticStyle:{"margin-top":"30px"},attrs:{outlined:""},on:{click:e.backToHome}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("BackToHome"))+" ")])]),e.canDeactivate?t("z-button",{staticClass:"w-full",staticStyle:{"margin-top":"30px"},on:{click:e.deactivate}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("Confirm"))+" ")])]):e._e(),e.canDeactivate?t("z-button",{staticClass:"w-full text-primary",staticStyle:{"margin-top":"30px"},attrs:{borderless:""},on:{click:e.backToHome}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("Cancel"))+" ")])]):e._e()],1)])]):e._e(),this.result?t("div",[t("div",{staticClass:"flex justify-center"},[t("div",{staticClass:"flex flex-col justify-center items-center h-16 w-16 rounded rounded-full bg-primary bg-opacity-5 text-center"},[t("span",{staticClass:"text-primary text-4xl font-bold",class:{"icon-app-ghost-error-new":"error"===e.result,"icon-app-Ghost-confirmation-new":"success"===e.result}})])]),t("div",{staticClass:"pt-3"},[t("span",{staticClass:"font-bold"},[e._v(" "+e._s("success"===this.result?e.$t("Success!"):e.$t("AnErrorOccurred"))+" ")])]),t("div",[t("div",{staticClass:"px-6 lg:px-26 sm:px-16 pt-3"},[t("span",[e._v(" "+e._s("success"===this.result?e.$t("YouDeactivatedYourSubscriptionSuccessfully",{subscription:this.ott.title}):e.$t("RequestError"))+" ")]),t("z-button",{staticClass:"w-full",staticStyle:{"margin-top":"30px"},attrs:{outlined:""},on:{click:e.backToHome}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("BackToHome"))+" ")])])],1)])]):e._e()],1)])},ll=[],cl={name:"GhostDeactivationModal",components:{ZButton:R,ZModal:Be,ZLoading:Je},data(){return{result:null,changeOTTLoading:!1,isStatusModalActive:!1}},mixins:[ni],props:{deactivationModalIsActive:Boolean,backToHome:Function,ott:{type:Object},onCancel:Function},computed:{localActive:{get(){return this.deactivationModalIsActive},set(e){this.$emit("update:deactivationModalIsActive",e)}},canDeactivate(){var e,t;const a=null===this||void 0===this||null===(e=this.ott)||void 0===e||null===(t=e.partnerSubscription)||void 0===t?void 0:t.startDate,s=new Date(a);if(!a)return!1;const i=new Date;return parseInt((i-s)/864e5,10)>=90||"bundle"!==this.ott.partnerSubscription.supscriptionType},deactivationDate(){var e,t,a,s;const i=null===this||void 0===this||null===(e=this.ott)||void 0===e||null===(t=e.partnerSubscription)||void 0===t?void 0:t.startDate,n=new Date(null===this||void 0===this||null===(a=this.ott)||void 0===a||null===(s=a.partnerSubscription)||void 0===s?void 0:s.startDate);return!!i&&new Date(n.getTime()+78624e5)}},watch:{deactivationModalIsActive(e){e&&(this.result=null)}},methods:{async deactivate(){this.changeOTTLoading=!0;try{await this.$store.dispatch("callApi",{apiMethod:G["a"].deactivateOTT,args:{msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber,code:this.ott.partnerSubscription.code,type:"addon-promotion"===this.ott.partnerSubscription.supscriptionType?"addon":this.ott.partnerSubscription.supscriptionType}}),setTimeout(()=>{this.$store.dispatch("fetchResource",{resource:ae["b"].OTTS,force:!0}),this.changeOTTLoading=!1},3e3),this.result="success"}catch(e){this.result="error",console.log(e),this.changeOTTLoading=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Ghost deactivation error"}})}}}},dl=cl,ul=(a("a199"),Object(v["a"])(dl,ol,ll,!1,null,"b3bb11a8",null)),pl=ul.exports,ml=function(){var e=this,t=e._self._c;return t("z-modal",{staticClass:"bg-opacity-80",attrs:{active:e.localActive,"on-cancel":e.cancel,"has-max-height":!1},on:{"update:active":function(t){e.localActive=t}}},[e.isValidatingCivilId?t("div",[t("div",{staticClass:"p-4"},[t("validate-line",{attrs:{"validation-line":{msisdn:this.$store.state.msisdn,basic_service_type:this.$store.getters.getBasicServiceType.toUpperCase()}},on:{input:e=>this.lineValidateCode=e}}),t("z-button",{staticClass:"w-3/5",attrs:{size:"small"},on:{click:e.subscribe}},[e._v(e._s(e.$t("Verify")))])],1)]):null===e.result?t("div",{staticClass:"pb-1 h-full"},[e.journey.heroImage?t("img",{staticClass:"object-fill",staticStyle:{width:"100%"},attrs:{src:e.$store.state.cmsBackendHost+e.journey.heroImage,alt:e.journey.name}}):e._e(),t("div",{staticClass:"content-center m-7"},[t("div",{},[t("span",{domProps:{innerHTML:e._s(e.mainText)}}),"DCB"===e.journey.ottType?t("div",{staticClass:"mb-12"},[t("span",{staticClass:"text-green-dark font-bold"},[e._v("KD "+e._s(this.ott.price))]),t("span",{staticClass:"text-gray-500"},[e._v("/"+e._s(e.$t("month")))])]):e._e(),t("div",{staticClass:"mb-3 mt-10"},[t("z-button",{staticClass:"w-full",attrs:{size:"small"},on:{click:e.subscribe}},[e._v(e._s(e.$t("Activate"))+" ")])],1),t("div",{staticClass:"mb-4 text-xs md:mx-10 text-justify"},[t("span",{staticClass:"space-y-3",domProps:{innerHTML:e._s(this.terms)}})]),t("z-button",{staticClass:"w-full text-primary",attrs:{borderless:""},on:{click:e.cancelModal}},[t("span",{staticClass:"uppercase text-sm"},[e._v(" "+e._s(e.$t("Cancel"))+" ")])])],1)])]):t("div",{staticClass:"pt-4 pb-1 h-full"},[t("z-loading",{attrs:{"is-full-page":!0,active:e.changeOTTLoading},on:{"update:active":function(t){e.changeOTTLoading=t}}}),t("div",{staticClass:"m-7 content-center"},[t("div",{staticClass:"flex justify-center"},[t("div",{staticClass:"flex flex-col justify-center items-center h-16 w-16 rounded rounded-full bg-primary bg-opacity-5 text-center"},[t("span",{staticClass:"text-primary text-4xl font-bold",class:{"icon-app-ghost-error-new":"error"===e.result,"icon-app-Ghost-confirmation-new":"success"===e.result}})])]),t("div",{staticClass:"pt-3"},[t("span",{staticClass:"font-bold"},[e._v(e._s("success"===e.result?e.$t("Success!"):e.$t("AnErrorOccurred")))])]),"success"===e.result?t("div",[t("div",[t("span",[e._v(e._s(e.$t("YouAreNowSubscribedTo")))])]),t("div",{staticClass:"flex flex-col justify-center items-center"},[e.journey.iconImage?t("img",{staticClass:"w-28",attrs:{alt:this.ott.title,src:e.$store.state.cmsBackendHost+e.journey.iconImage}}):e._e()]),t("div",{staticClass:"mb-6"},[t("span",[e._v(e._s(e.$t("OnYourNumber"))+" ")]),t("span",{staticClass:"text-primary font-bold"},[e._v(e._s(e.journey.subText+this.$store.state.msisdn))])]),t("div",{staticClass:"mb-12"},[t("span",{domProps:{innerHTML:e._s("ar"===this.$i18n.locale?e.journey.successTextAr.replaceAll("{{= MSISDN }}",this.$store.state.msisdn):e.journey.successText.replaceAll("{{= MSISDN }}",this.$store.state.msisdn))}})]),t("div",{staticClass:"mb-4"},[t("z-button",{staticClass:"w-3/5",attrs:{size:"small"},on:{click:e.openLink}},[e._v(e._s("ar"===this.$i18n.locale?e.journey.successButtonAr.text:e.journey.successButton.text)+" ")])],1)]):e._e(),"error"===e.result?t("div",{staticClass:"my-6"},[e._v(e._s(this.errorMessage))]):e._e(),t("div",{staticClass:"pb-8"},[t("z-button",{staticClass:"w-3/5",attrs:{size:"small",outlined:""},on:{click:e.cancel}},[e._v(e._s(e.$t("BackToHome")))])],1)])],1)])},hl=[],vl={name:"OTTJourneyModal",components:{ValidateLine:Na,ZModal:Be,ZButton:R,ZLoading:Je},props:{isModalActive:Boolean,cancelModal:Function,ott:Object,journey:Object},data(){return{changeOTTLoading:!1,result:null,isValidatingCivilId:!1,lineValidateCode:"",errorMessage:""}},computed:{localActive:{get(){return this.isModalActive},set(e){this.$emit("update:isModalActive",e)}},terms(){var e;return null!==(e=this.journey)&&void 0!==e&&e.terms?"ar"===this.$i18n.locale?this.journey.termsAr.text.replaceAll('target=""','target="_blank"').replaceAll("{price}",this.ott.price):this.journey.terms.text.replaceAll('target=""','target="_blank"').replaceAll("{price}",this.ott.price):""},mainText(){var e;return null!==(e=this.journey)&&void 0!==e&&e.mainText?"DCB"!==this.journey.ottType?"ar"!==this.$i18n.locale?this.journey.mainText:this.journey.mainTextAr:this.journey.promotion?"ar"!==this.$i18n.locale?this.journey.mainText.replaceAll("{duration}",this.journey.promotion.duration+" "+this.journey.promotion.durationType):this.journey.mainTextAr.replaceAll("{duration}",this.getArabicDurationText):"ar"!==this.$i18n.locale?this.journey.mainText.split(" + ")[0].split("(")[0]:this.journey.mainTextAr.split("مع")[0].split("(")[0]:""},getArabicDurationText(){let e=this.journey.promotion.duration,t=""+this.$tc("MonthWithPluralization",e);return e>2&&(t=`${e} ${t} `),t}},watch:{isModalActive(e){e&&(this.result=null)}},methods:{async subscribe(){var e;if(this.changeOTTLoading=!0,"DCB"!==(null===(e=this.journey)||void 0===e?void 0:e.ottType)||"sim"!==this.$store.state.loginType||this.isValidatingCivilId){this.changeOTTLoading=!0;try{var t,a,s;let e=await this.$store.dispatch("callApi",{apiMethod:G["a"].activateOTT,args:{msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber,serviceInfo:{serviceId:this.ott.id,journeyId:this.journey.id,lastDigits:this.lineValidateCode,otpValue:this.lineValidateCode}}});this.isValidatingCivilId=!1,setTimeout(()=>{this.$store.dispatch("fetchResource",{resource:ae["b"].OTTS,force:!0}),this.changeOTTLoading=!1},3e3),null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.isSuccess?this.result="success":this.result="error",this.errorMessage=null!==(a=null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.message)&&void 0!==a?a:this.$t("AnErrorOccurred"),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:this.errorMessage}})}catch(i){this.result="error",this.errorMessage=this.$t("RequestError"),console.log(i),this.changeOTTLoading=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:this.errorMessage}})}}else"VOICE"===this.$store.getters.getBasicServiceType.toUpperCase()&&await G["a"].validateOttOTP({msisdn:this.$store.state.msisdn,contractNumber:this.$store.getters.getContractNumber,locale:this.$i18n.locale}).then(()=>{}).catch(()=>{}),this.changeOTTLoading=!1,this.isValidatingCivilId=!0},cancel(){this.cancelModal(),this.isValidatingCivilId=!1,this.changeOTTLoading=!1},openLink(){window.open("ar"===this.$i18n.locale?this.journey.successButtonAr.webLink:this.journey.successButton.webLink)}}},gl=vl,fl=Object(v["a"])(gl,ml,hl,!1,null,"8a524e54",null),yl=fl.exports,bl=function(){var e=this,t=e._self._c;return t("z-modal",{attrs:{active:e.localActive,"on-cancel":()=>e.$emit("backToHome")},on:{"update:active":function(t){e.localActive=t}}},[t("div",{staticClass:"py-10 px-3.5"},[t("div",{staticClass:"flex justify-center"},[t("div",{staticClass:"flex flex-col justify-center items-center h-16 w-16 rounded rounded-full bg-primary bg-opacity-5 text-center"},[t("span",{staticClass:"icon-app-ghost-error-new text-primary text-4xl font-bold"})])]),t("div",{staticClass:"pt-3"},[t("span",{staticClass:"font-bold"},[e._v(e._s(e.title?e.title:e.$t("YouAlreadyHaveAnActiveSubscription",{ott:this.ottGroupName})))])]),t("div",{staticClass:"pt-3"},[t("span",[e._v(e._s(e.description?e.description:e.$t("YouCanOnlyHaveOneActiveSubscriptionAtATime",{ott:this.ottGroupName})))])]),t("div",[t("div",{staticClass:"px-6 lg:px-26 sm:px-16 pt-3"},[e.showHomeButton?t("z-button",{staticClass:"w-full",staticStyle:{"margin-top":"30px"},attrs:{outlined:""},on:{click:function(t){return e.$emit("backToHome")}}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("BackToHome"))+" ")])]):e._e(),e.showActivatePlanButton?t("z-button",{staticClass:"w-full",staticStyle:{"margin-top":"30px"},attrs:{outlined:""},on:{click:function(t){return e.$emit("activatePlan")}}},[t("span",{staticClass:"uppercase"},[e._v(" "+e._s(e.$t("ActivatePlan"))+" ")])]):e._e()],1)])])])},xl=[],Cl={name:"GhostStatusModal",components:{ZButton:R,ZModal:Be},props:{statusModalIsActive:Boolean,ottGroupName:String,title:{type:String,default:null},description:{type:String,default:null},showHomeButton:{type:Boolean,default:!0},showActivatePlanButton:{type:Boolean,default:!1}},computed:{localActive:{get(){return this.statusModalIsActive},set(e){this.$emit("update:statusModalIsActive",e)}}}},wl=Cl,_l=Object(v["a"])(wl,bl,xl,!1,null,"f175917c",null),Al=_l.exports,Sl={name:"GhostContent",data(){return{loading:!1,journey:{},journeyModalIsActive:!1,upsellModalIsActive:!1,confirmUpsellModalIsActive:!1,deactivationModalIsActive:!1,premiumNotPartOfPlan:!1,statusModalIsActive:!1,selectedOTT:{},swiperOptions:{breakpoints:{350:{slidesPerView:2,spaceBetween:10},540:{slidesPerView:3,spaceBetween:10},780:{slidesPerView:4,spaceBetween:10}}}}},props:{isQuad:{type:Boolean,default:()=>!1}},components:{ZLoading:Je,ZHeading:vn,SwiperSlide:Vi,PinkHR:so,Swiper:Li,GhostContentCard:Bo,GhostUpsellModal:Fo,GhostDeactivationModal:pl,OTTJourneyModal:yl,GhostConfirmPlanModal:rl,GhostStatusModal:Al},methods:{getJourneyId(e,t){return e.ottJourneys.find(e=>e.ottType===t).id},async activateOtt(e){var t,a,s,i,n,r,o;if(null!==this&&void 0!==this&&null!==(t=this.OTTs)&&void 0!==t&&t.quadPlayInfo)if((null===(a=this.OTTs)||void 0===a||null===(s=a.result)||void 0===s?void 0:s.filter(t=>t.groupName===e.groupName&&t.isInstalled&&""!==e.groupName).length)>0)this.statusModalIsActive=!0;else if((null===(i=this.OTTs)||void 0===i||null===(n=i.quadPlayInfo)||void 0===n?void 0:n.remainingPoints)>=e.points){const t=this.getJourneyId(e,"Allowance");await this.showJourney(t)}else{var l,c,d,u,p,m,h,v;if(e.points>(null===(r=this.OTTs)||void 0===r||null===(o=r.quadPlayInfo)||void 0===o?void 0:o.remainingPoints))if("gt"===(null===(l=this.OTTs)||void 0===l||null===(c=l.quadPlayInfo)||void 0===c||null===(d=c.nextActionSuggestion)||void 0===d||null===(u=d.criteria)||void 0===u?void 0:u.operator)&&(null===(p=this.OTTs)||void 0===p||null===(m=p.quadPlayInfo)||void 0===m||null===(h=m.nextActionSuggestion)||void 0===h||null===(v=h.criteria)||void 0===v?void 0:v.value)5,this.upsellModalIsActive=!0}else{const t=this.getJourneyId(e,"DCB");await this.showJourney(t)}}},async activateAsDCB(){const e=this.getJourneyId(this.selectedOTT,"DCB");await this.showJourney(e)},async showJourney(e){this.loading=!0;try{const i=await this.$store.dispatch("callApi",{apiMethod:G["a"].getOTTJourney,args:{msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber,journeyId:e}});var t,a,s;if(this.journey=i.data.result,this.journey.id=e,"DCB"===this.journey.ottType)this.journey.promotion=null===(t=this.OTTs)||void 0===t||null===(a=t.quadPlayInfo)||void 0===a||null===(s=a.promotions)||void 0===s?void 0:s.find(e=>e.code===this.selectedOTT.serviceCode);this.upsellModalIsActive=!1,this.journeyModalIsActive=!0}catch(i){console.log(i)}finally{this.loading=!1}},toggleOtt(e){switch(this.selectedOTT=e.ott,this.$set(this.selectedOTT,"_toggle",!e.ott.isInstalled),e.eventName){case"activate":this.activateOtt(e.ott);break;case"deactivate":this.deactivationModalIsActive=!0;break;case"upsell":this.upsellModalIsActive=!0;break}},onUpgrade(){this.$store.dispatch("ghostPostpaid/setSelectedOTT",this.selectedOTT),this.$store.dispatch("ghostPostpaid/setSelectedGhostPlan",this.upsellPlan),this.upsellModalIsActive=!1,this.hasCommitments?this.confirmUpsellModalIsActive=!0:(this.$store.dispatch("ghostPostpaid/setIsUpsell",!0),this.$router.push("/plan-details/checkout"))},onCancel(){this.$set(this.selectedOTT,"_toggle",void 0),this.deactivationModalIsActive=!1,this.journeyModalIsActive=!1,this.upsellModalIsActive=!1,this.statusModalIsActive=!1,this.confirmUpsellModalIsActive=!1,this.$nextTick((function(){this.selectedOTT=null}))},getPromotion(e){var t,a,s;return null===(t=this.OTTs)||void 0===t||null===(a=t.quadPlayInfo)||void 0===a||null===(s=a.promotions)||void 0===s?void 0:s.find(t=>t.code===e)},getIsWithinAllowance(e){var t,a,s;return null!==(t=(null===(a=this.OTTs)||void 0===a||null===(s=a.quadPlayInfo)||void 0===s?void 0:s.remainingPoints)>=e)&&void 0!==t&&t}},mixins:[se],computed:{hasCommitments(){return this.$store.getters.hasCommitments},OTTs(){var e,t,a,s,i;return(null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t[ae["b"].OTTS])||void 0===a||null===(s=a.data)||void 0===s||null===(i=s.result)||void 0===i?void 0:i.length)>0?this.$store.state[ae["b"].OTTS].data:{result:[]}},basicOTTs(){try{var e,t;return(null===(e=this.OTTs)||void 0===e||null===(t=e.result)||void 0===t?void 0:t.length)>0?this.OTTs.result.filter(e=>{var t,a;return"Basic"===(null===e||void 0===e||null===(t=e.ottJourneys)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.ottTierLabel)}):[]}catch(a){return console.log(a),[]}},premiumOTTs(){var e,t;return(null===(e=this.OTTs)||void 0===e||null===(t=e.result)||void 0===t?void 0:t.length)>0?this.OTTs.result.filter(e=>{var t,a;return"Premium"===(null===e||void 0===e||null===(t=e.ottJourneys)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.ottTierLabel)}):[]},availableSubscriptions(){var e,t,a,s,i,n,r,o,l;return null!==this&&void 0!==this&&null!==(e=this.$store)&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&t[ae["b"].PLANS].data&&null!==(a=null===(s=this.$store)||void 0===s||null===(i=s.state)||void 0===i||null===(n=i[ae["b"].PLANS].data)||void 0===n||null===(r=n.find(e=>e.isInstalled))||void 0===r||null===(o=r.benefits)||void 0===o||null===(l=o.find(e=>"Content"===e.description))||void 0===l?void 0:l.name.replace(/\D/g,""))&&void 0!==a?a:0},upsellPlan(){var e,t,a,s,i,n,r,o;return null!==this&&void 0!==this&&null!==(e=this.OTTs)&&void 0!==e&&e.quadPlayInfo&&null!==this&&void 0!==this&&null!==(t=this.$store)&&void 0!==t&&null!==(a=t.state)&&void 0!==a&&a[ae["b"].PLANS].data&&null!==(s=null===(i=this.$store)||void 0===i||null===(n=i.state)||void 0===n||null===(r=n[ae["b"].PLANS])||void 0===r||null===(o=r.data)||void 0===o?void 0:o.find(e=>{var t,a,s;return e.id===(null===(t=this.OTTs)||void 0===t||null===(a=t.quadPlayInfo)||void 0===a||null===(s=a.nextActionSuggestion)||void 0===s?void 0:s.planId)}))&&void 0!==s?s:{}}},mounted(){var e;this.initStateResources(ae["b"].PLANS),"#MyContent"===location.hash&&(null===(e=document.querySelector("#MyContent"))||void 0===e||e.scrollIntoView({behavior:"smooth"}));const t=decodeURIComponent(this.$store.state.pathParam);if(t){let e=0;const a=setInterval(()=>{if(this.OTTs.result&&this.OTTs.result.length>0){clearInterval(a);const e=this.OTTs.result.find(e=>e.urlSlug===t);e&&!e.isInstalled&&this.toggleOtt({ott:e,eventName:"activate"})}else 3===e&&clearInterval(a);e++},2e3)}}},Tl=Sl,kl=(a("0ead"),Object(v["a"])(Tl,$o,Mo,!1,null,"5df58210",null)),Pl=kl.exports,$l=function(){var e=this,t=e._self._c;return e.mappedGhostOrders.length>0?t("swiper",{key:e.mappedGhostOrders.length,attrs:{options:{...e.swiperOptions,enabled:e.mappedGhostOrders.length>1}}},e._l(e.mappedGhostOrders,(function(s){return t("swiper-slide",{key:s.status,staticClass:"w-full flex justify-center pb-8"},[t("CardWithTag",{staticClass:"max-w-6xl w-full my-3",attrs:{"show-tag":"","tag-label":e.$t("ORDER")}},[t("div",{staticClass:"px-5"},[t("div",{staticClass:"font-bold text-lg"},[e._v(" "+e._s(e.$t("ThankYouForYourOrder"))+" ")]),t("div",{staticClass:"text-sm text-gray-500"},[e._v(" "+e._s(e.$t("WeReceivedYourOrderYouCanTrackItHere"))+" ")]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isOrderStatusExpanded,expression:"isOrderStatusExpanded"}],staticClass:"animate-fade-in-down"},[t("div",{staticClass:"font-bold mb-6"},[e._v(" "+e._s(e.$t("OrderStatus"))+": ")]),e._l(s,(function(a,i){return t("div",{key:a.label,class:{"-mt-5":0!==i||i!==s.length-1}},[0!==i?t("div",{staticClass:"w-7"},[t("div",{staticClass:"mx-auto w-1/12 h-12 border-e-2",class:{"border-dotted text-gray-500 border-gray-500":!a.isComplete,"border-solid text-purple-800 border-purple-800":a.isComplete,"transform translate-y-2 ":0!==i}})]):e._e(),t("div",{staticClass:"flex items-center space-s-3 relative z-10"},[t("div",{staticClass:"h-7 w-7 text-white rounded-full flex justify-center items-center",class:{"bg-gray-500":!a.isComplete,"bg-purple-800":a.isComplete}},[t("span",{staticClass:"icon-delivery-truck-1"})]),t("div",{staticClass:"flex flex-col h-11 justify-center"},[t("div",{staticClass:"font-bold"},[e._v(e._s(e.$t(a.labelKey)))]),a.isComplete?t("div",{staticClass:"text-sm text-gray-500"},[e._v(" "+e._s(a.date)+" ")]):e._e()])])])}))],2)]),t("div",{staticClass:"text-primary font-bold text-center text-sm flex justify-center mt-4",attrs:{role:"button"},on:{click:e.onClickBottomButton}},[e._v(" "+e._s(e.$t("ViewOrderStatus"))+" "),t("img",{staticClass:"px-2 transform transition-transform inline-block w-8",class:{"-rotate-180":e.isOrderStatusExpanded},attrs:{src:a("a9bb"),alt:"arrow"}})])])],1)})),1):e._e()},Ml=[],Ol={name:"GhostOrderStatusBanner",components:{SwiperSlide:Vi,Swiper:Li,CardWithTag:fr},mixins:[se],computed:{ghostOrders(){var e,t,a,s;return null!==(e=null===(t=this.$store)||void 0===t||null===(a=t.state)||void 0===a||null===(s=a[ae["b"].GHOST_ORDERS])||void 0===s?void 0:s.data)&&void 0!==e?e:[]},mappedGhostOrders(){const e=[];for(let o of this.ghostOrders){var t,a,s,i,n,r;const l=null!==(t=null===(a=o.log)||void 0===a?void 0:a.find(e=>"OrderPlaced"===e.status))&&void 0!==t?t:null,c=null!==(s=null===(i=o.log)||void 0===i?void 0:i.find(e=>"OutForDelivery"===e.status))&&void 0!==s?s:null,d=null!==(n=null===(r=o.log)||void 0===r?void 0:r.find(e=>"Delivered"===e.status))&&void 0!==n?n:null;e.push([{labelKey:"OrderPlaced",date:l?new Date(null===l||void 0===l?void 0:l.date).toLocaleString():"",isComplete:!!(l||c||d),icon:""},{labelKey:"OutForDelivery",date:c?new Date(null===c||void 0===c?void 0:c.date).toLocaleString():"",isComplete:!(!c&&!d),icon:"delivery-truck-1"},{labelKey:"Delivered",date:d?new Date(null===d||void 0===d?void 0:d.date).toLocaleString():"",isComplete:!!d,icon:""}])}return e}},data(){return{isOrderStatusExpanded:!1,swiperOptions:{breakpoints:{350:{slidesPerView:1,spaceBetween:10}}}}},methods:{onClickBottomButton(){this.isOrderStatusExpanded=!this.isOrderStatusExpanded}},mounted(){this.initStateResources(ae["b"].GHOST_ORDERS)}},Nl=Ol,El=Object(v["a"])(Nl,$l,Ml,!1,null,"52a46718",null),Dl=El.exports,Il=a("84e7"),Bl=function(){var e=this,t=e._self._c;return e.services.length>0?t("div",{staticClass:"relative max-w-6xl mx-auto px-3"},[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("RoamingAdd-Ons"))+" ")]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.services,(function(a){return t("swiper-slide",{key:a.id,staticClass:"mb-8"},[t("addon-card",{attrs:{service:a},on:{toggleAddonEvent:e.onToggleService}})],1)})),1),t("service-confirmation-modal",{attrs:{service:e.currentService},on:{input:e.closeModal},model:{value:e.addServiceModal,callback:function(t){e.addServiceModal=t},expression:"addServiceModal"}}),t("pink-h-r",{staticClass:"mt-10",attrs:{noMargin:""}})],1):e._e()},Ll=[],Rl=function(){var e=this,t=e._self._c;return t("card-with-tag",[t("div",{staticClass:"flex flex-col justify-between items-center h-full px-2",staticStyle:{height:"280px"}},[t("div",[t("div",{staticClass:"text-center",class:e.service.icon.name.concat(" p-4 text-8xl"),staticStyle:{color:"#5b1f69"}}),t("div",{staticClass:"flex flex-col justify-center text-center",staticStyle:{"font-size":"13px"}},[t("div",{staticClass:"text-gray-500 mb-1 font-bold"},[e._v(" "+e._s("ar"===this.$i18n.locale?e.service.titleAr:e.service.title)+" ")]),t("div",[e.service.price>0?t("span",{staticClass:"text-sm"},[e._v(" "+e._s(e.service.price)+" "+e._s(e.$t("KD"))+" ")]):e._e(),t("span",[e._v(" "+e._s("ar"===this.$i18n.locale?this.service.priceDescriptionAr:this.service.priceDescription)+" ")])])])]),t("div",{staticClass:"mb-8"},[t("z-toggle",{attrs:{value:e.isInstalled,size:"medium"},on:{input:t=>e.toggle(e.service,t)}})],1)])])},Ul=[],zl={name:"AddonCard",components:{ZToggle:Ft,CardWithTag:fr},props:{service:{type:Object,required:!0,default:()=>{}}},computed:{isInstalled:{get(){return"undefined"===typeof this.service._toggle?this.service.isInstalled:this.service._toggle},set(e){e!==this.service.isInstalled&&this.toggle()}}},methods:{toggle(e){this.$emit("toggleAddonEvent",{service:this.service,value:e})}}},jl=zl,Fl=Object(v["a"])(jl,Rl,Ul,!1,null,"7ca38f70",null),Vl=Fl.exports,Hl={name:"RoamingCarousel",components:{PinkHR:so,ServiceConfirmationModal:nr,AddonCard:Vl,SwiperSlide:Vi,Swiper:Li,ZHeading:vn},data(){return{swiperOptions:{breakpoints:{350:{slidesPerView:2,spaceBetween:10},540:{slidesPerView:3,spaceBetween:10},780:{slidesPerView:4,spaceBetween:10}}},addServiceModal:!1,currentService:{}}},props:{services:{required:!0,default:()=>{}}},methods:{onToggleService(e){this.currentService=e.service,this.$set(this.currentService,"_toggle",!e.service.isInstalled),this.addServiceModal=!0},closeModal(){this.addServiceModal=!1,this.$set(this.currentService,"_toggle",void 0)}}},Gl=Hl,Zl=Object(v["a"])(Gl,Bl,Ll,!1,null,"541687f0",null),ql=Zl.exports,Kl=function(){var e=this,t=e._self._c;return e.showBanner&&e.journeyId&&e.disneyOtt?t("div",{key:e.windowWidth},[t("z-loading",{attrs:{active:e.loading,"is-full-page":!0,"background-classes":"bg-opacity-60"}}),e.windowWidth>745?t("div",[t("div",{staticClass:"px-3 md:px-10 h-32 bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center relative",staticStyle:{"margin-bottom":"24px"}},[t("div",{staticClass:"flex justify-between"},[t("div",{staticClass:"pointer-events-none"},[t("img",{staticClass:"overflow-hidden absolute left-0",staticStyle:{"max-height":"100%"},attrs:{alt:"5g",src:a("978f")}})]),t("div",{staticClass:"flex flex-col justify-center items-center py-4"},[t("div",{staticClass:"text-center px-3 font-bold",style:e.titleFontSize},[e._v(e._s(e.$t("DisneyOfferBannerText")))]),t("div",{staticClass:"justify-center py-1.5"},[t("img",{staticClass:"justify-center",staticStyle:{height:"16px",width:"auto"},attrs:{src:a("3f98"),alt:"5G Banner"}})]),t("div",{staticClass:"mt-2 flex justify-center"},[t("z-button",{staticClass:"mb-2 font-bold rounded-xl w-full p-y0",staticStyle:{width:"143px","padding-right":"0","padding-left":"0","border-radius":"8px"},attrs:{size:"xsmall",outlined:""},on:{click:e.showJourney}},[e._v(" "+e._s(e.$t("ActivateNow"))+" ")])],1)]),t("div",{staticClass:"pointer-events-none invisible"})])])]):t("div",[t("div",{staticClass:"bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-6xl mx-auto text-center relative",staticStyle:{"margin-bottom":"24px"}},[t("div",{class:e.flexDir,staticStyle:{height:"151px !important"}},[t("div",{staticClass:"w-1/2 z-0 pointer-events-none flex",class:e.imageJustify},[t("div",{staticClass:"pointer-events-none"},[t("img",{staticStyle:{height:"151px",width:"auto"},attrs:{alt:"5g",src:a("dc92")}})])]),t("div",{staticClass:"flex flex-col w-1/2 pr-4 py-4 justify-between",staticStyle:{height:"151px"}},[t("div",{staticClass:"text-sm font-bold"},[e._v(e._s(e.$t("DisneyOfferBannerText")))]),t("div",{staticClass:"justify-center py-1.5"},[t("img",{staticClass:"justify-center",attrs:{src:a("3f98"),alt:"5G Banner"}})]),t("div",{staticClass:"mt-2 flex justify-center"},[t("z-button",{staticClass:"font-bold rounded-xl w-full p-y0",staticStyle:{width:"143px","padding-right":"0","padding-left":"0","border-radius":"8px"},attrs:{size:"xsmall",outlined:""},on:{click:e.showJourney}},[e._v(" "+e._s(e.$t("ActivateNow"))+" ")])],1)])])])]),t("OTTJourneyModal",{attrs:{"cancel-modal":e.onCancel,"is-modal-active":e.journeyModalIsActive,journey:e.journey,ott:e.disneyOtt}})],1):e._e()},Yl=[],Wl={name:"DisneyOfferBanner",data(){return{journeyModalIsActive:!1,loading:!1,journey:{}}},components:{ZLoading:Je,OTTJourneyModal:yl,ZButton:R},computed:{OTTs(){var e,t;return null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t?void 0:t[ae["b"].OTTS]},windowWidth(){return this.$store.state.windowWidth},showBanner(){var e,t,a,s,i;return null!==(e=null===(t=this.OTTs)||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.quadPlayInfo)||void 0===s||null===(i=s.promotions)||void 0===i?void 0:i.some(e=>"DISNEY-PLUS"===e.code))&&void 0!==e&&e},flexDir(){return"ar"===this.$i18n.locale?"flex justify-between flex-row-reverse":"flex justify-between items-center"},imageJustify(){return"ar"===this.$i18n.locale?"justify-end":"justify-start"},disneyOtt(){var e,t,a,s;return null!==(e=null===(t=this.OTTs)||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.result)||void 0===s?void 0:s.find(e=>"DISNEY-PLUS"===e.serviceCode))&&void 0!==e?e:null},journeyId(){var e,t,a,s;return null!==(e=null===(t=this.disneyOtt)||void 0===t||null===(a=t.ottJourneys)||void 0===a||null===(s=a.find(e=>e.ottType="DCB"))||void 0===s?void 0:s.id)&&void 0!==e?e:null},titleFontSize(){return"ar"===this.$i18n.locale?"font-size: 16px":"font-size: 15px"}},methods:{onCancel(){this.journeyModalIsActive=!1},async showJourney(){this.loading=!0;try{var e,t,a,s;const i=await this.$store.dispatch("callApi",{apiMethod:G["a"].getOTTJourney,args:{msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber,journeyId:this.journeyId}});this.journey=i.data.result,this.journey.id=this.journeyId,this.journey.promotion=null===(e=this.OTTs)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.quadPlayInfo)||void 0===a||null===(s=a.promotions)||void 0===s?void 0:s.find(e=>"DISNEY-PLUS"===e.code),this.journeyModalIsActive=!0}catch(i){console.log(i)}finally{this.loading=!1}}}},Ql=Wl,Xl=Object(v["a"])(Ql,Kl,Yl,!1,null,"8d57a932",null),Jl=Xl.exports,ec=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rounded-xl p-4 flex flex-row space-s-3",staticStyle:{background:"#fcf1ca"},attrs:{role:"button"},on:{click:e.onClickBanner}},[e._m(0),t("div",{staticClass:"flex-grow"},[t("p",{staticClass:"font-bold text-lg"},[e._v(" "+e._s(e.$t("SactBannerTitle"))+" ")]),t("p",[e._v(" "+e._s(e.$t("SactBannerDescription"))+" ")])]),t("div",{staticClass:"m-auto"},[t("div",{staticClass:"icon-right-arrow transform",class:{"rotate-180":"ar"===e.$i18n.locale}})])])},tc=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"m-auto"},[t("div",{staticClass:"icon-Info"})])}],ac={name:"SactDashboardBanner",methods:{onClickBanner(){this.$router.push("/pay")}}},sc=ac,ic=Object(v["a"])(sc,ec,tc,!1,null,"22aaf0f5",null),nc=ic.exports,rc={name:"Dashboard",mixins:[se],components:{SactDashboardBanner:nc,DisneyOfferBanner:Jl,RoamingCarousel:ql,GhostOrderStatusBanner:Dl,GhostOnBoardingBanner:Po,ECards:go,HappyTuesday:co,PinkHR:so,RechargeHistory:Qr,ZbotFixedCircle:Ur,Offers:Er,Services:cr,Commitments:On,Usage:Sn,PastBills:Pi,Balance:wi,GhostContent:Pl,GhostConfigurationBanner:wo},computed:{services(){var e;return null===(e=this.$store)||void 0===e?void 0:e.state[ae["b"].SERVICES]},isHappyTuesdayEnabled(){return ja["a"].HappyTuesday&&this.$store.state[ae["b"].HAPPY_TUESDAY].data},windowWidth(){return this.$store.state.windowWidth},isQuadValidity(){return this.$store.getters.getQuadValidity===this.quadValidities["QUAD"]},otts(){var e,t;return null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t?void 0:t[ae["b"].OTTS]},showDisneyBanner(){return!1}},data:()=>({quadValidities:Il["c"]}),beforeDestroy(){},mounted(){this.initStateResources(ae["b"].SERVICES,ae["b"].PLANS,ae["b"].OTTS,ae["b"].USER_INFO,ae["b"].PREPAID_MANAGEMENT,ae["b"].BALANCE),ja["a"].HappyTuesday&&this.initStateResources(ae["b"].HAPPY_TUESDAY)},async beforeMount(){await this.initStateResources(ae["b"].OTTS)}},oc=rc,lc=Object(v["a"])(oc,ti,ai,!1,null,"720f864d",null),cc=lc.exports,dc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"max-w-3xl mx-2 md:mx-auto xl:max-w-5xl"},[t("z-card",{staticClass:"p-5"},[t("div",{staticClass:"relative h-16"},[t("z-loading",{attrs:{"is-full-page":!1,active:e.contractLines.loading}}),e.contractLines.data&&e.contractLines.data.SubscriberInfo?t("z-list-box",{staticClass:"text-start text-gray-500",attrs:{label:"View Bill For"},on:{input:function(t){return e.getLineBalance()}},model:{value:e.selectedLine,callback:function(t){e.selectedLine=t},expression:"selectedLine"}},[t("z-list-box-item",{attrs:{value:null}},[e._v(" All Numbers ")]),e._l(e.contractLines.data.SubscriberInfo,(function(a){return t("z-list-box-item",{key:a.MSISDN,attrs:{value:a.MSISDN}},[e._v(" "+e._s(a.MSISDN)+" ")])}))],2):e._e()],1),t("div",{staticClass:"my-4"},[t("div",{staticClass:"text-gray-500"},[e._v(" Total Bill ")]),t("div",{staticClass:"text-green text-3xl font-bold relative"},[t("z-loading",{attrs:{"is-full-page":!1,active:e.balance.loading||e.contractBalance.loading},on:{"update:active":function(t){return e.$set(e.balance.loading||e.contractBalance,"loading",t)}}}),e._v(" "+e._s(e.positionedPrice(e.selectedBalance))+" ")],1),t("div",{staticClass:"text-sm text-gray-500"},[e._v(" 4 days until your next bill ")])]),t("div",[t("z-button",{staticClass:"w-full"},[e._v(" "+e._s(e.$t("PayBill"))+" ")])],1)]),t("pink-h-r"),t("div",{staticClass:"font-bold text-2xl my-2"},[e._v(" Manage Lines ")]),t("z-card",{staticClass:"p-5 relative h-40"},[t("z-loading",{attrs:{"is-full-page":!1,active:e.contractLines.loading}}),e.contractLines.data&&e.contractLines.data.SubscriberInfo?t("div",{staticClass:"flex items-center justify-center"},[t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-gray-500"},[e._v(" No. Of Lines ")]),t("div",{staticClass:"font-bold text-3xl"},[e._v(" "+e._s(e.contractLines.data.SubscriberInfo.length)+" ")]),t("div",{staticClass:"mt-5"},[t("z-button",[e._v(" VIEW ALL LINES ")])],1)]),t("div",{staticClass:"flex self-start flex-col"},[t("div",{staticClass:"w-0.5 h-14 bg-gray-100"})]),t("div",{staticClass:"w-full"},[t("div",{staticClass:"text-gray-500"},[e._v(" Active Lines ")]),t("div",{staticClass:"font-bold text-3xl text-green"},[e._v(" "+e._s(e.activeLines.length)+" ")]),t("div",{staticClass:"mt-5"},[t("z-button",{attrs:{outlined:""}},[e._v(" ADD NEW LINE ")])],1)])]):e._e()],1),t("div",{staticClass:"flex mt-2 space-x-2"},[t("div",{staticClass:"w-full"},[t("z-card",{staticClass:"p-5 relative"},[t("div",{staticClass:"flex items-center justify-center flex-col space-y-2"},[t("img",{staticClass:"w-8 h-8",attrs:{alt:"bills icon",src:a("1ee8")}}),t("div",[e._v(" "+e._s(e.$t("Bills"))+" ")])])])],1),t("div",{staticClass:"w-full"},[t("z-card",{staticClass:"p-5 relative"},[t("div",{staticClass:"flex items-center justify-center flex-col space-y-2"},[t("img",{staticClass:"w-8 h-8",attrs:{alt:"bills icon",src:a("18de")}}),t("div",[e._v(" "+e._s(e.$t("Usage"))+" ")])])])],1)])],1)},uc=[],pc={name:"B2BDashboard",components:{ZLoading:Je,PinkHR:so,ZButton:R,ZListBoxItem:Ze,ZListBox:ze,ZCard:pe},mixins:[ws,se],computed:{contractLines(){return this.$store.state[ae["b"].CONTRACT_LINES]},activeLines(){return this.contractLines.data.SubscriberInfo.filter(e=>"Active"===e.Status)},balance(){return this.$store.state[ae["b"].BALANCE]},contractBalance(){return this.$store.state[ae["b"].CONTRACT_BALANCE]},selectedBalance(){const e=this.selectedLine?this.balance.data.PastDue+this.balance.data.Unbilled:this.contractBalance.data.PastDue+this.contractBalance.data.Unbilled;return isNaN(e)?0:e}},data(){return{selectedLine:null}},methods:{async getLineBalance(){this.selectedLine&&await this.$store.dispatch("fetchResource",{resource:ae["b"].BALANCE,payload:{msisdn:this.selectedLine},force:!0})}},mounted(){this.initStateResources(ae["b"].CONTRACT_LINES,ae["b"].CONTRACT_BALANCE)}},mc=pc,hc=Object(v["a"])(mc,dc,uc,!1,null,"fd597d34",null),vc=hc.exports,gc=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"px-3 mt-4"},[t("quick-pay",{attrs:{"show-back-button":!1}})],1),t("pink-h-r"),t("offers")],1)},fc=[],yc=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mt-6 md:mt-12 mx-3 md:max-w-xl md:mx-auto font-extrabold text-2xl mb-4 relative flex justify-between items-center ps-2"},[t("span",[e._v(" "+e._s(e.currentQuickPayStep===e.quickPayStep.PAYMENT_DETAILS?e.$t("QuickPay"):e.$t("Payment"))+" ")])]),"anonymous"===e.$store.state.loginType&&!e.$store.state.quickPay.captchaVerified&&e.showCaptcha?t("captcha",{staticClass:"mt-9",on:{verify:e.onCaptchaResult}}):e._e(),t("div",{staticClass:"lg:mt-3 mb-14 mx-3 md:max-w-xl md:mx-auto relative"},[t("z-loading",{staticClass:"override-loading",attrs:{"is-full-page":!1,active:e.$store.state.quickPay.loading}}),t("validation-observer",{ref:"observer",scopedSlots:e._u([{key:"default",fn:function({valid:s}){var i;return[e.quickPayReady?t("div",{directives:[{name:"show",rawName:"v-show",value:e.currentQuickPayStep===e.quickPayStep.PAYMENT_DETAILS,expression:"currentQuickPayStep === quickPayStep.PAYMENT_DETAILS"}]},[t("z-tabs",{attrs:{customOuterClasses:"rounded-ts-lg dark:bg-gray-900 bg-white rounded-te-lg shadow-lg"},model:{value:e.selectedTab,callback:function(t){e.selectedTab=t},expression:"selectedTab"}},[t("z-tab-item",{attrs:{label:e.$t("PayBill")}},[t("quick-pay-postpaid")],1),t("z-tab-item",{attrs:{label:e.$t("EezeeRecharge")}},[t("quick-pay-prepaid")],1)],1),t("div",{staticClass:"border-t border-primary border-opacity-30 p-5 mt-10"},[t("div",{staticClass:"flex justify-between text-2xl font-bold"},[t("div",[e._v(" "+e._s(e.$t("Total"))+" ")]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.billTotal<=5e3,expression:"billTotal <= 5000"}],staticClass:"text-green"},[e._v(" "+e._s(e.positionedPrice(e.billTotal))+" ")])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.billTotal>5e3,expression:"billTotal > 5000"}],staticClass:"rounded-md relative overflow-visible p-3 my-3 text-sm bg-danger bg-opacity-10 text-danger flex space-s-2 items-center"},[t("img",{staticClass:"inline-block w-6",attrs:{src:a("6999"),alt:""}}),t("p",{staticClass:"m-0"},[e._v(e._s(e.$t("AmountMustBeBetween",{from:(null===(i=e.terminatedBalance)||void 0===i?void 0:i.Total)>0?"30":"1",to:"5000"})))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isTerminatedAmountBelow30,expression:"isTerminatedAmountBelow30"}],staticClass:"rounded-md relative overflow-visible p-3 my-3 text-sm bg-danger bg-opacity-10 text-danger flex space-s-2 items-center"},[t("img",{staticClass:"inline-block w-6",attrs:{src:a("6999"),alt:""}}),t("p",{staticClass:"m-0"},[e._v(e._s(e.$t("TerminatedDuesNotLessThan30")))])]),t("z-button",{staticClass:"w-full mt-7 uppercase",attrs:{disabled:!e.canProceedToPaymentMethod||!s},on:{click:()=>e.currentQuickPayStep=e.quickPayStep.PAYMENT_METHOD}},[e._v(" "+e._s(0===e.selectedTab?e.$t("ProceedToPay"):e.$t("ProceedToRecharge"))+" ")])],1)],1):e._e(),e.currentQuickPayStep===e.quickPayStep.PAYMENT_METHOD?t("quick-pay-payment-method",{attrs:{"valid-form":s}}):e._e()]}}])})],1)],1)},bc=[],xc=a("d9f3"),Cc=function(){var e=this,t=e._self._c;return e.ready?t("div",[t("div",{staticClass:"bg-white dark:bg-gray-700 px-5 pt-5 shadow-xl",class:{"rounded-bl-lg rounded-br-lg":!e.$store.state.quickPay.selectedMyLines.length&&e.selectedNumberSelectionType===e.numberSelectionTypes.MY_NUMBERS}},[e.$store.getters["quickPay/getTerminatedBalance"].Total>0?t("div",{staticClass:"mb-4"},[t("SactQuickpayBanner")],1):e._e(),t("z-list-box",{staticClass:"pb-4",attrs:{label:e.$t("IWouldLikeToPayFor"),"mobile-drop-down-label":e.$t("SelectAnOption")},model:{value:e.selectedNumberSelectionType,callback:function(t){e.selectedNumberSelectionType=t},expression:"selectedNumberSelectionType"}},[e.linesBalances.length>0?t("z-list-box-item",{attrs:{value:e.numberSelectionTypes.MY_NUMBERS}},[t("div",{staticClass:"flex justify-between"},[t("div",[e._v(e._s(e.$t("MyNumbers")))])])]):e._e(),t("z-list-box-item",{attrs:{value:e.numberSelectionTypes.OTHER_NUMBER}},[t("div",{staticClass:"flex justify-between"},[t("div",[e._v(e._s(e.$t("OtherNumber")))])])]),t("z-list-box-item",{attrs:{value:e.numberSelectionTypes.CONTRACT_NUMBER}},[t("div",{staticClass:"flex justify-between"},[t("div",[e._v(e._s(e.$t("ContractNumber")))])])])],1),e.selectedNumberSelectionType===e.numberSelectionTypes.MY_NUMBERS?t("z-list-box",{staticClass:"pb-4",attrs:{"multi-select":"","multi-select-label-field":"msisdn","always-dropdown":"",customCheckbox:!0,label:e.$t("NumbersSelected")},model:{value:e.$store.state.quickPay.selectedMyLines,callback:function(t){e.$set(e.$store.state.quickPay,"selectedMyLines",t)},expression:"$store.state.quickPay.selectedMyLines"}},[t("z-list-box-item",{attrs:{"custom-checkbox":!0,"is-select-all":"","highlight-background":""},scopedSlots:e._u([{key:"activeCheckbox",fn:function(){return[t("div",{staticClass:"rounded-xl border border-primary h-4 w-4 flex justify-center items-center"},[t("div",{staticClass:"rounded-xl bg-primary h-2 w-2"})])]},proxy:!0},{key:"notActiveCheckbox",fn:function(){return[t("div",{staticClass:"rounded-xl border border-primary h-4 w-4"})]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"flex justify-between items-center h-12"},[t("div",{staticClass:"text-start"},[t("div",[e._v(e._s(e.$t("All")))])]),t("div",[e._v(" "+e._s(e.positionedPrice(e.$store.getters["quickPay/billTotal"]))+" ")])])]},proxy:!0}],null,!1,1794412897)}),e._l(e.linesBalances,(function(a,s){return t("z-list-box-item",{key:s,attrs:{value:a,"custom-checkbox":"","highlight-background":""},scopedSlots:e._u([{key:"activeCheckbox",fn:function(){return[t("div",{staticClass:"rounded-xl border border-primary h-4 w-4 flex justify-center items-center"},[t("div",{staticClass:"rounded-xl bg-primary h-2 w-2"})])]},proxy:!0},{key:"notActiveCheckbox",fn:function(){return[t("div",{staticClass:"rounded-xl border border-primary h-4 w-4"})]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"flex justify-between items-center"},[t("div",{staticClass:"text-start"},[t("div",[e._v(e._s(a.msisdn))]),t("div",{staticClass:"text-gray-500 dark:text-gray-400 text-sm"},[e._v(e._s(a.nickname))])]),t("div",[e._v(e._s(e.positionedPrice(a.amount)))])])]},proxy:!0}],null,!0)})})),e.$store.getters["quickPay/getTerminatedBalance"].Total>0?t("z-list-box-item",{attrs:{value:e.$store.getters["quickPay/getTerminatedDefaultLine"],"custom-checkbox":"","highlight-background":""},scopedSlots:e._u([{key:"activeCheckbox",fn:function(){return[t("div",{staticClass:"rounded-xl border border-primary h-4 w-4 flex justify-center items-center"},[t("div",{staticClass:"rounded-xl bg-primary h-2 w-2"})])]},proxy:!0},{key:"notActiveCheckbox",fn:function(){return[t("div",{staticClass:"rounded-xl border border-primary h-4 w-4"})]},proxy:!0},{key:"default",fn:function(){return[t("SactQuickpayNumberSelection")]},proxy:!0}],null,!1,2062445289)}):e._e()],2):e._e(),e.selectedNumberSelectionType===e.numberSelectionTypes.MY_NUMBERS&&e.$store.getters["quickPay/allOrderLines"].length>0?t("div",[t("quick-pay-amount-type",{attrs:{"selected-payment-amount-type":e.selectedPaymentAmountType,"total-amount":e.$store.getters["quickPay/getSelectedNumbersTotals"],"due-amount":e.$store.getters["quickPay/getSelectedNumbersDues"],"other-amount":e.$store.getters["quickPay/getSelectedNumbersCustomAmounts"]},on:{"update:selectedPaymentAmountType":function(t){e.selectedPaymentAmountType=t},"update:selected-payment-amount-type":function(t){e.selectedPaymentAmountType=t}}})],1):e._e(),e.selectedNumberSelectionType===e.numberSelectionTypes.CONTRACT_NUMBER?t("div",{staticClass:"pb-4"},[t("z-input-with-validation",{ref:"contractInput",staticClass:"w-full",attrs:{outlined:"",label:e.$t("EnterContractNumber")+"*",placeholder:"1XXXXXXX","input-type":"Number",rules:"required|zain_contract"},on:{blur:t=>e.onBlurContractNumber(t)},model:{value:e.$store.state.quickPay.contractNumberValue,callback:function(t){e.$set(e.$store.state.quickPay,"contractNumberValue",t)},expression:"$store.state.quickPay.contractNumberValue"}}),null!==e.$store.state.quickPay.contractBalance.Total?t("quick-pay-amount-type",{attrs:{"can-edit-other-amount":"","selected-payment-amount-type":e.selectedPaymentAmountType,"total-amount":e.$store.state.quickPay.contractBalance.Total,"due-amount":e.$store.state.quickPay.contractBalance.PastDue,"other-amount":e.$store.state.quickPay.contractAmountValue},on:{"update:otherAmount":e.updateContractAmount,"update:selectedPaymentAmountType":function(t){e.selectedPaymentAmountType=t},"update:selected-payment-amount-type":function(t){e.selectedPaymentAmountType=t}}}):e._e(),t("z-input-with-validation",{staticClass:"w-full",attrs:{outlined:"",label:e.$t("EnterMobileNumberForSMS"),placeholder:"9XXXXXXX","input-type":"text",maxLength:8,rules:"zain_msisdn",mode:"lazy"},scopedSlots:e._u([{key:"label",fn:function(){return[t("z-tooltip",{attrs:{position:(e.$i18n.locale,"bottom")},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"text-start whitespace-nowrap p-2 text-sm text-white select-none"},[t("p",[e._v(e._s(e.$t("MustBeZain")))])])]},proxy:!0}],null,!1,3077179475)},[t("span",{staticClass:"icon-Info text-md text-gray-400"})])]},proxy:!0}],null,!1,955070082),model:{value:e.$store.state.quickPay.contractMsisdnNotificationValue,callback:function(t){e.$set(e.$store.state.quickPay,"contractMsisdnNotificationValue",t)},expression:"$store.state.quickPay.contractMsisdnNotificationValue"}}),t("z-input-with-validation",{staticClass:"w-full",attrs:{outlined:"",label:e.$t("EnterEmailAddress"),placeholder:"xxx@gmail.com","input-type":"email",rules:"email",mode:"lazy"},model:{value:e.$store.state.quickPay.contractEmailNotificationValue,callback:function(t){e.$set(e.$store.state.quickPay,"contractEmailNotificationValue",t)},expression:"$store.state.quickPay.contractEmailNotificationValue"}}),"anonymous"!==e.$store.state.loginType||0!==e.$store.state.quickPay.selectedTab||e.$store.state.quickPay.captchaVerified?e._e():t("captcha",{staticClass:"mt-9",on:{verify:e.onCaptchaResult}})],1):e._e(),e.$store.state.quickPay.selectedPaymentAmountType===e.paymentAmountTypes.OTHER_AMOUNT&&e.selectedNumberSelectionType===e.numberSelectionTypes.MY_NUMBERS&&e.$store.getters["quickPay/allOrderLines"].length>0?t("div",[t("div",{staticClass:"p-5 flex flex-col animate-fade-in-down space-y-3 border-t border-primary border-opacity-30 bg-wh"},[e._l(e.$store.state.quickPay.selectedMyLines,(function(e){return t("msisdn-amount-input",{key:e.msisdn,attrs:{number:e}})})),e._l(e.$store.state.quickPay.selectedOtherLines,(function(e){return t("msisdn-amount-input",{key:e.msisdn,attrs:{number:e}})}))],2)]):e._e()],1),e.selectedNumberSelectionType===e.numberSelectionTypes.OTHER_NUMBER?t("div",e._l(e.$store.state.quickPay.selectedOtherLines,(function(a,s){return t("quick-pay-card",{key:s,attrs:{attached:0===s,"line-object":a,"billing-type":"Postpaid"},on:{"card-remove-line":function(t){return e.$store.dispatch("quickPay/removeOrderLine",{index:s})},"card-update":t=>e.$store.dispatch("quickPay/updateOrderLine",{newVal:t.val,index:s,prop:t.prop})}})})),1):e._e(),e.selectedNumberSelectionType===e.numberSelectionTypes.OTHER_NUMBER?t("div",{staticClass:"pt-2 px-5"},[t("z-button",{staticClass:"w-full py-3",attrs:{disabled:e.$store.getters["quickPay/allOrderLines"].some(e=>!e.validated),outlined:""},on:{click:function(t){return e.$store.dispatch("quickPay/addOrderLine")}}},[t("span",{staticClass:"icon-add-1 pr-1"}),e._v(" "+e._s(e.$t("OtherNumbers"))+" ")])],1):e._e()]):e._e()},wc=[],_c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"animate-fade-in-down flex flex-col space-y-4"},[e.billPrivacyEnabled?t("div",[t("validation-provider",{staticClass:"w-24",attrs:{rules:"required|pay_amount",name:"Amount"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-3 w-full flex items-end flex-col",attrs:{message:a[0],type:{danger:a[0]},label:e.$t("EnterAmount")}},[t("z-input",{directives:[{name:"cleave",rawName:"v-cleave",value:{numeral:!0,numeralThousandsGroupStyle:"none",numeralDecimalScale:3},expression:"{numeral: true, numeralThousandsGroupStyle: 'none', numeralDecimalScale: 3}"}],staticClass:"w-full",attrs:{prefix:e.$t("KD"),max:"5000",min:"1",outlined:""},model:{value:e.computedOtherAmount,callback:function(t){e.computedOtherAmount=e._n(t)},expression:"computedOtherAmount"}})],1)]}}])})],1):t("div",[t("div",{staticClass:"flex h-12 justify-center"},[t("z-radio",{attrs:{disabled:e.totalAmount<=0,"native-value":e.paymentAmountTypes.TOTAL,name:"pay-type-"+e.getRandomId(),"label-class":{"font-bold":e.computedSelectedPaymentAmountType===e.paymentAmountTypes.TOTAL},label:e.$t("PayTotal")},model:{value:e.computedSelectedPaymentAmountType,callback:function(t){e.computedSelectedPaymentAmountType=t},expression:"computedSelectedPaymentAmountType"}}),t("div",{staticClass:"text-green font-bold h-full flex items-center whitespace-nowrap"},[e._v(" "+e._s(e.positionedPrice(e.totalAmount))+" ")])],1),t("div",{staticClass:"flex justify-between h-12"},[t("z-radio",{attrs:{disabled:e.dueAmount<=0,"native-value":e.paymentAmountTypes.DUES,name:"pay-type-"+e.getRandomId(),"label-class":{"font-bold":e.computedSelectedPaymentAmountType===e.paymentAmountTypes.DUES},label:e.$t("DueFees")},model:{value:e.computedSelectedPaymentAmountType,callback:function(t){e.computedSelectedPaymentAmountType=t},expression:"computedSelectedPaymentAmountType"}}),t("span",[t("span",{staticClass:"text-green font-bold h-full flex items-center whitespace-nowrap"},[e._v(" "+e._s(e.positionedPrice(e.dueAmount))+" ")])])],1),t("div",{staticClass:"flex justify-between h-12"},[t("z-radio",{attrs:{"native-value":e.paymentAmountTypes.OTHER_AMOUNT,"label-class":{"font-bold":e.computedSelectedPaymentAmountType===e.paymentAmountTypes.OTHER_AMOUNT},name:"pay-type-"+e.getRandomId(),label:e.$t("OtherAmount")},model:{value:e.computedSelectedPaymentAmountType,callback:function(t){e.computedSelectedPaymentAmountType=t},expression:"computedSelectedPaymentAmountType"}}),e.computedSelectedPaymentAmountType!==e.paymentAmountTypes.OTHER_AMOUNT||e.canEditOtherAmount?e.computedSelectedPaymentAmountType===e.paymentAmountTypes.OTHER_AMOUNT&&e.canEditOtherAmount?t("div",[t("validation-provider",{staticClass:"w-24",attrs:{rules:"required|pay_amount",name:"Amount"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"w-full flex items-end flex-col text-gray-500",attrs:{type:{danger:a[0]}}},[t("z-input",{directives:[{name:"cleave",rawName:"v-cleave",value:{numeral:!0,numeralThousandsGroupStyle:"none",numeralDecimalScale:3},expression:"{numeral: true, numeralThousandsGroupStyle: 'none', numeralDecimalScale: 3}"}],staticClass:"w-28 xxs:w-30",attrs:{prefix:e.$t("KD"),max:"5000",min:"1","input-classes":"text-right pr-3",outlined:"",placeholder:"0.000"},model:{value:e.computedOtherAmount,callback:function(t){e.computedOtherAmount=e._n(t)},expression:"computedOtherAmount"}})],1)]}}],null,!1,3230435795)})],1):e._e():t("span",{staticClass:"text-green font-bold h-full flex items-center whitespace-nowrap"},[t("span",[e._v(e._s(e.positionedPrice(e.otherAmount)))])])],1)])])},Ac=[],Sc={name:"QuickPayAmountType",mixins:[ws,wa],props:{selectedPaymentAmountType:String,billPrivacyEnabled:{type:Boolean,default:!1},totalAmount:Number,dueAmount:Number,otherAmount:[String,Number],canEditOtherAmount:{type:Boolean,default:!1}},components:{ZField:ya,ZInput:H,ZRadio:Kt,ValidationProvider:re["b"]},data(){return{paymentAmountTypes:xc["paymentAmountTypes"],localSelectedPaymentAmountType:this.selectedPaymentAmountType,localOtherAmount:this.otherAmount,randomId:this.getRandomId()}},computed:{computedSelectedPaymentAmountType:{get(){return this.selectedPaymentAmountType},set(e){this.localSelectedPaymentAmountType=e,this.$emit("update:selectedPaymentAmountType",e)}},computedOtherAmount:{get(){return this.localOtherAmount},set(e){this.localOtherAmount=e,this.$emit("update:otherAmount",e)}}},methods:{getRandomId(){return(1e10*Math.random()).toString().split(".")[0]}},filters:{currency(e){return(e||0).toFixed(3)}},watch:{otherAmount(e){this.localOtherAmount=e}},mounted(){}},Tc=Sc,kc=Object(v["a"])(Tc,_c,Ac,!1,null,"69ce168c",null),Pc=kc.exports,$c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-white dark:bg-gray-700 relative overflow-visible mb-4 rounded-bl-lg rounded-br-lg px-5 shadow-lg pb-5",class:{"rounded-tl-lg rounded-tr-lg pt-5 animate-fade-in-down":!e.attached}},[t("z-loading",{attrs:{"background-classes":"bg-opacity-60","is-full-page":!1,active:e.isLoading}}),e.lineObject.canRemove&&!e.attached?t("span",{staticClass:"absolute top-2 end-3",staticStyle:{"z-index":"2"}},[t("a",{attrs:{href:"javascript:void(0)"},on:{click:e.removeLine}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("311a"),width:"20",alt:"Remove Line"}})])]):e._e(),e.computedNickname?t("div",{staticClass:"font-bold"},[t("div",{staticClass:"flex space-s-2 w-full items-center"},[t("span",[e._v(e._s(e.computedMsisdn))]),t("span",{staticClass:"text-xs"},[e._v("("+e._s(e.computedNickname)+")")])])]):e._e(),!e.lineObject.canRemove||"Prepaid"!==e.billingType||e.attached||e.lineObject.isMyLine?e._e():t("z-list-box",{staticClass:"mb-4",attrs:{"always-dropdown":"",label:e.$t("IWouldLikeToRechargeFor")},on:{input:()=>{this.computedMsisdn="",this.errorFlag=!1,this.errorMessage=""}},model:{value:e.computedSelectionType,callback:function(t){e.computedSelectionType=t},expression:"computedSelectionType"}},[t("z-list-box-item",{attrs:{value:e.numberSelectionTypes.OTHER_NUMBER}},[t("div",{staticClass:"flex justify-between"},[t("div",[e._v(e._s(e.$t("OtherNumber")))])])])],1),e.lineObject.selectionType===e.numberSelectionTypes.OTHER_NUMBER?t("div",[e.computedSelectionType!==e.numberSelectionTypes.MY_NUMBERS?t("z-input-with-validation",{ref:"msisdnInput",staticClass:"w-full",attrs:{outlined:"","show-success-field":!1,label:e.$t("MobileNumber"),placeholder:e.$t("EnterNumber99XX"),"input-type":"text",rules:"required|kuwait_msisdn",mode:"lazy",pattern:"[0-9]*",maxlength:8},on:{input:e.getLineData},model:{value:e.computedMsisdn,callback:function(t){e.computedMsisdn=t},expression:"computedMsisdn"}}):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.errorFlag&&e.errorMessage,expression:"errorFlag && errorMessage"}],staticClass:"rounded-md relative overflow-visible p-3 my-3 text-sm bg-danger bg-opacity-10 text-danger flex space-s-2 items-center"},[t("img",{staticClass:"inline-block w-6",attrs:{src:a("6999"),alt:""}}),t("p",{staticClass:"m-0"},[e._v(e._s(e.$t(e.errorMessage)))])])],1):e._e(),"anonymous"===e.$store.state.loginType&&!e.$store.state.quickPay.captchaVerified&&e.mounted?t("captcha",{staticClass:"mt-9",on:{verify:e.onCaptchaResult}}):e._e(),!e.captchaRequired||e.captchaRequired&&e.$store.state.quickPay.captchaVerified?t("div",["Prepaid"===e.billingType?t("div",[e.rechargeCards.length>0?t("z-list-box",{staticClass:"mb-4",class:{"mt-2":!e.attached},attrs:{label:e.$t("RechargeAmount"),"always-dropdown":""},model:{value:e.computedCardIndex,callback:function(t){e.computedCardIndex=t},expression:"computedCardIndex"}},e._l(e.filteredRechargeCards,(function(a,s){return t("z-list-box-item",{key:s,attrs:{value:s}},[t("div",{staticClass:"flex justify-between items-center text-gray-500"},[t("div",{staticClass:"font-bold"},[null!==a.validity?t("div",[t("div",{staticClass:"flex flex-col md:flex-row"},[t("div",[e._v(e._s(e.positionedPrice(a.amount)))]),a.extraText?t("div",{staticClass:"ms-1 me-2"},[t("span",{staticClass:"font-bold"},[e._v(" + ")]),t("span",{staticClass:"text-primary"},[e._v(" "+e._s(a.extraText())+" ")]),a.tag?t("span",{staticClass:"text-2xs text-primary bg-primary bg-opacity-5 p-1 rounded font-normal"},[e._v(" "+e._s(a.tag())+" ")]):e._e()]):e._e()]),a.extraDescription?t("div",{staticClass:"text-2xs text-gray-400 font-normal mt-0.5"},[e._v(" "+e._s(a.extraDescription())+" ")]):e._e()]):t("div",[e._v(e._s(e.$t("OtherAmount")))])]),t("div",[null!==a.validity?t("div",[e._v(" "+e._s(e.$t("Validity"))+" "+e._s(a.validity)+" "+e._s(e.$tc("Days",0))+" ")]):e._e()])])])})),1):e._e(),e.rechargeCards.length>0?t("div",{key:e.isOtherAmount},[e.isOtherAmount?t("div",[e.isOtherAmount?t("z-input-with-validation",{directives:[{name:"cleave",rawName:"v-cleave",value:{numeral:!0,numeralThousandsGroupStyle:"none",numeralDecimalScale:3},expression:"{ numeral: true, numeralThousandsGroupStyle: 'none', numeralDecimalScale: 3 }"}],attrs:{rules:"required|pay_amount_prepaid",label:e.$t("EnterAmount"),placeholder:"0.000",prefix:e.$t("KD"),outlined:""},model:{value:e.computedAmount,callback:function(t){e.computedAmount=e._n(t)},expression:"computedAmount"}}):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.getExtraCreditAmount>0,expression:"getExtraCreditAmount > 0"}],staticClass:"text-primary font-bold"},[e._v(" + "+e._s(e.$t("free"))+" "+e._s(this.$t("GBX",{GB:e.getExtraCreditAmount}))+" ")])],1):e._e()]):e._e()],1):"Postpaid"===e.billingType&&e.validMsisdn?t("div",[t("quick-pay-amount-type",{attrs:{"can-edit-other-amount":"","selected-payment-amount-type":e.selectedPaymentAmountType,"total-amount":Math.max(e.lineObject.unbilled+e.lineObject.pastDue,0),"due-amount":e.lineObject.pastDue,"other-amount":e.lineObject.amount,"bill-privacy-enabled":e.lineObject.billPrivacyEnabled},on:{"update:selectedPaymentAmountType":function(t){e.selectedPaymentAmountType=t},"update:selected-payment-amount-type":function(t){e.selectedPaymentAmountType=t},"update:otherAmount":function(t){return e.$set(e.lineObject,"amount",t)},"update:other-amount":function(t){return e.$set(e.lineObject,"amount",t)}}}),e.lineObject.billPrivacyEnabled?t("div",{staticClass:"mt-6 flex justify-around sm:justify-between items-center flex-wrap sm:flex-nowrap"},[t("div",{staticClass:"flex space-s-2 items-center"},[t("span",{staticClass:"icon-Not-Available"}),t("p",{staticClass:"font-bold"},[e._v(e._s(e.$t("BillPrivacyOn")))]),t("z-tooltip",{attrs:{position:"top"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"text-start whitespace-nowrap p-2 text-sm text-white select-none"},[t("p",[e._v(" "+e._s(e.$t("BillPrivacyExtraMessage"))+" ")])])]},proxy:!0}],null,!1,3175283211)},[t("span",{staticClass:"icon-Info text-md text-gray-400"})])],1),t("z-button",{staticClass:"mt-3 w-full sm:w-auto sm:mt-0",attrs:{borderless:"",size:"small"},on:{click:()=>this.billPrivacyModalIsActive=!0}},[e._v(" "+e._s(e.$t("TurnOffBillPrivacy"))+" ")])],1):e._e()],1):e._e()]):e._e(),t("z-modal",{attrs:{active:e.billPrivacyModalIsActive,"can-cancel":""},on:{"update:active":function(t){e.billPrivacyModalIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("div",[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.$t("TurnOffBillPrivacy"))+" ")]),t("p",{staticClass:"mt-9"},[e._v(" "+e._s(e.$t("BillPrivacyTurnOffInstructions",{msisdn:e.lineObject.msisdn}))+" ")]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{attrs:{disabled:e.$store.state.sentBillPrivacySMS},on:{click:function(t){return e.sendBillPrivacySMS(e.lineObject.msisdn)}}},[e._v(" "+e._s(e.$store.state.sentBillPrivacySMS?"SMS Sent":e.$t("SendSMS"))+" ")])],1)])])])],1)},Mc=[],Oc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative inline-block"},[e.localValue?t("div",{staticClass:"relative"},[t("div",{directives:[{name:"stay-on-screen",rawName:"v-stay-on-screen"}],staticClass:"w-max absolute z-10 rounded-lg shadow-lg tool-tip transform select-none pointer-events-none",class:[e.positionClasses,e.customBgClass?e.customBgClass:"bg-gray-800"]},[e._t("content")],2)]):e._e(),t("div",{staticClass:"flex flex-col justify-center",on:{mouseover:e.onMouseOver,mouseleave:e.onMouseLeave,click:e.onClick}},[e._t("default")],2)])},Nc=[],Ec={name:"ZTooltip",props:{value:{type:Boolean,default:!1},isToggle:{type:Boolean,default:!1},position:{type:String,default:"bottom"},customBgClass:{type:String,default:""}},directives:{stayOnScreen:{inserted:function(e){const t=e.getBoundingClientRect();e.style.transformOrigin="right";const a=t.x+t.width+30;t.x<0&&(e.style.right="-30px"),a>=window.innerWidth&&(e.style.right=a-window.innerWidth+30+"px")}}},computed:{positionClasses(){return{"-top-3 -translate-y-full tool-tip-top right-1/2 translate-x-1/2":"top"===this.position,"-bottom-3 translate-y-full tool-tip-bottom right-1/2 translate-x-1/2":"bottom"===this.position,"-left-3 -translate-x-full tool-tip-left top-1/2 -translate-y-1/2":"left"===this.position,"-right-3 translate-x-full tool-tip-right top-1/2 -translate-y-1/2":"right"===this.position,"right-1/2 translate-x-1/2 tt-center tool-tip-top":"center"===this.position}}},data(){return{localValue:this.value}},watch:{value(e){this.localValue=e}},methods:{onClick(){this.isToggle&&(this.localValue=!this.localValue)},onMouseOver(){this.isToggle||(this.localValue=!0)},onMouseLeave(){this.isToggle||(this.localValue=!1)}}},Dc=Ec,Ic=(a("5451"),Object(v["a"])(Dc,Oc,Nc,!1,null,null,null)),Bc=Ic.exports,Lc=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex justify-center"},[t("re-captcha",{attrs:{"show-message":e.showMessage},on:{loaded:e.recaptchaLoaded,verify:e.captchaVerify}})],1)},Rc=[],Uc=function(){var e=this,t=e._self._c;return t("div",[e.showMessage?t("p",{staticClass:"text-sm font-medium mb-3 text-center"},[e._v(" "+e._s(e.$t("AcceptToProceed"))+" ")]):e._e(),t("div",[t("div",{staticClass:"inline-block",attrs:{id:"g-recaptcha","data-size":e.captchaSize,"data-sitekey":e.siteKey}})])])},zc=[],jc={props:{showMessage:{type:Boolean,default:!0}},name:"ReCaptcha",data(){return{siteKey:"6LeFuDUeAAAAAJ5Vac8ted26Fi6HDY0wZKyy38Wv",widgetId:0,tryCount:0,maxTries:3,captchaSize:"normal",scriptUrl:""}},methods:{render(){if(window.grecaptcha&&window.grecaptcha.render){this.$emit("loaded",!0);try{window.grecaptcha.render("g-recaptcha",{sitekey:"6LeFuDUeAAAAAJ5Vac8ted26Fi6HDY0wZKyy38Wv",theme:"light",callback:e=>{this.$emit("verify",e),this.reset()}})}catch(e){if("reCAPTCHA has already been rendered in this element"!==e.message)throw e}}else this.tryCountthis.render(),500)):this.$emit("loaded",!1)},async load(){try{await this.$loadScript(this.scriptUrl),this.render()}catch(e){console.log(e),console.log("failed to load captcha"),this.$emit("loaded",!1)}}},async beforeDestroy(){await this.$unloadScript(this.scriptUrl)},async mounted(){this.scriptUrl=`https://www.google.com/recaptcha/api.js?render=explicit&_ts=${Date.now()}&hl=${this.$i18n.locale}`,await this.load()}},Fc=jc,Vc=(a("ee39"),Object(v["a"])(Fc,Uc,zc,!1,null,null,null)),Hc=Vc.exports;const Gc={RECAPTCHA:"recaptcha"};var Zc={name:"Captcha",props:{showMessage:{type:Boolean,default:!0}},components:{ReCaptcha:Hc},data(){return{captchaType:Gc.RECAPTCHA,captchaError:"",CAPTCHA_TYPES:Gc}},methods:{recaptchaLoaded(e){e||alert("Captcha cannot load, please try again later.")},async captchaVerify(e){this.$emit("loading",!0);try{var t;const a=await G["a"].validateCaptcha(e,this.captchaType);null!==a&&void 0!==a&&null!==(t=a.data)&&void 0!==t&&t.success?(this.captchaError="",this.$emit("verify",!0),this.$store.state.quickPay.verifiedCaptchaCode=e):(this.captchaError="Wrong code",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error wrong captcha code"}}))}catch(a){console.log("Error in captcha verify",a),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error in captcha verify"}})}finally{this.$emit("loading",!1)}}}},qc=Zc,Kc=Object(v["a"])(qc,Lc,Rc,!1,null,null,null),Yc=Kc.exports;const Wc=(e,t)=>Math.round(1e12*(e+t))/1e12;var Qc={props:{billingType:{type:String,default:"Prepaid"},lineObject:{type:Object,default(){return{msisdn:null,nickname:null,amount:0,cardIndex:0,errorFlag:!1,selectionType:xc["numberSelectionTypes"].OTHER_NUMBER,canRemove:!0,billPrivacyEnabled:!1,subscriberType:null,balanceInfo:null}}},validate:{type:Function,default:()=>!1},attached:{type:Boolean,default:!0}},components:{Captcha:Yc,ZModal:Be,ZTooltip:Bc,ZButton:R,QuickPayAmountType:Pc,ZListBoxItem:Ze,ZListBox:ze,ZLoading:Je,ZInputWithValidation:fi},mixins:[ws,wa],computed:{computedMsisdn:{get(){return this.msisdn},set(e){this.msisdnValidated=!1,this.$emit("card-update",{val:!1,prop:"validated"}),this.msisdn=e}},computedNickname:{get(){return this.nickname},set(e){this.nickname=e,this.$emit("card-update",{val:this.nickname,prop:"nickname"})}},computedSelectionType:{get(){return this.lineObject.selectionType},set(e){if(this.$emit("card-update",{val:e,prop:"selectionType"}),"Prepaid"===this.billingType){const e=this.rechargeCards.map(e=>e.amount);e.includes(this.amount)||(this.computedAmount=e[2])}}},computedErrorFlag:{get(){return this.errorFlag},set(e){this.errorFlag=e,this.$emit("card-update",{val:this.errorFlag,prop:"errorFlag"})}},computedAmount:{get(){return Number.isNaN(this.amount)?0:parseFloat(this.amount)},set(e){this.amount=Number.isNaN(e)?0:parseFloat(e),this.$emit("card-update",{val:this.amount,prop:"amount"})}},computedCardIndex:{get(){return this.cardIndex},set(e){this.cardIndex=e,this.$emit("card-update",{val:this.cardIndex,prop:"cardIndex"})}},validMsisdn(){return!!this.computedMsisdn&&8===this.computedMsisdn.length&&this.msisdnValidated},captchaRequired(){return"anonymous"===this.$store.state.loginType},isOtherAmount(){return 6===this.computedCardIndex},featureFlags(){var e,t;return null===(e=this.$store.state)||void 0===e||null===(t=e[ae["b"].FEATURE_FLAGS])||void 0===t?void 0:t.data},filteredRechargeCards(){var e;return null!==(e=this.featureFlags)&&void 0!==e&&e.ExtraCreditOffer&&this.tenureMoreThan90Days?[...this.extraCreditRechargeCards,{amount:null,validity:null}]:[...this.rechargeCards,{amount:null,validity:null}]},getExtraCreditAmount(){var e;if(null===(e=this.featureFlags)||void 0===e||!e.ExtraCreditOffer||!this.tenureMoreThan90Days)return 0;{const e=this.computedAmount;switch(!0){case e>=6&&e<12:return 5;case e>=12&&e<22:return 25;case e>=22&&e<25:return 50;case e>=25:return 100;default:return 0}}}},data(){return{numberSelectionTypes:xc["numberSelectionTypes"],errorMessage:"",errorFlag:this.lineObject.errorFlag,cardIndex:this.lineObject.cardIndex,msisdn:this.lineObject.msisdn,nickname:this.lineObject.nickname,amount:this.lineObject.amount,isLoading:!1,selectedPaymentAmountType:xc["paymentAmountTypes"].TOTAL,lineBalance:null,msisdnValidated:!1,paymentAmountTypes:xc["paymentAmountTypes"],billPrivacyModalIsActive:!1,mounted:!1,tenureMoreThan90Days:!1,rechargeCards:[{amount:2,validity:7},{amount:4,validity:15},{amount:6,validity:30},{amount:12,validity:90},{amount:22,validity:180},{amount:30,validity:365}],extraCreditRechargeCards:[{amount:2,validity:7},{amount:4,validity:15},{amount:6,validity:30,extraText:()=>`${this.$t("free").toUpperCase()} ${this.$t("GBX",{GB:5})}`,extraDescription:()=>this.$t("RechargeOfferDescriptionGB",{amount:5,day:3}),tag:()=>this.$t("Offer").toUpperCase()},{amount:12,validity:90,extraText:()=>`${this.$t("free").toUpperCase()} ${this.$t("GBX",{GB:25})}`,extraDescription:()=>this.$t("RechargeOfferDescriptionGB",{amount:25,day:5}),tag:()=>this.$t("Offer").toUpperCase()},{amount:22,validity:180,extraText:()=>`${this.$t("free").toUpperCase()} ${this.$t("GBX",{GB:50})}`,extraDescription:()=>this.$t("RechargeOfferDescriptionGB",{amount:50,day:7}),tag:()=>this.$t("Offer").toUpperCase()},{amount:30,validity:365,extraText:()=>`${this.$t("free").toUpperCase()} ${this.$t("GBX",{GB:100})}`,extraDescription:()=>this.$t("RechargeOfferDescriptionGB",{amount:100,day:10}),tag:()=>this.$t("Offer").toUpperCase()}],init:!1}},name:"QuickPayCard",methods:{removeLine(){this.$emit("card-remove-line",!0)},async getLineData(){var e,t;if(!this.computedMsisdn||8!==this.computedMsisdn.length)return;if(!this.$store.state.quickPay.captchaVerified&&this.captchaRequired)return;let a=null===(e=this.lineObject)||void 0===e?void 0:e.subscriberType;if(null===(t=this.lineObject)||void 0===t||!t.validated){var s,i,n,r;this.$emit("card-update",{val:"",prop:"msisdn"});const e=null!==(s=await(null===(i=this.$refs)||void 0===i||null===(n=i.msisdnInput)||void 0===n||null===(r=n.$refs.valProv.validate(this.computedMsisdn))||void 0===r?void 0:r.valid))&&void 0!==s&&s,t=this.$store.getters["quickPay/allOrderLines"].find(e=>e.msisdn===this.computedMsisdn);var o,l;if(t)return null===(o=this.$refs)||void 0===o||null===(l=o.msisdnInput)||void 0===l||l.setErrors([`The number ${this.computedMsisdn} is already added`]),void(this.computedMsisdn="");e||(this.computedErrorFlag=!0,this.errorMessage="")}if(!this.isLoading){this.isLoading=!0;try{var c;if(a=null!==(c=a)&&void 0!==c?c:(await G["a"].subscriberTypeQuery({msisdn:this.computedMsisdn,contractNumber:"anonymous"})).data,"Prepaid"===this.billingType){var d;if("Postpaid"===a.BillingType)return this.computedErrorFlag=!0,this.errorMessage="CreditTransferPostPaidNumberError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error entered a postpaid number not a prepaid number"}}),void(this.isLoading=!1);if(null!==(d=a)&&void 0!==d&&d.error)return this.computedErrorFlag=!0,this.errorMessage="CreditTransferIncorrectNumberError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error invalid number"}}),void(this.isLoading=!1);if(!a.IsRechargePossible&&"Prepaid"===a.BillingType)return this.computedErrorFlag=!0,this.errorMessage="TerminatedMsisdn",void(this.isLoading=!1)}else if("Prepaid"===a.BillingType)return this.computedErrorFlag=!0,this.errorMessage="CreditTransferPrePaidNumberError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error entered a prepaid number not a postpaid number"}}),void(this.isLoading=!1);if(this.msisdnValidated=!0,this.errorMessage="",this.computedErrorFlag=!1,"Postpaid"===a.BillingType&&"Prepaid"!==this.billingType){var u,p,m,h;const e=null!==(u=null===(p=a.Params)||void 0===p||null===(m=p.BooleanParam)||void 0===m||null===(h=m.find(e=>"BillPrivacyEnable"===e.attributes.name))||void 0===h?void 0:h.$value)&&void 0!==u&&u;if(e)this.$emit("card-update",{val:e,prop:"billPrivacyEnabled"}),this.$emit("card-update",{val:0,prop:"amount"}),this.selectedPaymentAmountType="OTHER_AMOUNT";else{var v,g,f,y,b;this.$emit("card-update",{val:!1,prop:"billPrivacyEnabled"});const e=await G["a"].postpaidBalance({msisdn:this.computedMsisdn,contractNumber:a.ContractID}),t=null===e||void 0===e||null===(v=e.data)||void 0===v?void 0:v.result,s=Wc(t.PastDue,t.Unbilled);this.$emit("card-update",{val:t.PastDue,prop:"pastDue"}),this.$emit("card-update",{val:t.Unbilled,prop:"unbilled"}),(s<=1||(null===(g=this.lineObject)||void 0===g?void 0:g.initialAmount)>0)&&(this.selectedPaymentAmountType="OTHER_AMOUNT"),this.lineObject.initialAmount=null!==(f=this.lineObject.initialAmount)&&void 0!==f?f:0,this.$emit("card-update",{val:(null===(y=this.lineObject)||void 0===y?void 0:y.initialAmount)>0?null===(b=this.lineObject)||void 0===b?void 0:b.initialAmount:s,prop:"amount"})}}if("Prepaid"===a.BillingType){var x;const e=null===(x=a)||void 0===x?void 0:x.FirstCallDate,t=Math.floor((new Date-new Date(e))/864e5);this.tenureMoreThan90Days=t>=90}this.$emit("card-update",{val:!0,prop:"validated"}),this.$emit("card-update",{val:this.msisdn,prop:"msisdn"}),this.isLoading=!1}catch(T){console.log("load error"),console.log(T);const e=T.response.data.message;var C,w,_,A,S;if(e.toLowerCase().includes("invalid subscriber"))this.computedErrorFlag=!0,this.errorMessage="CreditTransferIncorrectNumberError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error number is invalid"}});else if(null!==(C=T.response)&&void 0!==C&&null!==(w=C.data)&&void 0!==w&&null!==(_=w.message)&&void 0!==_&&_.includes("Captcha"))this.$zcl.modal.open({parent:this,canConfirm:!0,content:null===(A=T.response)||void 0===A||null===(S=A.data)||void 0===S?void 0:S.message}),this.$store.state.quickPay.captchaVerified=!1;else this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Error while Validating Number"}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error validating number"}});this.isLoading=!1}}},async sendBillPrivacySMS(e){this.$store.state.quickPay.loading=!0;try{await G["a"].sendBillPrivacySMS({msisdn:e}),this.billPrivacyModalIsActive=!1,this.$store.state.sentBillPrivacySMS=!0,this.$zcl.modal.open({parent:this,canConfirm:!0,content:this.$t("SMSSent")})}catch(t){this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Error while sending SMS please try again later"}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error sending sms"}})}finally{this.$store.state.quickPay.loading=!1}},onCaptchaResult(e){e&&(this.$store.state.quickPay.captchaVerified=!0)}},watch:{lineObject(e){this.msisdn=e.msisdn,this.nickname=e.nickname,this.amount=e.amount,this.errorFlag=e.errorFlag,this.selectionType=e.selectionType,this.cardIndex=e.cardIndex},computedCardIndex(){var e,t;this.computedAmount=null!==(e=null===(t=this.filteredRechargeCards[this.computedCardIndex])||void 0===t?void 0:t.amount)&&void 0!==e?e:0},selectedPaymentAmountType(){switch(this.selectedPaymentAmountType){case xc["paymentAmountTypes"].TOTAL:this.computedAmount=this.lineObject.pastDue+this.lineObject.unbilled;break;case xc["paymentAmountTypes"].DUES:this.computedAmount=this.lineObject.pastDue;break;case xc["paymentAmountTypes"].OTHER_AMOUNT:this.lineObject.initialAmount?(this.computedAmount=this.lineObject.initialAmount,this.lineObject.initialAmount=0):this.computedAmount=0;break}},"$store.state.quickPay.captchaVerified":{handler:function(e){e&&this.getLineData()}}},filters:{currency(e){return"KD "+(e||0).toFixed(3)}},mounted(){this.getLineData(),this.mounted=!0}},Xc=Qc,Jc=Object(v["a"])(Xc,$c,Mc,!1,null,null,null),ed=Jc.exports,td=a("3670"),ad=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-4 flex flex-row space-s-3 -mx-5",staticStyle:{background:"#fcf1ca"}},[e._m(0),t("div",{staticClass:"flex-grow"},[t("p",{staticClass:"font-bold text-sm"},[e._v(" "+e._s(e.$t("SactBannerDescription"))+" ")])])])},sd=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"m-auto"},[t("div",{staticClass:"icon-Info"})])}],id={name:"SactQuickpayBanner"},nd=id,rd=Object(v["a"])(nd,ad,sd,!1,null,"23dc2427",null),od=rd.exports,ld=function(){var e,t,a=this,s=a._self._c;return s("div",[s("div",{staticClass:"flex flex-row justify-between items-center text-gray-500 font-bold"},[s("div",[s("div",{staticClass:"flex flex-row space-x-2 items-center"},[s("p",{staticClass:"text-primary"},[a._v(" "+a._s("XXXXX"+a.$store.getters.getContractNumber.slice(a.$store.getters.getContractNumber.length-2))+" ")])]),s("p",{staticClass:"text-sm"},[a._v(" "+a._s(a.$t("TerminatedDues"))+" ")])]),null!==(e=a.terminatedBalance)&&void 0!==e&&e.Total?s("div",{staticClass:"font-bold text-primary"},[a._v(" "+a._s(a.positionedPrice(null===(t=a.terminatedBalance)||void 0===t?void 0:t.Total))+" ")]):a._e()])])},cd=[],dd={name:"SactQuickpayNumberSelection",mixins:[ws],computed:{terminatedBalance(){return this.$store.getters["quickPay/getTerminatedBalance"]}}},ud=dd,pd=Object(v["a"])(ud,ld,cd,!1,null,"a6aa047e",null),md=pd.exports;const hd=i["a"].component("msisdn-amount-input",{props:{number:Object},data:function(){return{count:0}},mixins:[wa],template:'\n
\n
\n

{{ number.msisdn }}

\n {{ number.nickname }}\n
\n \n \n
'});var vd,gd,fd={name:"QuickPayPostpaid",mixins:[ws,se],components:{SactQuickpayNumberSelection:md,SactQuickpayBanner:od,Captcha:Yc,ZTooltip:Bc,QuickPayCard:ed,ZListBoxItem:Ze,ZListBox:ze,ZInputWithValidation:fi,QuickPayAmountType:Pc,ZButton:R,MsisdnAmountInput:hd},computed:{linesBalances(){return this.$store.getters["quickPay/getPostpaidLinesData"]},selectedNumberSelectionType:{get(){return this.$store.state.quickPay.selectedNumberSelectionType},set(e){this.$store.dispatch("quickPay/setSelectedNumberSelectionType",e),this.$store.dispatch("quickPay/resetContract"),this.$store.dispatch("quickPay/setSelectedPaymentAmountType",this.paymentAmountTypes.TOTAL),e===xc["numberSelectionTypes"].OTHER_NUMBER?this.setOtherNumber():e===xc["numberSelectionTypes"].MY_NUMBERS&&this.$store.dispatch("quickPay/reset")}},selectedPaymentAmountType:{get(){return this.$store.state.quickPay.selectedPaymentAmountType},set(e){this.$store.dispatch("quickPay/setSelectedPaymentAmountType",e)}}},data:()=>({numberSelectionTypes:xc["numberSelectionTypes"],orderTypes:xc["orderTypes"],paymentTypes:xc["paymentTypes"],paymentAmountTypes:xc["paymentAmountTypes"],quickPayStep:xc["quickPayStep"],paymentMethods:xc["paymentMethods"],ready:!1}),filters:{currency(e){return"KD "+(e||0).toFixed(3)}},methods:{updateContractAmount(e){this.$store.state.quickPay.contractAmountValue=e},async initQuickPay(){if(this.initStateResources(ae["b"].BALANCE).then(),await this.$store.dispatch("quickPay/reset"),await this.$store.dispatch("quickPay/getPostpaidLinesData",{setLines:!1}),this.$store.state.quickPay.haveValidQuickPayParams){if(this.$store.state.quickPay.haveValidQuickPayParams=!1,this.$store.state.quickPay.quickPayRouteParams.contractNumber)return this.selectedNumberSelectionType=xc["numberSelectionTypes"].CONTRACT_NUMBER,this.$store.state.quickPay.contractNumberValue=this.$store.state.quickPay.quickPayRouteParams.contractNumber,this.$store.dispatch("quickPay/getContractBalance");const t=this.linesBalances.findIndex(e=>{var t;return e.msisdn===(null===(t=this.$store.state.quickPay.quickPayRouteParams)||void 0===t?void 0:t.msisdn)});if(t>-1){var e;this.selectedNumberSelectionType=xc["numberSelectionTypes"].MY_NUMBERS,this.$store.state.quickPay.selectedMyLines=this.linesBalances.filter((e,a)=>t===a),this.$store.state.quickPay.selectedMyLines[0].initialAmount=null===(e=this.$store.state.quickPay.quickPayRouteParams)||void 0===e?void 0:e.amount}else{this.selectedNumberSelectionType=xc["numberSelectionTypes"].OTHER_NUMBER;const e=td["b"].makeOtherNumber().setPostpaid().setMsisdn(this.$store.state.quickPay.quickPayRouteParams.msisdn).setValidated(!0);this.$store.state.quickPay.quickPayRouteParams.amount&&(e.initialAmount=this.$store.state.quickPay.quickPayRouteParams.amount),e.subscriberType=this.$store.state.quickPay.quickPayRouteParams.subscriberType,await this.$store.dispatch("quickPay/selectLine",e)}}else await this.$store.dispatch("quickPay/getPostpaidLinesData",{setLines:!0}),0===this.$store.getters["quickPay/allOrderLines"].length&&0===this.linesBalances.length&&(await this.$store.dispatch("quickPay/setSelectedNumberSelectionType",xc["numberSelectionTypes"].OTHER_NUMBER),await this.setOtherNumber())},async setOtherNumber(){await this.$store.dispatch("quickPay/selectLine",{isMyLine:!1})},clearOtherNumbers(){this.$store.state.quickPay.selectedOtherLines=[]},onCaptchaResult(e){e&&(this.$store.state.quickPay.captchaVerified=!0,this.$refs.contractInput.onBlur())},onBlurContractNumber(e){e&&this.$store.dispatch("quickPay/getContractBalance")}},async mounted(){await this.initQuickPay(),this.ready=!0}},yd=fd,bd=Object(v["a"])(yd,Cc,wc,!1,null,null,null),xd=bd.exports,Cd=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"relative overflow-visible bg-white px-5 pt-5 shadow-xl dark:bg-gray-700",class:{"rounded-bl-lg rounded-br-lg":(e.$store.state.quickPay.selectedMyLines.length||e.selectedNumberSelectionType===e.numberSelectionTypes.MY_NUMBERS)&&"sim"!==e.$store.state.loginType}},[t("z-list-box",{staticClass:"pb-4",attrs:{label:e.$t("IWouldLikeToRechargeFor"),"mobile-drop-down-label":e.$t("SelectAnOption")},model:{value:e.selectedNumberSelectionType,callback:function(t){e.selectedNumberSelectionType=t},expression:"selectedNumberSelectionType"}},[e.$store.getters["quickPay/getPrepaidLinesData"].length>0?t("z-list-box-item",{attrs:{value:e.numberSelectionTypes.MY_NUMBERS}},[t("div",{staticClass:"flex justify-between"},[t("div",[e._v(e._s(e.$t("MyNumbers")))])])]):e._e(),t("z-list-box-item",{attrs:{value:e.numberSelectionTypes.OTHER_NUMBER}},[t("div",{staticClass:"flex justify-between"},[t("div",[e._v(e._s(e.$t("OtherNumber")))])])])],1),e.$store.state.quickPay.selectedNumberSelectionType===e.numberSelectionTypes.MY_NUMBERS?t("z-list-box",{ref:"eeZeeListBox",staticClass:"pb-4",attrs:{alwaysDropdown:"","multi-select-label-field":"msisdn","multi-select":"",label:e.$t("SelectedNumber")},model:{value:e.$store.state.quickPay.selectedMyLines,callback:function(t){e.$set(e.$store.state.quickPay,"selectedMyLines",t)},expression:"$store.state.quickPay.selectedMyLines"}},[t("z-list-box-item",{attrs:{"custom-checkbox":"","is-select-all":"","highlight-background":""},scopedSlots:e._u([{key:"activeCheckbox",fn:function(){return[t("div",{staticClass:"flex h-4 w-4 items-center justify-center rounded-xl border border-primary"},[t("div",{staticClass:"h-2 w-2 rounded-xl bg-primary"})])]},proxy:!0},{key:"notActiveCheckbox",fn:function(){return[t("div",{staticClass:"h-4 w-4 rounded-xl border border-primary"})]},proxy:!0},{key:"default",fn:function(){return[t("div",{staticClass:"flex h-12 items-center justify-between"},[t("div",{staticClass:"text-left"},[t("div",[e._v(e._s(e.$t("All")))])])])]},proxy:!0}],null,!1,305825205)}),e._l(e.$store.getters["quickPay/getPrepaidLinesData"],(function(a,s){return t("z-list-box-item",{key:s,attrs:{"custom-checkbox":"","highlight-background":"",value:a},scopedSlots:e._u([{key:"activeCheckbox",fn:function(){return[t("div",{staticClass:"flex h-4 w-4 items-center justify-center rounded-xl border border-primary"},[t("div",{staticClass:"h-2 w-2 rounded-xl bg-primary"})])]},proxy:!0},{key:"notActiveCheckbox",fn:function(){return[t("div",{staticClass:"h-4 w-4 rounded-xl border border-primary"})]},proxy:!0}],null,!0)},[t("div",{staticClass:"flex items-center justify-between"},[t("div",[t("p",[e._v(e._s(a.msisdn))]),a.nickname?t("p",{staticClass:"text-sm"},[e._v(" "+e._s(a.nickname)+" ")]):t("div",[e._v(e._s(a.msisdn))])]),t("div",{staticClass:"text-end"},[t("p",{staticClass:"text-sm text-gray-600"},[e._v(e._s(e.$t("Balance")))]),t("p",[e._v(e._s(e.positionedPrice(a.balance)))])])])])}))],2):e._e()],1),e.$store.state.quickPay.selectedMyLines.length||e.selectedNumberSelectionType!==e.numberSelectionTypes.MY_NUMBERS?e._e():t("div",{staticClass:"mb-4 rounded-bl-lg rounded-br-lg"}),e._l(e.$store.state.quickPay.selectedMyLines,(function(a,s){return t("div",{key:s,class:{"mt-3":"sim"!==e.$store.state.loginType}},[t("quick-pay-card",{ref:"quickPayCards",refInFor:!0,attrs:{attached:"sim"===e.$store.state.loginType,"line-object":a},on:{"card-remove-line":function(t){return e.$store.dispatch("quickPay/removeOrderLine",{index:s,isMyLine:!0})},"card-update":t=>e.$store.dispatch("quickPay/updateOrderLine",{newVal:t.val,index:s,prop:t.prop,isMyLine:!0})}})],1)})),e._l(e.$store.state.quickPay.selectedOtherLines,(function(a,s){return t("div",{key:"otherLine"+s},[t("quick-pay-card",{ref:"quickPayCards",refInFor:!0,attrs:{attached:e.selectedNumberSelectionType===e.numberSelectionTypes.OTHER_NUMBER&&0===s,"line-object":a},on:{"card-remove-line":function(t){return e.$store.dispatch("quickPay/removeOrderLine",{index:s,isMyLine:!1})},"card-update":t=>e.$store.dispatch("quickPay/updateOrderLine",{newVal:t.val,index:s,prop:t.prop,isMyLine:!1})}})],1)})),t("div",{staticClass:"px-5 pt-2"},[t("z-button",{staticClass:"w-full py-3",attrs:{disabled:e.$store.getters["quickPay/allOrderLines"].some(e=>!e.validated),outlined:""},on:{click:function(t){return e.$store.dispatch("quickPay/addOrderLine")}}},[t("span",{staticClass:"icon-add-1 pr-1"}),e._v(" "+e._s(e.$t("OtherNumbers"))+" ")])],1)],2)},wd=[],_d={name:"QuickPayPrepaid",components:{QuickPayCard:ed,ZListBoxItem:Ze,ZListBox:ze,ZButton:R},mixins:[ws],computed:{selectedNumberSelectionType:{get(){return this.$store.state.quickPay.selectedNumberSelectionType},set(e){this.$store.state.quickPay.selectedNumberSelectionType=e,e===xc["numberSelectionTypes"].OTHER_NUMBER?this.setOtherNumber(e,e===xc["numberSelectionTypes"].OTHER_NUMBER?6:5):e===xc["numberSelectionTypes"].MY_NUMBERS&&this.clearOtherNumbers()}}},data(){return{numberSelectionTypes:xc["numberSelectionTypes"],orderTypes:xc["orderTypes"],paymentTypes:xc["paymentTypes"],paymentAmountTypes:xc["paymentAmountTypes"],quickPayStep:xc["quickPayStep"],paymentMethods:xc["paymentMethods"]}},methods:{async initQuickPay(){if(await this.$store.dispatch("quickPay/reset"),this.$store.state.isLoggedIn&&await this.$store.dispatch("quickPay/getPrepaidLinesData",{setLines:!1}),this.$store.state.quickPay.haveValidQuickPayParams){var e;this.$store.state.quickPay.haveValidQuickPayParams=!1;const s=null===(e=this.$store.state.quickPay.quickPayRouteParams)||void 0===e?void 0:e.amount,i=this.$store.getters["quickPay/getPrepaidLinesData"].findIndex(e=>{var t;return e.msisdn===(null===(t=this.$store.state.quickPay.quickPayRouteParams)||void 0===t?void 0:t.msisdn)});if(i>-1){this.selectedNumberSelectionType=xc["numberSelectionTypes"].MY_NUMBERS,this.$store.state.quickPay.selectedMyLines=this.$store.getters["quickPay/getPrepaidLinesData"].filter((e,t)=>i===t);const e=this.$store.state.quickPay.selectedMyLines[0];e.amount=null!==s&&void 0!==s?s:6,e.cardIndex=2,s&&(e.cardIndex=6)}else{var t,a;this.selectedNumberSelectionType=xc["numberSelectionTypes"].OTHER_NUMBER,await this.$store.dispatch("quickPay/selectLine",{msisdn:this.$store.state.quickPay.quickPayRouteParams.msisdn,isMyLine:!1,amount:null!==(t=null===(a=this.$store.state.quickPay.quickPayRouteParams)||void 0===a?void 0:a.amount)&&void 0!==t?t:6,cardIndex:s?6:2})}this.$store.state.quickPay.selectedPaymentAmountType=xc["paymentAmountTypes"].OTHER_AMOUNT}else await this.$store.dispatch("quickPay/getPrepaidLinesData",{setLines:!0}),0===this.$store.getters["quickPay/allOrderLines"].length&&0===this.$store.getters["quickPay/getPrepaidLinesData"].length&&(await this.$store.dispatch("quickPay/setSelectedNumberSelectionType",xc["numberSelectionTypes"].OTHER_NUMBER),await this.setOtherNumber(xc["numberSelectionTypes"].OTHER_NUMBER,6))},async setOtherNumber(e,t){await this.$store.dispatch("quickPay/selectLine",{isMyLine:!1,amount:t,selectionType:e})},clearOtherNumbers(){this.$store.state.quickPay.selectedOtherLines=[]}},async mounted(){await this.initQuickPay()}},Ad=_d,Sd=Object(v["a"])(Ad,Cd,wd,!1,null,null,null),Td=Sd.exports,kd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rounded-md overflow-hidden"},[t("div",{staticClass:"py-5 px-3 bg-white dark:bg-gray-700 relative overflow-visible"},[t("div",{staticClass:"flex flex-col space-y-3 animate-fade-in-down"},[e._l(e.savedCards,(function(s,i){return t("div",{key:i},[t("z-radio",{attrs:{name:"payment_method","native-value":e.paymentMethods.SAVED_CARD},on:{input:function(t){return e.setSavedCard(s)}},model:{value:e.selectedPaymentMethod,callback:function(t){e.selectedPaymentMethod=t},expression:"selectedPaymentMethod"}},[t("div",{staticClass:"flex justify-between w-full items-center py-4"},[t("div",{staticClass:"px-4"},["VISA"===s.brand?t("img",{staticClass:"w-20",attrs:{src:a("a236"),alt:"Visa"}}):"MASTERCARD"===s.brand?t("img",{staticClass:"w-20",attrs:{src:a("3c3e"),alt:"Master Card"}}):"AMERICANEXPRESS"===s.brand?t("img",{staticClass:"w-20",attrs:{src:a("82f0"),alt:"American Express"}}):e._e()]),t("div",{staticClass:"w-full flex-grow flex items-center"},[t("div",{staticClass:"font-bold me-2 text-sm"},[e._v(" "+e._s(e.$t("EndingIn"))+" "+e._s(s.card_number_masked.substr(-4))+" ")]),t("div",{staticClass:"font-bold ps-2 text-gray-400 text-sm",class:{"border-l-2":"en"===e.$i18n.locale,"border-r-2":"ar"===e.$i18n.locale}},[e._v(" "+e._s(e.$t("ExpiresOn"))+" "+e._s(s.card_expiry.month)+"/"+e._s(s.card_expiry.year)+" ")])])])]),e.selectedPaymentMethod===e.paymentMethods.SAVED_CARD&&s.token===e.$store.state.quickPay.tokenizedCard.token?t("div",[t("div",{staticClass:"flex items-center mb-3 ms-6 me-3"},[t("validation-provider",{attrs:{rules:"required|cvv",mode:"eager",name:"CVV"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"=ms-6 me-3",attrs:{message:a[0],label:"CVV",type:{danger:a[0]}}},[t("z-input",{staticClass:"w-36",attrs:{maxlength:"4",horizontal:"",type:"number"},model:{value:e.cardDetails.cvv,callback:function(t){e.$set(e.cardDetails,"cvv",t)},expression:"cardDetails.cvv"}})],1)]}}],null,!0)})],1)]):e._e(),t("hr",{class:{"mt-2":i>0}})],1)})),t("z-radio",{attrs:{name:"payment_method","native-value":e.paymentMethods.DEBIT_CARD},on:{input:function(t){return e.setSavedCard(null)}},model:{value:e.selectedPaymentMethod,callback:function(t){e.selectedPaymentMethod=t},expression:"selectedPaymentMethod"}},[t("div",{staticClass:"flex w-full items-center"},[t("img",{staticClass:"w-12 mx-6 my-1",attrs:{src:a("2187"),alt:"KNet"}}),t("div",{staticClass:"font-bold text-sm"},[e._v(e._s(e.$t("DebitCard")))])])]),t("hr"),t("z-radio",{attrs:{name:"payment_method","native-value":e.paymentMethods.CREDIT_CARD},on:{input:function(t){return e.setSavedCard(null)}},model:{value:e.selectedPaymentMethod,callback:function(t){e.selectedPaymentMethod=t},expression:"selectedPaymentMethod"}},[t("div",{staticClass:"flex flex-col xs:flex-row xs:justify-between w-full items-start xs:items-center"},[t("div",{staticClass:"font-bold ms-5 text-sm"},[e._v(" "+e._s(e.$tc("UserNewCard",1,{cardType:e.$t("CreditCard")}))+" ")]),t("div",{staticClass:"flex ms-3 xs:ms-0 items-center delay-100"},[t("img",{staticClass:"w-10 mx-2",class:{"filter grayscale":e.selectedPaymentMethod===e.paymentMethods.CREDIT_CARD&&"visa"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},staticStyle:{transition:"0.4s filter ease-out, 0.4s -webkit-filter ease-out"},attrs:{src:a("6823"),alt:"Visa"}}),t("img",{staticClass:"w-10 mx-2",class:{"filter grayscale":e.selectedPaymentMethod===e.paymentMethods.CREDIT_CARD&&"mastercard"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},staticStyle:{transition:"0.4s filter ease-out, 0.4s -webkit-filter ease-out"},attrs:{src:a("3c3e"),alt:"Master Card"}}),t("img",{staticClass:"w-10 mx-2",class:{"filter grayscale":e.selectedPaymentMethod===e.paymentMethods.CREDIT_CARD&&"amex"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},staticStyle:{transition:"0.4s filter ease-out, 0.4s -webkit-filter ease-out"},attrs:{src:a("82f0"),alt:"American Express"}})])])]),t("hr"),t("z-radio",{attrs:{name:"payment_method","native-value":e.paymentMethods.PAYPAL},on:{input:function(t){return e.setSavedCard(null)}},model:{value:e.selectedPaymentMethod,callback:function(t){e.selectedPaymentMethod=t},expression:"selectedPaymentMethod"}},[t("div",{staticClass:"flex w-full items-center"},[t("img",{staticClass:"w-12 mx-6 my-1",attrs:{src:a("ac7b"),alt:"KNet"}}),t("div",{staticClass:"font-bold text-sm"},[e._v(e._s(e.$t("Paypal")))])])])],2),e.selectedPaymentMethod===e.paymentMethods.CREDIT_CARD?t("div",[t("div",{staticClass:"animate-fade-in-down pt-2"},[t("validation-provider",{attrs:{rules:"required|credit_card",mode:"eager",name:e.$t("CardNumber")},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-3",attrs:{message:a[0],type:{danger:a[0]},label:e.$t("CardNumber")}},[t("z-input",{directives:[{name:"cleave-credit",rawName:"v-cleave-credit",value:{onCreditCardTypeChanged:e.cardChanged},expression:"{ onCreditCardTypeChanged: cardChanged }"}],staticClass:"w-full",attrs:{direction:"ltr","input-classes":"text-start","data-private":"",autocomplete:"cc-number"},model:{value:e.cardDetails.cardNumber,callback:function(t){e.$set(e.cardDetails,"cardNumber",t)},expression:"cardDetails.cardNumber"}})],1)]}}],null,!1,4025695756)}),t("div",{staticClass:"flex space-s-3"},[t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{staticClass:"w-full",attrs:{"data-private":"",label:e.$t("ExpiryMonth"),placeholder:"MM",autocomplete:"cc-exp-month"},model:{value:e.cardDetails.expiryMonth,callback:function(t){e.$set(e.cardDetails,"expiryMonth",t)},expression:"cardDetails.expiryMonth"}},e._l(e.getExpiryMonths(),(function(a){return t("option",{key:a},[e._v(" "+e._s(a)+" ")])})),0)],1)]}}],null,!1,68126621)}),t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{staticClass:"w-full",attrs:{label:e.$t("ExpiryYear"),"data-private":"",placeholder:"YY",autocomplete:"cc-exp-year"},model:{value:e.cardDetails.expiryYear,callback:function(t){e.$set(e.cardDetails,"expiryYear",t)},expression:"cardDetails.expiryYear"}},e._l(e.getExpiryYears(),(function(a){return t("option",{key:a.value,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)],1)]}}],null,!1,963934316)}),t("validation-provider",{staticClass:"flex-grow",attrs:{rules:"required|cvv",mode:"eager",name:"CVV"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-3",attrs:{message:a[0],type:{danger:a[0]},label:e.$t("CVV")}},[t("z-input",{staticClass:"w-full",attrs:{direction:"ltr","data-private":"",maxlength:4},on:{keypress:t=>e.onKeyUpFormat(t,"cvv",e.formatNumber)},model:{value:e.cardDetails.cvv,callback:function(t){e.$set(e.cardDetails,"cvv",t)},expression:"cardDetails.cvv"}})],1)]}}],null,!1,261612975)})],1),e.$store.state.isLoggedIn?t("div",{staticClass:"mt-2"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.cardDetails.registerCard,expression:"cardDetails.registerCard"}],staticClass:"p-2.5 text-green me-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.cardDetails.registerCard)?e._i(e.cardDetails.registerCard,null)>-1:e.cardDetails.registerCard},on:{change:function(t){var a=e.cardDetails.registerCard,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=null,r=e._i(a,n);s.checked?r<0&&e.$set(e.cardDetails,"registerCard",a.concat([n])):r>-1&&e.$set(e.cardDetails,"registerCard",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.cardDetails,"registerCard",i)}}}),e._v(" "+e._s(e.$t("SaveCard"))+" ")]):e._e(),e.showCreditCardCaptcha?t("captcha",{staticClass:"mt-9",attrs:{"show-message":!1},on:{verify:e=>{e&&(this.isCaptchaValid=!0)}}}):e._e()],1)]):e._e()]),t("div",{staticClass:"border-t border-primary border-opacity-30 px-5 pt-2"},[t("div",{staticClass:"text-center"},[t("div",{staticClass:"text-pink-600 font-bold cursor-pointer",on:{click:function(t){e.summaryHidden=!e.summaryHidden}}},[t("span",{staticClass:"text-sm"},[e._v(e._s(e.$t("Summary")))]),t("img",{staticClass:"inline-block m-2 transform transition-transform duration-300",class:{"rotate-180":e.summaryHidden},attrs:{src:a("67fc"),alt:"Show summary"}})])]),e.summaryHidden?t("div",{staticClass:"flex justify-between text-2xl font-bold"},[t("div",[e._v(e._s(e.$t("Total")))]),t("div",{staticClass:"text-green"},[e._v(e._s(e.$t("KD"))+" "+e._s(e.$store.getters["quickPay/billTotal"]))])]):t("div",{staticClass:"animate-fade-in-down"},[e.$store.getters["quickPay/allOrderLines"].length>0?t("div",{staticClass:"pt-4"},e._l(e.$store.getters["quickPay/allOrderLines"],(function(a){return t("div",{key:a.msisdn,staticClass:"mt-2 mb-3"},[t("div",{staticClass:"flex justify-between text-gray-500"},[t("div",[t("div",{staticClass:"flex items-center space-s-3"},[t("p",[e._v(" "+e._s(a.selectionType===e.numberSelectionTypes.CONTRACT_NUMBER?a.contractNumber:a.msisdn)+" ")]),a.nickname?t("z-tag",{attrs:{size:"small"}},[e._v(" "+e._s(a.nickname)+" ")]):a.selectionType===e.numberSelectionTypes.CONTRACT_NUMBER?t("z-tag",[e._v(" "+e._s(e.$t(a.selectionType))+" ")]):e._e()],1)]),t("div",[e._v(e._s(e.$t("KD")+" "+a.amount))])])])})),0):e._e(),t("div",{staticClass:"flex justify-between pt-4"},[t("div",{staticClass:"font-bold"},[e._v(e._s(e.$t("Total")))]),t("div",{staticClass:"font-bold text-pink-500"},[e._v(" "+e._s(e.$t("KD"))+" "+e._s(e.$store.getters["quickPay/billTotal"])+" ")])])]),t("div",{staticClass:"text-center mt-7 w-full"},[t("z-button",{staticClass:"w-full",attrs:{disabled:!e.selectedPaymentMethod||!e.validForm||!e.captchaValid},on:{click:function(t){return e.submitPayment()}}},[e._v(" "+e._s(0===e.$store.state.quickPay.selectedTab?e.$t("PayBill"):e.$t("RechargeNow"))+" ")]),t("z-button",{staticClass:"underline text-pink-500 font-bold mt-2",attrs:{borderless:"",size:"small"},on:{click:function(t){return e.setStep(e.quickPayStep.PAYMENT_DETAILS)}}},[e._v(" "+e._s(0===e.$store.state.quickPay.selectedTab?e.$t("Edit"):e.$t("EditRecharges"))+" ")])],1),t("div",{staticClass:"px-8 py-4 text-center"},[t("span",{staticClass:"text-sm"},[e._v(" "+e._s(0===e.$store.state.quickPay.selectedTab?e.$t("PayByClickingOn"):e.$t("RechargeByClickingOn"))+" "),t("span",{staticClass:"text-pink-500 underline",attrs:{role:"button"},on:{click:e.onClickTnC}},[e._v(" "+e._s(e.$t("TermsAndConditions"))+" ")])])])]),t("tn-c-popup",{attrs:{type:"payment","confirm-label":e.$t("OK"),"on-confirm":e.onCancelTnCModal,"on-cancel":e.onCancelTnCModal},model:{value:e.TnCModalActive,callback:function(t){e.TnCModalActive=t},expression:"TnCModalActive"}})],1)},Pd=[],$d={name:"QuickPayPaymentMethod",props:{validForm:Boolean},mixins:[wa,se],components:{Captcha:Yc,TnCPopup:tr,ZTag:N,ZButton:R,ZSelect:A,ZField:ya,ZInput:H,ZRadio:Kt,ValidationProvider:re["b"]},computed:{savedCards(){var e,t;return null!==(e=null===(t=this.$store.state[ae["b"].TOKENIZED_CARDS])||void 0===t?void 0:t.data)&&void 0!==e?e:[]},captchaValid(){return"sim"===this.$store.state.loginType||this.selectedPaymentMethod!==xc["paymentMethods"].CREDIT_CARD||this.isCaptchaValid},showCreditCardCaptcha(){return"sim"!==this.$store.state.loginType&&this.showCaptcha},selectedPaymentMethod:{get(){return this.$store.state.quickPay.selectedPaymentMethod},set(e){this.$store.state.quickPay.selectedPaymentMethod=e}}},data(){return{cardDetails:{cardNumber:"",registerCard:!0},summaryHidden:!0,TnCModalActive:!1,paymentMethods:xc["paymentMethods"],quickPayStep:xc["quickPayStep"],numberSelectionTypes:xc["numberSelectionTypes"],isCaptchaValid:!1,showCaptcha:!0}},methods:{async submitPayment(){var e,t;const a=await this.$store.dispatch("quickPay/submitPayment",{...this.cardDetails,cardNumber:null===(e=this.cardDetails)||void 0===e||null===(t=e.cardNumber)||void 0===t?void 0:t.replace(/ /g,"")});if(!a){this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Payment Failed. Please try again later"}),this.isCaptchaValid=!1,this.showCaptcha=!1;let e=this;setTimeout(()=>{e.showCaptcha=!0},400)}},setStep(e){this.$store.dispatch("quickPay/setQuickPayStep",e)},setSavedCard(e){this.$store.state.quickPay.tokenizedCard=e,null!==e&&void 0!==e&&e.card_expiry?(this.cardDetails.cvv="",this.cardDetails.expiryMonth=e.card_expiry.month,this.cardDetails.expiryYear=e.card_expiry.year):(this.cardDetails.expiryMonth="",this.cardDetails.expiryYear="",this.cardDetails.cvv="")},onClickTnC(){this.TnCModalActive=!0},onCancelTnCModal(){this.TnCModalActive=!1}},mounted(){this.initStateResources(ae["b"].TOKENIZED_CARDS),this.$store.state.isLoggedIn||(this.cardDetails.registerCard=!1)}},Md=$d,Od=Object(v["a"])(Md,kd,Pd,!1,null,null,null),Nd=Od.exports,Ed={name:"QuickPay",components:{Captcha:Yc,QuickPayPaymentMethod:Nd,QuickPayPrepaid:Td,QuickPayPostpaid:xd,ZLoading:Je,ZTabItem:pa,ZTabs:ra,ZButton:R,ValidationObserver:re["a"]},mixins:[wa,ws],props:{showBackButton:{type:Boolean,default:!0}},computed:{currentQuickPayStep:{get(){return this.$store.state.quickPay.currentQuickPayStep},set(e){this.$store.dispatch("quickPay/setQuickPayStep",e)}},selectedTab:{get(){return this.$store.state.quickPay.selectedTab},set(e){this.$store.dispatch("quickPay/setActiveTab",e)}},terminatedBalance(){return this.$store.getters["quickPay/getTerminatedBalance"]},isTerminatedBalanceShown(){const e=this.$store.state.quickPay.selectedNumberSelectionType===xc["numberSelectionTypes"].MY_NUMBERS,t=this.$store.state.quickPay.selectedPaymentAmountType===xc["paymentAmountTypes"].TOTAL;return 0===this.selectedTab&&this.terminatedBalance.Total>0&&e&&t},isTerminatedAmountBelow30(){var e,t;if(this.terminatedBalance.Total<=0)return!1;const a=null===(e=this.$store.getters["quickPay/allOrderLines"])||void 0===e||null===(t=e.find(e=>e.selectionType===xc["numberSelectionTypes"].TERMINATED_DUES))||void 0===t?void 0:t.amount;if(!a)return!1;const s=this.$store.state.quickPay.selectedPaymentAmountType===xc["paymentAmountTypes"].OTHER_AMOUNT;return s&&a<30},billTotal(){return this.$store.getters["quickPay/billTotal"]},canProceedToPaymentMethod(){return this.$store.getters["quickPay/canProceedToPaymentMethod"]}},data(){return{numberSelectionTypes:xc["numberSelectionTypes"],quickPayStep:xc["quickPayStep"],paymentAmountTypes:xc["paymentAmountTypes"],paymentTypes:xc["paymentTypes"],paymentMethods:xc["paymentMethods"],quickPayReady:!1,paramMsisdn:"",paramContractNumber:"",showCaptcha:!1}},methods:{onCaptchaResult(e){e&&(this.$store.state.quickPay.captchaVerified=!0,this.validateQueryParams())},async validateQueryParams(){if(this.paramContractNumber){const e=await Object(re["f"])(this.paramContractNumber,"zain_contract");if(e.valid)return this.$store.state.quickPay.haveValidQuickPayParams=!0,this.$store.state.quickPay.quickPayRouteParams={contractNumber:this.paramContractNumber},this.selectedTab=xc["paymentTypes"].PAY_BILL,void(this.quickPayReady=!0)}if(this.paramMsisdn){const a=await Object(re["f"])(this.paramMsisdn,"kuwait_msisdn");if(a.valid){const a=await G["a"].subscriberTypeQuery({msisdn:this.paramMsisdn,contractNumber:"anonymous"});if(null!==a&&void 0!==a&&a.data){var e,t;const s=a.data;this.$store.state.quickPay.haveValidQuickPayParams=!0,this.$store.state.quickPay.quickPayRouteParams={msisdn:this.paramMsisdn,subscriberType:a.data};const i=Math.max(0,Number(null===(e=this.$route)||void 0===e||null===(t=e.query)||void 0===t?void 0:t.a));i>=1&&(this.$store.state.quickPay.quickPayRouteParams.amount=i),this.selectedTab="Postpaid"===s.BillingType?xc["paymentTypes"].PAY_BILL:xc["paymentTypes"].PREPAID_RECHARGE,this.quickPayReady=!0}return}}this.quickPayReady=!0,this.selectedTab=this.$store.getters.isPrepaid?xc["paymentTypes"].PREPAID_RECHARGE:xc["paymentTypes"].PAY_BILL}},async mounted(){var e,t,a,s;Ea["default"].addEvent({event_name:"Viewed Quickpay"}),this.currentQuickPayStep=xc["quickPayStep"].PAYMENT_DETAILS,this.paramMsisdn=null===(e=this.$route)||void 0===e||null===(t=e.query)||void 0===t?void 0:t.m,this.paramContractNumber=null===(a=this.$route)||void 0===a||null===(s=a.query)||void 0===s?void 0:s.c,(this.paramMsisdn||this.paramContractNumber)&&"anonymous"===this.$store.state.loginType?this.showCaptcha=!0:this.paramMsisdn||this.paramContractNumber?await this.validateQueryParams():(this.quickPayReady=!0,this.selectedTab=this.$store.getters.isPrepaid?xc["paymentTypes"].PREPAID_RECHARGE:xc["paymentTypes"].PAY_BILL)}},Dd=Ed,Id=(a("b6c3"),Object(v["a"])(Dd,yc,bc,!1,null,null,null)),Bd=Id.exports,Ld={name:"AnonDashboard",components:{PinkHR:so,Offers:Er,QuickPay:Bd}},Rd=Ld,Ud=Object(v["a"])(Rd,gc,fc,!1,null,"0596a065",null),zd=Ud.exports,jd={name:"Home",components:{AnonDashboard:zd,B2BDashboard:vc,Dashboard:cc},methods:{async beforeMount(){this.$store.getters.isCorporate&&ja["a"].CorporateRedirection&&"sim"===this.$store.state.loginType&&(this.$store.state.globalLoading=!0,await location.replace(`https://www.kw.zain.com/${this.$i18n.locale}/web/business-myzain`))}},computed:{isContractHolder(){return this.$store.state.isLoggedIn&&"contract"===this.$store.state.loginType},getCustomerLines(){const e=this.$store.state.customerLines.filter(e=>e.is_validated);return e.sort(e=>e.msisdn===this.$store.state.msisdn?-1:1)},isLoggedIn(){return this.$store.state.isLoggedIn},hasLines(){return"sim"===this.$store.state.loginType||this.getCustomerLines.length>0}},mounted(){Ea["default"].addEvent({event_name:"Viewed Home"})}},Fd=jd,Vd=Object(v["a"])(Fd,Js,ei,!1,null,null,null),Hd=Vd.exports,Gd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"px-3 mt-4 lg:mt-10 mb-14"},[e.showDisneyBanner?t("quickpay-ott-promotion-banner"):e._e(),t("div",{staticClass:"bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg max-w-xl mx-auto relative p-5 my-10",staticStyle:{"min-height":"24rem"}},[t("div",[t("div",{staticClass:"font-extrabold text-2xl my-2"}),t("z-loading",{attrs:{active:"pending"===e.getPaymentStatus,"is-full-page":!1}}),e.errorGettingPaymentInfo?t("div",{staticClass:"flex justify-center items-center h-full"},[e._v(" Error getting payment info ")]):t("div",["pending"!==e.getPaymentStatus?t("div",{staticClass:"animate-fade-in-down flex flex-col justify-center items-center h-full"},[t("div",{staticClass:"justify-center flex"},["success"===e.getPaymentStatus?t("img",{staticClass:"inline-block bg-clip-text bg-pink-500 mt-12",attrs:{src:a("888c"),alt:""}}):t("img",{staticClass:"inline-block bg-clip-text bg-pink-500 mt-12",attrs:{src:a("6999"),alt:""}})]),t("div",{staticClass:"py-8"},[t("p",{staticClass:"text-xl font-bold text-center mb-6"},[e._v(" "+e._s("success"===e.getPaymentStatus?e.$t("PaymentComplete"):"Payment Failed")+" ")]),t("hr")])]):e._e(),"pending"!==e.getPaymentStatus&&e.paymentInfo&&e.paymentInfo.details&&e.paymentInfo.details.length>0?t("div",[e._l(e.numberSelectionTypes,(function(a,s){return t("div",{key:s,staticClass:"pb-4"},[e.paymentInfo.paymentDetails.filter(e=>e.numberSelectionType===a.type).length>0?t("div",[t("p",{staticClass:"font-bold text-pink-500 pb-2"},[e._v(e._s(e.$t(a.key)))]),e._l(e.paymentInfo.paymentDetails.filter(e=>e.numberSelectionType===a.type),(function(s,i){return t("div",{key:i},[t("div",{staticClass:"flex justify-between text-gray-500 pb-1"},[""!==s.nickname&&"MY_NUMBERS"===s.numberSelectionType?t("div",[e._v(" "+e._s(s.msisdn)+" - "+e._s(s.nickname)+" ")]):t("div",[e._v(e._s(s.msisdn))]),t("div",[e._v(" "+e._s(e.$t("KD")+" "+s.amount)+" ")])]),e.paymentInfo.paymentDetails.filter(e=>e.numberSelectionType===a.type).length-1>i?t("hr"):e._e()])}))],2):e._e()])})),t("hr"),t("div",{staticClass:"flex justify-between py-4"},[t("div",{staticClass:"font-bold"},[e._v(e._s(e.$t("Total")))]),t("div",{staticClass:"font-bold text-pink-500"},[e._v(" "+e._s(e.$t("KD"))+" "+e._s(e.paymentInfo.order.total_amount)+" ")])]),t("hr"),t("div",{staticClass:"py-4"},[t("p",{staticClass:"font-bold text-pink-500 pb-4"},[e._v(e._s(e.$t("PaymentDetails")))]),t("div",{staticClass:"flex justify-between text-gray-500 py-3"},[t("div",[e._v(e._s(e.$t("TransactionDate")))]),t("div",[e._v(e._s(e.paymentInfo.order.created.substr(0,10)))])]),t("hr"),t("div",{staticClass:"flex justify-between items-center text-gray-500 py-2"},[t("div",[e._v(e._s(e.$t("PaymentMethod")))]),t("div",{staticClass:"flex justify-between items-center"},["Debit"===e.paymentInfo.payment_info.card_type?t("img",{staticClass:"w-10 mx-2",attrs:{src:a("6818"),alt:"K-NET"}}):e._e(),"Paypal"===e.paymentInfo.payment_info.card_type?t("img",{staticClass:"w-10 mx-2",attrs:{src:a("ac7b"),alt:"Paypal"}}):"visa"===e.ccType?t("img",{staticClass:"w-10 mx-2",attrs:{src:a("6823"),alt:"Visa"}}):"mastercard"===e.ccType?t("img",{staticClass:"w-10 mx-2",attrs:{src:a("3c3e"),alt:"Master Card"}}):"americanExpress"===e.ccType?t("img",{staticClass:"w-10 mx-2",attrs:{src:a("82f0"),alt:"American Express"}}):e._e(),"TokenizedCard"===e.paymentInfo.order.payment_method?t("div",[e._v("Saved Card")]):e._e(),e._v(" "+e._s(e.paymentInfo.payment_info.card_number)+" ")])]),e.paymentInfo.order.id?t("hr"):e._e(),e.paymentInfo.order.id?t("div",{staticClass:"flex justify-between text-gray-500 py-3"},[t("div",[e._v(e._s(e.$t("OrderId")))]),t("div",{staticClass:"flex justify-between"},[e._v(" "+e._s(e.paymentInfo.order.id)+" ")])]):e._e(),e.paymentInfo.order.external_reference?t("hr"):e._e(),e.paymentInfo.order.external_reference?t("div",{staticClass:"flex justify-between text-gray-500 pt-3"},[t("div",[e._v(e._s(e.$t("Reference")))]),t("div",{staticClass:"flex justify-between"},[e._v(" "+e._s(e.paymentInfo.order.external_reference)+" ")])]):e._e()]),t("div",{staticClass:"w-full flex justify-around space-x-2 p-2"},[t("z-button",{staticClass:"w-full",attrs:{outlined:""},on:{click:()=>e.$router.push("/")}},[e._v(e._s(e.$t("BackToDashboard")))])],1)],2):e._e()])],1)])],1)},Zd=[],qd=function(){var e=this,t=e._self._c;return t("div",{staticClass:"px-7 max-w-xl bg-white dark:bg-gray-700 shadow-lg rounded-xl overflow-hidden rounded-lg mx-auto",staticStyle:{"max-height":"152px"}},[t("div",{staticClass:"py-4"},[t("div",{staticClass:"font-bold text-xs"},[e._v(" "+e._s(e.$t("ActivateNowAndEnjoyUpTo6MonthsFREEOnUs"))+" ")]),t("div",{staticClass:"text-gray-500 text-xs mt-1.5"},[e._v(" Disney+, Shahid, TOD, OSN+, STARZPLAY, VIU & more! ")]),e._m(0),t("div",{staticClass:"text-xs text-primary font-bold items-center flex",attrs:{role:"button"},on:{click:e.onClickUpgradeYourPlan}},[t("div",{staticClass:"me-1"},[e._v(" "+e._s(e.$t("ActivateMyContent")))]),t("img",{staticClass:"w-2.5 transform",class:{"rotate-90":"ar"===e.locale,"-rotate-90":"ar"!==e.locale},attrs:{alt:"Arrow",src:a("82f5")}})])])])},Kd=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex justify-center w-full my-3"},[t("img",{attrs:{src:a("725a")}})])}],Yd={name:"QuickpayOttPromotionBanner",computed:{locale(){return this.$i18n.locale}},methods:{onClickUpgradeYourPlan(){this.$router.push("/#MyContent")}}},Wd=Yd,Qd=Object(v["a"])(Wd,qd,Kd,!1,null,"9fca2a50",null),Xd=Qd.exports,Jd={name:"QuickPayResult",components:{QuickpayOttPromotionBanner:Xd,ZLoading:Je,ZButton:R},mixins:[wa],computed:{getPaymentStatus(){if(this.isLoading)return"pending";if(this.paymentInfo){var e,t,a,s;if(["PaymentFailed"].includes(null===(e=this.paymentInfo)||void 0===e||null===(t=e.order)||void 0===t?void 0:t.status))return"failure";if(["Completed","Paid"].includes(null===(a=this.paymentInfo)||void 0===a||null===(s=a.order)||void 0===s?void 0:s.status))return"success"}return"pending"},showDisneyBanner(){return this.$store.getters.isPostpaid&&"Voice"===this.$store.getters.getBasicServiceType&&!1}},data(){return{isLoading:!0,paymentInfo:null,errorGettingPaymentInfo:!1,retries:0,maxRetries:5,delaySeconds:5,numberSelectionTypes:[{type:"MY_NUMBERS",key:"MyNumbers"},{type:"OTHER_NUMBER",key:"OtherNumber"},{type:"CONTRACT_NUMBER",key:"ContractNumber"},{type:"TERMINATED_DUES",key:"TerminatedFees"}]}},async mounted(){var e,t,a,s,i,n,r,o,l,c,d,u,p,m,h,v,g,f,y,b;(await this.getPaymentInfo(),this.formatCreditCard(null===(e=this.paymentInfo)||void 0===e||null===(t=e.payment_info)||void 0===t?void 0:t.card_number),this.paymentInfo)&&(["PaymentFailed","Open"].includes(null===(a=this.paymentInfo)||void 0===a||null===(s=a.order)||void 0===s?void 0:s.status)?"CANCELED"===(null===(d=this.paymentInfo)||void 0===d||null===(u=d.payment_info)||void 0===u?void 0:u.gw_result)?Ea["default"].addEvent({event_name:"Transaction Cancelled",custom_attributes:{channel:"",PaymentMethod:null===(p=this.paymentInfo)||void 0===p||null===(m=p.order)||void 0===m?void 0:m.payment_method,PaymentAmount:null===(h=this.paymentInfo)||void 0===h||null===(v=h.order)||void 0===v?void 0:v.total_amount}}):Ea["default"].addEvent({event_name:"Transaction Failed",custom_attributes:{channel:"",PaymentMethod:null===(g=this.paymentInfo)||void 0===g||null===(f=g.order)||void 0===f?void 0:f.payment_method,PaymentAmount:null===(y=this.paymentInfo)||void 0===y||null===(b=y.order)||void 0===b?void 0:b.total_amount}}):["Completed","Paid"].includes(null===(i=this.paymentInfo)||void 0===i||null===(n=i.order)||void 0===n?void 0:n.status)&&Ea["default"].addEvent({event_name:"Transaction Completed",custom_attributes:{channel:"",PaymentMethod:null===(r=this.paymentInfo)||void 0===r||null===(o=r.order)||void 0===o?void 0:o.payment_method,PaymentAmount:null===(l=this.paymentInfo)||void 0===l||null===(c=l.order)||void 0===c?void 0:c.total_amount}}))},methods:{async getPaymentInfo(){try{var e,t;const a=await G["a"].paymentInfo(this.$route.query.external_reference);if(this.paymentInfo=a.data,["Open","InProgress","Paid","TemporaryFailed","Failed"].includes(null===(e=this.paymentInfo)||void 0===e||null===(t=e.order)||void 0===t?void 0:t.status))if(this.retriese.getPaymentInfo(),1e3*this.delaySeconds)}else this.errorGettingPaymentInfo=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",error_message:"failed to get payment info"}})}catch(a){this.errorGettingPaymentInfo=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",error_message:"failed to get payment info"}})}finally{this.isLoading=!1,this.$store.state.globalLoading=!1}}}},eu=Jd,tu=Object(v["a"])(eu,Gd,Zd,!1,null,null,null),au=tu.exports,su=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mx-auto flex w-full max-w-5xl flex-col overflow-hidden dark:border-gray-600 md:my-10 md:flex-row md:rounded-md md:border md:shadow-lg"},[t("div",{staticClass:"bg-zainPurple-dark p-5 text-center text-white md:w-64"},[t("p",{staticClass:"text-sm"},[e._v(e._s(e.$t("ContractNumber")))]),t("p",{staticClass:"text-lg font-bold"},[e._v(e._s(e.$store.getters.getContractNumber))]),e._m(0),t("p",[e._v(e._s(e.$store.getters.getFirstName)+" "+e._s(e.$store.getters.getLastName))]),t("hr",{staticClass:"my-5 border-t border-white border-opacity-70"}),t("div",{staticClass:"flex items-center justify-evenly"},[t("span",{staticClass:"text-sm font-bold"},[e._v(" "+e._s("keycloak"===e.$store.state.loginType?e.$store.getters.getValidatedCustomerLines.length:1)),t("br"),e._v(e._s(e.$tc("Line","keycloak"===e.$store.state.loginType?e.$store.getters.getValidatedCustomerLines.length:1))+" ")]),t("z-button",{attrs:{size:"xsmall",type:"white",outlined:""},on:{click:function(t){"keycloak"===e.$store.state.loginType?e.$refs.lines.addNewLine():e.onLogin()}}},[t("span",[e._v(e._s(e.$t("AddLines")))])])],1),t("hr",{staticClass:"my-5 border-t border-white border-opacity-70"}),t("div",{staticClass:"grid grid-cols-2 md:flex md:flex-col md:items-start md:space-y-3"},[t("a",{staticClass:"flex flex-1 flex-col items-center justify-between space-y-2.5 hover:text-primary md:flex-row md:justify-center md:space-y-0",attrs:{href:"https://www.kw.zain.com/en/shop/order-history"+e.shopURLParameters}},[t("img",{staticClass:"h-7 md:h-auto md:w-5",attrs:{alt:"order history",src:a("3c53")}}),t("span",{staticClass:"flex h-full items-center text-sm underline md:ms-2"},[e._v(e._s(e.$t("OrderHistory")))])]),t("a",{staticClass:"flex flex-1 flex-col items-center justify-center space-y-2.5 hover:text-primary md:flex-row md:space-y-0",on:{click:()=>"keycloak"===e.$store.state.loginType?e.onLogout():e.onLogin()}},[t("img",{staticClass:"h-7 md:h-auto md:w-5",attrs:{alt:"logout",src:a("4488")}}),t("span",{staticClass:"flex h-full items-center text-sm underline md:ms-2"},[e._v(" "+e._s("keycloak"===e.$store.state.loginType?e.$t("Logout"):e.$t("Login"))+" ")])])])]),t("div",{staticClass:"w-full bg-white p-12 dark:bg-transparent"},[t("div",{staticClass:"grid w-full gap-6 md:grid-cols-2"},[t("z-input",{staticClass:"w-full",attrs:{value:e.$store.getters.getFirstName,disabled:"",label:e.$t("FirstName")}}),t("z-input",{staticClass:"w-full",attrs:{value:e.$store.getters.getLastName,disabled:"",label:e.$t("LastName")}}),e.$store.getters.getEmail?t("z-input",{staticClass:"w-full",attrs:{value:e.$store.getters.getEmail,disabled:"",label:e.$t("Email")}}):e._e(),e.$store.getters.getMainLine?t("z-input",{staticClass:"w-full",attrs:{value:e.$store.getters.getMainLine,disabled:"",label:e.$t("PreferredNumber")}}):e._e()],1),t("div",{staticClass:"mt-10"},[t("p",{staticClass:"pb-1.5 text-sm font-medium"},[e._v(e._s(e.$t("PreferredLanguage")))]),t("div",{staticClass:"flex space-s-5"},[t("z-radio-button",{staticClass:"w-36",attrs:{"native-value":"ar"},model:{value:e.localeRadio,callback:function(t){e.localeRadio=t},expression:"localeRadio"}},[e._v("العربية")]),t("z-radio-button",{staticClass:"w-36",attrs:{"native-value":"en"},model:{value:e.localeRadio,callback:function(t){e.localeRadio=t},expression:"localeRadio"}},[e._v("English")])],1)])])]),t("div",{staticClass:"my-10 mx-auto max-w-5xl"},[t("z-tabs",["keycloak"===e.$store.state.loginType?t("z-tab-item",{attrs:{label:e.$t("MyLines")}},[t("lines",{ref:"lines",attrs:{loading:e.isLinesLoading,"msisdn-list-autopay-enabled":e.msisdnListAutopayEnabled}})],1):e._e(),t("z-tab-item",{attrs:{label:e.$t("MySavedCards")}},[t("div",{staticClass:"p-6"},[t("div",{class:{"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3":e.tokenizedCards&&e.tokenizedCards.length}},[e._l(e.tokenizedCards,(function(s,i){return t("div",{key:i,staticClass:"flex flex-col overflow-hidden rounded-md border border-gray-200 p-6"},[t("div",{staticClass:"flex w-full justify-between"},["MASTERCARD"===s.brand?t("img",{staticClass:"h-8",attrs:{alt:"mastercard",src:a("8999")}}):e._e(),"VISA"===s.brand?t("img",{staticClass:"h-8",attrs:{alt:"visa",src:a("25de")}}):e._e(),"AMERICANEXPRESS"===s.brand?t("img",{staticClass:"mt-1 h-7",attrs:{alt:"amex",src:a("82f0")}}):e._e(),t("z-button",{staticClass:"h-8 py-1 px-3 text-black no-underline",attrs:{borderless:"",paddingless:"",size:"xsmall"},on:{click:function(t){return e.onRemoveCard(s)}}},[e._v(" "+e._s(e.$t("Remove"))+" ")])],1),t("p",{staticClass:"mt-6"},[e._v(" "+e._s(s.card_number_masked)+" "),t("br"),t("span",{staticClass:"text-sm text-gray-600"},[e._v(" "+e._s(e.$t("Expires"))+" "+e._s(s.card_expiry.month)+"/"+e._s(s.card_expiry.year)+" ")])])])})),e.tokenizedCards&&!e.tokenizedCards.length?t("div",[t("div",{staticClass:"w-full rounded-lg border border-gray-200 px-6 py-12 text-center text-gray-700 shadow-sm"},[t("div",{staticClass:"icon-credit-card my-3 text-4xl"}),t("p",[e._v(e._s(e.$t("NoSavedCards")))])])]):e._e()],2)])])],1)],1)])},iu=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"mx-auto my-3 flex h-24 w-24 items-center justify-center rounded-full bg-gradient-to-tr from-teal via-zainPurple-light to-teal"},[t("span",{staticClass:"icon-user-4 rounded-full bg-zainPurple-dark p-7 text-4xl"})])}],nu=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"p-6 lg:px-0"},[t("div",{staticClass:"grid gap-6 md:grid-cols-3"},[t("z-input",{staticClass:"inline-block",attrs:{placeholder:e.$t("SearchExistingNumber")},model:{value:e.searchNumber,callback:function(t){e.searchNumber=t},expression:"searchNumber"}}),t("z-button",{attrs:{size:"small"},on:{click:function(t){return e.addNewLine()}}},[t("span",{staticClass:"icon-add-1 text-xs pe-4"}),t("span",{staticClass:"capitalize pe-2"},[e._v(e._s(e.$t("AddLine")))])])],1),e.linesFiltered.length?e._e():t("div",{staticClass:"mt-6 w-full rounded-lg border border-gray-200 px-6 py-12 text-center text-gray-700 shadow-sm"},[t("div",{staticClass:"icon-My-Lines my-3 text-4xl"}),t("p",[e._v(e._s(e.$t("NoLinesFound")))])]),t("div",{staticClass:"mt-6 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3"},e._l(e.linesFiltered,(function(a,s){return t("div",{key:s,staticClass:"relative flex flex-col overflow-hidden rounded-md border border-gray-200 pb-6"},[t("z-loading",{attrs:{active:e.loading,"is-full-page":!1}}),t("div",{staticClass:"absolute flex items-center px-6 py-2 text-xs font-bold text-white end-0 rounded-bs-md",class:[a.is_main?"bg-primary":"",a.is_validated?"":"bg-gray-600"]},[e._v(" "+e._s(a.is_main?e.$t("Primary"):a.is_validated?"":e.$t("NotValidated"))+" ")]),t("div",{staticClass:"mt-4 flex h-full flex-col justify-start space-y-2 px-6"},[t("div",{staticClass:"flex items-baseline space-s-2"},[t("h1",{staticClass:"text-lg font-extrabold"},[e._v(" "+e._s(a.nickname)+" ")])]),t("h2",{staticClass:"text-lg font-bold text-primary"},[e._v(" "+e._s(a.msisdn)+" ")]),t("div",{staticClass:"flex content-between items-center space-s-1"},[t("span",{staticClass:"h-2 w-2 rounded-full bg-primary",class:[e.getMsisdnAutopayEnabled(a.msisdn)?"bg-green":"bg-red-600"]}),t("p",{staticClass:"text-sm text-gray-500 dark:text-white"},[e._v(" "+e._s(e.getMsisdnAutopayEnabled(a.msisdn)?e.$t(e.$store.getters.getBillingType+"AutoPayActive"):e.$t(e.$store.getters.getBillingType+"AutoPayNotActive"))+" ")])]),t("p",{staticClass:"text-xs"},[e._v(" "+e._s("POST"===a.billing_type?"Postpaid":"")+e._s("PREP"===a.billing_type?"Prepaid":"")+" "+e._s("VOICE"===a.basic_service_type?"Voice":"")+e._s("DATA"===a.basic_service_type?"Data":"")+" ")]),t("div",{staticClass:"flex-grow"}),t("div",{staticClass:"flex flex-wrap gap-y-2 align-middle"},[a.is_validated?t("z-button",{staticClass:"h-8 border border-gray-200 py-1 px-3 font-medium text-gray-900 no-underline me-2",attrs:{size:"xsmall",borderless:"",paddingless:""},on:{click:()=>{e.changeNicknameLine=a.msisdn,e.nicknameChangeModalActive=!0,e.changeNicknameInput=a.nickname}}},[e._v(" "+e._s(e.$t("EditName"))+" ")]):e._e(),a.is_validated?e._e():t("z-button",{staticClass:"h-8 border border-gray-200 py-1 px-3 font-medium text-gray-900 no-underline me-2",attrs:{borderless:"",paddingless:"",size:"xsmall"},on:{click:function(t){return e.OnLineValidate(a)}}},[e._v(" "+e._s(e.$t("Validate"))+" ")]),t("z-button",{staticClass:"h-8 border border-gray-200 py-1 px-3 font-medium text-gray-900 no-underline me-2",attrs:{size:"xsmall",borderless:"",paddingless:"",outlined:""},on:{click:()=>{e.deletionLine=a.msisdn,e.deleteLineModalActive=!0}}},[e._v(" "+e._s(e.$t("RemoveLine"))+" ")]),a.is_validated?t("z-button",{staticClass:"h-8 border border-gray-200 py-1 px-3 font-medium text-gray-900 no-underline me-2",attrs:{size:"xsmall",loading:e.isPUKLoading,borderless:"",paddingless:""},on:{click:function(t){return e.onClickRequestPUKCode({contractNumber:a.contract_id,msisdn:a.msisdn})}}},[e._v(" "+e._s(e.$t("RequestPUKCode"))+" ")]):e._e()],1)])],1)})),0)]),t("z-modal",{attrs:{"can-cancel":"","can-confirm":"","on-confirm":e.onConfirmDelete,active:e.deleteLineModalActive},on:{"update:active":function(t){e.deleteLineModalActive=t}}},[t("div",{staticClass:"p-12"},[t("p",{staticClass:"text-lg"},[e._v(e._s(e.$tc("AreYouSureDeleteLine",0,{msisdn:e.deletionLine})))])])]),t("z-modal",{attrs:{"can-cancel":"","can-confirm":"","confirm-label":e.$t("OK"),"on-confirm":e.OnNicknameChange,active:e.nicknameChangeModalActive},on:{"update:active":function(t){e.nicknameChangeModalActive=t}}},[t("div",{staticClass:"p-12"},[t("p",{staticClass:"mb-3"},[e._v(e._s(e.$tc("SelectNewNickname",0,{msisdn:e.changeNicknameLine})))]),t("z-input",{staticClass:"text-start",model:{value:e.changeNicknameInput,callback:function(t){e.changeNicknameInput=t},expression:"changeNicknameInput"}})],1)]),t("z-modal",{attrs:{"can-cancel":"","on-cancel":e.onCancelPUKModal,active:e.showPUKModalActive},on:{"update:active":function(t){e.showPUKModalActive=t}}},[t("div",{staticClass:"flex flex-col justify-center px-12 py-6"},[t("img",{staticClass:"mx-auto mb-2 h-16 w-16",attrs:{src:a("d71a"),alt:"success-icon"}}),t("div",{staticClass:"text-lg font-bold"},[e._v(" "+e._s(e.$t("PUKCode"))+" ")]),t("div",{staticClass:"mb-2 text-sm text-gray-500"},[e._v(e._s(e.$t("YourPUKCodeIs"))+" "+e._s(this.linePUK))]),t("div",[t("z-button",{staticClass:"uppercase",attrs:{size:"small"},on:{click:function(t){return e.copyPUKCode()}}},[t("p",{staticClass:"px-3 text-xs font-bold"},[e._v(e._s(e.isCopied?e.$t("Copied")+"!":e.$t("Copy")))])])],1)])])],1)},ru=[],ou={name:"Lines",components:{ZLoading:Je,ZModal:Be,ZInput:H,ZButton:R},mixins:[Da],props:{loading:{type:Boolean,default:!1},msisdnListAutopayEnabled:{type:Array,default:()=>[]}},computed:{linesFiltered(){return this.searchNumber?this.customerLines.filter(e=>e.msisdn.indexOf(this.searchNumber)>=0||e.nickname.toLowerCase().indexOf(this.searchNumber.toLowerCase())>=0):this.customerLines},customerLines(){let e=this.$store.state.customerLines;return e.sort(e=>e.is_main?-1:1)}},data(){return{localeRadio:"en",addressRadio:null,currentAddress:null,linePUK:"",isLinesLoading:!0,isCopied:!1,searchNumber:"",changeNicknameLine:"",changeNicknameInput:"",nicknameChangeModalActive:!1,deletionLine:null,deleteLineModalActive:!1,isPUKLoading:!1,showPUKModalActive:!1}},methods:{async onClickRequestPUKCode({contractNumber:e,msisdn:t}){var a;if(this.isPUKLoading)return;this.isPUKLoading=!0;const s=await G["a"].lineInfo({contractNumber:e,msisdn:t});this.linePUK=null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.PUK1,this.showPUKModalActive=!0,this.isPUKLoading=!1},onCancelPUKModal(){this.isCopied=!1,this.linePUK=""},copyPUKCode(){navigator.clipboard.writeText(this.linePUK),this.isCopied=!0},async OnNicknameChange(){try{await G["a"].updateKeycloakLine(this.changeNicknameLine,this.changeNicknameInput),await this.$store.dispatch("getKeycloakCustomerLines"),this.changeNicknameInput="",this.changeNicknameLine=""}catch(a){var e,t;console.log(a),null!==(e=a.response)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.error?this.$zcl.modal.open({parent:this,canConfirm:!0,content:a.response.data.error}):this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Error while setting nickname"})}},async onConfirmDelete(){try{await G["a"].deleteKeycloakLine(this.deletionLine),await this.$store.dispatch("getKeycloakCustomerLines"),this.deletionLine=""}catch(r){var e,t,a,s;if(console.log(r),null!==(e=r.response)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.error)if(null!==(a=r.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.error){var i,n;this.$zcl.modal.open({parent:this,canConfirm:!0,content:r.response.data.error}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:null===r||void 0===r||null===(i=r.response)||void 0===i||null===(n=i.data)||void 0===n?void 0:n.error}})}else this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Error while adding line"}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while adding line"}})}},getMsisdnAutopayEnabled(e){return this.msisdnListAutopayEnabled.find(t=>t===e)}}},lu=ou,cu=Object(v["a"])(lu,nu,ru,!1,null,"92a4b134",null),du=cu.exports,uu={name:"Profile",components:{Lines:du,ZButton:R,ZTabItem:pa,ZTabs:ra,ZRadioButton:ea,ZInput:H},mixins:[se],data(){return{localeRadio:"en",isLinesLoading:!0,msisdnListAutopayEnabled:[]}},computed:{tokenizedCards(){var e;return null===(e=this.$store.state.TokenizedCards)||void 0===e?void 0:e.data},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""}},methods:{async onLogout(){const e=await this.$store.dispatch("keycloakLogout");null!==e&&void 0!==e&&e.logoutUrl&&window.location.assign(e.logoutUrl)},onLogin(){window.location.assign(this.$store.state.loginUrl)},async onRemoveCard(e){const t=this;this.$zcl.modal.open({parent:this,canConfirm:!0,canCancel:!0,onConfirm:async()=>{const a=await G["a"].deleteTokenizedCard(e.id);a.data.isSuccess?(await t.$store.dispatch("fetchResource",{resource:ae["b"].TOKENIZED_CARDS,force:!0}),t.$zcl.modal.open({parent:this,canConfirm:!0,content:this.$t("CardDeleted")})):(t.$zcl.modal.open({parent:this,canConfirm:!0,content:"Card Delete Error "+a.data.message}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error deleting bank card"}}))},component:{template:"
{{ $t('ConfirmRemoveCard') }}
"}})}},watch:{localeRadio:{handler:function(e){this.$i18n.setLocale(e),Object(re["e"])()}}},async mounted(){if(Ea["default"].addEvent({event_name:"Viewed Profile"}),await this.initStateResources(ae["b"].TOKENIZED_CARDS),"keycloak"===this.$store.state.loginType){this.isLinesLoading=!0;try{const e=await this.$myZainApi(this.$store.getters.isPostpaid?G["a"].autopayPostpaidAllLines:G["a"].autopayPrepaidAllLines,{msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber});this.msisdnListAutopayEnabled=e.data.result.reduce((e,t)=>(t.value.active&&e.push(t.value.msisdn),e),[])}catch(e){console.log(e)}finally{this.isLinesLoading=!1}}else this.isLinesLoading=!1}},pu=uu,mu=Object(v["a"])(pu,su,iu,!1,null,null,null),hu=mu.exports,vu=function(){var e=this,t=e._self._c;return t("div",[t("zbot-fixed-circle"),e.$store.getters.isPostpaid?t("div",{staticClass:"max-w-3xl mx-2 mb-6 md:mx-auto xl:max-w-5xl"},[t("z-heading",[e._v(" "+e._s(e.$t("MyBill"))+" ")]),t("div",{staticClass:"my-6"},[t("postpaid-billing-current-month")],1),t("div",[t("postpaid-billing-history")],1)],1):e._e()],1)},gu=[],fu=function(){var e=this,t=e._self._c;return t("div",{staticClass:"grid grid-cols-1 gap-6 xl:grid-cols-3"},e._l(e.aggregatedBills,(function(a,s){return t("postpaid-billing-history-card",{key:s,staticClass:"animate-fade-in-up",attrs:{bill:a,invoiceURL:e.getInvoiceURLByBill(a)}})})),1)},yu=[],bu=function(){var e=this,t=e._self._c;return t("div",[t("z-card",{staticClass:"pt-5 pr-2.5 pb-5 pl-2.5 flex xl:h-85"},[e.moreClicked?e._e():t("div",{staticClass:"grid grid-cols-12 xl:grid-cols-1 xl:flex-col xl:flex xl:flex-wrap xl:justify-center xl:items-center"},[t("div",{staticClass:"col-span-4 col-start-1 w-full sm:col-start-2"},[t("div",{staticClass:"w-full relative hidden xl:block"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.moreClicked&&e.hasCharges,expression:"!moreClicked && hasCharges"}]},[t("div",{staticClass:"text-primary cursor-pointer flex gap-1 justify-end items-center",on:{click:function(t){e.moreClicked=!e.moreClicked}}},[t("span",{staticClass:"text-1.5xs"},[e._v(e._s(e.$t("More").toUpperCase()))]),t("div",{class:e.iconArrowClasses})])])]),t("postpaid-billing-doughnut",{staticClass:"w-24 p-4 sm:w-44 mx-auto",attrs:{bill:e.bill}})],1),t("div",{staticClass:"flex col-span-7 justify-center items-start flex-col sm:col-span-6 xl:items-center"},[t("div",{staticClass:"font-extrabold text-xl"},[e._v(" "+e._s(e.positionedPrice(e.bill.total))+" ")]),t("div",[t("z-tag",{attrs:{rounded:!1,size:"small",type:"success"}},[t("span",{staticClass:"text-xs"},[e._v(" "+e._s(e.$t("Paid"))+" "+e._s(e.positionedPrice(e.bill.total))+" ")])])],1),t("div",{staticClass:"flex gap-3 xs:gap-10 flex-wrap xl:py-4"},e._l(e.bill.bills,(function(a){return t("BallWithText",{key:a.sectionName,attrs:{text:e.positionedPrice(a.subTotal),color:e.mapping[a.sectionName].color||"teal",title:e.$t(e.mapping[a.sectionName].name.replace(/ /g,""))||""}})})),1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.moreClicked&&e.hasCharges,expression:"!moreClicked && hasCharges"}],staticClass:"flex justify-center items-end flex-col col-span-1 col-start-12 xl:hidden"},[t("div",{staticClass:"text-primary cursor-pointer",on:{click:function(t){e.moreClicked=!e.moreClicked}}},[t("span",{staticClass:"text-1.5xs"},[e._v(e._s(e.$t("More").toUpperCase()))]),t("div",{class:e.iconArrowClasses})])])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.moreClicked,expression:"moreClicked"}],staticClass:"px-2 animate-fade-in-down"},[t("div",{staticClass:"xl:h-64 xl:overflow-auto"},e._l(e.bill.bills,(function(a){return t("postpaid-billing-charges",{key:a.sectionName+"charge",attrs:{from:e.bill.fromDate,"section-bill":a}})})),1),t("div",{staticClass:"text-3xl pt-3 grid grid-cols-12 xl:overflow-hidden"},[t("div",{staticClass:"col-span-2 mx-auto col-start-6"},[t("a",{staticClass:"rounded-full flex justify-center items-center",on:{click:e.onClickInvoice}},[t("span",{staticClass:"icon-app-new-download",staticStyle:{"font-size":"1.2em"}})])]),t("div",{staticClass:"col-span-2 col-start-11 my-auto"},[t("div",{staticClass:"text-primary cursor-pointer flex justify-end items-center space-x-1",on:{click:function(t){e.moreClicked=!e.moreClicked}}},[t("span",{staticClass:"text-1.5xs"},[e._v(e._s(e.$t("Less").toUpperCase()))]),t("div",{class:"-rotate-90 ".concat(e.iconArrowClasses)})])])])])])],1)},xu=[],Cu=function(){var e=this,t=e._self._c;return e.charges.length>0?t("div",[t("div",{staticClass:"text-start font-extrabold text-lg py-3"},[e._v(" "+e._s(e.$t(e.mapping[e.sectionBill.sectionName].name.replace(/ /g,"")))+" ")]),e._l(e.charges,(function(a,s){return t("div",{key:a.text.concat("-"+e.from).concat("-"+s)},[t("div",{staticClass:"grid grid-cols-12 items-center"},[t("div",{staticClass:"text-start text-gray-500 text-sm col-span-8 py-2.5 pe-2"},[e._v(" "+e._s(a.text)+" ")]),t("div",{staticClass:"text-end col-span-3 col-start-10 text-sm text-gray-500 pe-2 whitespace-nowrap"},[t("span",[e._v(" "+e._s(e.positionedPrice(a.amount))+" ")])])])])}))],2):e._e()},wu=[],_u={name:"PostpaidBillingCharges",mixins:[ws],props:{sectionBill:{type:Object,default:()=>{},required:!0},from:{type:String,default:()=>""}},computed:{charges(){const e=[];for(const t of this.sectionBill.titles)for(const a of t.subTitles)for(const t of a.items)0!==t.amount&&e.push({amount:t.amount,text:t.text});return e}},data(){return{mapping:{"Monthly Charges":{color:"teal",name:"Monthly Charges"},"Usage Charges":{color:"yellow-500",name:"Extra Charges"},"Pending Charges":{color:"primary",name:"Pending Charges"}}}}},Au=_u,Su=Object(v["a"])(Au,Cu,wu,!1,null,"5015bb07",null),Tu=Su.exports,ku=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative"},[t("doughnut",{attrs:{"chart-data":e.getChartData(e.bill),options:e.chartOptions}}),t("div",{class:e.donutInnerTextClasses},[t("div",{staticClass:"font-extrabold"},[e._v(" "+e._s(e.$t(e.monthNames[new Date(e.bill.fromDate).getMonth()]))+" ")]),t("div",{staticClass:"text-gray-500 text-xs"},[e._v(" "+e._s(new Date(e.bill.fromDate).getFullYear().toString())+" ")])])],1)},Pu=[],$u=a("1fca"),Mu={name:"Doughnut",extends:$u["a"],props:["chartData","options"],mounted(){this.renderChart(this.chartData,this.options)}},Ou=Mu,Nu=Object(v["a"])(Ou,vd,gd,!1,null,"590eea39",null),Eu=Nu.exports,Du={name:"PostpaidBillingDoughnut",components:{Doughnut:Eu},mixins:[ws],props:{bill:{type:Object,default:()=>{},required:!0}},data(){return{monthNames:["Jan","Feb","March","April","May","June","July","Aug","Sep","Oct","Nov","Dec"],chartOptions:{responsive:!0,maintainAspectRatio:!0,cutoutPercentage:90,legend:{display:!1},tooltips:{enabled:!0,displayColors:!1,backgroundColor:"#281B39",cornerRadius:0,responsive:!0,callbacks:{label:function(e,t){const a=e.index;return t.labels[a]}}}},donutInnerTextClasses:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2"}},methods:{getChartData(e){if(0===e.total)return{labels:[this.positionedPrice(0)],datasets:[{backgroundColor:"#e5e5e5",borderWidth:0,data:[2]}]};const t=[],a=[],s=[],i={"Monthly Charges":{color:"#5bb9c0"},"Usage Charges":{color:"#eea223"},"Pending Charges":{color:"#D12B8A"}};for(const n of e.bills)t.push(n.subTotal),a.push(i[""+n.sectionName].color),s.push(this.positionedPrice(n.subTotal));return{labels:s,datasets:[{backgroundColor:a,borderWidth:0,data:t}]}}}},Iu=Du,Bu=Object(v["a"])(Iu,ku,Pu,!1,null,"fa7ba4a6",null),Lu=Bu.exports,Ru={name:"PostpaidBillingHistoryCard",mixins:[ws],components:{ZTag:N,BallWithText:qr,ZCard:pe,PostpaidBillingDoughnut:Lu,PostpaidBillingCharges:Tu},props:{bill:{type:Object,default:()=>{},required:!0},invoiceURL:{type:String,default:()=>""}},computed:{hasCharges(){const e=[];for(const t of this.bill.bills)for(const a of t.titles)for(const t of a.subTitles)for(const a of t.items)0!==a.amount&&e.push({amount:a.amount,text:a.text});return e.length>0}},data(){return{moreClicked:!1,mapping:{"Monthly Charges":{color:"teal",name:"Monthly Charges"},"Usage Charges":{color:"yellow-500",name:"Extras"},"Pending Charges":{color:"primary",name:"Pending Charges"}},iconArrowClasses:"text-sm icon-right-arrow transform rotate-90"}},methods:{onClickInvoice(){window.open(this.invoiceURL)}}},Uu=Ru,zu=Object(v["a"])(Uu,bu,xu,!1,null,"9a9bbafa",null),ju=zu.exports,Fu={name:"PostpaidBillingHistory",components:{PostpaidBillingHistoryCard:ju},computed:{bills(){var e;const t=this.$store.state[ae["b"].BILLS];return null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.sort((e,t)=>new Date(t.fromDate)-new Date(e.fromDate))},invoices(){return this.$store.state[ae["b"].INVOICES]},aggregatedBills(){var e;return null===(e=this.bills)||void 0===e?void 0:e.map(e=>({...e,bills:e.bills.map(e=>({...e,subTotal:e.titles.reduce((e,t)=>e+t.subTitles.reduce((t,a)=>e+a.items.reduce((e,t)=>e+t.amount,0),0),0)}))}))}},data(){return{loading:!1}},methods:{getInvoiceURLByBill(e){var t,a,s;const i=new Date(e.fromDate),n=null===(t=this.invoices)||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.filter(e=>new Date(e.InvoiceFromDate)-i===0))||void 0===s?void 0:s[0];return null===n||void 0===n?void 0:n.InvoiceURL}}},Vu=Fu,Hu=Object(v["a"])(Vu,fu,yu,!1,null,"121519db",null),Gu=Hu.exports,Zu=function(){var e=this,t=e._self._c;return t("z-card",{staticClass:"relative"},[t("z-loading",{attrs:{active:e.balance.loading,"is-full-page":!1}}),e.balance.data?t("div",{staticClass:"flex flex-col justify-center items-center mt-7"},[t("div",{staticClass:"text-lg leading-6 font-medium text-gray-900 dark:text-white"},[e._v(" "+e._s(e.$t("TotalBill"))+" ")]),t("div",{staticClass:"text-green mt-4 text-4xl font-bold"},[e._v(" "+e._s(e.positionedPrice(e.balance.data.Unbilled+e.balance.data.PastDue))+" ")]),t("div",{staticClass:"py-4 dark:text-white"},[e._v(" "+e._s(e.$t("DueBy"))+" "+e._s(e.prettyDate((new Date).toISOString()))+" ")])]):e._e(),t("div",[t("div",{staticClass:"font-extrabold text-sm"},[e._v(" "+e._s(e.$t("BillGenerated"))+" "+e._s(e.$tc("NextDays",e.daysUntilNextMonth()))+" ")]),t("div",{staticClass:"px-3 mt-3 mb-7 max-w-sm mx-auto"},[t("z-button",{staticClass:"w-full rounded-xl",attrs:{to:"/"},on:{click:function(t){return e.$router.push("/pay")}}},[e._v(" "+e._s(e.$t("PayBill"))+" ")])],1)])],1)},qu=[],Ku={name:"postpaid-billing-current-month",mixins:[ni,ws],components:{ZLoading:Je,ZButton:R,ZCard:pe},computed:{balance(){return this.$store.state[ae["b"].BALANCE]}},data(){return{mapping:{"Monthly Charges":{color:"teal",name:"Monthly Charges"},"Usage Charges":{color:"yellow-500",name:"Extra Charges"},"Pending Charges":{color:"primary",name:"Pending Charges"}},sampleBill:{fromDate:(new Date).toDateString(),bills:[{sectionName:"Monthly Charges",subTotal:15},{sectionName:"Usage Charges",subTotal:5}]}}}},Yu=Ku,Wu=Object(v["a"])(Yu,Zu,qu,!1,null,"79d815c9",null),Qu=Wu.exports,Xu={name:"Bills",components:{ZHeading:vn,ZbotFixedCircle:Ur,PostpaidBillingCurrentMonth:Qu,PostpaidBillingHistory:Gu},mixins:[se],computed:{bills(){return this.$store.state[ae["b"].BILLS]},invoices(){return this.$store.state[ae["b"].INVOICES]},balance(){return this.$store.state[ae["b"].BALANCE]}},mounted(){this.$store.getters.isPostpaid&&this.initStateResources({resource:ae["b"].BILLS,payload:{numberOfMonths:6}},ae["b"].BALANCE,ae["b"].INVOICES)}},Ju=Xu,ep=Object(v["a"])(Ju,vu,gu,!1,null,"2d1d7f7a",null),tp=ep.exports,ap=function(){var e=this,t=e._self._c;return t("div",{staticClass:"max-w-3xl mx-2 md:mx-auto"},[t("z-heading",[e._v(e._s(e.$t("CreditTransfer")))]),t("div",{staticClass:"shadow-lg p-4 rounded-md border border-gray-200 border-opacity-40"},[t("validation-observer",{ref:"observer",scopedSlots:e._u([{key:"default",fn:function({valid:a}){return[t("p",[e._v(e._s(e.$t("WithZainCreditTransfer")))]),t("validation-provider",{attrs:{rules:"required",vid:"fromMsisdn",name:e.$t("TransferFrom"),tag:"div"}},[t("z-field",{staticClass:"my-4"},[t("z-input",{attrs:{outlined:"",disabled:"",value:e.$store.state.msisdn,"input-classes":"px-3"}})],1)],1),t("z-input-with-validation",{staticClass:"w-full",attrs:{"validate-on-length":8,outlined:"",label:e.$t("TransferTo"),pattern:"[0-9]*",placeholder:"9XXXXXXX","input-type":"number",rules:"required|digits:8|not_the_same:@fromMsisdn|zain_prepaid_msisdn"},model:{value:e.transferToNumber,callback:function(t){e.transferToNumber=t},expression:"transferToNumber"}}),t("validation-provider",{attrs:{rules:"required",vid:"amount",tag:"div"}},[t("z-list-box",{staticClass:"my-4",attrs:{"always-dropdown":"",label:e.$t("TransferAmount")},model:{value:e.transferAmountSelected,callback:function(t){e.transferAmountSelected=t},expression:"transferAmountSelected"}},e._l(e.transferAmountOptions,(function(a,s){return t("z-list-box-item",{key:s,attrs:{value:a}},[t("div",{staticClass:"flex justify-between"},[isNaN(a)?t("div",[e._v(e._s(e.$t("OtherAmount")))]):t("div",[e._v(e._s(e.$t("KD"))+" "+e._s(a))])])])})),1)],1),"OtherAmount"===e.transferAmountSelected?t("z-input-with-validation",{attrs:{outlined:"",prefix:"KD",rules:"required|between:1.5,30|credit_transfer_amount",step:"0.1",placeholder:"0.000","input-type":"number",label:e.$t("Amount")},model:{value:e.transferAmountCustom,callback:function(t){e.transferAmountCustom=e._n(t)},expression:"transferAmountCustom"}}):e._e(),t("div",{staticClass:"mt-6 flex justify-center"},[t("z-button",{staticClass:"w-full md:w-1/4",attrs:{disabled:!a},on:{click:e.transfer}},[e._v(" "+e._s(e.$t("Transfer"))+" ")])],1)]}}])})],1),t("ZModal",{attrs:{active:e.insufficientBalanceModalIsActive,"can-cancel":"","on-cancel":()=>e.insufficientBalanceModalIsActive=!e.insufficientBalanceModalIsActive},on:{"update:active":function(t){e.insufficientBalanceModalIsActive=t}}},[t("div",{staticClass:"flex flex-col justify-between pt-8 pb-4 px-4"},[t("h1",{staticClass:"font-extrabold text-2xl mb-5"},[e._v(" "+e._s(e.$t("GeneralError"))+" ")]),t("div",[t("p",{staticClass:"text-lg"},[e._v(" "+e._s(e.$t("InsufficientBalance"))+" ")]),t("div",{staticClass:"w-full flex flex-col space-y-4 mt-10"},[t("z-button",{on:{click:function(t){e.insufficientBalanceModalIsActive=!1}}},[e._v(" "+e._s(e.$t("Dismiss"))+" ")])],1)])])])],1)},sp=[],ip=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"p-12"},[t("p",{staticClass:"text-4xl font-extrabold mb-6"},[e._v(e._s(e.$t("VerifyByOTP")))]),t("p",{staticClass:"text-lg"},[e._v(e._s(e.$tc("OTPSent",0,{msisdn:e.transferFrom})))]),t("p",{staticClass:"text-lg"},[e._v(e._s(e.$tc("EnterOTP",0,{msisdn:e.transferFrom})))]),t("div",{staticClass:"my-6 flex mx-auto justify-center",attrs:{id:"otp",dir:"ltr"}},e._l(Array(4),(function(a,s){return t("z-input",{key:s,ref:"codeBox"+s,refInFor:!0,attrs:{"input-style":"font-size: 1.5em; background: #f1f1f1; font-weight: bold",outlined:"","input-classes":"m-2 text-center form-control form-control-solid focus:border-blue-400 focus:shadow-outline h-16 w-16","input-type":"number",minvalue:"0",max:"9"},nativeOn:{keydown:function(t){return(t=>e.onKeyDown(t,s)).apply(null,arguments)}},model:{value:e.otpInput[s],callback:function(t){e.$set(e.otpInput,s,t)},expression:"otpInput[index]"}})})),1),e.otpError?t("div",{staticClass:"rounded-xl overflow-hidden rounded-lg relative overflow-visible p-2 my-3 font-extrabold text-sm",staticStyle:{"background-color":"rgba(209, 43, 138, 0.15)",color:"#ff0000"}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("6999"),alt:""}}),e._v(" "+e._s(e.$t(e.otpErrorMessage))+" ")]):e._e(),t("div",{staticClass:"p-3 space-s-3 flex justify-center"},[t("z-button",{ref:"verifyButton",staticClass:"w-full md:w-1/2",attrs:{disabled:e.otpTooShort},on:{click:e.verifyButtonClicked}},[e._v(" "+e._s(e.$t("Verify"))+" ")])],1),t("div",{staticClass:"space-s-3 flex justify-center"},[t("a",{staticClass:"underline text-primary",class:{disabled:0!==e.resendTimer},attrs:{href:"javascript:void(0)"},on:{click:e.resendOTP}},[t("span",{staticClass:"font-bold text-sm",class:{"text-gray-600 cursor-not-allowed":0!==e.resendTimer}},[e._v(" "+e._s(e.$t("ResendOTP"))+" ")])]),t("br"),e.resendTimer>0?t("span",{staticClass:"text-gray-500 font-bold"},[e._v(" ("+e._s(("0"+Math.floor(e.resendTimer/60).toString()).slice(-2))+":"+e._s(("0"+(e.resendTimer%60).toString()).slice(-2))+") ")]):e._e()])])])},np=[],rp={name:"CreditTransferOTP",components:{ZInput:H,ZButton:R},props:{transferFrom:String,transferTo:String,transferAmount:Number},computed:{otpTooShort(){const e=Object.values(this.otpInput).join("");return 4!==e.length}},data(){return{otpInput:{0:"",1:"",2:"",3:""},otpError:!1,otpErrorMessage:"",transferSuccess:!1,resendTimer:0}},watch:{otpInput:{deep:!0,handler:function(e){var t;if((null===e||void 0===e||null===(t=e[0])||void 0===t?void 0:t.length)>3){const t=e[0].split("");let a=this;setTimeout(()=>{a.otpInput[0]=t[0],a.otpInput[1]=t[1],a.otpInput[2]=t[2],a.otpInput[3]=t[3]},10)}}},resendTimer:{handler:function(e){e>0&&setTimeout(()=>{this.resendTimer--},1e3)}}},methods:{getCodeBoxElement(e){return document.getElementById("codeBox"+e)},async verifyButtonClicked(){const e=await this.verifyOTP();var t;null!==e&&void 0!==e&&e.success?(this.otpError=!1,this.transferSuccess=!0,this.$emit("transferSuccess"),null===(t=this.$parent)||void 0===t||t.close()):(this.otpError=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error OTP verification failed"}}))},async resendOTP(){if(0===this.resendTimer){try{await G["a"].validateTransferRequest({msisdn:this.transferFrom,contractNumber:this.$store.state.contractNumber})}catch(e){console.log(e)}this.resendTimer=parseInt(qs.value("otpResendAfter"))}},async verifyOTP(){const e=Object.values(this.otpInput).join("");try{return await G["a"].verifyTransferRequest({msisdn:this.transferFrom,contractNumber:this.$store.state.contractNumber,code:e,receiver:this.transferTo,amount:this.transferAmount,sendSms:!0}),{success:!0}}catch(t){return this.otpError=!0,t.response.data.expired?(this.otpErrorMessage="OTPExpiredError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error OTP expired"}})):t.response.data.attempts?(this.otpErrorMessage="OTPAttemptsError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error exceeded OTP attempts"}})):(this.otpErrorMessage="OTPWrongError",Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error wrong OTP"}})),{success:!1}}},async sendOTP(){try{await G["a"].validateTransferRequest({msisdn:this.transferFrom,contractNumber:this.$store.state.contractNumber})}catch(e){console.log(e)}this.resendTimer=parseInt(qs.value("otpResendAfter"))},handleBackSpace(e,t){return""===this.otpInput[t]&&0!==t&&this.$refs["codeBox"+(t-1)][0].$el.querySelector("input").focus(),this.otpInput[t]="",e.preventDefault(),!1},onKeyDown(e,t){if(this.otpError=!1,"Backspace"===e.key)return this.handleBackSpace(e,t);if(Number.isNaN(Number(e.key)))return!1;const a=e.keyCode>47&&e.keyCode<58,s=e.keyCode>64&&e.keyCode<91,i=3===t;if(i)return this.otpInput[t]=a?e.key:String.fromCharCode(e.keyCode),e.preventDefault(),setTimeout(()=>this.$refs.verifyButton.$el.focus(),10),!1;(a||s)&&(this.otpInput[t]=a?e.key:String.fromCharCode(e.keyCode),i||this.$refs["codeBox"+(t+1)][0].$el.querySelector("input").focus(),e.preventDefault())}},mounted(){this.sendOTP();const e=this.$el.querySelector("input");setTimeout(()=>{e.focus()},10)}},op=rp,lp=(a("512e"),Object(v["a"])(op,ip,np,!1,null,null,null)),cp=lp.exports,dp=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"p-6"},[e._m(0),t("div",{staticClass:"py-6"},[t("p",{staticClass:"font-bold text-center mb-6"},[e._v(" "+e._s(e.$tc("CreditTransferSuccess",0,{msisdn:e.transferTo}))+" ")]),t("z-level",{scopedSlots:e._u([{key:"start",fn:function(){return[t("p",{staticClass:"text-gray-400"},[e._v(e._s(e.$t("TransferFrom")))])]},proxy:!0},{key:"end",fn:function(){return[e._v(e._s(e.transferFrom)+" "+e._s(e.transferFromNickname))]},proxy:!0}])}),t("hr",{staticClass:"my-1"}),t("z-level",{scopedSlots:e._u([{key:"start",fn:function(){return[t("p",{staticClass:"text-gray-400"},[e._v(e._s(e.$t("TransferTo")))])]},proxy:!0},{key:"end",fn:function(){return[e._v(e._s(e.transferTo))]},proxy:!0}])}),t("hr",{staticClass:"my-1"}),t("z-level",{scopedSlots:e._u([{key:"start",fn:function(){return[t("p",{staticClass:"text-gray-400"},[e._v(e._s(e.$t("TransferAmount")))])]},proxy:!0},{key:"end",fn:function(){return[e._v(e._s(e.$t("KD"))+" "+e._s(e.transferAmount))]},proxy:!0}])})],1),t("div",{staticClass:"rounded-xl rounded-lg relative p-4 border"},[t("div",[t("p",{staticClass:"text-center my-1 text-gray-400"},[e._v(" "+e._s(e.$t("WantToKnowTheBestDeals"))+" ")]),t("div",{staticClass:"p-3 space-s-3 flex justify-center"},[t("z-button",{staticClass:"w-full md:w-1/2 font-bold",attrs:{size:"small"},on:{click:function(t){return e.$router.push("/offers")}}},[e._v(" "+e._s(e.$t("CheckOutOffers"))+" ")])],1),t("div",{staticClass:"space-s-3 flex justify-center"},[t("router-link",{staticClass:"underline text-primary",attrs:{to:"/","exact-active-class":"active"}},[t("span",{staticClass:"font-bold text-sm"},[e._v(e._s(e.$t("BackToDashboard")))])])],1)])])])])},up=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"justify-center flex"},[t("img",{staticClass:"inline-block",attrs:{src:a("888c"),alt:""}})])}],pp={name:"CreditTransferResult",components:{ZLevel:an,ZButton:R},props:{transferTo:String,transferFromNickname:String,transferFrom:String,transferAmount:Number},data(){return{}}},mp=pp,hp=Object(v["a"])(mp,dp,up,!1,null,null,null),vp=hp.exports,gp={name:"CreditTransfer",components:{ZInput:H,ZField:ya,ZButton:R,ZModal:Be,ZInputWithValidation:fi,ZListBoxItem:Ze,ZListBox:ze,ZHeading:vn,ValidationObserver:re["a"],ValidationProvider:re["b"]},mixins:[wa,se],computed:{keycloakLines(){var e,t;return null!==(e=null===(t=this.$store.state.customerLines)||void 0===t?void 0:t.filter(e=>e.is_validated&&"VOICE"===e.basic_service_type))&&void 0!==e?e:[]},balance(){return this.$store.state[ae["b"].BALANCE]}},data(){return{insufficientBalanceModalIsActive:!1,transferFromNumber:null,transferToNumber:null,transferAmountCustom:null,transferAmountOptions:[1.5,2,3,5,10,20,"OtherAmount"],transferAmountSelected:1.5}},methods:{transfer(){Ea["default"].addEvent({event_name:"Credit Transfer Started"});const e=this;let t=0;t="OtherAmount"===this.transferAmountSelected?this.transferAmountCustom:this.transferAmountSelected,this.$store.getters.isPrepaid&&this.balance.data.Balance-t<1?this.insufficientBalanceModalIsActive=!0:this.$zcl.modal.open({canCancel:!0,props:{transferFrom:this.transferFromNumber,transferTo:this.transferToNumber,transferAmount:"OtherAmount"===this.transferAmountSelected?this.transferAmountCustom:this.transferAmountSelected},events:{transferSuccess:()=>{e.$zcl.modal.open({parent:e,component:vp,canCancel:!1,canClickOutside:!1,props:{transferTo:this.transferToNumber,transferFromNickname:"",transferFrom:this.transferFromNumber,transferAmount:"OtherAmount"===this.transferAmountSelected?this.transferAmountCustom:this.transferAmountSelected}})}},parent:this,component:cp})}},mounted(){this.transferFromNumber=this.$store.state.msisdn,this.initStateResources(ae["b"].BALANCE)}},fp=gp,yp=Object(v["a"])(fp,ap,sp,!1,null,null,null),bp=yp.exports,xp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mx-2 md:mx-0 lg:mt-14 md:mt-0"},[t("div",{staticClass:"max-w-3xl mx-auto xl:max-w-5xl"},[t("div",{staticClass:"font-extrabold text-2xl my-2"},[e._v(" "+e._s(e.$t("ManageUsageLimit"))+" "),t("span",{class:{"float-right":"en"===e.$i18n.locale,"float-left":"ar"===e.$i18n.locale}},[t("router-link",{staticClass:"underline text-primary",attrs:{to:"/","exact-active-class":"active"}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("4915"),alt:""}})])],1)]),t("div",{staticClass:"my-6"},[t("div",{staticClass:"bg-white dark:bg-gray-700 rounded-xl overflow-hidden rounded-lg relative overflow-visible p-8"},[t("label",{staticClass:"block font-medium pb-1 text-gray-600"},[e._v(e._s(e.$tc("InternetSharingLines",1)))]),t("z-list-box",{staticClass:"mb-4",attrs:{label:""},model:{value:e.selectedNumber,callback:function(t){e.selectedNumber=t},expression:"selectedNumber"}},e._l(e.customerMSISDNS,(function(a,s){return t("z-list-box-item",{key:s,attrs:{value:a.msisdn}},[t("div",{staticClass:"flex justify-between"},[""!==a.nickname?t("div",[e._v(e._s(a.msisdn)+" ("+e._s(a.nickname)+")")]):t("div",[e._v(e._s(a.msisdn))])])])})),1),void 0!==e.getCustomerLines.find(t=>t.msisdn===e.selectedNumber)?t("label",{staticClass:"block font-medium pb-1 text-gray-600"},[e._v(e._s(e.$t("Nickname")))]):e._e(),void 0!==e.getCustomerLines.find(t=>t.msisdn===e.selectedNumber)?t("input",{directives:[{name:"model",rawName:"v-model",value:e.addNicknameInput,expression:"addNicknameInput"}],staticClass:"border-b border-black px-3 py-2 w-full",domProps:{value:e.addNicknameInput},on:{input:function(t){t.target.composing||(e.addNicknameInput=t.target.value)}}}):e._e(),t("div",[t("span",{staticClass:"text-xl font-extrabold inline-block dark:text-white mt-4"},[e._v(e._s(e.$t("SetUsageLimit")))]),t("z-toggle",{staticClass:"mt-4",class:{"float-right":"en"===e.$i18n.locale,"float-left transform rotate-180":"ar"===e.$i18n.locale},model:{value:e.setLimit,callback:function(t){e.setLimit=t},expression:"setLimit"}}),t("div",{staticClass:"mt-2",class:{hidden:!e.setLimit}},[t("label",{staticClass:"block font-medium pb-1 text-gray-600"},[e._v(e._s(e.$t("EnterLimit")))]),t("span",{staticClass:"inline-block border-b border-black px-3 py-2 font-bold text-green",class:{"w-1/12":"en"===e.$i18n.locale,"w-2/12":"ar"===e.$i18n.locale}},[e._v(" "+e._s(e.$t("GB"))+" ")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.newThreshold,expression:"newThreshold"}],staticClass:"border-b border-black px-3 py-2 inline-block",class:{"w-11/12":"en"===e.$i18n.locale,"w-10/12":"ar"===e.$i18n.locale},attrs:{placeholder:"0.000",oninput:"this.value = this.value.replace(/[^0-9]/g, '')"},domProps:{value:e.newThreshold},on:{input:function(t){t.target.composing||(e.newThreshold=t.target.value)}}}),t("p",{staticClass:"text-xs mt-1 text-gray-600"},[e._v(e._s(e.$t("MaximumAllowedLimitIs"))+" "+e._s(e.masterData.threshold)+" "+e._s(e.$t("GB")))]),t("div",{staticClass:"rounded-xl overflow-hidden rounded-lg relative overflow-visible p-2 my-3 font-extrabold text-sm",class:{hidden:!e.limitExceeded},staticStyle:{"background-color":"rgba(209,43,138,0.15)",color:"#FF0000"}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("6999"),alt:""}}),e._v(" "+e._s(e.$t("UsageLimitExceedsAllowedMaximum"))+" ")])]),t("div",{key:e.selectedNumber,staticClass:"mt-3"},[t("p",{staticClass:"font-bold"},[e._v(" "+e._s(e.$t("InternetUsage"))+" "),t("span",{staticClass:"text-sm text-gray-500"},[e._v(" ("+e._s(e.selectedNumber)+")")])]),t("div",{staticClass:"grid grid-cols-2 font-semibold pt-2 text-xs"},[t("div",[t("span",{},[e._v(e._s(e.lineUsedData.toFixed(2)+" "+e.$t("GB"))+" ")])]),t("div",[t("span",{class:{"float-right":"en"===e.$i18n.locale,"float-left":"ar"===e.$i18n.locale}},[e._v(" "+e._s(e.$t("Used"))+" ")])])]),t("ZProgressBarHorizontal",{key:e.childThreshold,attrs:{"full-width":"",value:e.lineUsedData/e.lineThresholdData*100,"label-top":"","label-bottom":"",barColor:e.getBarColor(e.lineUsedData/e.lineThresholdData*100)}})],1),t("div",{staticClass:"mt-3"},[t("p",{staticClass:"font-bold"},[e._v(" "+e._s(e.$t("Total"))+" "+e._s(e.$t("InternetUsage"))+" ")]),t("div",{staticClass:"grid grid-cols-2 font-semibold pt-2 text-xs"},[t("div",[t("span",{},[e._v(e._s(e.masterData.used.toFixed(2)+" "+e.$t("GB"))+" ")])]),t("div",[t("span",{class:{"float-right":"en"===e.$i18n.locale,"float-left":"ar"===e.$i18n.locale}},[e._v(" "+e._s(e.$t("Used"))+" "+e._s(e.$t("Of"))+" "+e._s(e.masterData.threshold)+" "+e._s(e.$t("GB")))])])]),t("ZProgressBarHorizontal",{attrs:{"full-width":"",value:e.masterData.used/e.masterData.threshold*100,"label-top":"","label-bottom":"",barColor:e.getBarColor(e.masterData.used/e.masterData.threshold*100)}})],1)],1),t("div",{staticClass:"p-3 space-s-3 flex justify-center"},[t("z-button",{staticClass:"w-full md:w-1/4",attrs:{disabled:e.limitExceeded&&e.setLimit,loading:e.addNicknameLoading},on:{click:e.saveChanges}},[e._v(e._s(e.$t("SaveChanges"))+" ")])],1),t("div",{staticClass:"space-s-3 flex justify-center"},[t("router-link",{staticClass:"underline text-primary",attrs:{to:"/","exact-active-class":"active"}},[t("span",{staticClass:"font-bold text-sm"},[e._v(e._s(e.$t("Cancel")))])])],1)],1)])])])},Cp=[],wp={name:"LimitUsage",components:{ZListBoxItem:Ze,ZListBox:ze,ZProgressBarHorizontal:nt,ZButton:R,ZToggle:Ft},computed:{getCustomerLines(){const e=this.$store.state.customerLines.filter(e=>e.is_validated);return e.sort(e=>e.msisdn===this.$store.state.msisdn?-1:1)},customerMSISDNS(){var e,t,a;return null===(e=this.$store.state.DataSharing)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.DependentsInfo)||void 0===a?void 0:a.DependentInfo.map(e=>({msisdn:e.Msisdn,nickname:this.$store.getters.getMsisdnNickname(e.Msisdn)}))},customerLinesNickName(){const e=this.customerMSISDNS.find(e=>e.msisdn===this.selectedNumber);return void 0!==e?e.nickname:null},dataSharingData(){var e,t,a;return null===(e=this.$store.state.DataSharing)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.DependentsInfo)||void 0===a?void 0:a.DependentInfo.find(e=>e.Msisdn===this.selectedNumber.toString())},lineUsedData(){var e;const t=null===(e=this.dataSharingData)||void 0===e?void 0:e.Used;return void 0!==t?t:0},lineThresholdData(){if(null!==this.childThreshold)return this.childThreshold;{var e;const t=null===(e=this.dataSharingData)||void 0===e?void 0:e.Threshold;return void 0!==t?t:0}},masterData(){const e=this.$store.state.Usage.data.find(e=>"Local_DS_Master"===e.chargingType&&"Internet"===e.serviceCategory);return{used:e.used,threshold:e.threshold}},limitExceeded(){return this.newThreshold>this.masterData.threshold}},data(){var e,t,a,s,i,n;return{childThreshold:null,selectedNumber:null===(e=this.$store.state.DataSharing)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.DependentsInfo)||void 0===a?void 0:a.DependentInfo[0].Msisdn,addNicknameLoading:!1,addNicknameInput:this.$store.getters.getMsisdnNickname(null===(s=this.$store.state.DataSharing)||void 0===s||null===(i=s.data)||void 0===i||null===(n=i.DependentsInfo)||void 0===n?void 0:n.DependentInfo[0].Msisdn),setLimit:!1,newThreshold:null}},watch:{customerLinesNickName(e){this.addNicknameInput=e},selectedNumber(){this.setLimit=!1}},methods:{async saveChanges(){this.addNicknameInput!==this.customerLinesNickName&&await this.onConfirmAddNNickname(),this.setLimit&&await this.OnNewThresholdSet()},async onConfirmAddNNickname(){if(!this.addNicknameLoading)try{this.addNicknameLoading=!0,await G["a"].updateKeycloakLine(this.selectedNumber,this.addNicknameInput),await this.$store.dispatch("getKeycloakCustomerLines"),this.addNicknameLoading=!1}catch(i){var e,t,a,s;if(console.log(i),null!==(e=i.response)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.error)alert(i.response.data.error),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:null===i||void 0===i||null===(a=i.response)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.error}});else alert("Error while setting nickname"),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while setting nickname"}});this.addNicknameLoading=!1}},async OnNewThresholdSet(){try{var e;await this.$myZainApi(G["a"].setDependentThreshold,{masterMsisdn:this.$store.state.msisdn,dependentMsisdn:this.selectedNumber,offerID:null===(e=this.dataSharingData)||void 0===e?void 0:e.OfferID,threshold:this.newThreshold}),this.childThreshold=this.newThreshold,this.newThreshold=null}catch(n){var t,a,s,i;if(console.log(n),null!==(t=n.response)&&void 0!==t&&null!==(a=t.data)&&void 0!==a&&a.error)alert(n.response.data.error),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:null===n||void 0===n||null===(s=n.response)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.error}});else alert("Error while Setting limit"),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while Setting limit"}})}},getBarColor(e){return e<50?"#7cc53f":e<75?"#FCD06E":"#E25E5E"}},beforeMount(){this.$store.getters.isDataSharing||this.$router.push("/")}},_p=wp,Ap=(a("3af4"),Object(v["a"])(_p,xp,Cp,!1,null,"be5938ee",null)),Sp=Ap.exports,Tp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative"},[t("div",{staticClass:"max-w-3xl mx-2 md:mx-auto xl:max-w-5xl"},[t("z-heading",[e._v(" "+e._s(e.$t("MyUsage"))+" ")]),t("z-loading",{attrs:{"extra-classes":"h-96","is-full-page":!1,active:e.usages.loading,"has-background":!1},on:{"update:active":function(t){return e.$set(e.usages,"loading",t)}}}),!e.usages.loading&&e.usages&&e.usages.data&&e.usages.data.length>0?t("div",[t("z-tabs",{attrs:{"is-toggle":""}},[t("z-tab-item",{attrs:{label:e.$t("Internet"),icon:"icon-Internet"}},[t("usage-details-card",{attrs:{"usage-type":"Internet",usages:e.usages.data}})],1),"DATA"!==e.$store.state.UserInfo.data.BasicServiceType?t("z-tab-item",{attrs:{label:e.$t("Minutes"),icon:"icon-Minutes"}},[t("usage-details-card",{attrs:{"usage-type":"Minutes",usages:e.usages.data}})],1):e._e(),"DATA"!==e.$store.state.UserInfo.data.BasicServiceType?t("z-tab-item",{attrs:{label:e.$t("SMS"),icon:"icon-SMS"}},[t("usage-details-card",{attrs:{"usage-type":"SMS",usages:e.usages.data}})],1):e._e()],1)],1):e._e()],1)])},kp=[],Pp=function(){var e=this,t=e._self._c;return t("z-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("z-tab-item",{attrs:{label:e.$t("Local"),sequence:0}},[t("div",{staticClass:"lg:grid lg:grid-cols-2 lg:gap-2"},[t("z-card",{staticClass:"my-4 py-4 px-4"},[t("div",{staticClass:"flex justify-start text-xl font-extrabold"},[e._v(" "+e._s(e.isVoice?e.$t("LocalMinutes"):e.$t("Monthly"+e.usageType))+" ")]),t("div",{staticClass:"grid grid-cols-6 max-w-xs mx-auto"},e._l(e.usages,(function(a,s){return t("div",{key:`${e.usageType} ${s}`,staticClass:"col-span-1"},[t("z-tooltip",{attrs:{position:"center"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"p-2 text-white"},[t("div",{staticClass:"flex min-w-max text-xs justify-between font-bold"},[t("div",{staticClass:"me-4.5"},[e._v(" "+e._s(e.getFullMonthName(a.billDate))+" "+e._s(e.getYear(a.billDate))+" ")]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).local.usage+e.getUsageByType(a).local.extraUsage))+" "+e._s(e.getUnit())+" ")])]),t("div",{staticClass:"flex min-w-max text-xs justify-between"},[t("div",[e._v(e._s(e.$t("Subscription")))]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).local.usage))+" "+e._s(e.getUnit())+" ")])]),t("div",{staticClass:"flex min-w-max text-xs justify-between"},[t("div",[e._v(e._s(e.$t("Extra")))]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).local.extraUsage))+" "+e._s(e.getUnit())+" ")])])])]},proxy:!0}],null,!0)},[t("z-progress-bar-vertical",{attrs:{"label-top":String(e.getUsageByType(a).local.usage+e.getUsageByType(a).local.extraUsage),size:"large","secondary-value":e.getBarValues(a,"local").secondaryBarValue,"label-bottom":e.getMonthName(a.billDate),"label-bottom-sub":e.isVoice?String(e.getUsageByType(a).local.calls):"","main-color":"teal"},model:{value:e.getBarValues(a,"local").mainBarValue,callback:function(t){e.$set(e.getBarValues(a,"local"),"mainBarValue",t)},expression:"getBarValues(usage, 'local').mainBarValue"}})],1)],1)})),0),t("div",{staticClass:"flex flex-wrap justify-center items-center mt-3"},[t("ball-with-text",{attrs:{text:`${e.$t("Subscription")} (${e.getUnit()})`,color:"teal"}}),t("ball-with-text",{attrs:{text:`${e.$t("Extra")} (${e.getUnit()})`,color:"yellow-500"}}),e.isVoice?t("ball-with-text",{attrs:{text:""+e.$t("NoOfCalls"),color:"purple-800"}}):e._e()],1),e.isVoice||e.isSMS?t("div",{staticClass:"mt-4"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCallHistoryOpen,expression:"!isCallHistoryOpen"}],staticClass:"text-primary uppercase text-xs font-bold cursor-pointer",on:{click:e.onClickCallHistory}},[e._v(" "+e._s(e.isVoice?e.$t("ViewCallsHistory"):e.$t("ViewSMSHistory"))+" "),t("div",{staticClass:"icon-right-arrow transform rotate-90 inline-block align-text-bottom"})]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCallHistoryOpen,expression:"isCallHistoryOpen"}],staticClass:"animate-fade-in-down"},[t("div",{staticClass:"grid grid-cols-3 gap-4"},e._l(e.months,(function(a){return t("div",{key:a.name.en,staticClass:"flex flex-col items-center justify-center cursor-pointer"},[t("call-history-calender-icon",{attrs:{"month-number":a.value+1,title:a.name[e.$i18n.locale]},nativeOn:{click:function(t){return e.onClickCalendarIcon(a,e.isVoice?"calls":"sms")}}})],1)})),0)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCallHistoryOpen,expression:"isCallHistoryOpen"}],staticClass:"flex justify-center items-baseline gap-1 text-primary uppercase text-xs font-bold cursor-pointer",on:{click:e.onClickCallHistory}},[t("div",{staticClass:"mt-2"},[e._v(e._s(e.isVoice?e.$t("HideCallsHistory"):e.$t("HideSMSHistory")))]),t("div",{staticClass:"icon-right-arrow transform -rotate-90 inline-block align-text-bottom"})])]):e._e(),e.isInternet&&e.isUpgradePlan?t("div",{staticClass:"mt-5"},[t("hr"),t("div",{staticClass:"pt-4 flex justify-between items-center"},[t("div",{staticClass:"text-xs text-start font-bold text-primary"},[e._v(" "+e._s(e.$t("DataUsageExceedsSub"))+" ")]),t("z-button",{attrs:{size:"large"},on:{click:function(t){return e.$router.push("/plan")}}},[t("div",{staticClass:"text-xs font-bold"},[t("nobr",[e._v(e._s(e.$t("UpgradePlan")))])],1)])],1)]):e._e()]),t("extra-charges",{attrs:{usages:e.usages,"usage-type":e.usageType,"usage-section":"local"}})],1)]),t("z-tab-item",{attrs:{label:e.$t("Roaming")}},[t("div",{staticClass:"lg:grid lg:grid-cols-2 lg:gap-2"},[t("z-card",{staticClass:"my-4 py-4 px-4"},[t("div",{staticClass:"flex justify-start text-xl font-extrabold"},[e._v(" "+e._s(e.isVoice?e.$t("LocalMinutes"):e.$t("Monthly"+e.usageType))+" ")]),t("div",{staticClass:"grid grid-cols-6 max-w-xs mx-auto"},e._l(e.usages,(function(a,s){return t("div",{key:`${e.usageType} ${s}`,staticClass:"col-span-1"},[t("z-tooltip",{attrs:{position:"center"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"p-2 text-white"},[t("div",{staticClass:"flex min-w-max text-xs justify-between font-bold"},[t("div",{staticClass:"me-3"},[e._v(" "+e._s(e.getFullMonthName(a.billDate))+" "+e._s(e.getYear(a.billDate))+" ")]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).roaming.usage+e.getUsageByType(a).roaming.extraUsage))+" "+e._s(e.getUnit())+" ")])]),t("div",{staticClass:"flex min-w-max text-xs justify-between"},[t("div",[e._v(e._s(e.$t("Subscription")))]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).roaming.usage))+" "+e._s(e.getUnit())+" ")])]),t("div",{staticClass:"flex min-w-max text-xs justify-between"},[t("div",[e._v(e._s(e.$t("Extra")))]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).roaming.extraUsage))+" "+e._s(e.getUnit())+" ")])])])]},proxy:!0}],null,!0)},[t("z-progress-bar-vertical",{attrs:{"label-top":String(e.getUsageByType(a).roaming.usage+e.getUsageByType(a).roaming.extraUsage),size:"large","secondary-value":e.getBarValues(a,"roaming").secondaryBarValue,"label-bottom":e.getMonthName(a.billDate),"label-bottom-sub":e.isVoice?String(e.getUsageByType(a).roaming.calls):"","main-color":"teal"},model:{value:e.getBarValues(a,"roaming").mainBarValue,callback:function(t){e.$set(e.getBarValues(a,"roaming"),"mainBarValue",t)},expression:"getBarValues(usage, 'roaming').mainBarValue"}})],1)],1)})),0),t("div",{staticClass:"flex flex-wrap justify-center items-center mt-3"},[t("ball-with-text",{attrs:{text:`${e.$t("Subscription")} (${e.getUnit()})`,color:"teal"}}),t("ball-with-text",{attrs:{text:`${e.$t("Extra")} (${e.getUnit()})`,color:"yellow-500"}}),e.isVoice?t("ball-with-text",{attrs:{text:""+e.$t("NoOfCalls"),color:"purple-800"}}):e._e()],1),e.isVoice||e.isSMS?t("div",{staticClass:"mt-4"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCallHistoryOpen,expression:"!isCallHistoryOpen"}],staticClass:"text-primary uppercase text-xs font-bold cursor-pointer",on:{click:e.onClickCallHistory}},[e._v(" "+e._s(e.isVoice?e.$t("ViewCallsHistory"):e.$t("ViewSMSHistory"))+" "),t("div",{staticClass:"icon-right-arrow transform rotate-90 inline-block align-text-bottom"})]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCallHistoryOpen,expression:"isCallHistoryOpen"}],staticClass:"animate-fade-in-down"},[t("div",{staticClass:"grid grid-cols-3 gap-4"},e._l(e.months,(function(a){return t("div",{key:a.name.en,staticClass:"flex flex-col items-center justify-center cursor-pointer"},[t("call-history-calender-icon",{attrs:{"month-number":a.value+1,title:a.name[e.$i18n.locale]},nativeOn:{click:function(t){return e.onClickCalendarIcon(a,e.isVoice?"calls":"sms")}}})],1)})),0)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCallHistoryOpen,expression:"isCallHistoryOpen"}],staticClass:"flex justify-center items-baseline gap-1 text-primary uppercase text-xs font-bold cursor-pointer",on:{click:e.onClickCallHistory}},[t("div",{staticClass:"mt-2"},[e._v(e._s(e.isVoice?e.$t("HideCallsHistory"):e.$t("HideSMSHistory")))]),t("div",{staticClass:"icon-right-arrow transform -rotate-90 inline-block align-text-bottom"})])]):e._e()]),t("extra-charges",{attrs:{usages:e.usages,"usage-type":e.usageType,"usage-section":"roaming"}})],1)]),e.isInternet?e._e():t("z-tab-item",{attrs:{label:e.$t("International")}},[t("div",{staticClass:"lg:grid lg:grid-cols-2 lg:gap-2"},[t("z-card",{staticClass:"my-4 py-4 px-4"},[t("div",{staticClass:"flex justify-start text-xl font-extrabold"},[e._v(" "+e._s(e.isVoice?e.$t("LocalMinutes"):e.$t("Monthly"+e.usageType))+" ")]),t("div",{staticClass:"grid grid-cols-6 max-w-xs mx-auto"},e._l(e.usages,(function(a,s){return t("div",{key:`${e.usageType} ${s}`,staticClass:"col-span-1"},[t("z-tooltip",{attrs:{position:"center"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"p-2 text-white"},[t("div",{staticClass:"flex min-w-max text-xs justify-between font-bold"},[t("div",{staticClass:"me-3"},[e._v(" "+e._s(e.getFullMonthName(a.billDate))+" "+e._s(e.getYear(a.billDate))+" ")]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).international.usage+e.getUsageByType(a).international.extraUsage))+" "+e._s(e.getUnit())+" ")])]),t("div",{staticClass:"flex min-w-max text-xs justify-between"},[t("div",[e._v(e._s(e.$t("Subscription")))]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).international.usage))+" "+e._s(e.getUnit())+" ")])]),t("div",{staticClass:"flex min-w-max text-xs justify-between"},[t("div",[e._v(e._s(e.$t("Extra")))]),t("div",[e._v(" "+e._s(String(e.getUsageByType(a).international.extraUsage))+" "+e._s(e.getUnit())+" ")])])])]},proxy:!0}],null,!0)},[t("z-progress-bar-vertical",{attrs:{"label-top":String(e.getUsageByType(a).international.usage+e.getUsageByType(a).international.extraUsage),size:"large","secondary-value":e.getBarValues(a,"international").secondaryBarValue,"label-bottom":e.getMonthName(a.billDate),"label-bottom-sub":e.isVoice?String(e.getUsageByType(a).international.calls):"","main-color":"teal"},model:{value:e.getBarValues(a,"international").mainBarValue,callback:function(t){e.$set(e.getBarValues(a,"international"),"mainBarValue",t)},expression:"getBarValues(usage, 'international').mainBarValue"}})],1)],1)})),0),t("div",{staticClass:"flex flex-wrap justify-center items-center mt-3"},[t("ball-with-text",{attrs:{text:`${e.$t("Subscription")} (${e.getUnit()})`,color:"teal"}}),t("ball-with-text",{attrs:{text:`${e.$t("Extra")} (${e.getUnit()})`,color:"yellow-500"}}),e.isVoice?t("ball-with-text",{attrs:{text:""+e.$t("NoOfCalls"),color:"purple-800"}}):e._e()],1),e.isVoice||e.isSMS?t("div",{staticClass:"mt-4"},[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCallHistoryOpen,expression:"!isCallHistoryOpen"}],staticClass:"text-primary uppercase text-xs font-bold cursor-pointer",on:{click:e.onClickCallHistory}},[e._v(" "+e._s(e.isVoice?e.$t("ViewCallsHistory"):e.$t("ViewSMSHistory"))+" "),t("div",{staticClass:"icon-right-arrow transform rotate-90 inline-block align-text-bottom"})]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCallHistoryOpen,expression:"isCallHistoryOpen"}],staticClass:"animate-fade-in-down"},[t("div",{staticClass:"grid grid-cols-3 gap-4"},e._l(e.months,(function(a){return t("div",{key:a.name.en,staticClass:"flex flex-col items-center justify-center cursor-pointer"},[t("call-history-calender-icon",{attrs:{"month-number":a.value+1,title:a.name[e.$i18n.locale]},nativeOn:{click:function(t){return e.onClickCalendarIcon(a,e.isVoice?"calls":"sms")}}})],1)})),0)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCallHistoryOpen,expression:"isCallHistoryOpen"}],staticClass:"flex justify-center items-baseline gap-1 text-primary uppercase text-xs font-bold cursor-pointer",on:{click:e.onClickCallHistory}},[t("div",{staticClass:"mt-2"},[e._v(e._s(e.isVoice?e.$t("HideCallsHistory"):e.$t("HideSMSHistory")))]),t("div",{staticClass:"icon-right-arrow transform -rotate-90 inline-block align-text-bottom"})])]):e._e()]),t("extra-charges",{attrs:{usages:e.usages,"usage-type":e.usageType,"usage-section":"international"}})],1)])],1)},$p=[],Mp=function(){var e=this,t=e._self._c;return t("z-card",{staticClass:"my-4 py-4 px-4"},[t("div",{staticClass:"flex justify-start text-xl font-extrabold"},[e._v(" "+e._s(e.getTitle())+" ")]),t("div",{staticClass:"grid grid-cols-6 max-w-xs mx-auto"},e._l(e.usages,(function(a,s){return t("div",{key:`${e.usageType} ${s}`,staticClass:"col-span-1"},[t("z-tooltip",{attrs:{position:"center"},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"p-2 text-white"},[t("div",{staticClass:"flex min-w-max text-xs justify-between font-bold"},[t("div",{staticClass:"me-4.5"},[e._v(" "+e._s(e.isInternet?e.getExtraCapacityCharges():e.getTitle())+" ")]),t("div",[e._v(" "+e._s(e.getUsageCategory(a).extra>0?"KD "+e.getUsageCategory(a).extra:"KD 0")+" ")])])])]},proxy:!0}],null,!0)},[t("z-progress-bar-vertical",{attrs:{value:e.getBarValues(e.getUsageCategory(a)),"label-top":e.positionedPrice(e.getUsageCategory(a).extra,!1,1),size:"large","label-bottom":e.getMonthName(a.billDate),"main-color":"primary"}})],1)],1)})),0),t("div",{staticClass:"flex flex-wrap justify-center items-center mt-4 mb-2"},[e.isInternet?t("ball-with-text",{attrs:{text:e.getExtraCapacityCharges(),color:"primary"}}):t("ball-with-text",{attrs:{text:e.getTitle(),color:"primary"}})],1)])},Op=[],Np={name:"ExtraCharges",components:{ZTooltip:Bc,BallWithText:qr,ZProgressBarVertical:ut,ZCard:pe},mixins:[ni,ws],computed:{isInternet(){return"Internet"===this.usageType},isVoice(){return"Minutes"===this.usageType},isSMS(){return"SMS"===this.usageType}},props:{usageType:{type:String,default:()=>"Internet",validator:e=>"Internet"===e||"Minutes"===e||"SMS"===e,required:!0},usageSection:{type:String,default:()=>"local",validator:e=>"local"===e||"roaming"===e||"international"===e,required:!0},usages:{type:Array,default:()=>[],required:!0}},methods:{getMonthName(e){const t=new Date(e).getMonth();return this.monthNames[this.$i18n.locale][t]},getBarValues(e){const t=50;let a=t;return e.extra%t!==0&&(a+=t),e.extra/a*100},getUsageCategory(e){return this.isInternet?e.internetUsage[this.usageSection]:this.isVoice?e.voiceUsage[this.usageSection]:this.isSMS?e.smsUsage[this.usageSection]:void 0},getTitle(){return this.$t(`Extra${this.usageType}Charges`)},getExtraCapacityCharges(){return this.$t("ExtraCapacityCharges")}}},Ep=Np,Dp=Object(v["a"])(Ep,Mp,Op,!1,null,"4435f420",null),Ip=Dp.exports,Bp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col items-center justify-center"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 100 100"}},[t("path",{attrs:{id:"Path_1628","data-name":"Path 1628",d:"M85.144,23.032H81.629V21.86a1.172,1.172,0,0,0-1.172-1.172h-8.2V19.516a3.516,3.516,0,1,0-7.032,0v1.172H62.878V19.516a3.516,3.516,0,0,0-7.032,0v1.172H41.783V19.516a3.516,3.516,0,1,0-7.032,0v1.172H32.407V19.516a3.516,3.516,0,1,0-7.032,0v1.172h-8.2A1.172,1.172,0,0,0,16,21.86v58.6a1.172,1.172,0,0,0,1.172,1.172h1.172v3.516a1.172,1.172,0,0,0,1.172,1.172H85.144a1.172,1.172,0,0,0,1.172-1.172V24.2A1.172,1.172,0,0,0,85.144,23.032Zm-66.8,56.253V37.095H79.285v42.19ZM67.565,19.516a1.172,1.172,0,0,1,2.344,0v1.172H67.565Zm-9.376,0a1.172,1.172,0,0,1,2.344,0v1.172H58.19Zm-21.095,0a1.172,1.172,0,1,1,2.344,0v1.172H37.095Zm-9.376,0a1.172,1.172,0,1,1,2.344,0v1.172H27.719Zm-2.344,3.516V24.2a3.52,3.52,0,0,0,3.516,3.516,1.172,1.172,0,0,0,0-2.344A1.173,1.173,0,0,1,27.719,24.2V23.032h7.032V24.2a3.52,3.52,0,0,0,3.516,3.516,1.172,1.172,0,0,0,0-2.344A1.173,1.173,0,0,1,37.095,24.2V23.032H55.846V24.2a3.52,3.52,0,0,0,3.516,3.516,1.172,1.172,0,0,0,0-2.344A1.173,1.173,0,0,1,58.19,24.2V23.032h7.032V24.2a3.52,3.52,0,0,0,3.516,3.516,1.172,1.172,0,1,0,0-2.344A1.173,1.173,0,0,1,67.565,24.2V23.032H79.285V34.751H18.344V23.032Zm58.6,60.941H20.688V81.629H80.457a1.172,1.172,0,0,0,1.172-1.172V25.376h2.344Z",x:"100%",y:"0",fill:"#e3e3e3"}}),t("text",{attrs:{id:e.monthNumber,"data-name":e.monthNumber,fill:"#23b7c0","font-size":"25","font-family":"Nunito Sans, sans-serif !important","font-weight":"800","letter-spacing":"0.02em",x:"47.5%",y:"60%","dominant-baseline":"middle","text-anchor":"middle"}},[e._v(" "+e._s(e.monthNumber)+" ")])]),t("p",{class:"text-sm dark:text-white ".concat(e.titleClasses)},[e._v(" "+e._s(e.title)+" ")])])},Lp=[],Rp={name:"CallHistoryCalenderIcon",props:{monthNumber:{type:Number,default:1},title:{type:String,default:""},titleClasses:{type:String,default:""}}},Up=Rp,zp=Object(v["a"])(Up,Bp,Lp,!1,null,"49dd269b",null),jp=zp.exports,Fp={name:"UsageDetailsCard",components:{ZTooltip:Bc,CallHistoryCalenderIcon:jp,ZButton:R,ExtraCharges:Ip,BallWithText:qr,ZTabItem:pa,ZTabs:ra,ZCard:pe,ZProgressBarVertical:ut},mixins:[ni],data(){return{isCallHistoryOpen:!1,months:[],activeTab:0}},computed:{isInternet(){return"Internet"===this.usageType},isVoice(){return"Minutes"===this.usageType},isSMS(){return"SMS"===this.usageType},isUpgradePlan(){const e=this.usages.filter(e=>e.internetUsage.local.extra>0);return e.length>2}},props:{usageType:{type:String,default:()=>"Internet",validator:e=>"Internet"===e||"Minutes"===e||"SMS"===e,required:!0},usages:{type:Array,default:()=>[],required:!0}},watch:{activeTab(e){var t,a,s,i,n,r,o,l,c,d,u,p,m,h,v,g,f,y,b,x,C,w,_,A,S,T,k;0===e&&(this.isInternet&&Ea["default"].addEvent({event_name:"Navigated To Local Internet Usage",custom_attributes:{channel:"",LatestLocalInternetUsage:(null===(t=this.usages[0])||void 0===t||null===(a=t.internetUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)+" GB",AverageLocalInternetUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.internetUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isVoice&&Ea["default"].addEvent({event_name:"Navigated To Local Minutes Usage",custom_attributes:{channel:"",LatestLocalMinutesUsage:(null===(i=this.usages[0])||void 0===i||null===(n=i.voiceUsage)||void 0===n||null===(r=n.local)||void 0===r?void 0:r.usage)+" GB",AverageLocalMinutesUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.voiceUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isSMS&&Ea["default"].addEvent({event_name:"Navigated To Local SMS Usage",custom_attributes:{channel:"",LatestLocalSmsUsage:(null===(o=this.usages[0])||void 0===o||null===(l=o.smsUsage)||void 0===l||null===(c=l.local)||void 0===c?void 0:c.usage)+" GB",AverageLocalSmsUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.smsUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)},0)+" GB"}}));1===e&&(this.isInternet&&Ea["default"].addEvent({event_name:"Navigated To Roaming Internet Usage",custom_attributes:{channel:"",LatestRoamingInternetUsage:(null===(d=this.usages[0])||void 0===d||null===(u=d.internetUsage)||void 0===u||null===(p=u.roaming)||void 0===p?void 0:p.usage)+" GB",AverageRoamingInternetUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.internetUsage)||void 0===a||null===(s=a.roaming)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isVoice&&Ea["default"].addEvent({event_name:"Navigated To Roaming Minutes Usage",custom_attributes:{channel:"",LatestRoamingMinutesUsage:(null===(m=this.usages[0])||void 0===m||null===(h=m.voiceUsage)||void 0===h||null===(v=h.roaming)||void 0===v?void 0:v.usage)+" GB",AverageRoamingMinutesUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.voiceUsage)||void 0===a||null===(s=a.roaming)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isSMS&&Ea["default"].addEvent({event_name:"Navigated To Roaming SMS Usage",custom_attributes:{channel:"",LatestRoamingSmsUsage:(null===(g=this.usages[0])||void 0===g||null===(f=g.smsUsage)||void 0===f||null===(y=f.roaming)||void 0===y?void 0:y.usage)+" GB",AverageRoamingSmsUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.smsUsage)||void 0===a||null===(s=a.roaming)||void 0===s?void 0:s.usage)},0)+" GB"}}));2===e&&(this.isInternet&&Ea["default"].addEvent({event_name:"Navigated To International Internet Usage",custom_attributes:{channel:"",LatestInternationalInternetUsage:(null===(b=this.usages[0])||void 0===b||null===(x=b.internetUsage)||void 0===x||null===(C=x.international)||void 0===C?void 0:C.usage)+" GB",AverageInternationalInternetUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.internetUsage)||void 0===a||null===(s=a.international)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isVoice&&Ea["default"].addEvent({event_name:"Navigated To International Minutes Usage",custom_attributes:{channel:"",LatestInternationalInternetUsage:(null===(w=this.usages[0])||void 0===w||null===(_=w.voiceUsage)||void 0===_||null===(A=_.international)||void 0===A?void 0:A.usage)+" GB",AverageInternationalInternetUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.voiceUsage)||void 0===a||null===(s=a.international)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isSMS&&Ea["default"].addEvent({event_name:"Navigated To International SMS Usage",custom_attributes:{channel:"",LatestInternationalSmsUsage:(null===(S=this.usages[0])||void 0===S||null===(T=S.smsUsage)||void 0===T||null===(k=T.international)||void 0===k?void 0:k.usage)+" GB",AverageInternationalSmsUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.smsUsage)||void 0===a||null===(s=a.international)||void 0===s?void 0:s.usage)},0)+" GB"}}))}},methods:{getBarValues(e,t){const a=this.getMaxUsageValueByType(t),s=this.getUsageByType(e)[t],i=0===a?0:s.usage/a*100,n=0===a?0:s.extraUsage/a*100;return{mainBarValue:i,secondaryBarValue:n}},getUnit(){return this.isInternet?this.$t("GB"):this.isVoice?this.$t("Mins"):this.isSMS?this.$t("SMS"):""},getMaxUsageValueByType(e){let t=0;for(const a of this.usages){const s=this.getUsageByType(a)[e];s.usage+s.extraUsage>t&&(t=s.usage+s.extraUsage)}return t},getFullMonthName(e){return this.monthNames[this.$i18n.locale][ba["DateTime"].fromISO(e).month-1]},getYear(e){return ba["DateTime"].fromISO(e).year},getMonthName(e){const t=new Date(e).getMonth();return this.monthNames[this.$i18n.locale][t]},getUsageByType(e){return this.isInternet?e.internetUsage:this.isVoice?e.voiceUsage:this.isSMS?e.smsUsage:void 0},onClickCallHistory(){this.isCallHistoryOpen=!this.isCallHistoryOpen},onClickCalendarIcon(e,t){this.$router.push(`/call-history/${e.value+1}?historyType=${t}`)}},beforeMount(){this.months=this.getPast6Months()},mounted(){var e,t,a,s,i,n,r,o,l;this.isInternet&&Ea["default"].addEvent({event_name:"Navigated To Local Internet Usage",custom_attributes:{channel:"",LatestLocalInternetUsage:(null===(e=this.usages[0])||void 0===e||null===(t=e.internetUsage)||void 0===t||null===(a=t.local)||void 0===a?void 0:a.usage)+" GB",AverageLocalInternetUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.internetUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isVoice&&Ea["default"].addEvent({event_name:"Navigated To Local Minutes Usage",custom_attributes:{channel:"",LatestLocalMinutesUsage:(null===(s=this.usages[0])||void 0===s||null===(i=s.voiceUsage)||void 0===i||null===(n=i.local)||void 0===n?void 0:n.usage)+" GB",AverageLocalMinutesUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.voiceUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)},0)+" GB"}}),this.isSMS&&Ea["default"].addEvent({event_name:"Navigated To Local SMS Usage",custom_attributes:{channel:"",LatestLocalSmsUsage:(null===(r=this.usages[0])||void 0===r||null===(o=r.smsUsage)||void 0===o||null===(l=o.local)||void 0===l?void 0:l.usage)+" GB",AverageLocalSmsUsage:this.usages.reduce((e,t)=>{var a,s;return e+(null===t||void 0===t||null===(a=t.smsUsage)||void 0===a||null===(s=a.local)||void 0===s?void 0:s.usage)},0)+" GB"}})}},Vp=Fp,Hp=Object(v["a"])(Vp,Pp,$p,!1,null,null,null),Gp=Hp.exports,Zp={name:"Usage",components:{ZHeading:vn,ZLoading:Je,UsageDetailsCard:Gp,ZTabItem:pa,ZTabs:ra},mixins:[ni,se],computed:{usages(){return this.$store.state[ae["b"].USAGE_HISTORY]}},methods:{monthDurationText(){const e=new Date,t=0===e.getMonth()?12:e.getMonth()-1,a=this.monthNames[this.$i18n.locale][t],s=this.monthNames[this.$i18n.locale][e.getMonth()];return`${a} - ${s} ${e.getFullYear()}`},getUsagesPayload(){const e=new Date,t=new Date(e.getFullYear(),e.getMonth()+1,1),a=new Date(e.getFullYear(),e.getMonth()-5,1);return{from:a.toISOString(),to:t.toISOString()}}},mounted(){const e=this.getUsagesPayload();this.initStateResources({resource:ae["b"].USAGE_HISTORY,payload:e})}},qp=Zp,Kp=Object(v["a"])(qp,Tp,kp,!1,null,"ddd775ba",null),Yp=Kp.exports,Wp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mt-3 md:mt-0 relative",class:{"md:mt-36":e.$store.state.windowScroll>35}},[t("div",{staticClass:"md:mx-auto md:max-w-6xl mt-4"},[t("div",{staticClass:"mx-6 flex justify-between items-center"},[t("h1",{staticClass:"font-extrabold text-3xl"},[e._v(e._s(e.$t("Autopay")))]),t("router-link",{attrs:{to:"/"}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("4915"),alt:"Back to home"}})])],1)]),t("div",{staticClass:"md:grid md:grid-cols-3 md:mx-auto md:max-w-6xl"},[t("div",{staticClass:"mx-6 mb-6 xl:max-w-5xl md:col-span-2"},[t("h2",{staticClass:"text-2xl mt-3"},[e._v(e._s(e.$t("SelectPaymentMethod")))]),e.autopay.data?t("div",{staticClass:"mt-3 text-start"},[t("p",{staticClass:"text-lg"},[e._v(" "+e._s(e.$t("Autopay"))+" "),e.autopay.data.active?t("span",[e._v(e._s(e.$t("IsEnabledFor"))+" ")]):t("span",[e._v(e._s(e.$t("WillBeEnabledFor"))+" ")]),t("span",{staticClass:"font-bold underline"},[e._v(e._s(e.$store.state.msisdn))])]),t("div",{staticClass:"mt-3 flex flex-col space-y-3"},[t("z-radio",{attrs:{name:"payment_method","native-value":"credit"},on:{input:function(t){return e.clearForm()}},model:{value:e.selectedPaymentMethod,callback:function(t){e.selectedPaymentMethod=t},expression:"selectedPaymentMethod"}},[t("div",{staticClass:"flex w-full items-center flex-grow justify-between ps-4"},[t("div",{staticClass:"font-bold"},[e._v(e._s(e.$t("CreditCard")))]),t("div",{staticClass:"flex"},[t("img",{staticClass:"ms-3 h-5 transition-all duration-500",class:{"filter grayscale opacity-70":"visa"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},attrs:{src:a("25de"),alt:"Visa Logo"}}),t("img",{staticClass:"ms-3 h-5 transition-all duration-500",class:{"filter grayscale opacity-70":"mastercard"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},attrs:{src:a("7f0d"),alt:"Master Card Logo"}}),t("img",{staticClass:"ms-3 h-5 transition-all duration-500",class:{"filter grayscale opacity-70":"amex"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},attrs:{src:a("82f0"),alt:"American Express Logo"}})])])]),t("z-card",{directives:[{name:"show",rawName:"v-show",value:"credit"===e.selectedPaymentMethod,expression:"selectedPaymentMethod === 'credit'"}],staticClass:"p-6 text-start"},[t("div",{staticClass:"animate-fade-in-down mb-3"},[t("validation-observer",{ref:"creditForm"},[t("validation-provider",{attrs:{rules:"required|credit_card",name:e.$t("CardNumber")},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-3",attrs:{message:a[0],type:{danger:a[0]},label:e.$t("CardNumber")}},[t("z-input",{directives:[{name:"cleave-credit",rawName:"v-cleave-credit",value:{onCreditCardTypeChanged:e.cardChanged},expression:"{onCreditCardTypeChanged: cardChanged}"}],staticClass:"w-full",attrs:{direction:"ltr",type:"number","input-classes":"text-start","data-private":"",autocomplete:"cc-number"},model:{value:e.cardNumber,callback:function(t){e.cardNumber=t},expression:"cardNumber"}})],1)]}}],null,!1,480781773)}),t("div",{staticClass:"flex space-s-3"},[t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{staticClass:"w-full",attrs:{label:e.$t("ExpiryMonth"),"data-private":"",placeholder:"MM",autocomplete:"cc-exp-month"},model:{value:e.expiryMonth,callback:function(t){e.expiryMonth=t},expression:"expiryMonth"}},e._l(e.getExpiryMonths(),(function(a){return t("option",{key:a},[e._v(" "+e._s(a)+" ")])})),0)],1)]}}],null,!1,539123985)}),t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{staticClass:"w-full",attrs:{label:e.$t("ExpiryYear"),"data-private":"",placeholder:"YY",autocomplete:"cc-exp-year"},model:{value:e.expiryYear,callback:function(t){e.expiryYear=t},expression:"expiryYear"}},e._l(e.getExpiryYears(),(function(a){return t("option",{key:a.value,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)],1)]}}],null,!1,1913740096)})],1)],1)],1)]),t("hr"),t("z-radio",{attrs:{name:"payment_method","native-value":"debit"},on:{input:function(t){return e.clearForm()}},model:{value:e.selectedPaymentMethod,callback:function(t){e.selectedPaymentMethod=t},expression:"selectedPaymentMethod"}},[t("div",{staticClass:"flex w-full items-center flex-grow justify-between ps-4"},[t("div",{staticClass:"font-bold"},[e._v(e._s(e.$t("DebitCard")))]),t("img",{staticClass:"mx-2",attrs:{src:a("03ba"),alt:"credit card"}})])]),t("z-card",{directives:[{name:"show",rawName:"v-show",value:"debit"===e.selectedPaymentMethod,expression:"selectedPaymentMethod === 'debit'"}],staticClass:"p-6 text-start",attrs:{overflow:"visible"}},[t("div",{staticClass:"animate-fade-in-down"},[t("validation-observer",{ref:"debitForm"},[t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-3",attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{staticClass:"mb-3",attrs:{"data-private":"",label:e.$t("Bank")},model:{value:e.bank,callback:function(t){e.bank=t},expression:"bank"}},e._l(e.autopayBanks,(function(a){return t("option",{key:a.id,domProps:{value:a.id}},[e._v(" "+e._s(a.name)+" ("+e._s(a.id)+") ")])})),0)],1)]}}],null,!1,3274753316)}),e.getSelectedBankPrefixes.length?t("div",{staticClass:"flex space-x-3 mb-3 w-full",class:{"flex-row-reverse":!e.isEnglishLang}},[t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{attrs:{label:e.$t("Prefix"),placeholder:e.$t("Prefix"),"data-private":""},model:{value:e.debitCardPrefix,callback:function(t){e.debitCardPrefix=t},expression:"debitCardPrefix"}},e._l(e.getSelectedBankPrefixes,(function(a){return t("option",{key:a},[e._v(" "+e._s(a)+" ")])})),0)],1)]}}],null,!1,2273234746)}),t("validation-provider",{staticClass:"w-full",attrs:{rules:"required|length:"+(e.getSelectedBankCardNumberLength-e.debitCardPrefix.length),name:e.$t("CardNumber")},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-input",{staticClass:"w-full",attrs:{label:e.$t("CardNumber"),"data-private":"",direction:"ltr"},on:{keypress:t=>e.onKeyUpFormat(t,"accountNumber",e.formatNumber(e.getSelectedBankAccountLength))},model:{value:e.debitCardNumber,callback:function(t){e.debitCardNumber=t},expression:"debitCardNumber"}})],1)]}}],null,!1,3091522146)})],1):t("validation-provider",{attrs:{rules:"required|length:"+e.getSelectedBankAccountLength,name:e.$t("AccountNumber")},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{staticClass:"mb-3",attrs:{message:a[0],type:{danger:a[0]}}},[t("z-input",{staticClass:"w-full",attrs:{label:e.$t("AccountNumber"),"data-private":""},on:{keypress:t=>e.onKeyUpFormat(t,"accountNumber",e.formatNumber(e.getSelectedBankAccountLength))},model:{value:e.accountNumber,callback:function(t){e.accountNumber=t},expression:"accountNumber"}})],1)]}}],null,!1,1221148852)}),t("div",{staticClass:"flex space-s-3"},[t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{attrs:{label:e.$t("ExpiryMonth"),placeholder:"MM","data-private":""},model:{value:e.expiryMonth,callback:function(t){e.expiryMonth=t},expression:"expiryMonth"}},e._l(e.getExpiryMonths(),(function(a){return t("option",{key:a},[e._v(" "+e._s(a)+" ")])})),0)],1)]}}],null,!1,4270356629)}),t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{attrs:{label:e.$t("ExpiryYear"),"data-private":"",placeholder:"YY"},model:{value:e.expiryYear,callback:function(t){e.expiryYear=t},expression:"expiryYear"}},e._l(e.getExpiryYears(),(function(a){return t("option",{key:a.value,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)],1)]}}],null,!1,3814364283)})],1)],1)],1)])],1)]):e._e()]),t("div",{staticClass:"w-full bg-gray-50 p-6 text-center md:inline-block md:mt-4"},[t("div",{staticClass:"md:rounded-md md:shadow-md overflow-hidden"},[t("div",{staticClass:"hidden md:flex justify-center px-3 py-5 header-bg text-white capitalize"},[e._v(" "+e._s(e.$t("AutopaySummary"))+" ")]),t("div",{staticClass:"md:p-3"},[t("z-button",{staticClass:"block w-full",attrs:{disabled:e.isSubmitButtonDisabled},on:{click:function(t){return e.submitAutopay()}}},[e._v(" "+e._s(e.autopay.data.active?e.$t("Update"):e.$t("Enable"))+" "+e._s(e.$t("Autopay"))+" ")]),t("p",{staticClass:"text-sm mt-3"},[e._v(e._s(e.$t("ClickingAgreeTerms"))+" "),t("span",{staticClass:"font-bold text-primary underline",attrs:{role:"button"},on:{click:e.onClickTnC}},[e._v(e._s(e.$t("TermsAndConditions")))])])],1)])])]),t("z-loading",{attrs:{active:e.loading,"is-full-page":!1}}),t("z-modal",{attrs:{"can-confirm":"","confirm-label":"OK","on-confirm":e.resultOnClose,"on-cancel":e.resultOnClose,active:e.resultModalActive},on:{"update:active":function(t){e.resultModalActive=t}}},[t("div",{staticClass:"p-6"},[t("span",{staticClass:"text-primary text-6xl",class:{"icon-Info":!e.successResult,"icon-confirmation":e.successResult}}),t("p",{staticClass:"mt-4"},[e._v(e._s(e.autopayResultMessage))])])]),t("tn-c-popup",{attrs:{"confirm-label":e.$t("OK"),"on-confirm":e.onCancelTnCModal,"on-cancel":e.onCancelTnCModal},model:{value:e.TnCModalActive,callback:function(t){e.TnCModalActive=t},expression:"TnCModalActive"}})],1)},Qp=[],Xp={name:"Autopay",components:{TnCPopup:tr,ZField:ya,ZModal:Be,ZLoading:Je,ZButton:R,ZSelect:A,ZInput:H,ZRadio:Kt,ZCard:pe,ValidationProvider:re["b"],ValidationObserver:re["a"]},mixins:[wa],computed:{isEnglishLang(){return"en"===this.$i18n.locale},autopay(){return this.$store.state[ae["b"].AUTOPAY]},getSelectedBankAccountLength(){var e;const t=this.autopayBanks.find(e=>e.id===this.bank);return null!==(e=null===t||void 0===t?void 0:t.accountNumberLength)&&void 0!==e?e:0},getSelectedBankCardNumberLength(){var e;const t=this.autopayBanks.find(e=>e.id===this.bank);return null!==(e=null===t||void 0===t?void 0:t.cardNumberLength)&&void 0!==e?e:0},getSelectedBankPrefixes(){var e;const t=this.autopayBanks.find(e=>e.id===this.bank);return null!==(e=null===t||void 0===t?void 0:t.prefixes)&&void 0!==e?e:[]},isSubmitButtonDisabled(){var e,t;if(null!==(e=this.autopay)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.active){var a,s,i,n;let e;"credit"===this.selectedPaymentMethod?e=this.removeSpaces(this.cardNumber):"debit"===this.selectedPaymentMethod&&(e=this.removeSpaces(this.accountNumber));const[t,r]=null===(a=this.autopay)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.cardExpiry.split("/");if(e===(null===(i=this.autopay)||void 0===i||null===(n=i.data)||void 0===n?void 0:n.maskedCardNumber)&&this.expiryYear===r&&this.expiryMonth===t)return!0}return!1}},data(){return{selectedPaymentMethod:"credit",expiryYear:"",expiryMonth:"",cardNumber:"",accountNumber:"",debitCardPrefix:"",debitCardNumber:"",bank:null,autopayBanks:[],loading:!1,resultModalActive:!1,successResult:!1,autopayResultMessage:"",TnCModalActive:!1}},methods:{clearForm(){var e,t,a,s,i,n,r,o;this.cardNumber="",this.accountNumber="",this.ccType="",this.expiryMonth="",this.expiryYear="",this.bank=null,this.debitCardNumber="",this.debitCardPrefix="",null!==(e=this.autopay)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.active&&(null===(a=this.autopay)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.type)===this.selectedPaymentMethod&&this.setupAutopay(),null===(i=this.$refs)||void 0===i||null===(n=i.debitForm)||void 0===n||n.reset(),null===(r=this.$refs)||void 0===r||null===(o=r.creditForm)||void 0===o||o.reset()},async submitAutopay(){var e,t;const a=await this.$refs[this.selectedPaymentMethod+"Form"].validate();if(!a)return;const s=this.getSelectedBankPrefixes.length?this.debitCardPrefix+this.debitCardNumber:this.accountNumber,i={cardExpiry:`${this.expiryMonth}/${this.expiryYear}`,type:this.selectedPaymentMethod,cardNumber:this.removeSpaces("credit"===this.selectedPaymentMethod?this.cardNumber:s)};if("debit"===this.selectedPaymentMethod&&(i.bankId=this.bank),null!==(e=this.autopay)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.active)try{var n,r,o;let e=await this.$myZainApi(G["a"].autopayUpdatePostpaid,{maskedCardNumber:null===(n=this.autopay)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.maskedCardNumber,newCardInfo:i});null!==e&&void 0!==e&&null!==(o=e.data)&&void 0!==o&&o.success?(this.successResult=!0,this.autopayResultMessage=this.$t("AutopayUpdatedSuccess"),this.$store.state["AutoPay"].isDirty=!0):(this.autopayResultMessage=this.$t("AutopayUpdatedError"),this.successResult=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error updating autopay"}}))}catch(c){this.successResult=!1,this.autopayResultMessage=this.$t("AutopayUpdatedError"),console.log(c),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error updating autopay"}})}finally{this.resultModalActive=!0}else{this.loading=!0;try{var l;let e=await this.$myZainApi(G["a"].autopayRegisterPostpaid,{cardInfo:i});null!==e&&void 0!==e&&null!==(l=e.data)&&void 0!==l&&l.success?(this.successResult=!0,this.autopayResultMessage=this.$t("AutopayEnabledSuccess"),this.$store.state["AutoPay"].isDirty=!0):(this.successResult=!1,this.autopayResultMessage=this.$t("AutopayEnabledError"),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error activating autopay"}}))}catch(c){console.log(c),this.successResult=!1,this.autopayResultMessage=this.$t("AutopayEnabledError"),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error activating autopay"}})}finally{this.resultModalActive=!0}}this.loading=!1},resultOnClose(){this.successResult&&this.$router.push("/")},async getAutoPayBanks(){var e;this.autopayBanks=null===(e=await G["a"].autopayBanks())||void 0===e?void 0:e.data},async getAutoPayData(){await this.$store.dispatch("fetchResource",{resource:ae["b"].AUTOPAY})},setupAutopay(){var e,t,a,s,i,n,r,o;if("credit"===(null===(e=this.autopay)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.type))this.cardNumber=null===(r=this.autopay)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.maskedCardNumber;else if("debit"===(null===(a=this.autopay)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.type)){var l,c,d,u,p,m,h,v,g,f,y,b,x,C,w,_;if(null!==(l=this.autopay)&&void 0!==l&&null!==(c=l.data)&&void 0!==c&&c.prefix&&null!==(d=this.autopay)&&void 0!==d&&null!==(u=d.data)&&void 0!==u&&u.bankId)this.bank=null===(h=this.autopay)||void 0===h||null===(v=h.data)||void 0===v?void 0:v.bankId,this.debitCardPrefix=null===(g=this.autopay)||void 0===g||null===(f=g.data)||void 0===f?void 0:f.prefix,this.debitCardNumber=null===(y=this.autopay)||void 0===y||null===(b=y.data)||void 0===b?void 0:b.maskedCardNumber.substring(null!==(x=null===(C=this.autopay)||void 0===C||null===(w=C.data)||void 0===w||null===(_=w.prefix)||void 0===_?void 0:_.length)&&void 0!==x?x:0);else this.accountNumber=null===(p=this.autopay)||void 0===p||null===(m=p.data)||void 0===m?void 0:m.maskedCardNumber}const[A,S]=null===(i=this.autopay)||void 0===i||null===(n=i.data)||void 0===n?void 0:n.cardExpiry.split("/");this.expiryMonth=A,this.expiryYear=S},onClickTnC(){this.TnCModalActive=!0},onCancelTnCModal(){this.TnCModalActive=!1}},async mounted(){var e,t,a,s,i;(this.loading=!0,await this.getAutoPayBanks(),await this.getAutoPayData(),null!==(e=this.autopay)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.active)&&(this.setupAutopay(),this.selectedPaymentMethod=null!==(a=null===(s=this.autopay)||void 0===s||null===(i=s.data)||void 0===i?void 0:i.type)&&void 0!==a?a:"credit");this.loading=!1}},Jp=Xp,em=(a("b9e8"),Object(v["a"])(Jp,Wp,Qp,!1,null,"6a4a32d1",null)),tm=em.exports,am=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"max-w-3xl mx-2 md:mx-auto xl:max-w-5xl relative"},[t("z-heading",[e._v(" "+e._s(e.$t("MyPlan"))+" ")]),t("z-loading",{attrs:{active:e.plans.loading,"has-background":!1,"is-full-page":!1,"extra-classes":"h-96"}}),e.plans.data?t("div",[t("z-card",{staticClass:"border",class:{"border-b":e.usage&&e.usage.data&&e.usage.data.length>0&&e.hasCommitments},attrs:{overflow:"visible"}},[t("div",[e.$store.getters.isPostpaid?t("div",{class:"quad"!==e.$store.getters.getQuadValidity||e.hasCommitments?"grid-cols-1 grid md:grid-cols-2":""},[e.usage&&e.usage.data?t("div",{staticClass:"p-2 px-4"},[t("div",{class:{"md:border-e":"quad"!==e.$store.getters.getQuadValidity||e.hasCommitments}},[t("div",{staticClass:"flex justify-between items-center"},[t("div",{staticClass:"text-md font-extrabold"},[e._v(" "+e._s(e.$t("MyCurrentPlan"))+" ")]),t("div",{staticClass:"pe-3 text-gray-600"},["quad"===e.$store.getters.getQuadValidity?t("div",[t("auto-pay-toggle")],1):t("div",[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.DateTime.now().endOf("month").toFormat("dd/LL/yyyy"))+" ")])])]),e.$store.getters.isPostpaid?t("swiper",{attrs:{options:{slidesPerView:3,centerInsufficientSlides:"quad"!==e.$store.getters.getQuadValidity}}},[e._l(e.usageNoDupes,(function(s){return t("swiper-slide",{key:s.product,staticClass:"p-8"},[t("div",{staticClass:"flex justify-center items-center flex-col"},[s.service.includes("SMS")||s.service.includes("MMS")?t("img",{staticClass:"h-6",attrs:{src:a("1ede"),alt:"sms-image"}}):t("div",{class:e.getIcon(s.service,"quad"===e.$store.getters.getQuadValidity).concat(" text-primary text-2xl")}),t("div",{staticClass:"font-extrabold text-sm mt-1 whitespace-nowrap"},["Voice"===s.service?t("div",[e._v(" "+e._s(s.isUnlimited?e.$t("Unlimited"):s.threshold)+" ")]):t("div",[e._v(" "+e._s(s.isUnlimited?e.$t("Unlimited"):`${s.threshold} ${s.unit}`)+" ")])]),t("div",{staticClass:"text-gray-500 text-xs whitespace-nowrap"},["Voice"!==s.service||s.isUnlimited?t("div",[e._v(" "+e._s("ar"===e.$i18n.locale?s.serviceCategoryAr:s.serviceCategory)+" ")]):t("div",[e._v(" "+e._s(e.$t("Minutes"))+" ")])])])])})),e._l(e.OTTs.data.result.filter(e=>e.isInstalled),(function(a){return t("swiper-slide",{key:a.id,staticClass:"p-8"},[a.isInstalled?t("div",{staticClass:"flex justify-center items-center flex-col"},[t("div",{staticClass:"icon-app-entertainment-3 text-primary text-2xl"}),t("div",{staticClass:"font-extrabold text-sm mt-1"},[t("div",{staticStyle:{direction:"ltr"}},[e._v(" "+e._s(a.title)+" ")])]),t("div",{staticClass:"text-gray-500 text-xs whitespace-nowrap"},[t("div",[e._v(" "+e._s(e.$t("Subscription"))+" ")])])]):e._e()])})),t("swiper-slide",{staticClass:"p-8"},[t("div",{staticClass:"flex justify-center items-center flex-col",attrs:{role:"button"},on:{click:function(t){return e.onAddExtras()}}},[t("div",{staticClass:"text-3xl text-primary icon-Extra-GB"}),t("div",{staticClass:"font-extrabold text-sm mt-1 leading-4 whitespace-nowrap"},[e._v(" "+e._s(e.$t("AddExtras"))+" ")])])])],2):e._e()],1)]):e._e(),e.hasCommitments?t("hr",{staticClass:"md:hidden"}):e._e(),"quad"!==e.$store.getters.getQuadValidity||e.hasCommitments?t("div",[t("div",{staticClass:"p-2 px-4 md:block",class:{hidden:!e.hasCommitments}},[t("div",{staticClass:"flex justify-between items-center"},[t("div",{staticClass:"text-md font-extrabold"},[e._v(" "+e._s(e.$t("MyCommitments"))+" ")])]),e.commitments.loading?t("div",{staticClass:"relative h-44"},[t("z-loading",{attrs:{active:e.commitments.loading,"is-full-page":!1},on:{"update:active":function(t){return e.$set(e.commitments,"loading",t)}}})],1):t("div",[e.hasCommitments&&e.FilteredCommitments.length>0?t("div",[t("swiper",{attrs:{options:{slidesPerView:2,centerInsufficientSlides:!0}}},[e._l(e.FilteredCommitments,(function(a){return t("swiper-slide",{key:a.product,staticClass:"p-8"},[t("div",{staticClass:"flex justify-center items-center flex-col"},[t("div",{staticClass:"icon-button text-primary text-2xl"}),t("div",{staticClass:"font-extrabold text-sm mt-1 w-36"},[e._v(" "+e._s(a.description)+" ")]),t("div",{staticClass:"text-gray-500 text-xs whitespace-nowrap"},[e._v(" "+e._s(e.$t("EndsOn"))+" "+e._s(e.prettyDate(a.endDate))+" ")])])])})),t("swiper-slide",{staticClass:"p-8"},[t("div",{staticClass:"flex justify-center items-center flex-col",attrs:{role:"button"},on:{click:()=>e.$router.push("/offers")}},[t("div",{staticClass:"text-3xl mb-1 text-primary icon-Extra-GB"}),t("div",{staticClass:"font-extrabold text-sm mt-1 leading-4 whitespace-nowrap"},[e._v(" "+e._s(e.$t("AddADevice"))+" ")])])])],2)],1):t("div",{staticClass:"p-8"},[e._v(" "+e._s(e.$t("YouHaveNoCommitments"))+" ")])])])]):e._e()]):e._e(),e.$store.getters.isPrepaid?t("div",[e.isFlexi?t("z-tabs",[t("z-tab-item",{attrs:{label:e.$t("MyCurrentPlan")}},[t("div",{staticClass:"flex justify-between items-center p-2 text-xs text-gray-500"},[t("div",[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(e.plans.data.currentOfferEndDate))+" ")]),e.daysTillEndDate()<=30?t("div",[t("auto-renew-prepaid-plan-toggle")],1):e._e()]),t("flexi-plan-benefits",{on:{onFlexiAddExtras:e.onAddExtras}}),t("hr"),t("div",{staticClass:"flex justify-between items-center px-2 py-4"},[t("div",{staticClass:"flex justify-start flex-col items-start mx-2"},[t("div",{staticClass:"text-gray-500 text-xs text-start"},[e._v(" "+e._s(e.$t("PlanPricing"))+" "),t("div",{class:e.pinkPriceClasses},[e._v(" "+e._s(e.positionedPrice(e.monthlySub))+" ")])])]),t("div",[t("z-button",{attrs:{outlined:""},on:{click:function(t){return e.goToFlexiPage(!1)}}},[e._v(" "+e._s(e.$t("ManagePlan"))+" ")])],1)])],1),t("z-tab-item",{attrs:{label:e.$t("MyFuturePlan")}},[t("flexi-plan-benefits",{attrs:{"hide-button":!0,"is-future":!0}}),t("hr"),t("div",{staticClass:"flex justify-between items-center px-2 py-4"},[t("div",{staticClass:"flex justify-start flex-col items-start mx-2"},[t("div",{staticClass:"text-gray-500 text-xs text-start"},[e._v(" "+e._s(e.$t("PlanPricing"))+" "),t("div",{class:e.pinkPriceClasses},[e._v(" "+e._s(e.positionedPrice(e.futureMonthlySub))+" ")])])]),e.advancedPaymentValue<=1?t("div",[t("z-button",{attrs:{outlined:""},on:{click:function(t){return e.goToFlexiPage(!0)}}},[e.plans&&e.plans.data&&e.plans.data.currentOfferAutoRenew?t("span",[e._v(e._s(e.$t("EditFuturePlan")))]):t("span",[e._v(e._s(e.$t("SetFuturePlan")))])])],1):e._e()])],1)],1):t("div",[e.plans.data.currentOfferBenefits&&e.plans.data.currentOfferBenefits.length>0?t("div",[t("div",{staticClass:"flex justify-between items-center p-2 text-xs text-gray-500"},[t("div",[e._v(" "+e._s(e.$t("ValidUntil"))+" "+e._s(e.prettyDate(e.plans.data.currentOfferEndDate))+" ")]),t("div",[t("auto-renew-prepaid-plan-toggle")],1)]),t("flexi-plan-benefits",{on:{onFlexiAddExtras:e.onAddExtras}}),t("hr"),t("div",{staticClass:"flex justify-between items-center px-2 py-4"},[t("div",{staticClass:"flex justify-start flex-col items-start mx-2"},[t("div",{staticClass:"text-gray-500 text-xs text-start"},[e._v(" "+e._s(e.$t("PlanPricing"))+" "),t("div",{class:e.pinkPriceClasses},[e._v(" "+e._s(e.positionedPrice(e.monthlySub))+" ")])])]),t("div",[t("z-button",{attrs:{outlined:""},on:{click:function(t){return e.goToFlexiPage(!1)}}},[e._v(" "+e._s(e.$t("ManagePlan"))+" ")])],1)])],1):t("usage",{attrs:{"show-title":!1,"show-auto-renew":e.plans.data.currentOfferEndDate&&""!==e.plans.data.currentOfferCode}})],1)],1):e._e()]),"quad"===e.$store.getters.getQuadValidity?t("hr"):e._e(),e.$store.getters.isPostpaid?t("div",{staticClass:"flex justify-between items-center p-2"},[t("div",{staticClass:"flex justify-start flex-col items-start mx-2"},[t("div",{staticClass:"text-gray-500 text-xs text-start"},[e._v(" "+e._s("quad"!==e.$store.getters.getQuadValidity||e.hasCommitments?e.$t("MonthlySubscription"):e.$t("TotalMonthlyFee"))+" ")]),e.isMonthlySubLoading?e._e():t("div",{staticClass:"flex items-center gap-2 whitespace-nowrap"},[t("div",{class:e.pinkPriceClasses},[e._v(" "+e._s(e.positionedPrice(e.monthlySub))+" ")]),e.$store.getters.isPostpaid&&e.hasCommitments?t("z-tooltip",{attrs:{position:"top"}},[t("div",{staticClass:"p-2",attrs:{slot:"content"},slot:"content"},[t("subscription-breakdown")],1),t("div",{class:e.infoIconClasses})]):e._e()],1)]),t("div",["quad"!==e.$store.getters.getQuadValidity?t("auto-pay-toggle"):e._e()],1),"quad"===e.$store.getters.getQuadValidity?t("div",{staticClass:"w-1/2 sm:w-1/3 md:2-1/3 lg:w-1/4 xl:w-1/4 2xl:w-1/5"},[t("router-link",{attrs:{"exact-active-class":"active",to:"/plan-details"}},[t("z-button",{staticClass:"w-full",attrs:{size:"small"}},[e._v(e._s(e.$t("UpgradeMyPlan")))])],1)],1):e._e()]):e._e()]),e.services.data&&e.services.data.length>0&&"quad"===e.$store.getters.getQuadValidity?t("div",[t("Addons",{ref:"boosters"}),t("pink-h-r")],1):e._e(),e.$store.getters.isPostpaid&&e.$store.getters["ghostPostpaid/isDataNonGhost"]&&0===e.ghostOrders.length?t("div",{staticClass:"mt-4"},[t("GhostPlanPageBanner")],1):e._e(),e.$store.getters.isPostpaid&&(e.campaigns.length>0||e.plans&&e.plans.data&&e.plans.data.length>0)&&"Data"!==e.$store.getters.getBasicServiceType||"quad"!==e.$store.getters.getQuadValidity?t("pink-h-r"):e._e(),e.$store.getters.isPostpaid&&"Data"!==e.$store.getters.getBasicServiceType&&(e.campaigns.length>0||e.plans&&e.plans.data&&e.plans.data.length>0)||e.isPrepaidData?t("div",[t("z-heading",[e._v(" "+e._s(e.$t("PlansForYou"))+" ")]),t("z-tabs",{key:e.tabsKey,ref:"tabs",model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[e.campaigns.length>0&&!e.isPrepaidData?t("z-tab-item",{attrs:{label:e.$t("Offers"),sequence:0,"label-classes":"text-sm"}},[t("offers",{staticClass:"mt-6",attrs:{"hide-title":"","hide-view-all":"","only-campaigns":""}})],1):e._e(),e.plans&&e.plans.data&&e.plans.data.length>0?t("z-tab-item",{attrs:{id:"plan",label:e.$t("UpgradePlan"),sequence:1,"label-classes":"text-sm"}},[t("PlanSection",{staticClass:"p-5",attrs:{plans:e.plans}})],1):e._e(),t("z-tab-item",{ref:"extras",attrs:{label:e.$t("Extras"),sequence:2,"label-classes":"text-sm"}},[t("services",{staticClass:"mt-6",attrs:{"hide-title":!0,services:e.services,"hide-swiper-arrows":""}})],1)],1)],1):t("div",["quad"!==e.$store.getters.getQuadValidity?t("services",{ref:"flexiServices",attrs:{"padding-top":!1,services:e.services}}):e._e()],1)],1):e._e()],1)])},sm=[],im=function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative"},[e.plans.loading?t("div",{staticClass:"h-96"},[t("z-loading",{attrs:{active:e.plans.loading,"is-full-page":!1},on:{"update:active":function(t){return e.$set(e.plans,"loading",t)}}})],1):e._e(),e.plans&&e.plans.data&&e.plans.data.length>0?t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.plans.data,(function(a,s){return t("swiper-slide",{key:s,staticClass:"mb-12"},[t("bundle-card-content",{staticClass:"mx-auto",staticStyle:{width:"310px"},attrs:{bundle:a,"bundle-price":a.price,"button-text":e.$t("UpdateYourPlan"),"is-button-disabled":!a.canInstall},on:{"bundle-chosen":e.onChoosePlan}},[t("plan-benefits",{attrs:{benefits:a.benefits}})],1)],1)})),1):t("div",{staticClass:"text-center"},[e._v(" "+e._s(e.$t("NoAvailablePlanUpgrades"))+" ")]),t("z-modal",{attrs:{active:e.addServiceModal,"can-cancel":""},on:{"update:active":function(t){e.addServiceModal=t}}},[e.currentService?t("div",[t("div",{staticClass:"flex flex-col justify-between py-7"},[t("div",{staticClass:"flex flex-col justify-center items-center py-3 text-purple-900"},[t("div",{staticClass:"flex justify-center gap-3"},[t("div",{staticClass:"text-xs"},[e._v(" "+e._s(e.$t("KD"))+" ")]),t("div",{staticClass:"text-5xl"},[e._v(" "+e._s(e.currentService.price)+" ")])]),t("div",{staticClass:"text-xs py-3 ps-36"},[e._v(" "+e._s("/"+e.$t("Monthly").toUpperCase())+" ")]),t("div",{class:"bg-"+e.color,staticStyle:{height:"1px",width:"95%"}})]),t("plan-benefits",{attrs:{benefits:e.currentService.benefits}}),t("p",[e._v(e._s(e.$t("WouldYouLikeToAddThisPlan?")))]),t("div",{staticClass:"mt-4"},[t("z-button",{on:{click:e.onModalConfirm}},[e._v(" "+e._s(e.$t("OK"))+" ")])],1)],1)]):e._e()]),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":e.statusModalIsSuccess,message:e.statusModalMessage,title:e.statusModalTitle,"on-modal-cancel":e.reFetchServices},on:{"update:active":e.onStatusModalCancel}})],1)},nm=[],rm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-full px-3"},[t("div",{staticClass:"w-full flex flex-col space-y-4"},e._l(e.benefits,(function(a,s){return t("div",{key:a.description,staticClass:"flex w-full"},[t("div",{staticClass:"w-2/12"},[t("div",{class:a.icon.name.replace("icon-","icon-app-").concat(" text-primary text-2xl")})]),t("div",{staticClass:"text-start text-sm flex flex-col items-start"},[e._v(" "+e._s(e.getDescription(a))+" "),"Unlimited"!==a.name?t("div",{staticClass:"font-bold text-sm whitespace-nowrap"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.nameAr:a.name)+" ")]):e._e()]),s!==e.benefits.length-1?t("hr"):e._e()])})),0)])},om=[],lm={name:"PlanBenefits",props:{benefits:{type:Array,default:()=>[]}},methods:{getDescription(e){const t="ar"===this.$i18n.locale,a="Unlimited"===e.name;let s="";return s=t?a?`${this.$t("Unlimited")} ${e.descriptionAr}`:e.description:a?`${this.$t("Unlimited")} ${e.description}`:e.description,s}}},cm=lm,dm=Object(v["a"])(cm,rm,om,!1,null,"6b21adf1",null),um=dm.exports,pm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-full",class:{"h-full w-full":e.isNewDesign}},[e.isNewDesign?t("div",{staticClass:"h-full"},[t("div",{staticClass:"w-full h-full"},[t("div",{staticClass:"overflow-hidden w-full h-full my-2 relative shadow-xl bg-white dark:bg-gray-700 dark:text-white rounded-lg mb-9 flex flex-col"},[t("div",{staticClass:"absolute -right-2 top-0 py-1 px-8 text-white text-xs transform skew-x-25",staticStyle:{background:"#71469d"}},[t("p",{staticStyle:{transform:"skewX(-25deg) translateX(-4px)"}},[e._v(" "+e._s(e.getBundlePrice(e.bundle)>=5?"5G":"4G-LTE")+" ")])]),t("div",{staticClass:"px-4 mt-8 flex flex-col h-full"},[t("div",{staticClass:"flex flex-col flex-1"},e._l(e.bundle.filter(e=>e.value>0),(function(a){return t("div",{key:""+a.titleEn},[t("div",{staticClass:"flex flex-row justify-between items-center px-2 py-2.5"},[t("img",{staticClass:"w-5 me-2.5",attrs:{src:e.getImage(a),alt:"benefit icon"}}),t("div",{staticClass:"flex-grow text-start text-md tracking-tight"},["NIGHT"===a.name&&e.hasNightInternet?t("p",[e._v(e._s(e.$t("NightInternet")))]):t("p",[e._v(e._s(e.isEnglishLang?a.titleEn:a.titleAr))])]),t("div",{staticClass:"text-md font-bold"},[e._v(" "+e._s(a.isUnlimited?e.$t("Unlimited"):`${a.value} ${e.isEnglishLang?a.unitEn:a.unitAr}`)+" ")])]),t("div",{staticClass:"w-full bg-gray-300 h-px"})])})),0),this.additionalText.showText?t("div",[t("div",{staticClass:"font-bold mt-3 mx-3 md:mt-0 md:mx-0",staticStyle:{color:"rgb(113, 70, 157)"}},[e._v(" "+e._s("ar"===e.$i18n.locale?this.additionalText.additionalTextAr:this.additionalText.additionalTextEn)+" ")])]):e._e(),e.getBundlePrice(e.bundle)>=8?t("div",{staticClass:"text-sm text-purple-900 my-3 sm:mt-0 font-bold"},[e._v(" "+e._s(e.$t("FlexiOfferBundleMessage"))+" ")]):e._e(),t("div",{staticClass:"relative text-center mb-3"},[t("div",{staticClass:"relative inline-block text-lg"},[t("span",{staticClass:"font-bold text-2xl"},[e._v("KD "+e._s(e.getBundlePrice(e.bundle)))]),e._v("/"+e._s(e.$t("Monthly"))+" ")])]),t("z-button",{staticClass:"w-full",on:{click:e.onButtonClick}},[t("span",{staticClass:"uppercase"},[e._v(e._s(e.$t("ChooseThisPlan"))+" ")])]),t("p",{staticClass:"my-3 text-xs text-gray-700 text-center"},[e._v(e._s(e.$t("PlanDuration",{days:30})))])],1)])])]):t("div",{staticClass:"flex shadow-md bg-white dark:bg-gray-700 dark:text-white rounded-md flex-col justify-center items-center h-full"},[t("div",{class:`flex justify-center text-${e.color} mt-7`},[t("div",{staticClass:"text-md"},[e._v(" "+e._s(e.$t("KD"))+" ")]),t("div",{staticClass:"text-5xl"},[e._v(" "+e._s(e.bundlePrice)+" ")])]),t("div",{class:"text-md pt-3 ps-20 text-"+e.color},[e._v(" "+e._s("/"+e.$t("Monthly").toUpperCase())+" ")]),t("hr",{class:`border-${e.color} w-11/12 my-6`}),e._t("default"),t("div",{staticClass:"flex-grow"}),e.bundle.isInstalled?t("z-button",{staticClass:"mt-3 mb-6",attrs:{disabled:""}},[e._v(" "+e._s(e.$t("CurrentPlan"))+" ")]):t("z-button",{staticClass:"mt-3 mb-5",attrs:{disabled:e.isButtonDisabled,outlined:""},on:{click:e.onButtonClick}},[e._v(" "+e._s(e.buttonText)+" ")])],2)])},mm=[],hm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-6"},[t("p",{staticClass:"px-6"},[e._v(e._s(e.$t("ConfirmFlexiPlan"))+" "+e._s(e.$store.state.msisdn))]),t("flexi-benefits",{attrs:{benefits:e.getSelectedPlanBenefits}}),e.price>=8&&e.$t("FlexiOfferBundleMessage")?t("div",{staticClass:"text-sm text-center my-3 p-3 rounded-lg font-bold",staticStyle:{background:"#fdf3fa",color:"#51315f"}},[t("span",{staticClass:"icon-Star"}),e._v(" "+e._s(e.$t("FlexiOfferBundleMessage"))+" "),t("br"),t("span",{staticClass:"text-xs"},[e._v(e._s(e.$t("ValidForXDays",{x:3})))])]):e._e(),t("hr",{staticClass:"my-3"}),t("div",{staticClass:"flex mb-1 items-center justify-between"},[t("div",{staticClass:"text-green font-bold text-2xl"},[t("span",{staticClass:"font-bold"},[e._v("KD")]),e._v(" "+e._s(e.price.toFixed(3)))]),t("div",{staticClass:"text-sm uppercase"},[e._v(" "+e._s(e.$t("PlanDuration",{days:e.days}))+" ")])]),e.hasNightInternet?t("div",{staticClass:"text-end font-bold text-zainPurple-medium"},[e._v(" "+e._s(e.$t("NightInternetDescription"))+" ")]):e._e(),e.showOffer?t("div",{staticClass:"px-4 my-4"},[t("span",{staticClass:"text-sm font-bold"},[e._v(e._s(this.offerDisclaimer))])]):e._e(),t("div",{staticClass:"flex flex-col space-y-3 mt-4"},[t("z-button",{on:{click:function(t){return e.confirm()}}},[e._v(e._s(e.$t("Confirm")))])],1)],1)},vm=[],gm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col space-y-6 mt-5 w-full"},e._l(e.benefits.filter(e=>"BUNDLE"!==e.name),(function(a){return t("div",{key:a.titleEn,staticClass:"flex justify-between items-center"},[t("div",{staticClass:"flex items-center",style:"OFFER"===a.type?"color: #0db7bb; font-weight: bold;":""},["OFFER"!==a.type?t("img",{staticClass:"w-6 me-2",attrs:{src:e.getImage(a),alt:"benefit icon"}}):e._e(),"OFFER"===a.type?t("span",{staticClass:"icon-Star px-1 pe-2.5",staticStyle:{color:"#0db7bb"}}):e._e(),e.hasNightInternet&&"NIGHT"===a.name?t("p",[e._v(" "+e._s(e.$t("NightInternet"))+" ")]):t("p",[e._v(" "+e._s("ar"===e.$i18n.locale?a.titleAr:a.titleEn)+" ")])]),a.isUnlimited?t("div",{staticClass:"font-bold"},[e._v(" "+e._s(e.$t("Unlimited"))+" ")]):t("div",{style:"OFFER"===a.type?"color: #0db7bb; font-weight: bold;":""},[t("span",{staticClass:"font-bold"},[e._v(" "+e._s(a.value)+" ")]),e._v(" "+e._s("ar"===e.$i18n.locale?a.unitAr:a.unitEn)+" ")])])})),0)},fm=[],ym={name:"FlexiBenefits",props:{benefits:Array},computed:{hasNightInternet(){return this.benefits.some(e=>"NIGHT"===e.name&&e.value)}},mixins:[Hi]},bm=ym,xm=Object(v["a"])(bm,gm,fm,!1,null,"c60abf46",null),Cm=xm.exports,wm={name:"FlexiConfirmPlanModal",props:{selectedPlan:Object,price:Number,onConfirm:Function,days:{type:Number,default:30},isFuture:{type:Boolean,default:!1},planType:{type:String,default:""}},mixins:[Hi],components:{FlexiBenefits:Cm,ZButton:R},computed:{getSelectedPlanBenefits(){var e,t,a;let s=Object.values(this.selectedPlan);return this.showOffer&&s.splice(1,0,{titleAr:this.offerText,titleEn:this.offerText,type:"OFFER",unitAr:null!==(e=this.offerValue.split(" ")[1])&&void 0!==e?e:"",unitEn:null!==(t=this.offerValue.split(" ")[1])&&void 0!==t?t:"",value:null!==(a=this.offerValue.split(" ")[0])&&void 0!==a?a:""}),s.filter(e=>(null===e||void 0===e?void 0:e.value)>0)},showOffer(){var e,t,a,s,i,n;let r=null!==(e=null===(t=this.prepaidManagement)||void 0===t||null===(a=t.prepaidFooter)||void 0===a?void 0:a.showInConfirmation)&&void 0!==e&&e,o=null!==(s=null===(i=this.prepaidManagement)||void 0===i||null===(n=i.prepaidFooter)||void 0===n?void 0:n.price)&&void 0!==s?s:0;return r&&this.price>=o&&!this.isFuture},offerText(){var e,t,a,s,i,n,r,o;return"ar"===this.$i18n.locale?null!==(e=null===(t=this.prepaidManagement)||void 0===t||null===(a=t.prepaidFooter)||void 0===a||null===(s=a.confirmationPage)||void 0===s?void 0:s.promotionTextAr)&&void 0!==e?e:"":null!==(i=null===(n=this.prepaidManagement)||void 0===n||null===(r=n.prepaidFooter)||void 0===r||null===(o=r.confirmationPage)||void 0===o?void 0:o.promotionTextEn)&&void 0!==i?i:""},offerValue(){var e,t,a,s,i,n,r,o;return"ar"===this.$i18n.locale?null!==(e=null===(t=this.prepaidManagement)||void 0===t||null===(a=t.prepaidFooter)||void 0===a||null===(s=a.confirmationPage)||void 0===s?void 0:s.promotionValueAr)&&void 0!==e?e:"":null!==(i=null===(n=this.prepaidManagement)||void 0===n||null===(r=n.prepaidFooter)||void 0===r||null===(o=r.confirmationPage)||void 0===o?void 0:o.promotionValueEn)&&void 0!==i?i:""},offerDisclaimer(){var e,t,a,s,i,n,r,o;return"ar"===this.$i18n.locale?null!==(e=null===(t=this.prepaidManagement)||void 0===t||null===(a=t.prepaidFooter)||void 0===a||null===(s=a.confirmationPage)||void 0===s?void 0:s.disclaimerAr)&&void 0!==e?e:"":null!==(i=null===(n=this.prepaidManagement)||void 0===n||null===(r=n.prepaidFooter)||void 0===r||null===(o=r.confirmationPage)||void 0===o?void 0:o.disclaimerEn)&&void 0!==i?i:""},prepaidManagement(){var e,t;return null===(e=this.$store.state[ae["b"].PREPAID_MANAGEMENT])||void 0===e||null===(t=e.data[0])||void 0===t?void 0:t.attributes},hasNightInternet(){var e;return null===(e=this.getSelectedPlanBenefits)||void 0===e?void 0:e.some(e=>"NIGHT"===e.name&&e.value)}},data(){return{localActive:!1}},methods:{confirm(){var e;this.onConfirm(),null===(e=this.$parent)||void 0===e||e.close()}}},_m=wm,Am=Object(v["a"])(_m,hm,vm,!1,null,null,null),Sm=Am.exports,Tm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-6"},[t("p",{staticClass:"mt-9 font-bold"},[e._v(" "+e._s(e.$t("Confirm"))+" ")]),t("p",{staticClass:"mt-3 whitespace-pre-wrap"},[e._v(" "+e._s(e.$t("ConfirmFlexiSwap"))+" ")]),t("div",{staticClass:"flex flex-col space-e-3 mt-4"},[t("z-button",{on:{click:function(t){return e.confirm()}}},[e._v(e._s(e.$t("Yes")))]),t("z-button",{attrs:{borderless:""},on:{click:function(t){return e.$parent.close()}}},[e._v(e._s(e.$t("Cancel")))])],1)])},km=[],Pm={name:"FlexiConfirmSwapModal",props:{onConfirm:Function},components:{ZButton:R},methods:{confirm(){var e;this.onConfirm(),null===(e=this.$parent)||void 0===e||e.close()}}},$m=Pm,Mm=Object(v["a"])($m,Tm,km,!1,null,"6a9ba9e8",null),Om=Mm.exports,Nm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-6"},[t("div",{staticClass:"text-4xl pt-4"},[t("span",{class:e.success?"icon-check-mark-button text-green":"icon-Shortcut---close text-danger"})]),t("p",{staticClass:"my-9"},[e._v(" "+e._s(e.success?e.$tc("FlexiPlanActivationSuccess",0,{days:e.days}):e.message?e.$t(e.message):e.$t("RequestError"))+" ")]),t("div",{staticClass:"flex flex-col space-y-3 mt-4"},[t("z-button",{on:{click:e.onClose}},[e._v(e._s(e.success?e.$t("BackToDashboard"):e.$t("Close")))])],1)])},Em=[],Dm={name:"FlexiResultModal",props:{success:Boolean,message:String,days:{type:Number,default:30}},components:{ZButton:R},methods:{onClose(){var e;this.success?this.$router.push("/"):null===(e=this.$parent)||void 0===e||e.close()}}},Im=Dm,Bm=Object(v["a"])(Im,Nm,Em,!1,null,"3f7ef496",null),Lm=Bm.exports,Rm={props:{isFuture:{type:Boolean,default:!1}},data(){return{isResultModalActive:!1,isResultSuccess:!1,resultMessage:"",selectedPlan:{},flexiLoading:!1,upsellOffer:"",upsellProps:{offer:"",title:"",message:"",onAccept:()=>{},onReject:()=>{},planPrice:0},showUpSellDrawer:!1,planType:""}},methods:{async onBuyPlan(e,t){if(this.upsellOffer="",this.selectedPlan=e,this.planType=t,!["READY MADE","CUSTOM"].includes(t))throw"type invalid";let a={price:this.totalPrice(this.selectedPlan),isFuture:this.isFuture,planType:t,selectedPlan:this.computedSelectedPlan,onConfirm:this.onConfirmBuyPlan};const s=e=>this.$zcl.modal.open({parent:this,component:Sm,props:e}),i=(null===e||void 0===e?void 0:e["BUNDLE"])||Object.values(e).find(e=>"BUNDLE"===e.name);if(i&&1!==i.value){const e=parseFloat(i.percent),t=i.value;return a.price=a.price*t-a.price*t*(e/100),a.days=30*t,s(a)}if(e.BUNDLE={name:"BUNDLE",type:"BUNDLE",value:1},this.isFuture)return s(a);try{var n,r,o;const e=await this.$myZainApi(G["a"].upsellOffers,{plan:Object.values(this.selectedPlan)}),t=null!==(n=null===e||void 0===e||null===(r=e.data)||void 0===r?void 0:r.isEligible)&&void 0!==n&&n;let i=Math.floor(Math.random()*(null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.upsellOffers.length));var l,c,d;if(t)this.upsellProps={title:null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.upsellOffers[i].title[this.$i18n.locale],message:null===e||void 0===e||null===(c=e.data)||void 0===c?void 0:c.upsellOffers[i].description[this.$i18n.locale],offer:null===e||void 0===e||null===(d=e.data)||void 0===d?void 0:d.upsellOffers[i].type,onAccept:e=>{this.upsellOffer=e,this.onConfirmBuyPlan(e)},onReject:()=>{this.upsellOffer="",s(a)},planPrice:this.totalPrice(this.selectedPlan)},this.showUpSellDrawer=!0;else s(a)}catch(u){console.log(u)}},async onConfirmBuyPlan(){var e,t;this.isFuture?await this.onSetPlan(!0):null!==(e=this.plans)&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.hasFlexiOffer?await this.onConfirmNowOrFuture(!1):await this.onSetPlan(!1)},async onConfirmNowOrFuture(e){e?await this.onSetPlan(!0):this.$zcl.modal.open({parent:this,component:Om,props:{onConfirm:this.onConfirmSwap}})},async onConfirmSwap(){await this.onSetPlan(!1)},async onSetPlan(e){var t;let a=30;const s=(null===(t=this.selectedPlan)||void 0===t?void 0:t["BUNDLE"])||Object.values(this.selectedPlan).find(e=>"BUNDLE"===e.name);if(s&&1!==(null===s||void 0===s?void 0:s.value)){const e=null===s||void 0===s?void 0:s.value;a=30*e}this.flexiLoading=!0;try{var i,n;const t=await this.$myZainApi(G["a"].prepaidPlanFlexiSubscribe,{plan:Object.values(this.selectedPlan),isFutureOrder:e,upsellOffer:this.upsellOffer,planType:this.planType});this.isResultSuccess=(null===t||void 0===t||null===(i=t.data)||void 0===i?void 0:i.isSuccess)||!1,this.resultMessage=null===t||void 0===t||null===(n=t.data)||void 0===n?void 0:n.message,this.isResultSuccess&&await this.$store.dispatch("fetchResource",{resource:ae["b"].PLANS,force:!0})}catch(l){var r,o;this.isResultSuccess=!1,this.resultMessage=null===(r=l.response)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.message}finally{this.$zcl.modal.open({parent:this,component:Lm,props:{success:this.isResultSuccess,message:this.resultMessage,days:a}}),this.flexiLoading=!1}}}},Um={name:"BundleCardContent",props:{isButtonDisabled:{type:Boolean,default:!1},buttonText:{type:String,default:""},bundlePrice:{type:Number,default:0},color:{type:String,default:"purple-800"},bundle:{},isNewDesign:{type:Boolean,default:!1},additionalText:{type:Object,default:()=>({showText:!1,additionalTextEn:"",additionalTextAr:""})}},mixins:[Rm,Hi,ws],components:{ZButton:R},computed:{isEnglishLang(){return"en"===this.$i18n.locale},hasNightInternet(){var e;return null===(e=this.bundle)||void 0===e?void 0:e.some(e=>"NIGHT"===e.name&&e.value)}},methods:{onButtonClick(){this.$emit("bundle-chosen",this.bundle)},getBundlePrice(e){if(e){const t=e.findIndex(e=>"OFFERPRICE"===e.Name);if(t>-1)return e[t].Index;let a=Object.values(e).map(e=>{var t,a;return Number(null!==(t=null!==(a=e.offerPrice)&&void 0!==a?a:null===e||void 0===e?void 0:e.price)&&void 0!==t?t:0)}).reduce((e,t)=>e+t,0);const s=e.some(e=>"LOCALMINUTES"===e.name&&e.isUnlimited);if(s){const t=e.findIndex(e=>"ONNETMINUTES"===e.name);t>=0&&(a-=e[t].price)}return a}}}},zm=Um,jm=Object(v["a"])(zm,pm,mm,!1,null,"2543d131",null),Fm=jm.exports,Vm={name:"PlanSection",components:{ZButton:R,BundleCardContent:Fm,StatusModal:Ps,PlanBenefits:um,ZModal:Be,ZLoading:Je,Swiper:Li,SwiperSlide:Vi},mixins:[ws],props:{plans:{type:Object,default:()=>{}}},data(){return{showTag:!1,tagLabel:"ChoosePlan",addServiceModal:!1,currentService:{},color:"purple-900",isStatusModalActive:!1,statusModalIsSuccess:!0,statusModalMessage:"",statusModalTitle:"",swiperOptions:{slidesPerView:1,slidesPerGroup:1,centerInsufficientSlides:!0,pagination:{el:".swiper-pagination",clickable:!0,dynamicBullets:!0},breakpoints:{320:{slidesPerView:1,slidesPerGroup:1},600:{slidesPerView:2,spaceBetween:0},900:{slidesPerView:3}}}}},methods:{onChoosePlan(e){this.currentService=e,this.addServiceModal=!0},async onModalConfirm(){let e=!0;if(this.$store.getters.isPostpaid)try{const t=await this.$myZainApi(G["a"].checkCommitments,{msisdn:this.$store.state.msisdn,contractNumber:this.$store.getters.getContractNumber});!1===t.data.isSuccess&&(e=!1,this.onModalCancel(),this.showErrorModal(t.data.error||t.data.message))}catch(t){e=!1,this.addServiceModal=!1,this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Error while changing plan, please try again later"}),console.log(t),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while changing plan, please try again later"}})}if(e)try{const e=await this.$myZainApi(this.$store.getters.isPostpaid?G["a"].addPlan:G["a"].prepaidPlanCodeSubscribe,{serviceCode:this.currentService.serviceCode,price:this.currentService.price});!1===e.data.isSuccess?(this.onModalCancel(),this.showErrorModal(e.data.error||e.data.message)):(this.addServiceModal=!1,this.showSuccessModal())}catch(t){this.addServiceModal=!1,this.$zcl.modal.open({parent:this,canConfirm:!0,content:"Error while changing plan, please try again later"}),console.log(t),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while changing plan, please try again later"}})}else this.$zcl.modal.open({parent:this,canConfirm:!0,confirmLabel:this.$t("HOME"),onConfirm:()=>window.location.href="/",content:this.$t("You are not eligible to purchase this plan. Call 107 to know about our latest offers")})},onModalCancel(){this.addServiceModal=!1},showErrorModal(e){this.statusModalIsSuccess=!1,this.statusModalTitle=this.$t("AnErrorOccurred"),this.statusModalMessage=e,this.isStatusModalActive=!0,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:e}})},showSuccessModal(){this.statusModalIsSuccess=!0,this.statusModalTitle=this.$t("ThankYou"),this.statusModalMessage=this.$t("YourRequestHasBeenSuccessfullySubmitted"),this.isStatusModalActive=!0},onStatusModalCancel(){this.isStatusModalActive=!1},reFetchServices(){this.$store.state[ae["b"].SERVICES].isDirty=!0,this.plans.isDirty=!0}}},Hm=Vm,Gm=Object(v["a"])(Hm,im,nm,!1,null,"c2364afe",null),Zm=Gm.exports,qm=function(){var e=this,t=e._self._c;return t("div",[t("ListItem",{staticClass:"font-bold",attrs:{"text-left":e.$t("Total"),"text-right":e.positionedPrice(e.postpaidPlanPrice)}}),t("ListItem",{attrs:{"text-left":e.$t("SubscriptionCharges"),"text-right":e.positionedPrice(e.commitments.data.subscriptionsAmount)}}),e._l(e.commitments.data.commitment,(function(a){return t("ListItem",{key:a.description,attrs:{"text-left":a.description,"text-right":e.positionedPrice(a.productFee.amount?a.productFee.amount:0)}})})),e._l(e.otts,(function(a){return t("ListItem",{key:a.id,attrs:{"text-left":a.title,"text-right":e.positionedPrice(a.partnerSubscription.price)}})}))],2)},Km=[],Ym=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex text-white justify-between items-center gap-4"},[t("div",{staticClass:"text-sm"},[e._v(" "+e._s(e.textLeft)+" ")]),t("div",{staticClass:"text-xs"},[e._v(" "+e._s(e.textRight)+" ")])])},Wm=[],Qm={name:"ListItem",props:{textLeft:{type:String,default:""},textRight:{type:String,default:""}}},Xm=Qm,Jm=Object(v["a"])(Xm,Ym,Wm,!1,null,"41577242",null),eh=Jm.exports,th={name:"SubscriptionBreakdown",mixins:[ws],components:{ListItem:eh},computed:{commitments(){return this.$store.state[ae["b"].COMMITMENTS]},otts(){var e,t,a;const s=null!==(e=null===(t=this.$store.state[ae["b"].OTTS])||void 0===t||null===(a=t.data)||void 0===a?void 0:a.result)&&void 0!==e?e:[];return s.filter(e=>e.partnerSubscription.price>0&&"addon-promotion"!==e.partnerSubscription.supscriptionType)},postpaidPlanPrice(){return this.$store.getters.getPostpaidPlanPrice}}},ah=th,sh=Object(v["a"])(ah,qm,Km,!1,null,"13c5b4df",null),ih=sh.exports,nh=function(){var e=this,t=e._self._c;return e.services.data.length>0?t("div",{staticClass:"max-w-6xl mx-auto px-3"},[t("z-loading",{attrs:{"background-classes":"bg-black bg-opacity-60","is-full-page":!0,active:e.changeServiceLoading},on:{"update:active":function(t){e.changeServiceLoading=t}}}),t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("MyBoosters"))+" ")]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.services.data,(function(a){return t("swiper-slide",{key:a.id,staticClass:"mb-8"},[t("card-with-tag",[t("AddonCardContent",{attrs:{service:a},on:{"selected-service":e.toggleConfirmationModal}})],1)],1)})),1),t("service-confirmation-modal",{attrs:{value:e.showConfirmationModal,service:e.service,"add-circle":!0},on:{input:e.closeModal}})],1):e._e()},rh=[],oh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col justify-center items-center h-full px-2"},[""!==e.service.icon.url?t("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.$store.state.cmsBackendHost+e.service.icon.url,expression:"$store.state.cmsBackendHost + service.icon.url"}],staticClass:"h-26 object-contain border border-gray-300 rounded-full",attrs:{alt:"Product"}}):t("span",{class:e.service.icon.name.replace("icon-","icon-app-"),staticStyle:{padding:"14px","font-size":"78px",color:"#70489d","margin-bottom":"11px","border-width":"1px","--tw-border-opacity":"1","border-radius":"9999px","border-color":"rgba(212, 212, 212, var(--tw-border-opacity))"}}),t("div",{staticClass:"flex-grow -mb-6"}),t("div",{staticClass:"flex justify-center text-center"},[t("div",{staticStyle:{"-webkit-line-clamp":"3",overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","line-height":"23px"}},[e._v(" "+e._s("ar"===e.$i18n.locale?""===e.service.descriptionAr?e.service.groupNameAr:e.service.descriptionAr:""===e.service.description?e.service.groupName:e.service.description)+" ")])]),t("div",[t("span",{staticClass:"text-sm font-bold"},[e._v(" "+e._s(e.positionedPrice(parseFloat(e.service.price)))+" ")])]),t("div",{staticClass:"pb-6 w-full flex justify-center"},["Toggle"===e.service.activationType?t("div",{staticStyle:{height:"65px"}},[t("z-toggle",{staticClass:"my-4 mx-auto",attrs:{disabled:e.isButtonDisabled,value:e.isInstalled,outlined:""},on:{input:e.onButtonClick}})],1):t("div",{staticClass:"w-full",staticStyle:{height:"65px"}},[t("z-button",{staticClass:"font-bold rounded-xl w-full my-3",attrs:{disabled:e.isButtonDisabled,outlined:"",size:"small"},on:{click:e.onButtonClick}},[e._v(" "+e._s(e.buttonText?e.buttonText:e.$t("BuyNow").toUpperCase())+" ")])],1)])])},lh=[],ch={name:"AddonCardContent",components:{ZToggle:Ft,ZButton:R},props:{service:{type:Object,default:()=>{}},isButtonDisabled:{type:Boolean,default:!1},buttonText:{type:String,default:""}},mixins:[ws],computed:{isInstalled(){return"undefined"===typeof this.service._toggle?this.service.isInstalled:this.service._toggle}},methods:{onButtonClick(){this.$emit("selected-service",this.service)}}},dh=ch,uh=Object(v["a"])(dh,oh,lh,!1,null,"21ca2258",null),ph=uh.exports,mh={name:"Addons",data(){return{changeServiceLoading:!1,service:null,showConfirmationModal:!1,swiperOptions:{breakpoints:{350:{slidesPerView:2,spaceBetween:10},540:{slidesPerView:4,spaceBetween:10},780:{slidesPerView:5,spaceBetween:10}}}}},components:{ZLoading:Je,AddonCardContent:ph,ZHeading:vn,SwiperSlide:Vi,CardWithTag:fr,Swiper:Li,ServiceConfirmationModal:nr},mixins:[se],computed:{services(){var e,t,a,s;return(null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t[ae["b"].SERVICES])||void 0===a||null===(s=a.data)||void 0===s?void 0:s.length)>0?{data:this.$store.state[ae["b"].SERVICES].data}:{data:[]}},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""}},async mounted(){await this.initStateResources(ae["b"].SERVICES)},methods:{toggleConfirmationModal(e){this.service=e,this.$set(this.service,"_toggle",!e.isInstalled),this.showConfirmationModal=!0},closeModal(){this.$set(this.service,"_toggle",void 0),this.showConfirmationModal=!1}}},hh=mh,vh=Object(v["a"])(hh,nh,rh,!1,null,"73919668",null),gh=vh.exports,fh=function(){var e=this,t=e._self._c;return t("z-card",{staticClass:"px-5 py-5 flex items-center border"},[t("div",{staticClass:"max-w-sm"},[t("div",{staticClass:"font-bold"},[e._v(" "+e._s(e.$t("UpgradeYourPlanToUnlockYourBenefits"))+" ")]),t("div",{staticClass:"text-gray-500 text-xs"},[e._v(" "+e._s(e.$t("GhostOnBoardingBannerLowerText"))+" ")]),t("div",{staticClass:"flex justify-between"},[t("img",{staticClass:"w-20",attrs:{src:a("551b")}}),t("img",{staticClass:"w-20",attrs:{src:a("1eaa")}}),t("img",{staticClass:"w-20",attrs:{src:a("344a")}}),t("img",{staticClass:"w-20",attrs:{src:a("cc41")}})]),t("ZButton",{staticClass:"w-full uppercase",attrs:{size:"small"},on:{click:e.onClickUpgradeYourPlan}},[e._v(" "+e._s(e.$t("UpgradeYourPlan"))+" ")])],1)])},yh=[],bh={name:"GhostPlanPageBanner",components:{ZButton:R,ZCard:pe},methods:{onClickUpgradeYourPlan(){this.$router.push("/plan-details")}}},xh=bh,Ch=Object(v["a"])(xh,fh,yh,!1,null,"4983e724",null),wh=Ch.exports,_h={name:"Plan",mixins:[ni,ws,se,Hi],components:{GhostPlanPageBanner:wh,Addons:gh,ZHeading:vn,Usage:Sn,PinkHR:so,FlexiPlanBenefits:Wi,AutoRenewPrepaidPlanToggle:Cn,ZLoading:Je,ZButton:R,SubscriptionBreakdown:ih,ZTooltip:Bc,AutoPayToggle:ui,PlanSection:Zm,Services:cr,Offers:Er,ZTabItem:pa,ZTabs:ra,Swiper:Li,SwiperSlide:Vi,ZCard:pe},computed:{usage(){return this.$store.state[ae["b"].USAGE]},plans(){return this.$store.state[ae["b"].PLANS]},campaigns(){var e,t,a;return null!==(e=null===(t=this.$store.state[ae["b"].CAMPAIGNS].data)||void 0===t||null===(a=t.Campaigns)||void 0===a?void 0:a.Campaign.filter(e=>e.CampaignParams.StringParam.find(e=>"OfferType"===e.attributes.name&&("Generic"===e.$value||e.$value.includes("zos")))))&&void 0!==e?e:[]},ghostOrders(){var e,t,a,s;return null!==(e=null===(t=this.$store)||void 0===t||null===(a=t.state)||void 0===a||null===(s=a[ae["b"].GHOST_ORDERS])||void 0===s?void 0:s.data)&&void 0!==e?e:[]},commitments(){return this.$store.state[ae["b"].COMMITMENTS]},FilteredCommitments(){var e,t,a,s;return null!==(e=null===(t=this.$store.state[ae["b"].COMMITMENTS])||void 0===t||null===(a=t.data)||void 0===a||null===(s=a.commitment)||void 0===s?void 0:s.filter(e=>{var t;return!(null!==e&&void 0!==e&&null!==(t=e.description)&&void 0!==t&&t.includes("Discount"))}))&&void 0!==e?e:[]},services(){var e;return null===(e=this.$store)||void 0===e?void 0:e.state[ae["b"].SERVICES]},OTTs(){var e;return null===(e=this.$store)||void 0===e?void 0:e.state[ae["b"].OTTS]},usageNoDupes(){var e,t;if(null===(e=this.usage)||void 0===e||null===(t=e.data)||void 0===t||!t.length)return[];const a=[];for(const s of this.usage.data){const e=a.filter(e=>e.product===s.product);0===e.length&&a.push(s)}return a.filter(e=>!e.product.toLowerCase().includes("addon"))},monthlySub(){let e=0;return e=this.$store.getters.isPostpaid?this.$store.getters.getPostpaidPlanPrice:this.getMonthlySubPrepaid(),e},futureMonthlySub(){return this.getFutureMonthlySubPrepaid()},isMonthlySubLoading(){return this.services.loading||this.commitments.loading||this.plans.loading},isFlexi(){var e;const t=null===(e=this.plans)||void 0===e?void 0:e.data;return!!t&&(t.hasFlexiOffer||"FLEXIOFFER"===t.currentOfferCode)},hasCommitments(){return this.$store.getters.hasCommitments},advancedPaymentValue(){var e,t;const a=null===(e=this.plans.data)||void 0===e||null===(t=e.currentOfferBenefits)||void 0===t?void 0:t.find(e=>"BUNDLE"===e.type);return a?parseFloat(a.value):1},isPrepaidData(){return!this.$store.getters.isPostpaid&&"Data"===this.$store.getters.getBasicServiceType}},watch:{plans:{deep:!0,handler(){this.tabsKey=this.tabsKey+1}},campaigns:{deep:!0,handler(){this.tabsKey=this.tabsKey+1}},"$route.params":function(){this.checkExtrasRouteQuery()}},data(){return{pinkPriceClasses:"text-primary font-bold text-xl",infoIconClasses:"icon-Info text-gray-500 text-lg",activeTab:0,tabsKey:0,swiperOptions:{breakpoints:{350:{slidesPerView:2,spaceBetween:10},540:{slidesPerView:3,spaceBetween:10},780:{slidesPerView:5,spaceBetween:10}}}}},methods:{getIcon(e,t=!1){return"Data"===e?t?"icon-app-5g":"icon-Internet":"Voice"===e?"icon-Minutes":"SMS"===e||"SMS/MMS"===e||"MMS"===e?"icon-app-SMS-Myplan":""},getMonthlySubPrepaid(){var e,t,a;return null!==(e=null===(t=this.plans)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.currentOfferPrice)&&void 0!==e?e:0},getFutureMonthlySubPrepaid(){var e,t,a;return null!==(e=null===(t=this.plans)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.futureOrderPrice)&&void 0!==e?e:0},checkExtrasRouteQuery(){"extras"===this.$route.query.tab&&(this.onAddExtras(),this.$router.replace({query:null}))},onAddExtras(){const e=ae["a"].state.fixedScrollContainerIsActive?document.getElementById("app"):window,t=this.$refs.tabs?this.$refs.tabs.$el.scrollHeight:this.$refs.flexiServices?this.$refs.flexiServices.$el.scrollHeight:this.$refs.boosters.$el.scrollHeight;this.$nextTick(()=>{ae["a"].state.fixedScrollContainerIsActive?e.scrollTop=t:e.scrollTo({top:t,behavior:"smooth"})}),this.$store.getters.isPostpaid&&(this.activeTab=this.$refs.extras.tabIndex)},goToFlexiPage(e=!1){this.$router.push("/flexi-edit-plan"+(e?"?future=true":""))},daysTillEndDate(){const e=new Date,t=new Date(this.plans.data.currentOfferEndDate),a=Math.abs(t.getTime()-e.getTime());return Math.ceil(a/864e5)}},async beforeMount(){this.$store.getters.isPostpaid?await this.initStateResources(ae["b"].USAGE,ae["b"].PLANS,ae["b"].COMMITMENTS,ae["b"].SERVICES,ae["b"].OTTS):await this.initStateResources(ae["b"].PLANS,ae["b"].USAGE,ae["b"].SERVICES,ae["b"].COMMITMENTS,ae["b"].READY_MADE_PLANS),this.checkExtrasRouteQuery()}},Ah=_h,Sh=Object(v["a"])(Ah,am,sm,!1,null,null,null),Th=Sh.exports,kh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mt-3 md:mt-0 relative",class:{"md:mt-36":e.$store.state.windowScroll>35}},[t("div",{staticClass:"md:mx-auto md:max-w-6xl mt-4"},[t("div",{staticClass:"mx-6 flex justify-between items-center md:ps-6"},[t("h1",{staticClass:"font-extrabold text-3xl"},[e._v(e._s(e.$t("PrepaidAutopay")))]),t("router-link",{staticClass:"underline text-primary",attrs:{to:"/","exact-active-class":"active"}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("4915"),alt:""}})])],1)]),t("div",{staticClass:"md:grid md:grid-cols-3 md:mx-auto md:max-w-6xl"},[t("div",{staticClass:"mx-6 mb-6 xl:max-w-5xl md:col-span-2"},[t("div",{staticClass:"md:mb-3 text-start md:p-6"},[t("div",{staticClass:"mt-3 flex flex-col space-y-3"},["options"===e.viewState?t("z-card",{staticClass:"p-6 text-start",attrs:{overflow:"visible"}},[t("h2",{staticClass:"text-sm font-medium"},[e._v(e._s(e.$t("SelectedNumber")))]),t("p",{staticClass:"text-2xl"},[e._v(e._s(e.$store.state.msisdn))]),t("p",{staticClass:"mt-3"},[e._v(e._s(e.$t("PrepaidAutopayActivateMessage")))]),t("h2",{staticClass:"text-sm font-medium mt-6"},[e._v(e._s(e.$t("RechargeWhen")))]),t("p",{staticClass:"text-2xl font-bold"},[t("span",{staticClass:"text-green"},[e._v("KD")]),e._v(" 0.750")]),t("z-list-box",{staticClass:"mt-6",attrs:{"always-dropdown":"",label:e.$t("RechargeAmount")},on:{input:()=>e.monthlyLimit=null},model:{value:e.rechargeAmount,callback:function(t){e.rechargeAmount=t},expression:"rechargeAmount"}},[e._l(e.availableRechargeAmounts,(function(a){return t("z-list-box-item",{key:a.amount,attrs:{value:a.amount}},[t("div",{staticClass:"flex justify-between"},[t("div",{staticClass:"font-bold"},[e._v("KD "+e._s(a.amount))]),t("div",{staticClass:"text-gray-600"},[e._v(" "+e._s(e.$t("Validity"))+" "+e._s(a.validityDays)+" "+e._s(e.$tc("Days",a.validityDays))+" ")])])])})),t("z-list-box-item",{attrs:{value:-1}},[t("div",[e._v(e._s(e.$t("OtherAmount")))])])],2),-1===e.rechargeAmount?t("z-input",{staticClass:"mt-6",attrs:{label:e.$t("OtherAmount")},on:{input:()=>e.monthlyLimit=null},model:{value:e.otherAmountValue,callback:function(t){e.otherAmountValue=t},expression:"otherAmountValue"}}):e._e(),t("z-list-box",{staticClass:"mt-6",attrs:{"always-dropdown":"",label:e.$t("MonthlyLimit")},model:{value:e.monthlyLimit,callback:function(t){e.monthlyLimit=t},expression:"monthlyLimit"}},e._l(e.computedMonthlyLimits,(function(a){return t("z-list-box-item",{key:a,attrs:{value:a}},[e._v(" KD "+e._s(a)+" ")])})),1)],1):t("z-card",{staticClass:"p-6 text-start",attrs:{overflow:"visible"}},[t("div",{staticClass:"animate-fade-in-down mb-3"},[t("div",{staticClass:"relative"},[t("div",{staticClass:"absolute -top-2 end-0 flex"},[t("img",{staticClass:"ms-3 h-5 transition-all duration-500",class:{"filter grayscale opacity-70":"visa"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},attrs:{src:a("25de"),alt:"Visa Logo"}}),t("img",{staticClass:"ms-3 h-5 transition-all duration-500",class:{"filter grayscale opacity-70":"mastercard"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},attrs:{src:a("7f0d"),alt:"Master Card Logo"}}),t("img",{staticClass:"ms-3 h-5 transition-all duration-500",class:{"filter grayscale opacity-70":"amex"!==e.ccType&&e.ccType&&"unknown"!==e.ccType},attrs:{src:a("82f0"),alt:"American Express Logo"}})]),t("z-input",{directives:[{name:"cleave-credit",rawName:"v-cleave-credit",value:{onCreditCardTypeChanged:e.cardChanged},expression:"{ onCreditCardTypeChanged: cardChanged }"}],staticClass:"mb-3 flex-1 w-full",attrs:{direction:"ltr",label:e.$t("CardNumber"),"input-classes":"text-start","data-private":""},model:{value:e.cardNumber,callback:function(t){e.cardNumber=t},expression:"cardNumber"}})],1),t("div",{staticClass:"flex space-s-3"},[t("z-select",{staticClass:"w-full",attrs:{"data-private":"",label:e.$t("ExpiryMonth"),placeholder:"MM"},model:{value:e.cardDetails.expiryMonth,callback:function(t){e.$set(e.cardDetails,"expiryMonth",t)},expression:"cardDetails.expiryMonth"}},e._l(e.getExpiryMonths(),(function(a){return t("option",{key:a},[e._v(e._s(a))])})),0),t("z-select",{staticClass:"w-full",attrs:{"data-private":"",label:e.$t("ExpiryYear"),placeholder:"YY"},model:{value:e.cardDetails.expiryYear,callback:function(t){e.$set(e.cardDetails,"expiryYear",t)},expression:"cardDetails.expiryYear"}},e._l(e.getExpiryYears(),(function(a){return t("option",{key:a.value,domProps:{value:a.value}},[e._v(" "+e._s(a.label)+" ")])})),0)],1)])]),t("hr")],1)])]),t("div",{staticClass:"w-full bg-gray-50 p-3 text-center md:z-auto md:static md:inline-block md:border-t-0 md:mt-4"},[t("div",{staticClass:"md:rounded-md md:shadow-md overflow-hidden"},[t("div",{staticClass:"hidden md:flex justify-center px-3 py-5 header-bg text-white uppercase"},[e._v(" "+e._s(e.$t("AutoRechargeSummary"))+" ")]),t("div",{staticClass:"md:p-3"},[t("div",{staticClass:"flex justify-between pb-2"},[t("p",[e._v(e._s(e.$t("RechargeAmount")))]),t("p",{staticClass:"text-primary font-bold"},[e._v("KD "+e._s(e.finalRechargeAmount))])]),e.monthlyLimit?t("div",{staticClass:"flex justify-between pb-2"},[t("p",[e._v(e._s(e.$t("MonthlyLimit")))]),t("p",{staticClass:"text-primary font-bold"},[e._v("KD "+e._s(e.monthlyLimit))])]):e._e(),t("z-button",{staticClass:"block w-full",attrs:{disabled:e.isSubmitButtonDisabled},on:{click:function(t){return e.submitAutopay()}}},["options"===e.viewState?t("span",[e._v(e._s(e.$t("ContinueToPayment")))]):e._e(),"payment"===e.viewState?t("span",[e._v(" "+e._s(e.autopay.active?e.$t("Update"):e.$t("Enable"))+" "+e._s(e.$t("PrepaidAutopay"))+" ")]):e._e()]),"payment"===e.viewState?t("z-button",{staticClass:"block w-full mt-1",attrs:{borderless:""},on:{click:function(t){e.viewState="options"}}},[e._v(" "+e._s(e.$t("BackToRechargeOptions"))+" ")]):e._e(),"payment"===e.viewState?t("p",{staticClass:"text-xs",attrs:{role:"button"},on:{click:e.onClickTnC}},[e._v(" "+e._s(e.$t("ClickingAgreeTerms"))+" "),t("span",{staticClass:"font-bold text-primary underline"},[e._v(e._s(e.$t("TermsAndConditions")))])]):e._e()],1)])])]),t("z-loading",{attrs:{active:e.loading,"is-full-page":!1}}),t("z-modal",{attrs:{"can-confirm":"","confirm-label":"OK","on-confirm":e.resultOnClose,"on-cancel":e.resultOnClose,active:e.resultModalActive},on:{"update:active":function(t){e.resultModalActive=t}}},[t("div",{staticClass:"p-6"},[t("span",{staticClass:"text-primary text-6xl",class:{"icon-Info":!e.successResult,"icon-confirmation":e.successResult}}),t("p",{staticClass:"mt-4"},[e._v(e._s(e.autopayResultMessage))]),e.successResult?t("div",{staticClass:"mt-4 text-start"},[t("div",{staticClass:"flex justify-between border-b border-gray-500 pb-2 mb-2"},[t("p",[e._v(e._s(e.$t("RechargeWhen")))]),t("p",[e._v("KD 0.750")])]),t("div",{staticClass:"flex justify-between border-b border-gray-500 pb-2 mb-2"},[t("p",[e._v(e._s(e.$t("RechargeAmount")))]),t("p",[e._v("KD "+e._s(e.finalRechargeAmount))])]),t("div",{staticClass:"flex justify-between border-b border-gray-500 pb-2 mb-2"},[t("p",[e._v(e._s(e.$t("MonthlyLimit")))]),t("p",[e._v("KD "+e._s(e.monthlyLimit))])]),t("p",{staticClass:"text-zainPurple-light font-bold mt-6 mb-3"},[e._v(e._s(e.$t("PaymentDetails")))]),t("div",{staticClass:"flex justify-between"},[t("p",[e._v(e._s(e.$t("PaymentMethod")))]),t("span",{staticClass:"flex items-center"},["visa"===e.ccType?t("img",{staticClass:"me-2 h-3 inline-block",attrs:{src:a("25de"),alt:"Visa Logo"}}):"mastercard"===e.ccType?t("img",{staticClass:"me-2 h-3 inline-block",attrs:{src:a("7f0d"),alt:"Master Card Logo"}}):e._e(),e._v(" "+e._s(e.maskCard(e.cardNumber))+" ")])])]):e._e()])]),t("tn-c-popup",{attrs:{"confirm-label":e.$t("OK"),"on-confirm":e.onCancelTnCModal,"on-cancel":e.onCancelTnCModal},model:{value:e.TnCModalActive,callback:function(t){e.TnCModalActive=t},expression:"TnCModalActive"}})],1)},Ph=[],$h={name:"AutoRecharge",components:{TnCPopup:tr,ZSelect:A,ZModal:Be,ZLoading:Je,ZInput:H,ZButton:R,ZListBoxItem:Ze,ZListBox:ze,ZCard:pe},mixins:[wa],computed:{autopay(){var e,t;return null===(e=this.$store.state)||void 0===e||null===(t=e[ae["b"].AUTOPAY])||void 0===t?void 0:t.data},computedMonthlyLimits(){const e=[];for(let t=1;t<=5;t++)e.push(this.finalRechargeAmount*t);return e},finalRechargeAmount(){return this.rechargeAmount>0?this.rechargeAmount:this.otherAmountValue},isSubmitButtonDisabled(){return!1}},data(){return{availableRechargeAmounts:[{amount:1.5,validityDays:7},{amount:3,validityDays:15},{amount:5,validityDays:30},{amount:10,validityDays:90},{amount:20,validityDays:180},{amount:25,validityDays:365}],otherAmountValue:5,rechargeAmount:5,monthlyLimit:5,viewState:"options",resultModalActive:!1,autopayResultMessage:"",successResult:!1,loading:!1,cardDetails:{},cardNumber:"",TnCModalActive:!1}},methods:{async submitAutopay(){if("options"===this.viewState)this.viewState="payment";else{var e;this.loading=!0;const r={cardExpiry:`${this.cardDetails.expiryMonth}/${this.cardDetails.expiryYear}`,cardNumber:this.removeSpaces(this.cardNumber)},o={threshold:.75,monthlyLimit:this.monthlyLimit,amount:this.finalRechargeAmount};if(null!==(e=this.autopay)&&void 0!==e&&e.active)try{var t,a,s;let e=await this.$myZainApi(G["a"].autopayUpdatePrepaid,{maskedCardNumber:null===(t=this.autopay)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.maskedCardNumber,newCardInfo:r,autoRechargeInfo:o});null!==e&&void 0!==e&&null!==(s=e.data)&&void 0!==s&&s.success?(this.successResult=!0,this.autopayResultMessage=this.$t("AutoRechargeUpdatedSuccess"),this.$store.state["AutoPay"].isDirty=!0):(this.autopayResultMessage=this.$t("AutoRechargeUpdatedError"),this.successResult=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error updating auto recharge"}}))}catch(n){this.successResult=!1,this.autopayResultMessage=this.$t("AutoRechargeUpdatedError"),console.log(n),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error updating auto recharge"}})}finally{this.resultModalActive=!0}else try{var i;let e=await this.$myZainApi(G["a"].autopayRegisterPrepaid,{cardInfo:r,autoRechargeInfo:o});null!==e&&void 0!==e&&null!==(i=e.data)&&void 0!==i&&i.success?(this.successResult=!0,this.autopayResultMessage=this.$t("AutoRechargeEnabledSuccess"),this.$store.state["AutoPay"].isDirty=!0):(this.autopayResultMessage=this.$t("AutoRechargeEnabledError"),this.successResult=!1,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error activating auto recharge"}}))}catch(n){this.successResult=!1,this.autopayResultMessage=this.$t("AutoRechargeEnabledError"),console.log(n),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error activating auto recharge"}})}finally{this.resultModalActive=!0}this.loading=!1}},async getAutoPayData(){await this.$store.dispatch("fetchResource",{resource:ae["b"].AUTOPAY})},setupAutopay(){var e,t,a,s,i,n;this.cardNumber=null!==(e=null===(t=this.autopay)||void 0===t?void 0:t.maskedCardNumber)&&void 0!==e?e:"";const[r,o]=null===(a=this.autopay)||void 0===a||null===(s=a.cardExpiry)||void 0===s?void 0:s.split("/");this.cardDetails.expiryMonth=r,this.cardDetails.expiryYear=o,this.rechargeAmount=null===(i=this.autopay)||void 0===i?void 0:i.amount,this.monthlyLimit=null===(n=this.autopay)||void 0===n?void 0:n.monthlyLimit},resultOnClose(){this.successResult&&this.$router.push("/")},onClickTnC(){this.TnCModalActive=!0},onCancelTnCModal(){this.TnCModalActive=!1}},async mounted(){var e;this.loading=!0,await this.getAutoPayData(),null!==(e=this.autopay)&&void 0!==e&&e.active&&this.setupAutopay(),this.loading=!1}},Mh=$h,Oh=(a("3f9b"),Object(v["a"])(Mh,kh,Ph,!1,null,"c781aacc",null)),Nh=Oh.exports,Eh=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"max-w-3xl mx-2 my-6 md:mx-auto xl:max-w-5xl"},[t("z-tabs",{staticClass:"mt-3"},[t("z-tab-item",{attrs:{"label-classes":"text-sm",sequence:0,label:e.$t("BuildYourPlan")}},[e.planInfo&&e.$store.state.flexi.offerEnabled?t("div",{staticClass:"md:w-full max-w-3xl xl:max-w-5xl mx-2 md:mx-auto text-sm bg-white border border-gray-200 text-center m-3 p-3 rounded-lg"},[t("div",{staticClass:"flex justify-center items-center mb-3"},[t("span",{staticClass:"icon-Star pe-2",staticStyle:{color:"#0db7bb"}}),t("h1",{staticClass:"font-bold inline-block"},[e._v(e._s(e.cardHeader))])]),t("p",{staticClass:"text-gray-600"},[e._v(e._s(e.cardContent))])]):e._e(),t("customize-plan",{staticClass:"pt-3",attrs:{"is-future":e.isFuture()}})],1),t("z-tab-item",{staticClass:"py-3",attrs:{"label-classes":"text-sm",sequence:1,label:e.$t("ReadyMadePlans")}},[t("flexi-bundles",{attrs:{"is-future":e.isFuture(),"is-new-design":!0}})],1)],1)],1)])},Dh=[],Ih=function(){var e=this,t=e._self._c;return t("div",[t("z-loading",{attrs:{"background-classes":"bg-black bg-opacity-60","is-full-page":!0,active:e.flexiLoading},on:{"update:active":function(t){e.flexiLoading=t}}}),e.possibleSettings?t("div",{staticClass:"mb-14"},[t("div",{staticClass:"mb-6 justify-between rounded-xl border border-gray-100 bg-white py-2 text-center shadow-xl dark:bg-gray-700 dark:text-white"},[t("div",{staticClass:"flex cursor-pointer flex-row items-center justify-between px-4 py-2 text-start",on:{click:e.onClickCirclesCollapse}},[t("div",{staticClass:"font-bold"},[e._v(" "+e._s(e.$t("ChooseInternetMinutes"))+" ")]),t("div",{staticClass:"icon-right-arrow rotate-90 transform px-2 text-xl text-primary transition-transform",class:{"-rotate-90":e.showCircles}})]),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.showCircles&&e.computedSettings.filter(e=>"slider"===e.type&&e.value>0).length,expression:"\n !showCircles &&\n computedSettings.filter((x) => x.type === 'slider' && x.value > 0).length\n "}],staticClass:"px-4 text-sm text-gray-500 text-start"},[e._v(" "+e._s(e.$t("YouSelected"))+" "),t("strong",[e._v(" "+e._s(e.collapsedFlexiCirclesTextV2(e.computedSettings.filter(e=>"slider"===e.type)))+" ")])]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showCircles,expression:"showCircles"}],staticClass:"mt-3 mb-3 flex animate-fade-in-down flex-row justify-evenly"},e._l(e.computedSettings.filter(e=>"slider"===e.type),(function(a){return t("div",{key:a.name+"circle",staticClass:"flex flex-col justify-between"},[e.possibleSettings[a.name]?t("div",{staticClass:"mb-2 text-center text-sm"},[e._v(" "+e._s("ar"===e.$i18n.locale?e.possibleSettings[a.name][0].titleAr:e.possibleSettings[a.name][0].titleEn)+" ")]):e._e(),t("div",[t("flexi-circle-slider",{attrs:{disabled:"ONNETMINUTES"===a.name&&e.onNetDisabled,slider:a,"possible-settings":e.possibleSettings[a.name]},on:{index:t=>e.changeValue({field:a.name,newIndex:t})}})],1)])})),0)]),t("div",{staticClass:"mb-36 justify-between rounded-xl border border-gray-100 bg-white py-2 shadow-xl dark:bg-gray-700 dark:text-white"},[t("div",{staticClass:"flex cursor-pointer flex-row items-center justify-between px-4 py-2",on:{click:e.onClickAddonsCollapse}},[t("div",{staticClass:"font-bold"},[e._v(e._s(e.$t("ChooseExtrasAddons")))]),t("div",{staticClass:"icon-right-arrow rotate-90 transform px-2 text-xl text-primary transition-transform",class:{"-rotate-90":e.showAddons}})]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showAddons,expression:"showAddons"}],staticClass:"grid animate-fade-in-down grid-cols-1 sm:grid-cols-2 sm:gap-3"},[e._l(e.settings.filter(e=>"toggle"===e.type),(function(s,i){return t("div",{key:i,staticClass:"border-b"},[t("div",{staticClass:"flex h-full items-center p-2"},[t("div",{staticClass:"rounded-full border border-purple-800 border-opacity-40 p-2 ms-2 me-4"},["WHATSAPP"===s.name?t("img",{staticClass:"mx-auto w-6",attrs:{alt:"whatsapp",src:a("cde6")}}):e._e(),"SOCIALMEDIA"===s.name?t("img",{staticClass:"mx-auto w-6",attrs:{alt:"social media",src:a("2f6c")}}):e._e(),"YOUTUBE"===s.name?t("img",{staticClass:"mx-auto w-6",attrs:{alt:"youtube",src:a("1274")}}):e._e()]),t("div",{staticClass:"flex-1"},[t("div",{staticClass:"text-xs font-bold"},[e._v(" "+e._s(e.$t(s.name))+" ")]),e.possibleSettings?t("div",{staticClass:"text-xs text-gray-500 dark:text-gray-300"},[e._v(" KD "+e._s(e.possibleSettings[s.name][1].price)+" ")]):e._e()]),t("div",{staticClass:"me-6"},[t("z-toggle",{attrs:{value:1===s.value},on:{input:e=>s.value=e?1:0}})],1)])])})),e._l(e.internationalMinutes,(function(a,s){return t("div",{key:"international-minutes-"+s,class:{"border-b":se.onToggleInternationalMinutes(a,t)}})],1)])])}))],2),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.showAddons&&e.computedSettings.filter(e=>e.type.includes("toggle")&&e.value>0).length,expression:"\n !showAddons &&\n computedSettings.filter((x) => x.type.includes('toggle') && x.value > 0).length\n "}],staticClass:"px-4 text-sm text-gray-500 text-start"},[e._v(" "+e._s(e.$t("YouSelected"))+" "),t("strong",[e._v(" "+e._s(e.collapsedFlexiCirclesTextV2(e.computedSettings.filter(e=>e.type.includes("toggle"))))+" ")])])])]):e._e(),t("div",{staticClass:"fixed bottom-0 right-0 z-40 w-full animate-fade-in-up border-t border-gray-200 bg-white px-4 py-2 text-center"},[t("div",{staticClass:"max-w-xl mx-auto"},[t("div",{staticClass:"mb-1 items-center justify-between"},[t("div",{staticClass:"text-start flex items-center justify-between"},[t("div",{staticClass:"text-2xl font-black text-green"},[t("span",{staticClass:"font-bold"},[e._v("KD")]),e._v(" "+e._s(e.totalPrice())+" ")]),e.minPrice>e.totalPrice()?t("p",{staticClass:"text-xs text-danger"},[e._v(" "+e._s(e.$t("MinimumPlanPrice",{amount:5}))+" ")]):t("div",{staticClass:"text-xs"},[e._v(" "+e._s(e.$t("PlanDuration",{days:30}))+" ")])]),t("z-button",{staticClass:"block font-black uppercase w-full mx-auto max-w-2xl mt-1",attrs:{size:"small",disabled:e.minPrice>e.totalPrice()},on:{click:function(t){return e.onClickBuyPlan()}}},[e._v(" "+e._s(e.isFuture?e.$t("UpdateFuturePlan"):e.$t("BuyPlan"))+" ")])],1),e.prepaidManagement&&e.prepaidManagement.prepaidFooter&&e.prepaidManagement.prepaidFooter.enabled&&e.totalPrice()>=e.flexiPrice?t("div",{staticClass:"my-3 mx-auto max-w-2xl rounded-lg p-3 text-xs font-bold",staticStyle:{background:"#fdf3fa",color:"#51315f"}},[t("p",[e._v(" "+e._s(e.FlexiMessageGreaterThanKD)+" ")])]):e._e(),t("p",{staticClass:"my-2 text-center text-xs"},[e._v(" "+e._s(e.$t("ClickingAgreeTerms"))+" "),t("a",{staticClass:"font-bold text-primary underline",on:{click:function(t){e.TnCModalActive=!0}}},[e._v(e._s(e.$t("TermsAndConditions")))])])])]),t("tn-c-popup",{attrs:{"on-confirm":()=>this.TnCModalActive=!1,"on-cancel":()=>this.TnCModalActive=!1,"confirm-label":e.$t("OK")},model:{value:e.TnCModalActive,callback:function(t){e.TnCModalActive=t},expression:"TnCModalActive"}}),t("bottom-drawer",{model:{value:e.advPaymentDrawer,callback:function(t){e.advPaymentDrawer=t},expression:"advPaymentDrawer"}},[t("flexi-advanced-payment-content",{ref:"advPayment",attrs:{"total-price":e.totalPrice()},on:{clicked:e.onAdvPaymentBuyNow}})],1),t("bottom-drawer",{model:{value:e.showUpSellDrawer,callback:function(t){e.showUpSellDrawer=t},expression:"showUpSellDrawer"}},[t("flexi-upsell-offer-modal",{attrs:{message:e.upsellProps.message,title:e.upsellProps.title,"upsell-offer":e.upsellProps.offer,"plan-price":e.upsellProps.planPrice,"on-accept":e.upsellProps.onAccept,"on-reject":e.upsellProps.onReject}})],1)],1)},Bh=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rounded-full border border-purple-800 border-opacity-40 p-2 ms-2 me-4"},[t("img",{staticClass:"mx-auto w-6",attrs:{alt:"international-minutes",src:a("a70d")}})])}],Lh=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"inline-block transform -rotate-90 mb-2"},[t("span",{staticClass:"h-2 icon-right-arrow text-center text-sm md:text-2xl py-5 px-2",class:[e.isHighestSetting||e.disabled?"cursor-auto text-gray-200 pointer-events-none":"cursor-pointer text-teal","swiper-next-slide-"+e.slider.name]})]),t("z-circle-progress",{attrs:{value:e.disabled?100:e.slider.value/(e.possibleSettings.length-1)*100,"circle-color":"#0db7bb"}},[t("div",{staticClass:"select-none w-full"},[e.swiperOptions?t("swiper",{staticClass:"h-20 overflow-hidden",class:{"pointer-events-none":e.disabled},attrs:{options:e.swiperOptions}},e._l(e.possibleSettings,(function(a){return t("swiper-slide",{key:a.type+"-"+a.value,staticClass:"cursor-pointer"},[t("div",{staticClass:"h-20 flex flex-col justify-center"},[t("div",{staticClass:"font-extrabold text-black"},[a.isUnlimited||e.disabled?t("span",{staticStyle:{"line-height":"2rem"}},[e._v(" "+e._s(e.$t("Unlimited"))+" ")]):t("span",{staticClass:"text-2xl"},[e._v(" "+e._s(a.value)+" ")])]),a.isUnlimited||e.disabled?e._e():t("div",{staticClass:"text-gray-500 text-lg leading-5 h-6"},[e._v(" "+e._s("ar"===e.$i18n.locale?a.unitAr:a.unitEn)+" ")])])])})),1):e._e()],1)]),t("div",{staticClass:"inline-block transform rotate-90 mt-2"},[t("span",{staticClass:"icon-right-arrow text-center text-sm md:text-2xl py-5 px-2",class:[e.isLowestSetting||e.disabled?"cursor-auto text-gray-200 pointer-events-none":"cursor-pointer text-teal","swiper-prev-slide-"+e.slider.name]})])],1)},Rh=[],Uh={name:"FlexiCircleSlider",components:{SwiperSlide:Vi,Swiper:Li,ZCircleProgress:ye},props:{slider:{type:Object,required:!0},possibleSettings:{type:Array,required:!0},disabled:{type:Boolean,default:!1}},computed:{isHighestSetting(){return this.slider.value===this.possibleSettings.length-1},isLowestSetting(){return 0===this.slider.value}},data(){return{swiperOptions:null}},methods:{slideChange(e){this.$emit("index",e.activeIndex)}},mounted(){this.$nextTick(()=>{this.swiperOptions={initialSlide:this.slider.value,allowTouchMove:!1,direction:"vertical",pagination:{},slidesPerGroup:1,slidesPerView:1,spaceBetween:0,height:100,centeredSlides:!0,on:{slideChange:this.slideChange},navigation:{nextEl:".swiper-next-slide-"+this.slider.name,prevEl:".swiper-prev-slide-"+this.slider.name}}})}},zh=Uh,jh=Object(v["a"])(zh,Lh,Rh,!1,null,null,null),Fh=jh.exports,Vh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mx-auto max-w-lg p-2"},[t("div",{staticClass:"px-6 text-start"},[t("p",{staticClass:"text-lg mb-6 text-black text-center font-bold"},[e._v(" "+e._s(e.$t("CommitMorePayLess"))+" ")]),t("p",{staticClass:"text-start mb-3"},[e._v(" "+e._s(e.$t("SelectPlanDuration"))+" ")]),e._l(e.planFlexiAdvPaymentBundles,(function(a,s){return t("div",{key:"advPaymentBundle"+a.percent},[t("flexi-advanced-payment-card",{key:a.isSelected,staticClass:"mb-2.5",attrs:{months:parseFloat(a.value),percentage:parseFloat(a.percent),price:e.totalPrice,"is-selected":s===e.selectedIndex},on:{selected:function(t){return e.onAdvPaymentSelected(s)}}})],1)})),t("z-button",{staticClass:"block font-black uppercase w-full mx-auto max-w-2xl mt-5 mb-3",attrs:{size:"small"},on:{click:e.onClickBuyPlan}},[e._v(" "+e._s(e.$t("BuyPlan"))+" ")])],2)])},Hh=[],Gh=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cursor-pointer flex border-2 rounded py-2",class:{"border-primary":e.isSelected},on:{click:e.onClickCard}},[t("div",{staticClass:"flex items-center mx-3"},[e.isSelected?t("div",{staticClass:"rounded-xl border border-primary h-5 w-5 flex justify-center items-center"},[t("div",{staticClass:"rounded-xl bg-primary h-3 w-3"})]):t("div",{staticClass:"rounded-xl border h-5 w-5"})]),t("div",{staticClass:"flex-grow"},[t("p",{staticClass:"font-bold text-sm"},[e._v(" "+e._s(e.$tc("GetPlanForXMonths",e.months,{months:e.months}))+" ")]),t("div",{staticClass:"flex items-center"},[t("p",{staticClass:"text-gray-600 text-xs",class:{"line-through":e.percentage>0}},[e._v(" "+e._s(e.positionedPrice(e.price*e.months))+" ")]),e.percentage>0?t("p",{staticClass:"text-primary font-bold text-sm ms-4"},[e._v(" "+e._s(e.positionedPrice(e.price*e.months-e.price*e.months*(e.percentage/100)))+" ")]):e._e()]),t("div",{staticClass:"text-xs text-gray-600"},[e._v(" "+e._s(e.percentage>0?e.$tc("YouSaveXMonthly",0,{price:e.positionedPrice(e.price*(e.percentage/100))}):e.$t("PayFullPrice"))+" ")])]),t("div",{staticClass:"flex"},[t("div",[e.percentage>0?t("div",{staticClass:"text-2xs text-primary bg-pink-400 bg-opacity-10 font-bold p-1"},[e._v(" "+e._s(e.percentage)+"% "+e._s(e.$t("Off"))+" ")]):e._e()])])])},Zh=[],qh={name:"FlexiAdvancedPaymentCard",mixins:[ws],props:{months:{type:Number,default:1},percentage:{type:Number,default:0},price:{type:Number,default:1},isSelected:{type:Boolean,default:!1}},methods:{onClickCard(){this.$emit("selected")}}},Kh=qh,Yh=Object(v["a"])(Kh,Gh,Zh,!1,null,"49a63210",null),Wh=Yh.exports,Qh={name:"FlexiAdvancedPaymentContent",components:{ZButton:R,FlexiAdvancedPaymentCard:Wh},props:{totalPrice:{type:Number,default:0}},data(){return{selectedIndex:0}},computed:{planFlexiAdvPaymentBundles(){var e,t,a,s,i,n;let r=null!==(e=null===(t=this.$store)||void 0===t||null===(a=t.state[ae["b"].PLANS])||void 0===a||null===(s=a.data)||void 0===s||null===(i=s.possibleSettings)||void 0===i||null===(n=i.settings)||void 0===n?void 0:n.BUNDLE)&&void 0!==e?e:[];return r.length>0&&(r=r.map(e=>({...e,isSelected:!1})),r.sort((e,t)=>parseFloat(t.percent)-parseFloat(e.percent)),r[0].isSelected=!0),r}},methods:{onAdvPaymentSelected(e){this.selectedIndex=e},onClickBuyPlan(){this.$emit("clicked")}}},Xh=Qh,Jh=Object(v["a"])(Xh,Vh,Hh,!1,null,"002bba2a",null),ev=Jh.exports,tv=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],ref:"drawer",staticClass:"fixed z-50 inset-0 bg-black bg-opacity-40 h-screen overflow-hidden",attrs:{"aria-labelledby":"modal-title"}},[t("div",{staticClass:"h-full",on:{click:e.onCloseDrawer}}),t("div",{staticClass:"text-center"},[t("transition",{attrs:{name:"slide"}},[e.value?t("div",{staticClass:"bg-white w-full rounded-t-lg bottom-0 fixed",class:{"slide-leave-to":e.startLeaveAnimation}},[t("div",{staticClass:"text-right"},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("4915"),alt:"Cancel",role:"button"},on:{click:e.onCloseDrawer}})]),e._t("default")],2):e._e()])],1)])},av=[],sv={name:"BottomDrawer",props:{value:{type:Boolean,default:!1}},watch:{value(e){!0===e&&this.bsl.disableBodyScroll(this.$refs.drawer),!1===e&&this.bsl.clearAllBodyScrollLocks()}},beforeDestroy(){this.bsl.clearAllBodyScrollLocks()},data(){return{bsl:{disableBodyScroll:Ne["b"],clearAllBodyScrollLocks:Ne["a"]},startLeaveAnimation:!1}},methods:{onCloseDrawer(){this.startLeaveAnimation=!0,setTimeout(()=>{this.$emit("input",!1),this.startLeaveAnimation=!1},200)}}},iv=sv,nv=(a("3b3a"),Object(v["a"])(iv,tv,av,!1,null,"223da324",null)),rv=nv.exports,ov=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-6 max-w-lg mx-auto"},[t("p",{staticClass:"md:p-6 font-bold text-2xl"},[e._v(e._s(e.message))]),t("hr",{staticClass:"my-3"}),t("div",[t("p",{staticClass:"text-zainPurple font-bold text-start mb-2"},[e._v(e._s(e.$t("Summary")))]),t("div",{staticClass:"flex mb-1 items-center justify-between"},[t("p",[e._v(e._s(e.$t("MainPlanPrice")))]),t("p",{staticClass:"text-sm"},[e._v(e._s(e.$t("KD"))+" "+e._s(e.planPrice))])]),t("div",{staticClass:"flex mb-1 items-center justify-between"},[t("p",[e._v(e._s(e.title))]),t("p",{staticClass:"text-sm"},[e._v(e._s(e.$t("KD"))+" 1")])]),t("div",{staticClass:"flex mt-3 mb-3 items-center justify-between font-bold text-primary"},[t("p",[e._v(e._s(e.$t("Total")))]),t("p",{staticClass:"text-sm"},[e._v(e._s(e.$t("KD"))+" "+e._s(e.planPrice+1))])])]),t("div",{staticClass:"flex flex-col space-y-3 mt-4"},[t("z-button",{staticClass:"uppercase",on:{click:e.accept}},[e._v(e._s(e.$t("YesPlease")))]),t("z-button",{staticClass:"uppercase",attrs:{borderless:""},on:{click:e.reject}},[e._v(e._s(e.$t("NoThanks")))])],1)])},lv=[],cv={name:"FlexiUpsellOfferModal",props:{message:String,title:String,onAccept:Function,onReject:Function,planPrice:Number,upsellOffer:String},components:{ZButton:R},methods:{accept(){var e;this.onAccept(this.upsellOffer),null!==this&&void 0!==this&&null!==(e=this.$parent)&&void 0!==e&&e.close&&this.$parent.close()},reject(){var e;this.onReject(),null!==this&&void 0!==this&&null!==(e=this.$parent)&&void 0!==e&&e.close&&this.$parent.close()}}},dv=cv,uv=Object(v["a"])(dv,ov,lv,!1,null,null,null),pv=uv.exports,mv={name:"CustomizePlan",components:{FlexiUpsellOfferModal:pv,BottomDrawer:rv,FlexiAdvancedPaymentContent:ev,TnCPopup:tr,FlexiCircleSlider:Fh,ZLoading:Je,ZToggle:Ft,ZButton:R},mixins:[Rm,ws],computed:{plans(){return this.$store.state[ae["b"].PLANS]},possibleSettings(){var e,t,a,s,i,n;return this.isFuture?null===(e=this.plans)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.possibleSettings)||void 0===a?void 0:a.futureSettings:null===(s=this.plans)||void 0===s||null===(i=s.data)||void 0===i||null===(n=i.possibleSettings)||void 0===n?void 0:n.settings},currentOfferBenefits(){var e,t,a,s;return this.isFuture?null===(e=this.plans)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.futureOrderBenefits:null===(a=this.plans)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.currentOfferBenefits},computedSettings:{get(){var e,t,a;let s=this.settings.find(e=>"LOCALMINUTES"===e.name);return null!==(e=this.possibleSettings)&&void 0!==e&&null!==(t=e["LOCALMINUTES"])&&void 0!==t&&null!==(a=t[s.value])&&void 0!==a&&a.isUnlimited?this.setOnNetMinutes(!0):this.setOnNetMinutes(!1),this.settings.map((e,t)=>{let a="ONNETMINUTES"===e.name&&this.onNetDisabled?0:e.value,s="ONNETMINUTES"===e.name&&this.onNetDisabled;return a<0&&(a=this.baseSettings[t].value),{...e,value:a,disabled:s}})}},computedSelectedPlan(){return this.computedSettings.map(e=>{var t;return{[e.name]:null===(t=this.possibleSettings)||void 0===t?void 0:t[e.name][e.value]}}).reduce((e,t)=>{const a=Object.entries(t)[0];return{...e,[a[0]]:a[1]}},{})},prepaidManagement(){var e,t,a;return null===(e=this.$store.state[ae["b"].PREPAID_MANAGEMENT])||void 0===e||null===(t=e.data)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.attributes},flexiPrice(){var e,t;return null===(e=this.prepaidManagement)||void 0===e||null===(t=e.prepaidFooter)||void 0===t?void 0:t.price},FlexiMessageGreaterThanKD(){var e,t,a,s,i,n,r,o;return this.isFuture?"ar"===this.$i18n.locale?null===(e=this.prepaidManagement)||void 0===e||null===(t=e.prepaidFooter)||void 0===t?void 0:t.futurePlanAr:null===(a=this.prepaidManagement)||void 0===a||null===(s=a.prepaidFooter)||void 0===s?void 0:s.futurePlanEn:"ar"===this.$i18n.locale?null===(i=this.prepaidManagement)||void 0===i||null===(n=i.prepaidFooter)||void 0===n?void 0:n.abovePriceAr:null===(r=this.prepaidManagement)||void 0===r||null===(o=r.prepaidFooter)||void 0===o?void 0:o.abovePriceEn}},data(){return{settings:[{name:"DATA",value:0,type:"slider"},{name:"ONNETMINUTES",value:0,type:"slider"},{name:"LOCALMINUTES",value:0,type:"slider"},{name:"INTERNATIONALMINUTES",value:0,type:"slider-toggle"},{name:"WHATSAPP",value:0,type:"toggle"},{name:"SOCIALMEDIA",value:0,type:"toggle"},{name:"YOUTUBE",value:0,type:"toggle"}],baseSettings:[{name:"DATA",value:2,type:"slider"},{name:"ONNETMINUTES",value:2,type:"slider"},{name:"LOCALMINUTES",value:1,type:"slider"},{name:"INTERNATIONALMINUTES",value:0,type:"slider-toggle"},{name:"WHATSAPP",value:0,type:"toggle"},{name:"SOCIALMEDIA",value:0,type:"toggle"},{name:"YOUTUBE",value:0,type:"toggle"}],internationalMinutes:[],minPrice:5,showCircles:!0,showAddons:!0,onNetDisabled:!1,TnCModalActive:!1,advPaymentDrawer:!1,advPaymentBundle:{}}},methods:{changeValue({field:e,newIndex:t}){const a=this.settings.find(t=>t.name===e);if("ONNETMINUTES"===e){const e="LOCALMINUTES",t=this.settings.find(t=>t.name===e);if(t.value===this.possibleSettings[e].length-1)return}a.value=t},setCurrentOffer(){var e;if((null===(e=this.currentOfferBenefits)||void 0===e?void 0:e.length)>0)for(let t of this.currentOfferBenefits){const e=t,a=e.type.split(" ").join("").split("-").join(""),s=this.possibleSettings[a].findIndex(t=>t.value===Number(e.value)),i=this.settings.find(e=>e.name===a);i&&(i.value=s)}else this.settings=JSON.parse(JSON.stringify(this.baseSettings));this.setInternationalMinutes()},onClickCirclesCollapse(){this.showCircles=!this.showCircles},onClickAddonsCollapse(){this.showAddons=!this.showAddons},onToggleInternationalMinutes(e,t){for(let i of this.internationalMinutes)i.isToggled=!1;const a=this.internationalMinutes.findIndex(t=>t.value===e.value);this.internationalMinutes[a].isToggled=t;const s=this.settings.find(e=>"INTERNATIONALMINUTES"===e.name);s.value=t?a+1:0},setOnNetMinutes(e){this.onNetDisabled=e},collapsedFlexiCirclesTextV2(e){let t="";const a=e.filter(e=>e.value);for(let s=0;s"INTERNATIONALMINUTES"===e.name);this.internationalMinutes=this.possibleSettings["INTERNATIONALMINUTES"].filter((e,t)=>t>0).map((t,a)=>({...t,isToggled:a+1===e.value}))},totalPrice(){return Object.values(this.computedSelectedPlan).map(e=>{var t;return Number(null!==(t=null===e||void 0===e?void 0:e.price)&&void 0!==t?t:0)}).reduce((e,t)=>e+t,0)},onClickBuyPlan(){ja["a"].FlexiAdvancedPayment?this.advPaymentDrawer=!0:this.onBuyPlan({...this.computedSelectedPlan},"CUSTOM")},onAdvPaymentBuyNow(){this.advPaymentBundle=this.$refs.advPayment.planFlexiAdvPaymentBundles[this.$refs.advPayment.selectedIndex],this.advPaymentDrawer=!1,this.onBuyPlan({...this.computedSelectedPlan,BUNDLE:this.advPaymentBundle},"CUSTOM")},flexiAdvancedPaymentIsActive(){return ja["a"].FlexiAdvancedPayment}},watch:{"plans.isDirty":function(e){e||this.setCurrentOffer()},possibleSettings(){this.setInternationalMinutes()}},mounted(){this.setInternationalMinutes(),this.setCurrentOffer()}},hv=mv,vv=Object(v["a"])(hv,Ih,Bh,!1,null,null,null),gv=vv.exports,fv=function(){var e=this,t=e._self._c;return t("div",[t("div",[e._l(e.computedBundles,(function(a,s){return t("div",{key:s,staticClass:"sm:hidden flex flex-col justify-around items-center"},[t("bundle-card-content",{attrs:{bundle:a,"bundle-text":e.computedAdditionalText[s],"is-new-design":!0,"additional-text":e.computedAdditionalText[s]},on:{"bundle-chosen":e.selectBundle}})],1)})),t("swiper",{staticClass:"hidden sm:block",attrs:{options:e.newSwiperOptions}},e._l(e.computedBundles,(function(a,s){return t("swiper-slide",{key:s,staticClass:"mb-10"},[t("bundle-card-content",{attrs:{bundle:a,"bundle-text":e.computedAdditionalText[s],"is-new-design":!0,"additional-text":e.computedAdditionalText[s]},on:{"bundle-chosen":e.selectBundle}})],1)})),1)],2),t("bottom-drawer",{model:{value:e.advPaymentPopup,callback:function(t){e.advPaymentPopup=t},expression:"advPaymentPopup"}},[t("flexi-advanced-payment-content",{ref:"advPayment",attrs:{"total-price":e.totalPrice(e.selectedPlan)},on:{clicked:e.onAdvPaymentBuyNow}})],1),t("bottom-drawer",{model:{value:e.showUpSellDrawer,callback:function(t){e.showUpSellDrawer=t},expression:"showUpSellDrawer"}},[t("flexi-upsell-offer-modal",{attrs:{message:e.upsellProps.message,title:e.upsellProps.title,"upsell-offer":e.upsellProps.offer,"plan-price":e.upsellProps.planPrice,"on-accept":e.upsellProps.onAccept,"on-reject":e.upsellProps.onReject}})],1)],1)},yv=[],bv={name:"FlexiBundles",mixins:[Rm,Hi,ws],components:{FlexiUpsellOfferModal:pv,FlexiAdvancedPaymentContent:ev,BottomDrawer:rv,BundleCardContent:Fm,CardWithTag:fr,FlexiBenefits:Cm,ZLoading:Je,SwiperSlide:Vi,Swiper:Li},props:{isFuture:{type:Boolean,default:!1},isNewDesign:{type:Boolean,default:!1},color:{type:String,default:"purple-900"}},computed:{isEnglishLang(){return"en"===this.$i18n.locale},plans(){return this.$store.state[ae["b"].PLANS]},prepaidManagementReadyMadePlans(){var e,t,a,s,i;return null!==(e=null===(t=this.$store.state[ae["b"].PREPAID_MANAGEMENT])||void 0===t||null===(a=t.data)||void 0===a||null===(s=a[1])||void 0===s||null===(i=s.attributes)||void 0===i?void 0:i.readyMadePlan)&&void 0!==e?e:[]},prepaidManagementReadyMadePlansMapped(){return this.prepaidManagementReadyMadePlans.map(e=>{const t=[{Index:e.internetIndex,Name:"DATA"},{Index:e.onnetMinutesIndex,Name:"ONNETMINUTES"},{Index:e.localMinutesIndex,Name:"LOCALMINUTES"},{Index:e.internationalMinutesIndex,Name:"INTERNATIONALMINUTES"},{Index:e.unlimitedWhatsapp?1:0,Name:"WHATSAPP"},{Index:e.unlimitedYoutube?1:0,Name:"YOUTUBE"},{Index:e.nightInternet?1:0,Name:"NIGHT"},{Index:e.unlimitedSocialMedia?1:0,Name:"SOCIALMEDIA"}];return e.offerPrice&&t.push({Index:e.offerPrice,Name:"OFFERPRICE"}),t})},possibleSettings(){var e,t,a;return null===(e=this.plans)||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.possibleSettings)||void 0===a?void 0:a.readyMadePlansSettings},computedBundles(){var e;let t=this;return null===(e=this.prepaidManagementReadyMadePlansMapped)||void 0===e?void 0:e.map(e=>e.map(e=>{var a,s,i;return null!==(a=null===t||void 0===t||null===(s=t.possibleSettings)||void 0===s||null===(i=s[null===e||void 0===e?void 0:e.Name])||void 0===i?void 0:i[null===e||void 0===e?void 0:e.Index])&&void 0!==a?a:e}))},computedAdditionalText(){return this.prepaidManagementReadyMadePlans.map(e=>({showText:e.additionalTextEnabled,additionalTextAr:e.additionalTextAr,additionalTextEn:e.additionalTextEn}))},computedSelectedPlan(){return this.selectedPlan}},data(){return{newSwiperOptions:{slidesPerGroup:1,slidesOffsetAfter:50,breakpoints:{320:{slidesPerView:1.6,spaceBetween:20},600:{slidesPerView:2.3,spaceBetween:30},900:{slidesPerView:3.3,spaceBetween:60}}},swiperOptions:{slidesPerView:1,slidesPerGroup:1,breakpoints:{320:{slidesPerView:1.6,spaceBetween:20},600:{slidesPerView:2.3,spaceBetween:30},900:{slidesPerView:3.3,spaceBetween:40}}},advPaymentPopup:!1,advPaymentBundle:{}}},methods:{totalPrice(e){if(e){const t=Object.values(e),a=(null===t||void 0===t?void 0:t.length)>0?null===t||void 0===t?void 0:t.findIndex(e=>"OFFERPRICE"===e.Name):-1;return a>-1?e[a].Index:Object.values(e).map(e=>{var t;return Number(null!==(t=null===e||void 0===e?void 0:e.price)&&void 0!==t?t:0)}).reduce((e,t)=>e+t,0)}},getBundlePrice(e){if(e){const t=(null===e||void 0===e?void 0:e.length)>0?null===e||void 0===e?void 0:e.findIndex(e=>"OFFERPRICE"===e.Name):-1;return t>-1?e[t].Index:Object.values(e).map(e=>{var t;return Number(null!==(t=null===e||void 0===e?void 0:e.price)&&void 0!==t?t:0)}).reduce((e,t)=>e+t,0)}},selectBundle(e){this.selectedPlan=e,ja["a"].FlexiAdvancedPayment?this.advPaymentPopup=!0:this.onBuyPlan({...this.selectedPlan,[Object.keys(this.selectedPlan).length]:this.advPaymentBundle},"READY MADE")},onAdvPaymentBuyNow(){this.advPaymentBundle=this.$refs.advPayment.planFlexiAdvPaymentBundles[this.$refs.advPayment.selectedIndex],this.advPaymentPopup=!1,this.onBuyPlan({...this.selectedPlan,[Object.keys(this.selectedPlan).length]:this.advPaymentBundle},"READY MADE")}}},xv=bv,Cv=Object(v["a"])(xv,fv,yv,!1,null,null,null),wv=Cv.exports,_v={name:"FlexiEditPlan",components:{FlexiBundles:wv,ZTabItem:pa,ZTabs:ra,CustomizePlan:gv},mixins:[se],computed:{planInfo(){var e,t;return null===(e=this.$store)||void 0===e||null===(t=e.state[ae["b"].PLANS])||void 0===t?void 0:t.data},prepaidManagement(){var e,t,a;return null===(e=this.$store.state[ae["b"].PREPAID_MANAGEMENT])||void 0===e||null===(t=e.data)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.attributes},cardHeader(){var e,t,a,s,i,n,r,o;return this.isFuture()?"ar"===this.$i18n.locale?null===(e=this.prepaidManagement)||void 0===e||null===(t=e.prepaidOffer)||void 0===t?void 0:t.futureHeaderAr:null===(a=this.prepaidManagement)||void 0===a||null===(s=a.prepaidOffer)||void 0===s?void 0:s.futureHeaderEn:"ar"===this.$i18n.locale?null===(i=this.prepaidManagement)||void 0===i||null===(n=i.prepaidOffer)||void 0===n?void 0:n.normalHeaderAr:null===(r=this.prepaidManagement)||void 0===r||null===(o=r.prepaidOffer)||void 0===o?void 0:o.normalHeaderEn},cardContent(){var e,t,a,s,i,n,r,o;return this.isFuture()?"ar"===this.$i18n.locale?null===(e=this.prepaidManagement)||void 0===e||null===(t=e.prepaidOffer)||void 0===t?void 0:t.futureContentAr:null===(a=this.prepaidManagement)||void 0===a||null===(s=a.prepaidOffer)||void 0===s?void 0:s.futureContentEn:"ar"===this.$i18n.locale?null===(i=this.prepaidManagement)||void 0===i||null===(n=i.prepaidOffer)||void 0===n?void 0:n.normalContentAr:null===(r=this.prepaidManagement)||void 0===r||null===(o=r.prepaidOffer)||void 0===o?void 0:o.normalContentEn}},async beforeMount(){await this.initStateResources(ae["b"].PLANS,ae["b"].READY_MADE_PLANS,ae["b"].PREPAID_MANAGEMENT)},methods:{isFuture(){return"true"===this.$route.query.future}}},Av=_v,Sv=Object(v["a"])(Av,Eh,Dh,!1,null,"607a10d8",null),Tv=Sv.exports,kv=function(){var e=this,t=e._self._c;return t("div",[e.isValidHistoryType?t("div",[t("div",{staticClass:"max-w-3xl mx-2 mt-10 md:mx-auto xl:max-w-5xl"},[t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.months,(function(a){return t("swiper-slide",{key:a.name.en,staticClass:"mb-2"},[t("z-card",{staticClass:"p-5 w-24 h-24 flex flex-col justify-center items-center cursor-pointer",class:a.value===e.monthValue?"border-2 border-primary":"",attrs:{shadow:"shadow-md"},nativeOn:{click:function(t){return e.onClickMonth(a)}}},[t("call-history-calender-icon",{attrs:{title:a.name[e.$i18n.locale],"month-number":a.value+1,"title-classes":a.value===e.monthValue?"text-black font-bold":"text-gray-500"}})],1)],1)})),1)],1),t("div",{staticClass:"bg-gray-200 dark:bg-gray-700 mt-10 p-3 max-w-3xl xl:max-w-5xl mx-auto flex justify-between"},[t("div",[e._v(e._s("calls"===e.historyType?e.$t("CallsUsage"):e.$t("SMSUsage"))+" - "+e._s(e.selectedMonth.name[e.$i18n.locale])+", "+e._s(e.selectedMonth.year)+" ")]),t("div",{staticClass:"text-primary icon-filter-mobie my-auto cursor-pointer",attrs:{role:"button"},on:{click:e.showFilterModal}})]),t("div",{staticClass:"w-full relative screen min-h-screen-25 md:min-h-screen-50"},[t("z-loading",{staticClass:"max-w-3xl xl:max-w-5xl",attrs:{"is-full-page":!1,"has-background":!1,active:e.callHistory.loading},on:{"update:active":function(t){return e.$set(e.callHistory,"loading",t)}}}),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.callHistory.loading,expression:"!callHistory.loading"}],staticClass:"max-w-3xl xl:max-w-5xl mx-auto"},[e.needOTP?e._e():t("div",e._l(e.callHistoryFiltered,(function(a,s){return t("div",{key:"call"+s},[t("div",{staticClass:"grid grid-cols-8"},[t("div",{staticClass:"col-span-1 m-auto"},[t("span",{staticClass:"text-3xl",class:e.getHistoryIcon(a)})]),t("div",{staticClass:"col-span-5"},[t("div",[e._v(e._s(a.outgoing?a.B:a.A))]),t("div",{staticClass:"text-sm text-gray-500"},[e._v(e._s(e.$t(e.getCallSubText(a))))]),t("div",{staticClass:"text-sm text-gray-500"},[e._v(e._s(e.getCallDuration(a)))])]),t("div",{staticClass:"col-span-2 my-auto"},[e._v(" "+e._s(e.positionedPrice(a.M))+" ")])]),t("hr")])})),0),e.needOTP?t("div",{staticClass:"flex justify-center items-center h-56"}):0===e.callHistoryFiltered.length?t("div",{staticClass:"flex justify-center items-center h-56"},[e._v(" "+e._s(e.$t("NoHistoryFound"))+" ")]):e._e()])],1)]):e._e(),t("z-modal",{attrs:{active:e.isFilterModalShown,"can-cancel":""},on:{"update:active":function(t){e.isFilterModalShown=t}}},[t("div",{staticClass:"pt-14"},e._l(e.filters,(function(a){return t("div",{key:"filter-"+a.text},[t("div",{staticClass:"grid-cols-8 grid p-2 flex items-center"},[t("div",{staticClass:"col-span-1 m-auto"},[t("span",{staticClass:"p-2 text-2xl",class:e.getHistoryIcon(a)})]),t("div",{staticClass:"text-start text-sm ps-3 col-span-6"},[e._v(" "+e._s(e.$t(a.text))+" ")]),t("div",{staticClass:"col-span-1 my-auto"},[t("z-check-box",{model:{value:a.selected,callback:function(t){e.$set(a,"selected",t)},expression:"filter.selected"}})],1)]),t("hr")])})),0),t("z-button",{staticClass:"m-3 w-52",attrs:{outlined:""},on:{click:e.onClickApplyFilters}},[t("p",{staticClass:"uppercase font-bold text-sm"},[e._v(e._s(e.$t("ApplyFilters")))])])],1),t("z-modal",{attrs:{active:e.isOTPModalShown,"can-cancel":""},on:{"update:active":function(t){e.isOTPModalShown=t}}},[t("div",{staticClass:"px-4 pt-10"},[e.isOTPSent?t("div",[t("div",{staticClass:"my-4 font-bold"},[e._v(e._s(e.$t("VerifyByOTP")))]),t("div",[e._v(e._s(e.$tc("OTPSent",0,{msisdn:e.$store.state.msisdn})))]),t("validation-observer",{ref:"otpInput"},[t("validation-provider",{attrs:{name:"OTP",mode:"eager",rules:"required|length:4"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0]||e.otpError,type:{danger:a[0]||e.otpError}}},[t("z-input",{staticClass:"w-full",attrs:{outlined:"","input-type":"number","input-classes":"text-center italic",placeholder:e.$t("4DigitsOTP"),"max-length":"4"},on:{input:e.clearOTPError},model:{value:e.otpInput,callback:function(t){e.otpInput=t},expression:"otpInput"}})],1)]}}])})],1),t("div",{staticClass:"flex justify-end items-end mt-4"},[t("div",{staticClass:"relative text-sm text-secondary underline",attrs:{role:"button"},on:{click:e.onClickSendOTP}},[e._v(" "+e._s(e.otpLoading?e.$t("SendingOTP"):e.$t("ResendOTP"))+" ")])]),t("div",{staticClass:"relative h-20"},[t("z-button",{staticClass:"w-full my-4",attrs:{outlined:""},on:{click:e.onClickVerify}},[e._v(" "+e._s(e.$t("Verify"))+" ")]),t("z-loading",{directives:[{name:"show",rawName:"v-show",value:e.verifyLoading,expression:"verifyLoading"}],attrs:{"is-full-page":!1,active:e.verifyLoading},on:{"update:active":function(t){e.verifyLoading=t}}})],1)],1):t("div",[t("div",{staticClass:"my-4 font-bold"},[e._v(e._s(e.$t("VerificationRequired")))]),t("div",[e._v(e._s(e.$t("PleaseVerifyOTPCallHistory")))]),t("div",{staticClass:"font-bold"},[e._v(e._s(e.$store.state.msisdn))]),t("div",[e._v(e._s(e.$t("AccessWillBeGrantedFor72HoursOnly")))]),t("div",{staticClass:"relative h-20"},[t("z-button",{directives:[{name:"show",rawName:"v-show",value:!e.otpLoading,expression:"!otpLoading"}],staticClass:"my-4 relative",attrs:{outlined:""},on:{click:e.onClickSendOTP}},[t("span",{staticClass:"uppercase font-bold"},[e._v(e._s(e.$t("SendOTP")))])]),t("z-loading",{directives:[{name:"show",rawName:"v-show",value:e.otpLoading,expression:"otpLoading"}],attrs:{"is-full-page":!1,active:e.otpLoading},on:{"update:active":function(t){e.otpLoading=t}}})],1)])])])],1)},Pv=[],$v=function(){var e=this,t=e._self._c;return t("label",{staticClass:"inline-block"},[e.$slots.default?t("span",{staticClass:"text-black font-medium dark:text-white me-2"},[e._t("default")],2):e._e(),t("span",{staticClass:"relative inline-block align-middle select-none"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.computedValue,expression:"computedValue"}],class:[{["text-"+e.color]:!0},{"w-5 h-5":"small"===e.size},{"w-7 h-7":"medium"===e.size},{"rounded-full":e.rounded}],attrs:{type:"checkbox",name:"toggle"},domProps:{checked:Array.isArray(e.computedValue)?e._i(e.computedValue,null)>-1:e.computedValue},on:{input:e.onToggle,click:function(e){e.stopPropagation()},change:function(t){var a=e.computedValue,s=t.target,i=!!s.checked;if(Array.isArray(a)){var n=null,r=e._i(a,n);s.checked?r<0&&(e.computedValue=a.concat([n])):r>-1&&(e.computedValue=a.slice(0,r).concat(a.slice(r+1)))}else e.computedValue=i}}})])])},Mv=[],Ov={name:"ZCheckBox",props:{value:{type:Boolean},size:{type:String,default:()=>"medium"},color:{type:String,default:()=>"secondary"},rounded:{type:Boolean,default:!0}},data:()=>({localValue:!1,uuid:null}),methods:{onToggle(e){this.$emit("input",e.target.checked)}},watch:{value(e){this.localValue=e}},computed:{computedValue:{get(){return this.localValue},set(e){this.localValue=e,this.$emit("input",e)}}},mounted(){this.localValue=this.value},beforeCreate:function(){this.uuid=Math.random().toString(36).substr(2,12)}},Nv=Ov,Ev=Object(v["a"])(Nv,$v,Mv,!1,null,"78e90664",null),Dv=Ev.exports,Iv={name:"CallHistory",components:{ZField:ya,ZInput:H,ZCheckBox:Dv,ZButton:R,ZModal:Be,ZLoading:Je,ZCard:pe,CallHistoryCalenderIcon:jp,SwiperSlide:Vi,Swiper:Li,ValidationObserver:re["a"],ValidationProvider:re["b"]},mixins:[ni,ws],watch:{monthValue(){this.fetchData({noCache:!0})},callHistory:{handler(e,t){e.isDirty&&!t.isDirty&&this.fetchData({noCache:!1})},deep:!0}},computed:{callHistory(){var e,t;return null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t?void 0:t[ae["b"].CALL_HISTORY]},callHistoryFiltered(){var e;const t=null===(e=this.callHistory)||void 0===e?void 0:e.data;if(!this.isValidHistoryType())return[];if(!t||0===t.length)return[];let a=t[this.historyType];const s=this.filters.filter(e=>e.applied);return s.length>0&&(a=a.filter(e=>this.checkWithinFilter(e,s))),a.slice().reverse()},monthValue(){var e,t;return(null===(e=this.$route)||void 0===e||null===(t=e.params)||void 0===t?void 0:t.monthValue)-1},historyType(){var e,t;return null===(e=this.$route)||void 0===e||null===(t=e.query)||void 0===t?void 0:t.historyType},selectedMonth(){return this.months.find(e=>e.value===this.monthValue)}},data(){return{swiperOptions:{freeMode:{enabled:!0,sticky:!0},slidesPerView:3,slidesPerGroup:3,grabCursor:!1,pagination:{},breakpoints:{450:{slidesPerView:4,spaceBetween:10,enabled:!0},550:{slidesPerView:5,spaceBetween:10,enabled:!0},680:{slidesPerView:6,spaceBetween:30,enabled:!1}}},selectedFilter:!1,months:[],filters:[{type:"local",outgoing:!1,text:"IncomingLocal",selected:!1,applied:!1},{type:"local",outgoing:!0,text:"OutgoingLocal",selected:!1,applied:!1},{type:"international",outgoing:!1,text:"IncomingInternational",selected:!1,applied:!1},{type:"international",outgoing:!0,text:"OutgoingInternational",selected:!1,applied:!1},{type:"roaming",outgoing:!1,text:"IncomingRoaming",selected:!1,applied:!1},{type:"roaming",outgoing:!0,text:"OutgoingRoaming",selected:!1,applied:!1}],historyTypes:["calls","sms"],isFilterModalShown:!1,isOTPModalShown:!1,needOTP:!1,otpLoading:!1,otpValue:localStorage.getItem("callHistoryOTPValue"),isOTPSent:!1,otpInput:"",verifyLoading:!1,otpError:""}},methods:{getMonthFromTo(e){let t=ba["DateTime"].now();e+=1;let a=e===t.month;return t=t.set({year:e>t.month?t.year-1:t.year,month:e}),{from:t.startOf("month").toISO({includeOffset:!1}),to:a?t.toISO({includeOffset:!1}):t.endOf("month").toISO({includeOffset:!1})}},onClickMonth(e){this.monthValue===e.value||this.callHistory.loading||this.$router.push(`/call-history/${e.value+1}?historyType=${this.historyType}`)},getCallSubText(e){let t=e.outgoing?"Outgoing":"Incoming";return t=t.concat(`${e.type[0].toUpperCase()+e.type.slice(1)}${"calls"===this.historyType?"Calls":"SMS"}`),t},getCallDuration(e){const t=this.toTwoDigits(e.D/3600|0),a=this.toTwoDigits(e.D/60|0),s=this.toTwoDigits(e.D%60|0),i=this.formatDate(e.T,"en"===this.$i18n.locale?"LLL dd, HH:mm":"HH:mm ,dd LLL");return`${t}h${a}m${s}s, ${i}`},showFilterModal(){this.filters.forEach(e=>e.selected=e.applied),this.isFilterModalShown=!0},onClickApplyFilters(){this.isFilterModalShown=!1,this.filters.forEach(e=>e.applied=e.selected)},toTwoDigits(e){return("0"+e).slice(-2)},isValidHistoryType(){return this.historyTypes.includes(this.historyType)},async onClickSendOTP(){this.otpLoading||(this.otpLoading=!0,await G["a"].validateCallHistory({msisdn:this.$store.state.msisdn,contractNumber:this.$store.getters.getContractNumber,locale:this.$i18n.locale}).then(()=>{this.isOTPSent=!0,this.otpError="",this.otpLoading=!1}).catch(()=>{this.otpLoading=!1}))},async onClickVerify(){var e,t;const a=await(null===(e=this.$refs)||void 0===e||null===(t=e.otpInput)||void 0===t?void 0:t.validate());a&&(this.verifyLoading=!0,this.otpValue=localStorage.setItem("callHistoryOTPValue",this.otpInput),await this.fetchData({noCache:this.callHistory.error}),this.verifyLoading=!1)},checkWithinFilter(e,t){let a=!1;return t.forEach(t=>{if(t.outgoing===e.outgoing&&t.type===e.type)return a=!0}),a},clearOTPError(){this.otpError=""},getHistoryIcon(e){return"local"!==e.type||e.outgoing?"local"===e.type&&e.outgoing?"calls"===this.historyType?"icon-app-Outgoing-Calls":"icon-app-Outgoing-SMS":"roaming"!==e.type||e.outgoing?"roaming"===e.type&&e.outgoing?"icon-app-Outgoing-Roaming":"international"===e.type?"icon-app-International":"":"icon-app-Incoming-Roaming":"calls"===this.historyType?"icon-app-Incoming-Calls":"icon-app-Incoming-SMS"},async fetchData({noCache:e=!1}){this.callHistory.loading||(this.otpValue=localStorage.getItem("callHistoryOTPValue"),e?await this.$store.dispatch("getCallHistory",{...this.getMonthFromTo(this.monthValue),otpValue:this.otpValue}):await this.$store.dispatch("fetchResource",{resource:ae["b"].CALL_HISTORY,payload:{...this.getMonthFromTo(this.monthValue),otpValue:this.otpValue}}),this.callHistory.error?(this.otpError=this.callHistory.error,Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:this.otpError}}),this.needOTP="sim"!==this.$store.state.loginType,0===this.otpInput.length&&(this.isOTPSent=!1,this.otpError=""),this.isOTPModalShown=!0):(this.needOTP=!1,this.isOTPSent=!1,this.otpInput="",this.otpError="",this.isOTPModalShown=!1))}},beforeMount(){if(!this.isValidHistoryType())return;this.months=this.getPast6Months();const e=this.months.map(e=>e.value).includes(this.monthValue);this.filters.forEach(e=>e.text=e.text.concat(""+("calls"===this.historyType?"Calls":"SMS"))),e&&(this.fetchData({noCache:!1}),this.$store.subscribe(e=>{"setUserInfo"===e.type&&this.fetchData({noCache:!1})}),this.swiperOptions.initialSlide=this.months.findIndex(e=>e.value===this.monthValue))}},Bv=Iv,Lv=Object(v["a"])(Bv,kv,Pv,!1,null,"6f90fa20",null),Rv=Lv.exports,Uv=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mx-3 md:max-w-5xl md:mx-auto font-extrabold text-2xl mt-20 mb-4 md:mt-6 relative flex justify-between items-center ps-2"},[t("span",[e._v(" "+e._s(e.$t("MyInbox"))+" ")]),t("span",[t("router-link",{staticClass:"underline text-primary",attrs:{"exact-active-class":"active",to:"/"}},[t("img",{staticClass:"inline-block m-2",attrs:{alt:"",src:a("4915")}})])],1)]),t("div",{staticClass:"relative mb-14 mx-3 md:max-w-5xl md:mx-auto lg:mt-3",class:[e.isLoading?"min-h-screen-25":""]},[t("z-loading",{attrs:{active:e.isLoading,"is-full-page":!1}}),t("div",[0===e.messages.length?t("div",{staticClass:"w-full h-1/3 text-center align-middle p-10 bg-gray-100"},[t("h1",{staticClass:"text-primary"},[e._v(e._s(e.$t("NoMessages")))])]):t("z-tabs",{attrs:{"custom-outer-classes":"md:max-w-xl md:mx-auto"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("z-tab-item",{attrs:{label:""+e.$t("All"),sequence:0,icon:"w-2 h-2 bg-primary rounded-full"}}),t("z-tab-item",{attrs:{label:""+e.$t("Offers"),sequence:1,icon:"w-2 h-2 bg-primary rounded-full"}}),e.ACTIVATE_MY_ORDERS?e._e():t("z-tab-item",{attrs:{label:`${e.$t("MyOrders")}(${e.getNewOrdersMessagesCount})`,sequence:2,icon:"w-2 h-2 bg-primary rounded-full"}}),0===e.notificationAndZainMessages.length&&0===e.offerMessages.length&&0===e.activeTab?t("div",{staticClass:"w-full h-1/3 text-center align-middle p-10 bg-gray-100 mt-5 dark:bg-gray-700"},[t("h1",{staticClass:"text-primary"},[e._v(e._s(e.$t("NoNotifications")))])]):e._e(),0===e.offerMessages.length&&1===e.activeTab?t("div",{staticClass:"w-full h-1/3 text-center align-middle p-10 bg-gray-100 mt-5 dark:bg-gray-700"},[t("h1",{staticClass:"text-primary"},[e._v(e._s(e.$t("NoOffers")))])]):e._e(),t("div",{staticClass:"flex flex-col space-y-4 py-4 mx-2"},e._l(e.getMessagesBySelectedStep,(function(a,s){return t("div",{key:s,staticClass:"relative"},[t("InboxMessageCard",{key:s,class:{"cursor-pointer":e.isAnOffer(a)},attrs:{message:a,type:a.type},nativeOn:{click:function(t){return e.onClickMessage(a)}}})],1)})),0)],1)],1)],1)])},zv=[],jv=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"h-6 absolute flex flex-row align-middle top-0 end-0 text-xs text-white",class:e.isNotificationType?"hidden":""},[t("div",{staticClass:"w-2.5 relative",class:e.isNotificationType?"hidden":"bg-"+e.cardBannerColorTypes[e.type],style:"en"===e.$i18n.locale?"clip-path: polygon(0 0, 100% 0, 100% 100%); right: -0.5px":"clip-path: polygon(0 0, 0 100%, 100% 0); left: -0.5px"}),t("div",{staticClass:"w-20 py-1 px-4 rounded-te-lg text-center flex flex-col justify-center relative",class:e.isNotificationType?"hidden":"bg-"+e.cardBannerColorTypes[e.type]},[t("div",{class:[e.isArabicLang?"transform -translate-y-0.5":""]},[e._v(e._s(e.$t(""+e.type)))])])]),t("div",{staticClass:"w-full p-4 text-xs rounded-xl border-2 shadow-sm md:flex md:flex-row md:justify-between md:py-5",class:e.isNotificationType?"border-primary":"border-gray-200"},[t("div",{staticClass:"flex flex-row items-baseline space-s-1 pb-2 md:justify-start md:items-center md:w-1/6"},[e.getApproxTime(e.message.receivedDate)===e.$t("Now")?t("span",{staticClass:"w-2 h-2 bg-primary rounded-full"}):e._e(),t("p",{staticClass:"text-gray-500"},[e._v(e._s(e.getApproxTime(e.message.receivedDate)))])]),e.type===e.cardTypes.OFFERS?t("div",{staticClass:"md:w-full md:px-5"},[t("div",{staticClass:"flex flex-row justify-between gap-x-4 py-1 md:gap-x-8"},[t("div",[t("img",{staticClass:"object-contain w-36 my-auto h-full",attrs:{src:e.message.offer.imageUrl[e.$i18n.locale],alt:"offer-image"}})]),t("div",{staticClass:"flex flex-col flex-grow justify-center gap-2 md:justify-around lg:ms-24 lg:my-6 lg:gap-3"},[t("div",{staticClass:"font-semibold text-lg text-start leading-5"},[e._v(e._s(e.message.title[e.$i18n.locale]))]),e.message.offer.startingPrice?t("div",[t("div",{class:{"text-sm":e.isArabicLang}},[e._v(e._s(e.$t("StartingFrom")))]),t("div",[t("span",{staticClass:"text-primary text-lg font-bold leading-4"},[e._v(e._s(e.positionedPrice(e.message.offer.startingPrice))+" ")]),t("span",{class:{"text-sm":e.isArabicLang}},[e._v(e._s(e.$t("Monthly")))])])]):e._e()])])]):t("div",{staticClass:"md:w-full md:px-5"},[t("div",[t("h1",{staticClass:"text-lg font-extrabold leading-5 pb-1",class:e.isNotificationType?"text-primary":""},[e._v(e._s(e.message.title[e.$i18n.locale]))])]),t("div",{staticClass:"pb-2"},[t("p",{staticClass:"text-gray-500"},[e._v(e._s(e.message.subtitle[e.$i18n.locale]))])])]),t("div",{staticClass:"flex flex-row justify-end items-center space-s-4 md:w-1/6"},[e.isDeletable?t("span",{staticClass:"icon-delete text-lg text-gray-500",on:{click:e.onClickDeleteIcon}}):e._e(),t("img",{staticClass:"w-5",attrs:{src:a("f57b")(`./${e.isRead?"inbox-open":"inbox"}.svg`)}})])]),t("z-modal",{attrs:{"can-cancel":"","can-confirm":"","on-confirm":e.onConfirmDelete,active:e.deleteMessageModalActive},on:{"update:active":function(t){e.deleteMessageModalActive=t}}},[t("div",{staticClass:"p-12"},[t("p",{staticClass:"transform translate-y-2 text-lg"},[e._v(e._s(e.$t("DeleteInboxMessage")))])])])],1)},Fv=[];const Vv={NOTIFICATION:"NOTIFICATION",ORDERS:"ORDERS",ZAIN:"ZAIN",OFFERS:"OFFERS"},Hv={NOTIFICATION:"hidden",ORDERS:"teal",ZAIN:"purple-900",OFFERS:"primary"};var Gv={props:{type:{type:String,default:Vv.NOTIFICATION,validator:function(e){return Object.keys(Vv).includes(e)}},message:{type:Object}},components:{ZModal:Be},mixins:[ni,ws],computed:{isRead(){return this.message.isRead},isDeletable(){return this.message.isDeletable},isNotificationType(){return this.type===Vv.NOTIFICATION},isArabicLang(){return"ar"===this.$i18n.locale}},data(){return{isLoading:!1,cardTypes:Vv,cardBannerColorTypes:Hv,deleteMessageModalActive:!1}},name:"InboxMessageCard",methods:{onClickDeleteIcon(){this.deleteMessageModalActive=!0},async onConfirmDelete(){try{await G["a"].deleteInboxMessage({messageId:this.message.messageId,msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber}),await this.$store.dispatch("getInbox",{force:!0}),this.$emit("onDelete"),this.deleteMessageModalActive=!1}catch(e){alert("Error while removing message"),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error while removing message from inbox"}})}}},watch:{},filters:{}},Zv=Gv,qv=Object(v["a"])(Zv,jv,Fv,!1,null,"8d7187b8",null),Kv=qv.exports,Yv={name:"Inbox",components:{ZLoading:Je,ZTabItem:pa,ZTabs:ra,InboxMessageCard:Kv},mixins:[se],async mounted(){Ea["default"].addEvent({event_name:"Viewed Notifications"});const e=async()=>{await this.initStateResources(ae["b"].CAMPAIGNS,ae["b"].INBOX),await this.setAllMessagesAsRead()};this.$store.state.isLoggedIn&&await e()},computed:{isLoading(){return this.$store.state[ae["b"].INBOX].loading||this.$store.state[ae["b"].CAMPAIGNS].loading},getAllNewMessagesCount(){return this.messages.filter(e=>!1===e.isRead).length},getNewOffersMessagesCount(){return this.messages.filter(e=>e.type===this.isAnOffer(e)&&!e.isRead).length},getNewOrdersMessagesCount(){return 1},getMessagesBySelectedStep(){return 0===this.activeTab?this.messages:1===this.activeTab?this.messages.filter(e=>"OFFERS"===e.type):this.messages.filter(e=>"ORDERS"===e.type)},notificationAndZainMessages(){var e,t,a;return null!==(e=null===(t=this.$store.state.Inbox)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.map(e=>{let t=ba["DateTime"].fromISO(e.dateTimeReceived);return{messageId:e.id,type:1===e.notificationType?Kv.data().cardTypes.NOTIFICATION:Kv.data().cardTypes.ZAIN,receivedDate:t,isRead:e.isRead,isDeletable:e.isDeletable,title:{en:e.titleEn,ar:e.titleAr},subtitle:{en:e.bodyEn,ar:e.bodyAr},deeplinkScreenName:e.deeplinkScreenName,ctaDeeplinkTitle:{en:e.ctaDeeplinkTitleEn,ar:e.ctaDeeplinkTitleAr},imageUrl:null,startingPrice:0}}))&&void 0!==e?e:[]},offers(){var e,t,a;return null!==(e=null===(t=this.$store.state[ae["b"].CAMPAIGNS].data)||void 0===t||null===(a=t.Campaigns)||void 0===a?void 0:a.Campaign.filter(e=>e.CampaignParams.StringParam.find(e=>"OfferType"===e.attributes.name&&("Generic"===e.$value||e.$value.includes("zos")))))&&void 0!==e?e:[]},offerMessages(){var e;return null===(e=this.offers)||void 0===e?void 0:e.map(e=>({messageId:0,type:Kv.data().cardTypes.OFFERS,receivedDate:ba["DateTime"].now(),isRead:!0,isDeletable:!1,title:{en:this.stringParamExtractor(e,"EnglishOfferTitle"),ar:this.stringParamExtractor(e,"ArabicOfferTitle")},subtitle:{en:this.stringParamExtractor(e,"EnglishOfferSubtitle"),ar:this.stringParamExtractor(e,"EnglishOfferSubtitle")},offer:{imageUrl:{en:this.stringParamExtractor(e,"EnglishImageURL"),ar:this.stringParamExtractor(e,"ArabicImageURL")},startingPrice:this.stringParamExtractor(e,"OfferCost")}}))},messages(){return[...this.offerMessages,...this.notificationAndZainMessages].sort((e,t)=>t.receivedDate-e.receivedDate)}},data(){return{ACTIVATE_MY_ORDERS:!0,activeTab:0}},watch:{activeTab(e){0===e&&Ea["default"].addEvent({event_name:"Navigated To All Notifications",custom_attributes:{channel:"",NotificationsCount:this.messages.length}}),1===e&&Ea["default"].addEvent({event_name:"Navigated To Offer Notifications",custom_attributes:{channel:"",NotificationsCount:this.messages.length}}),2===e&&Ea["default"].addEvent({event_name:"Navigated To Order Notifications",custom_attributes:{channel:"",NotificationsCount:this.messages.length}})}},methods:{async setAllMessagesAsRead(){let e=this.notificationAndZainMessages.reduce((e,t)=>(t.isRead||e.push(t.messageId),e),[]);0!==e.length&&await G["a"].updateInboxMessagesToRead({messageIds:e,msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber})},stringParamExtractor(e,t){const a=e.CampaignParams.StringParam.find(e=>e.attributes.name===t);return a.$value},isAnOffer(e){return e.type===Kv.data().cardTypes.OFFERS},onClickMessage(e){this.isAnOffer(e)&&(this.$store.state.selectedOffer=this.offers.find(t=>this.stringParamExtractor(t,"EnglishOfferTitle")===e.title.en),this.$store.state.isOffersPopUpActive=!0)}}},Wv=Yv,Qv=Object(v["a"])(Wv,Uv,zv,!1,null,null,null),Xv=Qv.exports,Jv=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mx-3 md:max-w-xl md:mx-auto font-extrabold text-xl mt-20 mb-4 md:mt-6 relative flex justify-between items-center ps-2",class:{"md:mt-36":e.$store.state.windowScroll>35}},[t("span",[e._v(" Your Order Has Been Shipped! ")]),t("span",[t("router-link",{staticClass:"underline text-primary",attrs:{to:"/inbox","exact-active-class":"active"}},[t("img",{staticClass:"inline-block m-2",attrs:{src:a("4915"),alt:""}})])],1)]),t("div",{staticClass:"flex flex-row justify-start items-center space-s-3 ps-5 text-sm text-gray-500 md:max-w-xl md:mx-auto mb-4 md:mt-6 relative",class:{"md:mt-36":e.$store.state.windowScroll>35}},[t("span",{},[e._v(e._s(e.getApproxTime(e.messageReceivedDate)))]),t("span",{staticClass:"icon-delete"}),t("span",{staticClass:"icon-camera"})]),e._m(0)])},eg=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-center my-10"},[t("code",{staticClass:"p-8 bg-red-400"},[e._v(" TBD: Until Orders API is delivered... ")])])}],tg={name:"InboxMessageDetail",components:{},mixins:[ni],props:{messageObject:{type:Object,default(){return{title:null,subtitle:null,imageUrl:null,startingPrice:0}}},messageReceivedDate:{type:ba["DateTime"],default:()=>ba["DateTime"].now()}},computed:{},data(){return{testDate:ba["DateTime"].now().plus({minutes:6}),testMessage1:{type:"ORDERS",title:"Your order has been shipped!",subtitle:"Your order ID 123456 with iPhone 12Pro with AirPods Pro has been shipped."},testMessage2:{type:"OFFERS",title:"Apple watch Series 6 40MM",imageUrl:"https://via.placeholder.com/150",startingPrice:6},linesBalances:[],prepaidLinesBalances:[],selectedPaymentMethod:null,contractNumberValue:null,contractAmountValue:null,contractMsisdnNotificationValue:null,contractEmailNotificationValue:null,isLoading:!1,savedCards:[],cardDetails:{cardNumber:""},rechargeCards:[{amount:1.5,validity:7},{amount:3,validity:15},{amount:5,validity:30},{amount:10,validity:90},{amount:20,validity:180},{amount:25,validity:365},{amount:null,validity:null}],orderLines:[],selectedMyLines:[],summaryHidden:!0,didFetchPostpaidData:!1,didFetchPrepaidData:!1}},watch:{},methods:{},filters:{currency(e){return"KD "+(e||0).toFixed(3)}},async mounted(){}},ag=tg,sg=Object(v["a"])(ag,Jv,eg,!1,null,null,null),ig=sg.exports,ng=function(){var e=this,t=e._self._c;return t("div",[t("zbot-fixed-circle"),t("div",{staticClass:"max-w-3xl mx-2 mb-6 md:mx-auto xl:max-w-7xl"},[t("z-heading",[e._v(" "+e._s(e.$t("OffersForYou"))+" ")]),t("div",{staticClass:"md:mb-6"},[t("div",{staticClass:"flex md:w-2/3 md:mx-auto items-center"},[t("z-input",{staticClass:"w-full",attrs:{"input-style":"font-size:20px","input-classes":"bg-transparent md:ps-10",placeholder:e.$t("WhatAreYouLookingFor?"),outlined:!e.widthBiggerThan767},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),t("span",{staticClass:"icon-magnifying-glass top-0 text-primary end-10 top-0.5 relative text-xl"}),t("div",{class:(e.showFilters?"icon-filter-filled":"icon-filter")+" relative top-1 end-2 text-primary text-2xl md:hidden",attrs:{role:"button"},on:{click:e.onClickFilterIcon}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.showFilters,expression:"!showFilters"}],staticClass:"md:hidden"},[t("div",{staticClass:"flex gap-1 my-3 flex-wrap"},e._l([...e.brandFilters,...e.categoryFilters],(function(a){return t("div",{key:"filtered"+a.name,staticClass:"flex gap-2 items-center px-3 py-3 rounded-lg bg-opacity-10 bg-primary"},[t("div",{staticClass:"text-xs font-bold text-primary"},[e._v(e._s(a.name))]),t("div",{staticClass:"icon-Shortcut---close text-gray-500 text-sm",attrs:{role:"button"},on:{click:function(t){return e.onClickCloseFilter(a)}}})])})),0)])]),t("div",{staticClass:"hidden md:block pe-3"},[t("div",{staticClass:"flex justify-end items-baseline gap-1 text-primary"},[t("div",{staticClass:"icon-Group-1565"}),t("div",[e._v(e._s(e.showSearchResults?e.filteredProducts.length:e.products.data.length))]),t("div",[e._v(e._s(e.$t("Results")))])]),t("div",{staticClass:"h-0.5 bg-primary"})]),t("div",{staticClass:"md:grid md:grid-cols-12 md:px-3"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showFilters||e.widthBiggerThan767,expression:"showFilters || widthBiggerThan767"}],staticClass:"animate-fade-in-down mt-4 md:col-span-3"},[t("div",{staticClass:"w-auto -mx-2 md:hidden"},[e._m(0),t("div",{staticClass:"bg-primary h-16 flex justify-between items-center px-2 text-white"},[t("div",{staticClass:"font-bold text-2xl my-2"},[e._v(e._s(e.$t("Filter")))]),t("div",{staticClass:"flex items-center gap-2"},[t("span",{staticClass:"underline uppercase text-sm",attrs:{role:"button"},on:{click:e.onClickCancel}},[e._v(" "+e._s(e.$t("Cancel"))+" ")]),t("z-button",{staticClass:"uppercase",attrs:{size:"small",type:"white",outlined:""},on:{click:e.onClickSave}},[e._v(" "+e._s(e.$t("Save"))+" ")])],1)])]),t("div",{staticClass:"text-lg font-bold my-3"},[e._v(" "+e._s(e.$t("IAmLookingFor"))+" ")]),t("div",{staticClass:"flex flex-wrap px-3 md:px-0 gap-3 md:flex-col md:items-start"},e._l(e.zosProductsCategories,(function(a){return t("div",{key:"filter"+a.name},[t("div",{staticClass:"flex flex-col items-center",attrs:{role:"button"},on:{click:function(t){return e.onClickFilter(a)}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:a.selected,expression:"category.selected"}],staticClass:"relative bottom-2 md:hidden"},[e._m(1,!0)]),t("div",{staticClass:"px-3 md:px-0 py-2 rounded-lg border md:rounded-none md:border-none flex items-center gap-2",class:{"border-gray-300 text-gray-500":!a.selected,"border-primary text-black font-bold":a.selected}},[t("z-check-box",{staticClass:"hidden pointer-events-none md:block",attrs:{rounded:!1,size:"small",color:"primary"},model:{value:a.selected,callback:function(t){e.$set(a,"selected",t)},expression:"category.selected"}}),e._v(" "+e._s(e.$t(a.name.replace(/ /g,"")))+" ")],1)])])})),0),t("div",{staticClass:"text-lg font-bold my-3"},[e._v(" "+e._s(e.$t("Brands"))+" ")]),t("div",{staticClass:"flex flex-wrap px-3 md:px-0 gap-3 md:flex-col md:items-start"},e._l(e.zosProductsBrands,(function(a){return t("div",{key:"filter"+a.name},[t("div",{staticClass:"flex flex-col items-center",attrs:{role:"button"},on:{click:function(t){return e.onClickFilter(a)}}},[t("div",{directives:[{name:"show",rawName:"v-show",value:a.selected,expression:"brand.selected"}],staticClass:"relative bottom-2 md:hidden"},[e._m(2,!0)]),t("div",{staticClass:"text-xs px-3 md:px-0 py-2 rounded-lg border md:rounded-none md:border-none flex items-center gap-2",class:{"border-gray-300 text-gray-500":!a.selected,"border-primary text-black font-bold":a.selected}},[t("z-check-box",{staticClass:"hidden pointer-events-none md:block",attrs:{rounded:!1,size:"small",color:"primary"},model:{value:a.selected,callback:function(t){e.$set(a,"selected",t)},expression:"brand.selected"}}),e._v(" "+e._s(a.name)+" ")],1)])])})),0)]),t("div",{staticClass:"md:col-span-9"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearchResults,expression:"showSearchResults"}],staticClass:"animate-fade-in-down"},[t("div",{staticClass:"grid my-3 grid-cols-2 sm:grid-cols-3 xl:grid-cols-4 gap-2"},e._l(e.filteredProducts,(function(a){return t("card-with-tag",{key:"searched"+a.sectionid,attrs:{width:"auto"}},[t("zos-product-card-content",{staticClass:"mb-8",attrs:{"product-name":a.name,"product-price":parseFloat(a.startprice),"buy-url":e.$store.state.zainURL+e.$i18n.locale+"/"+a.buyurl,"button-text":e.buttonText(a),"image-url":e.$store.state.zainURL+a.image}})],1)})),1),0===e.filteredProducts.length?t("div",[e._v(" No results found ")]):e._e()]),e.products.data&&e.products.data.length?t("div",{directives:[{name:"show",rawName:"v-show",value:!e.showSearchResults,expression:"!showSearchResults"}],staticClass:"animate-fade-in-down"},[e.campaigns.length>0?t("div",[t("div",{staticClass:"my-6"},[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t("SpecialOffersForYou"))+" ")]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.campaigns,(function(a,s){return t("swiper-slide",{key:"offerCampaign"+s},[t("card-with-tag",{staticClass:"mb-8",attrs:{"invert-skew":"","tag-label":e.$t("Special").toUpperCase(),"show-tag":"","show-border":"","custom-color":"#7843a2"}},[t("CVMOfferCardContent",{attrs:{campaign:a}})],1)],1)})),1)],1),t("hr",{staticClass:"relative border-t border-solid border-primary mx-auto"})]):e._e(),e._l(e.zosProductsCategories,(function(a,s){return t("div",{key:a.name},[e.products.data.filter(e=>e.type===a.name).length>0?t("div",{staticClass:"my-6"},[t("z-heading",{attrs:{level:2,"text-size":"text-xl"}},[e._v(" "+e._s(e.$t(a.name.replace(/ /g,"")))+" ")]),t("swiper",{attrs:{options:e.swiperOptions}},e._l(e.products.data.filter(e=>e.type===a.name),(function(a){return t("swiper-slide",{key:a.sectionid,staticClass:"mb-8"},[t("card-with-tag",[t("zos-product-card-content",{staticClass:"mb-8",attrs:{"product-name":a.name,"product-price":parseFloat(a.startprice),"buy-url":e.$store.state.zainURL+e.$i18n.locale+"/"+a.buyurl+e.shopURLParameters,"button-text":e.buttonText(a),"image-url":e.$store.state.zainURL+a.image},on:{click:e.eventProduct}})],1)],1)})),1)],1):e._e(),s!==e.zosProductsCategories.length-1&&e.products.data.filter(e=>e.type===a.name).length>0?t("hr",{staticClass:"relative border-t border-solid border-primary mx-auto"}):e._e()])}))],2):e._e()])])],1),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":"",message:e.$t("YourRequestHasBeenSuccessfullySubmitted"),title:e.$t("ThankYou")},on:{"update:active":e.onStatusModalCancel}})],1)},rg=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex justify-end"},[t("div",{staticClass:"w-0 h-0 relative end-4",staticStyle:{"border-left":"10px solid transparent","border-right":"10px solid transparent","border-bottom":"10px solid rgb(209 43 138)"}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-black w-full absolute end-2"},[t("div",{staticClass:"text-2xs text-white w-4 h-4 flex items-center justify-center py-1 rounded-full bg-primary icon-check-mark-button"})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"bg-black w-full absolute end-2"},[t("div",{staticClass:"text-2xs text-white w-4 h-4 flex items-center justify-center py-1 rounded-full bg-primary icon-check-mark-button"})])}],og={name:"Offers",components:{StatusModal:Ps,CVMOfferCardContent:$r,ZHeading:vn,ZCheckBox:Dv,ZButton:R,ZInput:H,ZosProductCardContent:_r,CardWithTag:fr,SwiperSlide:Vi,Swiper:Li,ZbotFixedCircle:Ur},mixins:[se],computed:{campaigns(){var e,t,a,s,i,n,r;return null!==(e=this.$store)&&void 0!==e&&null!==(t=e.state)&&void 0!==t&&null!==(a=t[ae["b"].CAMPAIGNS])&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&null!==(i=s.Campaigns)&&void 0!==i&&i.Campaign?null===(n=this.$store.state[ae["b"].CAMPAIGNS].data)||void 0===n||null===(r=n.Campaigns)||void 0===r?void 0:r.Campaign.filter(e=>e.CampaignParams.StringParam.find(e=>"OfferType"===e.attributes.name&&("Generic"===e.$value||e.$value.includes("zos")))):{data:[]}},products(){var e,t,a,s;if((null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t[ae["b"].PRODUCTS])||void 0===a||null===(s=a.data)||void 0===s?void 0:s.length)>0){let e=[];return this.$store.state[ae["b"].PRODUCTS].data.forEach(t=>{e.some(e=>e.sectionid===t.sectionid)||e.push(t)}),{data:e}}return{data:[]}},categoryFilters(){return this.zosProductsCategories.filter(e=>e.filter)},brandFilters(){return this.zosProductsBrands.filter(e=>e.filter)},filteredProducts(){if(!this.search&&0===this.categoryFilters.length&&0===this.brandFilters.length)return[];let e=this.products.data;if(this.categoryFilters.length>0){const t=this.categoryFilters.map(e=>e.name);e=e.filter(e=>t.includes(e.type))}if(this.brandFilters.length>0){const t=this.brandFilters.map(e=>e.name.toLowerCase());e=e.filter(e=>{var a;return t.includes(null===(a=e.manufacturer)||void 0===a?void 0:a.toLowerCase())})}return this.search&&(e=e.filter(e=>e.name.toLowerCase().includes(this.search.toLowerCase()))),e},showSearchResults(){return this.search||this.brandFilters.length>0||this.categoryFilters.length>0},widthBiggerThan767(){return this.$store.state.windowWidth>767},shopURLParameters(){return this.$store.state.isLoggedIn&&this.$store.state.msisdn?"?m="+this.$store.state.msisdn:""},featureFlags(){return ja["a"]}},data(){return{showFilters:!1,search:"",loading:!1,isStatusModalActive:!1,zosProductsCategories:[{name:"Accessories",selected:!1,filter:!1},{name:"Smart Phones",selected:!1,filter:!1},{name:"Internet Devices",selected:!1,filter:!1},{name:"Laptops and Tablets",selected:!1,filter:!1},{name:"Smart Home",selected:!1,filter:!1},{name:"Smart TV’s",selected:!1,filter:!1},{name:"Wearables and Headsets",selected:!1,filter:!1},{name:"Gaming",selected:!1,filter:!1},{name:"eCards",selected:!1,filter:!1},{name:"SIM Card",selected:!1,filter:!1}],zosProductsBrands:[{name:"Apple",selected:!1,filter:!1},{name:"Samsung",selected:!1,filter:!1},{name:"Huawei",selected:!1,filter:!1},{name:"HTC",selected:!1,filter:!1},{name:"Ezvis",selected:!1,filter:!1},{name:"Sony",selected:!1,filter:!1},{name:"XBOXONE",selected:!1,filter:!1}],swiperOptions:{slidesPerView:2,spaceBetween:5,breakpoints:{540:{slidesPerView:3,spaceBetween:5},780:{slidesPerView:4,spaceBetween:5}}}}},methods:{onClickFilterIcon(){this.showFilters=!this.showFilters,this.showFilters&&(this.zosProductsCategories.forEach(e=>e.selected=e.filter),this.zosProductsBrands.forEach(e=>e.selected=e.filter))},onClickCancel(){this.showFilters=!1},onClickSave(){this.zosProductsCategories.forEach(e=>e.filter=e.selected),this.zosProductsBrands.forEach(e=>e.filter=e.selected),this.showFilters=!1},onClickCloseFilter(e){e.selected=!1,e.filter=!1},onClickFilter(e){e.selected=!e.selected,this.widthBiggerThan767&&(e.filter=!e.filter)},onStatusModalCancel(){this.isStatusModalActive=!1},buttonText(e){const t="ar"===this.$i18n.locale?e.buynowar:e.buynow,a=this.featureFlags.offersBuyNowText?t:"";return a}},async mounted(){await this.initStateResources({resource:ae["b"].PRODUCTS}),Ea["default"].addEvent({event_name:"Viewed Offers"})}},lg=og,cg=Object(v["a"])(lg,ng,rg,!1,null,"2ec5602e",null),dg=cg.exports,ug=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mx-auto max-w-5xl relative min-h-64"},[t("z-loading",{attrs:{active:e.ghostPlans.loading||e.commitments.loading,"is-full-page":!1}}),e.filteredGhostPlans.length>0&&e.dataFetched?t("div",[t("div",{staticClass:"text-center my-10 px-4 md:px-0"},[t("h1",{staticClass:"font-bold",staticStyle:{"font-size":"23px","line-height":"31.37px"}},[e._v(" "+e._s(e.$t("GhostPlanTitle"))+" ")]),t("h2",{staticClass:"font-normal",class:e.windowWidth>745&&"mt-3",staticStyle:{"font-size":"19px","line-height":"25.92px"}},[e._v(" "+e._s(e.$t("GhostPlanDescription"))+" ")])]),t("div",{class:`flex flex-row flex-wrap items-center justify-center\n ${1===e.filteredGhostPlans.length?"md:w-1/2 mx-auto":"md:grid md:grid-cols-2"} gap-6 px-5`},e._l(e.filteredGhostPlans,(function(a){return t("div",{key:a.id,staticClass:"w-full"},[t("GhostPlanCard",{attrs:{"is-selectable":"","is-selected":a.id===e.selectedGhostPlan.id,"is-plan-page":!0,plan:a,"has-data-sharing":e.hasDataSharing},nativeOn:{click:function(t){return e.onClickGhostPlan(a)}}})],1)})),0),t("div",{staticClass:"flex flex-row justify-center py-10 px-5",class:e.windowWidth>745?"px-24":"px-5"},[t("ZButton",{staticClass:"flex justify-center uppercase w-full md:w-1/2",class:[null===e.selectedGhostPlan.id&&"text-white"],attrs:{type:"primary",disabled:!e.selectedGhostPlan.id||e.isEligibilityCheckLoading,size:"medium"},on:{click:e.onClickBuyNow}},[t("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEligibilityCheckLoading,expression:"!isEligibilityCheckLoading"}]},[e._v(e._s(e.$t("BuyNow")))]),t("z-loading",{directives:[{name:"show",rawName:"v-show",value:e.isEligibilityCheckLoading,expression:"isEligibilityCheckLoading"}],staticClass:"-m-1.5",attrs:{active:e.isEligibilityCheckLoading,"inline-size":"small","is-full-page":!1}})],1)],1)]):e.dataFetched?t("div",{staticClass:"text-center my-10 px-4 h-full md:px-0"},[t("h2",{staticClass:"font-normal flex justify-center items-center text-lg"},[e._v(" "+e._s(e.$t("NoAvailablePlanUpgrades"))+" ")]),t("ZButton",{staticClass:"my-5",on:{click:e.onClickBackToHome}},[e._v(" "+e._s(e.$t("BackToHome"))+" ")])],1):e._e()],1),t("ghost-status-modal",{attrs:{"status-modal-is-active":e.notEligibleModalActive,description:e.$t("GhostEligibilityFailure"),title:e.$t("Error")},on:{backToHome:()=>e.notEligibleModalActive=!1}}),t("ghost-status-modal",{attrs:{"status-modal-is-active":e.dataSharingModalActive,description:e.$t("GhostDataShareWarning"),title:e.$t("GhostDataShareWarningTitle"),"show-activate-plan-button":!0,"show-home-button":!1},on:{backToHome:()=>e.dataSharingModalActive=!1,activatePlan:this.onClickBuyNow}}),t("GhostConfirmPlanModal",{attrs:{plan:e.selectedGhostPlan},model:{value:e.isGhostConfirmPlanModalActive,callback:function(t){e.isGhostConfirmPlanModalActive=t},expression:"isGhostConfirmPlanModalActive"}})],1)},pg=[],mg={name:"GhostPlans",components:{GhostStatusModal:Al,GhostConfirmPlanModal:rl,GhostPlanCard:Wo,ZLoading:Je,ZButton:R},mixins:[se,ws],data(){return{isGhostConfirmPlanModalActive:!1,isEligibilityCheckLoading:!1,notEligibleModalActive:!1,dataSharingModalActive:!1,quadValidities:Il["c"],plan:null}},computed:{isArabicLang(){return"ar"===this.$i18n.locale},ghostPlans(){var e,t,a,s;return this.isEligibleForGhostOnBoarding&&!this.isDataNonGhost?null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t?void 0:t[ae["b"].GHOST_PLANS]:null===(a=this.$store)||void 0===a||null===(s=a.state)||void 0===s?void 0:s[ae["b"].PLANS]},filteredGhostPlans(){var e,t,a,s;return null!==(e=this.ghostPlans)&&void 0!==e&&e.data?this.isEligibleForGhostOnBoarding&&!this.isDataNonGhost?null===(s=this.ghostPlans)||void 0===s?void 0:s.data:null===(t=this.ghostPlans)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.filter(e=>e.canInstall):[]},selectedGhostPlan(){var e,t,a,s;return null!==(e=null===(t=this.$store)||void 0===t||null===(a=t.state)||void 0===a||null===(s=a.ghostPostpaid)||void 0===s?void 0:s.selectedGhostPlan)&&void 0!==e?e:{}},commitments(){var e,t,a;return null!==(e=null===(t=this.$store)||void 0===t||null===(a=t.state)||void 0===a?void 0:a[ae["b"].COMMITMENTS])&&void 0!==e?e:{}},hasCommitments(){var e,t;return null===(e=this.$store)||void 0===e||null===(t=e.getters)||void 0===t?void 0:t.hasCommitments},dataFetched(){return!(!this.commitments.fetchedAt||!this.ghostPlans.fetchedAt)},isEligibleForGhostOnBoarding(){var e;return null===(e=this.$store)||void 0===e?void 0:e.getters["ghostPostpaid/isEligibleForGhostOnBoarding"]},isDataNonGhost(){var e;return null===(e=this.$store)||void 0===e?void 0:e.getters["ghostPostpaid/isDataNonGhost"]},windowWidth(){return this.$store.state.windowWidth},hasDataSharing(){return this.$store.getters.isDataSharing&&"Data"===this.$store.getters.getBasicServiceType}},methods:{onClickGhostPlan(e){this.plan=e,this.$store.dispatch("ghostPostpaid/setSelectedGhostPlan",e)},async onClickBuyNow(){const e=await this.checkEligibility();if(!e)return this.notEligibleModalActive=!0;const t=0===this.getPlanBenefits(this.plan).filter(e=>e.name.toLowerCase().includes("sim")).length;this.hasDataSharing&&t&&!this.dataSharingModalActive&&ja["a"].GhostPostpaidDataShareEnabled?this.dataSharingModalActive=!0:(this.dataSharingModalActive=!1,this.hasCommitments&&!this.$store.getters["ghostPostpaid/isDataNonGhost"]?this.isGhostConfirmPlanModalActive=!0:(await this.$store.dispatch("ghostPostpaid/setIsUpsell",!1),await this.$router.push("/plan-details/checkout")))},getPlanBenefits(e){var t;return null!==(t=null===e||void 0===e?void 0:e.benefits)&&void 0!==t?t:[]},getPlanChildServices(e){var t;return null!==(t=null===e||void 0===e?void 0:e.childServices)&&void 0!==t?t:[]},getPlanDevices(e){var t;return this.hasCommitments?[]:null!==(t=null===e||void 0===e?void 0:e.devices)&&void 0!==t?t:[]},onClickBackToHome(){this.$router.push("/")},async checkEligibility(){this.isEligibilityCheckLoading=!0;const e=(await G["a"].ghostEligibility({msisdn:this.$store.state.msisdn,contractNumber:this.$store.getters.getContractNumber})).data;return this.isEligibilityCheckLoading=!1,"eligible"===e.message}},watch:{ghostPlans(){this.$store.getters["ghostPostpaid/canSubscribeOrUpgradeGhost"]&&this.$router.push("/plan")}},beforeMount(){this.initStateResources(ae["b"].GHOST_PLANS,ae["b"].USER_INFO,ae["b"].PLANS,ae["b"].COMMITMENTS,ae["b"].OTTS,ae["b"].DATA_SHARING)}},hg=mg,vg=Object(v["a"])(hg,ug,pg,!1,null,null,null),gg=vg.exports,fg=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"mx-auto max-w-5xl lg:max-w-8xl"},[e.hasCommitments?t("div",{staticClass:"my-10"}):t("div",{staticClass:"flex justify-center items-center"},[t("ZStepper",{staticClass:"px-10 py-16 max-w-xl",attrs:{value:e.currentStep}},[t("ZStepperStep",{attrs:{step:1}},[e._v(e._s(e.$t("Delivery")))]),t("ZStepperStep",{attrs:{step:2}},[e._v(e._s(e.$t("Confirmation")))])],1)],1),1===e.currentStep?t("div",{staticClass:"flex flex-row justify-center lg:justify-between lg:space-s-4 lg:mx-10"},[t("div",{staticClass:"lg:w-2/3 flex flex-col lg:space-y-4"},[t("div",{staticClass:"lg:border lg:border-1 lg:rounded-lg lg:w-full dark:bg-gray-700"},[e.hasCommitments?e._e():t("div",{staticClass:"px-6 pt-6"},[t("h1",{staticClass:"text-xl"},[e._v(e._s(e.$t("GhostCheckoutDeliveryTitle")))]),t("h3",{staticClass:"text-gray-500",class:[e.isUserHasNoAddresses&&"hidden"]},[e._v(" "+e._s(e.$t("GhostCheckoutDeliverySubtitle")))])]),e.hasCommitments?e._e():t("MySavedAddresses",{ref:"mySavedAdresses",attrs:{"is-ghost-checkout":!0,"is-shadowless":!0,"is-auto-select-if-saved":!0},on:{"on-select-address":e.onSelectAddress}}),t("ValidationObserver",{ref:"observer",staticClass:"mt-3 grid w-full gap-6 p-6 md:grid-cols-2"},[t("z-input-with-validation",{ref:"emailInput",attrs:{rules:"required|email",label:e.$t("Email"),placeholder:e.$t("EnterEmailAddress")},model:{value:e.$store.state.ghostPostpaid.email,callback:function(t){e.$set(e.$store.state.ghostPostpaid,"email",t)},expression:"$store.state.ghostPostpaid.email"}}),t("z-input-with-validation",{attrs:{rules:"required|kuwait_msisdn",label:e.$t("MobilePhoneNumber"),placeholder:e.$t("EnterMobileNumber")},model:{value:e.$store.state.ghostPostpaid.msisdn,callback:function(t){e.$set(e.$store.state.ghostPostpaid,"msisdn",t)},expression:"$store.state.ghostPostpaid.msisdn"}})],1)],1),e.hasCommitments?e._e():t("div",{staticClass:"p-6 lg:border lg:rounded-lg dark:bg-gray-700"},[t("h1",{staticClass:"text-xl"}),t("div",{staticClass:"my-5 flex flex-col lg:space-y-6"},[t("div",{staticClass:"flex flex-col p-4 border border-1 rounded-t-lg cursor-pointer lg:border-0 lg:p-0",on:{click:function(t){e.$store.state.ghostPostpaid.selectedDeliveryType=e.deliveryTypes.EXPRESS}}},[t("div",{staticClass:"flex flex-row justify-between"},[t("div",{staticClass:"flex flex-row items-center gap-x-2"},[t("input",{staticClass:"form-radio cursor-pointer border-black bg-white ring-2 ring-white ring-inset checked:bg-primary",staticStyle:{"background-image":"none"},attrs:{type:"radio"},domProps:{checked:e.$store.state.ghostPostpaid.selectedDeliveryType===e.deliveryTypes.EXPRESS}}),t("h1",{staticClass:"font-bold"},[e._v(e._s(e.$t("GhostCheckoutDeliveryTypeExpress")))])]),t("div",[t("h1",{staticClass:"font-bold"},[e._v(e._s(e.$t("free")))])])]),t("div",{staticClass:"ps-6 text-gray-600"},[e._v(" "+e._s(e.$t("GhostCheckoutDeliveryTypeExpressDescription"))+" ")])]),t("div",{staticClass:"flex flex-col p-4 border border-1 cursor-pointer lg:border-0 lg:p-0",on:{click:function(t){e.$store.state.ghostPostpaid.selectedDeliveryType=e.deliveryTypes.SAME_DAY}}},[t("div",{staticClass:"flex flex-row justify-between"},[t("div",{staticClass:"flex flex-row items-center gap-x-2"},[t("input",{staticClass:"form-radio cursor-pointer border-black bg-white ring-2 ring-white ring-inset checked:bg-primary",staticStyle:{"background-image":"none"},attrs:{type:"radio"},domProps:{checked:e.$store.state.ghostPostpaid.selectedDeliveryType===e.deliveryTypes.SAME_DAY}}),t("h1",{staticClass:"font-bold"},[e._v(e._s(e.$t("GhostCheckoutDeliveryTypeSameDay")))])]),t("div",[t("h1",{staticClass:"font-bold"},[e._v(e._s(e.$t("free")))])])]),t("div",{staticClass:"ps-6 text-gray-600"},[e._v(" "+e._s(e.$t("GhostCheckoutDeliveryTypeSameDayDescription"))+" ")])]),t("div",{staticClass:"flex flex-col p-4 border border-1 rounded-b-lg cursor-pointer lg:border-0 lg:p-0",on:{click:function(t){e.$store.state.ghostPostpaid.selectedDeliveryType=e.deliveryTypes.STANDARD}}},[t("div",{staticClass:"flex flex-row justify-between"},[t("div",{staticClass:"flex flex-row items-center gap-x-2"},[t("input",{staticClass:"form-radio cursor-pointer border-black bg-white ring-2 ring-white ring-inset checked:bg-primary",staticStyle:{"background-image":"none"},attrs:{type:"radio"},domProps:{checked:e.$store.state.ghostPostpaid.selectedDeliveryType===e.deliveryTypes.STANDARD}}),t("h1",{staticClass:"font-bold"},[e._v(e._s(e.$t("GhostCheckoutDeliveryTypeStandard")))])]),t("div",[t("h1",{staticClass:"font-bold"},[e._v(e._s(e.$t("free")))])])]),t("div",{staticClass:"ps-6 text-gray-600"},[e._v(" "+e._s(e.$t("GhostCheckoutDeliveryTypeStandardDescription"))+" ")]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.$store.state.ghostPostpaid.selectedDeliveryType===e.deliveryTypes.STANDARD,expression:"$store.state.ghostPostpaid.selectedDeliveryType === deliveryTypes.STANDARD"}],staticClass:"flex flex-row"},[t("div",{staticClass:"w-full ps-6 pt-2 space-x-10 flex flex-row"},[t("ZInput",{staticClass:"w-1/2",attrs:{inputType:"date",label:e.$t("DeliveryDate"),placeholder:'$t("SelectDate")',max:new Date((new Date).setDate((new Date).getDate()+2)).toISOString().split("T")[0],min:new Date(new Date).toISOString().split("T")[0]},model:{value:e.$store.state.ghostPostpaid.selectedDeliveryDate,callback:function(t){e.$set(e.$store.state.ghostPostpaid,"selectedDeliveryDate",t)},expression:"$store.state.ghostPostpaid.selectedDeliveryDate"}}),t("ZSelect",{staticClass:"w-1/2",attrs:{required:"",label:e.$t("DeliveryTime"),placeholder:e.$t("SelectTime")},model:{value:e.$store.state.ghostPostpaid.selectedDeliveryTime,callback:function(t){e.$set(e.$store.state.ghostPostpaid,"selectedDeliveryTime",t)},expression:"$store.state.ghostPostpaid.selectedDeliveryTime"}},e._l(e.optionalTimeSlots,(function({from:a,to:s,value:i}){return t("option",{key:i,domProps:{value:i}},[e._v(" "+e._s(e.$tc("TimeSlot",0,{from:a,to:s}))+" ")])})),0)],1)])])])])]),t("div",{staticClass:"fixed bottom-0 right-0 z-40 w-full animate-fade-in-up border-t-2 border-primary px-4 py-2 text-center bg-white dark:bg-gray-700 lg:relative lg:w-1/3 lg:border lg:border-1 lg:rounded-lg lg:bg-gray-50 lg:max-h-full lg:place-self-start lg:p-0 lg:flex lg:flex-col lg:justify-between lg:border-gray-200 lg:animate-none"},[t("img",{staticClass:"h-12 absolute top-0 left-1/2 transform -translate-x-6 -translate-y-6 cursor-pointer lg:hidden",attrs:{src:e.getDrawerIconPath,alt:"Up Logo"},on:{click:()=>this.isDrawerExpanded=!this.isDrawerExpanded}}),t("div",[t("div",{staticClass:"lg:block px-3 pt-4 min-h-screen-25",class:[this.isDrawerExpanded?"block animate-fade-in-up":"hidden"]},[t("h3",{staticClass:"font-bold text-start text-xl pb-6"},[e._v(" "+e._s(e.$t("GhostCheckoutDeliveryOrderSummary"))+" ")]),t("div",{staticClass:"flex flex-col text-start space-y-5"},[e.getPlanDevices(e.selectedGhostPlan).length>0&&!e.hasCommitments?t("div",[t("div",{staticClass:"text-zainPurple font-bold pb-1"},[t("h3",[e._v(e._s(e.$t("Device")))])]),e._l(e.getPlanDevices(e.selectedGhostPlan),(function(a){return t("div",{key:a.name,staticClass:"text-gray-500 flex flex-col text-sm"},[t("div",{staticClass:"flex flex-row justify-between my-2"},[t("h3",[e._v(" "+e._s(e.isArabicLang?a.descriptionAr:a.description)+" ")]),t("h3",{staticClass:"font-bold"},[e._v(" "+e._s(e.isArabicLang?a.nameAr:a.name)+" ")])]),t("div",{staticClass:"w-full bg-gray-300 h-px"})])}))],2):e._e(),t("div",[t("div",{staticClass:"text-zainPurple font-bold pb-1"},[t("h3",[e._v(e._s(e.$t("PlanDetails")))])]),e._l(e.getPlanBenefits(e.selectedGhostPlan),(function(a){return t("div",{key:a.name,staticClass:"text-gray-500 flex flex-col text-sm"},[t("div",{staticClass:"flex flex-row justify-between my-2"},[t("h3",[e._v(" "+e._s(e.isArabicLang?a.descriptionAr:a.description)+" ")]),t("h3",{staticClass:"font-bold"},[e._v(" "+e._s(e.isArabicLang?a.nameAr:a.name)+" ")])]),t("div",{staticClass:"w-full bg-gray-300 h-px"})])}))],2),t("div",{staticClass:"h-12 hidden lg:block"})])]),t("div",{staticClass:"flex flex-col space-y-3 pt-5 px-3 lg:bg-gray-100 lg:p-4 lg:space-y-4"},[t("div",{staticClass:"flex flex-row justify-between items-center w-full"},[t("div",{staticClass:"text-3xl font-black text-green-dark whitespace-nowrap"},[e._v(" "+e._s(e.positionedPrice(e.selectedGhostPlan.price,!1,0))+" ")]),e.hasCommitments?e._e():t("div",{staticClass:"text-lg"},[e._v(" "+e._s(e.$tc("CommitmentsForXMonths",12,{months:e.selectedGhostPlan.commitmentMonths}))+" ")])]),t("div",{staticClass:"hidden lg:block w-full bg-gray-300 h-px"}),t("z-button",{staticClass:"block font-black uppercase w-full mx-auto max-w-2xl relative flex justify-center",attrs:{size:"large",disabled:!e.isDeliveryStepValid||e.isPlaceOrderLoading},on:{click:e.onClickPlaceOrder}},[t("p",{directives:[{name:"show",rawName:"v-show",value:!e.isPlaceOrderLoading,expression:"!isPlaceOrderLoading"}],staticClass:"text-sm"},[e._v(e._s(e.$t("PlaceOrder")))]),t("z-loading",{staticClass:"-m-2.5",attrs:{"inline-size":"small","is-full-page":!1,active:e.isPlaceOrderLoading}})],1),t("div",[t("p",{staticClass:"my-2 text-center text-xs lg:my-0"},[t("span",[e._v(e._s(e.$t("ClickingAgreeTermsGhost"))+" ")]),t("a",{staticClass:"font-bold text-primary underline",on:{click:e.onClickTermsNConditions}},[e._v(e._s(e.$t("TermsAndConditions")))])])])],1)])])]):e._e(),2===e.currentStep?t("div",{staticClass:"flex flex-col items-center justify-center px-8 lg:space-s-4 lg:mx-10"},[e.hasCommitments?t("div",{staticClass:"flex justify-center flex-col items-center max-w-lg"},[t("GhostSuccess",{attrs:{plan:e.selectedGhostPlan,"back-to-home":e.onClickBackToHome}})],1):t("div",{staticClass:"max-w-lg font-bold text-center"},[t("div",{staticClass:"text-xl mb-2"},[e._v(" "+e._s(e.$t("OrderSuccessful"))+" ")]),t("div",{staticClass:"mb-16"},[t("div",{staticClass:"flex justify-center"},[t("div",{staticClass:"text-sm me-1"},[e._v(" "+e._s(e.$t("OrderNumber:"))+" ")]),t("div",{staticClass:"text-sm"},[e._v(" "+e._s(e.successOrder?e.successOrder.orderId:"")+" ")])]),e.showDatashareText?t("div",{staticClass:"text-center font-normal mt-1"},[e._v(" "+e._s(e.$t("YourExistingDatashareSIMCardWillContinue"))+" ")]):e._e()]),t("div",{staticClass:"text-center"},[e._v(" "+e._s(e.$t("NextSteps:"))+" ")]),t("div",{staticClass:"text-center font-normal mt-1 text-gray-500"},[e._v(" "+e._s(e.$t("YouWillReceiveEmailWithOrderDetails"))+" ")]),t("div",{staticClass:"px-2 mt-16 w-full"},[t("z-button",{staticClass:"w-full",on:{click:e.onClickBackToHome}},[e._v(" "+e._s(e.$t("BackToDashboard"))+" ")])],1)])]):e._e()]),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":!1,title:e.$t("Error"),message:e.$t("GhostErrorMessage"),"on-modal-cancel":e.onStatusModalCancel}}),t("TnCPopup",{attrs:{"confirm-label":e.$t("Confirm"),type:"payment","on-cancel":()=>e.isTnCPopupActive=!1,"on-confirm":()=>e.isTnCPopupActive=!1},model:{value:e.isTnCPopupActive,callback:function(t){e.isTnCPopupActive=t},expression:"isTnCPopupActive"}})],1)},yg=[],bg=(a("5377"),function(){var e=this,t=e._self._c;return t("div",[e.isGhostCheckout?e._e():t("z-button",{attrs:{size:"small"},on:{click:function(t){return e.addNewAddress()}}},[t("span",{staticClass:"icon-add-1 text-xs pe-4"}),t("span",{staticClass:"capitalize pe-2"},[e._v(e._s(e.$t("AddNewAddress")))])]),t("div",{staticClass:"my-3",class:{"mx-6":e.isGhostCheckout}},[t("div",{staticClass:"flex flex-wrap gap-5"},e._l(e.addresses,(function(a,s){return t("z-radio-button",{key:s,staticClass:"w-36",attrs:{"native-value":s},on:{input:function(t){return e.selectAddress(s)}},model:{value:e.addressRadio,callback:function(t){e.addressRadio=t},expression:"addressRadio"}},[t("div",{staticClass:"h-16 w-full flex flex-col justify-center items-center"},[t("div",{staticClass:"text-lg"},[e._v(e._s(a.address_name))]),a.area?t("div",{staticClass:"text-sm text-gray-500 text-center"},[e._v(" "+e._s(e.getGovsAndAreas().find(e=>e.name===a.governorate).areas.find(e=>e.name===a.area)["name"+("ar"===e.$i18n.locale?"Ar":"")])+" ")]):e._e(),a.block?t("div",{staticClass:"text-xs text-gray-500"},[t("span",[e._v(e._s(`${e.$t("Block")} ${a.block}`))]),a.street?t("span",[e._v(e._s(` - ${e.$t("Street")} ${a.street}`))]):e._e()]):e._e()])])})),1)]),e.isGhostCheckout||e.addresses.length||e.currentAddress?e._e():t("div",{staticClass:"w-full rounded-lg border border-gray-200 px-6 py-12 text-center text-gray-700 shadow-sm"},[t("div",{staticClass:"icon-home-delivery my-3 text-7xl"}),t("p",[e._v(e._s(e.$t("NoAddresses")))])]),e.currentAddress?t("div",{staticClass:"overflow-hidden rounded-md",class:[!e.isShadowless&&"shadow-xl drop-shadow-2xl"]},[e.isGhostCheckout?e._e():t("g-map",{attrs:{"lat-lng":{lat:e.currentAddress.latitude,lng:e.currentAddress.longitude},reset:e.resetMapPos},on:{clicked:t=>e.mapClicked(e.currentAddress,t)}}),t("validation-observer",{ref:"addressForm",staticClass:"mt-3 grid w-full gap-6 p-6 md:grid-cols-2",attrs:{tag:"div"}},[e.isGhostCheckout?e._e():t("z-input-with-validation",{staticClass:"w-full",attrs:{rules:"required|max:55",autocomplete:"address-name","is-no-validation-same-value-mode":!0,label:e.$t("AddressName")},model:{value:e.currentAddress.address_name,callback:function(t){e.$set(e.currentAddress,"address_name",t)},expression:"currentAddress.address_name"}}),e.isGhostCheckout?e._e():t("div"),t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{attrs:{label:e.$t("Governorate"),required:"","is-border":!1},on:{input:function(t){e.currentAddress.area=""}},model:{value:e.currentAddress.governorate,callback:function(t){e.$set(e.currentAddress,"governorate",t)},expression:"currentAddress.governorate"}},e._l(e.getGovsAndAreas(),(function(a,s){return t("option",{key:s,domProps:{value:a.name}},[e._v(" "+e._s(a["name"+("ar"===e.$i18n.locale?"Ar":"")])+" ")])})),0)],1)]}}],null,!1,959043188)}),e.currentAddress.governorate&&e.getGovsAndAreas().find(t=>t.name===e.currentAddress.governorate)?t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{attrs:{required:"",label:e.$t("Area")},model:{value:e.currentAddress.area,callback:function(t){e.$set(e.currentAddress,"area",t)},expression:"currentAddress.area"}},e._l(e.getGovsAndAreas().find(t=>t.name===e.currentAddress.governorate).areas,(function(a,s){return t("option",{key:s,domProps:{value:a.name}},[e._v(" "+e._s(a["name"+("ar"===e.$i18n.locale?"Ar":"")])+" ")])})),0)],1)]}}],null,!1,2779644971)}):e._e(),t("z-input-with-validation",{staticClass:"w-full",attrs:{rules:"required|max:5",autocomplete:"block","is-no-validation-same-value-mode":!0,label:e.$t("Block")},model:{value:e.currentAddress.block,callback:function(t){e.$set(e.currentAddress,"block",t)},expression:"currentAddress.block"}}),t("z-input-with-validation",{staticClass:"w-full",attrs:{rules:"required|max:55",autocomplete:"street-number","is-no-validation-same-value-mode":!0,label:e.$t("Street")},model:{value:e.currentAddress.street,callback:function(t){e.$set(e.currentAddress,"street",t)},expression:"currentAddress.street"}}),t("z-input-with-validation",{staticClass:"w-full",attrs:{rules:"required|numeric|max:55",autocomplete:"building-name","is-no-validation-same-value-mode":!0,label:e.$t("Building")},model:{value:e.currentAddress.building_name,callback:function(t){e.$set(e.currentAddress,"building_name",t)},expression:"currentAddress.building_name"}}),t("z-input",{staticClass:"w-full",attrs:{autocomplete:"avenue",label:e.$t("Avenue")},model:{value:e.currentAddress.avenue,callback:function(t){e.$set(e.currentAddress,"avenue",t)},expression:"currentAddress.avenue"}}),t("validation-provider",{attrs:{rules:"required"},scopedSlots:e._u([{key:"default",fn:function({errors:a}){return[t("z-field",{attrs:{message:a[0],type:{danger:a[0]}}},[t("z-select",{attrs:{required:"",label:e.$t("UnitType"),"is-border":!1},model:{value:e.currentAddress.unit_type,callback:function(t){e.$set(e.currentAddress,"unit_type",t)},expression:"currentAddress.unit_type"}},[t("option",{attrs:{value:"House"}},[e._v(e._s(e.$t("House")))]),t("option",{attrs:{value:"Apartment"}},[e._v(e._s(e.$t("Apartment")))]),t("option",{attrs:{value:"Office"}},[e._v(" "+e._s(e.$t("Office")))])])],1)]}}],null,!1,2616042888)}),t("z-input",{staticClass:"w-full",attrs:{autocomplete:"floor",label:e.$t("Floor")},model:{value:e.currentAddress.floor,callback:function(t){e.$set(e.currentAddress,"floor",t)},expression:"currentAddress.floor"}}),t("z-input",{staticClass:"w-full md:col-span-2",attrs:{autocomplete:"off","input-type":"textarea",type:"textarea",label:e.$t("Directions")},model:{value:e.currentAddress.directions,callback:function(t){e.$set(e.currentAddress,"directions",t)},expression:"currentAddress.directions"}}),e.isGhostCheckout&&!e.currentAddress.address_id?t("div",[t("div",{staticClass:"text-sm px-3 md:px-0 py-3 rounded-lg border md:rounded-none md:border-none flex items-center gap-2"},[t("ZCheckBox",{attrs:{size:"small"},model:{value:e.isGhostSaveAddress,callback:function(t){e.isGhostSaveAddress=t},expression:"isGhostSaveAddress"}}),e._v(" "+e._s(e.$t("SaveAddress"))+" ")],1),t("z-input-with-validation",{directives:[{name:"show",rawName:"v-show",value:e.isGhostSaveAddress,expression:"isGhostSaveAddress"}],staticClass:"w-full",attrs:{rules:{required:e.isGhostSaveAddress,max:55},autocomplete:"address-name","is-no-validation-same-value-mode":!0,label:e.$t("AddressName")},model:{value:e.currentAddress.address_name,callback:function(t){e.$set(e.currentAddress,"address_name",t)},expression:"currentAddress.address_name"}})],1):e._e()],1),t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isGhostCheckout||0===e.addresses.length,expression:"(!isGhostCheckout || addresses.length === 0)"}],staticClass:"mb-6 flex px-6 space-s-5"},[t("z-button",{attrs:{size:"small"},on:{click:function(t){return e.onSaveAddress(e.currentAddress)}}},[e._v(" "+e._s(e.isAutoSelectIfSaved?e.$t("SaveAndSelectAddress"):e.$t("SaveAddress"))+" ")]),e.currentAddress.address_id?t("z-button",{attrs:{outlined:"",size:"small"},on:{click:function(t){return e.onDeleteAddress(e.currentAddress.address_id)}}},[e._v(" "+e._s(e.$t("DeleteAddress"))+" ")]):e._e()],1)],1):e._e()],1)}),xg=[],Cg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-full",class:[e.height],attrs:{id:"map"}})},wg=[],_g={name:"GMap",props:{latLng:{type:Object,default:()=>({lat:29.31,lng:47.933})},center:{type:Object,default:()=>({lat:29.30219095817784,lng:47.927624441450455})},reset:Boolean,height:{type:String,default:"h-80"}},data(){return{map:null,tryCount:0,maxTries:3,localLatLng:Object.assign({},this.latLng),marker:null}},methods:{render(){var e,t,a;null!==(e=window)&&void 0!==e&&null!==(t=e.google)&&void 0!==t&&null!==(a=t.maps)&&void 0!==a&&a.Map?this.initMap():this.tryCountthis.render(),500)):this.$emit("loaded",!1)},initMap(){let e=new window.google.maps.Map(document.getElementById("map"),{center:this.center,zoom:9});this.marker=new window.google.maps.Marker({title:"Click the map to set Address",draggable:!0,animation:window.google.maps.Animation.DROP,map:e,position:this.latLng});let t=this;e.addListener("click",e=>{t.$emit("clicked",{markerClick:!0,...e.latLng.toJSON()}),t.localLatLng=e.latLng.toJSON(),t.updateMarker()}),this.map=e,this.$emit("loaded",!0)},updateMarker(){this.marker.setPosition(this.localLatLng)},resetPanAndZoom(){this.map.panTo(this.center),this.map.setZoom(9)},resetMap(){this.updateMarker(),this.resetPanAndZoom()}},watch:{latLng:function(e){this.reset&&(this.localLatLng=e,this.map.panTo(this.center),this.map.setZoom(9),this.updateMarker())}},mounted(){const e=this;this.$loadScript("https://maps.googleapis.com/maps/api/js?key=AIzaSyDSmj_0CNja3TjCMcsR-p0mVo47b-DmAAc&v=weekly").then((function(){e.render()})).catch(()=>e.$emit("loaded",!1))}},Ag=_g,Sg=Object(v["a"])(Ag,Cg,wg,!1,null,"021f3512",null),Tg=Sg.exports,kg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-full h-10 w-full flex flex-row items-center relative"},[e._t("default")],2)},Pg=[],$g={props:{value:{type:Number,default:0}},name:"ZStepper"},Mg=$g,Og=Object(v["a"])(Mg,kg,Pg,!1,null,"eba1b7ea",null),Ng=Og.exports,Eg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"w-1/2 h-px py-0.5 top-1/2",class:[e.isCurrentStep?"bg-primary":"bg-gray-200"]},[t("div",{staticClass:"rounded rounded-full h-6 w-6 flex flex-col justify-center relative mx-auto transform -translate-y-1/2",class:[e.isCurrentStep?" bg-primary":"bg-gray-200"]},[t("div",{staticClass:"text-white icon-check-mark-button text-center"})]),t("div",{staticClass:"text-center text-gray-500"},[e._t("default")],2)])},Dg=[],Ig={props:{step:{type:Number,default:0}},name:"ZStepperStep",computed:{isCurrentStep(){return this.$parent.value===this.step}}},Bg=Ig,Lg=Object(v["a"])(Bg,Eg,Dg,!1,null,"0a39cf48",null),Rg=Lg.exports;const Ug=a("5f5a");var zg={components:{ZCheckBox:Dv,ValidationObserver:re["a"],ZInputWithValidation:fi,ValidationProvider:re["b"],ZField:ya,ZSelect:A,GMap:Tg,ZButton:R,ZRadioButton:ea},mixins:[se],name:"MySavedAddresses",props:{isShadowless:{type:Boolean,default:!1},isAutoSelectIfSaved:{type:Boolean,default:!1},isGhostCheckout:{type:Boolean,default:!1}},data(){return{addressRadio:null,currentAddress:null,resetMapPos:!0,isGhostSaveAddress:!1}},computed:{addresses(){var e,t;return null!==(e=null===(t=this.$store.state[ae["b"].ADDRESS])||void 0===t?void 0:t.data)&&void 0!==e?e:[]}},methods:{addNewAddress(){var e;this.currentAddress={},this.currentAddress.contact_number1=null!==(e=this.$store.state.msisdn)&&void 0!==e?e:"",this.currentAddress.email=this.$store.getters.getEmail,this.addressRadio=null,this.$nextTick(()=>this.$refs.addressForm.reset())},async onSaveAddress(e){const t=this,a=await this.$refs.addressForm.validate();if(a)if(null!==e&&void 0!==e&&e.address_id){const a=await G["a"].updateAddress(e.address_id,e);a.data.isSuccess?(await t.$store.dispatch("fetchResource",{resource:ae["b"].ADDRESS,force:!0}),t.$zcl.modal.open({parent:this,canConfirm:!0,content:this.$t("AddressUpdated")})):(t.$zcl.modal.open({parent:this,canConfirm:!0,content:"Address Update Error "+a.data.message}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error updating address"}})),await this.$store.dispatch("fetchResource",ae["b"].ADDRESS)}else{const a=await G["a"].addAddress({...e,is_default:!0});if(a.data.isSuccess){if(await t.$store.dispatch("fetchResource",{resource:ae["b"].ADDRESS,force:!0}),this.isAutoSelectIfSaved?(t.addressRadio=0,this.$emit("on-select-address",this.currentAddress)):(t.currentAddress=null,t.addressRadio=null),this.isGhostCheckout)return;t.$zcl.modal.open({parent:this,canConfirm:!0,content:this.$t("AddressCreated")})}else t.$zcl.modal.open({parent:this,canConfirm:!0,content:"Address Create Error "+a.data.message}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error creating address"}})}},async onDeleteAddress(e){const t=this;this.$zcl.modal.open({parent:this,canConfirm:!0,canCancel:!0,cancelLabel:"Cancel",onConfirm:async()=>{const a=await G["a"].deleteAddress(e);a.data.isSuccess?(await t.$store.dispatch("fetchResource",{resource:ae["b"].ADDRESS,force:!0}),t.$zcl.modal.open({parent:this,canConfirm:!0,content:this.$t("AddressDeleted")}),t.currentAddress=null):(t.$zcl.modal.open({parent:this,canConfirm:!0,content:"Address Delete Error "+a.data.message}),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error deleting address"}}))},component:{template:'
Confirm Delete Address
'}})},selectAddress(e){this.$nextTick(()=>this.$refs.addressForm.reset()),this.resetMapPos=!0,this.currentAddress=JSON.parse(JSON.stringify(this.addresses[e])),this.$emit("on-select-address",this.currentAddress),this.$nextTick(()=>this.currentAddress.area=this.addresses[e].area)},mapClicked(e,t){this.resetMapPos=!1,this.currentAddress.latitude=t.lat,this.currentAddress.longitude=t.lng},getGovsAndAreas(){return Ug}},async beforeMount(){await this.initStateResources(ae["b"].ADDRESS)},mounted(){var e;this.isGhostCheckout&&(this.currentAddress={},this.currentAddress.contact_number1=null!==(e=this.$store.state.msisdn)&&void 0!==e?e:"",this.currentAddress.email=this.$store.getters.getEmail,this.addressRadio=null,this.$nextTick(()=>this.$refs.addressForm.reset()))}},jg=zg,Fg=Object(v["a"])(jg,bg,xg,!1,null,"230ba3cd",null),Vg=Fg.exports,Hg={name:"GhostCheckout",components:{ZLoading:Je,GhostSuccess:al,TnCPopup:tr,StatusModal:Ps,ZInputWithValidation:fi,ValidationObserver:re["a"],ZInput:H,ZStepper:Ng,ZStepperStep:Rg,MySavedAddresses:Vg,ZButton:R,ZSelect:A},mixins:[ws],data(){return{isDrawerExpanded:!1,isShowDrawer:!0,currentStep:1,isUserHasNoAddresses:!1,isStatusModalActive:!1,isTnCPopupActive:!1,successOrder:{},isMounted:!1,isPlaceOrderLoading:!1,optionalTimeSlots:[{from:"10:00AM",to:"12:00PM",value:"10:00"},{from:"12:00PM",to:"02:00PM",value:"12:00"},{from:"02:00PM",to:"04:00PM",value:"14:00"},{from:"04:00PM",to:"06:00PM",value:"16:00"},{from:"06:00PM",to:"08:00PM",value:"18:00"},{from:"08:00PM",to:"10:00PM",value:"20:00"}]}},computed:{isArabicLang(){return"ar"===this.$i18n.locale},getDrawerIconPath(){return this.isDrawerExpanded?a("3cbd"):a("1b9d")},isFormValid(){var e,t,a;return null===(e=this.$refs)||void 0===e||null===(t=e.observer)||void 0===t||null===(a=t.flags)||void 0===a?void 0:a.valid},isDeliveryStepValid(){var e,t,a,s,i;if(!this.isMounted)return!1;const n=this.$store.state.ghostPostpaid.selectedDeliveryType!==this.deliveryTypes.STANDARD||null!==this.$store.state.ghostPostpaid.selectedDeliveryDate&&""!==this.$store.state.ghostPostpaid.selectedDeliveryTime,r=null===(e=null===(t=this.$refs.mySavedAdresses)||void 0===t||null===(a=t.$refs)||void 0===a||null===(s=a.addressForm)||void 0===s||null===(i=s.flags)||void 0===i?void 0:i.valid)||void 0===e||e,o=!!this.hasCommitments||r;return o&&n&&this.isFormValid},selectedGhostPlan(){var e,t,a;return null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(a=t.ghostPostpaid)||void 0===a?void 0:a.selectedGhostPlan},deliveryTypes(){return Il["a"]},hasCommitments(){const e=0===this.getPlanBenefits(this.selectedGhostPlan).filter(e=>e.name.toLowerCase().includes("sim")).length;return this.$store.getters.hasCommitments&&(this.hasDataSharing||e&&ja["a"].GhostPostpaidDataShareEnabled)},hasDataSharing(){return this.$store.getters.isDataSharing&&"Data"===this.$store.getters.getBasicServiceType&&ja["a"].GhostPostpaidDataShareEnabled},showDatashareText(){return!this.$store.getters.hasCommitments&&this.hasDataSharing&&0!==this.getPlanBenefits(this.selectedGhostPlan).filter(e=>e.name.toLowerCase().includes("sim")).length}},methods:{async onClickPlaceOrder(){if(this.isDeliveryStepValid&&!this.isPlaceOrderLoading){if(this.isPlaceOrderLoading=!0,!this.hasCommitments){var e,t,a,s;const o=null===(e=this.$refs)||void 0===e||null===(t=e.mySavedAdresses)||void 0===t?void 0:t.isGhostSaveAddress;var i,n,r;if(o)await(null===(i=this.$refs)||void 0===i||null===(n=i.mySavedAdresses)||void 0===n?void 0:n.onSaveAddress(null===(r=this.$store.state.ghostPostpaid)||void 0===r?void 0:r.selectedAddress));this.$store.state.ghostPostpaid.selectedAddress=null===(a=this.$refs)||void 0===a||null===(s=a.mySavedAdresses)||void 0===s?void 0:s.currentAddress}try{var o,l;let e;e=this.$store.state.ghostPostpaid.isUpsell?await this.$store.dispatch("ghostPostpaid/changePlanWithPartnerService"):"Data"===this.$store.getters.getBasicServiceType?await this.$store.dispatch("ghostPostpaid/changePlan"):await this.$store.dispatch("ghostPostpaid/createNewSubscription");const t=e.data.isSuccess;if(this.isPlaceOrderLoading=!1,!t)return this.isStatusModalActive=!0;this.successOrder=null===(o=e)||void 0===o||null===(l=o.data)||void 0===l?void 0:l.omniResult,setTimeout(()=>this.$store.state[ae["b"].GHOST_ORDERS].isDirty=!0,3e3),this.currentStep=2,this.scrollToTop()}catch(c){this.isPlaceOrderLoading=!1,this.isStatusModalActive=!0,console.error(c),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error ghost order failed"}})}this.isPlaceOrderLoading=!1}},onSelectAddress(e){this.$store.state.ghostPostpaid.selectedAddress=e},getPlanBenefits(e){var t;return null!==(t=null===e||void 0===e?void 0:e.benefits)&&void 0!==t?t:[]},getPlanChildServices(e){var t;return null!==(t=null===e||void 0===e?void 0:e.child_services)&&void 0!==t?t:[]},getPlanDevices(e){var t;return null!==(t=null===e||void 0===e?void 0:e.devices)&&void 0!==t?t:[]},onClickBackToHome(){this.$router.push("/")},onStatusModalCancel(){this.isStatusModalActive=!1},onClickTermsNConditions(){this.isTnCPopupActive=!0},scrollToTop(){const e=ae["a"].state.fixedScrollContainerIsActive?document.getElementById("app"):window;e&&e.scrollTo({top:0,behavior:"smooth"})}},watch:{},beforeMount(){var e,t;this.isUserHasNoAddresses=0===(null===(e=this.$store.state[ae["b"].ADDRESS])||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)},async mounted(){var e,t;if(!this.selectedGhostPlan.id)return this.$router.push("/plan-details");this.hasCommitments||(this.$store.state.ghostPostpaid.selectedAddress=this.$refs.mySavedAdresses.currentAddress),this.$store.state.ghostPostpaid.email="",this.$store.state.ghostPostpaid.msisdn="";const a=[null===(e=this.$refs)||void 0===e||null===(t=e.observer)||void 0===t?void 0:t.reset];var s,i,n;this.$store.getters.getEmail&&(this.$store.state.ghostPostpaid.email=null===(s=this.$store.getters)||void 0===s?void 0:s.getEmail,a.push(null===(i=this.$refs)||void 0===i||null===(n=i.emailInput)||void 0===n?void 0:n.onBlur));setTimeout(async()=>{a.forEach(e=>e())},500),this.isMounted=!0}},Gg=Hg,Zg=Object(v["a"])(Gg,fg,yg,!1,null,null,null),qg=Zg.exports,Kg=a("58ca"),Yg=function(){var e=this,t=e._self._c;return t("div",[e._m(0),t("div",{staticClass:"mx-auto max-w-5xl relative min-h-64 p-6"},[t("div",{staticClass:"flex justify-center flex-col items-center space-y-4"},[t("ZHeading",{staticClass:"max-w-xs text-center"},[e._v(" "+e._s(e.$t("ConfirmYourAccountDetails"))+" ")]),t("ValidationObserver",{ref:"observer",staticClass:"mt-3 grid w-full gap-6 max-w-sm"},[t("z-input-with-validation",{ref:"email",attrs:{rules:"required|email",label:e.$t("Email"),placeholder:e.$t("EnterEmailAddress"),"input-classes":""+(e.email.disabled?"opacity-70":""),disabled:e.email.disabled},scopedSlots:e._u([{key:"right",fn:function(){return[t("div",{directives:[{name:"show",rawName:"v-show",value:e.email.disabled,expression:"email.disabled"}],staticClass:"flex items-center",attrs:{role:"button"},on:{click:function(t){return e.onClickEdit("email")}}},[t("span",{staticClass:"icon-pencil text-xl text-primary"})])]},proxy:!0}]),model:{value:e.email.value,callback:function(t){e.$set(e.email,"value",t)},expression:"email.value"}}),t("z-input-with-validation",{attrs:{rules:"required|kuwait_msisdn",label:e.$t("PreferredContactNumber"),placeholder:e.$t("EnterMobileNumber"),"input-classes":""+(e.msisdn.disabled?"opacity-70":""),disabled:e.msisdn.disabled},scopedSlots:e._u([{key:"right",fn:function(){return[t("div",{directives:[{name:"show",rawName:"v-show",value:e.msisdn.disabled,expression:"msisdn.disabled"}],staticClass:"flex items-center",attrs:{role:"button"},on:{click:function(t){return e.onClickEdit("msisdn")}}},[t("span",{staticClass:"icon-pencil text-xl text-primary"})])]},proxy:!0}]),model:{value:e.msisdn.value,callback:function(t){e.$set(e.msisdn,"value",t)},expression:"msisdn.value"}})],1),t("ZButton",{staticClass:"w-full max-w-sm uppercase",on:{click:e.onClickConfirm}},[e._v(" "+e._s(e.$t("Confirm"))+" ")])],1)]),t("status-modal",{attrs:{"is-status-modal-active":e.isStatusModalActive,"is-success":!1,title:e.$t("AnErrorOccurred"),message:e.$t("RequestError"),"on-modal-cancel":e.onStatusModalCancel}})],1)},Wg=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"h-32 bg-gradient-to-tr from-app-teal to-app-dark-teal flex justify-center items-center"},[t("img",{staticClass:"w-32 pt-4",attrs:{src:a("ca9b")}})])}],Qg={name:"GhostLanding",components:{StatusModal:Ps,ZHeading:vn,ZButton:R,ZInputWithValidation:fi,ValidationObserver:re["a"]},computed:{transactionId(){var e,t,a;return null!==(e=null===(t=this.$route)||void 0===t||null===(a=t.query)||void 0===a?void 0:a.transactionId)&&void 0!==e?e:""}},data(){return{email:{value:"",disabled:!0},msisdn:{value:"",disabled:!0},isStatusModalActive:!1}},methods:{async onClickConfirm(){const e=await this.$refs.observer.validate();if(e)try{await G["a"].updateGhostSubscriptionNotification({msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber,transactionId:this.transactionId,notificationArray:[{notification_type:"Email",notification_value:this.email.value},{notification_type:"Sms",notification_value:this.msisdn.value}]})}catch(t){this.isStatusModalActive=!0,console.error(t),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error updating ghost user subscription"}})}},async fetchSubscriptionNotification(){try{const e=await G["a"].getGhostSubscriptionNotification({msisdn:this.$store.state.msisdn,contractNumber:this.$store.state.contractNumber,transactionId:this.transactionId});this.email.value=e.data.result.find(e=>"Email"===e.notification_type).notification_value,this.msisdn.value=e.data.result.find(e=>"Sms"===e.notification_type).notification_value}catch(e){this.isStatusModalActive=!0,console.error(e),Ea["default"].addEvent({event_name:"Error Message Appeared",custom_attributes:{channel:"",ErrorMessage:"Error getting subscription notification"}})}},onClickEdit(e){this[e].disabled=!1},onStatusModalCancel(){this.isStatusModalActive=!1,this.$router.push("/")}},mounted(){this.transactionId?this.fetchSubscriptionNotification():this.isStatusModalActive=!0}},Xg=Qg,Jg=Object(v["a"])(Xg,Yg,Wg,!1,null,"41d50962",null),ef=Jg.exports,tf=function(){var e=this,t=e._self._c;return t("div",{staticClass:"p-3 mt-3 max-w-3xl mx-auto"},[t("div",{staticClass:"flex justify-center flex-col min-h-96"},[t("p",{staticClass:"font-bold mb-3"},[e._v(" "+e._s(e.$t("VerifyYourIdentity"))+" ")]),t("p",{staticClass:"font-bold mb-3"},[e._v(" "+e._s(e.$t("YouMustBeContractHolder"))+" ")]),t("p",{staticClass:"mb-3 text-sm text-gray-500"},[e._v(" "+e._s(e.$t("PaciNotificationDisclaimer"))+" ")]),t("ValidationObserver",{ref:"observer",staticClass:"mb-3"},[t("z-input-with-validation",{attrs:{rules:"required|kuwait_civil_id|civil_id_over_18",vid:"civilId",tag:"div",mode:"passive",label:""+e.$t("EnterYourCivilID"),type:"text",disabled:e.isLoading,min:"12",max:"12",placeholder:""+e.$t("CivilIDNumber"),pattern:"[0-9]*"},model:{value:e.civilId,callback:function(t){e.civilId=t},expression:"civilId"}})],1),e.showNoUpdateNeeded?t("div",[t("p",{staticClass:"text-secondary font-bold"},[e._v(" No update needed ")])]):t("z-field",[t("z-button",{staticClass:"w-full",attrs:{loading:e.isLoading,disabled:e.isLoading},on:{click:e.onPressContinue}},[e._v(" "+e._s(e.$t("Continue"))+" ")])],1)],1)])},af=[],sf={name:"UpdateCivilID",components:{ZInputWithValidation:fi,ZButton:R,ZField:ya,ValidationObserver:re["a"]},data(){return{showNoUpdateNeeded:!1,whenToTryAgain:null,isLoading:!1,civilId:""}},methods:{async onPressContinue(){if(this.isLoading)return;if(this.whenToTryAgain&&new Date{this.checkPaciStatus(e)},5e3)},beforeDestroy(){this.removeInterval()}},uf=df,pf=Object(v["a"])(uf,lf,cf,!1,null,"3b3ee574",null),mf=pf.exports;i["a"].use(Kg["a"],{refreshOnceOnNavigation:!0}),i["a"].use(Xs["a"]);const hf=(e=!1)=>async(t,a,s)=>{ae["a"].state.isLoggedIn||ae["a"].state.didTryToLogin||ae["a"].state.lockedModeActive||(ae["a"].state.globalLoading=!0,await Object(Es["a"])(ae["a"],e,t.fullPath)),s()},vf=async(e,t,a)=>{function s(){ae["a"].state.isLoggedIn||"/pay"===e.path?a():yf.push("/")}ae["a"].state.isLoggingIn?ae["a"].watch(e=>e.isLoggingIn,e=>{e||s()}):s()},gf=e=>async(t,a,s)=>{ae["a"].getters.getBillingType!==e?await yf.push("/"):s()},ff=[{path:"/",name:"Home",component:Hd,beforeEnter:hf(!1)},{path:"/temporary-down",name:"Temporary Down",component:Us},{path:"/login/result",name:"Login Result",component:Hd},{path:"/pay",name:"QuickPay",component:Bd,beforeEnter:vf},{path:"/profile",name:"Profile",component:hu,beforeEnter:vf},{path:"/plan",name:"Plan",component:Th,beforeEnter:vf},{path:"/flexi-edit-plan",name:"Flexi Edit Plan",props:!0,component:Tv,beforeEnter:xf([vf,gf("Prepaid")])},{path:"/usage",name:"Usage",component:Yp,beforeEnter:vf},{path:"/call-history/:monthValue",name:"Call History",component:Rv,beforeEnter:vf},{path:"/bills",name:"Bills",component:tp,beforeEnter:xf([vf,gf("Postpaid")])},{path:"/offers",name:"Offers",component:dg},{path:"/payment",name:"QuickPay Result",component:au,beforeEnter:hf(!0)},{path:"/auto-pay",name:"Autopay",component:tm,beforeEnter:xf([vf,gf("Postpaid")])},{path:"/auto-recharge",name:"AutoRecharge",component:Nh,beforeEnter:xf([vf,gf("Prepaid")])},{path:"/creditTransfer",name:"Credit Transfer",component:bp,beforeEnter:vf},{path:"/LimitUsage",name:"Limit Usage",component:Sp,beforeEnter:vf},{path:"/inbox",name:"Inbox",component:Xv,beforeEnter:vf},{path:"/inbox/message",name:"Inbox Message",component:ig,beforeEnter:vf},{path:"/plan-details",name:"Ghost",component:gg,beforeEnter:xf([vf,gf("Postpaid")])},{path:"/plan-details/checkout",name:"Ghost Checkout",component:qg,beforeEnter:xf([vf,gf("Postpaid")])},{path:"/max",name:"Ghost Landing",component:ef},{path:"/update-civil-id",name:"Update Civil ID",component:of,beforeEnter:hf(!1)},{path:"/verify-civil-id",name:"Verify Civil ID",component:mf,beforeEnter:hf(!0)},{path:"/:pathMatch(.*)*",beforeEnter:async(e,t,a)=>{await hf(!0)(e,t,a),ae["a"].state.pathParam=e.path.replaceAll("/",""),a("/")}}],yf=new Xs["a"]({mode:"history",base:"/",routes:ff});yf.beforeEach((e,t,a)=>{const s=ae["a"].state.fixedScrollContainerIsActive?document.getElementById("app"):window;s&&s.scrollTo({top:0,behavior:"smooth"}),a()});var bf=yf;function xf(e){return async(t,a,s)=>{let i=!1;const n=function(e){i||"undefined"!=typeof e&&(i=!0,s(e))};for(let r=0;r{requestAnimationFrame(()=>{requestAnimationFrame(e)})},wf=e=>{if(!e||"function"!==typeof e)return new Promise(e=>{Cf(e)});Cf(e)};var _f=wf;const Af=e=>{"undefined"!==typeof window&&window.Vue&&window.Vue.use(e)},Sf=(e,t,a)=>{e.prototype.$zcl||(e.prototype.$zcl={}),e.prototype.$zcl[t]=a};let Tf;const kf={open(e){let t;"string"===typeof e&&(e={content:e});const a={programmatic:!0};let s;e.parent&&(t=e.parent,delete e.parent),Array.isArray(e.content)&&(s=e.content,delete e.content);const i=Pe(a,e),n="undefined"!==typeof window&&window.Vue?window.Vue:Tf||$e,r=n.extend(Be),o=new r({parent:t,el:document.createElement("div"),propsData:i});return s&&(o.$slots.default=s,o.$forceUpdate()),o}},Pf={install(e){Tf=e,Sf(e,"modal",kf)}};Af(Pf);var $f=Pf;const Mf=function(e){Object.entries(s).forEach(([t,a])=>{e.component(t,a)}),e.prototype.$uuid=()=>([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)),e.$forceNextTick=_f,e.prototype.$forceNextTick=_f,$f.install(e)};var Of=Mf,Nf=(a("a347"),a("5ac8"),a("9225")),Ef=a("4c93");function Df(e){let t,a=0,s=!1,i=e.length-1;while(i>=0)t=parseInt(e.charAt(i),10),s&&(t*=2,t>9&&(t=t%10+1)),s=!s,a+=t,i--;return a%10===0}Object(re["c"])({defaultMessage:(e,t)=>Nf["a"].t("validation."+t._rule_,t)}),Object(re["d"])("required",Ef["i"]),Object(re["d"])("length",Ef["e"]),Object(re["d"])("email",Ef["d"]),Object(re["d"])("confirmed",Ef["b"]),Object(re["d"])("min",Ef["g"]),Object(re["d"])("max",Ef["f"]),Object(re["d"])("numeric",Ef["h"]),Object(re["d"])("cvv",{validate(e){const t=e.replace(/ /g,"");return t.length>=3}}),Object(re["d"])("credit_card",{validate(e){const t=e.replace(/ /g,"");return!!t.includes("XXXXXX")||Df(t)}}),Object(re["d"])("kuwait_msisdn",{validate(e){const t=e.replace(/ /g,"");return 8===t.length}}),Object(re["d"])("pay_amount",{validate(e){return!(e<1||e>5e3)}}),Object(re["d"])("pay_amount_prepaid",{validate(e){return!(e<1.49999||e>80)}}),Object(re["d"])("terminated_other_amount",{validate(e){return!(e<30||e>5e3)}}),Object(re["d"])("credit_transfer_amount",{validate(e){return Math.round(1e3*e%100*1e4)/1e4===0},message:"credit_transfer_amount should be in increments of 100 fils"}),Object(re["d"])("zain_contract",{validate:async e=>{if(!e)return!1;try{let{data:t}=await ae["a"].dispatch("callApi",{apiMethod:G["a"].contractValid,args:{contractNumber:e}});return t.isValid}catch(t){return console.error(t),!1}}}),Object(re["d"])("quickpay_captcha",{validate(e){return!!e&&ae["a"].state.quickPay.captchaVerified}}),Object(re["d"])("zain_msisdn",{validate:async e=>{if(!e)return!1;if(8!==e.length)return!1;try{let{data:t}=await ae["a"].dispatch("callApi",{apiMethod:G["a"].subscriberTypeQuery,args:{msisdn:e,contractNumber:"anonymous"}});return!!t}catch(t){return console.error(t),!1}}}),Object(re["d"])("zain_prepaid_msisdn",{validate:async e=>{if(e=e.toString(),!e)return!1;if(8!==e.length)return!1;try{let{data:t}=await ae["a"].dispatch("callApi",{apiMethod:G["a"].subscriberTypeQuery,args:{msisdn:e,contractNumber:"anonymous"}});return t&&"Prepaid"===(null===t||void 0===t?void 0:t.BillingType)}catch(t){return console.error(t),!1}}}),Object(re["d"])("digits",Ef["c"]),Object(re["d"])("between",Ef["a"]),Object(re["d"])("not_the_same",{params:["target"],validate(e,{target:t}){return e!==t}}),Object(re["d"])("kuwait_civil_id",{validate(e){const t=e;if(!t)return!1;if(!/^\d+$/.test(t))return!1;if(12!==t.length)return!1;let a=parseInt(t.substr(3,2)),s=parseInt(t.substr(5,2));if(a>12||a<1||s>31||s<1)return!1;let i=[2,1,6,3,7,9,10,5,8,4,2],n=0;for(let r=0;r<11;r++)n+=parseInt(t[r])*i[r];return 11-n%11===parseInt(t.substr(11,1))}}),Object(re["d"])("civil_id_over_18",{validate(e){const t=(new Date).getFullYear(),a=e,s=a.substring(1,3),i=a.substring(0,1);let n;n="2"===i?parseInt("19"+s):parseInt("20"+s);const r=t-n;return r>18}});var If=a("67b0"),Bf=a("caf9"),Lf=a("8a39"),Rf=a("1ddb"),Uf=a("688d");i["a"].use(Bf["a"]),i["a"].use(If["a"]),i["a"].use(Of),i["a"].config.productionTip=!1,Lf["a"]({Vue:i["a"],dsn:"https://76aa79abe555415ab6c56e43c40d4df8@o1196450.ingest.sentry.io/6319492",environment:"production",release:"my-zain-fe@1.0.0",integrations:[new Uf["a"]({routingInstrumentation:Rf["a"](bf),tracingOrigins:["myzain.kw.zain.com",/^\//]})],tracesSampleRate:.3}),i["a"].prototype.$myZainApi=async function(e,t){return this.$store.dispatch("callApi",{apiMethod:e,args:t})},new i["a"]({i18n:Nf["a"],router:bf,store:ae["a"],render:e=>e(Qs)}).$mount("#app")},5721:function(e,t,a){e.exports=a.p+"img/Frame 5278.ba646ff7.png"},"587d":function(e,t,a){e.exports=a.p+"img/plans-icon.5f138260.svg"},"58f0":function(e,t,a){e.exports=a.p+"img/extra-youtubee.ac7461e7.svg"},"5ac8":function(e,t,a){},"5bf0":function(e,t,a){e.exports=a.p+"img/checkout.4c4549a9.svg"},"5c1c":function(e,t,a){e.exports=a.p+"img/tw.e3d596c5.svg"},"5c5b":function(e,t,a){},"5cb9":function(e,t,a){e.exports=a.p+"img/globe.7b796464.svg"},"5d23":function(e,t,a){},"5d45":function(e,t,a){"use strict";a("29f5")},"5da2":function(e,t,a){},"5df0":function(e,t,a){e.exports=a.p+"img/tootip-img.21bcbe9f.svg"},"5e42":function(e,t,a){e.exports=a.p+"img/osn.927acf72.svg"},"5e45":function(e,t,a){e.exports=a.p+"img/broadband.a8573aad.svg"},"5f5a":function(e){e.exports=JSON.parse('[{"name":"Ahmadi","nameAr":"الاحمدي","areas":[{"name":"Abu Halifa","nameAr":"أبو حليفة"},{"name":"Janobyia Aljawakheer","nameAr":"الجواخير الجنوبية"},{"name":"Khiran City","nameAr":"الخيران السكنية"},{"name":"Riqqa","nameAr":"الرقة"},{"name":"Al shadadyia Industrial","nameAr":"الشدادية الصناعيه"},{"name":"Shuaiba Industrial esterly","nameAr":"الشعيبة الصناعية الشرقية"},{"name":"Shuaiba Industrial Western","nameAr":"الشعيبة الصناعية الغربية"},{"name":"Shuaiba","nameAr":"الشعيبة"},{"name":"Sabahiya","nameAr":"الصباحية"},{"name":"Sulaibyia Industrial 3","nameAr":"الصليبية الصناعية 3"},{"name":"Dhaher","nameAr":"الظهر"},{"name":"AQEELAH","nameAr":"العقيلة"},{"name":"Egaila","nameAr":"العقيلة"},{"name":"Fahaheel","nameAr":"الفحيحيل"},{"name":"Al-Fintas","nameAr":"الفنطاس"},{"name":"Magwa","nameAr":"المقوع"},{"name":"Mangaf","nameAr":"المنقف"},{"name":"Al-Nuwaiseeb","nameAr":"النويصيب"},{"name":"Wafra Farms","nameAr":"الوفرة الزراعية"},{"name":"Wafra","nameAr":"الوفرة"},{"name":"Bnaider","nameAr":"بنيدر"},{"name":"SOUTH SHUAIBAH","nameAr":"جنوب الشعيبة"},{"name":"South-Sabahiya","nameAr":"جنوب الصباحية"},{"name":"Shalehat Jleaa","nameAr":"شاليهات الجليعة"},{"name":"Shalehat Al-Khiran","nameAr":"شاليهات الخيران"},{"name":"Shalehat Dbaayeh","nameAr":"شاليهات الدبايه"},{"name":"Shalehat Al-Nuwaiseeb","nameAr":"شاليهات النويصيب"},{"name":"Shalehat Mina Abdullah","nameAr":"شاليهات ميناء عبدالله"},{"name":"East Ahmadi","nameAr":"شرق الأحمدي"},{"name":"North Ahmadi","nameAr":"شمال الأحمدي"},{"name":"NORTH SHUAIBAH","nameAr":"شمال الشعيبة"},{"name":"Sabah Al-Ahmad Investment","nameAr":"صباح الأحمد الاستثمارية"},{"name":"Sabah Al-Ahmad Services","nameAr":"صباح الأحمد الخدماتية"},{"name":"Sabah Al-Ahmad Al-marine","nameAr":"صباح الأحمد المارين"},{"name":"Sabah Al-Ahmad","nameAr":"صباح الأحمد"},{"name":"Ahmadi Governorate Desert","nameAr":"صحراء أحمدي الحكومية"},{"name":"Jaber Al-Ali","nameAr":"ضاحية جابر العلي"},{"name":"Ali Subah Al-Salem","nameAr":"علي صباح السالم"},{"name":"Fahad Al-Ahmad","nameAr":"فهد الأحمد"},{"name":"kabd Agricultural","nameAr":"كبد الزراعيه"},{"name":"Mina Al-Ahmadi Refinery","nameAr":"مصفاة ميناء الأحمدي"},{"name":"Mina Abdullah Refinery","nameAr":"مصفاة ميناء عبدالله"},{"name":"Mina Abdulla","nameAr":"ميناء عبدالله"},{"name":"Hadiya","nameAr":"هدية"},{"name":"Middle of Ahmadi","nameAr":"وسط الأحمدي"}]},{"name":"Jahra","nameAr":"الجهراء","areas":[{"name":"Umm Al-Aish","nameAr":"أم العيش"},{"name":"Amghara Industrial","nameAr":"أمغرة الصناعية"},{"name":"Jahra-Industrial","nameAr":"الجهراء الصناعية"},{"name":"Jahra","nameAr":"الجهراء"},{"name":"Rawdatain","nameAr":"الروضتين"},{"name":"Salmy","nameAr":"السالمي"},{"name":"Sulaibiya Agricultural","nameAr":"الصليبية الزراعية"},{"name":"Sulaibiya","nameAr":"الصليبية الشعبية"},{"name":"Sulaibiya Industrial 1","nameAr":"الصليبية الصناعية 1"},{"name":"Sulaibiya Industrial 2","nameAr":"الصليبية الصناعية 2"},{"name":"Abdally","nameAr":"العبدلي"},{"name":"Oyoun","nameAr":"العيون"},{"name":"Qasr","nameAr":"القصر"},{"name":"Kaerawan","nameAr":"القيروان"},{"name":"Nasseem","nameAr":"النسيم"},{"name":"Naeem","nameAr":"النعيم"},{"name":"Nahda","nameAr":"النهضة"},{"name":"Waha","nameAr":"الواحة"},{"name":"Bhaith","nameAr":"بحيث"},{"name":"Bar Al-Jahra Governorate","nameAr":"بر الجهراء"},{"name":"Taima","nameAr":"تيماء"},{"name":"Jaber Al-Ahmad","nameAr":"جابر الأحمد"},{"name":"South Amghara","nameAr":"جنوب أمغره"},{"name":"SOUTH JAHRA","nameAr":"جنوب الجهراء"},{"name":"SOUTH EAST JAHRA","nameAr":"جنوب شرق الجهراء"},{"name":"Jawakher Al Jahra","nameAr":"جواخير الجهراء"},{"name":"Shalehat Kazima","nameAr":"شاليهات كاظمة"},{"name":"North West Jahra","nameAr":"شمال غرب الجهراء"},{"name":"West Jahra","nameAr":"غرب الجهراء"},{"name":"Kazima","nameAr":"كاظمة"},{"name":"Kabd","nameAr":"كبد"},{"name":"Saad Al-Abdulla City","nameAr":"مدينة سعد العبدالله"},{"name":"Jahra Camps","nameAr":"معسكرات الجهراء"}]},{"name":"Asma","nameAr":"العاصمة","areas":[{"name":"Dasma","nameAr":"الدسمة"},{"name":"Daiya","nameAr":"الدعية"},{"name":"Doha","nameAr":"الدوحة"},{"name":"Rawda","nameAr":"الروضة"},{"name":"Surra","nameAr":"السرة"},{"name":"Shamiya","nameAr":"الشامية"},{"name":"SHWEIKH COMMERCIAL","nameAr":"الشويخ التجارية"},{"name":"Shuwaikh Industrial-1","nameAr":"الشويخ الصناعية 1"},{"name":"Shuwaikh Industrial-2","nameAr":"الشويخ الصناعية 2"},{"name":"Shuwaikh Industrial-3","nameAr":"الشويخ الصناعية 3"},{"name":"SHWEIKH EDUCATIONAL","nameAr":"الشويخ المنطقة التعليمية"},{"name":"SHWEIKH HEALTH","nameAr":"الشويخ المنطقة الصحية"},{"name":"SHWEIKH SEA FRONT","nameAr":"الشويخ الواجهة البحرية"},{"name":"SHWEIKH (B-RESIDENTIAL)","nameAr":"الشويخ"},{"name":"Sulaibikhat","nameAr":"الصليبيخات"},{"name":"Adailiya","nameAr":"العديلية"},{"name":"Faiha","nameAr":"الفيحاء"},{"name":"Qadsiya","nameAr":"القادسية"},{"name":"Qibla","nameAr":"القبلة"},{"name":"Mirqab","nameAr":"المرقاب"},{"name":"Mansouriya","nameAr":"المنصورية"},{"name":"Nuzha","nameAr":"النزهة"},{"name":"Yarmouk","nameAr":"اليرموك"},{"name":"Bnaid Al-Qar","nameAr":"بنيد القار"},{"name":"SOUTH DOHA","nameAr":"جنوب الدوحة"},{"name":"Dasman","nameAr":"دسمان"},{"name":"Sharq","nameAr":"شرق"},{"name":"North west Sulaibekhat","nameAr":"شمال غرب الصليبيخات"},{"name":"Abdulla Al-Salem","nameAr":"ضاحية عبدالله السالم"},{"name":"Ghornata","nameAr":"غرناطة"},{"name":"Qortuba","nameAr":"قرطبة"},{"name":"Kifan","nameAr":"كيفان"},{"name":"Khaldiya","nameAr":"الخالدية"}]},{"name":"Farwaniya","nameAr":"الفروانية","areas":[{"name":"Ashbeliah","nameAr":"أشبيلية"},{"name":"Andalus","nameAr":"الأندلس"},{"name":"COLLECTION DAJEEJ","nameAr":"الاستلام في الضجيج"},{"name":"Rehab","nameAr":"الرحاب"},{"name":"Rai","nameAr":"الري"},{"name":"Al Shadadiya","nameAr":"الشدادية"},{"name":"Ardhiya 4","nameAr":"العارضية 4"},{"name":"ARDIYAH 5","nameAr":"العارضية 5"},{"name":"Ardhiya 6","nameAr":"العارضية 6"},{"name":"Ardhiya Herafiya","nameAr":"العارضية 6"},{"name":"Ardhiya","nameAr":"العارضية"},{"name":"Omariya","nameAr":"العمرية"},{"name":"Ferdous","nameAr":"الفردوس"},{"name":"Farwaniya","nameAr":"الفروانية"},{"name":"International Airport","nameAr":"المطار الدولي"},{"name":"Hijil","nameAr":"الهجن"},{"name":"Khaitan","nameAr":"خيطان"},{"name":"Sabah Al-Nasser","nameAr":"صباح الناصر"},{"name":"Dajeej","nameAr":"ضجيج الطائرات"},{"name":"Abdullah Mubarak Al-Sabah","nameAr":"عبدالله مبارك الصباح"},{"name":"West Abdullah Al-Mubarak","nameAr":"غرب عبدالله المبارك"},{"name":"GERNADA","nameAr":"غرناطه"},{"name":"GERNADA","nameAr":"غرناطه"},{"name":"Sabah Al-Salem University City","nameAr":"مدينة صباح السالم الجامعية"},{"name":"SHIKAH SAAD AIRPORT","nameAr":"مطار سعد العبدالله"},{"name":"Rabiya","nameAr":"الرابية"}]},{"name":"Hawalli","nameAr":"حولي","areas":[{"name":"Anjafa","nameAr":"أنجفة"},{"name":"Al Bidaa","nameAr":"البدع"},{"name":"Jabriya","nameAr":"الجابرية"},{"name":"Rumaithiya","nameAr":"الرميثية"},{"name":"Zahra","nameAr":"الزهراء"},{"name":"Salmiya","nameAr":"السالمية"},{"name":"Salam","nameAr":"السلام"},{"name":"Shaab","nameAr":"الشعب"},{"name":"Shuhada","nameAr":"الشهداء"},{"name":"Al-Siddiq","nameAr":"الصديق"},{"name":"Mubarakyia","nameAr":"المباركية"},{"name":"Bayan","nameAr":"بيان"},{"name":"Hitteen","nameAr":"حطين"},{"name":"Hawalli","nameAr":"حولي"},{"name":"Salwa","nameAr":"سلوى"},{"name":"Mubarak Al-Abdullah","nameAr":"مبارك العبدالله"},{"name":"Mishrif","nameAr":"مشرف"},{"name":"Ministries Area","nameAr":"منطقة الوزارات"},{"name":"MAIDAN HAWALLI","nameAr":"ميدان حولي"}]},{"name":"Mubarak Al-Kabeer","nameAr":"مبارك الكبير","areas":[{"name":"Abu Hassaniah","nameAr":"أبو الحصانية"},{"name":"Al-Adan","nameAr":"العدان"},{"name":"Al-Fnaitees","nameAr":"الفنيطيس"},{"name":"Al-Qurain","nameAr":"القرين"},{"name":"Al-Qusour","nameAr":"القصور"},{"name":"Al Masayel","nameAr":"المسايل"},{"name":"Messila","nameAr":"المسيلة"},{"name":"Wista","nameAr":"المنطقة الوسطى"},{"name":"Sabah Al-Salem","nameAr":"صباح السالم"},{"name":"Subhan Industrial","nameAr":"صبحان الصناعية"},{"name":"Abu Ftaira","nameAr":"ضاحية أبو فطيرة"},{"name":"Al-Fnaitees","nameAr":"ضاحية الفنيطيس"},{"name":"Mubarak Al-Kabeer","nameAr":"مبارك الكبير"}]}]')},"5f95":function(e,t,a){e.exports=a.p+"img/location-icon.22f255cb.svg"},6003:function(e,t,a){e.exports=a.p+"img/icon-field.4f3a904a.svg"},"60c5":function(e,t,a){e.exports=a.p+"img/thumb-primary.18b4442c.svg"},"619c":function(e,t,a){},"624e":function(e,t,a){e.exports=a.p+"img/mb-facebook.d08c2dc9.svg"},6288:function(e,t,a){"use strict";a("7fac")},"64ce":function(e,t,a){e.exports=a.p+"img/cart-arrow-down.a913b9ba.svg"},"652a":function(e,t,a){e.exports=a.p+"img/extra-roaming.5b9d6f9a.svg"},6712:function(e,t,a){e.exports=a.p+"img/mail.53875f0a.svg"},"67fc":function(e,t,a){e.exports=a.p+"img/kd-monthly-up.d452c3b9.svg"},6818:function(e,t,a){e.exports=a.p+"img/k_net.5d9cbfd9.png"},6823:function(e,t,a){e.exports=a.p+"img/visa 2.5bc8a4f4.png"},6999:function(e,t,a){e.exports=a.p+"img/icon-cross.ac9d7ea0.svg"},"69be":function(e,t,a){e.exports=a.p+"img/banner-plane.d3f011d2.svg"},"69de":function(e,t,a){e.exports=a.p+"img/new-phone.3f8813be.svg"},"6a02":function(e,t,a){e.exports=a.p+"img/sign-out.bd6b2dfa.svg"},"6a0b":function(e,t,a){e.exports=a.p+"img/plans-w.5f289bdc.svg"},"6a5d":function(e,t,a){e.exports=a.p+"img/shahid.b07af5f6.svg"},"6c73":function(e,t,a){e.exports=a.p+"img/cross-icon.1e193f0c.svg"},"6d7f":function(e,t,a){e.exports=a.p+"img/unlimited-netflix.eca7a4e4.svg"},"6f00":function(e,t,a){e.exports=a.p+"img/my-plan.9e714dbb.svg"},7059:function(e,t,a){e.exports=a.p+"img/all-dots.5450c1ab.svg"},"725a":function(e,t,a){e.exports=a.p+"img/QuickPayOTTcard.f60ac531.png"},"72e0":function(e,t,a){e.exports=a.p+"img/speech-bubble-white.b246ff23.svg"},7314:function(e,t,a){e.exports=a.p+"img/error.64b77149.svg"},7378:function(e,t,a){e.exports=a.p+"img/heart_fill.eba4dbf5.svg"},7382:function(e,t,a){e.exports=a.p+"img/extra-netflixx.226f5ed0.svg"},7516:function(e,t,a){"use strict";a("bd46")},"754a":function(e,t,a){e.exports=a.p+"img/gift.455e393a.svg"},"76bd":function(e,t,a){e.exports=a.p+"img/arrow-down.2acde2c8.svg"},"76d1":function(e,t,a){"use strict";a("7d9d")},7746:function(e,t,a){e.exports=a.p+"img/algeria.5d60090e.svg"},7832:function(e,t,a){e.exports=a.p+"img/hourglass.11612383.svg"},"78e4":function(e,t,a){},"791f":function(e,t,a){e.exports=a.p+"img/wifi.4e950d5d.svg"},"7a8f":function(e,t,a){},"7b5b":function(e,t,a){e.exports=a.p+"img/pagenav_products.e78dea1d.svg"},"7b63":function(e,t,a){"use strict";a("2f3d")},"7d82":function(e,t,a){e.exports=a.p+"img/pay-monthly.2b1a6ba0.svg"},"7d9d":function(e,t,a){},"7f0d":function(e,t,a){e.exports=a.p+"img/mcpng.ba0ef4e5.png"},"7fac":function(e,t,a){},8169:function(e,t,a){e.exports=a.p+"img/postpaid-line.2b1a6ba0.svg"},"82f0":function(e,t,a){e.exports=a.p+"img/american-express.f13e693f.png"},"82f5":function(e,t,a){e.exports=a.p+"img/auto-pay-arrow-down.4e953ef2.svg"},8333:function(e,t,a){e.exports=a.p+"img/inbox-open.f262d47e.svg"},"84e7":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n}));const s=Object.freeze({EXPRESS:"Express",SAME_DAY:"SameDay",STANDARD:"Standard"}),i=Object.freeze({QUAD:"QUAD","NORMAL-V":"NORMAL-V","NORMAL-D":"NORMAL-D",NORMAL:"NORMAL"}),n=Object.freeze({NORMAL:"normal",QUAD:"quad"})},"862f":function(e,t,a){e.exports=a.p+"img/supermarket - white.7f0f3dea.svg"},8757:function(e,t,a){},"87ac":function(e,t,a){e.exports=a.p+"img/no-commitment.dd75cffe.svg"},8819:function(e,t,a){},"888c":function(e,t,a){e.exports=a.p+"img/confirmation-pink.62d8ebbc.svg"},"88a5":function(e,t,a){e.exports=a.p+"img/secret-deals.8150ef44.svg"},8999:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAgCAYAAACy/TBYAAAAAXNSR0IArs4c6QAACd1JREFUWAmtWQtwVNUZ/u777m42u0lIyAPCxqQIGqtOteCjEh18YDuItANDpQPaFlGKj7G2PqvTjk7Vju2M06nKoE6nWHB8jdX6rGZEKyoVbcAiohWEmmSzS3Y3m71376v/OZtdbjYJrCH/zNlzzn/+/z/nu/9//nPuXQEVkrdkSRSCcAk8bwmpRD3bOW7/F1+1pI1hj5nQFfVLVRa365b1m8bdPT2VmPVeQTNsrCDZRfDQAk+otw5W1ymJNDVFeKLgQhVTniY9LvXnrhHuhFuJXeFoQgQmRjK/p8LAcPIcFwP7B5DMDiFjG0V2qQ7KqhEK6BtjPdt/VmKONLyX0QAHy6i7nMpZVPgaPHo0VnwakBGgpuMj0ocrDjKgDLgBPCpfad4kCBMDnBAU90wBzOrDpoEiIMu0OaDxQBXlNVm2I4HgrbN6tt/LeN7fMYOqe6gw75TmLgJyjQBEyxgXFMlz8kQJiKjPilfnLi3yyuuSYf8AATqF+s9QiY3ij3iIAWLEAB0JFJMRqdSFqp+adc/22wnG81SOY/wi+QEx3tFAFfXcan2PtN44vtj312zOUUSAuojxBpUYlRL5PVRiVtBgm2Awl11K6N45GqAKzJVExLQx27lfTXlPIFBijjRGgfJ5KOoXnCwgZoNN0HS66SSfa42kuxtLZss9VBr4Gg0xl692/6fvK1cphd/IHtpBAjG/0JEAVRJ+flus3XqGg/qVn/GkwPZQOVUafn49r1p/T1xvzCvy/J76AzFjxQFWHwmQX26idlVIsaY1y/AXs0+eENBEdo7GF9LGt+0NKsumnGT2S16KUbWKtYtUCSCJ8upExMbm3LtLpH1UoqkIuZKxsoaQxgZibWFsDopq5qUSVQKICUt0QE5MAnZeP5fyr4+8wwjbVg9DqnN8g8fWFI182H5Yv0xeY2wSR/bSJUWTlQIqyo9XM6iKchgAl/EBYv3hXUHOnsofIQd+HjJPLeGGQyF4ra1ICjqszPtAbz+UBWfCbWwAEkk4r71Z8fxBXTHm3L9LZwqVhJwbaobTci63r+3aWPE8JcHpp9C58QWEXKaJ8RioLtbwWmdBuPsuDPX1QVM1SB/2wPvtHRgaHkZgIAlUAEqqDmP65atg7tql/fcufiWkZEMRWOYlNh+j6YvTEC64AX0t34fL0BNFm7pQ9/RFvF3xz/cew4DSjGkPNgjOQ/oaBirGQi7X2g7PMGA7DjRiait+gDgBYiQOJBC++Xo4J3diqCoI9aOdyN96F4ILu6D+4loYigK5Pw7jnt+h+br1OPjpXiH5yyQCnZ3QltIdmOxk//wXZF9+DdOvWAXbNCF2nQPr825kWpdBdG1EEtv4XHLqU+D065A/fhmSYh3C/f9E6KXLOc+1TQy2Xozo6+uQnf8rZJoWILKH7GqzYGUTXN+zcKZMt+22gS8TCDVOR5ZAFSl39jxyo0eXaKKt2+Bc+l0MUh+ShNz80xBevgThW25AbyIBhfS8VArh+fOQIQBGKIjQ7G9AWnclvHweHtnW77gNZs9OzLz9FvTF4zBJR509E3nbRtO2qyDG2RFZuCblL9qEpK3A0hT0Nl6Axvl3IHTenRhI9MM0DVR959fobzgfImXY3jlraIMOI5I9wPVpiW1i/MtkK7vLyS1NsJOHeDyKc2djmPa5kskWBP+zB8O33Y3gm+8g8FUf54knncBrKTOE5MrViK/+KbQZLUhmMjh01rlooDB0XRfGgxugfPY5D6/IiuU8EgzLgvHwRgiNMegwSoAKk9GeeP0GRPduQW1fN2eZM7q4Xs6yMW33Bgy1L0XIHkTboxRy2T1cRrQyvBY8r1G2TYt3LLbIPXspTQuwzpoHLZ6AXRMpCF68EEMLF/Anw54OrRb2zt1wamvhzOlA5MnNyN54M9BxHATyDCOpLQZ3YIC8tRY5zqHFRqNI01MV9u2H0U2Jh7xWTvbJ1+Bgx4/5Q5BFGqXLo5b5nPS+hVD6UwQcet2hLRLp+SNXVVm4hmYj8MWLBVMCTFHR5ZREXmJhw/YOI4PWLT7zAiwKNc3MwyBACttr5y1Bzb8/5uDc7rcQX3stxFf/wRcQXv0jGC0tEMhOkZiO86eHS0WiLMrmyW97F/kDB7lYnrIty35FOtT+Q7Lvof2vJ2Lmxw9ApjWIeoTrBQ68QW+jUVgUsm6gnqukWs7ntdJfCF9BEvewRAGxow1pivEQ7R20zSqcyBRyfIzCy9RqIcoylEceQCI2k4OIXrsWRkcMmUg1l7P6+mGTl+RwGNUrV9D+6YHV1AR90YVANksJUIBcVYUcAc1tfZvr4JNtcOs6EF/4NBTXgJLrhS2oZF9A/9JXkdWb4ZI8A8AT2L5XaE9QZj5xPfrnroE89wrkPQ4B8lfvcJuO4H0iyor8ISj0mEdAQKS+OPT3d0Cor+U8ltoD733Agdj1dRAME+qhQZiUvg/V1sClJ6lQOKUo80m0AJZYROLvv+5GCpc0rBhlphNPgEDnIKY3QFdVmDs+4rd3YfvVqHYGOAhTCEBJ7UbkwIt8rpw6DTLtE9nLwww2cz2+8P3dCB98nWYRKGtaPGp0rxjggBMwHhEG53ctzw4Oby48uq/3a5LRRH4kmZSp6krhCZaxS10tJGHm2sFSv9iYzC29qOtqSk76uRWUo9u6t/R2zt/k2O7oe1pRcpL1rKW5vNJmq5NUn5SaEJApPq3C9tF05W/DQ2bhujQpc2OV9j2lK8E6ZewAcWTVRcNlqXHHJstk3y6E+hz7oFMAVbN966XkLXsqvWXYjmD0jX8Lr2vQJ7v2CfXcauUleZlDiWEEFGvoIf2+bGr4JtaeKmKvJjPOYIfNaAqfc2g04xh7riy78jpjUdFMacbou9036yH1w+LAVNSO5yK1W8yz+ywrUpWL8DmFk38q7HMbdFR4NdKoz2UlUEyg7l9vnaoG1N4pm5AMDSbz6v63bbDiDI2a7tinoauoE9E2yWvM5/zGxsxSv+OtJi2ofOYXOtY2m6T9QndwSr1EHnJr9I0UdivL1zcGFBOY9sHbHcEq7dly4cn0NUlyWnTtm7UP7a2RQtkn+GVuMoZ8Op5CF7BadbG0zviJj11qUqRPTOl5Z5+dt7zHzGGrfTypIx2+7GJMn5zfbP94xwK/rvdk9NT8kLzZzemz6Q8H/xBvH+nwZWnbjcgvSFeZi5mjxiiPMMZaHUeS3Tocy76JXlFO8qf9clDM7ZqsmAFVfbccTLlZe3P4EtfUbnfyyilw5NLBPwYU7Ru6KVieLm2VEsYi4U7wtF1uz9+vCJRfgXnPE+XTXMftNG2rM5XLNdIfAc8zmfH+5fDrTtS2H4+u8hyhk97omwXba8WQUSNI6KcL4j5JdB4QrrQ+mEh3PP7/AQ/JWglLf2X6AAAAAElFTkSuQmCC"},"8afb":function(e,t,a){e.exports=a.p+"img/pay-as-you-go.e0f907e2.svg"},"8c52":function(e,t,a){e.exports=a.p+"img/antigua-and-barbuda.9c9b0179.svg"},"8ea3":function(e,t,a){e.exports=a.p+"img/cart-up-arrow.74582122.svg"},"8ffd":function(e,t,a){e.exports=a.p+"img/internet.06061a4f.svg"},9035:function(e,t,a){e.exports=a.p+"img/bermuda.5df864ae.svg"},9071:function(e,t,a){},9116:function(e,t,a){"use strict";a("5d23")},"91c9":function(e,t,a){"use strict";a("1037")},9225:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("13d5");var s,i,n=a("a026"),r=a("a925");const o={flexiPageTitleEn:"eeZee is now 5G!",flexiPageMessageEn:"Activate eeZee Flexi plan for 8KD or above and join the best 5G network in Kuwait.",priceOfferMessageGreaterThanKDEn:"Welcome to the best 5G Network in Kuwait.",priceOfferMessageLessThanKDEn:"Add {amount} KD to upgrade your plan to 5G",offerBundleMessageEn:"",flexiPageTitleAr:"eeZee صار 5G!",flexiPageMessageAr:"قم بتفعيل باقة eeZee Flexi ب 8 د.ك او أكثر وانضم الى أفضل شبكة 5G في الكويت.",priceOfferMessageGreaterThanKDAr:"أهلاً بك في أفضل شبكة 5G في الكويت.",priceOfferMessageLessThanKDAr:"أضف {amount} د.ك لترتق بباقتك الى 5G",offerBundleMessageAr:""},l={en:{FlexiPageTitle:o.flexiPageTitleEn,FlexiPageMessage:o.flexiPageMessageEn,FlexiMessageLessThanKD:o.priceOfferMessageLessThanKDEn,FlexiMessageGreaterThanKD:o.priceOfferMessageGreaterThanKDEn,FlexiOfferBundleMessage:o.offerBundleMessageEn},ar:{FlexiPageTitle:o.flexiPageTitleAr,FlexiPageMessage:o.flexiPageMessageAr,FlexiMessageLessThanKD:o.priceOfferMessageLessThanKDAr,FlexiMessageGreaterThanKD:o.priceOfferMessageGreaterThanKDAr,FlexiOfferBundleMessage:o.offerBundleMessageAr}},c=["pay_amount","zain_contract"],d=c.reduce((e,t)=>(e[t]=t,e),{}),u={en:{...a("26d5"),...l.en,fields:d,validation:a("b6c6")},ar:{...a("0185"),...l.ar,fields:d,validation:a("0d8f")}};n["a"].use(r["a"]);const p="ar";let m=localStorage.getItem("locale");["en","ar"].includes(m)||(localStorage.setItem("locale",p),m=p);const h=new r["a"]({locale:null!==(s=m)&&void 0!==s?s:p,messages:u,pluralizationRules:{ar:function(e,t){return 0===e?0:2===t?e>=1&&e<=2||e>=11?0:1:1===e?0:2===e?1:4===t?e>=11?2:3:2}}});h.setLocale=function(e){this.locale=e,document.querySelector("html").setAttribute("lang",e),localStorage.setItem("locale",e)},h.setLocale(null!==(i=m)&&void 0!==i?i:p)},"949a":function(e,t,a){e.exports=a.p+"img/confirmation-white.4f066737.svg"},9523:function(e,t,a){"use strict";a("8757")},"953b":function(e,t,a){e.exports=a.p+"img/manage-setting.eb88c3c1.svg"},9628:function(e,t,a){e.exports=a.p+"img/my-zain-profile.0474503d.svg"},"96aa":function(e,t,a){e.exports=a.p+"img/supermarket.98f70b64.svg"},"978f":function(e,t,a){e.exports=a.p+"img/DisneyWithBorderTransparentBackground.8948fa51.png"},"983d":function(e,t,a){e.exports=a.p+"img/custimize-plan.55da558a.svg"},9898:function(e,t,a){e.exports=a.p+"img/armenia.e1f20b76.svg"},"98c7":function(e,t,a){},"9b6e":function(e,t,a){},"9b7f":function(e,t,a){e.exports=a.p+"img/close-icon.ef6aa01c.svg"},"9cb2":function(e,t,a){},"9e15":function(e,t,a){e.exports=a.p+"img/duration.414d3bc7.svg"},"9e60":function(e,t,a){e.exports=a.p+"img/movie-icon-primary.2526fb07.svg"},"9e92":function(e,t,a){e.exports=a.p+"img/edit-icon.80fa4fce.svg"},"9f92":function(e,t,a){e.exports=a.p+"img/phone.d82114e3.svg"},"9fbf":function(e,t,a){e.exports=a.p+"img/anghami.024f7bc5.svg"},a02d:function(e,t,a){"use strict";t["a"]={OTTEnabled:!0,FlexiAdvancedPayment:!0,HappyTuesday:!0,testEcommerceRedirect:!1,todOTT:!0,offersBuyNowText:!1,CorporateRedirection:!0,CMSChannelsEnabled:!0,GhostPostpaidDataShareEnabled:!1,SactEnabled:!0,KYC:!0}},a199:function(e,t,a){"use strict";a("3a79")},a1ff:function(e,t,a){e.exports=a.p+"img/barbados.6fa29c52.svg"},a236:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAAAaCAYAAAAtzKvgAAAAAXNSR0IArs4c6QAAC49JREFUaAWlWQmQFNUZfn1Oz9E7s8vCXhyr4BGB3RUkImIAraRSauKqqEQSWKOm1GjAiiGxJCXlHTVq1KpYRgKaMtGqWMGURxR0l3hRloEFdr0AZYF1Zt3ZuWf67s77Z+3mdU8P7OCrmnn/3T1f//2//72hrC3seahOp1Etg0JD1DJ0sBaXidievXJHHZIK85XM4U6vvcVQH+/e2vOmV07yXd9//kLTkG82NbkLGVrM0OUgqWf4cIai2STF8r2UyT23u2/Vu6S+Gr1wRW87R1kzCmPxWThumLTb9VbP4yRv0yzVrb8jb6q7BVGB5RRFzUbImoRoE9EBrWxD83hmzHE6qNh+yNqG+hCDLsUAZxxhFWLRit4eZBib0od24fCG24pikMy0tn/5/sohRpcuNJH6D6Uw4rbBHBea9B88+QK74JLXb8IP424le7ihwpEQGGoxhln4zEIUcz2eKUJdQQKgjIX+peRHu7LJocp7xx5zLnh2ZOCt1S96nVkQCNfknsATfFDpqYarcPrerqaDnTTPg6hiULyKuEm5pXRYegwreyoMPAIaWT2lXNz3xrhQdPsnvSvxXSNEU6hLVQoe73GWppmK7Orq7o3xVn5rPjFwVsUD841yVMhwgexRzp9ikbXZ0NWu4ugX/gZYyhjaCjxVAFtRAkI3pF4Ubkh1GbnceWpu7PBoIoe+iOuuwJbKIzXeiMxicLlL4cMsuqK3yzTMJVIm4aNFKK+EV9sKy0Kn67I/sJbJbrftYP4G1B35xGc1gwr+NCf0w1xtLF7RuxQn9JJS+kg1k7LcMJSFfgYVwNpGdeuld6PrStP3pk9ZftHmmeiuLRxSU2NILxaRZY6XBi0ZC1u9qN328Zvxm75WrpKtTCB6AErAUT/rdN03Y2m0u0/44KgdQhHB2iKlD59Wa6baMSyKc8Wz5fZs4TfR0BSkFpK2yHc2daXRT1EVWNv4oj999FKOmmk8/OHJaOmmuQgyWPpqGGm5LLI0FpkZ4Qe2rXeGrDJ1vbtatjJMuMf26fjZG2HT1E7R1ZItcmaGD+A0vtIpzudc2dutKdISXc47NiTBBMQEG2l6IBBputX+cOHJG7lgfT/NcOU4tMm8SvqQNNRWCqHVhdEDpNiXtgyV7Vz63GKvslxjvUIvH6lr+TSfG549MCaiBX87F710yU40F+UQwpnL1vO4HMhPe32ADwmoW04non5ZxfChLLkqiyo/V1MyuMxWDooJHCKl2KhHKaVIkUPzocYtu/uuu9QR+BB4wblq91vVOwLaQms1OYeqPThvSIvSerDMtQYcN2MhSCDS8keYYeRUDl328ny0d1REWqGA9Bx95rim8tvStF9Xy1aWFze4PPDC5V8GYFFjP3fZIqtdVyozG2womtnutq3k/FZx2wreMgzKar/aKitF28w1m7q61CXAzISA3ff+mk2CUO/45lUWXY7BPZQTkJ43fWsMLFq4bZrjl600F5T7374GOoqjw0JdmoTfAp9B0fRHpBi3hZ2W6V5Qbb2uFu48adHzM2y+1jkilLM15s3WXD5hFqXkUDb7VWVIQ2n1CicELDhFxDZXFc9hcK9540wMrITKmwxPZMPU1lXLVoaPPO8xx6xZNWMNmv+3297aTrMBt+gbDnrVoDWyv+P8jb7lydeJEFrQGno6gVIpjdtwY5Dj6/aNjn6MvODCRsT7MCcMbCAy+R3i+mVycDSMHvxgOi4JwV+QOnid9OLYT3yzFS8ee3qvvY60Bxq/2rMR7re8A++UzL3bfrqXlFsWtYUL1pEiFw0LilYYvX7OosdKXedvWutSHoOBjYwu5WeQ2WoYGorHdyNGiN7FCuLL4O4HbkRQbyBDTxhYKtB+K0VVrnUPf3gSGtzH/ZAMGg6gnnKLRQq/oRlBdBV5EC+4orcZ968RH3NEs3zF0l9U0GZOiA3g3ZOfiyODTMLl6NE5i59ITwRgyrLWejuBeHwPCgREfXjPPf8c+mj9kzYGXnApSzvHuTAmJgws9JsRsclpecggG7adEiX5VHzgTlzQSdE4jYEgNwS2QYCFhasCv7KaYvhh286e+7csy1gc96NQw9QxW3asGcoDANyxbOMz1exgQ6AUkp3kfY+lvkCynEbhaNv7tl8w1OAUdxLc8vmEbYTnCQMLPsHQ5IofCfLXPhG5Oy47qbxgNH1nzfoDg6/GZJ8ekxPq+t0bAvDGw6zeEVAM67tD2vHCsoNGoHlWsH4aPoCY2NCKo9d2LHu6z9/a2iARtRXqahoDCxmayeRX2T6BYNSFAYALD8BQS67kqglYsX7aU/YFvPOzAwvvB1kpn/iNZeloePh/+Gm7s5Cigrd4/YDH9fVcMlNIG4Zi3yZ5kobM3fnGynmB6PTroS8mddVorZha4m3oYUMg55NL7Huw6yrECItTsnJ8o7M75Lm6V7yx4QGMjAwistzUBOyn7625n+dFb9wyL+nCd1s771gsl8bKq4oXXNi+khsCMoimFOaRPElnJG4byfvR/Vuvfmbg3V/FYJc1EYANo7iZjIMrtStboa7C/cMIitPuI225aMdDJG/T+XwcJYZ33WzzNQELTngXhreXlUNRim1S9vDfSQ0JLssJT5I6h95g0YYmtTg8QUBH4Fs6CBuShN4YAIbdFymvoC3N6b2hg8HHgqvtbLXrKviwjIC+2nvvg6Q/3E/V5JJSU23bymXe1lSZg2LbVpT8/FKv2tBKAVXOTfPKAdxs/oj25Z57H/PqgD/ns75T83LObycLJ1D++1a/QIQMtrSnLnxoB2MaZxNih8SHK049FBjtd9n4+JsOpQtea2dQFBLbrho/mHaECCmyf9WRikmnua45Y6PitEfsloO4FtJ1GXcr468PKQe6YfLsZ7wymzcVZYHfwQvoaYbdb9vVOhcLyTzUPb9hn8VCtqr5xBrot6GuJnC/Sg5dl5AsjbHeT7XfCfLWuXesgxg1Awt1MhSaNH5uSN5FFVoI1qP9H667qYoajRz84DrL9O3i8MafcyEjtl1htc2+7eDMBQ+6+mZv7PrTfz83m/z8Aqh7fuDSTOBL8OEs+WopOyIAPTLyMdINGchvNUy9eBEEqLkUgFNYbDlSLI5MB/p4I1zX9t+8q0Fxe6ST+8+ycLa0tHQi/C+BS8nQjHNmCmAeOvAmzqA0tHWvx6ZdbfDB6NfhSFPC0NRB07JSLMd3qVLmjHRqVyN+g8qxAFwDnys0TTkDMQxXlpms8AAQemnkPsjWTPoQKpVGy7pv+6VK6TMhxgkBG4xMgbPMG493E1D8g/ULVh3LTpHSIcNQy9vG1tYu3DeOv0SwuY2rpnNGoJTGLibjFItfM/jTkk7ug4Wv/GNIPUmXiqO4/duJ2trmISEypX8P/o9q3o9fWymNDEahribH3IdnoUizIoptVcsXxC4VE6vwUWpFiySVUmXZCQELr3a4uftGVfVtEJzfhPveoWOt6o0dd5+WPTJ+yidJKZRIDKDm5jllcPHrqibe+bmTRqqWcwHrXGSChKpiAFP7tWjg5G5wMUuJe/GWt6Kugi4kNr9yZPAPTusEMu9omX1bMwb2cq8c6nJbx/rlNddYO1AwPNn/QNQ2wLNkMCsJtoIM0spqUogzsAyuZeF/iVne1RHgBa6BtK2VDoWnZFPpoSnwoOFvciX39Qy/ugoLc3zw4eXHi08zwgvVbPBf8CtOGFhRbN1ZLTDIxbq2fP7Ak+8dy0ZTshd49Ta4+Az2IKmjGCZH8hOlA8EGORJr/zNusWMo05cBP13OPV6truLzEPd2scqF4FDGrzsCc03OfO+ESgE418Vm3j6VovybfqxXDf0esDvWoLnYo00t8xf72RSkvOsv5bEDf52KYkvbGyef8UsKGRfLxfRUXS+Foc2z/eGHBoQ6A28sMjwf3VVS9EcKR/7yuq23Z9isMLw4C1/bFjmzxXB9DnMcorF1/m9pU69YxE2aPfR/1+lG93+GATUAAAAASUVORK5CYII="},a347:function(e,t,a){},a5bc:function(e,t,a){e.exports=a.p+"img/pagenav_offers.c87389fa.svg"},a70d:function(e,t,a){e.exports=a.p+"img/world.fd79fd11.svg"},a9bb:function(e,t,a){e.exports=a.p+"img/down-arrow.fc32b58c.svg"},aad5:function(e,t,a){e.exports=a.p+"img/belgium.dbb9b9b2.svg"},ab4c:function(e,t,a){e.exports=a.p+"img/network-type.50daf0ad.svg"},ab7b:function(e,t,a){},ac7b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAeCAYAAABuUU38AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMqADAAQAAAABAAAAHgAAAABx+m2uAAAC1UlEQVRYCd2YS08TURTH//Poi2lDaS0CFhYmYAIiwUdAEz+Aj5VbdePCr+HCxE+A0bgzbjTujJtGjAujQV0R2VhAiQWBglpqazvMy3tLms6dSZs+bhOHm7Rzz7mPc35zzn1khFTWugQLj8gvCS8WAesQcFtIbVsZz0JUXzyBET0PQWFINolVKK8/Dw2IzDMS71Pv8Oz+UxJq0zWtZQGSLCOohBBL9OHKzasYPzPh6teugmtEPs0vEAYT1Gnnjzpo6DqKe3+QWfmOh3ce4OWTF+367RrHFWQ3+9NloL7CwvzzVygXyvW7tNDCFaSYL7ZgGjBJ9D68XmhpTL3O3NaIrhkwNJ2xY5k6dO0vOa8cRRAgCCIE0U9gDEdjeyI3kOXPabKds0VX8wSuxCod0ldTwAXdREDuLDk6G21zanVpxSYdVE1Dc+nsClGSsagF8Hb5h13dVp0byPpqhnWAbFs0tRqV+OQp0mzh41q2Ubem2riB7GzuMAYtq3Hu+3oU7M9crIyhW3WnhRtI/tce44tp1k8ryR9E7/VbUCVfZUw4cPBkJmhR4LbY1bLKmLYMNq0EUYRPCSMxex6/RydQQO0dTg3HmbHtCFxANr5tuGwfmTkHY/QE6N67T9589e07j0yZAJ4dSbjGt6rgAvJlMe2yK02fRk5rnPzkNMGN2TGEg/9JamXSay6QgkWPwfogg1EFl0+OYCrZeVpR41wispXZZEDEiAKVHHL2MnY0isljcfSG/IgrAQzHwvbmjutcQHK7OcYRfyIB51Xw2vRxDEV7mH48hdrW0cGspSJ7DQkM9jOz0bXQHwkxOt4Cl4hE+iJQS7UYKMkh2E+VeDgIWXJdHbmycAG5+/ge49TcmyVgu5ZuA73djQY1zgWEoSBCmVznRXJVp4U+xwdilXo3/4TUFo+bTjddbG5uLou9OVPd7XWIQOi3U6+XyidT8gGYbPPehaG+E4Z/CYDK99ZuZvsAAAAASUVORK5CYII="},aeaf:function(e,t,a){e.exports=a.p+"img/view-all.6774f63d.svg"},aef1:function(e,t,a){},b05f:function(e,t,a){e.exports=a.p+"img/filter.d72a3655.svg"},b0e3:function(e,t,a){e.exports=a.p+"img/edit.80fa4fce.svg"},b128:function(e,t,a){e.exports=a.p+"img/belarus.07a75327.svg"},b158:function(e,t,a){e.exports=a.p+"img/calendar-delivery.a19b1657.svg"},b18f:function(e,t,a){e.exports=a.p+"img/extra-wifi.486e691b.svg"},b1d7:function(e,t,a){"use strict";a("48cd")},b25c:function(e,t,a){e.exports=a.p+"img/circle.7d22617c.svg"},b4e7:function(e,t,a){},b66b:function(e,t,a){e.exports=a.p+"img/plan-type.fac9902b.svg"},b6c3:function(e,t,a){"use strict";a("e900")},b6c6:function(e){e.exports=JSON.parse('{"required":"This field is required","credit_card":"Invalid credit card number","length":"The {_field_} must be {length} digits","cvv":"Invalid cvv number","kuwait_msisdn":"The number you have entered is invalid. Please choose a valid number.","email":"Invalid Email","pay_amount":"Amount must be between 1 and 5000","pay_amount_prepaid":"Amount must be between 1.5 and 80","zain_contract":"Invalid Contract Number","confirmed":"Both passwords don\'t match","zain_msisdn":"The number you have entered is invalid","zain_prepaid_msisdn":"The number you have entered is not a valid zain prepaid number","credit_transfer_amount":"Amount should be in increments of 100 fils","digits":"Only number digits are allowed","between":"{_field_} should be between {min} and {max}","not_the_same":"{_field_} should not be the same as {target}","min":"The {_field_} must be at least {length} digits","max":"The {_field_} cannot be more than {length} digits","numeric":"Only numbers are allowed","quickpay_captcha":"Captcha required","terminated_other_amount":"Amount must be between 30 and 5000","kuwait_civil_id":"The civil ID entered is either not valid or not associated with this line","civil_id_over_18":"The civil ID entered is either not valid or not associated with this line"}')},b880:function(e,t,a){e.exports=a.p+"img/validity.c4f9d19b.svg"},b8e5:function(e,t,a){e.exports=a.p+"img/map_pn.b405966d.svg"},b956:function(e,t,a){e.exports=a.p+"img/cart-arrow-down.up.a35b5d2e.svg"},b9e8:function(e,t,a){"use strict";a("2d3e")},b9f4:function(e,t,a){e.exports=a.p+"img/kd-monthly-down.a169a656.svg"},bb09:function(e,t,a){e.exports=a.p+"img/anguilla.a20fe14d.svg"},bc5a:function(e,t,a){"use strict";a("3a09")},bd45:function(e,t,a){e.exports=a.p+"img/internet-sharing.3947a414.svg"},bd46:function(e,t,a){},be7a:function(e,t,a){e.exports=a.p+"img/missu.dc369105.svg"},be96:function(e,t,a){e.exports=a.p+"img/benin.671cd912.svg"},bf3e:function(e,t,a){e.exports=a.p+"img/whatsapp-primary.8e108626.svg"},bfca:function(e,t,a){e.exports=a.p+"img/www-w.d67ebaff.svg"},bfd2:function(e,t,a){e.exports=a.p+"img/chat-bot.0f447dd0.svg"},c008:function(e,t,a){e.exports=a.p+"img/router.897c4d45.svg"},c033:function(e,t,a){e.exports=a.p+"img/arrow-up.ff9e1ab9.svg"},c0a9:function(e,t,a){e.exports=a.p+"img/postpaid-tick.9421fd12.svg"},c0f6:function(e,t,a){e.exports=a.p+"img/arrows-down.44985056.svg"},c116:function(e,t,a){e.exports=a.p+"img/want-to.cfd609f3.svg"},c14c:function(e,t,a){e.exports=a.p+"img/filter-arrow.3c9ef486.svg"},c1cd:function(e,t,a){e.exports=a.p+"img/zain-pdf.dd058b15.svg"},c337:function(e,t,a){e.exports=a.p+"img/add-extra.c638d4a1.svg"},c449:function(e,t,a){e.exports=a.p+"img/ins.23cea001.svg"},c6cb:function(e,t,a){e.exports=a.p+"img/phone-call.707a984d.svg"},c70d:function(e,t,a){e.exports=a.p+"img/icon-tick.e4816d18.svg"},c768:function(e,t,a){e.exports=a.p+"img/profile.0474503d.svg"},c8c2:function(e,t,a){e.exports=a.p+"img/world.c48c98d8.svg"},ca9b:function(e,t,a){e.exports=a.p+"img/zain_logo.5dbc0ade.svg"},cc41:function(e,t,a){e.exports=a.p+"img/osn.e474eb3b.png"},cde6:function(e,t,a){e.exports=a.p+"img/whatsapp.6caebd25.svg"},cfd0:function(e,t,a){e.exports=a.p+"img/checkout-w.99da4a3c.svg"},d095:function(e,t,a){e.exports=a.p+"img/entry.fc6e92c2.svg"},d0ec:function(e,t,a){e.exports=a.p+"img/d-arrow-up.a44bdfb6.svg"},d325:function(e,t,a){"use strict";a("aef1")},d32c:function(e,t,a){e.exports=a.p+"img/plane.38715cee.svg"},d3bc:function(e,t,a){},d4f9:function(e,t,a){e.exports=a.p+"img/youtube-primary.292150b4.svg"},d512:function(e,t,a){},d6ff:function(e,t,a){e.exports=a.p+"img/save-money.ca6fc2c0.svg"},d702:function(e,t,a){e.exports=a.p+"img/search-icon.56948c98.svg"},d71a:function(e,t,a){e.exports=a.p+"img/confirmation-success.5b8d340b.svg"},d722:function(e,t,a){"use strict";var s=a("1ab6"),i=a("4360"),n=a("bc3a"),r=a.n(n),o=a("9225");const l=r.a.create({baseURL:"/api",withCredentials:!0});l.interceptors.request.use(e=>(e.headers["accept-language"]=o["a"].locale,e)),l.interceptors.response.use(e=>e,(async function(e){var t,a,n;if(503===(null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status)){const t=e.response.headers["x-maintenance-mode"];i["a"].state.maintenanceMode="true"===t||!0===t}return 401===(null===e||void 0===e||null===(a=e.response)||void 0===a?void 0:a.status)&&"/users/me"!==(null===e||void 0===e||null===(n=e.config)||void 0===n?void 0:n.url)&&i["a"].state.isLoggedIn&&(console.log("no more cookie.. logging out!",e.response,e.response.status),i["a"].commit("clearAllData"),i["a"].commit("clearLoginData"),await Object(s["a"])(i["a"])),Promise.reject(e)}));const c={loginUrl:()=>l.get("/users/login/url"),loggedInStatus:()=>l.get("/users/me"),userInfo:()=>l.get("/users/user-info"),lineInfo:({msisdn:e,contractNumber:t})=>l.get(`/users/${t}/lines/${e}/get-line-info`),userInfoQuery:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/info`),subscriberTypeQuery:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/info/type`),sendBillPrivacySMS:({msisdn:e})=>l.post(`/customers/anonymous/lines/${e}/info/bill-privacy-sms`),simLogin:()=>l.post("/users/login/sim"),keycloakLogin:e=>l.post("/users/login/im",{code:e}),keycloakLogout:()=>l.post("/users/logout/im"),setLocale:e=>l.patch("/users/set-locale",{locale:e}),keycloakLines:()=>l.get("/users/im/lines"),addKeycloakLine:(e,t)=>l.post("/users/im/lines",{msisdn:e,nickname:t}),keycloakLinesBalances:()=>l.get("/users/im/lines/postpaid-balances"),keycloakPrepaidLinesBalances:()=>l.get("/users/im/lines/prepaid-balances"),validateKeycloakLine:e=>l.patch(`/users/im/lines/${e}/validate`),verifyKeycloakLine:(e,t)=>l.patch(`/users/im/lines/${e}/verify`,{code:t}),setActiveKeycloakMsisdn:e=>l.patch(`/users/im/lines/${e}/set-active`,{msisdn:e}),setKeycloakMainLine:e=>l.patch(`/users/im/lines/${e}/set-main`,{msisdn:e}),deleteKeycloakLine:e=>l.delete("/users/im/lines/"+e),updateKeycloakLine:(e,t)=>l.patch("/users/im/lines/"+e,{nickname:t}),userAddressees:()=>l.get("/users/address"),addAddress:e=>l.post("/users/address",e),updateAddress:(e,t)=>l.put("/users/address/"+e,t),deleteAddress:e=>l.delete("/users/address/"+e),postpaidBalance:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/billing/balance/postpaid`),prepaidBalance:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/billing/balance/prepaid`),billDetails:({msisdn:e,contractNumber:t,month:a})=>l.get(`/customers/${t}/lines/${e}/billing/details?month=${a}`,{timeout:3e4}),invoices:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/billing/invoices`),prepaidRechargeHistory:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/billing/recharge-history`),usage:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/usage`),usageHistory:({msisdn:e,contractNumber:t,from:a,to:s})=>l.get(`/customers/${t}/lines/${e}/usage/history?from=${a}&to=${s}`),callHistory:({msisdn:e,contractNumber:t,from:a,to:s,otpValue:i})=>l.get(`/customers/${t}/lines/${e}/usage/call-history?from=${a}&to=${s}&otpValue=${i}`),validateCallHistory:({msisdn:e,contractNumber:t,locale:a})=>l.post(`/customers/${t}/lines/${e}/usage/call-history/validate`,{locale:a}),campaigns:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/offers/campaigns`),sendCampaignFeedback:({msisdn:e,contractNumber:t,response:a,campaignId:s,offerId:i})=>l.post(`/customers/${t}/lines/${e}/offers/campaigns`,{response:a,campaignId:s,offerId:i}),products:()=>l.get("/customers/anonymous/lines/anonymous/offers/products"),productsPerUser:()=>l.get("/customers/anonymous/lines/anonymous/offers/products-per-user"),services:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/services`),addService:({price:e,serviceCode:t,msisdn:a,contractNumber:s})=>l.post(`/customers/${s}/lines/${a}/services`,{price:e,serviceCode:t}),removeService:({price:e,serviceCode:t,msisdn:a,contractNumber:s})=>l.delete(`/customers/${s}/lines/${a}/services`,{data:{price:e,serviceCode:t}}),happyTuesday:({msisdn:e,contractNumber:t,lang:a})=>l.get(`/customers/${t}/lines/${e}/services/happy-tuesday?lang=${a}`),addHappyTuesdayOffer:({price:e,serviceCode:t,msisdn:a,contractNumber:s})=>l.post(`/customers/${s}/lines/${a}/services//happy-tuesday`,{price:e,serviceCode:t}),commitments:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/commitments`),checkCommitments:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/checkCommitments`),plans:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/postpaid`),ghostPlans:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/new-subscription-plans`),ghostEligibility:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/new-subscription-plans/eligibility`),addPlan:({msisdn:e,contractNumber:t,price:a,serviceCode:s})=>l.post(`/customers/${t}/lines/${e}/plans/postpaid`,{price:a,serviceCode:s}),addGhostPlan:({msisdn:e,contractNumber:t,orderInfo:a})=>l.post(`/customers/${t}/lines/${e}/plans/new-subscription-plans/postpaid/`,{orderInfo:a}),updateGhostPlan:({msisdn:e,contractNumber:t,orderInfo:a})=>l.post(`/customers/${t}/lines/${e}/plans/postpaid/V2`,{orderInfo:a}),getGhostPlanOrderStatus:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/ghost-order-status`),getGhostSubscriptionNotification:({msisdn:e,contractNumber:t,transactionId:a})=>l.get(`/customers/${t}/lines/${e}/plans/new-subscription-notifications?transactionId=${a}`),updateGhostSubscriptionNotification:({msisdn:e,contractNumber:t,transactionId:a,notificationArray:s})=>l.post(`/customers/${t}/lines/${e}/plans/new-subscription-notifications?transactionId=${a}`,{notificationArray:s}),prepaidPlanInfo:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/prepaid`),prepaidPlanFlexiSubscribe:({plan:e,isFutureOrder:t,upsellOffer:a,msisdn:s,contractNumber:i,planType:n})=>l.post(`/customers/${i}/lines/${s}/plans/prepaid/flexi`,{plan:e,isFutureOrder:t,upsellOffer:a,planType:n}),prepaidPlanCodeSubscribe:({serviceCode:e,msisdn:t,contractNumber:a})=>l.post(`/customers/${a}/lines/${t}/plans/prepaid/code`,{serviceCode:e}),prepaidPlanSetAutoRenew:({serviceCode:e,isAutoRenewOn:t,msisdn:a,contractNumber:s})=>l.post(`/customers/${s}/lines/${a}/plans/prepaid/auto-renew`,{serviceCode:e,isAutoRenewOn:t}),upsellOffers:({msisdn:e,contractNumber:t,plan:a})=>l.post(`/customers/${t}/lines/${e}/plans/prepaid/upsell`,{msisdn:e,plan:a}),readyMadePlans:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/prepaid/ready-made`),prepaidManagement:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/plans/prepaid/prepaid-management`),AllOTTS:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/services?serviceType=ott`),getOTTJourney:({msisdn:e,contractNumber:t,journeyId:a})=>l.get(`/customers/${t}/lines/${e}/services/partners/services/journeys/${a}`),activateOTT:({msisdn:e,contractNumber:t,serviceInfo:a})=>l.post(`/customers/${t}/lines/${e}/services/partners/services/add`,a),validateOttOTP:({msisdn:e,contractNumber:t,locale:a})=>l.post(`/customers/${t}/lines/${e}/services/partners/services/validate`,{locale:a}),activateOTTWithPlan:({msisdn:e,contractNumber:t,orderInfo:a})=>l.post(`/customers/${t}/lines/${e}/services/partners/services/add-with-plan`,a),deactivateOTT:({msisdn:e,contractNumber:t,code:a,type:s})=>l.post(`/customers/${t}/lines/${e}/services/partners/services/remove`,{code:a,type:s}),payment:e=>l.post("/payment",e),paymentInfo:e=>l.get("/payment?channelRefId="+e),tokenizedCards:()=>l.get("/payment/cards"),deleteTokenizedCard:e=>l.delete("/payment/cards/"+e),rechargeByCode:e=>l.post("/payment/recharge-by-code",{code:e}),autopayPostpaid:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/autopay/postpaid`),autopayPostpaidAllLines:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/autopay/postpaid/all`),autopayRegisterPostpaid:({cardInfo:e,msisdn:t,contractNumber:a})=>l.post(`/customers/${a}/lines/${t}/autopay/postpaid`,{cardInfo:e}),autopayUnregisterPostpaid:({msisdn:e,contractNumber:t,maskedCardNumber:a})=>l.delete(`/customers/${t}/lines/${e}/autopay/postpaid`,{data:{maskedCardNumber:a}}),autopayUpdatePostpaid:({msisdn:e,contractNumber:t,maskedCardNumber:a,newCardInfo:s})=>l.patch(`/customers/${t}/lines/${e}/autopay/postpaid`,{maskedCardNumber:a,newCardInfo:s}),autopayBanks:()=>l.get("/customers/anonymous/lines/anonymous/autopay/banks"),autopayPrepaid:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/autopay/prepaid`),autopayPrepaidAllLines:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/autopay/prepaid/all`),autopayRegisterPrepaid:({msisdn:e,contractNumber:t,cardInfo:a,autoRechargeInfo:s})=>l.post(`/customers/${t}/lines/${e}/autopay/prepaid`,{cardInfo:a,autoRechargeInfo:s}),autopayUnregisterPrepaid:({msisdn:e,contractNumber:t,maskedCardNumber:a})=>l.delete(`/customers/${t}/lines/${e}/autopay/prepaid`,{data:{maskedCardNumber:a}}),autopayUpdatePrepaid:({maskedCardNumber:e,newCardInfo:t,autoRechargeInfo:a,msisdn:s,contractNumber:i})=>l.patch(`/customers/${i}/lines/${s}/autopay/prepaid`,{maskedCardNumber:e,newCardInfo:t,autoRechargeInfo:a}),datasharing:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/data-share`),setDependentThreshold:({masterMsisdn:e,dependentMsisdn:t,offerID:a,threshold:s,msisdn:i,contractNumber:n})=>l.post(`/customers/${n}/lines/${i}/data-share/threshold`,{masterMsisdn:e,dependentMsisdn:t,offerID:a,threshold:s}),validateTransferRequest:({msisdn:e,contractNumber:t})=>l.post(`/customers/${t}/lines/${e}/credit-transfer/validate`,{msisdn:e}),reValidateTransferRequest:({msisdn:e,contractNumber:t})=>l.post(`/customers/${t}/lines/${e}/credit-transfer/revalidate`,{msisdn:e}),verifyTransferRequest:({msisdn:e,contractNumber:t,code:a,receiver:s,amount:i,sendSms:n})=>l.post(`/customers/${t}/lines/${e}/credit-transfer/verify`,{msisdn:e,code:a,receiver:s,amount:i,sendSms:n}),contractLines:({contractNumber:e})=>l.get(`/customers/${e}/list`),contractBalance:({contractNumber:e})=>l.get(`/customers/${e}/balance`),contractValid:({contractNumber:e})=>l.get(`/customers/${e}/valid`),inboxMessages:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/inbox`),updateInboxMessagesToRead:({messageIds:e,msisdn:t,contractNumber:a})=>l.patch(`/customers/${a}/lines/${t}/inbox`,{messageIds:e}),deleteInboxMessage:({messageId:e,msisdn:t,contractNumber:a})=>l.delete(`/customers/${a}/lines/${t}/inbox`,{data:{messageId:e}}),contentLayout:()=>l.get("/content-layout/header-footer"),captchaUrl:()=>"/api/users/captcha",validateCaptcha:(e,t)=>l.post("/users/captcha",{captchaCode:e,captchaType:t}),paciStatus:({msisdn:e,contractNumber:t,tranId:a})=>l.get(`/customers/${t}/lines/${e}/kyc/paci/status?tranId=${a}`),paciAuth:({msisdn:e,contractNumber:t,civilId:a})=>l.post(`/customers/${t}/lines/${e}/kyc/paci/auth`,{civilId:a}),featureFlags:({msisdn:e,contractNumber:t})=>l.get(`/customers/${t}/lines/${e}/featureFlags`)};t["a"]=c},d77c:function(e,t,a){e.exports=a.p+"img/bahamas.4202543b.svg"},d9f3:function(e,t){const a={PAY_BILL:0,PREPAID_RECHARGE:1},s={SubscriberPayment:"SubscriberPayment",ContractPayment:"ContractPayment",RechargeCard:"RechargeCard",Recharge:"Recharge"},i={MY_NUMBERS:"MY_NUMBERS",OTHER_NUMBER:"OTHER_NUMBER",CONTRACT_NUMBER:"CONTRACT_NUMBER",TERMINATED_DUES:"TERMINATED_DUES"},n={TOTAL:"TOTAL",DUES:"DUES",BUY_VOUCHER:"BUY_VOUCHER",RECHARGE:"RECHARGE",OTHER_AMOUNT:"OTHER_AMOUNT"},r={PAYMENT_DETAILS:"PAYMENT_DETAILS",PAYMENT_METHOD:"PAYMENT_METHOD"},o={DEBIT_CARD:"Debit",CREDIT_CARD:"Credit",SAVED_CARD:"Saved",PAYPAL:"Paypal"};e.exports={paymentTypes:a,orderTypes:s,numberSelectionTypes:i,paymentAmountTypes:n,quickPayStep:r,paymentMethods:o}},da35:function(e,t,a){e.exports=a.p+"img/worldwide-w.28e9f0c1.svg"},da3b:function(e,t,a){"use strict";a("98c7")},dc92:function(e,t,a){e.exports=a.p+"img/DisneyWithBorderTransparentBackgroundApp.c9f37dfd.png"},dd1e:function(e,t,a){e.exports=a.p+"img/detect-location.18e1607c.svg"},de5c:function(e,t,a){},de6c:function(e,t,a){e.exports=a.p+"img/router.422030c3.svg"},e0c1:function(e,t,a){},e0d5:function(e,t,a){e.exports=a.p+"img/unlimited-calls.b2a75bfb.svg"},e0dd:function(e,t,a){e.exports=a.p+"img/error-icon.4ab1d5c6.svg"},e296:function(e,t,a){e.exports=a.p+"img/password.63ab887f.svg"},e2eb:function(e,t,a){e.exports=a.p+"img/commenct-icon.4e40da03.svg"},e3ea:function(e,t,a){e.exports=a.p+"img/bahrain.b7d67b85.svg"},e626:function(e,t,a){e.exports=a.p+"img/extra-global.b24523d6.svg"},e73f:function(e,t,a){"use strict";a("d3bc")},e778:function(e,t,a){e.exports=a.p+"img/gcc1.a87d46b1.png"},e900:function(e,t,a){},ebe8:function(e,t,a){e.exports=a.p+"img/starr.0d3b4f96.svg"},ec97:function(e,t,a){e.exports=a.p+"img/login-icon.a4fe3211.svg"},ecce:function(e,t,a){"use strict";a("7a8f")},ecdc:function(e,t,a){},ee33:function(e,t,a){e.exports=a.p+"img/zain-app.0f7d5d99.svg"},ee39:function(e,t,a){"use strict";a("128e")},f261:function(e,t,a){e.exports=a.p+"img/inbox.72e9fe19.svg"},f3d7:function(e,t,a){e.exports=a.p+"img/logo-red.1ae3a81e.svg"},f4a7:function(e,t,a){e.exports=a.p+"img/fb.348220c2.svg"},f4c3:function(e,t,a){},f549:function(e,t,a){e.exports=a.p+"img/plans.056ebffa.svg"},f57b:function(e,t,a){var s={"./12-months.svg":"24eb","./24-months.svg":"0310","./36-months.svg":"1907","./KNETLogo.svg":"2187","./OTT/Footballfantasy.svg":"24db","./OTT/anghami.svg":"9fbf","./OTT/osn.svg":"2480","./OTT/shahid.svg":"6a5d","./OTT/starz.svg":"403d","./OTT/tod.svg":"4dfa","./OTT/youtube.svg":"1d17","./SMS-Myplan.svg":"1ede","./add-extra.svg":"c337","./aghani.svg":"3035","./all-dots.svg":"7059","./angle-arrow.svg":"0a93","./arrow-down.svg":"76bd","./arrow-up.svg":"c033","./arrows-down.svg":"c0f6","./auto-pay-arrow-down.svg":"82f5","./banner-plane.svg":"69be","./bein-sports.svg":"3049","./bills.svg":"1ee8","./broadband.svg":"5e45","./calendar-delivery.svg":"b158","./card-popup.svg":"14d0","./cart-arrow-down.svg":"64ce","./cart-arrow-down.up.svg":"b956","./cart-up-arrow.svg":"8ea3","./check.svg":"51c7","./checkout-w.svg":"cfd0","./checkout.svg":"5bf0","./clock-circle.svg":"466a","./clock-delivery.svg":"f6d0","./close-icon.svg":"9b7f","./collect_from_store.svg":"1e0e","./commenct-icon.svg":"e2eb","./commitment.svg":"03c0","./confirmation-pink.svg":"888c","./confirmation-success.svg":"d71a","./confirmation-white.svg":"949a","./credit-card.svg":"03ba","./cross-icon.svg":"6c73","./cross.svg":"4915","./custimize-plan.svg":"983d","./d-arrow-up-black.svg":"fa97","./d-arrow-up.svg":"d0ec","./delete.svg":"2c46","./delivery-home-truck.svg":"52ab","./detect-location.svg":"dd1e","./down-arrow.svg":"a9bb","./duration.svg":"9e15","./edit-icon.svg":"9e92","./edit.svg":"b0e3","./entry.svg":"d095","./error-icon.svg":"e0dd","./error.svg":"7314","./extra-global.svg":"e626","./extra-icon.svg":"230f","./extra-netflix.svg":"f6e4","./extra-netflixx.svg":"7382","./extra-roaming.svg":"652a","./extra-wifi.svg":"b18f","./extra-youtube.svg":"02a7","./extra-youtubee.svg":"58f0","./favorite-star.svg":"2c68","./filter-arrow.svg":"c14c","./filter-filled.svg":"37aa","./filter.svg":"b05f","./flag-icons/afghanistan.svg":"136b","./flag-icons/albania.svg":"525d","./flag-icons/algeria.svg":"7746","./flag-icons/anguilla.svg":"bb09","./flag-icons/antigua-and-barbuda.svg":"8c52","./flag-icons/argentina.svg":"5237","./flag-icons/armenia.svg":"9898","./flag-icons/bahamas.svg":"d77c","./flag-icons/bahrain.svg":"e3ea","./flag-icons/bangladesh.svg":"3d14","./flag-icons/barbados.svg":"a1ff","./flag-icons/belarus.svg":"b128","./flag-icons/belgium.svg":"aad5","./flag-icons/benin.svg":"be96","./flag-icons/bermuda.svg":"9035","./gift.svg":"754a","./globe.svg":"5cb9","./heart_fill.svg":"7378","./history.svg":"4e55","./home_delivery.svg":"337d","./hourglass.svg":"7832","./icon-cross.svg":"6999","./icon-field.svg":"6003","./icon-tick.svg":"c70d","./inbox-open.svg":"8333","./inbox.svg":"f261","./input-camera.svg":"42b6","./international-mins.svg":"48ba","./internet-sharing.svg":"bd45","./internet.svg":"8ffd","./isle-of-man.svg":"2a08","./kd-monthly-down.svg":"b9f4","./kd-monthly-up.svg":"67fc","./location.svg":"3589","./login-icon.svg":"ec97","./logo-red.svg":"f3d7","./logout.svg":"4488","./mail-dash.svg":"fcb4","./manage-plan/calender.svg":"03bd","./manage-plan/circle.svg":"b25c","./manage-plan/fb.svg":"f4a7","./manage-plan/ins.svg":"c449","./manage-plan/mail.svg":"6712","./manage-plan/manage-setting.svg":"953b","./manage-plan/new-phone.svg":"69de","./manage-plan/new-wifi.svg":"51f7","./manage-plan/phone-call.svg":"c6cb","./manage-plan/phone.svg":"9f92","./manage-plan/router.svg":"de6c","./manage-plan/sn.svg":"300b","./manage-plan/starr.svg":"ebe8","./manage-plan/thumb-primary.svg":"60c5","./manage-plan/thumb.svg":"2f6c","./manage-plan/tootip-img.svg":"5df0","./manage-plan/tw.svg":"5c1c","./manage-plan/validity.svg":"b880","./manage-plan/whatsapp-primary.svg":"bf3e","./manage-plan/whatsapp.svg":"cde6","./manage-plan/wifi.svg":"791f","./manage-plan/world.svg":"a70d","./manage-plan/youtube-primary.svg":"d4f9","./manage-plan/youtube.svg":"1274","./map/location-icon.svg":"5f95","./map_pn.svg":"b8e5","./mb-facebook.svg":"624e","./mb-instagram.svg":"56b2","./mb-twitter.svg":"2ac0","./missu.svg":"be7a","./movie-icon-primary.svg":"9e60","./movie-icon.svg":"23fd","./my-dashboard.svg":"207e","./my-plan-gradient.svg":"43ac","./my-plan.svg":"6f00","./my-zain-dashboard-gray.svg":"328b","./my-zain-dashboard.svg":"4e39","./my-zain-profile.svg":"9628","./netflix.svg":"f7cf","./network-type.svg":"ab4c","./no-commitment.svg":"87ac","./offers.svg":"1541","./order-history.svg":"3c53","./osn.svg":"5e42","./pagenav_offers.svg":"a5bc","./pagenav_plans.svg":"2ef1","./pagenav_products.svg":"7b5b","./pagenav_zainlife.svg":"2af4","./partner-email.svg":"3134","./password-gradient.svg":"360b","./password.svg":"e296","./pay-as-you-go.svg":"8afb","./pay-monthly.svg":"7d82","./phone-call.svg":"24f1","./plan-type.svg":"b66b","./plane.svg":"d32c","./plans--.svg":"34cb","./plans-icon.svg":"587d","./plans-w.svg":"6a0b","./plans.svg":"f549","./play-button.svg":"0c67","./postpaid-tick.svg":"c0a9","./prfole.svg":"3d84","./profile.svg":"c768","./roaming-without-internet.svg":"2e2e","./roaming/bahrain.svg":"201a","./roaming/chat-bot-small.svg":"0f96","./roaming/chat-bot.svg":"bfd2","./roaming/postpaid-line.svg":"8169","./roaming/prepaid-line.svg":"424c","./roaming/support.svg":"318e","./roaming/zain-app.svg":"ee33","./router.svg":"c008","./save-money.svg":"d6ff","./search-icon.svg":"d702","./secret-deals.svg":"88a5","./settings.svg":"09a5","./sign-out.svg":"6a02","./slide-arrow-up.svg":"1b9d","./slide-down-arrow.svg":"3cbd","./smart-home-zain-life.svg":"4426","./smart-phone.svg":"0219","./speech-bubble-white.svg":"72e0","./speech-bubble.svg":"2abf","./supermarket - white.svg":"862f","./supermarket.svg":"96aa","./tool-tip-icon.svg":"2413","./trash.svg":"311a","./unlimited-calls.svg":"e0d5","./unlimited-netflix.svg":"6d7f","./usage.svg":"18de","./visibility.svg":"551f","./voice-mail.svg":"3707","./want-to.svg":"c116","./wifi-1.svg":"ff40","./wifi-extra.svg":"fe75","./wifi.svg":"2ed8","./world.svg":"c8c2","./worldwide-w.svg":"da35","./worldwide.svg":"1bc7","./www-w.svg":"bfca","./www.svg":"28b5","./zain-pdf.svg":"c1cd","./zain-plans-offers/view-all.svg":"aeaf","./zain_logo.svg":"ca9b"};function i(e){var t=n(e);return a(t)}function n(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=n,e.exports=i,i.id="f57b"},f6d0:function(e,t,a){e.exports=a.p+"img/clock-delivery.78fd68be.svg"},f6e4:function(e,t,a){e.exports=a.p+"img/extra-netflix.42f6057e.svg"},f7cf:function(e,t,a){e.exports=a.p+"img/netflix.6a1ea859.svg"},fa97:function(e,t,a){e.exports=a.p+"img/d-arrow-up-black.12d87ce6.svg"},fcb4:function(e,t,a){e.exports=a.p+"img/mail-dash.7c95bd5c.svg"},fce8:function(e,t,a){"use strict";a("9071")},fe64:function(e,t,a){"use strict";a("2409")},fe75:function(e,t,a){e.exports=a.p+"img/wifi-extra.7c404a60.svg"},ff40:function(e,t,a){e.exports=a.p+"img/wifi-1.1dd56e1c.svg"}});