@tapni/auth 0.0.54 β 0.0.56
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.
- package/dist/TapniAuth.es.js +189 -197
- package/dist/TapniAuth.umd.js +3 -3
- package/package.json +1 -1
- package/src/install.js +3 -7
- package/src/mixins/auth.mixin.js +11 -15
- package/src/services/Api.js +58 -50
- package/src/services/AuthService.js +22 -20
- package/src/services/CompanyService.js +5 -4
- package/src/services/DeviceService.js +4 -3
- package/src/services/UserService.js +12 -11
- package/src/views/Callback.vue +0 -1
- package/.vscode/extensions.json +0 -3
package/dist/TapniAuth.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(t,W){typeof exports=="object"&&typeof module<"u"?module.exports=W(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"],W):(t=typeof globalThis<"u"?globalThis:t||self,t.TapniAuth=W(t.Vue,t.vueRouter,t.to,t.axios,t.jwtDecode,t.device,t.core,t.capacitorGoogleAuth,t.facebookLogin,t.appleSignIn,t.capacitorPluginMsauth,t.browser,t.QRCodeStyling,t.sanitizeUrl))})(this,function(t,W,w,se,ke,Z,Y,ye,ot,rt,st,J,ct,lt){"use strict";const dt="0.0.
|
|
1
|
+
(function(t,W){typeof exports=="object"&&typeof module<"u"?module.exports=W(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"],W):(t=typeof globalThis<"u"?globalThis:t||self,t.TapniAuth=W(t.Vue,t.vueRouter,t.to,t.axios,t.jwtDecode,t.device,t.core,t.capacitorGoogleAuth,t.facebookLogin,t.appleSignIn,t.capacitorPluginMsauth,t.browser,t.QRCodeStyling,t.sanitizeUrl))})(this,function(t,W,w,se,ke,Z,Y,ye,ot,rt,st,J,ct,lt){"use strict";const dt="0.0.51",b=(e,a=!1)=>{const s=dt;let u="https://api.tapni.co/v1/";location.hostname.includes("dev.")&&(u="https://api-dev.tapni.co/v1/");let l=se.create({baseURL:u,headers:{...e?{Authorization:`Bearer ${e.token}`}:{},"X-Client-Name":"sso-"+s.platform,"X-Client-Version":s.version}});return l.interceptors.request.use(async function(d){if(["post","put","delete"].includes(d.method.toLowerCase())?d.data={...d.data,...e?{lang:e.appLanguage,realm:e.realm||"app"}:{}}:d.method.toLowerCase()==="get"&&(d.params={...d.params,...e?{lang:e.appLanguage,realm:e.realm||"app"}:{}}),e&&e.token&&!a){const h=ke.jwtDecode(e.token);if(h.exp-30<Math.floor(Date.now()/1e3))return B.methods.refreshTokenAction(h).then(()=>(d.headers={...d.headers,Authorization:`Bearer ${e.token}`},d))}return d}),l},K={getMe(){return b(storage).get("/users/me")},getByUsername(e,a){let s=document.referrer||"",u=e.utmParams||{};return e.dontTap&&(u.dontTap=!0),b(a).get(`/users/${e.username}`,{params:u,headers:{"X-Referer":s}})},getByNumber(e,a){let s=document.referrer||"",u=e.utmParams||{};return e.dontTap&&(u.dontTap=!0),b(a).get(`/users/tag/${e.serial}`,{params:u,headers:{"X-Referer":s}})},save(e,a){return b(a).put("/users",e)},newPassword(e,a){return b(a).put("/users/new-password",e)},connect(e,a){return b(a).post("/users/connect",e)},eventLog(e,a){return b(a).post("/users/log",e)},deleteAccount(e,a){return b(a).post("/users/profile/delete",e)},registerDevice(e,a){return b(a).post("/users/device/register",e)},addFcmToken(e,a){return b(a).post("/users/device/fcm",e)},loginUsingQR(e,a){return b(a).post("/users/qr/login",e)}},be={registerDevice(e,a){return b(a).post("/devices/add",e)},addFcmToken(e,a){return b(a).post("/devices/fcm/add",e)}};let P;Z.Device.getId().then(e=>P=e.uuid);const I={register(e,a){return e.device_id=P,b(a).post("/users/register",e)},login(e,a){return e.device_id=P,b(a).post("/users/login",e)},logout(e,a){return e.device_id=P,b(a).post("/users/logout",e)},refreshToken(e,a){return b(a,!0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`)},getLoggedInAccounts(e,a){return b(a).post("/users/tokens",e)},sendResetEmail(e,a){return e.device_id=P,b(a).post("/users/reset",e)},changePassword(e,a){return b(a).put("/users/password",e,{headers:{Authorization:"Bearer "+e.token}})},verify(e,a){return b(a).get("/users/verify?c="+e.code+"&e="+e.email+"&captchatoken="+e.captchaToken)},googleUrl(e){return b(e).get("/users/google/url")},google(e,a){return e.device_id=P,b(a).post("/users/google",e)},facebook(e,a){return e.device_id=P,b(a).post("/users/facebook",e)},googleSDK(e,a){return e.device_id=P,b(a).post("/users/google/sdk",e)},facebookSDK(e,a){return e.device_id=P,b(a).post("/users/facebook/sdk",e)},appleSDK(e,a){return e.device_id=P,b(a).post("/users/apple/sdk",e)},microsoftSDK(e,a){return e.device_id=P,b(a).post("/users/microsoft/sdk",e)},oktaSDK(e,a){return e.device_id=P,b(a).post("/users/okta/sdk",e)},samlLoginUrl(e,a){return b(a).post("/saml/url",e)},exchangeAuthCode(e,a){return b(a).post("/users/auth-code",e)}},ce={getBySSOEmail(e,a){return b(a).get(`/company/sso/${e}`)},acceptCompanyInvitation(e,a){return b(a).get(`/users/invitation?ic=${e}`)},qrCodePooling(e,a){return b(a).post("/company/login/qr",e)}},ee=t.reactive(new Map),k={$on(e,a){let s=ee.get(e);s||(s=new Set,ee.set(e,s)),s.add(a)},$emit(e,...a){const s=ee.get(e);if(s)for(const u of s)u(...a)},$off(e,a){const s=ee.get(e);s&&s.delete(a)}};t.readonly(k);const we={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>
|
|
@@ -99,9 +99,9 @@ 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.com</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 λ‘κ·ΈμΈμ μ¬μ©νμ§ μμ΅λλ€. κ΄λ¦¬μμκ² λ¬Έμνμμμ€."}},ut={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Y.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Y.Capacitor.getPlatform()==="ios"},isNative(){return Y.Capacitor.isNativePlatform()}},methods:{errorHandler(e){return e&&e.response&&e.response.data&&e.response.data.error&&((e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)),e},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.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(e){return e<10?"":e<=50?"π₯":e<=100?"π₯":e<=300?"π":e>300?"π":""},isEmpty(e){if(!e)return!0;for(let a in e)if(e.hasOwnProperty(a))return!1;return JSON.stringify(e)===JSON.stringify({})},copy(e=""){const a=document.createElement("textarea");a.value=e,a.setAttribute("readonly",""),a.style.position="absolute",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(e){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:e})}catch(a){return console.log(a),null}}}};var _t={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 A={mixins:[ut],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:we.state,de:ve.state,es:Ee.state,fr:ze.state,it:Se.state,sr:Le.state,tr:Ce.state,cn:pt.state,kr:Te.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:{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),k.$on("updateLang",this.updateLang),_t.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{apiRootGet(){return this.API_ROOT},errorHandler(e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")return this.logout();!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)}return e},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.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(e){const[a,s]=await w(K.eventLog(e,this.$storage));return a?this.errorHandler(a):s},async maintenance(){const[e,a]=await w(se.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(a){let s=a.data;typeof a.data=="string"&&(s=JSON.parse(a.data)),s.api&&s.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+s.api.msg)}},async getUser(e){if(e){let a,s;if(e.username?[a,s]=await w(K.getByUsername(e,this.$storage)):e.serial&&([a,s]=await w(K.getByNumber(e,this.$storage))),a)return this.errorHandler(a);if(s.data.success){if(!s.data.user&&s.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+s.data.showDemoProfile)}!s.data.user&&e.login&&this.logout(),this.registerLang(s.data.user?s.data.user.ssoLang:"en"),this.setUser(s.data.user)}}},async loginSetup(e){var a,s;e.data.refreshToken&&this.setRefreshToken(e.data.refreshToken),e.data.token&&this.setToken(e.data.token),((s=(a=e.data)==null?void 0:a.data)==null?void 0:s.ssoLang)!==this.appLanguage&&k.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLanguage,username:e.data.data.username}}),this.setLoggedInUserId(e.data.data.id),this.$storage.UserId=e.data.data.id,this.$storage.username=e.data.data.username,e.isModal===!0&&this.setLoggedInAccounts([{id:e.data.data.id,username:e.data.data.username,refreshToken:e.data.refreshToken,photo:e.data.data.photo}])},async refreshTokenAction(e){const[a,s]=await w(I.refreshToken({id:e.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(a&&a.response&&a.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();s&&s.data?this.setToken(s.data.token):console.error("Invalid response setToken")},async login(e){const[a,s]=await w(I.login(e,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return this.display==="npm"&&(this.loginSetup({...s,isModal:e.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...s,isModal:e.isModal}),!0},loginSuccess(e){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(a=>this.redirect_uri.startsWith(a)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+e.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(a=>{var s;(s=window.parent)==null||s.postMessage({code:e.data.auth_code,state:this.$route.query.state},a)}):this.display==="npm"&&(k.$emit("ssoEvent",{name:"setLoading",data:!0}),k.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:e.data.data.username}}),e.isModal&&(k.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+e.data.data.username+"#edit"))},async register(e){const[a,s]=await w(I.register(e,this.$storage));return a?this.errorHandler(a):s},async verify(e){const[a,s]=await w(I.verify(e,this.$storage));return a?this.errorHandler(a):s},async reset(e){const[a,s]=await w(I.sendResetEmail(e,this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(e){console.log({data:e});const[a,s]=await w(I.exchangeAuthCode(e,this.$storage));if(a)return console.log({err:a}),this.errorHandler(a);console.log(s),await this.loginSetup(s),await this.getLoggedInAccounts(),this.loginSuccess(s)},async changePassword(e){const[a,s]=await w(I.changePassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async newPassword(e){const[a,s]=await w(K.newPassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async deleteAccount(e){const[a,s]=await w(K.deleteAccount(e,this.$storage));return a?this.errorHandler(a):s.data.success},async registerDevice(){const e=await Z.Device.getId(),a=await Z.Device.getInfo();let s={device_id:e.uuid,platform:a.platform,device_info:{model:a.model,manufacturer:a.manufacturer,operatingSystem:a.operatingSystem,osVersion:a.osVersion,isVirtual:a.isVirtual,webViewVersion:a.webViewVersion}};const[u,l]=await w(be.registerDevice(s,this.$storage));return u?this.errorHandler(u):l},async addFcmToken(e){const[a,s]=await w(be.addFcmToken(e,this.$storage));return a?this.errorHandler(a):s},async acceptCompanyInvitation(e){const[a,s]=await w(ce.acceptCompanyInvitation(e,this.$storage));return a?this.errorHandler(a):s},async logout(e=!0){e&&I.logout({token:this.refreshToken},this.$storage),this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId="",this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(a=>{this.loggedInAccounts[a].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[a].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[a].id),this.$storage.username=a,this.$storage.UserId=this.loggedInAccounts[a].id,this.getLoggedInAccounts(),this.$router.push("/"+a)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(e){const[a,s]=await w(ce.getBySSOEmail(e.email,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return s.data},async getLoggedInAccounts(){const e=this.getRefreshTokens(),[a,s]=await w(I.getLoggedInAccounts({refreshTokens:e},this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.setLoggedInAccounts(s.data.accounts)},async loginUsingQR(e){const[a,s]=await w(K.loginUsingQR(e,this.$storage));return a?this.errorHandler(a):s.data.success},setLoggedInAccounts(e){this.loggedInAccounts={},e.forEach(a=>{this.loggedInAccounts[a.username]=a}),k.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId(e){this.loggedInUserId=e},setUser(e){this.ssoUser=e,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=e.ssoLang)},getRefreshTokens(){return this.$storage.refreshTokens.split(",")},setRefreshToken(e){let a=this.getRefreshTokens();e&&!a.includes(e)?a.unshift(e):a=a.filter(s=>s!==this.refreshToken),a.length>=1?this.refreshToken=a[0]:this.refreshToken=e,this.$storage.refreshTokens=a.join(","),k.$emit("ssoEvent",{name:"setRefreshToken",data:e})},setToken(e){this.$storage.token=e,this.token=e,k.$emit("ssoEvent",{name:"setToken",data:e})},setUserID(e){this.$storage.UserId=e},updateLang(e){this.appLanguage=e}},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}}},V=(e,a)=>{const s=e.__vccOpts||e;for(const[u,l]of a)s[u]=l;return s},mt={name:"AuthWelcome",mixins:[A],data(){return{loading:!0}},async mounted(){let e=document.getElementById("tapniVideo");e.addEventListener("canplay",function(){document.body.contains(e)&&e.play().catch(a=>{console.log("Play was interrupted:",a)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):k.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),k.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},Ie=e=>(t.pushScopeId("data-v-c5cb659c"),e=e(),t.popScopeId(),e),gt={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ht=["autoplay"],ft=[Ie(()=>t.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],kt={class:"bold full-top no-bottom center-text"},yt={class:"full-bottom half-top center-text color-black font-16"},bt={class:"page-login-links center-text"},wt=Ie(()=>t.createElementVNode("div",{class:"clear"},null,-1)),vt={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Et=[t.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a>',3)];function zt(e,a,s,u,l,d){const g=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("div",gt,[t.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:e.isNative},ft,8,ht),t.createElementVNode("h1",kt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome),1),t.createElementVNode("p",yt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome_p1),1),t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createVNode(g,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].create_account),1)]),_:1}),t.createElementVNode("div",bt,[t.createVNode(g,{to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].already_registered)+"? ",1),t.createElementVNode("b",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wt]),this.isNative?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",vt,Et))])}const Ae=V(mt,[["render",zt],["__scopeId","data-v-c5cb659c"]]),Pe={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.google_login)&&!this.isModal)??!0}},mounted(){ye.GoogleAuth.initialize()},methods:{async googleLogin(){var s;this.googleLoad=!0;let[e,a]=await w(ye.GoogleAuth.signIn());if(e)return this.googleLoad=!1;if(this.referral&&(a.ref=this.referral),a.authentication&&(a.authentication.accessToken||a.authentication.idToken)){this.referral&&(a.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.googleSDK(a,this.$storage));if(u)return this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(e,a,s){var u,l=e.getElementsByTagName(a)[0];e.getElementById(s)||(u=e.createElement(a),u.id=s,u.src="https://connect.facebook.net/en_US/sdk.js",l.parentNode.insertBefore(u,l))}(document,"script","facebook-jssdk");const Be={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 u;this.facebookLoad=!0;const e=["email"],[a,s]=await w(ot.FacebookLogin.login({permissions:e}));if(a)return this.facebookLoad=!1;if(this.referral&&(s.ref=this.referral),this.display==="popup"&&(s.response_type="code"),s&&s.accessToken){const[l,d]=await w(I.facebookSDK(s,this.$storage));if(l)return this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(l);if(d.data.success){if(this.display==="popup")return(u=window.parent)==null?void 0:u.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.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}},xe={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var s;this.appleLoad=!0;const[e,a]=await w(rt.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(e)return this.appleLoad=!1;if(a.response.tokenData=ke.jwtDecode(a.response.identityToken),a&&a.response&&a.response.identityToken){this.referral&&(a.response.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.appleSDK(a.response,this.$storage));if(u)return this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var St={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 te={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(e,a={}){var l,d,g;e==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(a).length||(a=((d=(l=this.ssoCompany.sso)==null?void 0:l.azure)==null?void 0:d.sso)||{});const[s,u]=await w(st.MsAuthPlugin.login({clientId:e==="sso"?a.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:e==="sso"?a.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:St.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(s)return console.log("Error: "+JSON.stringify(s)),this.microsoftLoad=!1;if(this.referral&&(u.ref=this.referral),this.display==="popup"&&(u.response_type="code"),u&&(u.accessToken||u.idToken)){const[m,f]=await w(I.microsoftSDK(u,this.$storage));if(m)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(m);if(f.data.success){if(this.display==="popup")return(g=window.parent)==null?void 0:g.postMessage({code:f.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(f),this.getLoggedInAccounts(),this.loginSuccess({...f,isModal:!1}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){k.$emit("toggleSSOModal")}}},$={getFirstBrowserLanguage(){let e=window.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"],s,u;if(Array.isArray(e.languages)){for(s=0;s<e.languages.length;s++)if(u=e.languages[s],u&&u.length)return u.slice(0,2)}for(s=0;s<a.length;s++)if(u=e[a[s]],u&&u.length)return u.slice(0,2);return null},compareLangKeys(){const e=Object.keys(we.default.state),a=Object.keys(ve.default.state),s=Object.keys(Ee.default.state),u=Object.keys(Te.default.state),l=Object.keys(Se.default.state),d=Object.keys(ze.default.state),g=Object.keys(Le.default.state),m=Object.keys(Ce.default.state);console.log("In en but not in de",e.filter(f=>!a.includes(f))),console.log("In de but not in en",a.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in es",e.filter(f=>!s.includes(f))),console.log("In es but not in en",s.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in kr",e.filter(f=>!u.includes(f))),console.log("In kr but not in en",u.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in it",e.filter(f=>!l.includes(f))),console.log("In it but not in en",l.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in fr",e.filter(f=>!d.includes(f))),console.log("In fr but not in en",d.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in sr",e.filter(f=>!g.includes(f))),console.log("In sr but not in en",g.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in tr",e.filter(f=>!m.includes(f))),console.log("In tr but not in en",m.filter(f=>!e.includes(f))),console.log()},base64ImageToBlob(e){const a=e.split(";base64,"),s=a[0].split(":")[1],u=window.atob(a[1]),l=new Uint8Array(u.length);for(let d=0;d<u.length;++d)l[d]=u.charCodeAt(d);return new Blob([l],{type:s})},blobToBase64(e){const a=new FileReader;return a.readAsDataURL(e),new Promise(s=>{a.onloadend=()=>{s(a.result)}})},base64toFile(e,a){for(var s=e.split(","),u=s[0].match(/:(.*?);/)[1],l=atob(s[1]),d=l.length,g=new Uint8Array(d);d--;)g[d]=l.charCodeAt(d);return new File([g],a,{type:u})},fileToBase64(e){new Promise((a,s)=>{const u=new FileReader;u.readAsDataURL(e),u.onload=()=>a(u.result),u.onerror=l=>s(l)})},getUTMParams(e,a){let s={};return e.utm_source&&(s.utm_source=e.utm_source),e.utm_medium&&(s.utm_medium=e.utm_medium),e.utm_campaign&&(s.utm_campaign=e.utm_campaign),e.utm_term&&(s.utm_term=e.utm_term),e.utm_content&&(s.utm_content=e.utm_content),s},cropCardScan(e,a){const s=new window.Image,u=document.createElement("canvas"),l=u.getContext("2d");s.src="data:image/jpeg;base64,"+e,s.onload=()=>{const d=s.width,g=s.width/1.65,m=0,f=s.height/2-g/2,v=d,p=g;u.width=v,u.height=p,l.drawImage(s,m,f,d,g,0,0,v,p);const C=u.toDataURL();return a(C),C}},generateRandomString(e){let a=new Uint32Array(e);return window.crypto.getRandomValues(a),Array.from(a,s=>("0"+s.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(e){const s=new TextEncoder().encode(e),u=await window.crypto.subtle.digest("SHA-256",s);return btoa(String.fromCharCode.apply(null,new Uint8Array(u))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(e,a,s){let l=new TextEncoder().encode(s,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:a},e,l)},async decryptAES(e,a,s){try{const u=f=>Uint8Array.from(atob(f),v=>v.charCodeAt(0));s=s.replace(/ /g,"+");const l=new TextEncoder,d=new TextDecoder;e=l.encode(e),a=l.encode(a),s=u(s,storage);const g=await window.crypto.subtle.importKey("raw",e,"AES-CBC",!0,["encrypt","decrypt"]);let m=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:a},g,s);return m=d.decode(m),m=m.replace(/ /g,"+"),m=atob(m),m}catch(u){console.log(u)}}},ne={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(e){var l,d;let[a,s]=await w(se.post(e.domain+"/v1/token",new URLSearchParams({code:e.code,client_id:e.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(a)return this.errorHandler(a);localStorage.removeItem("pkce_code_verifier");let u={accessToken:(l=s.data)==null?void 0:l.access_token,domain:e.domain};if(this.display==="popup"&&(u.response_type="code"),[a,s]=await w(I.oktaSDK(u,this.$storage)),a)return this.oktaLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(a);if(s.data.success){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:s.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(s),this.getLoggedInAccounts(),this.$router.push("/"+s.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(e){const a=Y.Capacitor.getPlatform()||"web";let s=btoa("domain="+e.domain+"&client_id="+e.clientID+"&platform="+a+"&rand="+$.generateRandomString(28)),u=$.generateRandomString(28);localStorage.setItem("pkce_code_verifier",u);let l=await $.pkceChallengeFromVerifier(u),d=e.domain+"/v1/authorize",g;this.isNative?g="tapni://t.link/callback/okta":g=location.origin+"/callback/okta";let m=d+"?response_type=code&client_id="+encodeURIComponent(e.clientID)+"&state="+encodeURIComponent(s)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(g)+"&code_challenge="+encodeURIComponent(l)+"&code_challenge_method=S256",f=this,v;window.addEventListener("message",async p=>{if(!this.allowedOrigins.includes(p.origin))return console.log("Origin is not allowed!");p.data.type==="okta"&&(v=p.data.code,await f.exchangeCode({domain:e.domain,code:v,clientID:e.clientID}))},{once:!0}),this.isNative?await J.Browser.open({url:m,presentationStyle:"popover"}):window.open(m,"popup","width=600,height=600")},async handleOktaRedirect(){let e=this.$route.query.code,a,s,u,l,d={type:"okta"};if(e&&(d.code=e),this.$route.query.state){a=this.$route.query.state,a=atob(a);const g=new URLSearchParams(a);s=g.get("client_id"),u=g.get("domain"),l=g.get("platform")}window.opener?(window.opener.postMessage(d,location.origin),window.close()):(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),e&&s&&u&&await this.exchangeCode({code:e,clientID:s,domain:u,platform:l}),localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1}))}}};var je={},ae={};ae.byteLength=Tt,ae.toByteArray=At,ae.fromByteArray=xt;for(var M=[],x=[],Lt=typeof Uint8Array<"u"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=0,Ct=le.length;H<Ct;++H)M[H]=le[H],x[le.charCodeAt(H)]=H;x[45]=62,x[95]=63;function Ne(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=e.indexOf("=");s===-1&&(s=a);var u=s===a?0:4-s%4;return[s,u]}function Tt(e){var a=Ne(e),s=a[0],u=a[1];return(s+u)*3/4-u}function It(e,a,s){return(a+s)*3/4-s}function At(e){var a,s=Ne(e),u=s[0],l=s[1],d=new Lt(It(e,u,l)),g=0,m=l>0?u-4:u,f;for(f=0;f<m;f+=4)a=x[e.charCodeAt(f)]<<18|x[e.charCodeAt(f+1)]<<12|x[e.charCodeAt(f+2)]<<6|x[e.charCodeAt(f+3)],d[g++]=a>>16&255,d[g++]=a>>8&255,d[g++]=a&255;return l===2&&(a=x[e.charCodeAt(f)]<<2|x[e.charCodeAt(f+1)]>>4,d[g++]=a&255),l===1&&(a=x[e.charCodeAt(f)]<<10|x[e.charCodeAt(f+1)]<<4|x[e.charCodeAt(f+2)]>>2,d[g++]=a>>8&255,d[g++]=a&255),d}function Pt(e){return M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[e&63]}function Bt(e,a,s){for(var u,l=[],d=a;d<s;d+=3)u=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(e[d+2]&255),l.push(Pt(u));return l.join("")}function xt(e){for(var a,s=e.length,u=s%3,l=[],d=16383,g=0,m=s-u;g<m;g+=d)l.push(Bt(e,g,g+d>m?m:g+d));return u===1?(a=e[s-1],l.push(M[a>>2]+M[a<<4&63]+"==")):u===2&&(a=(e[s-2]<<8)+e[s-1],l.push(M[a>>10]+M[a>>4&63]+M[a<<2&63]+"=")),l.join("")}var de={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */de.read=function(e,a,s,u,l){var d,g,m=l*8-u-1,f=(1<<m)-1,v=f>>1,p=-7,C=s?l-1:0,D=s?-1:1,N=e[a+C];for(C+=D,d=N&(1<<-p)-1,N>>=-p,p+=m;p>0;d=d*256+e[a+C],C+=D,p-=8);for(g=d&(1<<-p)-1,d>>=-p,p+=u;p>0;g=g*256+e[a+C],C+=D,p-=8);if(d===0)d=1-v;else{if(d===f)return g?NaN:(N?-1:1)*(1/0);g=g+Math.pow(2,u),d=d-v}return(N?-1:1)*g*Math.pow(2,d-u)},de.write=function(e,a,s,u,l,d){var g,m,f,v=d*8-l-1,p=(1<<v)-1,C=p>>1,D=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=u?0:d-1,O=u?1:-1,pe=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(m=isNaN(a)?1:0,g=p):(g=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-g))<1&&(g--,f*=2),g+C>=1?a+=D/f:a+=D*Math.pow(2,1-C),a*f>=2&&(g++,f/=2),g+C>=p?(m=0,g=p):g+C>=1?(m=(a*f-1)*Math.pow(2,l),g=g+C):(m=a*Math.pow(2,C-1)*Math.pow(2,l),g=0));l>=8;e[s+N]=m&255,N+=O,m/=256,l-=8);for(g=g<<l|m,v+=l;v>0;e[s+N]=g&255,N+=O,g/=256,v-=8);e[s+N-O]|=pe*128};/*!
|
|
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.com</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 λ‘κ·ΈμΈμ μ¬μ©νμ§ μμ΅λλ€. κ΄λ¦¬μμκ² λ¬Έμνμμμ€."}},ut={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Y.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Y.Capacitor.getPlatform()==="ios"},isNative(){return Y.Capacitor.isNativePlatform()}},methods:{errorHandler(e){return e&&e.response&&e.response.data&&e.response.data.error&&((e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)),e},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.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(e){return e<10?"":e<=50?"π₯":e<=100?"π₯":e<=300?"π":e>300?"π":""},isEmpty(e){if(!e)return!0;for(let a in e)if(e.hasOwnProperty(a))return!1;return JSON.stringify(e)===JSON.stringify({})},copy(e=""){const a=document.createElement("textarea");a.value=e,a.setAttribute("readonly",""),a.style.position="absolute",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(e){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:e})}catch(a){return console.log(a),null}}}};var _t={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 B={mixins:[ut],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:we.state,de:ve.state,es:Ee.state,fr:ze.state,it:Se.state,sr:Le.state,tr:Ce.state,cn:pt.state,kr:Te.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:{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),k.$on("updateLang",this.updateLang),_t.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")return this.logout();!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)}return e},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.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(e){const[a,s]=await w(K.eventLog(e,this.$storage));return a?this.errorHandler(a):s},async maintenance(){const[e,a]=await w(se.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(a){let s=a.data;typeof a.data=="string"&&(s=JSON.parse(a.data)),s.api&&s.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+s.api.msg)}},async getUser(e){if(e){let a,s;if(e.username?[a,s]=await w(K.getByUsername(e,this.$storage)):e.serial&&([a,s]=await w(K.getByNumber(e,this.$storage))),a)return this.errorHandler(a);if(s.data.success){if(!s.data.user&&s.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+s.data.showDemoProfile)}!s.data.user&&e.login&&this.logout(),this.registerLang(s.data.user?s.data.user.ssoLang:"en"),this.setUser(s.data.user)}}},async loginSetup(e){var a,s;e.data.refreshToken&&this.setRefreshToken(e.data.refreshToken),e.data.token&&this.setToken(e.data.token),((s=(a=e.data)==null?void 0:a.data)==null?void 0:s.ssoLang)!==this.appLanguage&&k.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLanguage,username:e.data.data.username}}),this.setLoggedInUserId(e.data.data.id),this.$storage.UserId=e.data.data.id,this.$storage.username=e.data.data.username,e.isModal===!0&&this.setLoggedInAccounts([{id:e.data.data.id,username:e.data.data.username,refreshToken:e.data.refreshToken,photo:e.data.data.photo}])},async refreshTokenAction(e){const[a,s]=await w(I.refreshToken({id:e.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(a&&a.response&&a.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();s&&s.data?this.setToken(s.data.token):console.error("Invalid response setToken")},async login(e){const[a,s]=await w(I.login(e,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return this.display==="npm"&&(this.loginSetup({...s,isModal:e.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...s,isModal:e.isModal}),!0},loginSuccess(e){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(a=>this.redirect_uri.startsWith(a)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+e.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(a=>{var s;(s=window.parent)==null||s.postMessage({code:e.data.auth_code,state:this.$route.query.state},a)}):this.display==="npm"&&(k.$emit("ssoEvent",{name:"setLoading",data:!0}),k.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:e.data.data.username}}),e.isModal&&(k.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+e.data.data.username+"#edit"))},async register(e){const[a,s]=await w(I.register(e,this.$storage));return a?this.errorHandler(a):s},async verify(e){const[a,s]=await w(I.verify(e,this.$storage));return a?this.errorHandler(a):s},async reset(e){const[a,s]=await w(I.sendResetEmail(e,this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(e){console.log({data:e});const[a,s]=await w(I.exchangeAuthCode(e,this.$storage));if(a)return console.log({err:a}),this.errorHandler(a);console.log(s),await this.loginSetup(s),await this.getLoggedInAccounts(),this.loginSuccess(s)},async changePassword(e){const[a,s]=await w(I.changePassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async newPassword(e){const[a,s]=await w(K.newPassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async deleteAccount(e){const[a,s]=await w(K.deleteAccount(e,this.$storage));return a?this.errorHandler(a):s.data.success},async registerDevice(){const e=await Z.Device.getId(),a=await Z.Device.getInfo();let s={device_id:e.uuid,platform:a.platform,device_info:{model:a.model,manufacturer:a.manufacturer,operatingSystem:a.operatingSystem,osVersion:a.osVersion,isVirtual:a.isVirtual,webViewVersion:a.webViewVersion}};const[u,l]=await w(be.registerDevice(s,this.$storage));return u?this.errorHandler(u):l},async addFcmToken(e){const[a,s]=await w(be.addFcmToken(e,this.$storage));return a?this.errorHandler(a):s},async acceptCompanyInvitation(e){const[a,s]=await w(ce.acceptCompanyInvitation(e,this.$storage));return a?this.errorHandler(a):s},async logout(e=!0){e&&I.logout({token:this.refreshToken},this.$storage),this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId="",this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(a=>{this.loggedInAccounts[a].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[a].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[a].id),this.$storage.username=a,this.$storage.UserId=this.loggedInAccounts[a].id,this.getLoggedInAccounts(),this.$router.push("/"+a)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(e){const[a,s]=await w(ce.getBySSOEmail(e.email,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return s.data},async getLoggedInAccounts(){const e=this.getRefreshTokens(),[a,s]=await w(I.getLoggedInAccounts({refreshTokens:e},this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.setLoggedInAccounts(s.data.accounts)},async loginUsingQR(e){const[a,s]=await w(K.loginUsingQR(e,this.$storage));return a?this.errorHandler(a):s.data.success},setLoggedInAccounts(e){this.loggedInAccounts={},e.forEach(a=>{this.loggedInAccounts[a.username]=a}),k.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId(e){this.loggedInUserId=e},setUser(e){this.ssoUser=e,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=e.ssoLang)},getRefreshTokens(){return this.$storage.refreshTokens.split(",")},setRefreshToken(e){let a=this.getRefreshTokens();e&&!a.includes(e)?a.unshift(e):a=a.filter(s=>s!==this.refreshToken),a.length>=1?this.refreshToken=a[0]:this.refreshToken=e,this.$storage.refreshTokens=a.join(","),k.$emit("ssoEvent",{name:"setRefreshToken",data:e})},setToken(e){this.$storage.token=e,this.token=e,k.$emit("ssoEvent",{name:"setToken",data:e})},setUserID(e){this.$storage.UserId=e},updateLang(e){this.appLanguage=e}},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}}},V=(e,a)=>{const s=e.__vccOpts||e;for(const[u,l]of a)s[u]=l;return s},mt={name:"AuthWelcome",mixins:[B],data(){return{loading:!0}},async mounted(){let e=document.getElementById("tapniVideo");e.addEventListener("canplay",function(){document.body.contains(e)&&e.play().catch(a=>{console.log("Play was interrupted:",a)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):k.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),k.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},Ie=e=>(t.pushScopeId("data-v-c5cb659c"),e=e(),t.popScopeId(),e),gt={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ht=["autoplay"],ft=[Ie(()=>t.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],kt={class:"bold full-top no-bottom center-text"},yt={class:"full-bottom half-top center-text color-black font-16"},bt={class:"page-login-links center-text"},wt=Ie(()=>t.createElementVNode("div",{class:"clear"},null,-1)),vt={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Et=[t.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a>',3)];function zt(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("div",gt,[t.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:e.isNative},ft,8,ht),t.createElementVNode("h1",kt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome),1),t.createElementVNode("p",yt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome_p1),1),t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createVNode(h,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].create_account),1)]),_:1}),t.createElementVNode("div",bt,[t.createVNode(h,{to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].already_registered)+"? ",1),t.createElementVNode("b",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wt]),this.isNative?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",vt,Et))])}const Ae=V(mt,[["render",zt],["__scopeId","data-v-c5cb659c"]]),Be={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.google_login)&&!this.isModal)??!0}},mounted(){ye.GoogleAuth.initialize()},methods:{async googleLogin(){var s;this.googleLoad=!0;let[e,a]=await w(ye.GoogleAuth.signIn());if(e)return this.googleLoad=!1;if(this.referral&&(a.ref=this.referral),a.authentication&&(a.authentication.accessToken||a.authentication.idToken)){this.referral&&(a.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.googleSDK(a,this.$storage));if(u)return this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(e,a,s){var u,l=e.getElementsByTagName(a)[0];e.getElementById(s)||(u=e.createElement(a),u.id=s,u.src="https://connect.facebook.net/en_US/sdk.js",l.parentNode.insertBefore(u,l))}(document,"script","facebook-jssdk");const Pe={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 u;this.facebookLoad=!0;const e=["email"],[a,s]=await w(ot.FacebookLogin.login({permissions:e}));if(a)return this.facebookLoad=!1;if(this.referral&&(s.ref=this.referral),this.display==="popup"&&(s.response_type="code"),s&&s.accessToken){const[l,d]=await w(I.facebookSDK(s,this.$storage));if(l)return this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(l);if(d.data.success){if(this.display==="popup")return(u=window.parent)==null?void 0:u.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.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}},xe={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var s;this.appleLoad=!0;const[e,a]=await w(rt.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(e)return this.appleLoad=!1;if(a.response.tokenData=ke.jwtDecode(a.response.identityToken),a&&a.response&&a.response.identityToken){this.referral&&(a.response.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.appleSDK(a.response,this.$storage));if(u)return this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var St={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 te={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(e,a={}){var l,d,h;e==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(a).length||(a=((d=(l=this.ssoCompany.sso)==null?void 0:l.azure)==null?void 0:d.sso)||{});const[s,u]=await w(st.MsAuthPlugin.login({clientId:e==="sso"?a.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:e==="sso"?a.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:St.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(s)return console.log("Error: "+JSON.stringify(s)),this.microsoftLoad=!1;if(this.referral&&(u.ref=this.referral),this.display==="popup"&&(u.response_type="code"),u&&(u.accessToken||u.idToken)){const[m,f]=await w(I.microsoftSDK(u,this.$storage));if(m)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(m);if(f.data.success){if(this.display==="popup")return(h=window.parent)==null?void 0:h.postMessage({code:f.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(f),this.getLoggedInAccounts(),this.loginSuccess({...f,isModal:!1}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){k.$emit("toggleSSOModal")}}},$={getFirstBrowserLanguage(){let e=window.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"],s,u;if(Array.isArray(e.languages)){for(s=0;s<e.languages.length;s++)if(u=e.languages[s],u&&u.length)return u.slice(0,2)}for(s=0;s<a.length;s++)if(u=e[a[s]],u&&u.length)return u.slice(0,2);return null},compareLangKeys(){const e=Object.keys(we.default.state),a=Object.keys(ve.default.state),s=Object.keys(Ee.default.state),u=Object.keys(Te.default.state),l=Object.keys(Se.default.state),d=Object.keys(ze.default.state),h=Object.keys(Le.default.state),m=Object.keys(Ce.default.state);console.log("In en but not in de",e.filter(f=>!a.includes(f))),console.log("In de but not in en",a.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in es",e.filter(f=>!s.includes(f))),console.log("In es but not in en",s.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in kr",e.filter(f=>!u.includes(f))),console.log("In kr but not in en",u.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in it",e.filter(f=>!l.includes(f))),console.log("In it but not in en",l.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in fr",e.filter(f=>!d.includes(f))),console.log("In fr but not in en",d.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in sr",e.filter(f=>!h.includes(f))),console.log("In sr but not in en",h.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in tr",e.filter(f=>!m.includes(f))),console.log("In tr but not in en",m.filter(f=>!e.includes(f))),console.log()},base64ImageToBlob(e){const a=e.split(";base64,"),s=a[0].split(":")[1],u=window.atob(a[1]),l=new Uint8Array(u.length);for(let d=0;d<u.length;++d)l[d]=u.charCodeAt(d);return new Blob([l],{type:s})},blobToBase64(e){const a=new FileReader;return a.readAsDataURL(e),new Promise(s=>{a.onloadend=()=>{s(a.result)}})},base64toFile(e,a){for(var s=e.split(","),u=s[0].match(/:(.*?);/)[1],l=atob(s[1]),d=l.length,h=new Uint8Array(d);d--;)h[d]=l.charCodeAt(d);return new File([h],a,{type:u})},fileToBase64(e){new Promise((a,s)=>{const u=new FileReader;u.readAsDataURL(e),u.onload=()=>a(u.result),u.onerror=l=>s(l)})},getUTMParams(e,a){let s={};return e.utm_source&&(s.utm_source=e.utm_source),e.utm_medium&&(s.utm_medium=e.utm_medium),e.utm_campaign&&(s.utm_campaign=e.utm_campaign),e.utm_term&&(s.utm_term=e.utm_term),e.utm_content&&(s.utm_content=e.utm_content),s},cropCardScan(e,a){const s=new window.Image,u=document.createElement("canvas"),l=u.getContext("2d");s.src="data:image/jpeg;base64,"+e,s.onload=()=>{const d=s.width,h=s.width/1.65,m=0,f=s.height/2-h/2,v=d,p=h;u.width=v,u.height=p,l.drawImage(s,m,f,d,h,0,0,v,p);const C=u.toDataURL();return a(C),C}},generateRandomString(e){let a=new Uint32Array(e);return window.crypto.getRandomValues(a),Array.from(a,s=>("0"+s.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(e){const s=new TextEncoder().encode(e),u=await window.crypto.subtle.digest("SHA-256",s);return btoa(String.fromCharCode.apply(null,new Uint8Array(u))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(e,a,s){let l=new TextEncoder().encode(s,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:a},e,l)},async decryptAES(e,a,s){try{const u=f=>Uint8Array.from(atob(f),v=>v.charCodeAt(0));s=s.replace(/ /g,"+");const l=new TextEncoder,d=new TextDecoder;e=l.encode(e),a=l.encode(a),s=u(s,storage);const h=await window.crypto.subtle.importKey("raw",e,"AES-CBC",!0,["encrypt","decrypt"]);let m=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:a},h,s);return m=d.decode(m),m=m.replace(/ /g,"+"),m=atob(m),m}catch(u){console.log(u)}}},ne={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(e){var l,d;let[a,s]=await w(se.post(e.domain+"/v1/token",new URLSearchParams({code:e.code,client_id:e.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(a)return this.errorHandler(a);localStorage.removeItem("pkce_code_verifier");let u={accessToken:(l=s.data)==null?void 0:l.access_token,domain:e.domain};if(this.display==="popup"&&(u.response_type="code"),[a,s]=await w(I.oktaSDK(u,this.$storage)),a)return this.oktaLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(a);if(s.data.success){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:s.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(s),this.getLoggedInAccounts(),this.$router.push("/"+s.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(e){const a=Y.Capacitor.getPlatform()||"web";let s=btoa("domain="+e.domain+"&client_id="+e.clientID+"&platform="+a+"&rand="+$.generateRandomString(28)),u=$.generateRandomString(28);localStorage.setItem("pkce_code_verifier",u);let l=await $.pkceChallengeFromVerifier(u),d=e.domain+"/v1/authorize",h;this.isNative?h="tapni://t.link/callback/okta":h=location.origin+"/callback/okta";let m=d+"?response_type=code&client_id="+encodeURIComponent(e.clientID)+"&state="+encodeURIComponent(s)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(h)+"&code_challenge="+encodeURIComponent(l)+"&code_challenge_method=S256",f=this,v;window.addEventListener("message",async p=>{if(!this.allowedOrigins.includes(p.origin))return console.log("Origin is not allowed!");p.data.type==="okta"&&(v=p.data.code,await f.exchangeCode({domain:e.domain,code:v,clientID:e.clientID}))},{once:!0}),this.isNative?await J.Browser.open({url:m,presentationStyle:"popover"}):window.open(m,"popup","width=600,height=600")},async handleOktaRedirect(){let e=this.$route.query.code,a,s,u,l,d={type:"okta"};if(e&&(d.code=e),this.$route.query.state){a=this.$route.query.state,a=atob(a);const h=new URLSearchParams(a);s=h.get("client_id"),u=h.get("domain"),l=h.get("platform")}window.opener?(window.opener.postMessage(d,location.origin),window.close()):(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),e&&s&&u&&await this.exchangeCode({code:e,clientID:s,domain:u,platform:l}),localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1}))}}};var je={},ae={};ae.byteLength=Tt,ae.toByteArray=At,ae.fromByteArray=xt;for(var M=[],x=[],Lt=typeof Uint8Array<"u"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=0,Ct=le.length;H<Ct;++H)M[H]=le[H],x[le.charCodeAt(H)]=H;x[45]=62,x[95]=63;function Ne(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=e.indexOf("=");s===-1&&(s=a);var u=s===a?0:4-s%4;return[s,u]}function Tt(e){var a=Ne(e),s=a[0],u=a[1];return(s+u)*3/4-u}function It(e,a,s){return(a+s)*3/4-s}function At(e){var a,s=Ne(e),u=s[0],l=s[1],d=new Lt(It(e,u,l)),h=0,m=l>0?u-4:u,f;for(f=0;f<m;f+=4)a=x[e.charCodeAt(f)]<<18|x[e.charCodeAt(f+1)]<<12|x[e.charCodeAt(f+2)]<<6|x[e.charCodeAt(f+3)],d[h++]=a>>16&255,d[h++]=a>>8&255,d[h++]=a&255;return l===2&&(a=x[e.charCodeAt(f)]<<2|x[e.charCodeAt(f+1)]>>4,d[h++]=a&255),l===1&&(a=x[e.charCodeAt(f)]<<10|x[e.charCodeAt(f+1)]<<4|x[e.charCodeAt(f+2)]>>2,d[h++]=a>>8&255,d[h++]=a&255),d}function Bt(e){return M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[e&63]}function Pt(e,a,s){for(var u,l=[],d=a;d<s;d+=3)u=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(e[d+2]&255),l.push(Bt(u));return l.join("")}function xt(e){for(var a,s=e.length,u=s%3,l=[],d=16383,h=0,m=s-u;h<m;h+=d)l.push(Pt(e,h,h+d>m?m:h+d));return u===1?(a=e[s-1],l.push(M[a>>2]+M[a<<4&63]+"==")):u===2&&(a=(e[s-2]<<8)+e[s-1],l.push(M[a>>10]+M[a>>4&63]+M[a<<2&63]+"=")),l.join("")}var de={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */de.read=function(e,a,s,u,l){var d,h,m=l*8-u-1,f=(1<<m)-1,v=f>>1,p=-7,C=s?l-1:0,D=s?-1:1,N=e[a+C];for(C+=D,d=N&(1<<-p)-1,N>>=-p,p+=m;p>0;d=d*256+e[a+C],C+=D,p-=8);for(h=d&(1<<-p)-1,d>>=-p,p+=u;p>0;h=h*256+e[a+C],C+=D,p-=8);if(d===0)d=1-v;else{if(d===f)return h?NaN:(N?-1:1)*(1/0);h=h+Math.pow(2,u),d=d-v}return(N?-1:1)*h*Math.pow(2,d-u)},de.write=function(e,a,s,u,l,d){var h,m,f,v=d*8-l-1,p=(1<<v)-1,C=p>>1,D=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=u?0:d-1,O=u?1:-1,pe=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(m=isNaN(a)?1:0,h=p):(h=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-h))<1&&(h--,f*=2),h+C>=1?a+=D/f:a+=D*Math.pow(2,1-C),a*f>=2&&(h++,f/=2),h+C>=p?(m=0,h=p):h+C>=1?(m=(a*f-1)*Math.pow(2,l),h=h+C):(m=a*Math.pow(2,C-1)*Math.pow(2,l),h=0));l>=8;e[s+N]=m&255,N+=O,m/=256,l-=8);for(h=h<<l|m,v+=l;v>0;e[s+N]=h&255,N+=O,h/=256,v-=8);e[s+N-O]|=pe*128};/*!
|
|
103
103
|
* The buffer module from node.js, for the browser.
|
|
104
104
|
*
|
|
105
105
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
106
106
|
* @license MIT
|
|
107
|
-
*/(function(e){const a=ae,s=de,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=jo,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l;const{Uint8Array:d,ArrayBuffer:g,SharedArrayBuffer:m}=globalThis;p.TYPED_ARRAY_SUPPORT=f(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const o=new d(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,d.prototype),Object.setPrototypeOf(o,n),o.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function v(o){if(o>l)throw new RangeError('The value "'+o+'" is invalid for option "size"');const n=new d(o);return Object.setPrototypeOf(n,p.prototype),n}function p(o,n,i){if(typeof o=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(o)}return C(o,n,i)}p.poolSize=8192;function C(o,n,i){if(typeof o=="string")return pe(o,n);if(g.isView(o))return Bo(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(R(o,g)||o&&R(o.buffer,g)||typeof m<"u"&&(R(o,m)||o&&R(o.buffer,m)))return _e(o,n,i);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=o.valueOf&&o.valueOf();if(r!=null&&r!==o)return p.from(r,n,i);const c=xo(o);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return p.from(o[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}p.from=function(o,n,i){return C(o,n,i)},Object.setPrototypeOf(p.prototype,d.prototype),Object.setPrototypeOf(p,d);function D(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function N(o,n,i){return D(o),o<=0?v(o):n!==void 0?typeof i=="string"?v(o).fill(n,i):v(o).fill(n):v(o)}p.alloc=function(o,n,i){return N(o,n,i)};function O(o){return D(o),v(o<0?0:me(o)|0)}p.allocUnsafe=function(o){return O(o)},p.allocUnsafeSlow=function(o){return O(o)};function pe(o,n){if((typeof n!="string"||n==="")&&(n="utf8"),!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const i=He(o,n)|0;let r=v(i);const c=r.write(o,n);return c!==i&&(r=r.slice(0,c)),r}function ue(o){const n=o.length<0?0:me(o.length)|0,i=v(n);for(let r=0;r<n;r+=1)i[r]=o[r]&255;return i}function Bo(o){if(R(o,d)){const n=new d(o);return _e(n.buffer,n.byteOffset,n.byteLength)}return ue(o)}function _e(o,n,i){if(n<0||o.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<n+(i||0))throw new RangeError('"length" is outside of buffer bounds');let r;return n===void 0&&i===void 0?r=new d(o):i===void 0?r=new d(o,n):r=new d(o,n,i),Object.setPrototypeOf(r,p.prototype),r}function xo(o){if(p.isBuffer(o)){const n=me(o.length)|0,i=v(n);return i.length===0||o.copy(i,0,0,n),i}if(o.length!==void 0)return typeof o.length!="number"||fe(o.length)?v(0):ue(o);if(o.type==="Buffer"&&Array.isArray(o.data))return ue(o.data)}function me(o){if(o>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return o|0}function jo(o){return+o!=o&&(o=0),p.alloc(+o)}p.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==p.prototype},p.compare=function(n,i){if(R(n,d)&&(n=p.from(n,n.offset,n.byteLength)),R(i,d)&&(i=p.from(i,i.offset,i.byteLength)),!p.isBuffer(n)||!p.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;let r=n.length,c=i.length;for(let _=0,h=Math.min(r,c);_<h;++_)if(n[_]!==i[_]){r=n[_],c=i[_];break}return r<c?-1:c<r?1:0},p.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(n,i){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return p.alloc(0);let r;if(i===void 0)for(i=0,r=0;r<n.length;++r)i+=n[r].length;const c=p.allocUnsafe(i);let _=0;for(r=0;r<n.length;++r){let h=n[r];if(R(h,d))_+h.length>c.length?(p.isBuffer(h)||(h=p.from(h)),h.copy(c,_)):d.prototype.set.call(c,h,_);else if(p.isBuffer(h))h.copy(c,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=h.length}return c};function He(o,n){if(p.isBuffer(o))return o.length;if(g.isView(o)||R(o,g))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);const i=o.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&i===0)return 0;let c=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return he(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return it(o).length;default:if(c)return r?-1:he(o).length;n=(""+n).toLowerCase(),c=!0}}p.byteLength=He;function No(o,n,i){let r=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(o||(o="utf8");;)switch(o){case"hex":return $o(this,n,i);case"utf8":case"utf-8":return We(this,n,i);case"ascii":return Fo(this,n,i);case"latin1":case"binary":return Ko(this,n,i);case"base64":return Uo(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ho(this,n,i);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),r=!0}}p.prototype._isBuffer=!0;function F(o,n,i){const r=o[n];o[n]=o[i],o[i]=r}p.prototype.swap16=function(){const n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<n;i+=2)F(this,i,i+1);return this},p.prototype.swap32=function(){const n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<n;i+=4)F(this,i,i+3),F(this,i+1,i+2);return this},p.prototype.swap64=function(){const n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<n;i+=8)F(this,i,i+7),F(this,i+1,i+6),F(this,i+2,i+5),F(this,i+3,i+4);return this},p.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?We(this,0,n):No.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(n){if(!p.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:p.compare(this,n)===0},p.prototype.inspect=function(){let n="";const i=e.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},u&&(p.prototype[u]=p.prototype.inspect),p.prototype.compare=function(n,i,r,c,_){if(R(n,d)&&(n=p.from(n,n.offset,n.byteLength)),!p.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(i===void 0&&(i=0),r===void 0&&(r=n?n.length:0),c===void 0&&(c=0),_===void 0&&(_=this.length),i<0||r>n.length||c<0||_>this.length)throw new RangeError("out of range index");if(c>=_&&i>=r)return 0;if(c>=_)return-1;if(i>=r)return 1;if(i>>>=0,r>>>=0,c>>>=0,_>>>=0,this===n)return 0;let h=_-c,y=r-i;const S=Math.min(h,y),z=this.slice(c,_),L=n.slice(i,r);for(let E=0;E<S;++E)if(z[E]!==L[E]){h=z[E],y=L[E];break}return h<y?-1:y<h?1:0};function Qe(o,n,i,r,c){if(o.length===0)return-1;if(typeof i=="string"?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,fe(i)&&(i=c?0:o.length-1),i<0&&(i=o.length+i),i>=o.length){if(c)return-1;i=o.length-1}else if(i<0)if(c)i=0;else return-1;if(typeof n=="string"&&(n=p.from(n,r)),p.isBuffer(n))return n.length===0?-1:Ge(o,n,i,r,c);if(typeof n=="number")return n=n&255,typeof d.prototype.indexOf=="function"?c?d.prototype.indexOf.call(o,n,i):d.prototype.lastIndexOf.call(o,n,i):Ge(o,[n],i,r,c);throw new TypeError("val must be string, number or Buffer")}function Ge(o,n,i,r,c){let _=1,h=o.length,y=n.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(o.length<2||n.length<2)return-1;_=2,h/=2,y/=2,i/=2}function S(L,E){return _===1?L[E]:L.readUInt16BE(E*_)}let z;if(c){let L=-1;for(z=i;z<h;z++)if(S(o,z)===S(n,L===-1?0:z-L)){if(L===-1&&(L=z),z-L+1===y)return L*_}else L!==-1&&(z-=z-L),L=-1}else for(i+y>h&&(i=h-y),z=i;z>=0;z--){let L=!0;for(let E=0;E<y;E++)if(S(o,z+E)!==S(n,E)){L=!1;break}if(L)return z}return-1}p.prototype.includes=function(n,i,r){return this.indexOf(n,i,r)!==-1},p.prototype.indexOf=function(n,i,r){return Qe(this,n,i,r,!0)},p.prototype.lastIndexOf=function(n,i,r){return Qe(this,n,i,r,!1)};function Vo(o,n,i,r){i=Number(i)||0;const c=o.length-i;r?(r=Number(r),r>c&&(r=c)):r=c;const _=n.length;r>_/2&&(r=_/2);let h;for(h=0;h<r;++h){const y=parseInt(n.substr(h*2,2),16);if(fe(y))return h;o[i+h]=y}return h}function Mo(o,n,i,r){return re(he(n,o.length-i),o,i,r)}function Ro(o,n,i,r){return re(Yo(n),o,i,r)}function qo(o,n,i,r){return re(it(n),o,i,r)}function Do(o,n,i,r){return re(Xo(n,o.length-i),o,i,r)}p.prototype.write=function(n,i,r,c){if(i===void 0)c="utf8",r=this.length,i=0;else if(r===void 0&&typeof i=="string")c=i,r=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(r)?(r=r>>>0,c===void 0&&(c="utf8")):(c=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-i;if((r===void 0||r>_)&&(r=_),n.length>0&&(r<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let h=!1;for(;;)switch(c){case"hex":return Vo(this,n,i,r);case"utf8":case"utf-8":return Mo(this,n,i,r);case"ascii":case"latin1":case"binary":return Ro(this,n,i,r);case"base64":return qo(this,n,i,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Do(this,n,i,r);default:if(h)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),h=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Uo(o,n,i){return n===0&&i===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(n,i))}function We(o,n,i){i=Math.min(o.length,i);const r=[];let c=n;for(;c<i;){const _=o[c];let h=null,y=_>239?4:_>223?3:_>191?2:1;if(c+y<=i){let S,z,L,E;switch(y){case 1:_<128&&(h=_);break;case 2:S=o[c+1],(S&192)===128&&(E=(_&31)<<6|S&63,E>127&&(h=E));break;case 3:S=o[c+1],z=o[c+2],(S&192)===128&&(z&192)===128&&(E=(_&15)<<12|(S&63)<<6|z&63,E>2047&&(E<55296||E>57343)&&(h=E));break;case 4:S=o[c+1],z=o[c+2],L=o[c+3],(S&192)===128&&(z&192)===128&&(L&192)===128&&(E=(_&15)<<18|(S&63)<<12|(z&63)<<6|L&63,E>65535&&E<1114112&&(h=E))}}h===null?(h=65533,y=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|h&1023),r.push(h),c+=y}return Oo(r)}const Ye=4096;function Oo(o){const n=o.length;if(n<=Ye)return String.fromCharCode.apply(String,o);let i="",r=0;for(;r<n;)i+=String.fromCharCode.apply(String,o.slice(r,r+=Ye));return i}function Fo(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]&127);return r}function Ko(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]);return r}function $o(o,n,i){const r=o.length;(!n||n<0)&&(n=0),(!i||i<0||i>r)&&(i=r);let c="";for(let _=n;_<i;++_)c+=Zo[o[_]];return c}function Ho(o,n,i){const r=o.slice(n,i);let c="";for(let _=0;_<r.length-1;_+=2)c+=String.fromCharCode(r[_]+r[_+1]*256);return c}p.prototype.slice=function(n,i){const r=this.length;n=~~n,i=i===void 0?r:~~i,n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),i<0?(i+=r,i<0&&(i=0)):i>r&&(i=r),i<n&&(i=n);const c=this.subarray(n,i);return Object.setPrototypeOf(c,p.prototype),c};function T(o,n,i){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+n>i)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,h=0;for(;++h<i&&(_*=256);)c+=this[n+h]*_;return c},p.prototype.readUintBE=p.prototype.readUIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n+--i],_=1;for(;i>0&&(_*=256);)c+=this[n+--i]*_;return c},p.prototype.readUint8=p.prototype.readUInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]|this[n+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]<<8|this[n+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},p.prototype.readBigUInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,_=this[++n]+this[++n]*2**8+this[++n]*2**16+r*2**24;return BigInt(c)+(BigInt(_)<<BigInt(32))}),p.prototype.readBigUInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],_=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r;return(BigInt(c)<<BigInt(32))+BigInt(_)}),p.prototype.readIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,h=0;for(;++h<i&&(_*=256);)c+=this[n+h]*_;return _*=128,c>=_&&(c-=Math.pow(2,8*i)),c},p.prototype.readIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=i,_=1,h=this[n+--c];for(;c>0&&(_*=256);)h+=this[n+--c]*_;return _*=128,h>=_&&(h-=Math.pow(2,8*i)),h},p.prototype.readInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},p.prototype.readInt16LE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n]|this[n+1]<<8;return r&32768?r|4294901760:r},p.prototype.readInt16BE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n+1]|this[n]<<8;return r&32768?r|4294901760:r},p.prototype.readInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},p.prototype.readInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},p.prototype.readBigInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(r<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),p.prototype.readBigInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=(i<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(c)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r)}),p.prototype.readFloatLE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!0,23,4)},p.prototype.readFloatBE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!1,23,4)},p.prototype.readDoubleLE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!0,52,8)},p.prototype.readDoubleBE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!1,52,8)};function P(o,n,i,r,c,_){if(!p.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>c||n<_)throw new RangeError('"value" argument is out of bounds');if(i+r>o.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;P(this,n,i,r,y,0)}let _=1,h=0;for(this[i]=n&255;++h<r&&(_*=256);)this[i+h]=n/_&255;return i+r},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;P(this,n,i,r,y,0)}let _=r-1,h=1;for(this[i+_]=n&255;--_>=0&&(h*=256);)this[i+_]=n/h&255;return i+r},p.prototype.writeUint8=p.prototype.writeUInt8=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,1,255,0),this[i]=n&255,i+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,2,65535,0),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255,i+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4};function Xe(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_;let h=Number(n>>BigInt(32)&BigInt(4294967295));return o[i++]=h,h=h>>8,o[i++]=h,h=h>>8,o[i++]=h,h=h>>8,o[i++]=h,i}function Ze(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i+7]=_,_=_>>8,o[i+6]=_,_=_>>8,o[i+5]=_,_=_>>8,o[i+4]=_;let h=Number(n>>BigInt(32)&BigInt(4294967295));return o[i+3]=h,h=h>>8,o[i+2]=h,h=h>>8,o[i+1]=h,h=h>>8,o[i]=h,i+8}p.prototype.writeBigUInt64LE=U(function(n,i=0){return Xe(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=U(function(n,i=0){return Ze(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);P(this,n,i,r,S-1,-S)}let _=0,h=1,y=0;for(this[i]=n&255;++_<r&&(h*=256);)n<0&&y===0&&this[i+_-1]!==0&&(y=1),this[i+_]=(n/h>>0)-y&255;return i+r},p.prototype.writeIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);P(this,n,i,r,S-1,-S)}let _=r-1,h=1,y=0;for(this[i+_]=n&255;--_>=0&&(h*=256);)n<0&&y===0&&this[i+_+1]!==0&&(y=1),this[i+_]=(n/h>>0)-y&255;return i+r},p.prototype.writeInt8=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=n&255,i+1},p.prototype.writeInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,2,32767,-32768),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,4,2147483647,-2147483648),this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},p.prototype.writeInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||P(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4},p.prototype.writeBigInt64LE=U(function(n,i=0){return Xe(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=U(function(n,i=0){return Ze(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(o,n,i,r,c,_){if(i+r>o.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function et(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,4),s.write(o,n,i,r,23,4),i+4}p.prototype.writeFloatLE=function(n,i,r){return et(this,n,i,!0,r)},p.prototype.writeFloatBE=function(n,i,r){return et(this,n,i,!1,r)};function tt(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,8),s.write(o,n,i,r,52,8),i+8}p.prototype.writeDoubleLE=function(n,i,r){return tt(this,n,i,!0,r)},p.prototype.writeDoubleBE=function(n,i,r){return tt(this,n,i,!1,r)},p.prototype.copy=function(n,i,r,c){if(!p.isBuffer(n))throw new TypeError("argument should be a Buffer");if(r||(r=0),!c&&c!==0&&(c=this.length),i>=n.length&&(i=n.length),i||(i=0),c>0&&c<r&&(c=r),c===r||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),n.length-i<c-r&&(c=n.length-i+r);const _=c-r;return this===n&&typeof d.prototype.copyWithin=="function"?this.copyWithin(i,r,c):d.prototype.set.call(n,this.subarray(r,c),i),_},p.prototype.fill=function(n,i,r,c){if(typeof n=="string"){if(typeof i=="string"?(c=i,i=0,r=this.length):typeof r=="string"&&(c=r,r=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!p.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(n.length===1){const h=n.charCodeAt(0);(c==="utf8"&&h<128||c==="latin1")&&(n=h)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(i<0||this.length<i||this.length<r)throw new RangeError("Out of range index");if(r<=i)return this;i=i>>>0,r=r===void 0?this.length:r>>>0,n||(n=0);let _;if(typeof n=="number")for(_=i;_<r;++_)this[_]=n;else{const h=p.isBuffer(n)?n:p.from(n,c),y=h.length;if(y===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(_=0;_<r-i;++_)this[_+i]=h[_%y]}return this};const Q={};function ge(o,n,i){Q[o]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(o,n){return`The "${o}" argument must be of type number. Received type ${typeof n}`},TypeError),ge("ERR_OUT_OF_RANGE",function(o,n,i){let r=`The value of "${o}" is out of range.`,c=i;return Number.isInteger(i)&&Math.abs(i)>2**32?c=nt(String(i)):typeof i=="bigint"&&(c=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(c=nt(c)),c+="n"),r+=` It must be ${n}. Received ${c}`,r},RangeError);function nt(o){let n="",i=o.length;const r=o[0]==="-"?1:0;for(;i>=r+4;i-=3)n=`_${o.slice(i-3,i)}${n}`;return`${o.slice(0,i)}${n}`}function Qo(o,n,i){G(n,"offset"),(o[n]===void 0||o[n+i]===void 0)&&X(n,o.length-(i+1))}function at(o,n,i,r,c,_){if(o>i||o<n){const h=typeof n=="bigint"?"n":"";let y;throw _>3?n===0||n===BigInt(0)?y=`>= 0${h} and < 2${h} ** ${(_+1)*8}${h}`:y=`>= -(2${h} ** ${(_+1)*8-1}${h}) and < 2 ** ${(_+1)*8-1}${h}`:y=`>= ${n}${h} and <= ${i}${h}`,new Q.ERR_OUT_OF_RANGE("value",y,o)}Qo(r,c,_)}function G(o,n){if(typeof o!="number")throw new Q.ERR_INVALID_ARG_TYPE(n,"number",o)}function X(o,n,i){throw Math.floor(o)!==o?(G(o,i),new Q.ERR_OUT_OF_RANGE(i||"offset","an integer",o)):n<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${n}`,o)}const Go=/[^+/0-9A-Za-z-_]/g;function Wo(o){if(o=o.split("=")[0],o=o.trim().replace(Go,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function he(o,n){n=n||1/0;let i;const r=o.length;let c=null;const _=[];for(let h=0;h<r;++h){if(i=o.charCodeAt(h),i>55295&&i<57344){if(!c){if(i>56319){(n-=3)>-1&&_.push(239,191,189);continue}else if(h+1===r){(n-=3)>-1&&_.push(239,191,189);continue}c=i;continue}if(i<56320){(n-=3)>-1&&_.push(239,191,189),c=i;continue}i=(c-55296<<10|i-56320)+65536}else c&&(n-=3)>-1&&_.push(239,191,189);if(c=null,i<128){if((n-=1)<0)break;_.push(i)}else if(i<2048){if((n-=2)<0)break;_.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;_.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;_.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return _}function Yo(o){const n=[];for(let i=0;i<o.length;++i)n.push(o.charCodeAt(i)&255);return n}function Xo(o,n){let i,r,c;const _=[];for(let h=0;h<o.length&&!((n-=2)<0);++h)i=o.charCodeAt(h),r=i>>8,c=i%256,_.push(c),_.push(r);return _}function it(o){return a.toByteArray(Wo(o))}function re(o,n,i,r){let c;for(c=0;c<r&&!(c+i>=n.length||c>=o.length);++c)n[c+i]=o[c];return c}function R(o,n){return o instanceof n||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===n.name}function fe(o){return o!==o}const Zo=function(){const o="0123456789abcdef",n=new Array(256);for(let i=0;i<16;++i){const r=i*16;for(let c=0;c<16;++c)n[r+c]=o[i]+o[c]}return n}();function U(o){return typeof BigInt>"u"?Jo:o}function Jo(){throw new Error("BigInt not supported")}})(je);const jt=je.Buffer,ie={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(e){this.code_verifier=$.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await $.pkceChallengeFromVerifier(this.code_verifier);const a=Y.Capacitor.getPlatform();let s=jt.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");e=`${e}&RelayState=${s}`;let u=this;window.addEventListener("message",async l=>{var d;if(!this.allowedOrigins.includes(l.origin))return console.log("Origin is not allowed!");if(l.data.type==="saml"&&l.data.code){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:l.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await u.exchangeAuthCode({code:l.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await J.Browser.open({url:e,presentationStyle:"popover"}):window.open(e,"popup","width=600,height=600")},async handleSamlRedirect(){var s;let e,a={type:"saml"};if(this.$route.query.code&&(a.code=this.$route.query.code),window.opener)window.opener.postMessage(a,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(e=this.$route.query.code),console.log(this.display,{code:e}),e){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:e,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:e,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Nt={name:"AuthLogin",mixins:[Pe,Be,xe,te,ne,ie,A,{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 t.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=e.length;let s="";const u=new Uint32Array(32);return window.crypto.getRandomValues(u),u.forEach(l=>{s+=e.charAt(l%a)}),s},refreshQrCode(){var e,a;this.qrCode&&((a=(e=document.getElementById("qrCodeContainer"))==null?void 0:e.childNodes[0])==null||a.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new ct({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[e,a]=await w(ce.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(e)return this.errorHandler(e);a.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...a,isModal:this.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...a,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await t.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 e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.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&&k.$emit("ssoEvent",{name:"setLoading",data:!1}),k.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let a={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?a.email=this.emailOrUsername:a.username=this.emailOrUsername;const[s,u]=await w(this.login(a));s&&console.error(s),this.submitted=!1,u===!0&&(this.emailOrUsername="",this.password="")},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(e){e.includes("@")&&(this.$storage.verifyEmail=e)},"$route.path":async function(e){if(e==="/login/callback/okta")return await this.handleOktaRedirect();if(e==="/login/callback/saml")return await this.handleSamlRedirect()}}},Vt=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Mt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Rt=t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),qt={key:1},Dt={class:"page-login-field half-top"},Ut=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ot=["placeholder"],Ft=t.createElementVNode("em",null,null,-1),Kt={class:"page-login-field half-bottom"},$t=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ht=["type","placeholder"],Qt={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Gt={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Wt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Yt={key:0},Xt={key:1,class:"button--loading button__loader"},Zt=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Jt=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),en={key:0},tn={key:1,class:"button--loading button__loader"},nn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),an={key:0},on={key:1,class:"button--loading-black button__loader"},rn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),sn={key:0},cn={key:1,class:"button--loading-black button__loader"},ln=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),dn={key:0},pn={key:1,class:"button--loading-black button__loader"},un=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),_n={key:0},mn={key:1,class:"button--loading-black button__loader"},gn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),hn={key:0},fn={key:1,class:"button--loading-black button__loader"},kn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),yn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),bn={class:"close-text center-text half-top color-black"},wn=t.createElementVNode("br",null,null,-1),vn={class:"",href:"https://tapni.co/policies/terms-of-service"},En={href:"https://tapni.co/policies/privacy-policy"},zn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Sn={key:9,class:"page-login-links"},Ln=t.createElementVNode("div",{class:"clear"},null,-1),Cn={class:"forgot center-text pointer small-top"},Tn=t.createElementVNode("br",null,null,-1),In=t.createElementVNode("div",{class:"clear"},null,-1);function An(e,a,s,u,l,d){const g=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[13]||(a[13]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Vt)):t.createCommentVNode("",!0),t.createElementVNode("h1",Mt,t.toDisplayString(this.ssoLang[this.appLanguage].login),1),Rt,d.displayFormLogin?(t.openBlock(),t.createElementBlock("span",qt,[t.createElementVNode("div",Dt,[Ut,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.emailOrUsername=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:e.ssoLang[this.appLanguage].email_username,required:""},null,40,Ot),[[t.vModelText,l.emailOrUsername]]),Ft]),t.createElementVNode("div",Kt,[$t,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ht),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Qt,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Gt,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Wt,[l.submitted?(t.openBlock(),t.createElementBlock("span",Xt)):(t.openBlock(),t.createElementBlock("span",Yt,t.toDisplayString(e.ssoLang[e.appLanguage].login),1))])])):t.createCommentVNode("",!0),Zt,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[5]||(a[5]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[Jt,e.appleLoad?(t.openBlock(),t.createElementBlock("span",tn)):(t.openBlock(),t.createElementBlock("span",en,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Apple",1))])):t.createCommentVNode("",!0),e.displayGoogleLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[6]||(a[6]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[nn,e.googleLoad?(t.openBlock(),t.createElementBlock("span",on)):(t.openBlock(),t.createElementBlock("span",an,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Google",1))])):t.createCommentVNode("",!0),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[7]||(a[7]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[rn,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",cn)):(t.openBlock(),t.createElementBlock("span",sn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Facebook",1))])):t.createCommentVNode("",!0),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:5,onClick:a[8]||(a[8]=(...m)=>e.microsoftLogin&&e.microsoftLogin(...m)),class:"button-center button button-90 google-button pointer"},[ln,e.microsoftLoad?(t.openBlock(),t.createElementBlock("span",pn)):(t.openBlock(),t.createElementBlock("span",dn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Outlook",1))])),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:6,onClick:a[9]||(a[9]=(...m)=>e.ssoLogin&&e.ssoLogin(...m)),class:"button-center button button-90 google-button pointer"},[un,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",mn)):(t.openBlock(),t.createElementBlock("span",_n,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1))])),e.displayMicrosoftSSOLogin?(t.openBlock(),t.createElementBlock("a",{key:7,onClick:a[10]||(a[10]=m=>e.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[gn,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",hn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1)):(t.openBlock(),t.createElementBlock("span",fn))])):t.createCommentVNode("",!0),d.displayFormLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:8,onClick:a[11]||(a[11]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[kn,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Email",1)])),yn,t.createElementVNode("p",bn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].terms_by_signing_in)+" ",1),wn,t.createElementVNode("a",vn,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].and)+" ",1),t.createElementVNode("a",En,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),zn,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:10,class:"page-login-links",onClick:a[12]||(a[12]=(...m)=>d.createAccountModal&&d.createAccountModal(...m))},[t.createElementVNode("a",Cn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].or)+" ",1),Tn,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].create_new_account),1)]),In])):(t.openBlock(),t.createElementBlock("div",Sn,[d.displayRegisterLogin?(t.openBlock(),t.createBlock(g,{key:0,class:"forgot float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].create_account),1)]),_:1})):t.createCommentVNode("",!0),d.displayResetPasswordLogin?(t.openBlock(),t.createBlock(g,{key:1,class:"create float-left",to:"/reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].reset_password),1)]),_:1})):t.createCommentVNode("",!0),Ln]))],36)}const Ve=V(Nt,[["render",An]]),Pn={name:"AuthRegister",mixins:[Pe,Be,xe,te,A],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&&k.$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.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let e={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},a=await this.register(e);this.submitted=!1,a.data&&a.data.success&&(a.data.message==="SUCCESS_REGISTER"?(this.isModal?k.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):a.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...a,isModal:e.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...a,isModal:e.isModal})))},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(e){this.$storage.verifyEmail=e},referral(e){this.$storage.referral=e}}},Bn=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],xn={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},jn={class:"half-bottom small-top center-text color-black"},Nn={key:0},Vn=t.createElementVNode("br",null,null,-1),Mn={key:1},Rn={class:"page-login-field half-top"},qn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Dn=["placeholder"],Un=t.createElementVNode("em",null,null,-1),On={class:"page-login-field half-top"},Fn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Kn=["placeholder","disabled"],$n=t.createElementVNode("em",null,null,-1),Hn={class:"page-login-field half-top half-bottom"},Qn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Gn=["type","placeholder"],Wn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Yn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Xn={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Zn={key:0},Jn={key:1,class:"button--loading button__loader"},ea=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ta=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),na={key:0},aa={key:1,class:"button--loading button__loader"},ia=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading button__loader"},sa=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading button__loader"},da=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ua={class:"close-text center-text half-top color-black"},_a=t.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:5,class:"page-login-links"},ka=t.createElementVNode("div",{class:"clear"},null,-1),ya={class:"forgot center-text pointer small-top"},ba=t.createElementVNode("br",null,null,-1),wa=t.createElementVNode("div",{class:"clear"},null,-1);function va(e,a,s,u,l,d){const g=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[12]||(a[12]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Bn)):t.createCommentVNode("",!0),t.createElementVNode("h1",xn,t.toDisplayString(e.ssoLang[this.appLanguage].register),1),t.createElementVNode("p",jn,[l.usernameRegister?(t.openBlock(),t.createElementBlock("span",Nn,[t.createTextVNode(" t.link/"+t.toDisplayString(l.username)+" "+t.toDisplayString(e.ssoLang[this.appLanguage].username_is_free)+" β
",1),Vn])):t.createCommentVNode("",!0)]),l.emailLogin?(t.openBlock(),t.createElementBlock("span",Mn,[t.createElementVNode("div",Rn,[qn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Dn),[[t.vModelText,l.email]]),Un]),t.createElementVNode("div",On,[Fn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.username=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:e.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:l.usernameRegister,class:t.normalizeClass({"input-disabled":l.usernameRegister})},null,42,Kn),[[t.vModelText,l.username]]),$n]),t.createElementVNode("div",Hn,[Qn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Gn),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Wn,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Yn,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Xn,[l.submitted?(t.openBlock(),t.createElementBlock("span",Jn)):(t.openBlock(),t.createElementBlock("span",Zn,t.toDisplayString(l.formButtonText),1))])])):t.createCommentVNode("",!0),ea,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[7]||(a[7]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ta,e.appleLoad?(t.openBlock(),t.createElementBlock("span",aa)):(t.openBlock(),t.createElementBlock("span",na,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):t.createCommentVNode("",!0),t.createElementVNode("a",{onClick:a[8]||(a[8]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ia,e.googleLoad?(t.openBlock(),t.createElementBlock("span",ra)):(t.openBlock(),t.createElementBlock("span",oa,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[9]||(a[9]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[sa,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",la)):(t.openBlock(),t.createElementBlock("span",ca,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):t.createCommentVNode("",!0),l.emailLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[10]||(a[10]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),pa,t.createElementVNode("p",ua,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].terms_by_registering)+" ",1),_a,t.createElementVNode("a",ma,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].and)+" ",1),t.createElementVNode("a",ga,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ha,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:6,class:"page-login-links",onClick:a[11]||(a[11]=(...m)=>d.loginAccountModal&&d.loginAccountModal(...m))},[t.createElementVNode("a",ya,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),ba,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].sign_in_with_new),1)]),wa])):(t.openBlock(),t.createElementBlock("div",fa,[t.createVNode(g,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(g,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),ka]))],36)}const Me=V(Pn,[["render",va]]),Ea={name:"AuthVerify",mixins:[A],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),k.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let e={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let a=await this.verify(e);this.submitted=!1,a&&a.data&&a.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",k.$emit("closeModal")),await this.loginSetup(a),this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+a.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(e){e&&(this.email=e)},"route.name"(e,a){!a&&e&&this.init()},"route.query":{handler(e){this.isEmpty(e)||this.init()},deep:!0}}},j=e=>(t.pushScopeId("data-v-af1531aa"),e=e(),t.popScopeId(),e),za=[j(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.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=j(()=>t.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),Ca={class:"page-login-field half-top"},Ta=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ia=["placeholder"],Aa=j(()=>t.createElementVNode("em",null,null,-1)),Pa={class:"page-login-field half-top"},Ba=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),xa=["placeholder"],ja=j(()=>t.createElementVNode("em",null,null,-1)),Na={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Va={key:0,class:"uppercase"},Ma={key:1,class:"button--loading button__loader"},Ra=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),qa={class:"close-text center-text half-top color-black"},Da=["innerHTML"],Ua=j(()=>t.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Oa=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Fa={key:1,class:"page-login-links"},Ka=j(()=>t.createElementVNode("div",{class:"clear"},null,-1)),$a={class:"forgot center-text pointer small-top"},Ha=j(()=>t.createElementVNode("br",null,null,-1)),Qa=j(()=>t.createElementVNode("div",{class:"clear"},null,-1));function Ga(e,a,s,u,l,d){const g=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[6]||(a[6]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},za)):t.createCommentVNode("",!0),t.createElementVNode("h1",Sa,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1),La,t.createElementVNode("div",Ca,[Ta,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,Ia),[[t.vModelText,l.email]]),Aa]),t.createElementVNode("div",Pa,[Ba,t.withDirectives(t.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":a[3]||(a[3]=m=>l.code=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:e.ssoLang[this.appLanguage].code,required:""},null,40,xa),[[t.vModelText,l.code]]),ja]),t.createElementVNode("button",Na,[l.submitted?(t.openBlock(),t.createElementBlock("span",Ma)):(t.openBlock(),t.createElementBlock("span",Va,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1))]),Ra,t.createElementVNode("p",qa,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].verify_account_p1},null,8,Da),Ua]),Oa,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:2,class:"page-login-links",onClick:a[5]||(a[5]=(...m)=>d.registerAccountModal&&d.registerAccountModal(...m))},[t.createElementVNode("a",$a,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),Ha,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].create_new_account),1)]),Qa])):(t.openBlock(),t.createElementBlock("div",Fa,[t.createVNode(g,{class:"create float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].register),1)]),_:1}),t.createVNode(g,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ka]))],36)}const Re=V(Ea,[["render",Ga],["__scopeId","data-v-af1531aa"]]),Wa={name:"AuthReset",mixins:[A],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),k.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let e={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(e),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.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let e={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},a=await this.changePassword(e);this.submitted=!1,a===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(e){this.$storage.verifyEmail=e}}},q=e=>(t.pushScopeId("data-v-4f85b89a"),e=e(),t.popScopeId(),e),Ya={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Xa=q(()=>t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),Za={class:"page-login-field half-top color-black"},Ja=q(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),ei=["placeholder"],ti=q(()=>t.createElementVNode("em",null,null,-1)),ni={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},ai={key:0,class:"uppercase"},ii={key:1,class:"button--loading button__loader"},oi=q(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),ri={class:"close-text center-text half-top color-black"},si=["innerHTML"],ci=["href"],li=q(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),di={class:"page-login-links"},pi=q(()=>t.createElementVNode("div",{class:"clear"},null,-1)),ui={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},_i={class:"half-bottom small-top center-text color-black"},mi={class:"page-login-field half-top"},gi=q(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),hi=["type","placeholder"],fi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},ki={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},yi={class:"page-login-field half-top"},bi=q(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),wi=["type","placeholder"],vi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ei={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},zi={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Si={key:0,class:"uppercase"},Li={key:1,class:"button--loading button__loader"},Ci=q(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Ti={class:"close-text center-text half-top color-black"},Ii=["innerHTML"],Ai=["href"];function Pi(e,a,s,u,l,d){const g=t.resolveComponent("router-link");return l.passwordChange?(t.openBlock(),t.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:a[7]||(a[7]=t.withModifiers((...m)=>d.changePw&&d.changePw(...m),["prevent"]))},[t.createElementVNode("h3",ui,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1),t.createElementVNode("p",_i,t.toDisplayString(e.ssoLang[this.appLanguage].password_new),1),t.createElementVNode("div",mi,[gi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,required:""},null,8,hi),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword)},[t.withDirectives(t.createElementVNode("img",fi,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",ki,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("div",yi,[bi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.passwordRepeat=m),type:l.revealPassword2?"text":"password",placeholder:e.ssoLang[this.appLanguage].password_repeat,required:""},null,8,wi),[[t.vModelDynamic,l.passwordRepeat]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword2=!l.revealPassword2)},[t.withDirectives(t.createElementVNode("img",vi,null,512),[[t.vShow,!l.revealPassword2]]),t.withDirectives(t.createElementVNode("img",Ei,null,512),[[t.vShow,l.revealPassword2]])])]),t.createElementVNode("button",zi,[l.submitted?(t.openBlock(),t.createElementBlock("span",Li)):(t.openBlock(),t.createElementBlock("span",Si,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1))]),Ci,t.createElementVNode("p",Ti,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p2},null,8,Ii),t.createTextVNode(),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Ai)])],32)):(t.openBlock(),t.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:a[2]||(a[2]=t.withModifiers((...m)=>d.resetEmail&&d.resetEmail(...m),["prevent"])),autocomplete:"on"},[t.createElementVNode("h3",Ya,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1),Xa,t.createElementVNode("div",Za,[Ja,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[0]||(a[0]=m=>l.email=m),onKeydown:a[1]||(a[1]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,ei),[[t.vModelText,l.email]]),ti]),t.createElementVNode("button",ni,[l.submitted?(t.openBlock(),t.createElementBlock("span",ii)):(t.openBlock(),t.createElementBlock("span",ai,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1))]),oi,t.createElementVNode("p",ri,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p1},null,8,si),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,ci)]),li,t.createElementVNode("div",di,[t.createVNode(g,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(g,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),pi])],32))}const qe=V(Wa,[["render",Pi],["__scopeId","data-v-4f85b89a"]]),Bi={name:"AuthCallback",mixins:[ne,ie,A],data(){return{}},async mounted(){if(console.log("ee"),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 e=lt.sanitizeUrl(location.href);return e=e.replace("http","tapni"),e=e.replace("https","tapni"),window.open(e)}}},xi={class:"page-login content-boxed content-boxed-padding"},ji={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Ni=t.createElementVNode("br",null,null,-1),Vi={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Mi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",xi,[(e.$route.query.platform==="android"||e.$route.query.platform==="ios")&&!e.isNative?(t.openBlock(),t.createElementBlock("h5",ji,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].you_will_be_redirected),1),Ni,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),t.createElementVNode("span",{onClick:a[0]||(a[0]=(...g)=>d.inAppRedirect&&d.inAppRedirect(...g)),style:{color:"blue",cursor:"pointer"}},t.toDisplayString(e.ssoLang[this.appLanguage].click_here),1),t.createTextVNode(".")])):(t.openBlock(),t.createElementBlock("h4",Vi,t.toDisplayString(e.ssoLang[this.appLanguage].please_wait),1))])}const De=V(Bi,[["render",Mi]]),Ri={name:"ModalOverlay",mixins:[A],data(){return{toggle:!1}},mounted(){k.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),k.$on("openModalOverlay",()=>{this.toggle=!0}),k.$on("toggleLanguageModal",this.toggleModal),k.$on("toggleSSOModal",this.toggleModal),k.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(e=!0){e&&(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 e,a;!this.isLoggedIn&&((a=(e=this.user)==null?void 0:e.lead_form)!=null&&a.forceFilling)||k.$emit("closeModal")}}};function qi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":l.toggle}),onClick:a[0]||(a[0]=(...g)=>d.toggleEmit&&d.toggleEmit(...g))},null,2)}const Ue=V(Ri,[["render",qi],["__scopeId","data-v-a128c2fa"]]),Di={name:"SSO",mixins:[te,ne,ie,A],data(){return{toggle:!1,email:"",loading:!1}},mounted(){k.$on("toggleSSOModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const e=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let a;if(!(!e||e.error))if(a=Object.keys(e.sso),a.length)a.length<=1?(a[0]==="azure"&&this.microsoftLogin("sso",e.sso.azure.sso),a[0]==="okta"&&this.oktaLogin(e.sso.okta.sso),a[0]==="saml"&&this.samlLogin(e.sso.saml.sso.loginUrl)):(this.forceClose(),k.$emit("toggleSSOPickModal",{sso:e.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Ui=[(e=>(t.pushScopeId("data-v-11f19a09"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Oi={class:"bold center-text color-black half-top half-bottom"},Fi=["placeholder"],Ki={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},$i={key:0},Hi={key:1,class:"button--loading button__loader"};function Qi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("form",{onSubmit:a[3]||(a[3]=t.withModifiers((...g)=>d.submit&&d.submit(...g),["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...g)=>d.forceClose&&d.forceClose(...g)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Ui),t.createElementVNode("h3",Oi,t.toDisplayString(e.ssoLang[e.appLanguage].enter_company_email),1),t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=g=>l.email=g),placeholder:e.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Fi),[[t.vModelText,l.email]])]),t.createElementVNode("button",Ki,[l.loading?(t.openBlock(),t.createElementBlock("span",Hi)):(t.openBlock(),t.createElementBlock("span",$i,t.toDisplayString(e.ssoLang[e.appLanguage].continue),1))])],34)}const Oe=V(Di,[["render",Qi],["__scopeId","data-v-11f19a09"]]),Gi={name:"SSOPick",mixins:[te,ne,ie,A],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){k.$on("toggleSSOPickModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOPickModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(e){e==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),e==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),e==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(e){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,e&&(this.sso=e.sso,this.email=e.email),this.toggle=!this.toggle}}},oe=e=>(t.pushScopeId("data-v-4f821f65"),e=e(),t.popScopeId(),e),Wi=[oe(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Yi={class:"bold center-text color-black half-top half-bottom"},Xi=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Zi={key:0},Ji={key:1,class:"button--loading button__loader"},eo=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),to={key:0},no={key:1,class:"button--loading button__loader"},ao=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),io={key:0},oo={key:1,class:"button--loading button__loader"};function ro(e,a,s,u,l,d){var g,m,f;return t.openBlock(),t.createElementBlock("form",{onSubmit:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...v)=>d.forceClose&&d.forceClose(...v)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Wi),t.createElementVNode("h3",Yi,t.toDisplayString(e.ssoLang[e.appLanguage].select_sign_method),1),(g=l.sso)!=null&&g.azure?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=v=>d.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Xi,l.azureLoad?(t.openBlock(),t.createElementBlock("span",Ji)):(t.openBlock(),t.createElementBlock("span",Zi,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Azure",1))])):t.createCommentVNode("",!0),(m=l.sso)!=null&&m.okta?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:a[2]||(a[2]=v=>d.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[eo,l.oktaLoad?(t.openBlock(),t.createElementBlock("span",no)):(t.openBlock(),t.createElementBlock("span",to,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Okta",1))])):t.createCommentVNode("",!0),(f=l.sso)!=null&&f.saml?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[3]||(a[3]=v=>d.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[ao,l.samlLoad?(t.openBlock(),t.createElementBlock("span",oo)):(t.openBlock(),t.createElementBlock("span",io,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SAML",1))])):t.createCommentVNode("",!0)],34)}const Fe=V(Gi,[["render",ro],["__scopeId","data-v-4f821f65"]]),so={name:"LinkIcon",mixins:[A],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.appLanguage!=="en"&&this.data.text?this.ssoLang[this.appLanguage]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},co=["src","alt"],lo=["src","alt"],po=["src","alt"],uo=["src","alt"];function _o(e,a,s,u,l,d){var g,m;return t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["disable-select",s.linkStyle+(s.disabled?" opacity-50":"")]),style:t.normalizeStyle((s.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[t.createElementVNode("span",{class:t.normalizeClass({"user-link-img":!0,"pulse pulse-border":s.pulse,"link-drag":s.editing}),style:t.normalizeStyle({...(g=s.customLinkStyle)==null?void 0:g.linkIcon})},[!s.data.custom_icon&&s.data.type!=="customlink"?(t.openBlock(),t.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+s.data.type+".png",class:"responsive-image",alt:s.data.text,onLoad:a[0]||(a[0]=f=>e.$emit("loaded")),onError:a[1]||(a[1]=f=>e.$emit("loaded"))},null,40,co)):!s.data.custom_icon&&s.data.type==="customlink"&&s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:s.data.text,onLoad:a[2]||(a[2]=f=>e.$emit("loaded")),onError:a[3]||(a[3]=f=>e.$emit("loaded"))},null,40,lo)):!s.data.custom_icon&&s.data.type==="customlink"&&!s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:s.data.text,onLoad:a[4]||(a[4]=f=>e.$emit("loaded")),onError:a[5]||(a[5]=f=>e.$emit("loaded"))},null,40,po)):(t.openBlock(),t.createElementBlock("img",{key:3,src:s.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:s.data.text,onLoad:a[6]||(a[6]=f=>e.$emit("loaded")),onError:a[7]||(a[7]=f=>e.$emit("loaded"))},null,40,uo))],6),t.createElementVNode("span",{class:"link-text link-drag color-black",style:t.normalizeStyle({color:(m=s.customLinkStyle)==null?void 0:m.color})},t.toDisplayString(d.linkText),5)],6)}const mo=V(so,[["render",_o]]),go={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:""},ho={name:"Language",mixins:[A],components:{LinkIcon:mo},data(){return{toggle:!1}},async mounted(){k.$on("toggleLanguageModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1});let e=this.isNative?await Z.Device.getLanguageCode():$.getFirstBrowserLanguage();e&&go.SUPPORTED_LANGUAGES.includes(e)&&this.updateLanguage(e)},beforeDestroy(){k._events.toggleLanguageModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(e){k.$emit("updateLang",e),k.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},fo=[(e=>(t.pushScopeId("data-v-34a6b7b2"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 fa color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],ko={class:"bold center-text color-black small-bottom"};function yo(e,a,s,u,l,d){const g=t.resolveComponent("LinkIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},fo),t.createElementVNode("h3",ko,t.toDisplayString(e.ssoLang[e.appLanguage].app_language),1),t.createVNode(g,{onClick:a[1]||(a[1]=m=>d.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:e.ssoLang[this.appLanguage].english},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[2]||(a[2]=m=>d.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:e.ssoLang[this.appLanguage].spanish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[3]||(a[3]=m=>d.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:e.ssoLang[this.appLanguage].german},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[4]||(a[4]=m=>d.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:e.ssoLang[this.appLanguage].italian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[5]||(a[5]=m=>d.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:e.ssoLang[this.appLanguage].french},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[6]||(a[6]=m=>d.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:e.ssoLang[this.appLanguage].korean},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[7]||(a[7]=m=>d.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:e.ssoLang[this.appLanguage].serbian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(g,{onClick:a[8]||(a[8]=m=>d.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:e.ssoLang[this.appLanguage].turkish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const Ke=V(ho,[["render",yo],["__scopeId","data-v-34a6b7b2"]]);var bo={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 wo={id:"ssoapp"},vo={key:0,href:"/",class:"header-logo"},Eo=[t.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgNsIvKgRyXhBBCyqCzyo8yeO7BKgOp0Fdna5U/q9wmzvWLEEIIaQr7q2ySwXNxV38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IIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],zo={class:"lang-icon"},So={class:"snackbar snackbar-boxed",id:"snackbar"},Lo={class:"snack-body",id:"errorSnack"},Co={id:"errorMessage"},To=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Io={class:"snack-body",id:"successSnack"},Ao={id:"successMessage"},Po=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],$e=Object.assign({name:"TapniAuth",mixins:[A],data(){return{isSetup:!1}},components:{Language:Ke,SSOPick:Fe,SSO:Oe,ModalOverlay:Ue,AuthCallback:De,AuthReset:qe,AuthVerify:Re,AuthRegister:Me,AuthLogin:Ve,AuthWelcome:Ae},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),k.$on("ssoEvent",this.ssoOutgoingEvent),k.$on("ssoLogout",e=>this.logout(e)),k.$on("getLoggedInAccounts",e=>this.getLoggedInAccounts(e)),k.$on("refreshTokenAction",e=>this.refreshTokenAction(e))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const e=this.getRefreshTokens();this.setRefreshToken(e[0]),this.getLoggedInAccounts(),this.$emit("ssoLibraryReady")},ssoOutgoingEvent(e){this.$emit("ssoEvent",e)},ssoIncomingEvent(e){k.$emit(e.name,e.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){k.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(e){return document.addEventListener("DOMContentLoaded",function(){const a=document.createElement("script");a.src=`https://www.google.com/recaptcha/api.js?render=${bo.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(a)}),(a,s)=>(t.openBlock(),t.createElementBlock("div",wo,[a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",vo,Eo)):t.createCommentVNode("",!0),a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:s[0]||(s[0]=(...u)=>a.toggleLanguageModal&&a.toggleLanguageModal(...u)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[t.createElementVNode("span",zo,t.toDisplayString(a.appLanguage.toUpperCase()),1)])):t.createCommentVNode("",!0),t.createVNode(Ue),t.createVNode(Ke),t.createVNode(Oe),t.createVNode(Fe),a.initialized&&a.renderView==="AuthWelcome"?(t.openBlock(),t.createBlock(Ae,{key:2})):a.initialized&&a.renderView==="AuthLogin"?(t.openBlock(),t.createBlock(Ve,{key:3,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthRegister"?(t.openBlock(),t.createBlock(Me,{key:4,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthVerify"?(t.openBlock(),t.createBlock(Re,{key:5,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthReset"?(t.openBlock(),t.createBlock(qe,{key:6})):a.initialized&&a.renderView==="AuthCallback"?(t.openBlock(),t.createBlock(De,{key:7})):(t.openBlock(),t.createBlock(t.unref(W.RouterView),{key:8})),t.createElementVNode("div",So,[t.createElementVNode("p",Lo,[t.createElementVNode("span",Co,t.toDisplayString(a.ssoLang[a.appLanguage].error),1),t.createElementVNode("a",{onClick:s[1]||(s[1]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},To)]),t.createElementVNode("p",Io,[t.createElementVNode("span",Ao,t.toDisplayString(a.ssoLang[a.appLanguage].success),1),t.createElementVNode("a",{onClick:s[2]||(s[2]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},Po)])])]))}});return{TapniAuth:$e,install:(e,a)=>{a&&a.API_ROOT&&e.mixin({created(){this.API_ROOT=a.API_ROOT}}),e.component("TapniAuth",$e)}}});
|
|
107
|
+
*/(function(e){const a=ae,s=de,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=jo,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l;const{Uint8Array:d,ArrayBuffer:h,SharedArrayBuffer:m}=globalThis;p.TYPED_ARRAY_SUPPORT=f(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const o=new d(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,d.prototype),Object.setPrototypeOf(o,n),o.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function v(o){if(o>l)throw new RangeError('The value "'+o+'" is invalid for option "size"');const n=new d(o);return Object.setPrototypeOf(n,p.prototype),n}function p(o,n,i){if(typeof o=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(o)}return C(o,n,i)}p.poolSize=8192;function C(o,n,i){if(typeof o=="string")return pe(o,n);if(h.isView(o))return Po(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(q(o,h)||o&&q(o.buffer,h)||typeof m<"u"&&(q(o,m)||o&&q(o.buffer,m)))return _e(o,n,i);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=o.valueOf&&o.valueOf();if(r!=null&&r!==o)return p.from(r,n,i);const c=xo(o);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return p.from(o[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}p.from=function(o,n,i){return C(o,n,i)},Object.setPrototypeOf(p.prototype,d.prototype),Object.setPrototypeOf(p,d);function D(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function N(o,n,i){return D(o),o<=0?v(o):n!==void 0?typeof i=="string"?v(o).fill(n,i):v(o).fill(n):v(o)}p.alloc=function(o,n,i){return N(o,n,i)};function O(o){return D(o),v(o<0?0:me(o)|0)}p.allocUnsafe=function(o){return O(o)},p.allocUnsafeSlow=function(o){return O(o)};function pe(o,n){if((typeof n!="string"||n==="")&&(n="utf8"),!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const i=He(o,n)|0;let r=v(i);const c=r.write(o,n);return c!==i&&(r=r.slice(0,c)),r}function ue(o){const n=o.length<0?0:me(o.length)|0,i=v(n);for(let r=0;r<n;r+=1)i[r]=o[r]&255;return i}function Po(o){if(q(o,d)){const n=new d(o);return _e(n.buffer,n.byteOffset,n.byteLength)}return ue(o)}function _e(o,n,i){if(n<0||o.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<n+(i||0))throw new RangeError('"length" is outside of buffer bounds');let r;return n===void 0&&i===void 0?r=new d(o):i===void 0?r=new d(o,n):r=new d(o,n,i),Object.setPrototypeOf(r,p.prototype),r}function xo(o){if(p.isBuffer(o)){const n=me(o.length)|0,i=v(n);return i.length===0||o.copy(i,0,0,n),i}if(o.length!==void 0)return typeof o.length!="number"||fe(o.length)?v(0):ue(o);if(o.type==="Buffer"&&Array.isArray(o.data))return ue(o.data)}function me(o){if(o>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return o|0}function jo(o){return+o!=o&&(o=0),p.alloc(+o)}p.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==p.prototype},p.compare=function(n,i){if(q(n,d)&&(n=p.from(n,n.offset,n.byteLength)),q(i,d)&&(i=p.from(i,i.offset,i.byteLength)),!p.isBuffer(n)||!p.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;let r=n.length,c=i.length;for(let _=0,g=Math.min(r,c);_<g;++_)if(n[_]!==i[_]){r=n[_],c=i[_];break}return r<c?-1:c<r?1:0},p.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(n,i){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return p.alloc(0);let r;if(i===void 0)for(i=0,r=0;r<n.length;++r)i+=n[r].length;const c=p.allocUnsafe(i);let _=0;for(r=0;r<n.length;++r){let g=n[r];if(q(g,d))_+g.length>c.length?(p.isBuffer(g)||(g=p.from(g)),g.copy(c,_)):d.prototype.set.call(c,g,_);else if(p.isBuffer(g))g.copy(c,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=g.length}return c};function He(o,n){if(p.isBuffer(o))return o.length;if(h.isView(o)||q(o,h))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);const i=o.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&i===0)return 0;let c=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return he(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return it(o).length;default:if(c)return r?-1:he(o).length;n=(""+n).toLowerCase(),c=!0}}p.byteLength=He;function No(o,n,i){let r=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(o||(o="utf8");;)switch(o){case"hex":return $o(this,n,i);case"utf8":case"utf-8":return We(this,n,i);case"ascii":return Fo(this,n,i);case"latin1":case"binary":return Ko(this,n,i);case"base64":return Uo(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ho(this,n,i);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),r=!0}}p.prototype._isBuffer=!0;function F(o,n,i){const r=o[n];o[n]=o[i],o[i]=r}p.prototype.swap16=function(){const n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<n;i+=2)F(this,i,i+1);return this},p.prototype.swap32=function(){const n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<n;i+=4)F(this,i,i+3),F(this,i+1,i+2);return this},p.prototype.swap64=function(){const n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<n;i+=8)F(this,i,i+7),F(this,i+1,i+6),F(this,i+2,i+5),F(this,i+3,i+4);return this},p.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?We(this,0,n):No.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(n){if(!p.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:p.compare(this,n)===0},p.prototype.inspect=function(){let n="";const i=e.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},u&&(p.prototype[u]=p.prototype.inspect),p.prototype.compare=function(n,i,r,c,_){if(q(n,d)&&(n=p.from(n,n.offset,n.byteLength)),!p.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(i===void 0&&(i=0),r===void 0&&(r=n?n.length:0),c===void 0&&(c=0),_===void 0&&(_=this.length),i<0||r>n.length||c<0||_>this.length)throw new RangeError("out of range index");if(c>=_&&i>=r)return 0;if(c>=_)return-1;if(i>=r)return 1;if(i>>>=0,r>>>=0,c>>>=0,_>>>=0,this===n)return 0;let g=_-c,y=r-i;const S=Math.min(g,y),z=this.slice(c,_),L=n.slice(i,r);for(let E=0;E<S;++E)if(z[E]!==L[E]){g=z[E],y=L[E];break}return g<y?-1:y<g?1:0};function Qe(o,n,i,r,c){if(o.length===0)return-1;if(typeof i=="string"?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,fe(i)&&(i=c?0:o.length-1),i<0&&(i=o.length+i),i>=o.length){if(c)return-1;i=o.length-1}else if(i<0)if(c)i=0;else return-1;if(typeof n=="string"&&(n=p.from(n,r)),p.isBuffer(n))return n.length===0?-1:Ge(o,n,i,r,c);if(typeof n=="number")return n=n&255,typeof d.prototype.indexOf=="function"?c?d.prototype.indexOf.call(o,n,i):d.prototype.lastIndexOf.call(o,n,i):Ge(o,[n],i,r,c);throw new TypeError("val must be string, number or Buffer")}function Ge(o,n,i,r,c){let _=1,g=o.length,y=n.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(o.length<2||n.length<2)return-1;_=2,g/=2,y/=2,i/=2}function S(L,E){return _===1?L[E]:L.readUInt16BE(E*_)}let z;if(c){let L=-1;for(z=i;z<g;z++)if(S(o,z)===S(n,L===-1?0:z-L)){if(L===-1&&(L=z),z-L+1===y)return L*_}else L!==-1&&(z-=z-L),L=-1}else for(i+y>g&&(i=g-y),z=i;z>=0;z--){let L=!0;for(let E=0;E<y;E++)if(S(o,z+E)!==S(n,E)){L=!1;break}if(L)return z}return-1}p.prototype.includes=function(n,i,r){return this.indexOf(n,i,r)!==-1},p.prototype.indexOf=function(n,i,r){return Qe(this,n,i,r,!0)},p.prototype.lastIndexOf=function(n,i,r){return Qe(this,n,i,r,!1)};function Vo(o,n,i,r){i=Number(i)||0;const c=o.length-i;r?(r=Number(r),r>c&&(r=c)):r=c;const _=n.length;r>_/2&&(r=_/2);let g;for(g=0;g<r;++g){const y=parseInt(n.substr(g*2,2),16);if(fe(y))return g;o[i+g]=y}return g}function Mo(o,n,i,r){return re(he(n,o.length-i),o,i,r)}function qo(o,n,i,r){return re(Yo(n),o,i,r)}function Ro(o,n,i,r){return re(it(n),o,i,r)}function Do(o,n,i,r){return re(Xo(n,o.length-i),o,i,r)}p.prototype.write=function(n,i,r,c){if(i===void 0)c="utf8",r=this.length,i=0;else if(r===void 0&&typeof i=="string")c=i,r=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(r)?(r=r>>>0,c===void 0&&(c="utf8")):(c=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-i;if((r===void 0||r>_)&&(r=_),n.length>0&&(r<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let g=!1;for(;;)switch(c){case"hex":return Vo(this,n,i,r);case"utf8":case"utf-8":return Mo(this,n,i,r);case"ascii":case"latin1":case"binary":return qo(this,n,i,r);case"base64":return Ro(this,n,i,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Do(this,n,i,r);default:if(g)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),g=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Uo(o,n,i){return n===0&&i===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(n,i))}function We(o,n,i){i=Math.min(o.length,i);const r=[];let c=n;for(;c<i;){const _=o[c];let g=null,y=_>239?4:_>223?3:_>191?2:1;if(c+y<=i){let S,z,L,E;switch(y){case 1:_<128&&(g=_);break;case 2:S=o[c+1],(S&192)===128&&(E=(_&31)<<6|S&63,E>127&&(g=E));break;case 3:S=o[c+1],z=o[c+2],(S&192)===128&&(z&192)===128&&(E=(_&15)<<12|(S&63)<<6|z&63,E>2047&&(E<55296||E>57343)&&(g=E));break;case 4:S=o[c+1],z=o[c+2],L=o[c+3],(S&192)===128&&(z&192)===128&&(L&192)===128&&(E=(_&15)<<18|(S&63)<<12|(z&63)<<6|L&63,E>65535&&E<1114112&&(g=E))}}g===null?(g=65533,y=1):g>65535&&(g-=65536,r.push(g>>>10&1023|55296),g=56320|g&1023),r.push(g),c+=y}return Oo(r)}const Ye=4096;function Oo(o){const n=o.length;if(n<=Ye)return String.fromCharCode.apply(String,o);let i="",r=0;for(;r<n;)i+=String.fromCharCode.apply(String,o.slice(r,r+=Ye));return i}function Fo(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]&127);return r}function Ko(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]);return r}function $o(o,n,i){const r=o.length;(!n||n<0)&&(n=0),(!i||i<0||i>r)&&(i=r);let c="";for(let _=n;_<i;++_)c+=Zo[o[_]];return c}function Ho(o,n,i){const r=o.slice(n,i);let c="";for(let _=0;_<r.length-1;_+=2)c+=String.fromCharCode(r[_]+r[_+1]*256);return c}p.prototype.slice=function(n,i){const r=this.length;n=~~n,i=i===void 0?r:~~i,n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),i<0?(i+=r,i<0&&(i=0)):i>r&&(i=r),i<n&&(i=n);const c=this.subarray(n,i);return Object.setPrototypeOf(c,p.prototype),c};function T(o,n,i){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+n>i)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,g=0;for(;++g<i&&(_*=256);)c+=this[n+g]*_;return c},p.prototype.readUintBE=p.prototype.readUIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n+--i],_=1;for(;i>0&&(_*=256);)c+=this[n+--i]*_;return c},p.prototype.readUint8=p.prototype.readUInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]|this[n+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]<<8|this[n+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},p.prototype.readBigUInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,_=this[++n]+this[++n]*2**8+this[++n]*2**16+r*2**24;return BigInt(c)+(BigInt(_)<<BigInt(32))}),p.prototype.readBigUInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],_=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r;return(BigInt(c)<<BigInt(32))+BigInt(_)}),p.prototype.readIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,g=0;for(;++g<i&&(_*=256);)c+=this[n+g]*_;return _*=128,c>=_&&(c-=Math.pow(2,8*i)),c},p.prototype.readIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=i,_=1,g=this[n+--c];for(;c>0&&(_*=256);)g+=this[n+--c]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*i)),g},p.prototype.readInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},p.prototype.readInt16LE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n]|this[n+1]<<8;return r&32768?r|4294901760:r},p.prototype.readInt16BE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n+1]|this[n]<<8;return r&32768?r|4294901760:r},p.prototype.readInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},p.prototype.readInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},p.prototype.readBigInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(r<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),p.prototype.readBigInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=(i<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(c)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r)}),p.prototype.readFloatLE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!0,23,4)},p.prototype.readFloatBE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!1,23,4)},p.prototype.readDoubleLE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!0,52,8)},p.prototype.readDoubleBE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!1,52,8)};function A(o,n,i,r,c,_){if(!p.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>c||n<_)throw new RangeError('"value" argument is out of bounds');if(i+r>o.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;A(this,n,i,r,y,0)}let _=1,g=0;for(this[i]=n&255;++g<r&&(_*=256);)this[i+g]=n/_&255;return i+r},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;A(this,n,i,r,y,0)}let _=r-1,g=1;for(this[i+_]=n&255;--_>=0&&(g*=256);)this[i+_]=n/g&255;return i+r},p.prototype.writeUint8=p.prototype.writeUInt8=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,1,255,0),this[i]=n&255,i+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,65535,0),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255,i+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4};function Xe(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_;let g=Number(n>>BigInt(32)&BigInt(4294967295));return o[i++]=g,g=g>>8,o[i++]=g,g=g>>8,o[i++]=g,g=g>>8,o[i++]=g,i}function Ze(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i+7]=_,_=_>>8,o[i+6]=_,_=_>>8,o[i+5]=_,_=_>>8,o[i+4]=_;let g=Number(n>>BigInt(32)&BigInt(4294967295));return o[i+3]=g,g=g>>8,o[i+2]=g,g=g>>8,o[i+1]=g,g=g>>8,o[i]=g,i+8}p.prototype.writeBigUInt64LE=U(function(n,i=0){return Xe(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=U(function(n,i=0){return Ze(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);A(this,n,i,r,S-1,-S)}let _=0,g=1,y=0;for(this[i]=n&255;++_<r&&(g*=256);)n<0&&y===0&&this[i+_-1]!==0&&(y=1),this[i+_]=(n/g>>0)-y&255;return i+r},p.prototype.writeIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);A(this,n,i,r,S-1,-S)}let _=r-1,g=1,y=0;for(this[i+_]=n&255;--_>=0&&(g*=256);)n<0&&y===0&&this[i+_+1]!==0&&(y=1),this[i+_]=(n/g>>0)-y&255;return i+r},p.prototype.writeInt8=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=n&255,i+1},p.prototype.writeInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,32767,-32768),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,2147483647,-2147483648),this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},p.prototype.writeInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4},p.prototype.writeBigInt64LE=U(function(n,i=0){return Xe(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=U(function(n,i=0){return Ze(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(o,n,i,r,c,_){if(i+r>o.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function et(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,4),s.write(o,n,i,r,23,4),i+4}p.prototype.writeFloatLE=function(n,i,r){return et(this,n,i,!0,r)},p.prototype.writeFloatBE=function(n,i,r){return et(this,n,i,!1,r)};function tt(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,8),s.write(o,n,i,r,52,8),i+8}p.prototype.writeDoubleLE=function(n,i,r){return tt(this,n,i,!0,r)},p.prototype.writeDoubleBE=function(n,i,r){return tt(this,n,i,!1,r)},p.prototype.copy=function(n,i,r,c){if(!p.isBuffer(n))throw new TypeError("argument should be a Buffer");if(r||(r=0),!c&&c!==0&&(c=this.length),i>=n.length&&(i=n.length),i||(i=0),c>0&&c<r&&(c=r),c===r||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),n.length-i<c-r&&(c=n.length-i+r);const _=c-r;return this===n&&typeof d.prototype.copyWithin=="function"?this.copyWithin(i,r,c):d.prototype.set.call(n,this.subarray(r,c),i),_},p.prototype.fill=function(n,i,r,c){if(typeof n=="string"){if(typeof i=="string"?(c=i,i=0,r=this.length):typeof r=="string"&&(c=r,r=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!p.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(n.length===1){const g=n.charCodeAt(0);(c==="utf8"&&g<128||c==="latin1")&&(n=g)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(i<0||this.length<i||this.length<r)throw new RangeError("Out of range index");if(r<=i)return this;i=i>>>0,r=r===void 0?this.length:r>>>0,n||(n=0);let _;if(typeof n=="number")for(_=i;_<r;++_)this[_]=n;else{const g=p.isBuffer(n)?n:p.from(n,c),y=g.length;if(y===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(_=0;_<r-i;++_)this[_+i]=g[_%y]}return this};const Q={};function ge(o,n,i){Q[o]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(o,n){return`The "${o}" argument must be of type number. Received type ${typeof n}`},TypeError),ge("ERR_OUT_OF_RANGE",function(o,n,i){let r=`The value of "${o}" is out of range.`,c=i;return Number.isInteger(i)&&Math.abs(i)>2**32?c=nt(String(i)):typeof i=="bigint"&&(c=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(c=nt(c)),c+="n"),r+=` It must be ${n}. Received ${c}`,r},RangeError);function nt(o){let n="",i=o.length;const r=o[0]==="-"?1:0;for(;i>=r+4;i-=3)n=`_${o.slice(i-3,i)}${n}`;return`${o.slice(0,i)}${n}`}function Qo(o,n,i){G(n,"offset"),(o[n]===void 0||o[n+i]===void 0)&&X(n,o.length-(i+1))}function at(o,n,i,r,c,_){if(o>i||o<n){const g=typeof n=="bigint"?"n":"";let y;throw _>3?n===0||n===BigInt(0)?y=`>= 0${g} and < 2${g} ** ${(_+1)*8}${g}`:y=`>= -(2${g} ** ${(_+1)*8-1}${g}) and < 2 ** ${(_+1)*8-1}${g}`:y=`>= ${n}${g} and <= ${i}${g}`,new Q.ERR_OUT_OF_RANGE("value",y,o)}Qo(r,c,_)}function G(o,n){if(typeof o!="number")throw new Q.ERR_INVALID_ARG_TYPE(n,"number",o)}function X(o,n,i){throw Math.floor(o)!==o?(G(o,i),new Q.ERR_OUT_OF_RANGE(i||"offset","an integer",o)):n<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${n}`,o)}const Go=/[^+/0-9A-Za-z-_]/g;function Wo(o){if(o=o.split("=")[0],o=o.trim().replace(Go,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function he(o,n){n=n||1/0;let i;const r=o.length;let c=null;const _=[];for(let g=0;g<r;++g){if(i=o.charCodeAt(g),i>55295&&i<57344){if(!c){if(i>56319){(n-=3)>-1&&_.push(239,191,189);continue}else if(g+1===r){(n-=3)>-1&&_.push(239,191,189);continue}c=i;continue}if(i<56320){(n-=3)>-1&&_.push(239,191,189),c=i;continue}i=(c-55296<<10|i-56320)+65536}else c&&(n-=3)>-1&&_.push(239,191,189);if(c=null,i<128){if((n-=1)<0)break;_.push(i)}else if(i<2048){if((n-=2)<0)break;_.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;_.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;_.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return _}function Yo(o){const n=[];for(let i=0;i<o.length;++i)n.push(o.charCodeAt(i)&255);return n}function Xo(o,n){let i,r,c;const _=[];for(let g=0;g<o.length&&!((n-=2)<0);++g)i=o.charCodeAt(g),r=i>>8,c=i%256,_.push(c),_.push(r);return _}function it(o){return a.toByteArray(Wo(o))}function re(o,n,i,r){let c;for(c=0;c<r&&!(c+i>=n.length||c>=o.length);++c)n[c+i]=o[c];return c}function q(o,n){return o instanceof n||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===n.name}function fe(o){return o!==o}const Zo=function(){const o="0123456789abcdef",n=new Array(256);for(let i=0;i<16;++i){const r=i*16;for(let c=0;c<16;++c)n[r+c]=o[i]+o[c]}return n}();function U(o){return typeof BigInt>"u"?Jo:o}function Jo(){throw new Error("BigInt not supported")}})(je);const jt=je.Buffer,ie={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(e){this.code_verifier=$.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await $.pkceChallengeFromVerifier(this.code_verifier);const a=Y.Capacitor.getPlatform();let s=jt.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");e=`${e}&RelayState=${s}`;let u=this;window.addEventListener("message",async l=>{var d;if(!this.allowedOrigins.includes(l.origin))return console.log("Origin is not allowed!");if(l.data.type==="saml"&&l.data.code){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:l.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await u.exchangeAuthCode({code:l.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await J.Browser.open({url:e,presentationStyle:"popover"}):window.open(e,"popup","width=600,height=600")},async handleSamlRedirect(){var s;let e,a={type:"saml"};if(this.$route.query.code&&(a.code=this.$route.query.code),window.opener)window.opener.postMessage(a,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(e=this.$route.query.code),console.log(this.display,{code:e}),e){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:e,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:e,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Nt={name:"AuthLogin",mixins:[Be,Pe,xe,te,ne,ie,B,{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 t.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=e.length;let s="";const u=new Uint32Array(32);return window.crypto.getRandomValues(u),u.forEach(l=>{s+=e.charAt(l%a)}),s},refreshQrCode(){var e,a;this.qrCode&&((a=(e=document.getElementById("qrCodeContainer"))==null?void 0:e.childNodes[0])==null||a.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new ct({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[e,a]=await w(ce.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(e)return this.errorHandler(e);a.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...a,isModal:this.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...a,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await t.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 e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.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&&k.$emit("ssoEvent",{name:"setLoading",data:!1}),k.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let a={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?a.email=this.emailOrUsername:a.username=this.emailOrUsername;const[s,u]=await w(this.login(a));s&&console.error(s),this.submitted=!1,u===!0&&(this.emailOrUsername="",this.password="")},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(e){e.includes("@")&&(this.$storage.verifyEmail=e)},"$route.path":async function(e){if(e==="/login/callback/okta")return await this.handleOktaRedirect();if(e==="/login/callback/saml")return await this.handleSamlRedirect()}}},Vt=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Mt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},qt=t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Rt={key:1},Dt={class:"page-login-field half-top"},Ut=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ot=["placeholder"],Ft=t.createElementVNode("em",null,null,-1),Kt={class:"page-login-field half-bottom"},$t=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ht=["type","placeholder"],Qt={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Gt={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Wt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Yt={key:0},Xt={key:1,class:"button--loading button__loader"},Zt=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Jt=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),en={key:0},tn={key:1,class:"button--loading button__loader"},nn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),an={key:0},on={key:1,class:"button--loading-black button__loader"},rn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),sn={key:0},cn={key:1,class:"button--loading-black button__loader"},ln=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),dn={key:0},pn={key:1,class:"button--loading-black button__loader"},un=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),_n={key:0},mn={key:1,class:"button--loading-black button__loader"},gn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),hn={key:0},fn={key:1,class:"button--loading-black button__loader"},kn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),yn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),bn={class:"close-text center-text half-top color-black"},wn=t.createElementVNode("br",null,null,-1),vn={class:"",href:"https://tapni.co/policies/terms-of-service"},En={href:"https://tapni.co/policies/privacy-policy"},zn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Sn={key:9,class:"page-login-links"},Ln=t.createElementVNode("div",{class:"clear"},null,-1),Cn={class:"forgot center-text pointer small-top"},Tn=t.createElementVNode("br",null,null,-1),In=t.createElementVNode("div",{class:"clear"},null,-1);function An(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[13]||(a[13]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Vt)):t.createCommentVNode("",!0),t.createElementVNode("h1",Mt,t.toDisplayString(this.ssoLang[this.appLanguage].login),1),qt,d.displayFormLogin?(t.openBlock(),t.createElementBlock("span",Rt,[t.createElementVNode("div",Dt,[Ut,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.emailOrUsername=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:e.ssoLang[this.appLanguage].email_username,required:""},null,40,Ot),[[t.vModelText,l.emailOrUsername]]),Ft]),t.createElementVNode("div",Kt,[$t,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ht),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Qt,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Gt,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Wt,[l.submitted?(t.openBlock(),t.createElementBlock("span",Xt)):(t.openBlock(),t.createElementBlock("span",Yt,t.toDisplayString(e.ssoLang[e.appLanguage].login),1))])])):t.createCommentVNode("",!0),Zt,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[5]||(a[5]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[Jt,e.appleLoad?(t.openBlock(),t.createElementBlock("span",tn)):(t.openBlock(),t.createElementBlock("span",en,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Apple",1))])):t.createCommentVNode("",!0),e.displayGoogleLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[6]||(a[6]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[nn,e.googleLoad?(t.openBlock(),t.createElementBlock("span",on)):(t.openBlock(),t.createElementBlock("span",an,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Google",1))])):t.createCommentVNode("",!0),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[7]||(a[7]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[rn,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",cn)):(t.openBlock(),t.createElementBlock("span",sn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Facebook",1))])):t.createCommentVNode("",!0),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:5,onClick:a[8]||(a[8]=(...m)=>e.microsoftLogin&&e.microsoftLogin(...m)),class:"button-center button button-90 google-button pointer"},[ln,e.microsoftLoad?(t.openBlock(),t.createElementBlock("span",pn)):(t.openBlock(),t.createElementBlock("span",dn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Outlook",1))])),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:6,onClick:a[9]||(a[9]=(...m)=>e.ssoLogin&&e.ssoLogin(...m)),class:"button-center button button-90 google-button pointer"},[un,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",mn)):(t.openBlock(),t.createElementBlock("span",_n,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1))])),e.displayMicrosoftSSOLogin?(t.openBlock(),t.createElementBlock("a",{key:7,onClick:a[10]||(a[10]=m=>e.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[gn,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",hn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1)):(t.openBlock(),t.createElementBlock("span",fn))])):t.createCommentVNode("",!0),d.displayFormLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:8,onClick:a[11]||(a[11]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[kn,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Email",1)])),yn,t.createElementVNode("p",bn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].terms_by_signing_in)+" ",1),wn,t.createElementVNode("a",vn,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].and)+" ",1),t.createElementVNode("a",En,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),zn,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:10,class:"page-login-links",onClick:a[12]||(a[12]=(...m)=>d.createAccountModal&&d.createAccountModal(...m))},[t.createElementVNode("a",Cn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].or)+" ",1),Tn,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].create_new_account),1)]),In])):(t.openBlock(),t.createElementBlock("div",Sn,[d.displayRegisterLogin?(t.openBlock(),t.createBlock(h,{key:0,class:"forgot float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].create_account),1)]),_:1})):t.createCommentVNode("",!0),d.displayResetPasswordLogin?(t.openBlock(),t.createBlock(h,{key:1,class:"create float-left",to:"/reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].reset_password),1)]),_:1})):t.createCommentVNode("",!0),Ln]))],36)}const Ve=V(Nt,[["render",An]]),Bn={name:"AuthRegister",mixins:[Be,Pe,xe,te,B],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&&k.$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.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let e={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},a=await this.register(e);this.submitted=!1,a.data&&a.data.success&&(a.data.message==="SUCCESS_REGISTER"?(this.isModal?k.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):a.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...a,isModal:e.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...a,isModal:e.isModal})))},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(e){this.$storage.verifyEmail=e},referral(e){this.$storage.referral=e}}},Pn=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],xn={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},jn={class:"half-bottom small-top center-text color-black"},Nn={key:0},Vn=t.createElementVNode("br",null,null,-1),Mn={key:1},qn={class:"page-login-field half-top"},Rn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Dn=["placeholder"],Un=t.createElementVNode("em",null,null,-1),On={class:"page-login-field half-top"},Fn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Kn=["placeholder","disabled"],$n=t.createElementVNode("em",null,null,-1),Hn={class:"page-login-field half-top half-bottom"},Qn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Gn=["type","placeholder"],Wn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Yn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Xn={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Zn={key:0},Jn={key:1,class:"button--loading button__loader"},ea=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ta=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),na={key:0},aa={key:1,class:"button--loading button__loader"},ia=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading button__loader"},sa=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading button__loader"},da=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ua={class:"close-text center-text half-top color-black"},_a=t.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:5,class:"page-login-links"},ka=t.createElementVNode("div",{class:"clear"},null,-1),ya={class:"forgot center-text pointer small-top"},ba=t.createElementVNode("br",null,null,-1),wa=t.createElementVNode("div",{class:"clear"},null,-1);function va(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[12]||(a[12]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Pn)):t.createCommentVNode("",!0),t.createElementVNode("h1",xn,t.toDisplayString(e.ssoLang[this.appLanguage].register),1),t.createElementVNode("p",jn,[l.usernameRegister?(t.openBlock(),t.createElementBlock("span",Nn,[t.createTextVNode(" t.link/"+t.toDisplayString(l.username)+" "+t.toDisplayString(e.ssoLang[this.appLanguage].username_is_free)+" β
",1),Vn])):t.createCommentVNode("",!0)]),l.emailLogin?(t.openBlock(),t.createElementBlock("span",Mn,[t.createElementVNode("div",qn,[Rn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Dn),[[t.vModelText,l.email]]),Un]),t.createElementVNode("div",On,[Fn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.username=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:e.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:l.usernameRegister,class:t.normalizeClass({"input-disabled":l.usernameRegister})},null,42,Kn),[[t.vModelText,l.username]]),$n]),t.createElementVNode("div",Hn,[Qn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Gn),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Wn,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Yn,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Xn,[l.submitted?(t.openBlock(),t.createElementBlock("span",Jn)):(t.openBlock(),t.createElementBlock("span",Zn,t.toDisplayString(l.formButtonText),1))])])):t.createCommentVNode("",!0),ea,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[7]||(a[7]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ta,e.appleLoad?(t.openBlock(),t.createElementBlock("span",aa)):(t.openBlock(),t.createElementBlock("span",na,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):t.createCommentVNode("",!0),t.createElementVNode("a",{onClick:a[8]||(a[8]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ia,e.googleLoad?(t.openBlock(),t.createElementBlock("span",ra)):(t.openBlock(),t.createElementBlock("span",oa,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[9]||(a[9]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[sa,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",la)):(t.openBlock(),t.createElementBlock("span",ca,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):t.createCommentVNode("",!0),l.emailLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[10]||(a[10]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),pa,t.createElementVNode("p",ua,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].terms_by_registering)+" ",1),_a,t.createElementVNode("a",ma,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].and)+" ",1),t.createElementVNode("a",ga,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ha,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:6,class:"page-login-links",onClick:a[11]||(a[11]=(...m)=>d.loginAccountModal&&d.loginAccountModal(...m))},[t.createElementVNode("a",ya,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),ba,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].sign_in_with_new),1)]),wa])):(t.openBlock(),t.createElementBlock("div",fa,[t.createVNode(h,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),ka]))],36)}const Me=V(Bn,[["render",va]]),Ea={name:"AuthVerify",mixins:[B],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),k.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let e={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let a=await this.verify(e);this.submitted=!1,a&&a.data&&a.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",k.$emit("closeModal")),await this.loginSetup(a),this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+a.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(e){e&&(this.email=e)},"route.name"(e,a){!a&&e&&this.init()},"route.query":{handler(e){this.isEmpty(e)||this.init()},deep:!0}}},j=e=>(t.pushScopeId("data-v-af1531aa"),e=e(),t.popScopeId(),e),za=[j(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.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=j(()=>t.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),Ca={class:"page-login-field half-top"},Ta=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ia=["placeholder"],Aa=j(()=>t.createElementVNode("em",null,null,-1)),Ba={class:"page-login-field half-top"},Pa=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),xa=["placeholder"],ja=j(()=>t.createElementVNode("em",null,null,-1)),Na={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Va={key:0,class:"uppercase"},Ma={key:1,class:"button--loading button__loader"},qa=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Ra={class:"close-text center-text half-top color-black"},Da=["innerHTML"],Ua=j(()=>t.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Oa=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Fa={key:1,class:"page-login-links"},Ka=j(()=>t.createElementVNode("div",{class:"clear"},null,-1)),$a={class:"forgot center-text pointer small-top"},Ha=j(()=>t.createElementVNode("br",null,null,-1)),Qa=j(()=>t.createElementVNode("div",{class:"clear"},null,-1));function Ga(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[6]||(a[6]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},za)):t.createCommentVNode("",!0),t.createElementVNode("h1",Sa,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1),La,t.createElementVNode("div",Ca,[Ta,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,Ia),[[t.vModelText,l.email]]),Aa]),t.createElementVNode("div",Ba,[Pa,t.withDirectives(t.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":a[3]||(a[3]=m=>l.code=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:e.ssoLang[this.appLanguage].code,required:""},null,40,xa),[[t.vModelText,l.code]]),ja]),t.createElementVNode("button",Na,[l.submitted?(t.openBlock(),t.createElementBlock("span",Ma)):(t.openBlock(),t.createElementBlock("span",Va,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1))]),qa,t.createElementVNode("p",Ra,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].verify_account_p1},null,8,Da),Ua]),Oa,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:2,class:"page-login-links",onClick:a[5]||(a[5]=(...m)=>d.registerAccountModal&&d.registerAccountModal(...m))},[t.createElementVNode("a",$a,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),Ha,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].create_new_account),1)]),Qa])):(t.openBlock(),t.createElementBlock("div",Fa,[t.createVNode(h,{class:"create float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].register),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ka]))],36)}const qe=V(Ea,[["render",Ga],["__scopeId","data-v-af1531aa"]]),Wa={name:"AuthReset",mixins:[B],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),k.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let e={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(e),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.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let e={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},a=await this.changePassword(e);this.submitted=!1,a===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(e){this.$storage.verifyEmail=e}}},R=e=>(t.pushScopeId("data-v-4f85b89a"),e=e(),t.popScopeId(),e),Ya={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Xa=R(()=>t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),Za={class:"page-login-field half-top color-black"},Ja=R(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),ei=["placeholder"],ti=R(()=>t.createElementVNode("em",null,null,-1)),ni={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},ai={key:0,class:"uppercase"},ii={key:1,class:"button--loading button__loader"},oi=R(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),ri={class:"close-text center-text half-top color-black"},si=["innerHTML"],ci=["href"],li=R(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),di={class:"page-login-links"},pi=R(()=>t.createElementVNode("div",{class:"clear"},null,-1)),ui={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},_i={class:"half-bottom small-top center-text color-black"},mi={class:"page-login-field half-top"},gi=R(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),hi=["type","placeholder"],fi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},ki={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},yi={class:"page-login-field half-top"},bi=R(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),wi=["type","placeholder"],vi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ei={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},zi={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Si={key:0,class:"uppercase"},Li={key:1,class:"button--loading button__loader"},Ci=R(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Ti={class:"close-text center-text half-top color-black"},Ii=["innerHTML"],Ai=["href"];function Bi(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return l.passwordChange?(t.openBlock(),t.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:a[7]||(a[7]=t.withModifiers((...m)=>d.changePw&&d.changePw(...m),["prevent"]))},[t.createElementVNode("h3",ui,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1),t.createElementVNode("p",_i,t.toDisplayString(e.ssoLang[this.appLanguage].password_new),1),t.createElementVNode("div",mi,[gi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,required:""},null,8,hi),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword)},[t.withDirectives(t.createElementVNode("img",fi,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",ki,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("div",yi,[bi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.passwordRepeat=m),type:l.revealPassword2?"text":"password",placeholder:e.ssoLang[this.appLanguage].password_repeat,required:""},null,8,wi),[[t.vModelDynamic,l.passwordRepeat]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword2=!l.revealPassword2)},[t.withDirectives(t.createElementVNode("img",vi,null,512),[[t.vShow,!l.revealPassword2]]),t.withDirectives(t.createElementVNode("img",Ei,null,512),[[t.vShow,l.revealPassword2]])])]),t.createElementVNode("button",zi,[l.submitted?(t.openBlock(),t.createElementBlock("span",Li)):(t.openBlock(),t.createElementBlock("span",Si,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1))]),Ci,t.createElementVNode("p",Ti,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p2},null,8,Ii),t.createTextVNode(),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Ai)])],32)):(t.openBlock(),t.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:a[2]||(a[2]=t.withModifiers((...m)=>d.resetEmail&&d.resetEmail(...m),["prevent"])),autocomplete:"on"},[t.createElementVNode("h3",Ya,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1),Xa,t.createElementVNode("div",Za,[Ja,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[0]||(a[0]=m=>l.email=m),onKeydown:a[1]||(a[1]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,ei),[[t.vModelText,l.email]]),ti]),t.createElementVNode("button",ni,[l.submitted?(t.openBlock(),t.createElementBlock("span",ii)):(t.openBlock(),t.createElementBlock("span",ai,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1))]),oi,t.createElementVNode("p",ri,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p1},null,8,si),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,ci)]),li,t.createElementVNode("div",di,[t.createVNode(h,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),pi])],32))}const Re=V(Wa,[["render",Bi],["__scopeId","data-v-4f85b89a"]]),Pi={name:"AuthCallback",mixins:[ne,ie,B],data(){return{}},async mounted(){if(console.log("ee"),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 e=lt.sanitizeUrl(location.href);return e=e.replace("http","tapni"),e=e.replace("https","tapni"),window.open(e)}}},xi={class:"page-login content-boxed content-boxed-padding"},ji={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Ni=t.createElementVNode("br",null,null,-1),Vi={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Mi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",xi,[(e.$route.query.platform==="android"||e.$route.query.platform==="ios")&&!e.isNative?(t.openBlock(),t.createElementBlock("h5",ji,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].you_will_be_redirected),1),Ni,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),t.createElementVNode("span",{onClick:a[0]||(a[0]=(...h)=>d.inAppRedirect&&d.inAppRedirect(...h)),style:{color:"blue",cursor:"pointer"}},t.toDisplayString(e.ssoLang[this.appLanguage].click_here),1),t.createTextVNode(".")])):(t.openBlock(),t.createElementBlock("h4",Vi,t.toDisplayString(e.ssoLang[this.appLanguage].please_wait),1))])}const De=V(Pi,[["render",Mi]]),qi={name:"ModalOverlay",mixins:[B],data(){return{toggle:!1}},mounted(){k.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),k.$on("openModalOverlay",()=>{this.toggle=!0}),k.$on("toggleLanguageModal",this.toggleModal),k.$on("toggleSSOModal",this.toggleModal),k.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(e=!0){e&&(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 e,a;!this.isLoggedIn&&((a=(e=this.user)==null?void 0:e.lead_form)!=null&&a.forceFilling)||k.$emit("closeModal")}}};function Ri(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":l.toggle}),onClick:a[0]||(a[0]=(...h)=>d.toggleEmit&&d.toggleEmit(...h))},null,2)}const Ue=V(qi,[["render",Ri],["__scopeId","data-v-a128c2fa"]]),Di={name:"SSO",mixins:[te,ne,ie,B],data(){return{toggle:!1,email:"",loading:!1}},mounted(){k.$on("toggleSSOModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const e=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let a;if(!(!e||e.error))if(a=Object.keys(e.sso),a.length)a.length<=1?(a[0]==="azure"&&this.microsoftLogin("sso",e.sso.azure.sso),a[0]==="okta"&&this.oktaLogin(e.sso.okta.sso),a[0]==="saml"&&this.samlLogin(e.sso.saml.sso.loginUrl)):(this.forceClose(),k.$emit("toggleSSOPickModal",{sso:e.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Ui=[(e=>(t.pushScopeId("data-v-11f19a09"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Oi={class:"bold center-text color-black half-top half-bottom"},Fi=["placeholder"],Ki={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},$i={key:0},Hi={key:1,class:"button--loading button__loader"};function Qi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("form",{onSubmit:a[3]||(a[3]=t.withModifiers((...h)=>d.submit&&d.submit(...h),["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...h)=>d.forceClose&&d.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Ui),t.createElementVNode("h3",Oi,t.toDisplayString(e.ssoLang[e.appLanguage].enter_company_email),1),t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=h=>l.email=h),placeholder:e.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Fi),[[t.vModelText,l.email]])]),t.createElementVNode("button",Ki,[l.loading?(t.openBlock(),t.createElementBlock("span",Hi)):(t.openBlock(),t.createElementBlock("span",$i,t.toDisplayString(e.ssoLang[e.appLanguage].continue),1))])],34)}const Oe=V(Di,[["render",Qi],["__scopeId","data-v-11f19a09"]]),Gi={name:"SSOPick",mixins:[te,ne,ie,B],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){k.$on("toggleSSOPickModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOPickModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(e){e==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),e==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),e==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(e){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,e&&(this.sso=e.sso,this.email=e.email),this.toggle=!this.toggle}}},oe=e=>(t.pushScopeId("data-v-4f821f65"),e=e(),t.popScopeId(),e),Wi=[oe(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Yi={class:"bold center-text color-black half-top half-bottom"},Xi=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Zi={key:0},Ji={key:1,class:"button--loading button__loader"},eo=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),to={key:0},no={key:1,class:"button--loading button__loader"},ao=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),io={key:0},oo={key:1,class:"button--loading button__loader"};function ro(e,a,s,u,l,d){var h,m,f;return t.openBlock(),t.createElementBlock("form",{onSubmit:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...v)=>d.forceClose&&d.forceClose(...v)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Wi),t.createElementVNode("h3",Yi,t.toDisplayString(e.ssoLang[e.appLanguage].select_sign_method),1),(h=l.sso)!=null&&h.azure?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=v=>d.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Xi,l.azureLoad?(t.openBlock(),t.createElementBlock("span",Ji)):(t.openBlock(),t.createElementBlock("span",Zi,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Azure",1))])):t.createCommentVNode("",!0),(m=l.sso)!=null&&m.okta?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:a[2]||(a[2]=v=>d.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[eo,l.oktaLoad?(t.openBlock(),t.createElementBlock("span",no)):(t.openBlock(),t.createElementBlock("span",to,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Okta",1))])):t.createCommentVNode("",!0),(f=l.sso)!=null&&f.saml?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[3]||(a[3]=v=>d.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[ao,l.samlLoad?(t.openBlock(),t.createElementBlock("span",oo)):(t.openBlock(),t.createElementBlock("span",io,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SAML",1))])):t.createCommentVNode("",!0)],34)}const Fe=V(Gi,[["render",ro],["__scopeId","data-v-4f821f65"]]),so={name:"LinkIcon",mixins:[B],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.appLanguage!=="en"&&this.data.text?this.ssoLang[this.appLanguage]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},co=["src","alt"],lo=["src","alt"],po=["src","alt"],uo=["src","alt"];function _o(e,a,s,u,l,d){var h,m;return t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["disable-select",s.linkStyle+(s.disabled?" opacity-50":"")]),style:t.normalizeStyle((s.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[t.createElementVNode("span",{class:t.normalizeClass({"user-link-img":!0,"pulse pulse-border":s.pulse,"link-drag":s.editing}),style:t.normalizeStyle({...(h=s.customLinkStyle)==null?void 0:h.linkIcon})},[!s.data.custom_icon&&s.data.type!=="customlink"?(t.openBlock(),t.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+s.data.type+".png",class:"responsive-image",alt:s.data.text,onLoad:a[0]||(a[0]=f=>e.$emit("loaded")),onError:a[1]||(a[1]=f=>e.$emit("loaded"))},null,40,co)):!s.data.custom_icon&&s.data.type==="customlink"&&s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:s.data.text,onLoad:a[2]||(a[2]=f=>e.$emit("loaded")),onError:a[3]||(a[3]=f=>e.$emit("loaded"))},null,40,lo)):!s.data.custom_icon&&s.data.type==="customlink"&&!s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:s.data.text,onLoad:a[4]||(a[4]=f=>e.$emit("loaded")),onError:a[5]||(a[5]=f=>e.$emit("loaded"))},null,40,po)):(t.openBlock(),t.createElementBlock("img",{key:3,src:s.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:s.data.text,onLoad:a[6]||(a[6]=f=>e.$emit("loaded")),onError:a[7]||(a[7]=f=>e.$emit("loaded"))},null,40,uo))],6),t.createElementVNode("span",{class:"link-text link-drag color-black",style:t.normalizeStyle({color:(m=s.customLinkStyle)==null?void 0:m.color})},t.toDisplayString(d.linkText),5)],6)}const mo=V(so,[["render",_o]]),go={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:""},ho={name:"Language",mixins:[B],components:{LinkIcon:mo},data(){return{toggle:!1}},async mounted(){k.$on("toggleLanguageModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1});let e=this.isNative?await Z.Device.getLanguageCode():$.getFirstBrowserLanguage();e&&go.SUPPORTED_LANGUAGES.includes(e)&&this.updateLanguage(e)},beforeDestroy(){k._events.toggleLanguageModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(e){k.$emit("updateLang",e),k.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},fo=[(e=>(t.pushScopeId("data-v-34a6b7b2"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 fa color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],ko={class:"bold center-text color-black small-bottom"};function yo(e,a,s,u,l,d){const h=t.resolveComponent("LinkIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},fo),t.createElementVNode("h3",ko,t.toDisplayString(e.ssoLang[e.appLanguage].app_language),1),t.createVNode(h,{onClick:a[1]||(a[1]=m=>d.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:e.ssoLang[this.appLanguage].english},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[2]||(a[2]=m=>d.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:e.ssoLang[this.appLanguage].spanish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[3]||(a[3]=m=>d.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:e.ssoLang[this.appLanguage].german},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[4]||(a[4]=m=>d.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:e.ssoLang[this.appLanguage].italian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[5]||(a[5]=m=>d.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:e.ssoLang[this.appLanguage].french},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[6]||(a[6]=m=>d.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:e.ssoLang[this.appLanguage].korean},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[7]||(a[7]=m=>d.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:e.ssoLang[this.appLanguage].serbian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[8]||(a[8]=m=>d.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:e.ssoLang[this.appLanguage].turkish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const Ke=V(ho,[["render",yo],["__scopeId","data-v-34a6b7b2"]]);var bo={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 wo={id:"ssoapp"},vo={key:0,href:"/",class:"header-logo"},Eo=[t.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+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KFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],zo={class:"lang-icon"},So={class:"snackbar snackbar-boxed",id:"snackbar"},Lo={class:"snack-body",id:"errorSnack"},Co={id:"errorMessage"},To=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Io={class:"snack-body",id:"successSnack"},Ao={id:"successMessage"},Bo=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],$e=Object.assign({name:"TapniAuth",mixins:[B],data(){return{isSetup:!1}},components:{Language:Ke,SSOPick:Fe,SSO:Oe,ModalOverlay:Ue,AuthCallback:De,AuthReset:Re,AuthVerify:qe,AuthRegister:Me,AuthLogin:Ve,AuthWelcome:Ae},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),k.$on("ssoEvent",this.ssoOutgoingEvent),k.$on("ssoLogout",e=>this.logout(e)),k.$on("getLoggedInAccounts",e=>this.getLoggedInAccounts(e)),k.$on("refreshTokenAction",e=>this.refreshTokenAction(e))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const e=this.getRefreshTokens();this.setRefreshToken(e[0]),this.getLoggedInAccounts(),this.$emit("ssoLibraryReady")},ssoOutgoingEvent(e){this.$emit("ssoEvent",e)},ssoIncomingEvent(e){k.$emit(e.name,e.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){k.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(e){return document.addEventListener("DOMContentLoaded",function(){const a=document.createElement("script");a.src=`https://www.google.com/recaptcha/api.js?render=${bo.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(a)}),(a,s)=>(t.openBlock(),t.createElementBlock("div",wo,[a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",vo,Eo)):t.createCommentVNode("",!0),a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:s[0]||(s[0]=(...u)=>a.toggleLanguageModal&&a.toggleLanguageModal(...u)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[t.createElementVNode("span",zo,t.toDisplayString(a.appLanguage.toUpperCase()),1)])):t.createCommentVNode("",!0),t.createVNode(Ue),t.createVNode(Ke),t.createVNode(Oe),t.createVNode(Fe),a.initialized&&a.renderView==="AuthWelcome"?(t.openBlock(),t.createBlock(Ae,{key:2})):a.initialized&&a.renderView==="AuthLogin"?(t.openBlock(),t.createBlock(Ve,{key:3,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthRegister"?(t.openBlock(),t.createBlock(Me,{key:4,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthVerify"?(t.openBlock(),t.createBlock(qe,{key:5,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthReset"?(t.openBlock(),t.createBlock(Re,{key:6})):a.initialized&&a.renderView==="AuthCallback"?(t.openBlock(),t.createBlock(De,{key:7})):(t.openBlock(),t.createBlock(t.unref(W.RouterView),{key:8})),t.createElementVNode("div",So,[t.createElementVNode("p",Lo,[t.createElementVNode("span",Co,t.toDisplayString(a.ssoLang[a.appLanguage].error),1),t.createElementVNode("a",{onClick:s[1]||(s[1]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},To)]),t.createElementVNode("p",Io,[t.createElementVNode("span",Ao,t.toDisplayString(a.ssoLang[a.appLanguage].success),1),t.createElementVNode("a",{onClick:s[2]||(s[2]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},Bo)])])]))}});return{TapniAuth:$e,install:e=>{e.component("TapniAuth",$e)}}});
|