@tapni/auth 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@tapni/capacitor-reactive-localstorage-vue3"),require("@codetrix-studio/capacitor-google-auth"),require("@capacitor-community/facebook-login"),require("@capacitor-community/apple-sign-in"),require("@recognizebv/capacitor-plugin-msauth"),require("@capacitor/core"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@tapni/capacitor-reactive-localstorage-vue3","@codetrix-studio/capacitor-google-auth","@capacitor-community/facebook-login","@capacitor-community/apple-sign-in","@recognizebv/capacitor-plugin-msauth","@capacitor/core","@capacitor/browser","qr-code-styling","@braintree/sanitize-url"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.TapniAuth={},u.Vue,u.vueRouter,u.to,u.axios,u.jwtDecode,u.device,u.capacitorReactiveLocalstorageVue3,u.capacitorGoogleAuth,u.facebookLogin,u.appleSignIn,u.capacitorPluginMsauth,u.core,u.browser,u.QRCodeStyling,u.sanitizeUrl))})(this,function(u,e,re,_,S,N,L,se,V,ce,le,de,B,E,pe,_e){"use strict";const ue="0.0.21",p=(a,t=!1)=>{const n=ue;let o=S.create({baseURL:"https://api.tapni.co/v1/",headers:{Authorization:`Bearer ${a.token}`,"X-Client-Name":"sso-"+n.platform,"X-Client-Version":n.version}});return o.interceptors.request.use(async function(i){if(["post","put","delete"].includes(i.method.toLowerCase())?i.data={...i.data,lang:a.appLang,realm:a.realm||"app"}:i.method.toLowerCase()==="get"&&(i.params={...i.params,lang:a.appLang,realm:a.realm||"app"}),a.token&&!t){const r=N.jwtDecode(a.token);if(r.exp-30<Math.floor(Date.now()/1e3))return g.methods.refreshTokenAction(r).then(()=>(i.headers={...i.headers,Authorization:`Bearer ${a.token}`},i))}return i}),o},v={getMe(){return p(storage).get("/users/me")},getByUsername(a,t){let n=document.referrer||"",o=a.utmParams||{};return a.dontTap&&(o.dontTap=!0),p(t).get(`/users/${a.username}`,{params:o,headers:{"X-Referer":n}})},getByNumber(a,t){let n=document.referrer||"",o=a.utmParams||{};return a.dontTap&&(o.dontTap=!0),p(t).get(`/users/tag/${a.serial}`,{params:o,headers:{"X-Referer":n}})},save(a,t){return p(t).put("/users",a)},newPassword(a,t){return p(t).put("/users/new-password",a)},connect(a,t){return p(t).post("/users/connect",a)},eventLog(a,t){return p(t).post("/users/log",a)},deleteAccount(a,t){return p(t).post("/users/profile/delete",a)},registerDevice(a,t){return p(t).post("/users/device/register",a)},addFcmToken(a,t){return p(t).post("/users/device/fcm",a)},loginUsingQR(a,t){return p(t).post("/users/qr/login",a)}},x={registerDevice(a,t){return p(t).post("/devices/add",a)},addFcmToken(a,t){return p(t).post("/devices/fcm/add",a)}};let h;L.Device.getId().then(a=>h=a.uuid);const m={register(a,t){return a.device_id=h,p(t).post("/users/register",a)},login(a,t){return a.device_id=h,p(t).post("/users/login",a)},logout(a,t){return a.device_id=h,p(t).post("/users/logout",a)},refreshToken(a,t){return p(t,!0).get(`/users/refresh-token?UserId=${a.id}&token=${a.refreshToken}`)},getLoggedInAccounts(a,t){return p(t).post("/users/tokens",a)},sendResetEmail(a,t){return a.device_id=h,p(t).post("/users/reset",a)},changePassword(a,t){return p(t).put("/users/password",a,{headers:{Authorization:"Bearer "+a.token}})},verify(a,t){return p(t).get("/users/verify?c="+a.code+"&e="+a.email+"&captchatoken="+a.captchaToken)},googleUrl(a){return p(a).get("/users/google/url")},google(a,t){return a.device_id=h,p(t).post("/users/google",a)},facebook(a,t){return a.device_id=h,p(t).post("/users/facebook",a)},googleSDK(a,t){return a.device_id=h,p(t).post("/users/google/sdk",a)},facebookSDK(a,t){return a.device_id=h,p(t).post("/users/facebook/sdk",a)},appleSDK(a,t){return a.device_id=h,p(t).post("/users/apple/sdk",a)},microsoftSDK(a,t){return a.device_id=h,p(t).post("/users/microsoft/sdk",a)},oktaSDK(a,t){return a.device_id=h,p(t).post("/users/okta/sdk",a)},samlLoginUrl(a,t){return p(t).post("/saml/url",a)}},I={getBySSOEmail(a,t){return p(t).get(`/company/sso/${a}`)},acceptCompanyInvitation(a,t){return p(t).get(`/users/invitation?ic=${a}`)},qrCodePooling(a,t){return p(t).post("/company/login/qr",a)}},C=e.reactive(new Map),c={$on(a,t){let n=C.get(a);n||(n=new Set,C.set(a,n)),n.add(t)},$emit(a,...t){const n=C.get(a);if(n)for(const o of n)o(...t)},$off(a,t){const n=C.get(a);n&&n.delete(t)}};e.readonly(c);const q={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
1
+ (function(e,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@codetrix-studio/capacitor-google-auth"),require("@capacitor-community/facebook-login"),require("@capacitor-community/apple-sign-in"),require("@recognizebv/capacitor-plugin-msauth"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@codetrix-studio/capacitor-google-auth","@capacitor-community/facebook-login","@capacitor-community/apple-sign-in","@recognizebv/capacitor-plugin-msauth","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@tapni/capacitor-reactive-localstorage-vue3"],z):(e=typeof globalThis<"u"?globalThis:e||self,e.TapniAuth=z(e.Vue,e.vueRouter,e.to,e.axios,e.jwtDecode,e.device,e.core,e.capacitorGoogleAuth,e.facebookLogin,e.appleSignIn,e.capacitorPluginMsauth,e.browser,e.QRCodeStyling,e.sanitizeUrl,e.ReactiveStorage))})(this,function(e,z,_,L,V,E,S,B,se,ce,le,C,de,pe,_e){"use strict";const ue="0.0.23",p=(a,t=!1)=>{const n=ue;let o=L.create({baseURL:"https://api.tapni.co/v1/",headers:{Authorization:`Bearer ${a.token}`,"X-Client-Name":"sso-"+n.platform,"X-Client-Version":n.version}});return o.interceptors.request.use(async function(i){if(["post","put","delete"].includes(i.method.toLowerCase())?i.data={...i.data,lang:a.appLang,realm:a.realm||"app"}:i.method.toLowerCase()==="get"&&(i.params={...i.params,lang:a.appLang,realm:a.realm||"app"}),a.token&&!t){const r=V.jwtDecode(a.token);if(r.exp-30<Math.floor(Date.now()/1e3))return m.methods.refreshTokenAction(r).then(()=>(i.headers={...i.headers,Authorization:`Bearer ${a.token}`},i))}return i}),o},y={getMe(){return p(storage).get("/users/me")},getByUsername(a,t){let n=document.referrer||"",o=a.utmParams||{};return a.dontTap&&(o.dontTap=!0),p(t).get(`/users/${a.username}`,{params:o,headers:{"X-Referer":n}})},getByNumber(a,t){let n=document.referrer||"",o=a.utmParams||{};return a.dontTap&&(o.dontTap=!0),p(t).get(`/users/tag/${a.serial}`,{params:o,headers:{"X-Referer":n}})},save(a,t){return p(t).put("/users",a)},newPassword(a,t){return p(t).put("/users/new-password",a)},connect(a,t){return p(t).post("/users/connect",a)},eventLog(a,t){return p(t).post("/users/log",a)},deleteAccount(a,t){return p(t).post("/users/profile/delete",a)},registerDevice(a,t){return p(t).post("/users/device/register",a)},addFcmToken(a,t){return p(t).post("/users/device/fcm",a)},loginUsingQR(a,t){return p(t).post("/users/qr/login",a)}},x={registerDevice(a,t){return p(t).post("/devices/add",a)},addFcmToken(a,t){return p(t).post("/devices/fcm/add",a)}};let g;E.Device.getId().then(a=>g=a.uuid);const u={register(a,t){return a.device_id=g,p(t).post("/users/register",a)},login(a,t){return a.device_id=g,p(t).post("/users/login",a)},logout(a,t){return a.device_id=g,p(t).post("/users/logout",a)},refreshToken(a,t){return p(t,!0).get(`/users/refresh-token?UserId=${a.id}&token=${a.refreshToken}`)},getLoggedInAccounts(a,t){return p(t).post("/users/tokens",a)},sendResetEmail(a,t){return a.device_id=g,p(t).post("/users/reset",a)},changePassword(a,t){return p(t).put("/users/password",a,{headers:{Authorization:"Bearer "+a.token}})},verify(a,t){return p(t).get("/users/verify?c="+a.code+"&e="+a.email+"&captchatoken="+a.captchaToken)},googleUrl(a){return p(a).get("/users/google/url")},google(a,t){return a.device_id=g,p(t).post("/users/google",a)},facebook(a,t){return a.device_id=g,p(t).post("/users/facebook",a)},googleSDK(a,t){return a.device_id=g,p(t).post("/users/google/sdk",a)},facebookSDK(a,t){return a.device_id=g,p(t).post("/users/facebook/sdk",a)},appleSDK(a,t){return a.device_id=g,p(t).post("/users/apple/sdk",a)},microsoftSDK(a,t){return a.device_id=g,p(t).post("/users/microsoft/sdk",a)},oktaSDK(a,t){return a.device_id=g,p(t).post("/users/okta/sdk",a)},samlLoginUrl(a,t){return p(t).post("/saml/url",a)}},N={getBySSOEmail(a,t){return p(t).get(`/company/sso/${a}`)},acceptCompanyInvitation(a,t){return p(t).get(`/users/invitation?ic=${a}`)},qrCodePooling(a,t){return p(t).post("/company/login/qr",a)}},T=e.reactive(new Map),c={$on(a,t){let n=T.get(a);n||(n=new Set,T.set(a,n)),n.add(t)},$emit(a,...t){const n=T.get(a);if(n)for(const o of n)o(...t)},$off(a,t){const n=T.get(a);n&&n.delete(t)}};e.readonly(c);const M={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
2
2
  so that we can know who you are.
3
3
  <br><br>Be exclusive.
4
4
  <br>Not everyone gets accepted.😉`,referral_apply_now:"Apply now",referral_apply_thanks:"Thanks for applying. We will review your application soon!",connect:"Connect",with:"with",exchange_contact:"Exchange Contact",add_details:"Add more",show_details:"Show more",download_contact:"Download Contact",stay_in_touch:"Stay in touch with",no_thanks:"No Thanks",connect_join:"Join Tapni",connect_with:"Exchange contact with",connect_required_fields:"One of the two contact fields must be provided",name:"Name",first_name:"First name",last_name:"Last name",email:"Email",phone:"Phone number",phone_p:"Phone",company:"Company",address:"Address",website:"Website",open:"Open",delete:"Delete",confirm:"Confirm",cancel:"Cancel",save:"Save",code:"Code",note:"Note",note_p:"Add a note",contact_card_icon:"Set text under the contact card icon",contact_card_name:"Enter first and lastname",contact_card_name_p:"Contact card name",contact_card_email:"Enter personal email address",contact_card_email_p:"Contact card email",contact_card_phone:"Enter personal phone number",contact_card_phone_p:"Contact card phone",contact_card_website:"Enter personal website",contact_card_website_p:"Contact card website",contact_card_company_name:"Enter company name",contact_card_company_name_p:"Contact card company name",contact_card_job_title:"Job title",contact_card_job_title_p:"Enter job title",contact_card_company_website:"Company website",contact_card_company_website_p:"Enter company website",contact_card_bio:"Enter bio for the contact card",contact_card_bio_p:"Enter bio for the contact card",contact_card_home_address:"Enter home address",contact_card_home_address_p:"Contact card home address",contact_card_work_address:"Enter work address",contact_card_work_address_p:"Contact card work address",contact_card_social:"Choose social media links to your Tapni profile <br>in order to add them in the contact card",contact_card_social_p:"Choose social media links for the contact card",link_text_p:"Link Text",link_icon:"Set text under the link icon",direct_pick:"Pick a direct link",direct_p:"When you tap someone's phone, <br> this link will be opened instead of your full profile.",password_change:"Change password",password_repeat:"Repeat password",password_reset_t:"Password reset",password_current:"Enter your current password",password_current_p:"Current Password",password_new:"Enter your new password",password_new_p:"New Password",password_new_repeat:"Enter your new password again",password_new_repeat_p:"Enter your new password again",password_update:"Password update",password_reset:`If you can't remember your current password,<br>
@@ -11,7 +11,7 @@
11
11
  or if you have any questions,<br>
12
12
  write us on`,referral_p5:"Start earning money now!",referral_p66:"Share your referral link and make money!",referral_p6:`If you are a blogger, influencer or social media enthusiast you are a perfect fit for our Referral Program.
13
13
  Promote our Brand and earn a 20% commission on purchases made with your discount code or referral link.`,referral_p7:`After registering for the Tapni Referral Program, you will get a personal referral link and discount code.
14
- Share them on your website and social media, and make money while we deliver a great connecting experience.`,referral_p8:"Payout Note",referral_p9:"Paypal (Worldwide) and Bank Transfers (EU) <br> Minimum payout amount is 25€.",referral_p10:"Request Payout",referral_p11:"Requested Payout",your_connections:"Your connections",connections_p1:"Get in touch with people you met",connections_p2:"<br><br>No connections so far. <br> Let's get tappin'💥",connections_p3:"No connections found.",connection_success:"Successfully sent a connection request",exchange_success:"Successfully exchanged contacts.",create_free_account:"Create a free Tapni account and keep your contacts up to date!",connection_edit:"Manage connection",connection_edit_success:"Successfully updated connection",connection_delete_success:"Successfully deleted connection",search:"Search",devices_p1:"Devices compatibility list",devices_p2:"Tapni uses technology that is compatible with most newer iPhone and Android devices.",devices_p3:"Some Android phones might have NFC turned off. If your Tapni is not working on an Android device, search for NFC in settings and make sure it is turned on.",devices_p4:"with iOS 14 NFC widget in control center",download_p1:"Download Tapni App",download_p2:"Available for Apple and Android devices",user_not_found:"User not found",user_not_found_p:"We couldn't find the user in our database🤷",taps:"taps",private_profile:"Private profile",private_profile_p:"is a private profile. <br> Profile is visible using Tapni tags only ",profile_bio_p:"Write something about you or your brand",add_to_contacts:"Add to contacts",drag_and_drop_links:"Drag & Drop links in the desired order",no_links:"There are no links in your profile.",add_link:"Add link",direct_link_p1:"Visitors will be automatically redirected to:",profile_not_active:"Your profile is currently not active <br> and only you can see it when logged in.",profile_not_public:"Your profile is currently not public <br> and only those who tap you can see it.",activate_profile_now:"Activate your profile now",publish_profile_now:"Make your profile public now",link_add_p1:"Choose a link type",link_add_not_found:"No links found 🤷",link_add_not_found_p2:"If we missed your favourite platform, please drop us and email (<b>support@tapni.co</b>) or DM us on social media (<b>@tapni</b>)",link_add_not_found_p3:"We will try our best to support all platforms 😉",featured:"Featured",social_media:"Social media",contact:"Contact",finance:"Finance",portfolio:"Portfolio",music:"Music",business:"Business",fun:"Fun",ecommerce:"Ecommerce",more:"More",email_username:"Email / Username",username:"Username",password:"Password",sign_in:"Sign In",sign_in_with:"Sign In with",sign_in_with_new:"Sign In with new account",sign_up_with:"Sign Up with",select_sign_method:"Select a Sign In method",verify_account:"Verify account",terms_by_signing_in:"By signing in, you agree to our",terms_by_registering:"By registering, you agree to our",terms_by_submitting:"By submitting this form, you agree to our Terms of Service",terms_of_service:"Terms of Service",and:"and",refresh:"Refresh",privacy_policy:"Privacy Policy",create_account:"Create account",reset_password:"Reset password",reset_password_p1:"If you couldn't reset your password,<br> feel free to contact us at ",reset_password_p2:"If you couldn't reset your password,<br> feel free to contact us at",create_new_account:"Create new account",maintenance_p1:"We will be back soon",maintenance_p2:"Explore Tapni collections in the meantime",maintenance_p3:"Tapni is down for a scheduled maintenance <br> and is expected to be back online in a few minutes.",offline_p1:"No Internet connection",offline_p2:"Check your connection, then refresh the page",offline_p3_1:"While you are offline,",offline_p3_2:"you can share your contact card using this QR code",products_p1:"Impress everyone you meet 😎 <br> Get yours now 👇",cards:"Cards",stickers:"Stickers",keychains:"Keychains",explore_collection:"Explore collection",register:"Register",register_success:"You are almost done. Please confirm your email.",register_success_modal:"Successfully logged in with another account.",check_your_inbox:"Check your inbox",tapni_tags:"Tapni tags",tapni_tags_p1:"Configure tags connected to your profile",tapni_tags_p2:"There are no tags connected to your profile. <br> Connect one now!",verify_account_p1:"If you didn't receive a code, check your <br> spam folder or contact us at",verify_account_success:"Successfully verified account. Please change your password now.",verify_account_success2:"Successfully verified account. You are all set!🥳",welcome:"Welcome",welcome_p1:"to the future of business cards",how_it_works:"How it works",already_registered:"Already registered",error:"Error",success:"Success",copied:"Copied to clipboard",connect_validate:"One of the two contact fields must be provided",connect_validate_name:"Please enter your name",connect_validate_email:"Please enter a valid email address",link_validate:"Invalid link data.",link_text_contact_card:"Contact card",link_text_custom_link:"Custom link",link_text_menu:"Menu",link_text_phone:"Phone",save_to_apple_wallet:"Add to Apple Wallet",save_to_google_wallet:"Add to Google Wallet",card:"Card",sticker:"Sticker",keychain:"Keychain",band:"Band",case:"Case",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Outdated app version detected",update_p2:"Update",update_p3:"Please update the app to the newest version",company_domain:"Your company domain",search_company_domain:"Search your company domain",enter_company_email:"Enter company e-mail",company_not_found:"Company not found",ik_company_domain:"I know the company domain",idk_company_domain:"I don't know the company domain",continue:"Continue",forbidden_rule:"This option is disabled, contact your company administrator.",companyName:"Company Name",createMarkerPlaceholder:"Create or select a marker",clickToCreateMarker:"Click here to create marker",pleaseInviteUser:"Please invite user to join Tapni in order to have synchronized data with you.",connectionSynchronized:"Connection data is automatically synchronized.",viewProfile:"View Profile",createConnectionHeader:"Create new connection",createConnectionButton:"Create connection",createConnectionSuccess:"Connection has been created.",allow_company_management:"Allow company management",company_join_request:"is requesting to manage your profile and associate it to it's Enterprise account.",account_ownership_transfer:"Ownership of your account will be transferred to the company if you accept the request. The company will be able to modify your profile, edit and add links, see your connections, modify your password, delete your account, and more. Make sure to check with your company before accepting the request.",request_expired:"The request has expired, ask your company to send a new request.",request_expiration_desc:"For added security, the request will only work for 14 days after it was sent.",invitation_link_not_valid:"The invitation link is not valid!",invitation_link_not_valid2:"Click the button from the invitation email again or copy the invitation link.",accept_request:"Accept request",close:"Close",request_accepted:"The request was successfully accepted",companyEmail:"Company Email",companyPhone:"Company Phone",addBusinessInformations:"Add business informations",resetFilter:"Reset",selectMarkers:"Select Markers",filterConnectionsHeader:"Filter Connections",selectConnectionType:"Select Connection Type",all:"All",direct:"Direct",form:"Form",manually:"Manually",scan:"Scan",sortOptions:"Sort Options",date:"Creation Date",fullName:"Full Name",descending:"Descending",ascending:"Ascending",selectDateRange:"Select Date Range",follow_up_reminder:"Follow Up Reminder",now:"Now",one_hour:"1 Hour",one_day:"1 Day",three_days:"3 Days",one_week:"1 Week",two_weeks:"2 Weeks",one_month:"1 Month",custom:"Choose time",set_reminder:"Set Reminder",select_date_time:"Seleccione la fecha y la hora",enter_reminder_text:"Introduzca el texto del recordatorio",reminder_created:"Reminder successfully created",connectionNameLabel:"Enter connection Name",connectionEmailLabel:"Enter private email address",privatePhoneLabel:"Enter private phone number",companyNameLabel:"Enter company name",businessEmail:"Business email address",businessEmailLabel:"Enter business email address",businessPhone:"Business phone number",businessPhoneLabel:"Enter business phone number",noteLabel:"Enter note",markersLabel:"Add connection markers",showScan:"Show Scan",hideScan:"Hide Scan",create_connection:"Create connection",create_manually:"Create Manually",create_using_scanner:"Scan paper business card",companyTitle:"Job Title",companyTitleLabel:"Enter Job Title",allConnectionsLabel:"All connection types",directConnectionsLabel:"Direct in-app connection with Tapni Users",formConnectionsLabel:"Connections filled on connect form",manualConnectionsLabel:"Manually created connections",scanConnectionsLabel:"Card scanner created connections",analyticsHeader:"Analytics",analyticsProfileViews:"Profile Views",analyticsLinkClicks:"Link Clicks",analyticsClickTroughRatio:"Click Trough Ratio",analyticsTotalConnections:"Total Connections",analyticsTopLinks:"Most Popular Links",analyticsProfileVisits:"Profile Visits",analyticsLinkVisits:"Link Visits",analyticsNewConnections:"New Connections",analyticsTopCountries:"Top Countries",analyticsTopReferers:"Top Referers",please_wait:"Please wait...",click_here:"click here",if_redirect_not_directly:"If the redirect is not performed automatically",you_will_be_redirected:"You will be redirected to Tapni application.",use_tapni_on_the_web:"Use Tapni on the Web",login_by_scanning_qr_code:"Login by scanning QR Code",open_tapni_app_on_your_phone:"1. Open Tapni App on your phone",go_to_settings_link_a_device:"2. Go to Settings > Link a device",point_your_phone_at_this_qr_code:"3. Point your phone at this QR Code",choose_other_login_methods:"Choose other login methods",no_sso_logins:"Your company does not use SSO login, please contact your administrator"}},M={state:{english:"Englisch",spanish:"Spanisch",german:"Deutsch",korean:"Koreanisch",italian:"Italienisch",french:"Französisch",serbian:"Serbisch",turkish:"Türkisch",chinese:"Chinesisch",app_language:"Sprache",profile_preview:"Profil ansehen",edit_profile:"Profil bearbeiten",login:"Einloggen",referral_reach:"Geben Sie uns weitere Informationen über Sie und Ihre Reichweite.",referral_apply_placeholder:"Wie würden Sie Tapni promoten?",referral_apply_note:`Bitte vervollständigen Sie Ihr Profil, <br>
14
+ Share them on your website and social media, and make money while we deliver a great connecting experience.`,referral_p8:"Payout Note",referral_p9:"Paypal (Worldwide) and Bank Transfers (EU) <br> Minimum payout amount is 25€.",referral_p10:"Request Payout",referral_p11:"Requested Payout",your_connections:"Your connections",connections_p1:"Get in touch with people you met",connections_p2:"<br><br>No connections so far. <br> Let's get tappin'💥",connections_p3:"No connections found.",connection_success:"Successfully sent a connection request",exchange_success:"Successfully exchanged contacts.",create_free_account:"Create a free Tapni account and keep your contacts up to date!",connection_edit:"Manage connection",connection_edit_success:"Successfully updated connection",connection_delete_success:"Successfully deleted connection",search:"Search",devices_p1:"Devices compatibility list",devices_p2:"Tapni uses technology that is compatible with most newer iPhone and Android devices.",devices_p3:"Some Android phones might have NFC turned off. If your Tapni is not working on an Android device, search for NFC in settings and make sure it is turned on.",devices_p4:"with iOS 14 NFC widget in control center",download_p1:"Download Tapni App",download_p2:"Available for Apple and Android devices",user_not_found:"User not found",user_not_found_p:"We couldn't find the user in our database🤷",taps:"taps",private_profile:"Private profile",private_profile_p:"is a private profile. <br> Profile is visible using Tapni tags only ",profile_bio_p:"Write something about you or your brand",add_to_contacts:"Add to contacts",drag_and_drop_links:"Drag & Drop links in the desired order",no_links:"There are no links in your profile.",add_link:"Add link",direct_link_p1:"Visitors will be automatically redirected to:",profile_not_active:"Your profile is currently not active <br> and only you can see it when logged in.",profile_not_public:"Your profile is currently not public <br> and only those who tap you can see it.",activate_profile_now:"Activate your profile now",publish_profile_now:"Make your profile public now",link_add_p1:"Choose a link type",link_add_not_found:"No links found 🤷",link_add_not_found_p2:"If we missed your favourite platform, please drop us and email (<b>support@tapni.co</b>) or DM us on social media (<b>@tapni</b>)",link_add_not_found_p3:"We will try our best to support all platforms 😉",featured:"Featured",social_media:"Social media",contact:"Contact",finance:"Finance",portfolio:"Portfolio",music:"Music",business:"Business",fun:"Fun",ecommerce:"Ecommerce",more:"More",email_username:"Email / Username",username:"Username",password:"Password",sign_in:"Sign In",sign_in_with:"Sign In with",sign_in_with_new:"Sign In with new account",sign_up_with:"Sign Up with",select_sign_method:"Select a Sign In method",verify_account:"Verify account",terms_by_signing_in:"By signing in, you agree to our",terms_by_registering:"By registering, you agree to our",terms_by_submitting:"By submitting this form, you agree to our Terms of Service",terms_of_service:"Terms of Service",and:"and",refresh:"Refresh",privacy_policy:"Privacy Policy",create_account:"Create account",reset_password:"Reset password",reset_password_p1:"If you couldn't reset your password,<br> feel free to contact us at ",reset_password_p2:"If you couldn't reset your password,<br> feel free to contact us at",create_new_account:"Create new account",maintenance_p1:"We will be back soon",maintenance_p2:"Explore Tapni collections in the meantime",maintenance_p3:"Tapni is down for a scheduled maintenance <br> and is expected to be back online in a few minutes.",offline_p1:"No Internet connection",offline_p2:"Check your connection, then refresh the page",offline_p3_1:"While you are offline,",offline_p3_2:"you can share your contact card using this QR code",products_p1:"Impress everyone you meet 😎 <br> Get yours now 👇",cards:"Cards",stickers:"Stickers",keychains:"Keychains",explore_collection:"Explore collection",register:"Register",register_success:"You are almost done. Please confirm your email.",register_success_modal:"Successfully logged in with another account.",check_your_inbox:"Check your inbox",tapni_tags:"Tapni tags",tapni_tags_p1:"Configure tags connected to your profile",tapni_tags_p2:"There are no tags connected to your profile. <br> Connect one now!",verify_account_p1:"If you didn't receive a code, check your <br> spam folder or contact us at",verify_account_success:"Successfully verified account. Please change your password now.",verify_account_success2:"Successfully verified account. You are all set!🥳",welcome:"Welcome",welcome_p1:"to the future of business cards",how_it_works:"How it works",already_registered:"Already registered",error:"Error",success:"Success",copied:"Copied to clipboard",connect_validate:"One of the two contact fields must be provided",connect_validate_name:"Please enter your name",connect_validate_email:"Please enter a valid email address",link_validate:"Invalid link data.",link_text_contact_card:"Contact card",link_text_custom_link:"Custom link",link_text_menu:"Menu",link_text_phone:"Phone",save_to_apple_wallet:"Add to Apple Wallet",save_to_google_wallet:"Add to Google Wallet",card:"Card",sticker:"Sticker",keychain:"Keychain",band:"Band",case:"Case",standee:"Standee",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"Outdated app version detected",update_p2:"Update",update_p3:"Please update the app to the newest version",company_domain:"Your company domain",search_company_domain:"Search your company domain",enter_company_email:"Enter company e-mail",company_not_found:"Company not found",ik_company_domain:"I know the company domain",idk_company_domain:"I don't know the company domain",continue:"Continue",forbidden_rule:"This option is disabled, contact your company administrator.",companyName:"Company Name",createMarkerPlaceholder:"Create or select a marker",clickToCreateMarker:"Click here to create marker",pleaseInviteUser:"Please invite user to join Tapni in order to have synchronized data with you.",connectionSynchronized:"Connection data is automatically synchronized.",viewProfile:"View Profile",createConnectionHeader:"Create new connection",createConnectionButton:"Create connection",createConnectionSuccess:"Connection has been created.",allow_company_management:"Allow company management",company_join_request:"is requesting to manage your profile and associate it to it's Enterprise account.",account_ownership_transfer:"Ownership of your account will be transferred to the company if you accept the request. The company will be able to modify your profile, edit and add links, see your connections, modify your password, delete your account, and more. Make sure to check with your company before accepting the request.",request_expired:"The request has expired, ask your company to send a new request.",request_expiration_desc:"For added security, the request will only work for 14 days after it was sent.",invitation_link_not_valid:"The invitation link is not valid!",invitation_link_not_valid2:"Click the button from the invitation email again or copy the invitation link.",accept_request:"Accept request",close:"Close",request_accepted:"The request was successfully accepted",companyEmail:"Company Email",companyPhone:"Company Phone",addBusinessInformations:"Add business informations",resetFilter:"Reset",selectMarkers:"Select Markers",filterConnectionsHeader:"Filter Connections",selectConnectionType:"Select Connection Type",all:"All",direct:"Direct",form:"Form",manually:"Manually",scan:"Scan",sortOptions:"Sort Options",date:"Creation Date",fullName:"Full Name",descending:"Descending",ascending:"Ascending",selectDateRange:"Select Date Range",follow_up_reminder:"Follow Up Reminder",now:"Now",one_hour:"1 Hour",one_day:"1 Day",three_days:"3 Days",one_week:"1 Week",two_weeks:"2 Weeks",one_month:"1 Month",custom:"Choose time",set_reminder:"Set Reminder",select_date_time:"Seleccione la fecha y la hora",enter_reminder_text:"Introduzca el texto del recordatorio",reminder_created:"Reminder successfully created",connectionNameLabel:"Enter connection Name",connectionEmailLabel:"Enter private email address",privatePhoneLabel:"Enter private phone number",companyNameLabel:"Enter company name",businessEmail:"Business email address",businessEmailLabel:"Enter business email address",businessPhone:"Business phone number",businessPhoneLabel:"Enter business phone number",noteLabel:"Enter note",markersLabel:"Add connection markers",showScan:"Show Scan",hideScan:"Hide Scan",create_connection:"Create connection",create_manually:"Create Manually",create_using_scanner:"Scan paper business card",companyTitle:"Job Title",companyTitleLabel:"Enter Job Title",allConnectionsLabel:"All connection types",directConnectionsLabel:"Direct in-app connection with Tapni Users",formConnectionsLabel:"Connections filled on connect form",manualConnectionsLabel:"Manually created connections",scanConnectionsLabel:"Card scanner created connections",analyticsHeader:"Analytics",analyticsProfileViews:"Profile Views",analyticsLinkClicks:"Link Clicks",analyticsClickTroughRatio:"Click Trough Ratio",analyticsTotalConnections:"Total Connections",analyticsTopLinks:"Most Popular Links",analyticsProfileVisits:"Profile Visits",analyticsLinkVisits:"Link Visits",analyticsNewConnections:"New Connections",analyticsTopCountries:"Top Countries",analyticsTopReferers:"Top Referers",please_wait:"Please wait...",click_here:"click here",if_redirect_not_directly:"If the redirect is not performed automatically",you_will_be_redirected:"You will be redirected to Tapni application.",use_tapni_on_the_web:"Use Tapni on the Web",login_by_scanning_qr_code:"Login by scanning QR Code",open_tapni_app_on_your_phone:"1. Open Tapni App on your phone",go_to_settings_link_a_device:"2. Go to Settings > Link a device",point_your_phone_at_this_qr_code:"3. Point your phone at this QR Code",choose_other_login_methods:"Choose other login methods",no_sso_logins:"Your company does not use SSO login, please contact your administrator"}},q={state:{english:"Englisch",spanish:"Spanisch",german:"Deutsch",korean:"Koreanisch",italian:"Italienisch",french:"Französisch",serbian:"Serbisch",turkish:"Türkisch",chinese:"Chinesisch",app_language:"Sprache",profile_preview:"Profil ansehen",edit_profile:"Profil bearbeiten",login:"Einloggen",referral_reach:"Geben Sie uns weitere Informationen über Sie und Ihre Reichweite.",referral_apply_placeholder:"Wie würden Sie Tapni promoten?",referral_apply_note:`Bitte vervollständigen Sie Ihr Profil, <br>
15
15
  damit wir wissen, wer Sie sind.
16
16
  <br><br>Seien Sie exklusiv.
17
17
  <br>Nicht jeder wird akzeptiert.😉`,referral_apply_now:"Jetzt bewerben",referral_apply_thanks:"Danke für die Bewerbung. Wir prüfen Ihre Bewerbung in Kürze!",connect:"Verbinden",with:"mit",exchange_contact:"Kontakt austauschen",add_details:"Mehr hinzufügen",show_details:"Mehr anzeigen",download_contact:"Kontakt herunterladen",stay_in_touch:"Bleiben Sie in Kontakt mit",no_thanks:"Nein Danke",connect_join:"Tapni beitreten",connect_with:"Verbinden mit",connect_required_fields:"Ein Kontaktfeld muss angegeben werden",name:"Name",first_name:"Vorname",last_name:"Nachname",email:"Email",phone:"Handynummer",phone_p:"Handy",company:"Unternehmen",address:"Anschrift",website:"Website",open:"Öffnen",delete:"Löschen",confirm:"Bestätigen",cancel:"Abbrechen",save:"Speichern",code:"Code",note:"Notiz",note_p:"Notiz hinzufügen",contact_card_icon:"Legen Sie Text unter dem Kontaktkartensymbol fest",contact_card_name:"Namen für die Kontaktkarte eingeben",contact_card_name_p:"Name der Kontaktkarte",contact_card_email:"Email für die Kontaktkarte eingeben",contact_card_email_p:"Kontaktkarten-Email",contact_card_phone:"Telefon für die Kontaktkarte eingeben",contact_card_phone_p:"Kontaktkarte Telefon",contact_card_website:"Webseite für die Kontaktkarte eingeben",contact_card_website_p:"Kontaktkarte Webseite",contact_card_company_name:"Firmennamen für die Kontaktkarte eingeben",contact_card_company_name_p:"Kontaktkarte Firmennamen",contact_card_job_title:"Berufsbezeichnung",contact_card_job_title_p:"Berufsbezeichnung eingeben",contact_card_company_website:"Website des Unternehmens",contact_card_company_website_p:"Unternehmenswebsite eingeben",contact_card_bio:"Bio für die Kontaktkarte eingeben",contact_card_bio_p:"Kontaktkarte bio",contact_card_home_address:"Privatadresse für die Kontaktkarte eingeben",contact_card_home_address_p:"Privatadresse der Kontaktkarte",contact_card_work_address:"Arbeitsadresse für die Kontaktkarte eingeben",contact_card_work_address_p:"Kontaktkarte Arbeitsadresse",contact_card_social:"Wählen Sie Social-Media-Links zu Ihrem Tapni-Profil aus <br>um sie in die Kontaktkarte aufzunehmen",contact_card_social_p:"Wählen Sie Social-Media-Links für die Kontaktkarte aus",link_text_p:"Link Text",link_icon:"Text unter dem Link setzen",direct_pick:"Direktlink auswählen",direct_p:"Leiten Sie Besucher auf diesen Link, <br> statt auf Ihr Tapni Profil um.",password_change:"Passwort ändern",password_repeat:"Wiederhole das Passwort",password_reset_t:"Passwort zurücksetzen",password_current:"Aktuelles Passwort eingeben",password_current_p:"Aktuelles Passwort",password_new:"Neues Passwort eingeben",password_new_p:"Neues Passwort",password_new_repeat:"Neues Passwort wiederholen",password_new_repeat_p:"Neues Passwort erneut eingeben",password_update:"Passwort aktualisieren",password_reset:`Wenn Sie Ihr aktuelles Passwort vergessen haben,<br>
@@ -99,4 +99,4 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
99
99
  또는 궁금한 게 있으면,<br>
100
100
  저희에게 연락주세요`,referral_p5:"지금부터 돈을 벌기 시작하세요!",referral_p66:"제휴링크를 공유하고 돈을 벌어보세요!",referral_p6:`블로거, 인플루언서 또는 소셜 미디어 매니아라면 당사의 엠버서더 프로그램 에 완벽하게 적합합니다.
101
101
  브랜드를 홍보하고 할인 코드 또는 추천 링크를 사용하여 구입한 경우 20%의 수수료를 받으십시오.`,referral_p7:`탭니 엠버서더 프로그램에 등록하면 개인 추천 링크와 할인 코드가 발급됩니다.
102
- 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.co</b>) 아니면 소셜 미디어로 DM을 해주세요.(<b>@tapni</b>)",link_add_not_found_p3:"모든 플랫폼을 지원할 수 있도록 최선을 다하겠습니다. 😉",featured:"피처링",social_media:"소셜 미디어",contact:"연락처",finance:"금융",portfolio:"포트폴리오",music:"음악",business:"비지니스",fun:"재미",ecommerce:"전자상거래",more:"더 보기",email_username:"이메일 / 사용자 이름",username:"사용자 이름",password:"비밀번호",sign_in:"로그인",sign_in_with:"로그인",sign_in_with_new:"새 계정으로 로그인",sign_up_with:"등록하기",select_sign_method:"로그인 방법 선택",verify_account:"계정 확인",terms_by_signing_in:"회원님의 동의로 회원가입을 합니다.",terms_by_registering:"동의하시면 등록하여 주십시오.",terms_by_submitting:"이 양식을 제출하면 서비스 약관에 동의하는 것입니다",terms_of_service:"서비스 약관",and:"그리고",refresh:"새로 고침",privacy_policy:"개인 정보 보호 정책",create_account:"계정 만들기",reset_password:"비밀번호 재설정",reset_password_p1:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",reset_password_p2:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",create_new_account:"새 계정 만들기",maintenance_p1:"우리는 곧 돌아올 것이다.",maintenance_p2:"그동안 탭니 컬렉션 살펴보기",maintenance_p3:"탭니는 예정된 점검으로 인하여 잠시 중단되었습니다. <br> 몇 분 내로 다시 온라인 상태가 될 것입니다.",offline_p1:"인터넷에 연결되지 않음",offline_p2:"연결을 확인한 다음 페이지를 새로 고치십시오.",offline_p3_1:"오프라인일 때 이 QR 코드를 사용하여 연락처 카드를 공유할 수 있습니다.",offline_p3_2:"",products_p1:"만나는 모든 사람에게 깊은 인상을 남깁니다. 😎 <br> 지금 바로 구입하십시오 👇",cards:"카드",stickers:"스티커",keychains:"키 체인",explore_collection:"컬렉션 탐색",register:"등록",register_success:"거의 다 완료하였습니다. 이메일을 확인해 주세요.",register_success_modal:"다른 계정으로 로그인했습니다.",check_your_inbox:"첫 번째 링크를 추가 해 주세요.",tapni_tags:"탭니 태그",tapni_tags_p1:"프로필에 연결된 태그 구성",tapni_tags_p2:"프로필에 연결된 태그가 없습니다. <br> 지금 연결하세요!",verify_account_p1:"코드를 받지 못한 경우 다음을 확인하십시오. <br> 스팸 폴더 또는 연락주세요:",verify_account_success:"계정을 확인했습니다. 지금 비밀번호를 변경해 주세요.",verify_account_success2:"계정을 확인했습니다. 모두 완료 되었습니다.!🥳",welcome:"반갑습니다.",welcome_p1:"비지니스 카드의 미래까지",how_it_works:"작동 방식",already_registered:"이미 등록되어있습니다",error:"오류",success:"성공",copied:"클립보드에 복사됨",connect_validate:"두 개의 연락처 필드 중 하나를 제공해야 합니다.",connect_validate_name:"이름을 입력하십시오.",connect_validate_email:"유효한 이메일을 입력하세요",link_validate:"잘못된 링크 데이터입니다.",link_text_contact_card:"연락처 카드",link_text_custom_link:"사용자 지정 링크",link_text_menu:"메뉴",link_text_phone:"휴대폰",save_to_apple_wallet:"Apple 지갑에 저장",save_to_google_wallet:"Google 지갑에 저장",card:"카드",sticker:"상표",keychain:"키체인",band:"밴드",case:"사례",standee:"서다",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"오래된 앱 버전이 감지되었습니다",update_p2:"업데이트",update_p3:"앱을 최신 버전으로 업데이트하세요",company_domain:"귀하의 회사 도메인",search_company_domain:"회사 도메인 검색",enter_company_email:"회사 이메일을 입력하세요",company_not_found:"회사를 찾을 수 없음",ik_company_domain:"회사 도메인을 알고 있습니다",idk_company_domain:"회사 도메인을 모릅니다",continue:"계속",forbidden_rule:"이 옵션은 비활성화되어 있습니다. 회사 관리자에게 문의하십시오.",companyName:"회사 이름",createMarkerPlaceholder:"마커 생성 또는 선택",clickToCreateMarker:"마커를 만들려면 여기를 클릭하세요.",pleaseInviteUser:"데이터를 동기화하려면 사용자를 Tapni에 가입하도록 초대하세요.",connectionSynchronized:"연결 데이터가 자동으로 동기화됩니다.",viewProfile:"프로필보기",createConnectionHeader:"새 연결 추가",createConnectionButton:"추가하다",createConnectionSuccess:"연결이 생성되었습니다.",allow_company_management:"회사 관리 허용",company_join_request:"이 귀하의 프로필을 관리하고 이를 기업 계정에 연결하도록 요청하고 있습니다.",account_ownership_transfer:"귀하가 요청을 수락하면 귀하의 계정 소유권이 회사로 이전됩니다. 회사는 귀하의 프로필을 수정하고, 링크를 편집 및 추가하고, 연결을 확인하고, 비밀번호를 수정하고, 계정을 삭제하는 등의 작업을 수행할 수 있습니다. 요청을 수락하기 전에 회사에 확인하십시오.",request_expired:"요청이 만료되었습니다. 회사에 새 요청을 보내도록 요청하십시오.",request_expiration_desc:"보안 강화를 위해 요청은 전송된 후 14일 동안만 작동합니다.",invitation_link_not_valid:"초대 링크가 유효하지 않습니다!",invitation_link_not_valid2:"초대 이메일에서 버튼을 다시 클릭하거나 초대 링크를 복사합니다.",accept_request:"요청 수락",close:"닫다",request_accepted:"요청이 성공적으로 수락되었습니다.",companyEmail:"회사 이메일",companyPhone:"회사 전화",addBusinessInformations:"비즈니스 정보 추가",resetFilter:"초기화",selectMarkers:"마커 선택",filterConnectionsHeader:"필터 연결",selectConnectionType:"연결 유형 선택",all:"모두",direct:"직접",form:"형태",manually:"수동으로",scan:"주사",sortOptions:"정렬 옵션",date:"제작 일",fullName:"성명",descending:"내림차순",ascending:"오름차순",selectDateRange:"날짜 범위 선택",follow_up_reminder:"후속 알림",now:"지금",one_hour:"1 토",one_day:"1 일",three_days:"3 일",one_week:"일주",two_weeks:"이주",one_month:"개월",custom:"시간 선택",set_reminder:"알림 설정",select_date_time:"날짜 및 시간 선택",enter_reminder_text:"알림 텍스트 입력",reminder_created:"알림이 생성되었습니다.",connectionNameLabel:"연결 이름 입력",connectionEmailLabel:"개인 이메일 주소 입력",privatePhoneLabel:"개인 전화번호 입력",companyNameLabel:"회사 이름 입력",businessEmail:"비즈니스 이메일 주소",businessEmailLabel:"비즈니스 이메일 주소 입력",businessPhone:"회사 전화번호",businessPhoneLabel:"회사 전화번호 입력",noteLabel:"메모 입력",markersLabel:"연결 마커 추가",showScan:"스캔 표시",hideScan:"스캔 숨기기",create_connection:"연결 추가",create_manually:"수동으로 추가",create_using_scanner:"카드 스캐너를 사용하여 추가",companyTitle:"회사명",companyTitleLabel:"회사명 입력",allConnectionsLabel:"모든 연결 유형",directConnectionsLabel:"Tapni 사용자와 직접 앱 내 연결",formConnectionsLabel:"연결 양식에 채워진 연결",manualConnectionsLabel:"수동으로 생성된 연결",scanConnectionsLabel:"카드 스캐너가 연결을 생성했습니다.",analyticsHeader:"분석",analyticsProfileViews:"프로필 보기",analyticsLinkClicks:"링크 클릭 수",analyticsClickTroughRatio:"트로프 비율 클릭",analyticsTotalConnections:"총 연결 수",analyticsTopLinks:"가장 인기 있는 링크",analyticsProfileVisits:"프로필 방문",analyticsLinkVisits:"링크 방문",analyticsNewConnections:"새로운 연결",analyticsTopCountries:"상위 국가",analyticsTopReferers:"상위 추천인",please_wait:"잠시만 기다려 주세요...",click_here:"여기를 클릭하세요",if_redirect_not_directly:"리디렉션이 자동으로 수행되지 않는 경우",you_will_be_redirected:"Tapni 애플리케이션으로 리디렉션됩니다.",use_tapni_on_the_web:"웹에서 Tapni 사용하기",login_by_scanning_qr_code:"QR 코드 스캔하여 로그인하기",open_tapni_app_on_your_phone:"1. 휴대폰에서 Tapni 앱 열기",go_to_settings_link_a_device:"2. 설정 > 장치 연결로 이동하기",point_your_phone_at_this_qr_code:"3. 휴대폰을 이 QR 코드에 맞추기",choose_other_login_methods:"다른 로그인 방법 선택하기",no_sso_logins:"귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."}};var ge={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const g={mixins:[se.StorageMixin],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:q.state,de:M.state,es:D.state,fr:R.state,it:O.state,sr:K.state,tr:U.state,cn:me.state,kr:H.state},display:"npm",redirect_uri:"https://t.link/callback/auth",response_type:"token",state:"",allowedOrigins:["https://business.tapni.com","https://business-dev.tapni.com","https://tapni.com","https://tapni.co","https://t.link","https://my.tapni.com","https://my.tapni.co","https://dev.tapni.co","https://dev.tapni.com","https://auth.tapni.com","https://auth.tapni.co","https://mailsign.link","https://sign.tapni.com","https://qrcodetoolkit.com","https://qr.tapni.com","https://designer.tapni.com","https://designer-dev.tapni.com"]}},computed:{appLang(){return this.appLanguage},isLoggedIn(){return!!this.token&&this.token!==""&&this.token!=="null"},renderView(){return this.display==="redirect"?!1:this.view}},mounted(){this.$route.query.redirect_uri&&(this.redirect_uri=this.$route.query.redirect_uri),this.$route.query.display&&(this.display=this.$route.query.display),this.$route.query.state&&(this.state=this.$route.query.state),this.$route.query.response_type&&(this.response_type=this.$route.query.response_type),this.$route.query.realm&&(this.storage.realm=this.$route.query.realm),c.$on("updateLang",this.updateLang),ge.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(a){if(a&&a.response&&a.response.data&&a.response.data.error){if(a.response.data.error==="ACCESS_DENIED"||a.response.data.error==="TOKEN_EXPIRED")return this.logout();!a.response.data.error.includes("Network Error")&&!a.response.data.error.includes("Cannot read properties")&&this.errorSnack(a.response.data.error)}return a},errorSnack(a){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=a,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(a){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=a,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog(a){const[t,n]=await _(v.eventLog(a,this.storage));return t?this.errorHandler(t):n},async maintenance(){const[a,t]=await _(S.get("https://status.tapni.co/data/maintenance.json"));if(a)return console.error(a);if(t){let n=t.data;typeof t.data=="string"&&(n=JSON.parse(t.data)),n.api&&n.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+n.api.msg)}},async getUser(a){if(a){let t,n;if(a.username?[t,n]=await _(v.getByUsername(a,this.storage)):a.serial&&([t,n]=await _(v.getByNumber(a,this.storage))),t)return this.errorHandler(t);if(n.data.success){if(!n.data.user&&n.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+n.data.showDemoProfile)}!n.data.user&&a.login&&this.logout(),this.registerLang(n.data.user?n.data.user.ssoLang:"en"),this.setUser(n.data.user)}}},async loginSetup(a){var t,n;a.data.refreshToken&&this.setRefreshToken(a.data.refreshToken),a.data.token&&this.setToken(a.data.token),((n=(t=a.data)==null?void 0:t.data)==null?void 0:n.ssoLang)!==this.appLang&&c.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLang,username:a.data.data.username}}),this.setLoggedInUserId(a.data.data.id),this.storage.UserId=a.data.data.id,this.storage.username=a.data.data.username,a.isModal===!0&&this.setLoggedInAccounts([{id:a.data.data.id,username:a.data.data.username,refreshToken:a.data.refreshToken,photo:a.data.data.photo}])},async refreshTokenAction(a){const[t,n]=await _(m.refreshToken({id:a.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.storage));if(t&&t.response&&t.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();this.setToken(n.data.token)},async login(a){const[t,n]=await _(m.login(a,this.storage));if(t)return this.errorHandler(t);if(n.data.success)return this.display==="npm"&&(this.loginSetup({...n,isModal:a.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...n,isModal:a.isModal}),!0},loginSuccess(a){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(t=>this.redirect_uri.startsWith(t)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+a.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(t=>{var n;(n=window.parent)==null||n.postMessage({code:a.data.auth_code,state:this.$route.query.state},t)}):this.display==="npm"&&(c.$emit("ssoEvent",{name:"setLoading",data:!0}),c.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:a.data.data.username}}),a.isModal&&(c.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLang].success_login)),this.$router.push("/"+a.data.data.username+"#edit"))},async register(a){const[t,n]=await _(m.register(a,this.storage));return t?this.errorHandler(t):n},async verify(a){const[t,n]=await _(m.verify(a,this.storage));return t?this.errorHandler(t):n},async reset(a){const[t,n]=await _(m.sendResetEmail(a,this.storage));if(t)return this.errorHandler(t);n.data.success&&this.successSnack(this.ssoLang[this.appLang].password_reset_success)},async exchangeAuthCode(a){const[t,n]=await _(S.post("https://api.tapni.co/v1/users/auth-code",{code:a.code,code_verifier:a.code_verifier}));if(t)return this.errorHandler(t);await this.loginSetup(n),await this.getLoggedInAccounts(),this.loginSuccess(n)},async changePassword(a){const[t,n]=await _(m.changePassword(a,this.storage));return t?this.errorHandler(t):n.data.success},async newPassword(a){const[t,n]=await _(v.newPassword(a,this.storage));return t?this.errorHandler(t):n.data.success},async deleteAccount(a){const[t,n]=await _(v.deleteAccount(a,this.storage));return t?this.errorHandler(t):n.data.success},async registerDevice(){const a=await L.Device.getId(),t=await L.Device.getInfo();let n={device_id:a.uuid,platform:t.platform,device_info:{model:t.model,manufacturer:t.manufacturer,operatingSystem:t.operatingSystem,osVersion:t.osVersion,isVirtual:t.isVirtual,webViewVersion:t.webViewVersion}};const[o,i]=await _(x.registerDevice(n,this.storage));return o?this.errorHandler(o):i},async addFcmToken(a){const[t,n]=await _(x.addFcmToken(a,this.storage));return t?this.errorHandler(t):n},async acceptCompanyInvitation(a){const[t,n]=await _(I.acceptCompanyInvitation(a,this.storage));return t?this.errorHandler(t):n},async logout(a=!0){a&&m.logout({token:this.refreshToken},this.storage),this.storage.username=null,this.storage.ssoUser=null,this.storage.UserId=null,this.setLoggedInUserId(null),this.setToken(null),this.setRefreshToken(null),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(t=>{this.loggedInAccounts[t].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[t].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[t].id),this.storage.username=t,this.storage.UserId=this.loggedInAccounts[t].id,this.getLoggedInAccounts(),this.$router.push("/"+t)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(a){const[t,n]=await _(I.getBySSOEmail(a.email,this.storage));if(t)return this.errorHandler(t);if(n.data.success)return n.data},async getLoggedInAccounts(){const a=this.getRefreshTokens(),[t,n]=await _(m.getLoggedInAccounts({refreshTokens:a},this.storage));if(t)return this.errorHandler(t);n.data.success&&this.setLoggedInAccounts(n.data.accounts)},async loginUsingQR(a){const[t,n]=await _(v.loginUsingQR(a,this.storage));return t?this.errorHandler(t):n.data.success},setLoggedInAccounts(a){this.loggedInAccounts={},a.forEach(t=>{this.loggedInAccounts[t.username]=t}),c.$emit("ssoEvent",{name:"setLoggedInAccounts",data:a})},setLoggedInUserId(a){this.loggedInUserId=a},setUser(a){this.ssoUser=a,this.storage&&this.ssoUser&&this.storage.username===this.ssoUser.username&&(this.appLanguage=a.ssoLang)},getRefreshTokens(){return console.log("getRefreshTokens",this.storage,this.storageApp),this.storage.refreshTokens.split(",")},setRefreshToken(a){let t=this.getRefreshTokens();a&&!t.includes(a)?t.unshift(a):t=t.filter(n=>n!==this.refreshToken),t.length>=1?this.refreshToken=t[0]:this.refreshToken=a,this.storage.refreshTokens=t.join(","),c.$emit("ssoEvent",{name:"setRefreshToken",data:a})},setToken(a){console.log("setup token"),this.storage.token=a,this.token=a,c.$emit("ssoEvent",{name:"setToken",data:a})},setUserID(a){this.storage.UserId=a},updateLang(a){this.appLanguage=a}},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&(this.redirect_uri=this.$route.query.redirect_uri),this.$route.query.display&&(this.display=this.$route.query.display),this.$route.query.state&&(this.state=this.$route.query.state),this.$route.query.response_type&&(this.response_type=this.$route.query.response_type),this.$route.query.realm&&(this.storage.realm=this.$route.query.realm),this.$route.query.qrLogin&&this.changeLoginToQr()},deep:!0}}},b=(a,t)=>{const n=a.__vccOpts||a;for(const[o,i]of t)n[o]=i;return n},he={name:"AuthWelcome",mixins:[g],data(){return{loading:!0}},async mounted(){document.getElementById("tapniVideo").play(),setTimeout(()=>{this.storage.token?this.$router.push(this.home):c.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),c.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},F=a=>(e.pushScopeId("data-v-bf520ec5"),a=a(),e.popScopeId(),a),fe={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ke=["autoplay"],be=[F(()=>e.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],ye={class:"bold full-top no-bottom center-text"},ve={class:"full-bottom half-top center-text color-black font-16"},we={class:"page-login-links center-text"},ze=F(()=>e.createElementVNode("div",{class:"clear"},null,-1)),Se={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Le=[e.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a>',3)];function Ee(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:a.isNative},be,8,ke),e.createElementVNode("h1",ye,e.toDisplayString(a.ssoLang[this.appLang].welcome),1),e.createElementVNode("p",ve,e.toDisplayString(a.ssoLang[this.appLang].welcome_p1),1),e.createCommentVNode("",!0),e.createCommentVNode("",!0),e.createVNode(l,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(a.ssoLang[this.appLang].create_account),1)]),_:1}),e.createElementVNode("div",we,[e.createVNode(l,{to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].already_registered)+"? ",1),e.createElementVNode("b",null,e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),ze]),this.isNative?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Se,Le))])}const Q=b(he,[["render",Ee],["__scopeId","data-v-bf520ec5"]]),$={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var a,t;return(((t=(a=this.ssoCompany)==null?void 0:a.login)==null?void 0:t.google_login)&&!this.isModal)??!0}},mounted(){V.GoogleAuth.initialize()},methods:{async googleLogin(){var n;this.googleLoad=!0;let[a,t]=await _(V.GoogleAuth.signIn());if(a)return this.googleLoad=!1;if(this.referral&&(t.ref=this.referral),t.authentication&&(t.authentication.accessToken||t.authentication.idToken)){this.referral&&(t.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(m.googleSDK(t,this.storage));if(o)return this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.$router.push("/"+i.data.data.username+"#edit"),setTimeout(()=>{this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(a,t,n){var o,i=a.getElementsByTagName(t)[0];a.getElementById(n)||(o=a.createElement(t),o.id=n,o.src="https://connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(o,i))}(document,"script","facebook-jssdk");const G={data(){return{facebookLoad:!1}},computed:{fbLoginUrl(){return'https://www.facebook.com/v16.0/dialog/oauth?client_id=202577611527680&state={"oauth":"facebook"}&response_type=code%20granted_scopes&scope=email&redirect_uri=https://'+window.location.host+"/login"},displayFacebookLogin(){return!1}},methods:{async facebookLogin(){var o;this.facebookLoad=!0;const a=["email"],[t,n]=await _(ce.FacebookLogin.login({permissions:a}));if(t)return this.facebookLoad=!1;if(this.referral&&(n.ref=this.referral),this.display==="popup"&&(n.response_type="code"),n.accessToken){const[i,r]=await _(m.facebookSDK(n,this.storage));if(i)return this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(i);if(r.data.success){if(this.display==="popup")return(o=window.parent)==null?void 0:o.postMessage({code:r.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(r),this.getLoggedInAccounts(),this.$router.push("/"+r.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}},W={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var a,t;return(((t=(a=this.ssoCompany)==null?void 0:a.login)==null?void 0:t.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var n;this.appleLoad=!0;const[a,t]=await _(le.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(a)return this.appleLoad=!1;if(t.response.tokenData=N.jwtDecode(t.response.identityToken),t&&t.response&&t.response.identityToken){this.referral&&(t.response.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(m.appleSDK(t.response,this.storage));if(o)return this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.$router.push("/"+i.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var Ce={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const T={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var a,t;return(((t=(a=this.ssoCompany)==null?void 0:a.login)==null?void 0:t.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(a,t={}){var i,r,l;a==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(t).length||(t=((r=(i=this.ssoCompany.sso)==null?void 0:i.azure)==null?void 0:r.sso)||{});const[n,o]=await _(de.MsAuthPlugin.login({clientId:a==="sso"?t.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:a==="sso"?t.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:Ce.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(n)return console.log("Error: "+JSON.stringify(n)),this.microsoftLoad=!1;if(this.referral&&(o.ref=this.referral),o.response_type="code",o&&(o.accessToken||o.idToken)){const[s,d]=await _(m.microsoftSDK(o,this.storage));if(s)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(s);if(d.data.success){if(this.display==="popup")return(l=window.parent)==null?void 0:l.postMessage({code:d.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(d),this.getLoggedInAccounts(),this.$router.push("/"+d.data.data.username+"#edit"),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){c.$emit("toggleSSOModal")}}},w={getFirstBrowserLanguage(){let a=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"],n,o;if(Array.isArray(a.languages)){for(n=0;n<a.languages.length;n++)if(o=a.languages[n],o&&o.length)return o.slice(0,2)}for(n=0;n<t.length;n++)if(o=a[t[n]],o&&o.length)return o.slice(0,2);return null},compareLangKeys(){const a=Object.keys(q.default.state),t=Object.keys(M.default.state),n=Object.keys(D.default.state),o=Object.keys(H.default.state),i=Object.keys(O.default.state),r=Object.keys(R.default.state),l=Object.keys(K.default.state),s=Object.keys(U.default.state);console.log("In en but not in de",a.filter(d=>!t.includes(d))),console.log("In de but not in en",t.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in es",a.filter(d=>!n.includes(d))),console.log("In es but not in en",n.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in kr",a.filter(d=>!o.includes(d))),console.log("In kr but not in en",o.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in it",a.filter(d=>!i.includes(d))),console.log("In it but not in en",i.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in fr",a.filter(d=>!r.includes(d))),console.log("In fr but not in en",r.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in sr",a.filter(d=>!l.includes(d))),console.log("In sr but not in en",l.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in tr",a.filter(d=>!s.includes(d))),console.log("In tr but not in en",s.filter(d=>!a.includes(d))),console.log()},base64ImageToBlob(a){const t=a.split(";base64,"),n=t[0].split(":")[1],o=window.atob(t[1]),i=new Uint8Array(o.length);for(let r=0;r<o.length;++r)i[r]=o.charCodeAt(r);return new Blob([i],{type:n})},blobToBase64(a){const t=new FileReader;return t.readAsDataURL(a),new Promise(n=>{t.onloadend=()=>{n(t.result)}})},base64toFile(a,t){for(var n=a.split(","),o=n[0].match(/:(.*?);/)[1],i=atob(n[1]),r=i.length,l=new Uint8Array(r);r--;)l[r]=i.charCodeAt(r);return new File([l],t,{type:o})},fileToBase64(a){new Promise((t,n)=>{const o=new FileReader;o.readAsDataURL(a),o.onload=()=>t(o.result),o.onerror=i=>n(i)})},getUTMParams(a,t){let n={};return a.utm_source&&(n.utm_source=a.utm_source),a.utm_medium&&(n.utm_medium=a.utm_medium),a.utm_campaign&&(n.utm_campaign=a.utm_campaign),a.utm_term&&(n.utm_term=a.utm_term),a.utm_content&&(n.utm_content=a.utm_content),n},cropCardScan(a,t){const n=new window.Image,o=document.createElement("canvas"),i=o.getContext("2d");n.src="data:image/jpeg;base64,"+a,n.onload=()=>{const r=n.width,l=n.width/1.65,s=0,d=n.height/2-l/2,k=r,z=l;o.width=k,o.height=z,i.drawImage(n,s,d,r,l,0,0,k,z);const oe=o.toDataURL();return t(oe),oe}},generateRandomString(a){let t=new Uint32Array(a);return window.crypto.getRandomValues(t),Array.from(t,n=>("0"+n.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(a){const n=new TextEncoder().encode(a),o=await window.crypto.subtle.digest("SHA-256",n);return btoa(String.fromCharCode.apply(null,new Uint8Array(o))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(a,t,n){let i=new TextEncoder().encode(n,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:t},a,i)},async decryptAES(a,t,n){try{const o=d=>Uint8Array.from(atob(d),k=>k.charCodeAt(0));n=n.replace(/ /g,"+");const i=new TextEncoder,r=new TextDecoder;a=i.encode(a),t=i.encode(t),n=o(n,storage);const l=await window.crypto.subtle.importKey("raw",a,"AES-CBC",!0,["encrypt","decrypt"]);let s=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:t},l,n);return s=r.decode(s),s=s.replace(/ /g,"+"),s=atob(s),s}catch(o){console.log(o)}}},j={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(a){var i,r;let[t,n]=await _(S.post(a.domain+"/v1/token",new URLSearchParams({code:a.code,client_id:a.clientID,grant_type:"authorization_code",redirect_uri:this.isNative?"tapni://t.link/callback/okta":location.origin+"/callback/okta",code_verifier:localStorage.getItem("pkce_code_verifier")})));if(t)return this.errorHandler(t);localStorage.removeItem("pkce_code_verifier");let o={accessToken:(i=n.data)==null?void 0:i.access_token,domain:a.domain};if(this.display==="popup"&&(o.response_type="code"),[t,n]=await _(m.oktaSDK(o,this.storage)),t)return this.oktaLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(t);if(n.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:n.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(n),this.getLoggedInAccounts(),this.$router.push("/"+n.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)},async oktaLogin(a){const t=B.Capacitor.getPlatform()||"web";let n=btoa("domain="+a.domain+"&client_id="+a.clientID+"&platform="+t+"&rand="+w.generateRandomString(28)),o=w.generateRandomString(28);localStorage.setItem("pkce_code_verifier",o);let i=await w.pkceChallengeFromVerifier(o),r=a.domain+"/v1/authorize",l;this.isNative?l="tapni://t.link/callback/okta":l=location.origin+"/callback/okta";let s=r+"?response_type=code&client_id="+encodeURIComponent(a.clientID)+"&state="+encodeURIComponent(n)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(l)+"&code_challenge="+encodeURIComponent(i)+"&code_challenge_method=S256",d=this,k;window.addEventListener("message",async z=>{if(!this.allowedOrigins.includes(z.origin))return console.log("Origin is not allowed!");z.data.type==="okta"&&(k=z.data.code,await d.exchangeCode({domain:a.domain,code:k,clientID:a.clientID}))},{once:!0}),this.isNative?await E.Browser.open({url:s,presentationStyle:"popover"}):window.open(s,"popup","width=600,height=600")},async handleOktaRedirect(){let a=this.$route.query.code,t,n,o,i,r={type:"okta"};if(a&&(r.code=a),this.$route.query.state){t=this.$route.query.state,t=atob(t);const l=new URLSearchParams(t);n=l.get("client_id"),o=l.get("domain"),i=l.get("platform")}window.opener?(window.opener.postMessage(r,location.origin),window.close()):(this.isNative&&this.isIOS&&await E.Browser.close(),c.$emit("ssoEvent",{name:"setLoading",data:!0}),a&&n&&o&&await this.exchangeCode({code:a,clientID:n,domain:o,platform:i}),localStorage.removeItem("pkce_code_verifier"),c.$emit("ssoEvent",{name:"setLoading",data:!1}))}}},P={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(a){this.code_verifier=w.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await w.pkceChallengeFromVerifier(this.code_verifier);const t=B.Capacitor.getPlatform();let n=Buffer.from(`code_challenge=${this.code_challenge}&platform=${t}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.storage.realm}`).toString("base64");a=`${a}&RelayState=${n}`;let o=this;window.addEventListener("message",async i=>{var r;if(!this.allowedOrigins.includes(i.origin))return console.log("Origin is not allowed!");if(i.data.type==="saml"&&i.data.code){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:i.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await o.exchangeAuthCode({code:i.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await E.Browser.open({url:a,presentationStyle:"popover"}):window.open(a,"popup","width=600,height=600")},async handleSamlRedirect(){var n;let a,t={type:"saml"};if(this.$route.query.code&&(t.code=this.$route.query.code),window.opener)window.opener.postMessage(t,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await E.Browser.close(),EventBus.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(a=this.$route.query.code),a){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:a,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:a,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),EventBus.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Te={name:"AuthLogin",mixins:[$,G,W,T,j,P,g,{data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await e.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=a.length;let n="";const o=new Uint32Array(32);return window.crypto.getRandomValues(o),o.forEach(i=>{n+=a.charAt(i%t)}),n},refreshQrCode(){var a,t;this.qrCode&&((t=(a=document.getElementById("qrCodeContainer"))==null?void 0:a.childNodes[0])==null||t.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new pe({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[a,t]=await _(I.qrCodePooling({qrToken:this.qrCodeHash},this.storage));if(a)return this.errorHandler(a);t.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...t,isModal:this.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...t,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await e.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}}],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){var a,t;return(((t=(a=this.company)==null?void 0:a.login)==null?void 0:t.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var a,t;return(((t=(a=this.company)==null?void 0:a.login)==null?void 0:t.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var a,t;return(((t=(a=this.company)==null?void 0:a.login)==null?void 0:t.create_account)&&!this.isModal)??!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),c.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let t={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?t.email=this.emailOrUsername:t.username=this.emailOrUsername;const[n,o]=await _(this.login(t));n&&console.error(n),this.submitted=!1,o===!0&&(this.emailOrUsername="",this.password="")},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})},async bum(){this.storage.token="321213"}},watch:{emailOrUsername(a){a.includes("@")&&(this.storage.verifyEmail=a)},"$route.path":async function(a){if(a==="/login/callback/okta")return await this.handleOktaRedirect();if(a==="/login/callback/saml")return await this.handleSamlRedirect()}}},je=[e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Pe=e.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Ae={key:1},Ie={class:"page-login-field half-top"},Ne=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ve=["placeholder"],Be=e.createElementVNode("em",null,null,-1),xe={class:"page-login-field half-bottom"},qe=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Me=["type","placeholder"],De={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Re={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Oe={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ke={key:0},Ue={key:1,class:"button--loading button__loader"},He=e.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Fe=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Qe={key:0},$e={key:1,class:"button--loading button__loader"},Ge=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),We={key:0},Ye={key:1,class:"button--loading-black button__loader"},Xe=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),Ze={key:0},Je={key:1,class:"button--loading-black button__loader"},ea=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),aa={key:0},ta={key:1,class:"button--loading-black button__loader"},na=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ia={key:0},oa={key:1,class:"button--loading-black button__loader"},ra=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),sa={key:0},ca={key:1,class:"button--loading-black button__loader"},la=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),da=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),pa={class:"close-text center-text half-top color-black"},_a=e.createElementVNode("br",null,null,-1),ua={class:"",href:"https://tapni.co/policies/terms-of-service"},ma={href:"https://tapni.co/policies/privacy-policy"},ga=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ha={key:9,class:"page-login-links"},fa=e.createElementVNode("div",{class:"clear"},null,-1),ka={class:"forgot center-text pointer small-top"},ba=e.createElementVNode("br",null,null,-1),ya=e.createElementVNode("div",{class:"clear"},null,-1);function va(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[14]||(t[14]=e.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:e.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},je)):e.createCommentVNode("",!0),e.createElementVNode("h1",{class:"bold no-bottom center-text",style:{"margin-top":"63px"},onClick:t[1]||(t[1]=(...s)=>r.bum&&r.bum(...s))},e.toDisplayString(this.ssoLang[this.appLang].login),1),Pe,r.displayFormLogin?(e.openBlock(),e.createElementBlock("span",Ae,[e.createElementVNode("div",Ie,[Ne,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=s=>i.emailOrUsername=s),onKeydown:t[3]||(t[3]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:a.ssoLang[this.appLang].email_username,required:""},null,40,Ve),[[e.vModelText,i.emailOrUsername]]),Be]),e.createElementVNode("div",xe,[qe,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[4]||(t[4]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:a.ssoLang[this.appLang].password,name:"password",required:"",minlength:"8"},null,8,Me),[[e.vModelDynamic,i.password]]),e.createElementVNode("em",{onClick:t[5]||(t[5]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[e.withDirectives(e.createElementVNode("img",De,null,512),[[e.vShow,!i.revealPassword]]),e.withDirectives(e.createElementVNode("img",Re,null,512),[[e.vShow,i.revealPassword]])])]),e.createElementVNode("button",Oe,[i.submitted?(e.openBlock(),e.createElementBlock("span",Ue)):(e.openBlock(),e.createElementBlock("span",Ke,e.toDisplayString(a.ssoLang[a.appLang].login),1))])])):e.createCommentVNode("",!0),He,a.displayAppleLogin?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:t[6]||(t[6]=(...s)=>a.appleLogin&&a.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fe,a.appleLoad?(e.openBlock(),e.createElementBlock("span",$e)):(e.openBlock(),e.createElementBlock("span",Qe,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Apple",1))])):e.createCommentVNode("",!0),a.displayGoogleLogin?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:t[7]||(t[7]=(...s)=>a.googleLogin&&a.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ge,a.googleLoad?(e.openBlock(),e.createElementBlock("span",Ye)):(e.openBlock(),e.createElementBlock("span",We,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Google",1))])):e.createCommentVNode("",!0),a.displayFacebookLogin?(e.openBlock(),e.createElementBlock("a",{key:4,onClick:t[8]||(t[8]=(...s)=>a.facebookLogin&&a.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Xe,a.facebookLoad?(e.openBlock(),e.createElementBlock("span",Je)):(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Facebook",1))])):e.createCommentVNode("",!0),a.displayMicrosoftSSOLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:5,onClick:t[9]||(t[9]=(...s)=>a.microsoftLogin&&a.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[ea,a.microsoftLoad?(e.openBlock(),e.createElementBlock("span",ta)):(e.openBlock(),e.createElementBlock("span",aa,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Outlook",1))])),a.displayMicrosoftSSOLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:6,onClick:t[10]||(t[10]=(...s)=>a.ssoLogin&&a.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[na,a.microsoftSSOLoad?(e.openBlock(),e.createElementBlock("span",oa)):(e.openBlock(),e.createElementBlock("span",ia,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" SSO",1))])),a.displayMicrosoftSSOLogin?(e.openBlock(),e.createElementBlock("a",{key:7,onClick:t[11]||(t[11]=s=>a.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[ra,a.microsoftSSOLoad?(e.openBlock(),e.createElementBlock("span",sa,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" SSO",1)):(e.openBlock(),e.createElementBlock("span",ca))])):e.createCommentVNode("",!0),r.displayFormLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:8,onClick:t[12]||(t[12]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[la,e.createElementVNode("span",null,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Email",1)])),da,e.createElementVNode("p",pa,[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].terms_by_signing_in)+" ",1),_a,e.createElementVNode("a",ua,e.toDisplayString(a.ssoLang[this.appLang].terms_of_service),1),e.createTextVNode(" "+e.toDisplayString(a.ssoLang[a.appLang].and)+" ",1),e.createElementVNode("a",ma,e.toDisplayString(a.ssoLang[this.appLang].privacy_policy),1)]),ga,n.isModal?(e.openBlock(),e.createElementBlock("div",{key:10,class:"page-login-links",onClick:t[13]||(t[13]=(...s)=>r.createAccountModal&&r.createAccountModal(...s))},[e.createElementVNode("a",ka,[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].or)+" ",1),ba,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[a.appLang].create_new_account),1)]),ya])):(e.openBlock(),e.createElementBlock("div",ha,[r.displayRegisterLogin?(e.openBlock(),e.createBlock(l,{key:0,class:"forgot float-right",to:"/register"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].create_account),1)]),_:1})):e.createCommentVNode("",!0),r.displayResetPasswordLogin?(e.openBlock(),e.createBlock(l,{key:1,class:"create float-left",to:"/reset"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].reset_password),1)]),_:1})):e.createCommentVNode("",!0),fa]))],36)}const Y=b(Te,[["render",va]]),wa={name:"AuthRegister",mixins:[$,G,W,T,g],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.storage.referral&&(this.referral=this.storage.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLang].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLang].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLang].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLang].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let a={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},t=await this.register(a);this.submitted=!1,t.data&&t.data.success&&(t.data.message==="SUCCESS_REGISTER"?(this.isModal?c.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLang].register_success),this.formButtonText=this.ssoLang[this.appLang].check_your_inbox):t.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...t,isModal:a.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...t,isModal:a.isModal})))},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(a){this.storage.verifyEmail=a},referral(a){this.storage.referral=a}}},za=[e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Sa={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},La={class:"half-bottom small-top center-text color-black"},Ea={key:0},Ca=e.createElementVNode("br",null,null,-1),Ta={key:1},ja={class:"page-login-field half-top"},Pa=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Aa=["placeholder"],Ia=e.createElementVNode("em",null,null,-1),Na={class:"page-login-field half-top"},Va=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ba=["placeholder","disabled"],xa=e.createElementVNode("em",null,null,-1),qa={class:"page-login-field half-top half-bottom"},Ma=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Da=["type","placeholder"],Ra={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Oa={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ka={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Ua={key:0},Ha={key:1,class:"button--loading button__loader"},Fa=e.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Qa=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),$a={key:0},Ga={key:1,class:"button--loading button__loader"},Wa=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),Ya={key:0},Xa={key:1,class:"button--loading button__loader"},Za=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),Ja={key:0},et={key:1,class:"button--loading button__loader"},at=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),tt=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),nt={class:"close-text center-text half-top color-black"},it=e.createElementVNode("br",null,null,-1),ot={class:"",href:"https://tapni.co/policies/terms-of-service"},rt={href:"https://tapni.co/policies/privacy-policy"},st=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ct={key:5,class:"page-login-links"},lt=e.createElementVNode("div",{class:"clear"},null,-1),dt={class:"forgot center-text pointer small-top"},pt=e.createElementVNode("br",null,null,-1),_t=e.createElementVNode("div",{class:"clear"},null,-1);function ut(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[12]||(t[12]=e.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:e.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},za)):e.createCommentVNode("",!0),e.createElementVNode("h1",Sa,e.toDisplayString(a.ssoLang[this.appLang].register),1),e.createElementVNode("p",La,[i.usernameRegister?(e.openBlock(),e.createElementBlock("span",Ea,[e.createTextVNode(" t.link/"+e.toDisplayString(i.username)+" "+e.toDisplayString(a.ssoLang[this.appLang].username_is_free)+" ✅ ",1),Ca])):e.createCommentVNode("",!0)]),i.emailLogin?(e.openBlock(),e.createElementBlock("span",Ta,[e.createElementVNode("div",ja,[Pa,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:a.ssoLang[this.appLang].email,name:"email",required:""},null,40,Aa),[[e.vModelText,i.email]]),Ia]),e.createElementVNode("div",Na,[Va,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.username=s),onKeydown:t[4]||(t[4]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:a.ssoLang[this.appLang].username,name:"username",required:"",disabled:i.usernameRegister,class:e.normalizeClass({"input-disabled":i.usernameRegister})},null,42,Ba),[[e.vModelText,i.username]]),xa]),e.createElementVNode("div",qa,[Ma,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:a.ssoLang[this.appLang].password,name:"password",required:"",minlength:"8"},null,8,Da),[[e.vModelDynamic,i.password]]),e.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[e.withDirectives(e.createElementVNode("img",Ra,null,512),[[e.vShow,!i.revealPassword]]),e.withDirectives(e.createElementVNode("img",Oa,null,512),[[e.vShow,i.revealPassword]])])]),e.createElementVNode("button",Ka,[i.submitted?(e.openBlock(),e.createElementBlock("span",Ha)):(e.openBlock(),e.createElementBlock("span",Ua,e.toDisplayString(i.formButtonText),1))])])):e.createCommentVNode("",!0),Fa,a.displayAppleLogin?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:t[7]||(t[7]=(...s)=>a.appleLogin&&a.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Qa,a.appleLoad?(e.openBlock(),e.createElementBlock("span",Ga)):(e.openBlock(),e.createElementBlock("span",$a,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Apple",1))])):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:t[8]||(t[8]=(...s)=>a.googleLogin&&a.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Wa,a.googleLoad?(e.openBlock(),e.createElementBlock("span",Xa)):(e.openBlock(),e.createElementBlock("span",Ya,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Google",1))]),a.displayFacebookLogin?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:t[9]||(t[9]=(...s)=>a.facebookLogin&&a.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Za,a.facebookLoad?(e.openBlock(),e.createElementBlock("span",et)):(e.openBlock(),e.createElementBlock("span",Ja,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Facebook",1))])):e.createCommentVNode("",!0),i.emailLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:4,onClick:t[10]||(t[10]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[at,e.createElementVNode("span",null,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Email",1)])),tt,e.createElementVNode("p",nt,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].terms_by_registering)+" ",1),it,e.createElementVNode("a",ot,e.toDisplayString(a.ssoLang[this.appLang].terms_of_service),1),e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].and)+" ",1),e.createElementVNode("a",rt,e.toDisplayString(a.ssoLang[this.appLang].privacy_policy),1)]),st,n.isModal?(e.openBlock(),e.createElementBlock("div",{key:6,class:"page-login-links",onClick:t[11]||(t[11]=(...s)=>r.loginAccountModal&&r.loginAccountModal(...s))},[e.createElementVNode("a",dt,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].or)+" ",1),pt,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].sign_in_with_new),1)]),_t])):(e.openBlock(),e.createElementBlock("div",ct,[e.createVNode(l,{class:"create float-right",to:"/verify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].verify_account),1)]),_:1}),e.createVNode(l,{class:"forgot float-left",to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),lt]))],36)}const X=b(wa,[["render",ut]]),mt={name:"AuthVerify",mixins:[g],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.storage.verifyEmail&&(this.email=this.storage.verifyEmail),this.$route&&this.init()},methods:{init(){this.isLoggedIn?this.$router.push(this.home):(this.storage.verifyEmail&&(this.email=this.storage.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),c.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLang].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let a={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let t=await this.verify(a);this.submitted=!1,t&&t.data&&t.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLang].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",c.$emit("closeModal")),await this.loginSetup(t),this.getLoggedInAccounts(),this.storage.verifyEmail="",this.$router.push("/"+t.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLang].verify_account_success2))):this.submitted=!1},registerAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"storage.verifyEmail"(a){a&&(this.email=a)},"route.name"(a,t){!t&&a&&this.init()},"route.query":{handler(a){this.isEmpty(a)||this.init()},deep:!0}}},f=a=>(e.pushScopeId("data-v-2fd511e2"),a=a(),e.popScopeId(),a),gt=[f(()=>e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],ht={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},ft=f(()=>e.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),kt={class:"page-login-field half-top"},bt=f(()=>e.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),yt=["placeholder"],vt=f(()=>e.createElementVNode("em",null,null,-1)),wt={class:"page-login-field half-top"},zt=f(()=>e.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),St=["placeholder"],Lt=f(()=>e.createElementVNode("em",null,null,-1)),Et={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ct={key:0,class:"uppercase"},Tt={key:1,class:"button--loading button__loader"},jt=f(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Pt={class:"close-text center-text half-top color-black"},At=["innerHTML"],It=f(()=>e.createElementVNode("a",{href:"mailto:support@tapni.co?subject=Email Verification"}," support@tapni.co",-1)),Nt=f(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Vt={key:1,class:"page-login-links"},Bt=f(()=>e.createElementVNode("div",{class:"clear"},null,-1)),xt={class:"forgot center-text pointer small-top"},qt=f(()=>e.createElementVNode("br",null,null,-1)),Mt=f(()=>e.createElementVNode("div",{class:"clear"},null,-1));function Dt(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[6]||(t[6]=e.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),style:e.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},gt)):e.createCommentVNode("",!0),e.createElementVNode("h1",ht,e.toDisplayString(a.ssoLang[this.appLang].verify_account),1),ft,e.createElementVNode("div",kt,[bt,e.withDirectives(e.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:a.ssoLang[this.appLang].email,required:""},null,40,yt),[[e.vModelText,i.email]]),vt]),e.createElementVNode("div",wt,[zt,e.withDirectives(e.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":t[3]||(t[3]=s=>i.code=s),onKeydown:t[4]||(t[4]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:a.ssoLang[this.appLang].code,required:""},null,40,St),[[e.vModelText,i.code]]),Lt]),e.createElementVNode("button",Et,[i.submitted?(e.openBlock(),e.createElementBlock("span",Tt)):(e.openBlock(),e.createElementBlock("span",Ct,e.toDisplayString(a.ssoLang[this.appLang].verify_account),1))]),jt,e.createElementVNode("p",Pt,[e.createElementVNode("span",{innerHTML:a.ssoLang[this.appLang].verify_account_p1},null,8,At),It]),Nt,n.isModal?(e.openBlock(),e.createElementBlock("div",{key:2,class:"page-login-links",onClick:t[5]||(t[5]=(...s)=>r.registerAccountModal&&r.registerAccountModal(...s))},[e.createElementVNode("a",xt,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].or)+" ",1),qt,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].create_new_account),1)]),Mt])):(e.openBlock(),e.createElementBlock("div",Vt,[e.createVNode(l,{class:"create float-right",to:"/register"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].register),1)]),_:1}),e.createVNode(l,{class:"forgot float-left",to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),Bt]))],36)}const Z=b(mt,[["render",Dt],["__scopeId","data-v-2fd511e2"]]),Rt={name:"AuthReset",mixins:[g],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.storage.verifyEmail&&(this.email=this.storage.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),c.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let a={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(a),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLang].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLang].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let a={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},t=await this.changePassword(a);this.submitted=!1,t===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLang].password_reseted_success))}},watch:{email(a){this.storage.verifyEmail=a}}},y=a=>(e.pushScopeId("data-v-220c28f9"),a=a(),e.popScopeId(),a),Ot={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Kt=y(()=>e.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),Ut={class:"page-login-field half-top color-black"},Ht=y(()=>e.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ft=["placeholder"],Qt=y(()=>e.createElementVNode("em",null,null,-1)),$t={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Gt={key:0,class:"uppercase"},Wt={key:1,class:"button--loading button__loader"},Yt=y(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Xt={class:"close-text center-text half-top color-black"},Zt=["innerHTML"],Jt=["href"],en=y(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),an={class:"page-login-links"},tn=y(()=>e.createElementVNode("div",{class:"clear"},null,-1)),nn={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},on={class:"half-bottom small-top center-text color-black"},rn={class:"page-login-field half-top"},sn=y(()=>e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),cn=["type","placeholder"],ln={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},dn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},pn={class:"page-login-field half-top"},_n=y(()=>e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),un=["type","placeholder"],mn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},gn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},hn={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},fn={key:0,class:"uppercase"},kn={key:1,class:"button--loading button__loader"},bn=y(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),yn={class:"close-text center-text half-top color-black"},vn=["innerHTML"],wn=["href"];function zn(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return i.passwordChange?(e.openBlock(),e.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:t[7]||(t[7]=e.withModifiers((...s)=>r.changePw&&r.changePw(...s),["prevent"]))},[e.createElementVNode("h3",nn,e.toDisplayString(a.ssoLang[this.appLang].password_change),1),e.createElementVNode("p",on,e.toDisplayString(a.ssoLang[this.appLang].password_new),1),e.createElementVNode("div",rn,[sn,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:a.ssoLang[this.appLang].password,required:""},null,8,cn),[[e.vModelDynamic,i.password]]),e.createElementVNode("em",{onClick:t[4]||(t[4]=s=>i.revealPassword=!i.revealPassword)},[e.withDirectives(e.createElementVNode("img",ln,null,512),[[e.vShow,!i.revealPassword]]),e.withDirectives(e.createElementVNode("img",dn,null,512),[[e.vShow,i.revealPassword]])])]),e.createElementVNode("div",pn,[_n,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.passwordRepeat=s),type:i.revealPassword2?"text":"password",placeholder:a.ssoLang[this.appLang].password_repeat,required:""},null,8,un),[[e.vModelDynamic,i.passwordRepeat]]),e.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword2=!i.revealPassword2)},[e.withDirectives(e.createElementVNode("img",mn,null,512),[[e.vShow,!i.revealPassword2]]),e.withDirectives(e.createElementVNode("img",gn,null,512),[[e.vShow,i.revealPassword2]])])]),e.createElementVNode("button",hn,[i.submitted?(e.openBlock(),e.createElementBlock("span",kn)):(e.openBlock(),e.createElementBlock("span",fn,e.toDisplayString(a.ssoLang[this.appLang].password_change),1))]),bn,e.createElementVNode("p",yn,[e.createElementVNode("span",{innerHTML:a.ssoLang[this.appLang].reset_password_p2},null,8,vn),e.createTextVNode(),e.createElementVNode("a",{href:"mailto:support@tapni.co?subject="+a.ssoLang[this.appLang].password_reset_t}," support@tapni.co",8,wn)])],32)):(e.openBlock(),e.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:t[2]||(t[2]=e.withModifiers((...s)=>r.resetEmail&&r.resetEmail(...s),["prevent"])),autocomplete:"on"},[e.createElementVNode("h3",Ot,e.toDisplayString(a.ssoLang[this.appLang].reset_password),1),Kt,e.createElementVNode("div",Ut,[Ht,e.withDirectives(e.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[0]||(t[0]=s=>i.email=s),onKeydown:t[1]||(t[1]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:a.ssoLang[this.appLang].email,required:""},null,40,Ft),[[e.vModelText,i.email]]),Qt]),e.createElementVNode("button",$t,[i.submitted?(e.openBlock(),e.createElementBlock("span",Wt)):(e.openBlock(),e.createElementBlock("span",Gt,e.toDisplayString(a.ssoLang[this.appLang].reset_password),1))]),Yt,e.createElementVNode("p",Xt,[e.createElementVNode("span",{innerHTML:a.ssoLang[this.appLang].reset_password_p1},null,8,Zt),e.createElementVNode("a",{href:"mailto:support@tapni.co?subject="+a.ssoLang[this.appLang].password_reset_t}," support@tapni.co",8,Jt)]),en,e.createElementVNode("div",an,[e.createVNode(l,{class:"create float-right",to:"/verify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].verify_account),1)]),_:1}),e.createVNode(l,{class:"forgot float-left",to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),tn])],32))}const J=b(Rt,[["render",zn],["__scopeId","data-v-220c28f9"]]),Sn={name:"AuthCallback",mixins:[j,P,g],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let a=_e.sanitizeUrl(location.href);return a=a.replace("http","tapni"),a=a.replace("https","tapni"),window.open(a)}}},Ln={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},En=e.createElementVNode("br",null,null,-1),Cn={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Tn(a,t,n,o,i,r){return e.openBlock(),e.createElementBlock("div",null,[(a.$route.query.platform==="android"||a.$route.query.platform==="ios")&&!a.isNative?(e.openBlock(),e.createElementBlock("h5",Ln,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].you_will_be_redirected),1),En,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].if_redirect_not_directly)+", ",1),e.createElementVNode("span",{onClick:t[0]||(t[0]=(...l)=>r.inAppRedirect&&r.inAppRedirect(...l)),style:{color:"blue",cursor:"pointer"}},e.toDisplayString(a.ssoLang[this.appLang].click_here),1),e.createTextVNode(".")])):(e.openBlock(),e.createElementBlock("h4",Cn,e.toDisplayString(a.ssoLang[this.appLang].please_wait),1))])}const ee=b(Sn,[["render",Tn]]),jn={name:"ModalOverlay",mixins:[g],data(){return{toggle:!1}},mounted(){c.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),c.$on("openModalOverlay",()=>{this.toggle=!0}),c.$on("toggleLanguageModal",this.toggleModal),c.$on("toggleSSOModal",this.toggleModal),c.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(a=!0){a&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var a,t;!this.isLoggedIn&&((t=(a=this.user)==null?void 0:a.lead_form)!=null&&t.forceFilling)||c.$emit("closeModal")}}};function Pn(a,t,n,o,i,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":i.toggle}),onClick:t[0]||(t[0]=(...l)=>r.toggleEmit&&r.toggleEmit(...l))},null,2)}const ae=b(jn,[["render",Pn],["__scopeId","data-v-a128c2fa"]]),An={name:"SSO",mixins:[T,j,P,g],data(){return{toggle:!1,email:"",loading:!1}},mounted(){c.$on("toggleSSOModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const a=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let t;if(!(!a||a.error))if(t=Object.keys(a.sso),t.length)t.length<=1?(t[0]==="azure"&&this.microsoftLogin("sso",a.sso.azure.sso),t[0]==="okta"&&this.oktaLogin(a.sso.okta.sso),t[0]==="saml"&&this.samlLogin(a.sso.saml.sso.loginUrl)):(this.forceClose(),c.$emit("toggleSSOPickModal",{sso:a.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLang].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},In=[(a=>(e.pushScopeId("data-v-256337c2"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Nn={class:"bold center-text color-black half-top half-bottom"},Vn=["placeholder"],Bn={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},xn={key:0},qn={key:1,class:"button--loading button__loader"};function Mn(a,t,n,o,i,r){return e.openBlock(),e.createElementBlock("form",{onSubmit:t[3]||(t[3]=e.withModifiers((...l)=>r.submit&&r.submit(...l),["prevent"])),class:e.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[e.createElementVNode("a",{onClick:t[0]||(t[0]=(...l)=>r.forceClose&&r.forceClose(...l)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},In),e.createElementVNode("h3",Nn,e.toDisplayString(a.ssoLang[a.appLang].enter_company_email),1),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=l=>i.email=l),placeholder:a.ssoLang[this.appLang].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:t[2]||(t[2]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Vn),[[e.vModelText,i.email]])]),e.createElementVNode("button",Bn,[i.loading?(e.openBlock(),e.createElementBlock("span",qn)):(e.openBlock(),e.createElementBlock("span",xn,e.toDisplayString(a.ssoLang[a.appLang].continue),1))])],34)}const te=b(An,[["render",Mn],["__scopeId","data-v-256337c2"]]),Dn={name:"SSOPick",mixins:[T,j,P,g],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){c.$on("toggleSSOPickModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOPickModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(a){a==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),a==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),a==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(a){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,a&&(this.sso=a.sso,this.email=a.email),this.toggle=!this.toggle}}},A=a=>(e.pushScopeId("data-v-33bfb54b"),a=a(),e.popScopeId(),a),Rn=[A(()=>e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],On={class:"bold center-text color-black half-top half-bottom"},Kn=A(()=>e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Un={key:0},Hn={key:1,class:"button--loading button__loader"},Fn=A(()=>e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Qn={key:0},$n={key:1,class:"button--loading button__loader"},Gn=A(()=>e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Wn={key:0},Yn={key:1,class:"button--loading button__loader"};function Xn(a,t,n,o,i,r){var l,s,d;return e.openBlock(),e.createElementBlock("form",{onSubmit:t[4]||(t[4]=e.withModifiers(()=>{},["prevent"])),class:e.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[e.createElementVNode("a",{onClick:t[0]||(t[0]=(...k)=>r.forceClose&&r.forceClose(...k)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Rn),e.createElementVNode("h3",On,e.toDisplayString(a.ssoLang[a.appLang].select_sign_method),1),(l=i.sso)!=null&&l.azure?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[1]||(t[1]=k=>r.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Kn,i.azureLoad?(e.openBlock(),e.createElementBlock("span",Hn)):(e.openBlock(),e.createElementBlock("span",Un,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Azure",1))])):e.createCommentVNode("",!0),(s=i.sso)!=null&&s.okta?(e.openBlock(),e.createElementBlock("a",{key:1,onClick:t[2]||(t[2]=k=>r.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[Fn,i.oktaLoad?(e.openBlock(),e.createElementBlock("span",$n)):(e.openBlock(),e.createElementBlock("span",Qn,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Okta",1))])):e.createCommentVNode("",!0),(d=i.sso)!=null&&d.saml?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:t[3]||(t[3]=k=>r.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[Gn,i.samlLoad?(e.openBlock(),e.createElementBlock("span",Yn)):(e.openBlock(),e.createElementBlock("span",Wn,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" SAML",1))])):e.createCommentVNode("",!0)],34)}const ne=b(Dn,[["render",Xn],["__scopeId","data-v-33bfb54b"]]),Zn={name:"LinkIcon",mixins:[g],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.appLang!=="en"&&this.data.text?this.ssoLang[this.appLang]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},Jn=["src","alt"],ei=["src","alt"],ai=["src","alt"],ti=["src","alt"];function ni(a,t,n,o,i,r){var l,s;return e.openBlock(),e.createElementBlock("a",{class:e.normalizeClass(["disable-select",n.linkStyle+(n.disabled?" opacity-50":"")]),style:e.normalizeStyle((n.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[e.createElementVNode("span",{class:e.normalizeClass({"user-link-img":!0,"pulse pulse-border":n.pulse,"link-drag":n.editing}),style:e.normalizeStyle({...(l=n.customLinkStyle)==null?void 0:l.linkIcon})},[!n.data.custom_icon&&n.data.type!=="customlink"?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+n.data.type+".png",class:"responsive-image",alt:n.data.text,onLoad:t[0]||(t[0]=d=>a.$emit("loaded")),onError:t[1]||(t[1]=d=>a.$emit("loaded"))},null,40,Jn)):!n.data.custom_icon&&n.data.type==="customlink"&&n.linkAdding?(e.openBlock(),e.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:n.data.text,onLoad:t[2]||(t[2]=d=>a.$emit("loaded")),onError:t[3]||(t[3]=d=>a.$emit("loaded"))},null,40,ei)):!n.data.custom_icon&&n.data.type==="customlink"&&!n.linkAdding?(e.openBlock(),e.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:n.data.text,onLoad:t[4]||(t[4]=d=>a.$emit("loaded")),onError:t[5]||(t[5]=d=>a.$emit("loaded"))},null,40,ai)):(e.openBlock(),e.createElementBlock("img",{key:3,src:n.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:n.data.text,onLoad:t[6]||(t[6]=d=>a.$emit("loaded")),onError:t[7]||(t[7]=d=>a.$emit("loaded"))},null,40,ti))],6),e.createElementVNode("span",{class:"link-text link-drag color-black",style:e.normalizeStyle({color:(s=n.customLinkStyle)==null?void 0:s.color})},e.toDisplayString(r.linkText),5)],6)}const ii=b(Zn,[["render",ni]]),oi={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},ri={name:"Language",mixins:[g],components:{LinkIcon:ii},data(){return{toggle:!1}},async mounted(){c.$on("toggleLanguageModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1});let a=this.isNative?await L.Device.getLanguageCode():w.getFirstBrowserLanguage();a&&oi.SUPPORTED_LANGUAGES.includes(a)&&this.updateLanguage(a)},beforeDestroy(){c._events.toggleLanguageModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(a){c.$emit("updateLang",a),c.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},si=[(a=>(e.pushScopeId("data-v-e5a7ac07"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"font-17 fa color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],ci={class:"bold center-text color-black small-bottom"};function li(a,t,n,o,i,r){const l=e.resolveComponent("LinkIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[e.createElementVNode("a",{onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},si),e.createElementVNode("h3",ci,e.toDisplayString(a.ssoLang[a.appLang].app_language),1),e.createVNode(l,{onClick:t[1]||(t[1]=s=>r.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:a.ssoLang[this.appLang].english},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[2]||(t[2]=s=>r.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:a.ssoLang[this.appLang].spanish},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[3]||(t[3]=s=>r.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:a.ssoLang[this.appLang].german},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[4]||(t[4]=s=>r.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:a.ssoLang[this.appLang].italian},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[5]||(t[5]=s=>r.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:a.ssoLang[this.appLang].french},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[6]||(t[6]=s=>r.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:a.ssoLang[this.appLang].korean},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[7]||(t[7]=s=>r.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:a.ssoLang[this.appLang].serbian},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[8]||(t[8]=s=>r.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:a.ssoLang[this.appLang].turkish},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const ie=b(ri,[["render",li],["__scopeId","data-v-e5a7ac07"]]);var di={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const pi={id:"ssoapp"},_i={key:0,href:"/",class:"header-logo"},ui=[e.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgNsIvKgRyXhBBCyqCzyo8yeO7BKgOp0Fdna5U/q9wmzvWLEEIIaQr7q2ySwXNxV38EFfrKwOXrQXERfNqq/FWcBTkhhBCyJg7PeDHRiQrdgWP2+8VZk5dAhLUbxY9xAyGEkHhBNLitMnx+N3EnzI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;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],mi={class:"lang-icon"},gi={class:"snackbar snackbar-boxed",id:"snackbar"},hi={class:"snack-body",id:"errorSnack"},fi={id:"errorMessage"},ki=[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],bi={class:"snack-body",id:"successSnack"},yi={id:"successMessage"},vi=[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],wi=Object.assign({name:"TapniAuth",mixins:[g],data(){return{initialized:!1}},components:{Language:ie,SSOPick:ne,SSO:te,ModalOverlay:ae,AuthCallback:ee,AuthReset:J,AuthVerify:Z,AuthRegister:X,AuthLogin:Y,AuthWelcome:Q},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},async mounted(){this.applyBgStyle(),c.$on("ssoEvent",this.ssoOutgoingEvent),c.$on("ssoLogout",a=>this.logout(a)),c.$on("getLoggedInAccounts",a=>this.getLoggedInAccounts(a)),c.$on("refreshTokenAction",a=>this.refreshTokenAction(a))},methods:{async init(){if(this.storage&&this.storage.token&&this.storage.refreshTokens){this.setToken(this.storage.token);const a=this.getRefreshTokens();this.setRefreshToken(a[0]),this.getLoggedInAccounts()}this.initialized=!0,this.$emit("ssoLibraryReady")},ssoOutgoingEvent(a){this.$emit("ssoEvent",a)},ssoIncomingEvent(a){c.$emit(a.name,a.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){c.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(a){return document.addEventListener("DOMContentLoaded",function(){const t=document.createElement("script");t.src=`https://www.google.com/recaptcha/api.js?render=${di.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(t)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",pi,[t.display==="redirect"?(e.openBlock(),e.createElementBlock("a",_i,ui)):e.createCommentVNode("",!0),t.display==="redirect"?(e.openBlock(),e.createElementBlock("a",{key:1,onClick:n[0]||(n[0]=(...o)=>t.toggleLanguageModal&&t.toggleLanguageModal(...o)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px"}},[e.createElementVNode("span",mi,e.toDisplayString(t.appLang.toUpperCase()),1)])):e.createCommentVNode("",!0),e.createVNode(ae),e.createVNode(ie),e.createVNode(te),e.createVNode(ne),t.initialized&&t.renderView==="AuthWelcome"?(e.openBlock(),e.createBlock(Q,{key:2})):t.initialized&&t.renderView==="AuthLogin"?(e.openBlock(),e.createBlock(Y,{key:3,isModal:a.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthRegister"?(e.openBlock(),e.createBlock(X,{key:4,isModal:a.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthVerify"?(e.openBlock(),e.createBlock(Z,{key:5,isModal:a.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthReset"?(e.openBlock(),e.createBlock(J,{key:6})):t.initialized&&t.renderView==="AuthCallback"?(e.openBlock(),e.createBlock(ee,{key:7})):(e.openBlock(),e.createBlock(e.unref(re.RouterView),{key:8})),e.createElementVNode("div",gi,[e.createElementVNode("p",hi,[e.createElementVNode("span",fi,e.toDisplayString(t.ssoLang[t.appLang].error),1),e.createElementVNode("a",{onClick:n[1]||(n[1]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},ki)]),e.createElementVNode("p",bi,[e.createElementVNode("span",yi,e.toDisplayString(t.ssoLang[t.appLang].success),1),e.createElementVNode("a",{onClick:n[2]||(n[2]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},vi)])])]))}});u.TapniAuth=wi,Object.defineProperty(u,Symbol.toStringTag,{value:"Module"})});
102
+ 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.co</b>) 아니면 소셜 미디어로 DM을 해주세요.(<b>@tapni</b>)",link_add_not_found_p3:"모든 플랫폼을 지원할 수 있도록 최선을 다하겠습니다. 😉",featured:"피처링",social_media:"소셜 미디어",contact:"연락처",finance:"금융",portfolio:"포트폴리오",music:"음악",business:"비지니스",fun:"재미",ecommerce:"전자상거래",more:"더 보기",email_username:"이메일 / 사용자 이름",username:"사용자 이름",password:"비밀번호",sign_in:"로그인",sign_in_with:"로그인",sign_in_with_new:"새 계정으로 로그인",sign_up_with:"등록하기",select_sign_method:"로그인 방법 선택",verify_account:"계정 확인",terms_by_signing_in:"회원님의 동의로 회원가입을 합니다.",terms_by_registering:"동의하시면 등록하여 주십시오.",terms_by_submitting:"이 양식을 제출하면 서비스 약관에 동의하는 것입니다",terms_of_service:"서비스 약관",and:"그리고",refresh:"새로 고침",privacy_policy:"개인 정보 보호 정책",create_account:"계정 만들기",reset_password:"비밀번호 재설정",reset_password_p1:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",reset_password_p2:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",create_new_account:"새 계정 만들기",maintenance_p1:"우리는 곧 돌아올 것이다.",maintenance_p2:"그동안 탭니 컬렉션 살펴보기",maintenance_p3:"탭니는 예정된 점검으로 인하여 잠시 중단되었습니다. <br> 몇 분 내로 다시 온라인 상태가 될 것입니다.",offline_p1:"인터넷에 연결되지 않음",offline_p2:"연결을 확인한 다음 페이지를 새로 고치십시오.",offline_p3_1:"오프라인일 때 이 QR 코드를 사용하여 연락처 카드를 공유할 수 있습니다.",offline_p3_2:"",products_p1:"만나는 모든 사람에게 깊은 인상을 남깁니다. 😎 <br> 지금 바로 구입하십시오 👇",cards:"카드",stickers:"스티커",keychains:"키 체인",explore_collection:"컬렉션 탐색",register:"등록",register_success:"거의 다 완료하였습니다. 이메일을 확인해 주세요.",register_success_modal:"다른 계정으로 로그인했습니다.",check_your_inbox:"첫 번째 링크를 추가 해 주세요.",tapni_tags:"탭니 태그",tapni_tags_p1:"프로필에 연결된 태그 구성",tapni_tags_p2:"프로필에 연결된 태그가 없습니다. <br> 지금 연결하세요!",verify_account_p1:"코드를 받지 못한 경우 다음을 확인하십시오. <br> 스팸 폴더 또는 연락주세요:",verify_account_success:"계정을 확인했습니다. 지금 비밀번호를 변경해 주세요.",verify_account_success2:"계정을 확인했습니다. 모두 완료 되었습니다.!🥳",welcome:"반갑습니다.",welcome_p1:"비지니스 카드의 미래까지",how_it_works:"작동 방식",already_registered:"이미 등록되어있습니다",error:"오류",success:"성공",copied:"클립보드에 복사됨",connect_validate:"두 개의 연락처 필드 중 하나를 제공해야 합니다.",connect_validate_name:"이름을 입력하십시오.",connect_validate_email:"유효한 이메일을 입력하세요",link_validate:"잘못된 링크 데이터입니다.",link_text_contact_card:"연락처 카드",link_text_custom_link:"사용자 지정 링크",link_text_menu:"메뉴",link_text_phone:"휴대폰",save_to_apple_wallet:"Apple 지갑에 저장",save_to_google_wallet:"Google 지갑에 저장",card:"카드",sticker:"상표",keychain:"키체인",band:"밴드",case:"사례",standee:"서다",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"오래된 앱 버전이 감지되었습니다",update_p2:"업데이트",update_p3:"앱을 최신 버전으로 업데이트하세요",company_domain:"귀하의 회사 도메인",search_company_domain:"회사 도메인 검색",enter_company_email:"회사 이메일을 입력하세요",company_not_found:"회사를 찾을 수 없음",ik_company_domain:"회사 도메인을 알고 있습니다",idk_company_domain:"회사 도메인을 모릅니다",continue:"계속",forbidden_rule:"이 옵션은 비활성화되어 있습니다. 회사 관리자에게 문의하십시오.",companyName:"회사 이름",createMarkerPlaceholder:"마커 생성 또는 선택",clickToCreateMarker:"마커를 만들려면 여기를 클릭하세요.",pleaseInviteUser:"데이터를 동기화하려면 사용자를 Tapni에 가입하도록 초대하세요.",connectionSynchronized:"연결 데이터가 자동으로 동기화됩니다.",viewProfile:"프로필보기",createConnectionHeader:"새 연결 추가",createConnectionButton:"추가하다",createConnectionSuccess:"연결이 생성되었습니다.",allow_company_management:"회사 관리 허용",company_join_request:"이 귀하의 프로필을 관리하고 이를 기업 계정에 연결하도록 요청하고 있습니다.",account_ownership_transfer:"귀하가 요청을 수락하면 귀하의 계정 소유권이 회사로 이전됩니다. 회사는 귀하의 프로필을 수정하고, 링크를 편집 및 추가하고, 연결을 확인하고, 비밀번호를 수정하고, 계정을 삭제하는 등의 작업을 수행할 수 있습니다. 요청을 수락하기 전에 회사에 확인하십시오.",request_expired:"요청이 만료되었습니다. 회사에 새 요청을 보내도록 요청하십시오.",request_expiration_desc:"보안 강화를 위해 요청은 전송된 후 14일 동안만 작동합니다.",invitation_link_not_valid:"초대 링크가 유효하지 않습니다!",invitation_link_not_valid2:"초대 이메일에서 버튼을 다시 클릭하거나 초대 링크를 복사합니다.",accept_request:"요청 수락",close:"닫다",request_accepted:"요청이 성공적으로 수락되었습니다.",companyEmail:"회사 이메일",companyPhone:"회사 전화",addBusinessInformations:"비즈니스 정보 추가",resetFilter:"초기화",selectMarkers:"마커 선택",filterConnectionsHeader:"필터 연결",selectConnectionType:"연결 유형 선택",all:"모두",direct:"직접",form:"형태",manually:"수동으로",scan:"주사",sortOptions:"정렬 옵션",date:"제작 일",fullName:"성명",descending:"내림차순",ascending:"오름차순",selectDateRange:"날짜 범위 선택",follow_up_reminder:"후속 알림",now:"지금",one_hour:"1 토",one_day:"1 일",three_days:"3 일",one_week:"일주",two_weeks:"이주",one_month:"개월",custom:"시간 선택",set_reminder:"알림 설정",select_date_time:"날짜 및 시간 선택",enter_reminder_text:"알림 텍스트 입력",reminder_created:"알림이 생성되었습니다.",connectionNameLabel:"연결 이름 입력",connectionEmailLabel:"개인 이메일 주소 입력",privatePhoneLabel:"개인 전화번호 입력",companyNameLabel:"회사 이름 입력",businessEmail:"비즈니스 이메일 주소",businessEmailLabel:"비즈니스 이메일 주소 입력",businessPhone:"회사 전화번호",businessPhoneLabel:"회사 전화번호 입력",noteLabel:"메모 입력",markersLabel:"연결 마커 추가",showScan:"스캔 표시",hideScan:"스캔 숨기기",create_connection:"연결 추가",create_manually:"수동으로 추가",create_using_scanner:"카드 스캐너를 사용하여 추가",companyTitle:"회사명",companyTitleLabel:"회사명 입력",allConnectionsLabel:"모든 연결 유형",directConnectionsLabel:"Tapni 사용자와 직접 앱 내 연결",formConnectionsLabel:"연결 양식에 채워진 연결",manualConnectionsLabel:"수동으로 생성된 연결",scanConnectionsLabel:"카드 스캐너가 연결을 생성했습니다.",analyticsHeader:"분석",analyticsProfileViews:"프로필 보기",analyticsLinkClicks:"링크 클릭 수",analyticsClickTroughRatio:"트로프 비율 클릭",analyticsTotalConnections:"총 연결 수",analyticsTopLinks:"가장 인기 있는 링크",analyticsProfileVisits:"프로필 방문",analyticsLinkVisits:"링크 방문",analyticsNewConnections:"새로운 연결",analyticsTopCountries:"상위 국가",analyticsTopReferers:"상위 추천인",please_wait:"잠시만 기다려 주세요...",click_here:"여기를 클릭하세요",if_redirect_not_directly:"리디렉션이 자동으로 수행되지 않는 경우",you_will_be_redirected:"Tapni 애플리케이션으로 리디렉션됩니다.",use_tapni_on_the_web:"웹에서 Tapni 사용하기",login_by_scanning_qr_code:"QR 코드 스캔하여 로그인하기",open_tapni_app_on_your_phone:"1. 휴대폰에서 Tapni 앱 열기",go_to_settings_link_a_device:"2. 설정 > 장치 연결로 이동하기",point_your_phone_at_this_qr_code:"3. 휴대폰을 이 QR 코드에 맞추기",choose_other_login_methods:"다른 로그인 방법 선택하기",no_sso_logins:"귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."}},ge={computed:{home(){return this.storage.token&&this.storage.username?"/"+this.storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||S.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||S.Capacitor.getPlatform()==="ios"},isNative(){return S.Capacitor.isNativePlatform()}},methods:{errorHandler(a){return a&&a.response&&a.response.data&&a.response.data.error&&((a.response.data.error==="ACCESS_DENIED"||a.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!a.response.data.error.includes("Network Error")&&!a.response.data.error.includes("Cannot read properties")&&this.errorSnack(a.response.data.error)),a},errorSnack(a){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=a,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(a){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=a,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(a){return a<10?"":a<=50?"🔥":a<=100?"💥":a<=300?"💎":a>300?"🚀":""},isEmpty(a){if(!a)return!0;for(let t in a)if(a.hasOwnProperty(t))return!1;return JSON.stringify(a)===JSON.stringify({})},copy(a=""){const t=document.createElement("textarea");t.value=a,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.successSnack(this.ssoLang[this.appLang].copied)},async getCaptchaToken(a){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:a})}catch(t){return console.log(t),null}}}};var he={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const m={mixins:[ge],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:M.state,de:q.state,es:D.state,fr:R.state,it:O.state,sr:K.state,tr:U.state,cn:me.state,kr:H.state},display:"npm",redirect_uri:"https://t.link/callback/auth",response_type:"token",state:"",allowedOrigins:["https://business.tapni.com","https://business-dev.tapni.com","https://tapni.com","https://tapni.co","https://t.link","https://my.tapni.com","https://my.tapni.co","https://dev.tapni.co","https://dev.tapni.com","https://auth.tapni.com","https://auth.tapni.co","https://mailsign.link","https://sign.tapni.com","https://qrcodetoolkit.com","https://qr.tapni.com","https://designer.tapni.com","https://designer-dev.tapni.com"]}},computed:{appLang(){return this.appLanguage},isLoggedIn(){return!!this.token&&this.token!==""&&this.token!=="null"},renderView(){return this.display==="redirect"?!1:this.view}},mounted(){this.$route.query.redirect_uri&&(this.redirect_uri=this.$route.query.redirect_uri),this.$route.query.display&&(this.display=this.$route.query.display),this.$route.query.state&&(this.state=this.$route.query.state),this.$route.query.response_type&&(this.response_type=this.$route.query.response_type),this.$route.query.realm&&(this.storage.realm=this.$route.query.realm),c.$on("updateLang",this.updateLang),he.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(a){if(a&&a.response&&a.response.data&&a.response.data.error){if(a.response.data.error==="ACCESS_DENIED"||a.response.data.error==="TOKEN_EXPIRED")return this.logout();!a.response.data.error.includes("Network Error")&&!a.response.data.error.includes("Cannot read properties")&&this.errorSnack(a.response.data.error)}return a},errorSnack(a){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=a,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(a){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=a,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog(a){const[t,n]=await _(y.eventLog(a,this.storage));return t?this.errorHandler(t):n},async maintenance(){const[a,t]=await _(L.get("https://status.tapni.co/data/maintenance.json"));if(a)return console.error(a);if(t){let n=t.data;typeof t.data=="string"&&(n=JSON.parse(t.data)),n.api&&n.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+n.api.msg)}},async getUser(a){if(a){let t,n;if(a.username?[t,n]=await _(y.getByUsername(a,this.storage)):a.serial&&([t,n]=await _(y.getByNumber(a,this.storage))),t)return this.errorHandler(t);if(n.data.success){if(!n.data.user&&n.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+n.data.showDemoProfile)}!n.data.user&&a.login&&this.logout(),this.registerLang(n.data.user?n.data.user.ssoLang:"en"),this.setUser(n.data.user)}}},async loginSetup(a){var t,n;a.data.refreshToken&&this.setRefreshToken(a.data.refreshToken),a.data.token&&this.setToken(a.data.token),((n=(t=a.data)==null?void 0:t.data)==null?void 0:n.ssoLang)!==this.appLang&&c.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLang,username:a.data.data.username}}),this.setLoggedInUserId(a.data.data.id),this.storage.UserId=a.data.data.id,this.storage.username=a.data.data.username,a.isModal===!0&&this.setLoggedInAccounts([{id:a.data.data.id,username:a.data.data.username,refreshToken:a.data.refreshToken,photo:a.data.data.photo}])},async refreshTokenAction(a){const[t,n]=await _(u.refreshToken({id:a.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.storage));if(t&&t.response&&t.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();this.setToken(n.data.token)},async login(a){const[t,n]=await _(u.login(a,this.storage));if(t)return this.errorHandler(t);if(n.data.success)return this.display==="npm"&&(this.loginSetup({...n,isModal:a.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...n,isModal:a.isModal}),!0},loginSuccess(a){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(t=>this.redirect_uri.startsWith(t)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+a.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(t=>{var n;(n=window.parent)==null||n.postMessage({code:a.data.auth_code,state:this.$route.query.state},t)}):this.display==="npm"&&(c.$emit("ssoEvent",{name:"setLoading",data:!0}),c.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:a.data.data.username}}),a.isModal&&(c.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLang].success_login)),this.$router.push("/"+a.data.data.username+"#edit"))},async register(a){const[t,n]=await _(u.register(a,this.storage));return t?this.errorHandler(t):n},async verify(a){const[t,n]=await _(u.verify(a,this.storage));return t?this.errorHandler(t):n},async reset(a){const[t,n]=await _(u.sendResetEmail(a,this.storage));if(t)return this.errorHandler(t);n.data.success&&this.successSnack(this.ssoLang[this.appLang].password_reset_success)},async exchangeAuthCode(a){const[t,n]=await _(L.post("https://api.tapni.co/v1/users/auth-code",{code:a.code,code_verifier:a.code_verifier}));if(t)return this.errorHandler(t);await this.loginSetup(n),await this.getLoggedInAccounts(),this.loginSuccess(n)},async changePassword(a){const[t,n]=await _(u.changePassword(a,this.storage));return t?this.errorHandler(t):n.data.success},async newPassword(a){const[t,n]=await _(y.newPassword(a,this.storage));return t?this.errorHandler(t):n.data.success},async deleteAccount(a){const[t,n]=await _(y.deleteAccount(a,this.storage));return t?this.errorHandler(t):n.data.success},async registerDevice(){const a=await E.Device.getId(),t=await E.Device.getInfo();let n={device_id:a.uuid,platform:t.platform,device_info:{model:t.model,manufacturer:t.manufacturer,operatingSystem:t.operatingSystem,osVersion:t.osVersion,isVirtual:t.isVirtual,webViewVersion:t.webViewVersion}};const[o,i]=await _(x.registerDevice(n,this.storage));return o?this.errorHandler(o):i},async addFcmToken(a){const[t,n]=await _(x.addFcmToken(a,this.storage));return t?this.errorHandler(t):n},async acceptCompanyInvitation(a){const[t,n]=await _(N.acceptCompanyInvitation(a,this.storage));return t?this.errorHandler(t):n},async logout(a=!0){a&&u.logout({token:this.refreshToken},this.storage),this.storage.username=null,this.storage.ssoUser=null,this.storage.UserId=null,this.setLoggedInUserId(null),this.setToken(null),this.setRefreshToken(null),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(t=>{this.loggedInAccounts[t].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[t].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[t].id),this.storage.username=t,this.storage.UserId=this.loggedInAccounts[t].id,this.getLoggedInAccounts(),this.$router.push("/"+t)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(a){const[t,n]=await _(N.getBySSOEmail(a.email,this.storage));if(t)return this.errorHandler(t);if(n.data.success)return n.data},async getLoggedInAccounts(){const a=this.getRefreshTokens(),[t,n]=await _(u.getLoggedInAccounts({refreshTokens:a},this.storage));if(t)return this.errorHandler(t);n.data.success&&this.setLoggedInAccounts(n.data.accounts)},async loginUsingQR(a){const[t,n]=await _(y.loginUsingQR(a,this.storage));return t?this.errorHandler(t):n.data.success},setLoggedInAccounts(a){this.loggedInAccounts={},a.forEach(t=>{this.loggedInAccounts[t.username]=t}),c.$emit("ssoEvent",{name:"setLoggedInAccounts",data:a})},setLoggedInUserId(a){this.loggedInUserId=a},setUser(a){this.ssoUser=a,this.storage&&this.ssoUser&&this.storage.username===this.ssoUser.username&&(this.appLanguage=a.ssoLang)},getRefreshTokens(){return console.log("getRefreshTokens",this.storage,this.storageApp),this.storage.refreshTokens.split(",")},setRefreshToken(a){let t=this.getRefreshTokens();a&&!t.includes(a)?t.unshift(a):t=t.filter(n=>n!==this.refreshToken),t.length>=1?this.refreshToken=t[0]:this.refreshToken=a,this.storage.refreshTokens=t.join(","),c.$emit("ssoEvent",{name:"setRefreshToken",data:a})},setToken(a){console.log("setup token"),this.storage.token=a,this.token=a,c.$emit("ssoEvent",{name:"setToken",data:a})},setUserID(a){this.storage.UserId=a},updateLang(a){this.appLanguage=a}},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&(this.redirect_uri=this.$route.query.redirect_uri),this.$route.query.display&&(this.display=this.$route.query.display),this.$route.query.state&&(this.state=this.$route.query.state),this.$route.query.response_type&&(this.response_type=this.$route.query.response_type),this.$route.query.realm&&(this.storage.realm=this.$route.query.realm),this.$route.query.qrLogin&&this.changeLoginToQr()},deep:!0}}},k=(a,t)=>{const n=a.__vccOpts||a;for(const[o,i]of t)n[o]=i;return n},fe={name:"AuthWelcome",mixins:[m],data(){return{loading:!0}},async mounted(){document.getElementById("tapniVideo").play(),setTimeout(()=>{this.storage.token?this.$router.push(this.home):c.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),c.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},F=a=>(e.pushScopeId("data-v-bf520ec5"),a=a(),e.popScopeId(),a),ke={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},be=["autoplay"],ye=[F(()=>e.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],ve={class:"bold full-top no-bottom center-text"},we={class:"full-bottom half-top center-text color-black font-16"},ze={class:"page-login-links center-text"},Se=F(()=>e.createElementVNode("div",{class:"clear"},null,-1)),Le={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Ee=[e.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a>',3)];function Ce(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",ke,[e.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:a.isNative},ye,8,be),e.createElementVNode("h1",ve,e.toDisplayString(a.ssoLang[this.appLang].welcome),1),e.createElementVNode("p",we,e.toDisplayString(a.ssoLang[this.appLang].welcome_p1),1),e.createCommentVNode("",!0),e.createCommentVNode("",!0),e.createVNode(l,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(a.ssoLang[this.appLang].create_account),1)]),_:1}),e.createElementVNode("div",ze,[e.createVNode(l,{to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].already_registered)+"? ",1),e.createElementVNode("b",null,e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),Se]),this.isNative?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Le,Ee))])}const Q=k(fe,[["render",Ce],["__scopeId","data-v-bf520ec5"]]),$={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var a,t;return(((t=(a=this.ssoCompany)==null?void 0:a.login)==null?void 0:t.google_login)&&!this.isModal)??!0}},mounted(){B.GoogleAuth.initialize()},methods:{async googleLogin(){var n;this.googleLoad=!0;let[a,t]=await _(B.GoogleAuth.signIn());if(a)return this.googleLoad=!1;if(this.referral&&(t.ref=this.referral),t.authentication&&(t.authentication.accessToken||t.authentication.idToken)){this.referral&&(t.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(u.googleSDK(t,this.storage));if(o)return this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.$router.push("/"+i.data.data.username+"#edit"),setTimeout(()=>{this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(a,t,n){var o,i=a.getElementsByTagName(t)[0];a.getElementById(n)||(o=a.createElement(t),o.id=n,o.src="https://connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(o,i))}(document,"script","facebook-jssdk");const G={data(){return{facebookLoad:!1}},computed:{fbLoginUrl(){return'https://www.facebook.com/v16.0/dialog/oauth?client_id=202577611527680&state={"oauth":"facebook"}&response_type=code%20granted_scopes&scope=email&redirect_uri=https://'+window.location.host+"/login"},displayFacebookLogin(){return!1}},methods:{async facebookLogin(){var o;this.facebookLoad=!0;const a=["email"],[t,n]=await _(se.FacebookLogin.login({permissions:a}));if(t)return this.facebookLoad=!1;if(this.referral&&(n.ref=this.referral),this.display==="popup"&&(n.response_type="code"),n.accessToken){const[i,r]=await _(u.facebookSDK(n,this.storage));if(i)return this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(i);if(r.data.success){if(this.display==="popup")return(o=window.parent)==null?void 0:o.postMessage({code:r.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(r),this.getLoggedInAccounts(),this.$router.push("/"+r.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}},W={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var a,t;return(((t=(a=this.ssoCompany)==null?void 0:a.login)==null?void 0:t.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var n;this.appleLoad=!0;const[a,t]=await _(ce.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(a)return this.appleLoad=!1;if(t.response.tokenData=V.jwtDecode(t.response.identityToken),t&&t.response&&t.response.identityToken){this.referral&&(t.response.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(u.appleSDK(t.response,this.storage));if(o)return this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.$router.push("/"+i.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var Te={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const j={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var a,t;return(((t=(a=this.ssoCompany)==null?void 0:a.login)==null?void 0:t.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(a,t={}){var i,r,l;a==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(t).length||(t=((r=(i=this.ssoCompany.sso)==null?void 0:i.azure)==null?void 0:r.sso)||{});const[n,o]=await _(le.MsAuthPlugin.login({clientId:a==="sso"?t.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:a==="sso"?t.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:Te.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(n)return console.log("Error: "+JSON.stringify(n)),this.microsoftLoad=!1;if(this.referral&&(o.ref=this.referral),o.response_type="code",o&&(o.accessToken||o.idToken)){const[s,d]=await _(u.microsoftSDK(o,this.storage));if(s)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(s);if(d.data.success){if(this.display==="popup")return(l=window.parent)==null?void 0:l.postMessage({code:d.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(d),this.getLoggedInAccounts(),this.$router.push("/"+d.data.data.username+"#edit"),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){c.$emit("toggleSSOModal")}}},v={getFirstBrowserLanguage(){let a=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"],n,o;if(Array.isArray(a.languages)){for(n=0;n<a.languages.length;n++)if(o=a.languages[n],o&&o.length)return o.slice(0,2)}for(n=0;n<t.length;n++)if(o=a[t[n]],o&&o.length)return o.slice(0,2);return null},compareLangKeys(){const a=Object.keys(M.default.state),t=Object.keys(q.default.state),n=Object.keys(D.default.state),o=Object.keys(H.default.state),i=Object.keys(O.default.state),r=Object.keys(R.default.state),l=Object.keys(K.default.state),s=Object.keys(U.default.state);console.log("In en but not in de",a.filter(d=>!t.includes(d))),console.log("In de but not in en",t.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in es",a.filter(d=>!n.includes(d))),console.log("In es but not in en",n.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in kr",a.filter(d=>!o.includes(d))),console.log("In kr but not in en",o.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in it",a.filter(d=>!i.includes(d))),console.log("In it but not in en",i.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in fr",a.filter(d=>!r.includes(d))),console.log("In fr but not in en",r.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in sr",a.filter(d=>!l.includes(d))),console.log("In sr but not in en",l.filter(d=>!a.includes(d))),console.log(),console.log("In en but not in tr",a.filter(d=>!s.includes(d))),console.log("In tr but not in en",s.filter(d=>!a.includes(d))),console.log()},base64ImageToBlob(a){const t=a.split(";base64,"),n=t[0].split(":")[1],o=window.atob(t[1]),i=new Uint8Array(o.length);for(let r=0;r<o.length;++r)i[r]=o.charCodeAt(r);return new Blob([i],{type:n})},blobToBase64(a){const t=new FileReader;return t.readAsDataURL(a),new Promise(n=>{t.onloadend=()=>{n(t.result)}})},base64toFile(a,t){for(var n=a.split(","),o=n[0].match(/:(.*?);/)[1],i=atob(n[1]),r=i.length,l=new Uint8Array(r);r--;)l[r]=i.charCodeAt(r);return new File([l],t,{type:o})},fileToBase64(a){new Promise((t,n)=>{const o=new FileReader;o.readAsDataURL(a),o.onload=()=>t(o.result),o.onerror=i=>n(i)})},getUTMParams(a,t){let n={};return a.utm_source&&(n.utm_source=a.utm_source),a.utm_medium&&(n.utm_medium=a.utm_medium),a.utm_campaign&&(n.utm_campaign=a.utm_campaign),a.utm_term&&(n.utm_term=a.utm_term),a.utm_content&&(n.utm_content=a.utm_content),n},cropCardScan(a,t){const n=new window.Image,o=document.createElement("canvas"),i=o.getContext("2d");n.src="data:image/jpeg;base64,"+a,n.onload=()=>{const r=n.width,l=n.width/1.65,s=0,d=n.height/2-l/2,f=r,w=l;o.width=f,o.height=w,i.drawImage(n,s,d,r,l,0,0,f,w);const re=o.toDataURL();return t(re),re}},generateRandomString(a){let t=new Uint32Array(a);return window.crypto.getRandomValues(t),Array.from(t,n=>("0"+n.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(a){const n=new TextEncoder().encode(a),o=await window.crypto.subtle.digest("SHA-256",n);return btoa(String.fromCharCode.apply(null,new Uint8Array(o))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(a,t,n){let i=new TextEncoder().encode(n,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:t},a,i)},async decryptAES(a,t,n){try{const o=d=>Uint8Array.from(atob(d),f=>f.charCodeAt(0));n=n.replace(/ /g,"+");const i=new TextEncoder,r=new TextDecoder;a=i.encode(a),t=i.encode(t),n=o(n,storage);const l=await window.crypto.subtle.importKey("raw",a,"AES-CBC",!0,["encrypt","decrypt"]);let s=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:t},l,n);return s=r.decode(s),s=s.replace(/ /g,"+"),s=atob(s),s}catch(o){console.log(o)}}},P={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(a){var i,r;let[t,n]=await _(L.post(a.domain+"/v1/token",new URLSearchParams({code:a.code,client_id:a.clientID,grant_type:"authorization_code",redirect_uri:this.isNative?"tapni://t.link/callback/okta":location.origin+"/callback/okta",code_verifier:localStorage.getItem("pkce_code_verifier")})));if(t)return this.errorHandler(t);localStorage.removeItem("pkce_code_verifier");let o={accessToken:(i=n.data)==null?void 0:i.access_token,domain:a.domain};if(this.display==="popup"&&(o.response_type="code"),[t,n]=await _(u.oktaSDK(o,this.storage)),t)return this.oktaLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(t);if(n.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:n.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(n),this.getLoggedInAccounts(),this.$router.push("/"+n.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLang].unexpected_err)},async oktaLogin(a){const t=S.Capacitor.getPlatform()||"web";let n=btoa("domain="+a.domain+"&client_id="+a.clientID+"&platform="+t+"&rand="+v.generateRandomString(28)),o=v.generateRandomString(28);localStorage.setItem("pkce_code_verifier",o);let i=await v.pkceChallengeFromVerifier(o),r=a.domain+"/v1/authorize",l;this.isNative?l="tapni://t.link/callback/okta":l=location.origin+"/callback/okta";let s=r+"?response_type=code&client_id="+encodeURIComponent(a.clientID)+"&state="+encodeURIComponent(n)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(l)+"&code_challenge="+encodeURIComponent(i)+"&code_challenge_method=S256",d=this,f;window.addEventListener("message",async w=>{if(!this.allowedOrigins.includes(w.origin))return console.log("Origin is not allowed!");w.data.type==="okta"&&(f=w.data.code,await d.exchangeCode({domain:a.domain,code:f,clientID:a.clientID}))},{once:!0}),this.isNative?await C.Browser.open({url:s,presentationStyle:"popover"}):window.open(s,"popup","width=600,height=600")},async handleOktaRedirect(){let a=this.$route.query.code,t,n,o,i,r={type:"okta"};if(a&&(r.code=a),this.$route.query.state){t=this.$route.query.state,t=atob(t);const l=new URLSearchParams(t);n=l.get("client_id"),o=l.get("domain"),i=l.get("platform")}window.opener?(window.opener.postMessage(r,location.origin),window.close()):(this.isNative&&this.isIOS&&await C.Browser.close(),c.$emit("ssoEvent",{name:"setLoading",data:!0}),a&&n&&o&&await this.exchangeCode({code:a,clientID:n,domain:o,platform:i}),localStorage.removeItem("pkce_code_verifier"),c.$emit("ssoEvent",{name:"setLoading",data:!1}))}}},A={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(a){this.code_verifier=v.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await v.pkceChallengeFromVerifier(this.code_verifier);const t=S.Capacitor.getPlatform();let n=Buffer.from(`code_challenge=${this.code_challenge}&platform=${t}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.storage.realm}`).toString("base64");a=`${a}&RelayState=${n}`;let o=this;window.addEventListener("message",async i=>{var r;if(!this.allowedOrigins.includes(i.origin))return console.log("Origin is not allowed!");if(i.data.type==="saml"&&i.data.code){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:i.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await o.exchangeAuthCode({code:i.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await C.Browser.open({url:a,presentationStyle:"popover"}):window.open(a,"popup","width=600,height=600")},async handleSamlRedirect(){var n;let a,t={type:"saml"};if(this.$route.query.code&&(t.code=this.$route.query.code),window.opener)window.opener.postMessage(t,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await C.Browser.close(),EventBus.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(a=this.$route.query.code),a){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:a,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:a,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),EventBus.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},je={name:"AuthLogin",mixins:[$,G,W,j,P,A,m,{data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await e.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=a.length;let n="";const o=new Uint32Array(32);return window.crypto.getRandomValues(o),o.forEach(i=>{n+=a.charAt(i%t)}),n},refreshQrCode(){var a,t;this.qrCode&&((t=(a=document.getElementById("qrCodeContainer"))==null?void 0:a.childNodes[0])==null||t.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new de({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[a,t]=await _(N.qrCodePooling({qrToken:this.qrCodeHash},this.storage));if(a)return this.errorHandler(a);t.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...t,isModal:this.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...t,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await e.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}}],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){var a,t;return(((t=(a=this.company)==null?void 0:a.login)==null?void 0:t.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var a,t;return(((t=(a=this.company)==null?void 0:a.login)==null?void 0:t.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var a,t;return(((t=(a=this.company)==null?void 0:a.login)==null?void 0:t.create_account)&&!this.isModal)??!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),c.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let t={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?t.email=this.emailOrUsername:t.username=this.emailOrUsername;const[n,o]=await _(this.login(t));n&&console.error(n),this.submitted=!1,o===!0&&(this.emailOrUsername="",this.password="")},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})},async bum(){this.$storage.token="321213"}},watch:{emailOrUsername(a){a.includes("@")&&(this.$storage.verifyEmail=a)},"$route.path":async function(a){if(a==="/login/callback/okta")return await this.handleOktaRedirect();if(a==="/login/callback/saml")return await this.handleSamlRedirect()}}},Pe=[e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Ae=e.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Ie={key:1},Ne={class:"page-login-field half-top"},Ve=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Be=["placeholder"],xe=e.createElementVNode("em",null,null,-1),Me={class:"page-login-field half-bottom"},qe=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),De=["type","placeholder"],Re={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Oe={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ke={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ue={key:0},He={key:1,class:"button--loading button__loader"},Fe=e.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Qe=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),$e={key:0},Ge={key:1,class:"button--loading button__loader"},We=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),Xe={key:0},Ye={key:1,class:"button--loading-black button__loader"},Ze=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),Je={key:0},ea={key:1,class:"button--loading-black button__loader"},aa=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ta={key:0},na={key:1,class:"button--loading-black button__loader"},ia=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading-black button__loader"},sa=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading-black button__loader"},da=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),_a={class:"close-text center-text half-top color-black"},ua=e.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:9,class:"page-login-links"},ka=e.createElementVNode("div",{class:"clear"},null,-1),ba={class:"forgot center-text pointer small-top"},ya=e.createElementVNode("br",null,null,-1),va=e.createElementVNode("div",{class:"clear"},null,-1);function wa(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[14]||(t[14]=e.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:e.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Pe)):e.createCommentVNode("",!0),e.createElementVNode("h1",{class:"bold no-bottom center-text",style:{"margin-top":"63px"},onClick:t[1]||(t[1]=(...s)=>r.bum&&r.bum(...s))},e.toDisplayString(this.ssoLang[this.appLang].login),1),Ae,r.displayFormLogin?(e.openBlock(),e.createElementBlock("span",Ie,[e.createElementVNode("div",Ne,[Ve,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[2]||(t[2]=s=>i.emailOrUsername=s),onKeydown:t[3]||(t[3]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:a.ssoLang[this.appLang].email_username,required:""},null,40,Be),[[e.vModelText,i.emailOrUsername]]),xe]),e.createElementVNode("div",Me,[qe,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[4]||(t[4]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:a.ssoLang[this.appLang].password,name:"password",required:"",minlength:"8"},null,8,De),[[e.vModelDynamic,i.password]]),e.createElementVNode("em",{onClick:t[5]||(t[5]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[e.withDirectives(e.createElementVNode("img",Re,null,512),[[e.vShow,!i.revealPassword]]),e.withDirectives(e.createElementVNode("img",Oe,null,512),[[e.vShow,i.revealPassword]])])]),e.createElementVNode("button",Ke,[i.submitted?(e.openBlock(),e.createElementBlock("span",He)):(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(a.ssoLang[a.appLang].login),1))])])):e.createCommentVNode("",!0),Fe,a.displayAppleLogin?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:t[6]||(t[6]=(...s)=>a.appleLogin&&a.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Qe,a.appleLoad?(e.openBlock(),e.createElementBlock("span",Ge)):(e.openBlock(),e.createElementBlock("span",$e,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Apple",1))])):e.createCommentVNode("",!0),a.displayGoogleLogin?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:t[7]||(t[7]=(...s)=>a.googleLogin&&a.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[We,a.googleLoad?(e.openBlock(),e.createElementBlock("span",Ye)):(e.openBlock(),e.createElementBlock("span",Xe,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Google",1))])):e.createCommentVNode("",!0),a.displayFacebookLogin?(e.openBlock(),e.createElementBlock("a",{key:4,onClick:t[8]||(t[8]=(...s)=>a.facebookLogin&&a.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ze,a.facebookLoad?(e.openBlock(),e.createElementBlock("span",ea)):(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Facebook",1))])):e.createCommentVNode("",!0),a.displayMicrosoftSSOLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:5,onClick:t[9]||(t[9]=(...s)=>a.microsoftLogin&&a.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[aa,a.microsoftLoad?(e.openBlock(),e.createElementBlock("span",na)):(e.openBlock(),e.createElementBlock("span",ta,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Outlook",1))])),a.displayMicrosoftSSOLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:6,onClick:t[10]||(t[10]=(...s)=>a.ssoLogin&&a.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[ia,a.microsoftSSOLoad?(e.openBlock(),e.createElementBlock("span",ra)):(e.openBlock(),e.createElementBlock("span",oa,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" SSO",1))])),a.displayMicrosoftSSOLogin?(e.openBlock(),e.createElementBlock("a",{key:7,onClick:t[11]||(t[11]=s=>a.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[sa,a.microsoftSSOLoad?(e.openBlock(),e.createElementBlock("span",ca,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" SSO",1)):(e.openBlock(),e.createElementBlock("span",la))])):e.createCommentVNode("",!0),r.displayFormLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:8,onClick:t[12]||(t[12]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,e.createElementVNode("span",null,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Email",1)])),pa,e.createElementVNode("p",_a,[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].terms_by_signing_in)+" ",1),ua,e.createElementVNode("a",ma,e.toDisplayString(a.ssoLang[this.appLang].terms_of_service),1),e.createTextVNode(" "+e.toDisplayString(a.ssoLang[a.appLang].and)+" ",1),e.createElementVNode("a",ga,e.toDisplayString(a.ssoLang[this.appLang].privacy_policy),1)]),ha,n.isModal?(e.openBlock(),e.createElementBlock("div",{key:10,class:"page-login-links",onClick:t[13]||(t[13]=(...s)=>r.createAccountModal&&r.createAccountModal(...s))},[e.createElementVNode("a",ba,[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].or)+" ",1),ya,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[a.appLang].create_new_account),1)]),va])):(e.openBlock(),e.createElementBlock("div",fa,[r.displayRegisterLogin?(e.openBlock(),e.createBlock(l,{key:0,class:"forgot float-right",to:"/register"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].create_account),1)]),_:1})):e.createCommentVNode("",!0),r.displayResetPasswordLogin?(e.openBlock(),e.createBlock(l,{key:1,class:"create float-left",to:"/reset"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[a.appLang].reset_password),1)]),_:1})):e.createCommentVNode("",!0),ka]))],36)}const X=k(je,[["render",wa]]),za={name:"AuthRegister",mixins:[$,G,W,j,m],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.storage.referral&&(this.referral=this.storage.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLang].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLang].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLang].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLang].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let a={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},t=await this.register(a);this.submitted=!1,t.data&&t.data.success&&(t.data.message==="SUCCESS_REGISTER"?(this.isModal?c.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLang].register_success),this.formButtonText=this.ssoLang[this.appLang].check_your_inbox):t.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...t,isModal:a.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...t,isModal:a.isModal})))},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(a){this.storage.verifyEmail=a},referral(a){this.storage.referral=a}}},Sa=[e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],La={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ea={class:"half-bottom small-top center-text color-black"},Ca={key:0},Ta=e.createElementVNode("br",null,null,-1),ja={key:1},Pa={class:"page-login-field half-top"},Aa=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Ia=["placeholder"],Na=e.createElementVNode("em",null,null,-1),Va={class:"page-login-field half-top"},Ba=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),xa=["placeholder","disabled"],Ma=e.createElementVNode("em",null,null,-1),qa={class:"page-login-field half-top half-bottom"},Da=e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ra=["type","placeholder"],Oa={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ka={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ua={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Ha={key:0},Fa={key:1,class:"button--loading button__loader"},Qa=e.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),$a=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Ga={key:0},Wa={key:1,class:"button--loading button__loader"},Xa=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),Ya={key:0},Za={key:1,class:"button--loading button__loader"},Ja=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),et={key:0},at={key:1,class:"button--loading button__loader"},tt=e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),nt=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),it={class:"close-text center-text half-top color-black"},ot=e.createElementVNode("br",null,null,-1),rt={class:"",href:"https://tapni.co/policies/terms-of-service"},st={href:"https://tapni.co/policies/privacy-policy"},ct=e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),lt={key:5,class:"page-login-links"},dt=e.createElementVNode("div",{class:"clear"},null,-1),pt={class:"forgot center-text pointer small-top"},_t=e.createElementVNode("br",null,null,-1),ut=e.createElementVNode("div",{class:"clear"},null,-1);function mt(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[12]||(t[12]=e.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:e.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Sa)):e.createCommentVNode("",!0),e.createElementVNode("h1",La,e.toDisplayString(a.ssoLang[this.appLang].register),1),e.createElementVNode("p",Ea,[i.usernameRegister?(e.openBlock(),e.createElementBlock("span",Ca,[e.createTextVNode(" t.link/"+e.toDisplayString(i.username)+" "+e.toDisplayString(a.ssoLang[this.appLang].username_is_free)+" ✅ ",1),Ta])):e.createCommentVNode("",!0)]),i.emailLogin?(e.openBlock(),e.createElementBlock("span",ja,[e.createElementVNode("div",Pa,[Aa,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:a.ssoLang[this.appLang].email,name:"email",required:""},null,40,Ia),[[e.vModelText,i.email]]),Na]),e.createElementVNode("div",Va,[Ba,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.username=s),onKeydown:t[4]||(t[4]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:a.ssoLang[this.appLang].username,name:"username",required:"",disabled:i.usernameRegister,class:e.normalizeClass({"input-disabled":i.usernameRegister})},null,42,xa),[[e.vModelText,i.username]]),Ma]),e.createElementVNode("div",qa,[Da,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:a.ssoLang[this.appLang].password,name:"password",required:"",minlength:"8"},null,8,Ra),[[e.vModelDynamic,i.password]]),e.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[e.withDirectives(e.createElementVNode("img",Oa,null,512),[[e.vShow,!i.revealPassword]]),e.withDirectives(e.createElementVNode("img",Ka,null,512),[[e.vShow,i.revealPassword]])])]),e.createElementVNode("button",Ua,[i.submitted?(e.openBlock(),e.createElementBlock("span",Fa)):(e.openBlock(),e.createElementBlock("span",Ha,e.toDisplayString(i.formButtonText),1))])])):e.createCommentVNode("",!0),Qa,a.displayAppleLogin?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:t[7]||(t[7]=(...s)=>a.appleLogin&&a.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[$a,a.appleLoad?(e.openBlock(),e.createElementBlock("span",Wa)):(e.openBlock(),e.createElementBlock("span",Ga,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Apple",1))])):e.createCommentVNode("",!0),e.createElementVNode("a",{onClick:t[8]||(t[8]=(...s)=>a.googleLogin&&a.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Xa,a.googleLoad?(e.openBlock(),e.createElementBlock("span",Za)):(e.openBlock(),e.createElementBlock("span",Ya,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Google",1))]),a.displayFacebookLogin?(e.openBlock(),e.createElementBlock("a",{key:3,onClick:t[9]||(t[9]=(...s)=>a.facebookLogin&&a.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ja,a.facebookLoad?(e.openBlock(),e.createElementBlock("span",at)):(e.openBlock(),e.createElementBlock("span",et,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Facebook",1))])):e.createCommentVNode("",!0),i.emailLogin?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("a",{key:4,onClick:t[10]||(t[10]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[tt,e.createElementVNode("span",null,e.toDisplayString(a.ssoLang[this.appLang].sign_up_with)+" Email",1)])),nt,e.createElementVNode("p",it,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].terms_by_registering)+" ",1),ot,e.createElementVNode("a",rt,e.toDisplayString(a.ssoLang[this.appLang].terms_of_service),1),e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].and)+" ",1),e.createElementVNode("a",st,e.toDisplayString(a.ssoLang[this.appLang].privacy_policy),1)]),ct,n.isModal?(e.openBlock(),e.createElementBlock("div",{key:6,class:"page-login-links",onClick:t[11]||(t[11]=(...s)=>r.loginAccountModal&&r.loginAccountModal(...s))},[e.createElementVNode("a",pt,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].or)+" ",1),_t,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].sign_in_with_new),1)]),ut])):(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(l,{class:"create float-right",to:"/verify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].verify_account),1)]),_:1}),e.createVNode(l,{class:"forgot float-left",to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),dt]))],36)}const Y=k(za,[["render",mt]]),gt={name:"AuthVerify",mixins:[m],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.storage.verifyEmail&&(this.email=this.storage.verifyEmail),this.$route&&this.init()},methods:{init(){this.isLoggedIn?this.$router.push(this.home):(this.storage.verifyEmail&&(this.email=this.storage.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),c.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLang].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let a={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let t=await this.verify(a);this.submitted=!1,t&&t.data&&t.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLang].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",c.$emit("closeModal")),await this.loginSetup(t),this.getLoggedInAccounts(),this.storage.verifyEmail="",this.$router.push("/"+t.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLang].verify_account_success2))):this.submitted=!1},registerAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"storage.verifyEmail"(a){a&&(this.email=a)},"route.name"(a,t){!t&&a&&this.init()},"route.query":{handler(a){this.isEmpty(a)||this.init()},deep:!0}}},h=a=>(e.pushScopeId("data-v-2fd511e2"),a=a(),e.popScopeId(),a),ht=[h(()=>e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],ft={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},kt=h(()=>e.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),bt={class:"page-login-field half-top"},yt=h(()=>e.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),vt=["placeholder"],wt=h(()=>e.createElementVNode("em",null,null,-1)),zt={class:"page-login-field half-top"},St=h(()=>e.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),Lt=["placeholder"],Et=h(()=>e.createElementVNode("em",null,null,-1)),Ct={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Tt={key:0,class:"uppercase"},jt={key:1,class:"button--loading button__loader"},Pt=h(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),At={class:"close-text center-text half-top color-black"},It=["innerHTML"],Nt=h(()=>e.createElementVNode("a",{href:"mailto:support@tapni.co?subject=Email Verification"}," support@tapni.co",-1)),Vt=h(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Bt={key:1,class:"page-login-links"},xt=h(()=>e.createElementVNode("div",{class:"clear"},null,-1)),Mt={class:"forgot center-text pointer small-top"},qt=h(()=>e.createElementVNode("br",null,null,-1)),Dt=h(()=>e.createElementVNode("div",{class:"clear"},null,-1));function Rt(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[6]||(t[6]=e.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),style:e.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},ht)):e.createCommentVNode("",!0),e.createElementVNode("h1",ft,e.toDisplayString(a.ssoLang[this.appLang].verify_account),1),kt,e.createElementVNode("div",bt,[yt,e.withDirectives(e.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:a.ssoLang[this.appLang].email,required:""},null,40,vt),[[e.vModelText,i.email]]),wt]),e.createElementVNode("div",zt,[St,e.withDirectives(e.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":t[3]||(t[3]=s=>i.code=s),onKeydown:t[4]||(t[4]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:a.ssoLang[this.appLang].code,required:""},null,40,Lt),[[e.vModelText,i.code]]),Et]),e.createElementVNode("button",Ct,[i.submitted?(e.openBlock(),e.createElementBlock("span",jt)):(e.openBlock(),e.createElementBlock("span",Tt,e.toDisplayString(a.ssoLang[this.appLang].verify_account),1))]),Pt,e.createElementVNode("p",At,[e.createElementVNode("span",{innerHTML:a.ssoLang[this.appLang].verify_account_p1},null,8,It),Nt]),Vt,n.isModal?(e.openBlock(),e.createElementBlock("div",{key:2,class:"page-login-links",onClick:t[5]||(t[5]=(...s)=>r.registerAccountModal&&r.registerAccountModal(...s))},[e.createElementVNode("a",Mt,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].or)+" ",1),qt,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].create_new_account),1)]),Dt])):(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(l,{class:"create float-right",to:"/register"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].register),1)]),_:1}),e.createVNode(l,{class:"forgot float-left",to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),xt]))],36)}const Z=k(gt,[["render",Rt],["__scopeId","data-v-2fd511e2"]]),Ot={name:"AuthReset",mixins:[m],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.storage.verifyEmail&&(this.email=this.storage.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),c.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let a={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(a),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLang].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLang].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let a={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},t=await this.changePassword(a);this.submitted=!1,t===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLang].password_reseted_success))}},watch:{email(a){this.storage.verifyEmail=a}}},b=a=>(e.pushScopeId("data-v-220c28f9"),a=a(),e.popScopeId(),a),Kt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ut=b(()=>e.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),Ht={class:"page-login-field half-top color-black"},Ft=b(()=>e.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Qt=["placeholder"],$t=b(()=>e.createElementVNode("em",null,null,-1)),Gt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Wt={key:0,class:"uppercase"},Xt={key:1,class:"button--loading button__loader"},Yt=b(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Zt={class:"close-text center-text half-top color-black"},Jt=["innerHTML"],en=["href"],an=b(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),tn={class:"page-login-links"},nn=b(()=>e.createElementVNode("div",{class:"clear"},null,-1)),on={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},rn={class:"half-bottom small-top center-text color-black"},sn={class:"page-login-field half-top"},cn=b(()=>e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),ln=["type","placeholder"],dn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},pn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},_n={class:"page-login-field half-top"},un=b(()=>e.createElementVNode("i",{style:{"padding-top":"15px"}},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),mn=["type","placeholder"],gn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},hn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},fn={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},kn={key:0,class:"uppercase"},bn={key:1,class:"button--loading button__loader"},yn=b(()=>e.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vn={class:"close-text center-text half-top color-black"},wn=["innerHTML"],zn=["href"];function Sn(a,t,n,o,i,r){const l=e.resolveComponent("router-link");return i.passwordChange?(e.openBlock(),e.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:t[7]||(t[7]=e.withModifiers((...s)=>r.changePw&&r.changePw(...s),["prevent"]))},[e.createElementVNode("h3",on,e.toDisplayString(a.ssoLang[this.appLang].password_change),1),e.createElementVNode("p",rn,e.toDisplayString(a.ssoLang[this.appLang].password_new),1),e.createElementVNode("div",sn,[cn,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:a.ssoLang[this.appLang].password,required:""},null,8,ln),[[e.vModelDynamic,i.password]]),e.createElementVNode("em",{onClick:t[4]||(t[4]=s=>i.revealPassword=!i.revealPassword)},[e.withDirectives(e.createElementVNode("img",dn,null,512),[[e.vShow,!i.revealPassword]]),e.withDirectives(e.createElementVNode("img",pn,null,512),[[e.vShow,i.revealPassword]])])]),e.createElementVNode("div",_n,[un,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.passwordRepeat=s),type:i.revealPassword2?"text":"password",placeholder:a.ssoLang[this.appLang].password_repeat,required:""},null,8,mn),[[e.vModelDynamic,i.passwordRepeat]]),e.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword2=!i.revealPassword2)},[e.withDirectives(e.createElementVNode("img",gn,null,512),[[e.vShow,!i.revealPassword2]]),e.withDirectives(e.createElementVNode("img",hn,null,512),[[e.vShow,i.revealPassword2]])])]),e.createElementVNode("button",fn,[i.submitted?(e.openBlock(),e.createElementBlock("span",bn)):(e.openBlock(),e.createElementBlock("span",kn,e.toDisplayString(a.ssoLang[this.appLang].password_change),1))]),yn,e.createElementVNode("p",vn,[e.createElementVNode("span",{innerHTML:a.ssoLang[this.appLang].reset_password_p2},null,8,wn),e.createTextVNode(),e.createElementVNode("a",{href:"mailto:support@tapni.co?subject="+a.ssoLang[this.appLang].password_reset_t}," support@tapni.co",8,zn)])],32)):(e.openBlock(),e.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:t[2]||(t[2]=e.withModifiers((...s)=>r.resetEmail&&r.resetEmail(...s),["prevent"])),autocomplete:"on"},[e.createElementVNode("h3",Kt,e.toDisplayString(a.ssoLang[this.appLang].reset_password),1),Ut,e.createElementVNode("div",Ht,[Ft,e.withDirectives(e.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[0]||(t[0]=s=>i.email=s),onKeydown:t[1]||(t[1]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:a.ssoLang[this.appLang].email,required:""},null,40,Qt),[[e.vModelText,i.email]]),$t]),e.createElementVNode("button",Gt,[i.submitted?(e.openBlock(),e.createElementBlock("span",Xt)):(e.openBlock(),e.createElementBlock("span",Wt,e.toDisplayString(a.ssoLang[this.appLang].reset_password),1))]),Yt,e.createElementVNode("p",Zt,[e.createElementVNode("span",{innerHTML:a.ssoLang[this.appLang].reset_password_p1},null,8,Jt),e.createElementVNode("a",{href:"mailto:support@tapni.co?subject="+a.ssoLang[this.appLang].password_reset_t}," support@tapni.co",8,en)]),an,e.createElementVNode("div",tn,[e.createVNode(l,{class:"create float-right",to:"/verify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].verify_account),1)]),_:1}),e.createVNode(l,{class:"forgot float-left",to:"/login"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].sign_in),1)]),_:1}),nn])],32))}const J=k(Ot,[["render",Sn],["__scopeId","data-v-220c28f9"]]),Ln={name:"AuthCallback",mixins:[P,A,m],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let a=pe.sanitizeUrl(location.href);return a=a.replace("http","tapni"),a=a.replace("https","tapni"),window.open(a)}}},En={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Cn=e.createElementVNode("br",null,null,-1),Tn={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function jn(a,t,n,o,i,r){return e.openBlock(),e.createElementBlock("div",null,[(a.$route.query.platform==="android"||a.$route.query.platform==="ios")&&!a.isNative?(e.openBlock(),e.createElementBlock("h5",En,[e.createTextVNode(e.toDisplayString(a.ssoLang[this.appLang].you_will_be_redirected),1),Cn,e.createTextVNode(" "+e.toDisplayString(a.ssoLang[this.appLang].if_redirect_not_directly)+", ",1),e.createElementVNode("span",{onClick:t[0]||(t[0]=(...l)=>r.inAppRedirect&&r.inAppRedirect(...l)),style:{color:"blue",cursor:"pointer"}},e.toDisplayString(a.ssoLang[this.appLang].click_here),1),e.createTextVNode(".")])):(e.openBlock(),e.createElementBlock("h4",Tn,e.toDisplayString(a.ssoLang[this.appLang].please_wait),1))])}const ee=k(Ln,[["render",jn]]),Pn={name:"ModalOverlay",mixins:[m],data(){return{toggle:!1}},mounted(){c.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),c.$on("openModalOverlay",()=>{this.toggle=!0}),c.$on("toggleLanguageModal",this.toggleModal),c.$on("toggleSSOModal",this.toggleModal),c.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(a=!0){a&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var a,t;!this.isLoggedIn&&((t=(a=this.user)==null?void 0:a.lead_form)!=null&&t.forceFilling)||c.$emit("closeModal")}}};function An(a,t,n,o,i,r){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":i.toggle}),onClick:t[0]||(t[0]=(...l)=>r.toggleEmit&&r.toggleEmit(...l))},null,2)}const ae=k(Pn,[["render",An],["__scopeId","data-v-a128c2fa"]]),In={name:"SSO",mixins:[j,P,A,m],data(){return{toggle:!1,email:"",loading:!1}},mounted(){c.$on("toggleSSOModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const a=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let t;if(!(!a||a.error))if(t=Object.keys(a.sso),t.length)t.length<=1?(t[0]==="azure"&&this.microsoftLogin("sso",a.sso.azure.sso),t[0]==="okta"&&this.oktaLogin(a.sso.okta.sso),t[0]==="saml"&&this.samlLogin(a.sso.saml.sso.loginUrl)):(this.forceClose(),c.$emit("toggleSSOPickModal",{sso:a.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLang].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Nn=[(a=>(e.pushScopeId("data-v-256337c2"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Vn={class:"bold center-text color-black half-top half-bottom"},Bn=["placeholder"],xn={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},Mn={key:0},qn={key:1,class:"button--loading button__loader"};function Dn(a,t,n,o,i,r){return e.openBlock(),e.createElementBlock("form",{onSubmit:t[3]||(t[3]=e.withModifiers((...l)=>r.submit&&r.submit(...l),["prevent"])),class:e.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[e.createElementVNode("a",{onClick:t[0]||(t[0]=(...l)=>r.forceClose&&r.forceClose(...l)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Nn),e.createElementVNode("h3",Vn,e.toDisplayString(a.ssoLang[a.appLang].enter_company_email),1),e.createElementVNode("div",null,[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=l=>i.email=l),placeholder:a.ssoLang[this.appLang].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:t[2]||(t[2]=e.withKeys(e.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Bn),[[e.vModelText,i.email]])]),e.createElementVNode("button",xn,[i.loading?(e.openBlock(),e.createElementBlock("span",qn)):(e.openBlock(),e.createElementBlock("span",Mn,e.toDisplayString(a.ssoLang[a.appLang].continue),1))])],34)}const te=k(In,[["render",Dn],["__scopeId","data-v-256337c2"]]),Rn={name:"SSOPick",mixins:[j,P,A,m],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){c.$on("toggleSSOPickModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOPickModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(a){a==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),a==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),a==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(a){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,a&&(this.sso=a.sso,this.email=a.email),this.toggle=!this.toggle}}},I=a=>(e.pushScopeId("data-v-33bfb54b"),a=a(),e.popScopeId(),a),On=[I(()=>e.createElementVNode("i",{class:"font-17 color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Kn={class:"bold center-text color-black half-top half-bottom"},Un=I(()=>e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Hn={key:0},Fn={key:1,class:"button--loading button__loader"},Qn=I(()=>e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),$n={key:0},Gn={key:1,class:"button--loading button__loader"},Wn=I(()=>e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Xn={key:0},Yn={key:1,class:"button--loading button__loader"};function Zn(a,t,n,o,i,r){var l,s,d;return e.openBlock(),e.createElementBlock("form",{onSubmit:t[4]||(t[4]=e.withModifiers(()=>{},["prevent"])),class:e.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[e.createElementVNode("a",{onClick:t[0]||(t[0]=(...f)=>r.forceClose&&r.forceClose(...f)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},On),e.createElementVNode("h3",Kn,e.toDisplayString(a.ssoLang[a.appLang].select_sign_method),1),(l=i.sso)!=null&&l.azure?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:t[1]||(t[1]=f=>r.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Un,i.azureLoad?(e.openBlock(),e.createElementBlock("span",Fn)):(e.openBlock(),e.createElementBlock("span",Hn,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Azure",1))])):e.createCommentVNode("",!0),(s=i.sso)!=null&&s.okta?(e.openBlock(),e.createElementBlock("a",{key:1,onClick:t[2]||(t[2]=f=>r.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[Qn,i.oktaLoad?(e.openBlock(),e.createElementBlock("span",Gn)):(e.openBlock(),e.createElementBlock("span",$n,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" Okta",1))])):e.createCommentVNode("",!0),(d=i.sso)!=null&&d.saml?(e.openBlock(),e.createElementBlock("a",{key:2,onClick:t[3]||(t[3]=f=>r.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[Wn,i.samlLoad?(e.openBlock(),e.createElementBlock("span",Yn)):(e.openBlock(),e.createElementBlock("span",Xn,e.toDisplayString(a.ssoLang[a.appLang].sign_in_with)+" SAML",1))])):e.createCommentVNode("",!0)],34)}const ne=k(Rn,[["render",Zn],["__scopeId","data-v-33bfb54b"]]),Jn={name:"LinkIcon",mixins:[m],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.appLang!=="en"&&this.data.text?this.ssoLang[this.appLang]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},ei=["src","alt"],ai=["src","alt"],ti=["src","alt"],ni=["src","alt"];function ii(a,t,n,o,i,r){var l,s;return e.openBlock(),e.createElementBlock("a",{class:e.normalizeClass(["disable-select",n.linkStyle+(n.disabled?" opacity-50":"")]),style:e.normalizeStyle((n.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[e.createElementVNode("span",{class:e.normalizeClass({"user-link-img":!0,"pulse pulse-border":n.pulse,"link-drag":n.editing}),style:e.normalizeStyle({...(l=n.customLinkStyle)==null?void 0:l.linkIcon})},[!n.data.custom_icon&&n.data.type!=="customlink"?(e.openBlock(),e.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+n.data.type+".png",class:"responsive-image",alt:n.data.text,onLoad:t[0]||(t[0]=d=>a.$emit("loaded")),onError:t[1]||(t[1]=d=>a.$emit("loaded"))},null,40,ei)):!n.data.custom_icon&&n.data.type==="customlink"&&n.linkAdding?(e.openBlock(),e.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:n.data.text,onLoad:t[2]||(t[2]=d=>a.$emit("loaded")),onError:t[3]||(t[3]=d=>a.$emit("loaded"))},null,40,ai)):!n.data.custom_icon&&n.data.type==="customlink"&&!n.linkAdding?(e.openBlock(),e.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:n.data.text,onLoad:t[4]||(t[4]=d=>a.$emit("loaded")),onError:t[5]||(t[5]=d=>a.$emit("loaded"))},null,40,ti)):(e.openBlock(),e.createElementBlock("img",{key:3,src:n.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:n.data.text,onLoad:t[6]||(t[6]=d=>a.$emit("loaded")),onError:t[7]||(t[7]=d=>a.$emit("loaded"))},null,40,ni))],6),e.createElementVNode("span",{class:"link-text link-drag color-black",style:e.normalizeStyle({color:(s=n.customLinkStyle)==null?void 0:s.color})},e.toDisplayString(r.linkText),5)],6)}const oi=k(Jn,[["render",ii]]),ri={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},si={name:"Language",mixins:[m],components:{LinkIcon:oi},data(){return{toggle:!1}},async mounted(){c.$on("toggleLanguageModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1});let a=this.isNative?await E.Device.getLanguageCode():v.getFirstBrowserLanguage();a&&ri.SUPPORTED_LANGUAGES.includes(a)&&this.updateLanguage(a)},beforeDestroy(){c._events.toggleLanguageModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(a){c.$emit("updateLang",a),c.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},ci=[(a=>(e.pushScopeId("data-v-e5a7ac07"),a=a(),e.popScopeId(),a))(()=>e.createElementVNode("i",{class:"font-17 fa color-black"},[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],li={class:"bold center-text color-black small-bottom"};function di(a,t,n,o,i,r){const l=e.resolveComponent("LinkIcon");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[e.createElementVNode("a",{onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},ci),e.createElementVNode("h3",li,e.toDisplayString(a.ssoLang[a.appLang].app_language),1),e.createVNode(l,{onClick:t[1]||(t[1]=s=>r.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:a.ssoLang[this.appLang].english},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[2]||(t[2]=s=>r.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:a.ssoLang[this.appLang].spanish},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[3]||(t[3]=s=>r.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:a.ssoLang[this.appLang].german},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[4]||(t[4]=s=>r.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:a.ssoLang[this.appLang].italian},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[5]||(t[5]=s=>r.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:a.ssoLang[this.appLang].french},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[6]||(t[6]=s=>r.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:a.ssoLang[this.appLang].korean},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[7]||(t[7]=s=>r.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:a.ssoLang[this.appLang].serbian},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"]),e.createVNode(l,{onClick:t[8]||(t[8]=s=>r.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:a.ssoLang[this.appLang].turkish},editing:!1,class:e.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const ie=k(si,[["render",di],["__scopeId","data-v-e5a7ac07"]]);var pi={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _i={id:"ssoapp"},ui={key:0,href:"/",class:"header-logo"},mi=[e.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgNsIvKgRyXhBBCyqCzyo8yeO7BKgOp0Fdna5U/q9wmzvWLEEIIaQr7q2ySwXNxV38EFfrKwOXrQXERfNqq/FWcBTkhhBCyJg7PeDHRiQrdgWP2+8VZk5dAhLUbxY9x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TkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],gi={class:"lang-icon"},hi={class:"snackbar snackbar-boxed",id:"snackbar"},fi={class:"snack-body",id:"errorSnack"},ki={id:"errorMessage"},bi=[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],yi={class:"snack-body",id:"successSnack"},vi={id:"successMessage"},wi=[e.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],oe=Object.assign({name:"TapniAuth",mixins:[m],data(){return{initialized:!1}},components:{Language:ie,SSOPick:ne,SSO:te,ModalOverlay:ae,AuthCallback:ee,AuthReset:J,AuthVerify:Z,AuthRegister:Y,AuthLogin:X,AuthWelcome:Q},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},async mounted(){this.applyBgStyle(),c.$on("ssoEvent",this.ssoOutgoingEvent),c.$on("ssoLogout",a=>this.logout(a)),c.$on("getLoggedInAccounts",a=>this.getLoggedInAccounts(a)),c.$on("refreshTokenAction",a=>this.refreshTokenAction(a))},methods:{async init(){if(this.storage&&this.storage.token&&this.storage.refreshTokens){this.setToken(this.storage.token);const a=this.getRefreshTokens();this.setRefreshToken(a[0]),this.getLoggedInAccounts()}this.initialized=!0,this.$emit("ssoLibraryReady")},ssoOutgoingEvent(a){this.$emit("ssoEvent",a)},ssoIncomingEvent(a){c.$emit(a.name,a.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){c.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(a){return document.addEventListener("DOMContentLoaded",function(){const t=document.createElement("script");t.src=`https://www.google.com/recaptcha/api.js?render=${pi.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(t)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",_i,[t.display==="redirect"?(e.openBlock(),e.createElementBlock("a",ui,mi)):e.createCommentVNode("",!0),t.display==="redirect"?(e.openBlock(),e.createElementBlock("a",{key:1,onClick:n[0]||(n[0]=(...o)=>t.toggleLanguageModal&&t.toggleLanguageModal(...o)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px"}},[e.createElementVNode("span",gi,e.toDisplayString(t.appLang.toUpperCase()),1)])):e.createCommentVNode("",!0),e.createVNode(ae),e.createVNode(ie),e.createVNode(te),e.createVNode(ne),t.initialized&&t.renderView==="AuthWelcome"?(e.openBlock(),e.createBlock(Q,{key:2})):t.initialized&&t.renderView==="AuthLogin"?(e.openBlock(),e.createBlock(X,{key:3,isModal:a.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthRegister"?(e.openBlock(),e.createBlock(Y,{key:4,isModal:a.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthVerify"?(e.openBlock(),e.createBlock(Z,{key:5,isModal:a.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthReset"?(e.openBlock(),e.createBlock(J,{key:6})):t.initialized&&t.renderView==="AuthCallback"?(e.openBlock(),e.createBlock(ee,{key:7})):(e.openBlock(),e.createBlock(e.unref(z.RouterView),{key:8})),e.createElementVNode("div",hi,[e.createElementVNode("p",fi,[e.createElementVNode("span",ki,e.toDisplayString(t.ssoLang[t.appLang].error),1),e.createElementVNode("a",{onClick:n[1]||(n[1]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},bi)]),e.createElementVNode("p",yi,[e.createElementVNode("span",vi,e.toDisplayString(t.ssoLang[t.appLang].success),1),e.createElementVNode("a",{onClick:n[2]||(n[2]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},wi)])])]))}});return{TapniAuth:oe,install:(a,t)=>{a.component("TapniAuth",oe),a.config.globalProperties.$storage===void 0&&a.use(_e,t)}}});