@tapni/auth 0.0.87 β 0.0.88
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 +4 -5
- package/dist/TapniAuth.umd.js +3 -3
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/mixins/auth.mixin.js +2 -2
package/dist/TapniAuth.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
|
|
|
8
8
|
import { Browser as hn } from "@capacitor/browser";
|
|
9
9
|
import $o from "qr-code-styling";
|
|
10
10
|
import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
|
|
11
|
-
const Xo = "0.0.
|
|
11
|
+
const Xo = "0.0.88";
|
|
12
12
|
let Un;
|
|
13
13
|
const Ft = {
|
|
14
14
|
setApiRootFromOptions(n) {
|
|
@@ -4597,9 +4597,8 @@ const ze = {
|
|
|
4597
4597
|
if (t.data.success)
|
|
4598
4598
|
return t.data;
|
|
4599
4599
|
},
|
|
4600
|
-
async getLoggedInAccounts() {
|
|
4601
|
-
|
|
4602
|
-
if (n && n.length >= 1) {
|
|
4600
|
+
async getLoggedInAccounts(n) {
|
|
4601
|
+
if (n || (n = this.getRefreshTokens()), n && n.length >= 1) {
|
|
4603
4602
|
const [e, t] = await Z(
|
|
4604
4603
|
Ne.getLoggedInAccounts({ refreshTokens: n }, this.$storage)
|
|
4605
4604
|
);
|
|
@@ -16654,7 +16653,7 @@ const Sd = { id: "ssoapp" }, Ad = {
|
|
|
16654
16653
|
return;
|
|
16655
16654
|
this.isSetup = !0, this.setToken(this.$storage.token);
|
|
16656
16655
|
const n = this.getRefreshTokens();
|
|
16657
|
-
this.setRefreshToken(n[0]), await this.getLoggedInAccounts(), this.$emit("ssoLibraryReady", this.$storage);
|
|
16656
|
+
this.setRefreshToken(n[0]), await this.getLoggedInAccounts(n), this.$emit("ssoLibraryReady", this.$storage);
|
|
16658
16657
|
},
|
|
16659
16658
|
ssoOutgoingEvent(n) {
|
|
16660
16659
|
this.$emit("ssoEvent", n);
|
package/dist/TapniAuth.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(c,Rt){typeof exports=="object"&&typeof module<"u"?module.exports=Rt(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@capacitor/browser","qr-code-styling","@braintree/sanitize-url"],Rt):(c=typeof globalThis<"u"?globalThis:c||self,c.TapniAuth=Rt(c.Vue,c.vueRouter,c.to,c.axios,c.jwtDecode,c.device,c.core,c.browser,c.QRCodeStyling,c.sanitizeUrl))})(this,function(c,Rt,$,fn,Kn,Vt,Ne,Gt,so,co){"use strict";const lo="0.0.
|
|
1
|
+
(function(c,Rt){typeof exports=="object"&&typeof module<"u"?module.exports=Rt(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@capacitor/browser","qr-code-styling","@braintree/sanitize-url"],Rt):(c=typeof globalThis<"u"?globalThis:c||self,c.TapniAuth=Rt(c.Vue,c.vueRouter,c.to,c.axios,c.jwtDecode,c.device,c.core,c.browser,c.QRCodeStyling,c.sanitizeUrl))})(this,function(c,Rt,$,fn,Kn,Vt,Ne,Gt,so,co){"use strict";const lo="0.0.88";let _n;const ht={setApiRootFromOptions(n){_n=n},instance(n,e=!1){const t=lo;let r="https://api.tapni.co/v1/";_n&&(r=_n);let o=fn.create({baseURL:r,headers:{...n?{Authorization:`Bearer ${n.token}`}:{},"X-Client-Name":"sso-"+t.platform,"X-Client-Version":t.version}});return o.interceptors.request.use(async function(i){if(["post","put","delete"].includes(i.method.toLowerCase())?i.data={...i.data,...n?{lang:n.appLanguage,realm:n.realm||"app"}:{}}:i.method.toLowerCase()==="get"&&(i.params={...i.params,...n?{lang:n.appLanguage,realm:n.realm||"app"}:{}}),n&&n.token&&!e){const a=Kn.jwtDecode(n.token);if(a.exp-30<Math.floor(Date.now()/1e3))return Ce.methods.refreshTokenAction(a).then(s=>(i.headers={...i.headers,Authorization:`Bearer ${s}`},i))}return i}),o}},je=ht.instance,mt={getMe(){return ht(storage).get("/users/me")},getByUsername(n,e){let t=document.referrer||"",r=n.utmParams||{};return n.dontTap&&(r.dontTap=!0),je(e).get(`/users/${n.username}`,{params:r,headers:{"X-Referer":t}})},getByNumber(n,e){let t=document.referrer||"",r=n.utmParams||{};return n.dontTap&&(r.dontTap=!0),je(e).get(`/users/tag/${n.serial}`,{params:r,headers:{"X-Referer":t}})},save(n,e){return je(e).put("/users",n)},newPassword(n,e){return je(e).put("/users/new-password",n)},connect(n,e){return je(e).post("/users/connect",n)},eventLog(n,e){return je(e).post("/users/log",n)},deleteAccount(n,e){return je(e).post("/users/profile/delete",n)},registerDevice(n,e){return je(e).post("/users/device/register",n)},addFcmToken(n,e){return je(e).post("/users/device/fcm",n)},loginUsingQR(n,e){return je(e).post("/users/qr/login",n)}},Vn=ht.instance,Gn={registerDevice(n,e){return Vn(e).post("/devices/add",n)},addFcmToken(n,e){return Vn(e).post("/devices/fcm/add",n)}},ue=ht.instance;let Oe;Vt.Device.getId().then(n=>Oe=n.uuid);const be={register(n,e){return n.device_id=Oe,ue(e).post("/users/register",n)},login(n,e){return n.device_id=Oe,ue(e).post("/users/login",n)},logout(n,e){return n.device_id=Oe,ue(e).post("/users/logout",n)},refreshToken(n,e){return ue(e,!0).get(`/users/refresh-token?UserId=${n.id}&token=${n.refreshToken}`)},getLoggedInAccounts(n,e){return ue(e).post("/users/tokens",n)},sendResetEmail(n,e){return n.device_id=Oe,ue(e).post("/users/reset",n)},changePassword(n,e){return ue(e).put("/users/password",n,{headers:{Authorization:"Bearer "+n.token}})},verify(n,e){return ue(e).get("/users/verify?c="+n.code+"&e="+n.email+"&captchatoken="+n.captchaToken)},googleUrl(n){return ue(n).get("/users/google/url")},google(n,e){return n.device_id=Oe,ue(e).post("/users/google",n)},facebook(n,e){return n.device_id=Oe,ue(e).post("/users/facebook",n)},googleSDK(n,e){return n.device_id=Oe,ue(e).post("/users/google/sdk",n)},facebookSDK(n,e){return n.device_id=Oe,ue(e).post("/users/facebook/sdk",n)},appleSDK(n,e){return n.device_id=Oe,ue(e).post("/users/apple/sdk",n)},microsoftSDK(n,e){return n.device_id=Oe,ue(e).post("/users/microsoft/sdk",n)},oktaSDK(n,e){return n.device_id=Oe,ue(e).post("/users/okta/sdk",n)},samlLoginUrl(n,e){return ue(e).post("/saml/url",n)},exchangeAuthCode(n,e){return ue(e).post("/users/auth-code",n)}},vn=ht.instance,yn={getBySSOEmail(n,e){return vn(e).get(`/company/sso/${n}`)},acceptCompanyInvitation(n,e){return vn(e).get(`/users/invitation?ic=${n}`)},qrCodePooling(n,e){return vn(e).post("/company/login/qr",n)}},Qt=c.reactive(new Map),z={$on(n,e){let t=Qt.get(n);t||(t=new Set,Qt.set(n,t)),t.add(e)},$emit(n,...e){const t=Qt.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=Qt.get(n);t&&t.delete(e)}};c.readonly(z);const Qn={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,7 +99,7 @@ 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 λ‘κ·ΈμΈμ μ¬μ©νμ§ μμ΅λλ€. κ΄λ¦¬μμκ² λ¬Έμνμμμ€."}},po={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Ne.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Ne.Capacitor.getPlatform()==="ios"},isNative(){return Ne.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.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(n){return n<10?"":n<=50?"π₯":n<=100?"π₯":n<=300?"π":n>300?"π":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}};var ho={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 Ce={mixins:[po],data(){return{appLanguage:"en",token:"",refreshToken:"",refreshing:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:Qn.state,de:Yn.state,es:Wn.state,fr:$n.state,it:Jn.state,sr:Xn.state,tr:Zn.state,cn:uo.state,kr:er.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),z.$on("updateLang",this.updateLang),ho.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(n){if(n&&n.response&&n.response.data&&n.response.data.error){if(n.response.data.error==="ACCESS_DENIED")return this.logout();!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("TOKEN_EXPIRED")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)}return n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.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(n){const[e,t]=await $(mt.eventLog(n,this.$storage));return e?this.errorHandler(e):t},async maintenance(){const[n,e]=await $(fn.get("https://status.tapni.co/data/maintenance.json"));if(n)return console.error(n);if(e){let t=e.data;typeof e.data=="string"&&(t=JSON.parse(e.data)),t.api&&t.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+t.api.msg)}},async getUser(n){if(n){let e,t;if(n.username?[e,t]=await $(mt.getByUsername(n,this.$storage)):n.serial&&([e,t]=await $(mt.getByNumber(n,this.$storage))),e)return this.errorHandler(e);if(t.data.success){if(!t.data.user&&t.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+t.data.showDemoProfile)}!t.data.user&&n.login&&this.logout(),this.registerLang(t.data.user?t.data.user.ssoLang:"en"),this.setUser(t.data.user)}}},async loginSetup(n){n.data.refreshToken&&this.setRefreshToken(n.data.refreshToken),n.data.token&&this.setToken(n.data.token),this.setLoggedInUserId(n.data.data.id),this.$storage.UserId=n.data.data.id,this.$storage.username=n.data.data.username,n.isModal===!0&&this.setLoggedInAccounts([{id:n.data.data.id,username:n.data.data.username,refreshToken:n.data.refreshToken,photo:n.data.data.photo}])},async switchAccount(n){this.$storage.username=n,this.$storage.UserId=this.loggedInAccounts[n].id,this.setLoggedInUserId(this.loggedInAccounts[n].id),this.setRefreshToken(this.loggedInAccounts[n].refreshToken),await this.refreshTokenAction({id:this.loggedInAccounts[n].id}),z.$emit("ssoEvent",{name:"switchAccount",data:{lang:this.appLanguage,username:n}})},async refreshTokenAction(n){return new Promise(async(e,t)=>{if(!this.refreshToken||this.refreshing)return t(null);this.refreshing=!0;const[r,o]=await $(be.refreshToken({id:n.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(r&&r.response&&r.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();o&&o.data?(this.setToken(o.data.token),z.$emit("ssoEvent",{name:"setStorage",data:this.$storage}),e(o.data.token)):t("Invalid response setToken"),this.refreshing=!1})},async login(n){const[e,t]=await $(be.login(n,this.$storage));if(e)return this.errorHandler(e);if(t.data.success)return this.display==="npm"&&(this.loginSetup({...t,isModal:n.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...t,isModal:n.isModal}),!0},loginSuccess(n){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(e=>this.redirect_uri.startsWith(e)))return console.error("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+n.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(e=>{var t;(t=window.parent)==null||t.postMessage({code:n.data.auth_code,state:this.$route.query.state},e)}):this.display==="npm"&&(z.$emit("ssoEvent",{name:"setLoading",data:!0}),z.$emit("ssoEvent",{name:"setStorage",data:this.$storage}),z.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:n.data.data.username}}),n.isModal&&(z.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+n.data.data.username+"#edit"))},async register(n){const[e,t]=await $(be.register(n,this.$storage));return e?this.errorHandler(e):t},async verify(n){const[e,t]=await $(be.verify(n,this.$storage));return e?this.errorHandler(e):t},async reset(n){const[e,t]=await $(be.sendResetEmail(n,this.$storage));if(e)return this.errorHandler(e);t.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(n){const[e,t]=await $(be.exchangeAuthCode(n,this.$storage));if(e)return this.errorHandler(e);await this.loginSetup(t),await this.getLoggedInAccounts(),this.loginSuccess(t)},async changePassword(n){const[e,t]=await $(be.changePassword(n,this.$storage));return e?this.errorHandler(e):t.data.success},async newPassword(n){const[e,t]=await $(mt.newPassword(n,this.$storage));return e?this.errorHandler(e):t.data.success},async deleteAccount(n){const[e,t]=await $(mt.deleteAccount(n,this.$storage));return e?this.errorHandler(e):t.data.success},async registerDevice(){const n=await Vt.Device.getId(),e=await Vt.Device.getInfo();let t={device_id:n.uuid,platform:e.platform,device_info:{model:e.model,manufacturer:e.manufacturer,operatingSystem:e.operatingSystem,osVersion:e.osVersion,isVirtual:e.isVirtual,webViewVersion:e.webViewVersion}};const[r,o]=await $(Gn.registerDevice(t,this.$storage));return r?this.errorHandler(r):o},async addFcmToken(n){const[e,t]=await $(Gn.addFcmToken(n,this.$storage));return e?this.errorHandler(e):t},async acceptCompanyInvitation(n){const[e,t]=await $(yn.acceptCompanyInvitation(n,this.$storage));return e?this.errorHandler(e):t},async logout(n=!0){n&&be.logout({token:this.refreshToken},this.$storage),this.$storage&&(this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId=""),this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(e=>{this.loggedInAccounts[e].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[e].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[e].id),this.$storage&&(this.$storage.username=e,this.$storage.UserId=this.loggedInAccounts[e].id),this.getLoggedInAccounts(),this.$router.push("/"+e)))}):(this.setUser(null),this.$router.push("/welcome"))},async getCompanyBySSOEmail(n){const[e,t]=await $(yn.getBySSOEmail(n.email,this.$storage));if(e)return this.errorHandler(e);if(t.data.success)return t.data},async getLoggedInAccounts(){const n=this.getRefreshTokens();if(n&&n.length>=1){const[e,t]=await $(be.getLoggedInAccounts({refreshTokens:n},this.$storage));if(e)return this.errorHandler(e);t&&t.data&&t.data.success&&this.setLoggedInAccounts(t.data.accounts)}},async loginUsingQR(n){const[e,t]=await $(mt.loginUsingQR(n,this.$storage));return e?this.errorHandler(e):t.data.success},setLoggedInAccounts(n){this.loggedInAccounts={},n.forEach(e=>{this.loggedInAccounts[e.username]=e}),z.$emit("ssoEvent",{name:"setLoggedInAccounts",data:n})},setLoggedInUserId(n){this.loggedInUserId=n},setUser(n){this.ssoUser=n,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=n.ssoLang)},getRefreshTokens(){return this.$storage&&this.$storage.refreshTokens?this.$storage.refreshTokens.split(","):[]},setRefreshToken(n){let e=this.getRefreshTokens();n?(e.includes(n)||e.unshift(n),this.refreshToken=n):(e=e.filter(t=>t!==this.refreshToken),e&&e.length>=1&&(this.refreshToken=e[0])),this.$storage.refreshTokens=e.join(",")},setToken(n){this.$storage.token=n,this.token=n},setUserID(n){this.$storage.UserId=n},updateLang(n){this.appLanguage=n}},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}}},He=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},mo={name:"AuthWelcome",mixins:[Ce],data(){return{loading:!0}},async mounted(){let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){document.body.contains(n)&&n.play().catch(e=>{console.log("Play was interrupted:",e)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):z.$emit("ssoEvent",{name:"setLoading",data:!1})},2500)},methods:{}},tr=n=>(c.pushScopeId("data-v-67088d6f"),n=n(),c.popScopeId(),n),go={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},fo=["autoplay"],_o=[tr(()=>c.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],vo={class:"bold full-top no-bottom center-text"},yo={class:"full-bottom half-top center-text color-black font-16"},ko={class:"page-login-links center-text"},wo=tr(()=>c.createElementVNode("div",{class:"clear"},null,-1)),bo={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Co=[c.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a>',3)];function Eo(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",go,[c.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},_o,8,fo),c.createElementVNode("h1",vo,c.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),c.createElementVNode("p",yo,c.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),c.createCommentVNode("",!0),c.createCommentVNode("",!0),c.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),c.createElementVNode("div",ko,[c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),c.createElementVNode("b",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wo]),this.isNative?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",bo,Co))])}const nr=He(mo,[["render",Eo],["__scopeId","data-v-67088d6f"]]),rr=Ne.registerPlugin("GoogleAuth",{web:()=>Promise.resolve().then(()=>ql).then(n=>new n.GoogleAuthWeb)}),or={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.google_login)&&!this.isModal)??!0}},mounted(){rr.initialize()},methods:{async googleLogin(){var t;this.googleLoad=!0;let[n,e]=await $(rr.signIn());if(n)return this.googleLoad=!1;if(this.referral&&(e.ref=this.referral),e.authentication&&(e.authentication.accessToken||e.authentication.idToken)){this.referral&&(e.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[r,o]=await $(be.googleSDK(e,this.$storage));if(r)return this.googleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(r);if(o.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:o.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(o),await this.getLoggedInAccounts(),this.loginSuccess({...o,isModal:this.isModal}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})}}},To=Ne.registerPlugin("FacebookLogin",{web:()=>Promise.resolve().then(()=>jl).then(n=>new n.FacebookLoginWeb)});window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(n,e,t){var r,o=n.getElementsByTagName(e)[0];n.getElementById(t)||(r=n.createElement(e),r.id=t,r.src="https://connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(r,o))}(document,"script","facebook-jssdk");const ir={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 r;this.facebookLoad=!0;const n=["email"],[e,t]=await $(To.login({permissions:n}));if(e)return this.facebookLoad=!1;if(this.referral&&(t.ref=this.referral),this.display==="popup"&&(t.response_type="code"),t&&t.accessToken){const[o,i]=await $(be.facebookSDK(t,this.$storage));if(o)return this.facebookLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),await this.getLoggedInAccounts(),this.$router.push("/"+i.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})}}},Io=Ne.registerPlugin("SignInWithApple",{web:()=>Promise.resolve().then(()=>Gl).then(n=>new n.SignInWithAppleWeb)}),ar={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var t;this.appleLoad=!0;const[n,e]=await $(Io.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(n)return this.appleLoad=!1;if(e.response.tokenData=Kn.jwtDecode(e.response.identityToken),e&&e.response&&e.response.identityToken){this.referral&&(e.response.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[r,o]=await $(be.appleSDK(e.response,this.$storage));if(r)return this.appleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(r);if(o.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:o.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(o),await this.getLoggedInAccounts(),this.loginSuccess({...o,isModal:this.isModal}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})}}};/*! @azure/msal-browser v2.38.3 2023-10-27 *//*! *****************************************************************************
|
|
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 λ‘κ·ΈμΈμ μ¬μ©νμ§ μμ΅λλ€. κ΄λ¦¬μμκ² λ¬Έμνμμμ€."}},po={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Ne.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Ne.Capacitor.getPlatform()==="ios"},isNative(){return Ne.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.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(n){return n<10?"":n<=50?"π₯":n<=100?"π₯":n<=300?"π":n>300?"π":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}};var ho={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 Ce={mixins:[po],data(){return{appLanguage:"en",token:"",refreshToken:"",refreshing:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:Qn.state,de:Yn.state,es:Wn.state,fr:$n.state,it:Jn.state,sr:Xn.state,tr:Zn.state,cn:uo.state,kr:er.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),z.$on("updateLang",this.updateLang),ho.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(n){if(n&&n.response&&n.response.data&&n.response.data.error){if(n.response.data.error==="ACCESS_DENIED")return this.logout();!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("TOKEN_EXPIRED")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)}return n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.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(n){const[e,t]=await $(mt.eventLog(n,this.$storage));return e?this.errorHandler(e):t},async maintenance(){const[n,e]=await $(fn.get("https://status.tapni.co/data/maintenance.json"));if(n)return console.error(n);if(e){let t=e.data;typeof e.data=="string"&&(t=JSON.parse(e.data)),t.api&&t.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+t.api.msg)}},async getUser(n){if(n){let e,t;if(n.username?[e,t]=await $(mt.getByUsername(n,this.$storage)):n.serial&&([e,t]=await $(mt.getByNumber(n,this.$storage))),e)return this.errorHandler(e);if(t.data.success){if(!t.data.user&&t.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+t.data.showDemoProfile)}!t.data.user&&n.login&&this.logout(),this.registerLang(t.data.user?t.data.user.ssoLang:"en"),this.setUser(t.data.user)}}},async loginSetup(n){n.data.refreshToken&&this.setRefreshToken(n.data.refreshToken),n.data.token&&this.setToken(n.data.token),this.setLoggedInUserId(n.data.data.id),this.$storage.UserId=n.data.data.id,this.$storage.username=n.data.data.username,n.isModal===!0&&this.setLoggedInAccounts([{id:n.data.data.id,username:n.data.data.username,refreshToken:n.data.refreshToken,photo:n.data.data.photo}])},async switchAccount(n){this.$storage.username=n,this.$storage.UserId=this.loggedInAccounts[n].id,this.setLoggedInUserId(this.loggedInAccounts[n].id),this.setRefreshToken(this.loggedInAccounts[n].refreshToken),await this.refreshTokenAction({id:this.loggedInAccounts[n].id}),z.$emit("ssoEvent",{name:"switchAccount",data:{lang:this.appLanguage,username:n}})},async refreshTokenAction(n){return new Promise(async(e,t)=>{if(!this.refreshToken||this.refreshing)return t(null);this.refreshing=!0;const[r,o]=await $(be.refreshToken({id:n.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(r&&r.response&&r.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();o&&o.data?(this.setToken(o.data.token),z.$emit("ssoEvent",{name:"setStorage",data:this.$storage}),e(o.data.token)):t("Invalid response setToken"),this.refreshing=!1})},async login(n){const[e,t]=await $(be.login(n,this.$storage));if(e)return this.errorHandler(e);if(t.data.success)return this.display==="npm"&&(this.loginSetup({...t,isModal:n.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...t,isModal:n.isModal}),!0},loginSuccess(n){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(e=>this.redirect_uri.startsWith(e)))return console.error("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+n.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(e=>{var t;(t=window.parent)==null||t.postMessage({code:n.data.auth_code,state:this.$route.query.state},e)}):this.display==="npm"&&(z.$emit("ssoEvent",{name:"setLoading",data:!0}),z.$emit("ssoEvent",{name:"setStorage",data:this.$storage}),z.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:n.data.data.username}}),n.isModal&&(z.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+n.data.data.username+"#edit"))},async register(n){const[e,t]=await $(be.register(n,this.$storage));return e?this.errorHandler(e):t},async verify(n){const[e,t]=await $(be.verify(n,this.$storage));return e?this.errorHandler(e):t},async reset(n){const[e,t]=await $(be.sendResetEmail(n,this.$storage));if(e)return this.errorHandler(e);t.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(n){const[e,t]=await $(be.exchangeAuthCode(n,this.$storage));if(e)return this.errorHandler(e);await this.loginSetup(t),await this.getLoggedInAccounts(),this.loginSuccess(t)},async changePassword(n){const[e,t]=await $(be.changePassword(n,this.$storage));return e?this.errorHandler(e):t.data.success},async newPassword(n){const[e,t]=await $(mt.newPassword(n,this.$storage));return e?this.errorHandler(e):t.data.success},async deleteAccount(n){const[e,t]=await $(mt.deleteAccount(n,this.$storage));return e?this.errorHandler(e):t.data.success},async registerDevice(){const n=await Vt.Device.getId(),e=await Vt.Device.getInfo();let t={device_id:n.uuid,platform:e.platform,device_info:{model:e.model,manufacturer:e.manufacturer,operatingSystem:e.operatingSystem,osVersion:e.osVersion,isVirtual:e.isVirtual,webViewVersion:e.webViewVersion}};const[r,o]=await $(Gn.registerDevice(t,this.$storage));return r?this.errorHandler(r):o},async addFcmToken(n){const[e,t]=await $(Gn.addFcmToken(n,this.$storage));return e?this.errorHandler(e):t},async acceptCompanyInvitation(n){const[e,t]=await $(yn.acceptCompanyInvitation(n,this.$storage));return e?this.errorHandler(e):t},async logout(n=!0){n&&be.logout({token:this.refreshToken},this.$storage),this.$storage&&(this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId=""),this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(e=>{this.loggedInAccounts[e].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[e].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[e].id),this.$storage&&(this.$storage.username=e,this.$storage.UserId=this.loggedInAccounts[e].id),this.getLoggedInAccounts(),this.$router.push("/"+e)))}):(this.setUser(null),this.$router.push("/welcome"))},async getCompanyBySSOEmail(n){const[e,t]=await $(yn.getBySSOEmail(n.email,this.$storage));if(e)return this.errorHandler(e);if(t.data.success)return t.data},async getLoggedInAccounts(n){if(n||(n=this.getRefreshTokens()),n&&n.length>=1){const[e,t]=await $(be.getLoggedInAccounts({refreshTokens:n},this.$storage));if(e)return this.errorHandler(e);t&&t.data&&t.data.success&&this.setLoggedInAccounts(t.data.accounts)}},async loginUsingQR(n){const[e,t]=await $(mt.loginUsingQR(n,this.$storage));return e?this.errorHandler(e):t.data.success},setLoggedInAccounts(n){this.loggedInAccounts={},n.forEach(e=>{this.loggedInAccounts[e.username]=e}),z.$emit("ssoEvent",{name:"setLoggedInAccounts",data:n})},setLoggedInUserId(n){this.loggedInUserId=n},setUser(n){this.ssoUser=n,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=n.ssoLang)},getRefreshTokens(){return this.$storage&&this.$storage.refreshTokens?this.$storage.refreshTokens.split(","):[]},setRefreshToken(n){let e=this.getRefreshTokens();n?(e.includes(n)||e.unshift(n),this.refreshToken=n):(e=e.filter(t=>t!==this.refreshToken),e&&e.length>=1&&(this.refreshToken=e[0])),this.$storage.refreshTokens=e.join(",")},setToken(n){this.$storage.token=n,this.token=n},setUserID(n){this.$storage.UserId=n},updateLang(n){this.appLanguage=n}},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}}},He=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},mo={name:"AuthWelcome",mixins:[Ce],data(){return{loading:!0}},async mounted(){let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){document.body.contains(n)&&n.play().catch(e=>{console.log("Play was interrupted:",e)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):z.$emit("ssoEvent",{name:"setLoading",data:!1})},2500)},methods:{}},tr=n=>(c.pushScopeId("data-v-67088d6f"),n=n(),c.popScopeId(),n),go={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},fo=["autoplay"],_o=[tr(()=>c.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],vo={class:"bold full-top no-bottom center-text"},yo={class:"full-bottom half-top center-text color-black font-16"},ko={class:"page-login-links center-text"},wo=tr(()=>c.createElementVNode("div",{class:"clear"},null,-1)),bo={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Co=[c.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a>',3)];function Eo(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",go,[c.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},_o,8,fo),c.createElementVNode("h1",vo,c.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),c.createElementVNode("p",yo,c.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),c.createCommentVNode("",!0),c.createCommentVNode("",!0),c.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),c.createElementVNode("div",ko,[c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),c.createElementVNode("b",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wo]),this.isNative?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",bo,Co))])}const nr=He(mo,[["render",Eo],["__scopeId","data-v-67088d6f"]]),rr=Ne.registerPlugin("GoogleAuth",{web:()=>Promise.resolve().then(()=>ql).then(n=>new n.GoogleAuthWeb)}),or={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.google_login)&&!this.isModal)??!0}},mounted(){rr.initialize()},methods:{async googleLogin(){var t;this.googleLoad=!0;let[n,e]=await $(rr.signIn());if(n)return this.googleLoad=!1;if(this.referral&&(e.ref=this.referral),e.authentication&&(e.authentication.accessToken||e.authentication.idToken)){this.referral&&(e.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[r,o]=await $(be.googleSDK(e,this.$storage));if(r)return this.googleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(r);if(o.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:o.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(o),await this.getLoggedInAccounts(),this.loginSuccess({...o,isModal:this.isModal}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})}}},To=Ne.registerPlugin("FacebookLogin",{web:()=>Promise.resolve().then(()=>jl).then(n=>new n.FacebookLoginWeb)});window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(n,e,t){var r,o=n.getElementsByTagName(e)[0];n.getElementById(t)||(r=n.createElement(e),r.id=t,r.src="https://connect.facebook.net/en_US/sdk.js",o.parentNode.insertBefore(r,o))}(document,"script","facebook-jssdk");const ir={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 r;this.facebookLoad=!0;const n=["email"],[e,t]=await $(To.login({permissions:n}));if(e)return this.facebookLoad=!1;if(this.referral&&(t.ref=this.referral),this.display==="popup"&&(t.response_type="code"),t&&t.accessToken){const[o,i]=await $(be.facebookSDK(t,this.$storage));if(o)return this.facebookLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),await this.getLoggedInAccounts(),this.$router.push("/"+i.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})}}},Io=Ne.registerPlugin("SignInWithApple",{web:()=>Promise.resolve().then(()=>Gl).then(n=>new n.SignInWithAppleWeb)}),ar={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var t;this.appleLoad=!0;const[n,e]=await $(Io.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(n)return this.appleLoad=!1;if(e.response.tokenData=Kn.jwtDecode(e.response.identityToken),e&&e.response&&e.response.identityToken){this.referral&&(e.response.ref=this.referral),this.display==="popup"&&(e.response_type="code");const[r,o]=await $(be.appleSDK(e.response,this.$storage));if(r)return this.appleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(r);if(o.data.success){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:o.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(o),await this.getLoggedInAccounts(),this.loginSuccess({...o,isModal:this.isModal}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,z.$emit("ssoEvent",{name:"setLoading",data:!1})}}};/*! @azure/msal-browser v2.38.3 2023-10-27 *//*! *****************************************************************************
|
|
103
103
|
Copyright (c) Microsoft Corporation.
|
|
104
104
|
|
|
105
105
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -134,7 +134,7 @@ Error Description: `+h.message)),[2,null];case 4:return o||(this.logger.warning(
|
|
|
134
134
|
*
|
|
135
135
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
136
136
|
* @license MIT
|
|
137
|
-
*/(function(n){const e=pn,t=Dn,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=p,n.SlowBuffer=we,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;p.TYPED_ARRAY_SUPPORT=d(),!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 d(){try{const m=new i(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,i.prototype),Object.setPrototypeOf(m,l),m.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 h(m){if(m>o)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new i(m);return Object.setPrototypeOf(l,p.prototype),l}function p(m,l,u){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(m)}return f(m,l,u)}p.poolSize=8192;function f(m,l,u){if(typeof m=="string")return R(m,l);if(a.isView(m))return H(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(We(m,a)||m&&We(m.buffer,a)||typeof s<"u"&&(We(m,s)||m&&We(m.buffer,s)))return O(m,l,u);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=m.valueOf&&m.valueOf();if(g!=null&&g!==m)return p.from(g,l,u);const y=V(m);if(y)return y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return p.from(m[Symbol.toPrimitive]("string"),l,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}p.from=function(m,l,u){return f(m,l,u)},Object.setPrototypeOf(p.prototype,i.prototype),Object.setPrototypeOf(p,i);function v(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function k(m,l,u){return v(m),m<=0?h(m):l!==void 0?typeof u=="string"?h(m).fill(l,u):h(m).fill(l):h(m)}p.alloc=function(m,l,u){return k(m,l,u)};function C(m){return v(m),h(m<0?0:Z(m)|0)}p.allocUnsafe=function(m){return C(m)},p.allocUnsafeSlow=function(m){return C(m)};function R(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!p.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const u=Le(m,l)|0;let g=h(u);const y=g.write(m,l);return y!==u&&(g=g.slice(0,y)),g}function P(m){const l=m.length<0?0:Z(m.length)|0,u=h(l);for(let g=0;g<l;g+=1)u[g]=m[g]&255;return u}function H(m){if(We(m,i)){const l=new i(m);return O(l.buffer,l.byteOffset,l.byteLength)}return P(m)}function O(m,l,u){if(l<0||m.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<l+(u||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&u===void 0?g=new i(m):u===void 0?g=new i(m,l):g=new i(m,l,u),Object.setPrototypeOf(g,p.prototype),g}function V(m){if(p.isBuffer(m)){const l=Z(m.length)|0,u=h(l);return u.length===0||m.copy(u,0,0,l),u}if(m.length!==void 0)return typeof m.length!="number"||jn(m.length)?h(0):P(m);if(m.type==="Buffer"&&Array.isArray(m.data))return P(m.data)}function Z(m){if(m>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return m|0}function we(m){return+m!=m&&(m=0),p.alloc(+m)}p.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==p.prototype},p.compare=function(l,u){if(We(l,i)&&(l=p.from(l,l.offset,l.byteLength)),We(u,i)&&(u=p.from(u,u.offset,u.byteLength)),!p.isBuffer(l)||!p.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===u)return 0;let g=l.length,y=u.length;for(let w=0,E=Math.min(g,y);w<E;++w)if(l[w]!==u[w]){g=l[w],y=u[w];break}return g<y?-1:y<g?1:0},p.isEncoding=function(l){switch(String(l).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(l,u){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return p.alloc(0);let g;if(u===void 0)for(u=0,g=0;g<l.length;++g)u+=l[g].length;const y=p.allocUnsafe(u);let w=0;for(g=0;g<l.length;++g){let E=l[g];if(We(E,i))w+E.length>y.length?(p.isBuffer(E)||(E=p.from(E)),E.copy(y,w)):i.prototype.set.call(y,E,w);else if(p.isBuffer(E))E.copy(y,w);else throw new TypeError('"list" argument must be an Array of Buffers');w+=E.length}return y};function Le(m,l){if(p.isBuffer(m))return m.length;if(a.isView(m)||We(m,a))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const u=m.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&u===0)return 0;let y=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Fn(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ao(m).length;default:if(y)return g?-1:Fn(m).length;l=(""+l).toLowerCase(),y=!0}}p.byteLength=Le;function nt(m,l,u){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,l>>>=0,u<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return td(this,l,u);case"utf8":case"utf-8":return Jr(this,l,u);case"ascii":return Zl(this,l,u);case"latin1":case"binary":return ed(this,l,u);case"base64":return Jl(this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nd(this,l,u);default:if(g)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),g=!0}}p.prototype._isBuffer=!0;function ee(m,l,u){const g=m[l];m[l]=m[u],m[u]=g}p.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<l;u+=2)ee(this,u,u+1);return this},p.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<l;u+=4)ee(this,u,u+3),ee(this,u+1,u+2);return this},p.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<l;u+=8)ee(this,u,u+7),ee(this,u+1,u+6),ee(this,u+2,u+5),ee(this,u+3,u+4);return this},p.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Jr(this,0,l):nt.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(l){if(!p.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:p.compare(this,l)===0},p.prototype.inspect=function(){let l="";const u=n.INSPECT_MAX_BYTES;return l=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(l+=" ... "),"<Buffer "+l+">"},r&&(p.prototype[r]=p.prototype.inspect),p.prototype.compare=function(l,u,g,y,w){if(We(l,i)&&(l=p.from(l,l.offset,l.byteLength)),!p.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(u===void 0&&(u=0),g===void 0&&(g=l?l.length:0),y===void 0&&(y=0),w===void 0&&(w=this.length),u<0||g>l.length||y<0||w>this.length)throw new RangeError("out of range index");if(y>=w&&u>=g)return 0;if(y>=w)return-1;if(u>=g)return 1;if(u>>>=0,g>>>=0,y>>>=0,w>>>=0,this===l)return 0;let E=w-y,Q=g-u;const ae=Math.min(E,Q),oe=this.slice(y,w),se=l.slice(u,g);for(let te=0;te<ae;++te)if(oe[te]!==se[te]){E=oe[te],Q=se[te];break}return E<Q?-1:Q<E?1:0};function De(m,l,u,g,y){if(m.length===0)return-1;if(typeof u=="string"?(g=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,jn(u)&&(u=y?0:m.length-1),u<0&&(u=m.length+u),u>=m.length){if(y)return-1;u=m.length-1}else if(u<0)if(y)u=0;else return-1;if(typeof l=="string"&&(l=p.from(l,g)),p.isBuffer(l))return l.length===0?-1:Ae(m,l,u,g,y);if(typeof l=="number")return l=l&255,typeof i.prototype.indexOf=="function"?y?i.prototype.indexOf.call(m,l,u):i.prototype.lastIndexOf.call(m,l,u):Ae(m,[l],u,g,y);throw new TypeError("val must be string, number or Buffer")}function Ae(m,l,u,g,y){let w=1,E=m.length,Q=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(m.length<2||l.length<2)return-1;w=2,E/=2,Q/=2,u/=2}function ae(se,te){return w===1?se[te]:se.readUInt16BE(te*w)}let oe;if(y){let se=-1;for(oe=u;oe<E;oe++)if(ae(m,oe)===ae(l,se===-1?0:oe-se)){if(se===-1&&(se=oe),oe-se+1===Q)return se*w}else se!==-1&&(oe-=oe-se),se=-1}else for(u+Q>E&&(u=E-Q),oe=u;oe>=0;oe--){let se=!0;for(let te=0;te<Q;te++)if(ae(m,oe+te)!==ae(l,te)){se=!1;break}if(se)return oe}return-1}p.prototype.includes=function(l,u,g){return this.indexOf(l,u,g)!==-1},p.prototype.indexOf=function(l,u,g){return De(this,l,u,g,!0)},p.prototype.lastIndexOf=function(l,u,g){return De(this,l,u,g,!1)};function Hn(m,l,u,g){u=Number(u)||0;const y=m.length-u;g?(g=Number(g),g>y&&(g=y)):g=y;const w=l.length;g>w/2&&(g=w/2);let E;for(E=0;E<g;++E){const Q=parseInt(l.substr(E*2,2),16);if(jn(Q))return E;m[u+E]=Q}return E}function Ql(m,l,u,g){return gn(Fn(l,m.length-u),m,u,g)}function Yl(m,l,u,g){return gn(ad(l),m,u,g)}function Wl(m,l,u,g){return gn(ao(l),m,u,g)}function $l(m,l,u,g){return gn(sd(l,m.length-u),m,u,g)}p.prototype.write=function(l,u,g,y){if(u===void 0)y="utf8",g=this.length,u=0;else if(g===void 0&&typeof u=="string")y=u,g=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(g)?(g=g>>>0,y===void 0&&(y="utf8")):(y=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const w=this.length-u;if((g===void 0||g>w)&&(g=w),l.length>0&&(g<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");let E=!1;for(;;)switch(y){case"hex":return Hn(this,l,u,g);case"utf8":case"utf-8":return Ql(this,l,u,g);case"ascii":case"latin1":case"binary":return Yl(this,l,u,g);case"base64":return Wl(this,l,u,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $l(this,l,u,g);default:if(E)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),E=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jl(m,l,u){return l===0&&u===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(l,u))}function Jr(m,l,u){u=Math.min(m.length,u);const g=[];let y=l;for(;y<u;){const w=m[y];let E=null,Q=w>239?4:w>223?3:w>191?2:1;if(y+Q<=u){let ae,oe,se,te;switch(Q){case 1:w<128&&(E=w);break;case 2:ae=m[y+1],(ae&192)===128&&(te=(w&31)<<6|ae&63,te>127&&(E=te));break;case 3:ae=m[y+1],oe=m[y+2],(ae&192)===128&&(oe&192)===128&&(te=(w&15)<<12|(ae&63)<<6|oe&63,te>2047&&(te<55296||te>57343)&&(E=te));break;case 4:ae=m[y+1],oe=m[y+2],se=m[y+3],(ae&192)===128&&(oe&192)===128&&(se&192)===128&&(te=(w&15)<<18|(ae&63)<<12|(oe&63)<<6|se&63,te>65535&&te<1114112&&(E=te))}}E===null?(E=65533,Q=1):E>65535&&(E-=65536,g.push(E>>>10&1023|55296),E=56320|E&1023),g.push(E),y+=Q}return Xl(g)}const Xr=4096;function Xl(m){const l=m.length;if(l<=Xr)return String.fromCharCode.apply(String,m);let u="",g=0;for(;g<l;)u+=String.fromCharCode.apply(String,m.slice(g,g+=Xr));return u}function Zl(m,l,u){let g="";u=Math.min(m.length,u);for(let y=l;y<u;++y)g+=String.fromCharCode(m[y]&127);return g}function ed(m,l,u){let g="";u=Math.min(m.length,u);for(let y=l;y<u;++y)g+=String.fromCharCode(m[y]);return g}function td(m,l,u){const g=m.length;(!l||l<0)&&(l=0),(!u||u<0||u>g)&&(u=g);let y="";for(let w=l;w<u;++w)y+=cd[m[w]];return y}function nd(m,l,u){const g=m.slice(l,u);let y="";for(let w=0;w<g.length-1;w+=2)y+=String.fromCharCode(g[w]+g[w+1]*256);return y}p.prototype.slice=function(l,u){const g=this.length;l=~~l,u=u===void 0?g:~~u,l<0?(l+=g,l<0&&(l=0)):l>g&&(l=g),u<0?(u+=g,u<0&&(u=0)):u>g&&(u=g),u<l&&(u=l);const y=this.subarray(l,u);return Object.setPrototypeOf(y,p.prototype),y};function he(m,l,u){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+l>u)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=this[l],w=1,E=0;for(;++E<u&&(w*=256);)y+=this[l+E]*w;return y},p.prototype.readUintBE=p.prototype.readUIntBE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=this[l+--u],w=1;for(;u>0&&(w*=256);)y+=this[l+--u]*w;return y},p.prototype.readUint8=p.prototype.readUInt8=function(l,u){return l=l>>>0,u||he(l,1,this.length),this[l]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(l,u){return l=l>>>0,u||he(l,2,this.length),this[l]|this[l+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(l,u){return l=l>>>0,u||he(l,2,this.length),this[l]<<8|this[l+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(l,u){return l=l>>>0,u||he(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(l,u){return l=l>>>0,u||he(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},p.prototype.readBigUInt64LE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=u+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,w=this[++l]+this[++l]*2**8+this[++l]*2**16+g*2**24;return BigInt(y)+(BigInt(w)<<BigInt(32))}),p.prototype.readBigUInt64BE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=u*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],w=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+g;return(BigInt(y)<<BigInt(32))+BigInt(w)}),p.prototype.readIntLE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=this[l],w=1,E=0;for(;++E<u&&(w*=256);)y+=this[l+E]*w;return w*=128,y>=w&&(y-=Math.pow(2,8*u)),y},p.prototype.readIntBE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=u,w=1,E=this[l+--y];for(;y>0&&(w*=256);)E+=this[l+--y]*w;return w*=128,E>=w&&(E-=Math.pow(2,8*u)),E},p.prototype.readInt8=function(l,u){return l=l>>>0,u||he(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},p.prototype.readInt16LE=function(l,u){l=l>>>0,u||he(l,2,this.length);const g=this[l]|this[l+1]<<8;return g&32768?g|4294901760:g},p.prototype.readInt16BE=function(l,u){l=l>>>0,u||he(l,2,this.length);const g=this[l+1]|this[l]<<8;return g&32768?g|4294901760:g},p.prototype.readInt32LE=function(l,u){return l=l>>>0,u||he(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},p.prototype.readInt32BE=function(l,u){return l=l>>>0,u||he(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},p.prototype.readBigInt64LE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(g<<24);return(BigInt(y)<<BigInt(32))+BigInt(u+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),p.prototype.readBigInt64BE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=(u<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(y)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+g)}),p.prototype.readFloatLE=function(l,u){return l=l>>>0,u||he(l,4,this.length),t.read(this,l,!0,23,4)},p.prototype.readFloatBE=function(l,u){return l=l>>>0,u||he(l,4,this.length),t.read(this,l,!1,23,4)},p.prototype.readDoubleLE=function(l,u){return l=l>>>0,u||he(l,8,this.length),t.read(this,l,!0,52,8)},p.prototype.readDoubleBE=function(l,u){return l=l>>>0,u||he(l,8,this.length),t.read(this,l,!1,52,8)};function Re(m,l,u,g,y,w){if(!p.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>y||l<w)throw new RangeError('"value" argument is out of bounds');if(u+g>m.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(l,u,g,y){if(l=+l,u=u>>>0,g=g>>>0,!y){const Q=Math.pow(2,8*g)-1;Re(this,l,u,g,Q,0)}let w=1,E=0;for(this[u]=l&255;++E<g&&(w*=256);)this[u+E]=l/w&255;return u+g},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(l,u,g,y){if(l=+l,u=u>>>0,g=g>>>0,!y){const Q=Math.pow(2,8*g)-1;Re(this,l,u,g,Q,0)}let w=g-1,E=1;for(this[u+w]=l&255;--w>=0&&(E*=256);)this[u+w]=l/E&255;return u+g},p.prototype.writeUint8=p.prototype.writeUInt8=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,1,255,0),this[u]=l&255,u+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,65535,0),this[u]=l&255,this[u+1]=l>>>8,u+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,65535,0),this[u]=l>>>8,this[u+1]=l&255,u+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,4294967295,0),this[u+3]=l>>>24,this[u+2]=l>>>16,this[u+1]=l>>>8,this[u]=l&255,u+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,4294967295,0),this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=l&255,u+4};function Zr(m,l,u,g,y){io(l,g,y,m,u,7);let w=Number(l&BigInt(4294967295));m[u++]=w,w=w>>8,m[u++]=w,w=w>>8,m[u++]=w,w=w>>8,m[u++]=w;let E=Number(l>>BigInt(32)&BigInt(4294967295));return m[u++]=E,E=E>>8,m[u++]=E,E=E>>8,m[u++]=E,E=E>>8,m[u++]=E,u}function eo(m,l,u,g,y){io(l,g,y,m,u,7);let w=Number(l&BigInt(4294967295));m[u+7]=w,w=w>>8,m[u+6]=w,w=w>>8,m[u+5]=w,w=w>>8,m[u+4]=w;let E=Number(l>>BigInt(32)&BigInt(4294967295));return m[u+3]=E,E=E>>8,m[u+2]=E,E=E>>8,m[u+1]=E,E=E>>8,m[u]=E,u+8}p.prototype.writeBigUInt64LE=at(function(l,u=0){return Zr(this,l,u,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=at(function(l,u=0){return eo(this,l,u,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(l,u,g,y){if(l=+l,u=u>>>0,!y){const ae=Math.pow(2,8*g-1);Re(this,l,u,g,ae-1,-ae)}let w=0,E=1,Q=0;for(this[u]=l&255;++w<g&&(E*=256);)l<0&&Q===0&&this[u+w-1]!==0&&(Q=1),this[u+w]=(l/E>>0)-Q&255;return u+g},p.prototype.writeIntBE=function(l,u,g,y){if(l=+l,u=u>>>0,!y){const ae=Math.pow(2,8*g-1);Re(this,l,u,g,ae-1,-ae)}let w=g-1,E=1,Q=0;for(this[u+w]=l&255;--w>=0&&(E*=256);)l<0&&Q===0&&this[u+w+1]!==0&&(Q=1),this[u+w]=(l/E>>0)-Q&255;return u+g},p.prototype.writeInt8=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,1,127,-128),l<0&&(l=255+l+1),this[u]=l&255,u+1},p.prototype.writeInt16LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,32767,-32768),this[u]=l&255,this[u+1]=l>>>8,u+2},p.prototype.writeInt16BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,32767,-32768),this[u]=l>>>8,this[u+1]=l&255,u+2},p.prototype.writeInt32LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,2147483647,-2147483648),this[u]=l&255,this[u+1]=l>>>8,this[u+2]=l>>>16,this[u+3]=l>>>24,u+4},p.prototype.writeInt32BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=l&255,u+4},p.prototype.writeBigInt64LE=at(function(l,u=0){return Zr(this,l,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=at(function(l,u=0){return eo(this,l,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function to(m,l,u,g,y,w){if(u+g>m.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function no(m,l,u,g,y){return l=+l,u=u>>>0,y||to(m,l,u,4),t.write(m,l,u,g,23,4),u+4}p.prototype.writeFloatLE=function(l,u,g){return no(this,l,u,!0,g)},p.prototype.writeFloatBE=function(l,u,g){return no(this,l,u,!1,g)};function ro(m,l,u,g,y){return l=+l,u=u>>>0,y||to(m,l,u,8),t.write(m,l,u,g,52,8),u+8}p.prototype.writeDoubleLE=function(l,u,g){return ro(this,l,u,!0,g)},p.prototype.writeDoubleBE=function(l,u,g){return ro(this,l,u,!1,g)},p.prototype.copy=function(l,u,g,y){if(!p.isBuffer(l))throw new TypeError("argument should be a Buffer");if(g||(g=0),!y&&y!==0&&(y=this.length),u>=l.length&&(u=l.length),u||(u=0),y>0&&y<g&&(y=g),y===g||l.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),l.length-u<y-g&&(y=l.length-u+g);const w=y-g;return this===l&&typeof i.prototype.copyWithin=="function"?this.copyWithin(u,g,y):i.prototype.set.call(l,this.subarray(g,y),u),w},p.prototype.fill=function(l,u,g,y){if(typeof l=="string"){if(typeof u=="string"?(y=u,u=0,g=this.length):typeof g=="string"&&(y=g,g=this.length),y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!p.isEncoding(y))throw new TypeError("Unknown encoding: "+y);if(l.length===1){const E=l.charCodeAt(0);(y==="utf8"&&E<128||y==="latin1")&&(l=E)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(u<0||this.length<u||this.length<g)throw new RangeError("Out of range index");if(g<=u)return this;u=u>>>0,g=g===void 0?this.length:g>>>0,l||(l=0);let w;if(typeof l=="number")for(w=u;w<g;++w)this[w]=l;else{const E=p.isBuffer(l)?l:p.from(l,y),Q=E.length;if(Q===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(w=0;w<g-u;++w)this[w+u]=E[w%Q]}return this};const St={};function qn(m,l,u){St[m]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:y,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}qn("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),qn("ERR_INVALID_ARG_TYPE",function(m,l){return`The "${m}" argument must be of type number. Received type ${typeof l}`},TypeError),qn("ERR_OUT_OF_RANGE",function(m,l,u){let g=`The value of "${m}" is out of range.`,y=u;return Number.isInteger(u)&&Math.abs(u)>2**32?y=oo(String(u)):typeof u=="bigint"&&(y=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(y=oo(y)),y+="n"),g+=` It must be ${l}. Received ${y}`,g},RangeError);function oo(m){let l="",u=m.length;const g=m[0]==="-"?1:0;for(;u>=g+4;u-=3)l=`_${m.slice(u-3,u)}${l}`;return`${m.slice(0,u)}${l}`}function rd(m,l,u){At(l,"offset"),(m[l]===void 0||m[l+u]===void 0)&&Kt(l,m.length-(u+1))}function io(m,l,u,g,y,w){if(m>u||m<l){const E=typeof l=="bigint"?"n":"";let Q;throw w>3?l===0||l===BigInt(0)?Q=`>= 0${E} and < 2${E} ** ${(w+1)*8}${E}`:Q=`>= -(2${E} ** ${(w+1)*8-1}${E}) and < 2 ** ${(w+1)*8-1}${E}`:Q=`>= ${l}${E} and <= ${u}${E}`,new St.ERR_OUT_OF_RANGE("value",Q,m)}rd(g,y,w)}function At(m,l){if(typeof m!="number")throw new St.ERR_INVALID_ARG_TYPE(l,"number",m)}function Kt(m,l,u){throw Math.floor(m)!==m?(At(m,u),new St.ERR_OUT_OF_RANGE(u||"offset","an integer",m)):l<0?new St.ERR_BUFFER_OUT_OF_BOUNDS:new St.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${l}`,m)}const od=/[^+/0-9A-Za-z-_]/g;function id(m){if(m=m.split("=")[0],m=m.trim().replace(od,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function Fn(m,l){l=l||1/0;let u;const g=m.length;let y=null;const w=[];for(let E=0;E<g;++E){if(u=m.charCodeAt(E),u>55295&&u<57344){if(!y){if(u>56319){(l-=3)>-1&&w.push(239,191,189);continue}else if(E+1===g){(l-=3)>-1&&w.push(239,191,189);continue}y=u;continue}if(u<56320){(l-=3)>-1&&w.push(239,191,189),y=u;continue}u=(y-55296<<10|u-56320)+65536}else y&&(l-=3)>-1&&w.push(239,191,189);if(y=null,u<128){if((l-=1)<0)break;w.push(u)}else if(u<2048){if((l-=2)<0)break;w.push(u>>6|192,u&63|128)}else if(u<65536){if((l-=3)<0)break;w.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((l-=4)<0)break;w.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return w}function ad(m){const l=[];for(let u=0;u<m.length;++u)l.push(m.charCodeAt(u)&255);return l}function sd(m,l){let u,g,y;const w=[];for(let E=0;E<m.length&&!((l-=2)<0);++E)u=m.charCodeAt(E),g=u>>8,y=u%256,w.push(y),w.push(g);return w}function ao(m){return e.toByteArray(id(m))}function gn(m,l,u,g){let y;for(y=0;y<g&&!(y+u>=l.length||y>=m.length);++y)l[y+u]=m[y];return y}function We(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function jn(m){return m!==m}const cd=function(){const m="0123456789abcdef",l=new Array(256);for(let u=0;u<16;++u){const g=u*16;for(let y=0;y<16;++y)l[g+y]=m[u]+m[y]}return l}();function at(m){return typeof BigInt>"u"?ld:m}function ld(){throw new Error("BigInt not supported")}})(xr);const ji=xr.Buffer,hn={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(n){this.code_verifier=Tt.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await Tt.pkceChallengeFromVerifier(this.code_verifier);const e=Ne.Capacitor.getPlatform();let t=ji.from(`code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");n=`${n}&RelayState=${t}`;let r=this;window.addEventListener("message",async o=>{var i;if(!this.allowedOrigins.includes(o.origin))return console.log("Origin is not allowed!");if(o.data.type==="saml"&&o.data.code){if(this.display==="popup")return(i=window.parent)==null?void 0:i.postMessage({code:o.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await r.exchangeAuthCode({code:o.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await Gt.Browser.open({url:n,presentationStyle:"popover"}):window.open(n,"popup","width=600,height=600")},async handleSamlRedirect(){var t;let n,e={type:"saml"};if(this.$route.query.code&&(e.code=this.$route.query.code),window.opener)window.opener.postMessage(e,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await Gt.Browser.close(),z.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(n=this.$route.query.code),console.log(this.display,{code:n}),n){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:n,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:n,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),z.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Ki={name:"AuthLogin",mixins:[or,ir,ar,dn,un,hn,Ce,{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 c.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n.length;let t="";const r=new Uint32Array(32);return window.crypto.getRandomValues(r),r.forEach(o=>{t+=n.charAt(o%e)}),t},refreshQrCode(){var n,e;this.qrCode&&((e=(n=document.getElementById("qrCodeContainer"))==null?void 0:n.childNodes[0])==null||e.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new so({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[n,e]=await $(yn.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(n)return this.errorHandler(n);e.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...e,isModal:this.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...e,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await c.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 n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.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&&z.$emit("ssoEvent",{name:"setLoading",data:!1})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let e={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?e.email=this.emailOrUsername:e.username=this.emailOrUsername;const[t,r]=await $(this.login(e));t&&console.error(t),this.submitted=!1,r===!0&&(this.emailOrUsername="",this.password="")},close(){z.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){z.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(n){n.includes("@")&&(this.$storage.verifyEmail=n)},"$route.path":async function(n){if(n==="/login/callback/okta")return await this.handleOktaRedirect();if(n==="/login/callback/saml")return await this.handleSamlRedirect()}}},Vi=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Gi={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Qi=c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Yi={key:1},Wi={class:"page-login-field half-top"},$i=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ji=["placeholder"],Xi=c.createElementVNode("em",null,null,-1),Zi={class:"page-login-field half-bottom"},ea=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),ta=["type","placeholder"],na={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},ra={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},oa={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},ia={key:0},aa={key:1,class:"button--loading button__loader"},sa=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ca=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),la={key:0},da={key:1,class:"button--loading button__loader"},ua=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),pa={key:0},ha={key:1,class:"button--loading-black button__loader"},ma=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),ga={key:0},fa={key:1,class:"button--loading-black button__loader"},_a=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),va={key:0},ya={key:1,class:"button--loading-black button__loader"},ka=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),wa={key:0},ba={key:1,class:"button--loading-black button__loader"},Ca=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Ea={key:0},Ta={key:1,class:"button--loading-black button__loader"},Ia=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),Sa=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Aa={class:"close-text center-text half-top color-black"},Ra=c.createElementVNode("br",null,null,-1),Na={class:"",href:"https://tapni.co/policies/terms-of-service"},Pa={href:"https://tapni.co/policies/privacy-policy"},Ma=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),La={key:9,class:"page-login-links"},Oa=c.createElementVNode("div",{class:"clear"},null,-1),za={class:"forgot center-text pointer small-top"},Ba=c.createElementVNode("br",null,null,-1),Ua=c.createElementVNode("div",{class:"clear"},null,-1);function xa(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[13]||(e[13]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Vi)):c.createCommentVNode("",!0),c.createElementVNode("h1",Gi,c.toDisplayString(this.ssoLang[this.appLanguage].login),1),Qi,i.displayFormLogin?(c.openBlock(),c.createElementBlock("span",Yi,[c.createElementVNode("div",Wi,[$i,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.emailOrUsername=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:n.ssoLang[this.appLanguage].email_username,required:""},null,40,Ji),[[c.vModelText,o.emailOrUsername]]),Xi]),c.createElementVNode("div",Zi,[ea,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,ta),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",na,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",ra,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",oa,[o.submitted?(c.openBlock(),c.createElementBlock("span",aa)):(c.openBlock(),c.createElementBlock("span",ia,c.toDisplayString(n.ssoLang[n.appLanguage].login),1))])])):c.createCommentVNode("",!0),sa,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[5]||(e[5]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ca,n.appleLoad?(c.openBlock(),c.createElementBlock("span",da)):(c.openBlock(),c.createElementBlock("span",la,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Apple",1))])):c.createCommentVNode("",!0),n.displayGoogleLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[6]||(e[6]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ua,n.googleLoad?(c.openBlock(),c.createElementBlock("span",ha)):(c.openBlock(),c.createElementBlock("span",pa,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Google",1))])):c.createCommentVNode("",!0),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[7]||(e[7]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[ma,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",fa)):(c.openBlock(),c.createElementBlock("span",ga,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Facebook",1))])):c.createCommentVNode("",!0),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:5,onClick:e[8]||(e[8]=(...s)=>n.microsoftLogin&&n.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[_a,n.microsoftLoad?(c.openBlock(),c.createElementBlock("span",ya)):(c.openBlock(),c.createElementBlock("span",va,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Outlook",1))])),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:6,onClick:e[9]||(e[9]=(...s)=>n.ssoLogin&&n.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[ka,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",ba)):(c.openBlock(),c.createElementBlock("span",wa,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1))])),n.displayMicrosoftSSOLogin?(c.openBlock(),c.createElementBlock("a",{key:7,onClick:e[10]||(e[10]=s=>n.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[Ca,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",Ea,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1)):(c.openBlock(),c.createElementBlock("span",Ta))])):c.createCommentVNode("",!0),i.displayFormLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:8,onClick:e[11]||(e[11]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[Ia,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Email",1)])),Sa,c.createElementVNode("p",Aa,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].terms_by_signing_in)+" ",1),Ra,c.createElementVNode("a",Na,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].and)+" ",1),c.createElementVNode("a",Pa,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),Ma,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:10,class:"page-login-links",onClick:e[12]||(e[12]=(...s)=>i.createAccountModal&&i.createAccountModal(...s))},[c.createElementVNode("a",za,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].or)+" ",1),Ba,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].create_new_account),1)]),Ua])):(c.openBlock(),c.createElementBlock("div",La,[i.displayRegisterLogin?(c.openBlock(),c.createBlock(a,{key:0,class:"forgot float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].create_account),1)]),_:1})):c.createCommentVNode("",!0),i.displayResetPasswordLogin?(c.openBlock(),c.createBlock(a,{key:1,class:"create float-left",to:"/reset"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].reset_password),1)]),_:1})):c.createCommentVNode("",!0),Oa]))],36)}const Hr=He(Ki,[["render",xa]]),Da={name:"AuthRegister",mixins:[or,ir,ar,dn,Ce],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&&z.$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 n={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},e=await this.register(n);this.submitted=!1,e.data&&e.data.success&&(e.data.message==="SUCCESS_REGISTER"?(this.isModal?z.$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):e.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...e,isModal:n.isModal}),await this.getLoggedInAccounts()),await this.loginSuccess({...e,isModal:n.isModal})))},close(){z.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){z.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(n){this.$storage.verifyEmail=n},referral(n){this.$storage.referral=n}}},Ha=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],qa={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Fa={class:"half-bottom small-top center-text color-black"},ja={key:0},Ka=c.createElementVNode("br",null,null,-1),Va={key:1},Ga={class:"page-login-field half-top"},Qa=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Ya=["placeholder"],Wa=c.createElementVNode("em",null,null,-1),$a={class:"page-login-field half-top"},Ja=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Xa=["placeholder","disabled"],Za=c.createElementVNode("em",null,null,-1),es={class:"page-login-field half-top half-bottom"},ts=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),ns=["type","placeholder"],rs={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},os={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},is={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},as={key:0},ss={key:1,class:"button--loading button__loader"},cs=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ls=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),ds={key:0},us={key:1,class:"button--loading button__loader"},ps=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),hs={key:0},ms={key:1,class:"button--loading button__loader"},gs=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),fs={key:0},_s={key:1,class:"button--loading button__loader"},vs=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),ys=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ks={class:"close-text center-text half-top color-black"},ws=c.createElementVNode("br",null,null,-1),bs={class:"",href:"https://tapni.co/policies/terms-of-service"},Cs={href:"https://tapni.co/policies/privacy-policy"},Es=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Ts={key:5,class:"page-login-links"},Is=c.createElementVNode("div",{class:"clear"},null,-1),Ss={class:"forgot center-text pointer small-top"},As=c.createElementVNode("br",null,null,-1),Rs=c.createElementVNode("div",{class:"clear"},null,-1);function Ns(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[12]||(e[12]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Ha)):c.createCommentVNode("",!0),c.createElementVNode("h1",qa,c.toDisplayString(n.ssoLang[this.appLanguage].register),1),c.createElementVNode("p",Fa,[o.usernameRegister?(c.openBlock(),c.createElementBlock("span",ja,[c.createTextVNode(" t.link/"+c.toDisplayString(o.username)+" "+c.toDisplayString(n.ssoLang[this.appLanguage].username_is_free)+" β
",1),Ka])):c.createCommentVNode("",!0)]),o.emailLogin?(c.openBlock(),c.createElementBlock("span",Va,[c.createElementVNode("div",Ga,[Qa,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Ya),[[c.vModelText,o.email]]),Wa]),c.createElementVNode("div",$a,[Ja,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.username=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:n.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:o.usernameRegister,class:c.normalizeClass({"input-disabled":o.usernameRegister})},null,42,Xa),[[c.vModelText,o.username]]),Za]),c.createElementVNode("div",es,[ts,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,ns),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",rs,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",os,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",is,[o.submitted?(c.openBlock(),c.createElementBlock("span",ss)):(c.openBlock(),c.createElementBlock("span",as,c.toDisplayString(o.formButtonText),1))])])):c.createCommentVNode("",!0),cs,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[7]||(e[7]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ls,n.appleLoad?(c.openBlock(),c.createElementBlock("span",us)):(c.openBlock(),c.createElementBlock("span",ds,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):c.createCommentVNode("",!0),c.createElementVNode("a",{onClick:e[8]||(e[8]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ps,n.googleLoad?(c.openBlock(),c.createElementBlock("span",ms)):(c.openBlock(),c.createElementBlock("span",hs,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[gs,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",_s)):(c.openBlock(),c.createElementBlock("span",fs,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):c.createCommentVNode("",!0),o.emailLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[10]||(e[10]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[vs,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),ys,c.createElementVNode("p",ks,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].terms_by_registering)+" ",1),ws,c.createElementVNode("a",bs,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].and)+" ",1),c.createElementVNode("a",Cs,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),Es,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:6,class:"page-login-links",onClick:e[11]||(e[11]=(...s)=>i.loginAccountModal&&i.loginAccountModal(...s))},[c.createElementVNode("a",Ss,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),As,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].sign_in_with_new),1)]),Rs])):(c.openBlock(),c.createElementBlock("div",Ts,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Is]))],36)}const qr=He(Da,[["render",Ns]]),Ps={name:"AuthVerify",mixins:[Ce],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),z.$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 n={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let e=await this.verify(n);this.submitted=!1,e&&e.data&&e.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="",z.$emit("closeModal")),await this.loginSetup(e),await this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+e.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){z.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){z.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(n){n&&(this.email=n)},"route.name"(n,e){!e&&n&&this.init()},"route.query":{handler(n){this.isEmpty(n)||this.init()},deep:!0}}},xe=n=>(c.pushScopeId("data-v-75db7f02"),n=n(),c.popScopeId(),n),Ms=[xe(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],Ls={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Os=xe(()=>c.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),zs={class:"page-login-field half-top"},Bs=xe(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Us=["placeholder"],xs=xe(()=>c.createElementVNode("em",null,null,-1)),Ds={class:"page-login-field half-top"},Hs=xe(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),qs=["placeholder"],Fs=xe(()=>c.createElementVNode("em",null,null,-1)),js={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ks={key:0,class:"uppercase"},Vs={key:1,class:"button--loading button__loader"},Gs=xe(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Qs={class:"close-text center-text half-top color-black"},Ys=["innerHTML"],Ws=xe(()=>c.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),$s=xe(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Js={key:1,class:"page-login-links"},Xs=xe(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Zs={class:"forgot center-text pointer small-top"},ec=xe(()=>c.createElementVNode("br",null,null,-1)),tc=xe(()=>c.createElementVNode("div",{class:"clear"},null,-1));function nc(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[6]||(e[6]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Ms)):c.createCommentVNode("",!0),c.createElementVNode("h1",Ls,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1),Os,c.createElementVNode("div",zs,[Bs,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,Us),[[c.vModelText,o.email]]),xs]),c.createElementVNode("div",Ds,[Hs,c.withDirectives(c.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":e[3]||(e[3]=s=>o.code=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:n.ssoLang[this.appLanguage].code,required:""},null,40,qs),[[c.vModelText,o.code]]),Fs]),c.createElementVNode("button",js,[o.submitted?(c.openBlock(),c.createElementBlock("span",Vs)):(c.openBlock(),c.createElementBlock("span",Ks,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1))]),Gs,c.createElementVNode("p",Qs,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].verify_account_p1},null,8,Ys),Ws]),$s,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:2,class:"page-login-links",onClick:e[5]||(e[5]=(...s)=>i.registerAccountModal&&i.registerAccountModal(...s))},[c.createElementVNode("a",Zs,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),ec,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].create_new_account),1)]),tc])):(c.openBlock(),c.createElementBlock("div",Js,[c.createVNode(a,{class:"create float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].register),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Xs]))],36)}const Fr=He(Ps,[["render",nc],["__scopeId","data-v-75db7f02"]]),rc={name:"AuthReset",mixins:[Ce],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),z.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let n={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(n),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 n={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},e=await this.changePassword(n);this.submitted=!1,e===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(n){this.$storage.verifyEmail=n}}},tt=n=>(c.pushScopeId("data-v-4f85b89a"),n=n(),c.popScopeId(),n),oc={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},ic=tt(()=>c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),ac={class:"page-login-field half-top color-black"},sc=tt(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),cc=["placeholder"],lc=tt(()=>c.createElementVNode("em",null,null,-1)),dc={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},uc={key:0,class:"uppercase"},pc={key:1,class:"button--loading button__loader"},hc=tt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),mc={class:"close-text center-text half-top color-black"},gc=["innerHTML"],fc=["href"],_c=tt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vc={class:"page-login-links"},yc=tt(()=>c.createElementVNode("div",{class:"clear"},null,-1)),kc={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},wc={class:"half-bottom small-top center-text color-black"},bc={class:"page-login-field half-top"},Cc=tt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Ec=["type","placeholder"],Tc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ic={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Sc={class:"page-login-field half-top"},Ac=tt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Rc=["type","placeholder"],Nc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Pc={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Mc={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Lc={key:0,class:"uppercase"},Oc={key:1,class:"button--loading button__loader"},zc=tt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Bc={class:"close-text center-text half-top color-black"},Uc=["innerHTML"],xc=["href"];function Dc(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return o.passwordChange?(c.openBlock(),c.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:e[7]||(e[7]=c.withModifiers((...s)=>i.changePw&&i.changePw(...s),["prevent"]))},[c.createElementVNode("h3",kc,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1),c.createElementVNode("p",wc,c.toDisplayString(n.ssoLang[this.appLanguage].password_new),1),c.createElementVNode("div",bc,[Cc,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,required:""},null,8,Ec),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword)},[c.withDirectives(c.createElementVNode("img",Tc,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Ic,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("div",Sc,[Ac,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.passwordRepeat=s),type:o.revealPassword2?"text":"password",placeholder:n.ssoLang[this.appLanguage].password_repeat,required:""},null,8,Rc),[[c.vModelDynamic,o.passwordRepeat]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword2=!o.revealPassword2)},[c.withDirectives(c.createElementVNode("img",Nc,null,512),[[c.vShow,!o.revealPassword2]]),c.withDirectives(c.createElementVNode("img",Pc,null,512),[[c.vShow,o.revealPassword2]])])]),c.createElementVNode("button",Mc,[o.submitted?(c.openBlock(),c.createElementBlock("span",Oc)):(c.openBlock(),c.createElementBlock("span",Lc,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1))]),zc,c.createElementVNode("p",Bc,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p2},null,8,Uc),c.createTextVNode(),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,xc)])],32)):(c.openBlock(),c.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:e[2]||(e[2]=c.withModifiers((...s)=>i.resetEmail&&i.resetEmail(...s),["prevent"])),autocomplete:"on"},[c.createElementVNode("h3",oc,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1),ic,c.createElementVNode("div",ac,[sc,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[0]||(e[0]=s=>o.email=s),onKeydown:e[1]||(e[1]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,cc),[[c.vModelText,o.email]]),lc]),c.createElementVNode("button",dc,[o.submitted?(c.openBlock(),c.createElementBlock("span",pc)):(c.openBlock(),c.createElementBlock("span",uc,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1))]),hc,c.createElementVNode("p",mc,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p1},null,8,gc),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,fc)]),_c,c.createElementVNode("div",vc,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),yc])],32))}const jr=He(rc,[["render",Dc],["__scopeId","data-v-4f85b89a"]]),Hc={name:"AuthCallback",mixins:[un,hn,Ce],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let n=co.sanitizeUrl(location.href);return n=n.replace("http","tapni"),n=n.replace("https","tapni"),window.open(n)}}},qc={class:"page-login content-boxed content-boxed-padding"},Fc={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},jc=c.createElementVNode("br",null,null,-1),Kc={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Vc(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",qc,[(n.$route.query.platform==="android"||n.$route.query.platform==="ios")&&!n.isNative?(c.openBlock(),c.createElementBlock("h5",Fc,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].you_will_be_redirected),1),jc,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),c.createElementVNode("span",{onClick:e[0]||(e[0]=(...a)=>i.inAppRedirect&&i.inAppRedirect(...a)),style:{color:"blue",cursor:"pointer"}},c.toDisplayString(n.ssoLang[this.appLanguage].click_here),1),c.createTextVNode(".")])):(c.openBlock(),c.createElementBlock("h4",Kc,c.toDisplayString(n.ssoLang[this.appLanguage].please_wait),1))])}const Kr=He(Hc,[["render",Vc]]),Gc={name:"ModalOverlay",mixins:[Ce],data(){return{toggle:!1}},mounted(){z.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),z.$on("openModalOverlay",()=>{this.toggle=!0}),z.$on("toggleLanguageModal",this.toggleModal),z.$on("toggleSSOModal",this.toggleModal),z.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(n=!0){n&&(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 n,e;!this.isLoggedIn&&((e=(n=this.user)==null?void 0:n.lead_form)!=null&&e.forceFilling)||z.$emit("closeModal")}}};function Qc(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":o.toggle}),onClick:e[0]||(e[0]=(...a)=>i.toggleEmit&&i.toggleEmit(...a))},null,2)}const Vr=He(Gc,[["render",Qc],["__scopeId","data-v-a128c2fa"]]),Yc={name:"SSO",mixins:[dn,un,hn,Ce],data(){return{toggle:!1,email:"",loading:!1}},mounted(){z.$on("toggleSSOModal",this.toggleModal),z.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){z._events.toggleSSOModal.pop()},methods:{forceClose(){z.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const n=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let e;if(!(!n||n.error))if(e=Object.keys(n.sso),e.length)e.length<=1?(e[0]==="azure"&&this.microsoftLogin("sso",n.sso.azure.sso),e[0]==="okta"&&this.oktaLogin(n.sso.okta.sso),e[0]==="saml"&&this.samlLogin(n.sso.saml.sso.loginUrl)):(this.forceClose(),z.$emit("toggleSSOPickModal",{sso:n.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Wc=[(n=>(c.pushScopeId("data-v-11f19a09"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],$c={class:"bold center-text color-black half-top half-bottom"},Jc=["placeholder"],Xc={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},Zc={key:0},el={key:1,class:"button--loading button__loader"};function tl(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("form",{onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>i.submit&&i.submit(...a),["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...a)=>i.forceClose&&i.forceClose(...a)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Wc),c.createElementVNode("h3",$c,c.toDisplayString(n.ssoLang[n.appLanguage].enter_company_email),1),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=a=>o.email=a),placeholder:n.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Jc),[[c.vModelText,o.email]])]),c.createElementVNode("button",Xc,[o.loading?(c.openBlock(),c.createElementBlock("span",el)):(c.openBlock(),c.createElementBlock("span",Zc,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))])],34)}const Gr=He(Yc,[["render",tl],["__scopeId","data-v-11f19a09"]]),nl={name:"SSOPick",mixins:[dn,un,hn,Ce],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){z.$on("toggleSSOPickModal",this.toggleModal),z.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){z._events.toggleSSOPickModal.pop()},methods:{forceClose(){z.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(n){n==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),n==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),n==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(n){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,n&&(this.sso=n.sso,this.email=n.email),this.toggle=!this.toggle}}},mn=n=>(c.pushScopeId("data-v-4f821f65"),n=n(),c.popScopeId(),n),rl=[mn(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],ol={class:"bold center-text color-black half-top half-bottom"},il=mn(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),al={key:0},sl={key:1,class:"button--loading button__loader"},cl=mn(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),ll={key:0},dl={key:1,class:"button--loading button__loader"},ul=mn(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),pl={key:0},hl={key:1,class:"button--loading button__loader"};function ml(n,e,t,r,o,i){var a,s,d;return c.openBlock(),c.createElementBlock("form",{onSubmit:e[4]||(e[4]=c.withModifiers(()=>{},["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...h)=>i.forceClose&&i.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},rl),c.createElementVNode("h3",ol,c.toDisplayString(n.ssoLang[n.appLanguage].select_sign_method),1),(a=o.sso)!=null&&a.azure?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[1]||(e[1]=h=>i.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[il,o.azureLoad?(c.openBlock(),c.createElementBlock("span",sl)):(c.openBlock(),c.createElementBlock("span",al,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Azure",1))])):c.createCommentVNode("",!0),(s=o.sso)!=null&&s.okta?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:e[2]||(e[2]=h=>i.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[cl,o.oktaLoad?(c.openBlock(),c.createElementBlock("span",dl)):(c.openBlock(),c.createElementBlock("span",ll,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Okta",1))])):c.createCommentVNode("",!0),(d=o.sso)!=null&&d.saml?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[3]||(e[3]=h=>i.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[ul,o.samlLoad?(c.openBlock(),c.createElementBlock("span",hl)):(c.openBlock(),c.createElementBlock("span",pl,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SAML",1))])):c.createCommentVNode("",!0)],34)}const Qr=He(nl,[["render",ml],["__scopeId","data-v-4f821f65"]]),gl={name:"LinkIcon",mixins:[Ce],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:{}},fl=["src","alt"],_l=["src","alt"],vl=["src","alt"],yl=["src","alt"];function kl(n,e,t,r,o,i){var a,s;return c.openBlock(),c.createElementBlock("a",{class:c.normalizeClass(["disable-select",t.linkStyle+(t.disabled?" opacity-50":"")]),style:c.normalizeStyle((t.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[c.createElementVNode("span",{class:c.normalizeClass({"user-link-img":!0,"pulse pulse-border":t.pulse,"link-drag":t.editing}),style:c.normalizeStyle({...(a=t.customLinkStyle)==null?void 0:a.linkIcon})},[!t.data.custom_icon&&t.data.type!=="customlink"?(c.openBlock(),c.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+t.data.type+".png",class:"responsive-image",alt:t.data.text,onLoad:e[0]||(e[0]=d=>n.$emit("loaded")),onError:e[1]||(e[1]=d=>n.$emit("loaded"))},null,40,fl)):!t.data.custom_icon&&t.data.type==="customlink"&&t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:t.data.text,onLoad:e[2]||(e[2]=d=>n.$emit("loaded")),onError:e[3]||(e[3]=d=>n.$emit("loaded"))},null,40,_l)):!t.data.custom_icon&&t.data.type==="customlink"&&!t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:t.data.text,onLoad:e[4]||(e[4]=d=>n.$emit("loaded")),onError:e[5]||(e[5]=d=>n.$emit("loaded"))},null,40,vl)):(c.openBlock(),c.createElementBlock("img",{key:3,src:t.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:t.data.text,onLoad:e[6]||(e[6]=d=>n.$emit("loaded")),onError:e[7]||(e[7]=d=>n.$emit("loaded"))},null,40,yl))],6),c.createElementVNode("span",{class:"link-text link-drag color-black",style:c.normalizeStyle({color:(s=t.customLinkStyle)==null?void 0:s.color})},c.toDisplayString(i.linkText),5)],6)}const wl=He(gl,[["render",kl]]),bl={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:""},Cl={name:"Language",mixins:[Ce],components:{LinkIcon:wl},data(){return{toggle:!1}},async mounted(){z.$on("toggleLanguageModal",this.toggleModal),z.$on("closeModal",()=>{this.toggle=!1});let n=this.isNative?await Vt.Device.getLanguageCode():Tt.getFirstBrowserLanguage();n&&bl.SUPPORTED_LANGUAGES.includes(n)&&this.updateLanguage(n)},beforeDestroy(){z._events.toggleLanguageModal.pop()},methods:{forceClose(){z.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(n){z.$emit("updateLang",n),z.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},El=[(n=>(c.pushScopeId("data-v-34a6b7b2"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 fa color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],Tl={class:"bold center-text color-black small-bottom"};function Il(n,e,t,r,o,i){const a=c.resolveComponent("LinkIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},El),c.createElementVNode("h3",Tl,c.toDisplayString(n.ssoLang[n.appLanguage].app_language),1),c.createVNode(a,{onClick:e[1]||(e[1]=s=>i.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:n.ssoLang[this.appLanguage].english},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[2]||(e[2]=s=>i.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:n.ssoLang[this.appLanguage].spanish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[3]||(e[3]=s=>i.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:n.ssoLang[this.appLanguage].german},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[4]||(e[4]=s=>i.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:n.ssoLang[this.appLanguage].italian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[5]||(e[5]=s=>i.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:n.ssoLang[this.appLanguage].french},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[6]||(e[6]=s=>i.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:n.ssoLang[this.appLanguage].korean},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[7]||(e[7]=s=>i.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:n.ssoLang[this.appLanguage].serbian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[8]||(e[8]=s=>i.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:n.ssoLang[this.appLanguage].turkish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const Yr=He(Cl,[["render",Il],["__scopeId","data-v-34a6b7b2"]]);var Sl={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 Al={id:"ssoapp"},Rl={key:0,href:"/",class:"header-logo"},Nl=[c.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFI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KnsRZI4VVVV0rJlS9l7771lwoQJbBCSCiNHjpTjjjtO5s1juH5SOVgYtm3bNl6F3rVrV/YiSY1WrVqxEUhqdOzYUdq0afO5EFJ0eIdOCCGEUKETQgghhAqdEEIIIVTohBBCCKFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],Pl={class:"lang-icon"},Ml={class:"snackbar snackbar-boxed",id:"snackbar"},Ll={class:"snack-body",id:"errorSnack"},Ol={id:"errorMessage"},zl=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Bl={class:"snack-body",id:"successSnack"},Ul={id:"successMessage"},xl=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Wr=Object.assign({name:"TapniAuth",mixins:[Ce],data(){return{isSetup:!1}},components:{Language:Yr,SSOPick:Qr,SSO:Gr,ModalOverlay:Vr,AuthCallback:Kr,AuthReset:jr,AuthVerify:Fr,AuthRegister:qr,AuthLogin:Hr,AuthWelcome:nr},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),z.$on("ssoEvent",this.ssoOutgoingEvent),z.$on("ssoLogout",n=>this.logout(n)),z.$on("getLoggedInAccounts",n=>this.getLoggedInAccounts(n)),z.$on("refreshTokenAction",n=>this.refreshTokenAction(n)),z.$on("switchAccount",n=>this.switchAccount(n))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const n=this.getRefreshTokens();this.setRefreshToken(n[0]),await this.getLoggedInAccounts(),this.$emit("ssoLibraryReady",this.$storage)},ssoOutgoingEvent(n){this.$emit("ssoEvent",n)},ssoIncomingEvent(n){z.$emit(n.name,n.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){z.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()},"$storageReady.value"(n){n&&this.display==="npm"&&this.init()}}},{setup(n){return document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script");e.src=`https://www.google.com/recaptcha/api.js?render=${Sl.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(e)}),(e,t)=>(c.openBlock(),c.createElementBlock("div",Al,[e.display==="redirect"?(c.openBlock(),c.createElementBlock("a",Rl,Nl)):c.createCommentVNode("",!0),e.display==="redirect"?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:t[0]||(t[0]=(...r)=>e.toggleLanguageModal&&e.toggleLanguageModal(...r)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[c.createElementVNode("span",Pl,c.toDisplayString(e.appLanguage.toUpperCase()),1)])):c.createCommentVNode("",!0),c.createVNode(Vr),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Yr,{key:2})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Gr,{key:3})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Qr,{key:4})),e.initialized&&e.renderView==="AuthWelcome"?(c.openBlock(),c.createBlock(nr,{key:5})):e.initialized&&e.renderView==="AuthLogin"?(c.openBlock(),c.createBlock(Hr,{key:6,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthRegister"?(c.openBlock(),c.createBlock(qr,{key:7,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthVerify"?(c.openBlock(),c.createBlock(Fr,{key:8,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthReset"?(c.openBlock(),c.createBlock(jr,{key:9})):e.initialized&&e.renderView==="AuthCallback"?(c.openBlock(),c.createBlock(Kr,{key:10})):e.display!=="npm"?(c.openBlock(),c.createBlock(c.unref(Rt.RouterView),{key:11})):c.createCommentVNode("",!0),c.createElementVNode("div",Ml,[c.createElementVNode("p",Ll,[c.createElementVNode("span",Ol,c.toDisplayString(e.ssoLang[e.appLanguage].error),1),c.createElementVNode("a",{onClick:t[1]||(t[1]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},zl)]),c.createElementVNode("p",Bl,[c.createElementVNode("span",Ul,c.toDisplayString(e.ssoLang[e.appLanguage].success),1),c.createElementVNode("a",{onClick:t[2]||(t[2]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},xl)])])]))}}),Dl={TapniAuth:Wr,AuthMixin:Ce,install:(n,e)=>{e&&e.API_ROOT&&ht.setApiRootFromOptions(e.API_ROOT),n.component("TapniAuth",Wr)}};class Hl extends Ne.WebPlugin{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.defer=!0,o.async=!0,o.id=e,o.onload=this.platformJsLoaded.bind(this),o.src="https://apis.google.com/js/platform.js",r.appendChild(o)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var t,r;if(typeof window>"u")return;const o=(t=document.getElementsByName("google-signin-client_id")[0])===null||t===void 0?void 0:t.content,i=e.clientId||o||"";i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(r=e.grantOfflineAccess)!==null&&r!==void 0?r:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(a=>{window.gapiResolve=a,this.loadScript()}),this.addUserChangeListener()}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,t)=>{var r;try{let o;const i=(r=this.options.grantOfflineAccess)!==null&&r!==void 0?r:!1;i?o=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const a=gapi.auth2.getAuthInstance().currentUser.get();i&&await a.reloadAuthResponse();const s=this.getUserFrom(a);s.serverAuthCode=o,e(s)}catch(o){t(o)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const t={},r=e.getBasicProfile();t.email=r.getEmail(),t.familyName=r.getFamilyName(),t.givenName=r.getGivenName(),t.id=r.getId(),t.imageUrl=r.getImageUrl(),t.name=r.getName();const o=e.getAuthResponse(!0);return t.authentication={accessToken:o.access_token,idToken:o.id_token,refreshToken:""},t}}const ql=Object.freeze(Object.defineProperty({__proto__:null,GoogleAuthWeb:Hl},Symbol.toStringTag,{value:"Module"}));class Fl extends Ne.WebPlugin{async initialize(e){const t={version:"v17.0"};return await this.loadScript(e.locale),FB.init(Object.assign(Object.assign({},t),e))}loadScript(e){if(typeof document>"u")return Promise.reject("document global not found");const t="fb";if(document.getElementById(t))return Promise.resolve();const o=document.getElementsByTagName("head")[0],i=document.createElement("script");return new Promise(a=>{i.onload=()=>a(),i.defer=!0,i.async=!0,i.id=t,i.src=`https://connect.facebook.net/${e??"en_US"}/sdk.js`,o.appendChild(i)})}async login(e){return new Promise((t,r)=>{FB.login(o=>{o.status==="connected"?t({accessToken:{token:o.authResponse.accessToken}}):r({accessToken:{token:null}})},{scope:e.permissions.join(",")})})}async logout(){return new Promise(e=>FB.logout(()=>e()))}async reauthorize(){return new Promise(e=>FB.reauthorize(t=>e(t)))}async getCurrentAccessToken(){return new Promise((e,t)=>{FB.getLoginStatus(r=>{if(r.status==="connected"){const o={accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:r.authResponse.accessToken,userId:r.authResponse.userID}};e(o)}else t({accessToken:{token:null}})})})}async getProfile(e){const t=e.fields.join(",");return new Promise((r,o)=>{FB.api("/me",{fields:t},i=>{if(i.error){o(i.error.message);return}r(i)})})}async logEvent(){return Promise.resolve()}async setAutoLogAppEventsEnabled(){return Promise.resolve()}async setAdvertiserTrackingEnabled(){return Promise.resolve()}async setAdvertiserIDCollectionEnabled(){return Promise.resolve()}}const jl=Object.freeze(Object.defineProperty({__proto__:null,FacebookLoginWeb:Fl},Symbol.toStringTag,{value:"Module"}));var $r={exports:{}};/*!
|
|
137
|
+
*/(function(n){const e=pn,t=Dn,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=p,n.SlowBuffer=we,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:s}=globalThis;p.TYPED_ARRAY_SUPPORT=d(),!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 d(){try{const m=new i(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,i.prototype),Object.setPrototypeOf(m,l),m.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 h(m){if(m>o)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new i(m);return Object.setPrototypeOf(l,p.prototype),l}function p(m,l,u){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(m)}return f(m,l,u)}p.poolSize=8192;function f(m,l,u){if(typeof m=="string")return R(m,l);if(a.isView(m))return H(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(We(m,a)||m&&We(m.buffer,a)||typeof s<"u"&&(We(m,s)||m&&We(m.buffer,s)))return O(m,l,u);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const g=m.valueOf&&m.valueOf();if(g!=null&&g!==m)return p.from(g,l,u);const y=V(m);if(y)return y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return p.from(m[Symbol.toPrimitive]("string"),l,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}p.from=function(m,l,u){return f(m,l,u)},Object.setPrototypeOf(p.prototype,i.prototype),Object.setPrototypeOf(p,i);function v(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function k(m,l,u){return v(m),m<=0?h(m):l!==void 0?typeof u=="string"?h(m).fill(l,u):h(m).fill(l):h(m)}p.alloc=function(m,l,u){return k(m,l,u)};function C(m){return v(m),h(m<0?0:Z(m)|0)}p.allocUnsafe=function(m){return C(m)},p.allocUnsafeSlow=function(m){return C(m)};function R(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!p.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const u=Le(m,l)|0;let g=h(u);const y=g.write(m,l);return y!==u&&(g=g.slice(0,y)),g}function P(m){const l=m.length<0?0:Z(m.length)|0,u=h(l);for(let g=0;g<l;g+=1)u[g]=m[g]&255;return u}function H(m){if(We(m,i)){const l=new i(m);return O(l.buffer,l.byteOffset,l.byteLength)}return P(m)}function O(m,l,u){if(l<0||m.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<l+(u||0))throw new RangeError('"length" is outside of buffer bounds');let g;return l===void 0&&u===void 0?g=new i(m):u===void 0?g=new i(m,l):g=new i(m,l,u),Object.setPrototypeOf(g,p.prototype),g}function V(m){if(p.isBuffer(m)){const l=Z(m.length)|0,u=h(l);return u.length===0||m.copy(u,0,0,l),u}if(m.length!==void 0)return typeof m.length!="number"||jn(m.length)?h(0):P(m);if(m.type==="Buffer"&&Array.isArray(m.data))return P(m.data)}function Z(m){if(m>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return m|0}function we(m){return+m!=m&&(m=0),p.alloc(+m)}p.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==p.prototype},p.compare=function(l,u){if(We(l,i)&&(l=p.from(l,l.offset,l.byteLength)),We(u,i)&&(u=p.from(u,u.offset,u.byteLength)),!p.isBuffer(l)||!p.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===u)return 0;let g=l.length,y=u.length;for(let w=0,E=Math.min(g,y);w<E;++w)if(l[w]!==u[w]){g=l[w],y=u[w];break}return g<y?-1:y<g?1:0},p.isEncoding=function(l){switch(String(l).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(l,u){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return p.alloc(0);let g;if(u===void 0)for(u=0,g=0;g<l.length;++g)u+=l[g].length;const y=p.allocUnsafe(u);let w=0;for(g=0;g<l.length;++g){let E=l[g];if(We(E,i))w+E.length>y.length?(p.isBuffer(E)||(E=p.from(E)),E.copy(y,w)):i.prototype.set.call(y,E,w);else if(p.isBuffer(E))E.copy(y,w);else throw new TypeError('"list" argument must be an Array of Buffers');w+=E.length}return y};function Le(m,l){if(p.isBuffer(m))return m.length;if(a.isView(m)||We(m,a))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const u=m.length,g=arguments.length>2&&arguments[2]===!0;if(!g&&u===0)return 0;let y=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Fn(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ao(m).length;default:if(y)return g?-1:Fn(m).length;l=(""+l).toLowerCase(),y=!0}}p.byteLength=Le;function nt(m,l,u){let g=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,l>>>=0,u<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return td(this,l,u);case"utf8":case"utf-8":return Jr(this,l,u);case"ascii":return Zl(this,l,u);case"latin1":case"binary":return ed(this,l,u);case"base64":return Jl(this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nd(this,l,u);default:if(g)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),g=!0}}p.prototype._isBuffer=!0;function ee(m,l,u){const g=m[l];m[l]=m[u],m[u]=g}p.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<l;u+=2)ee(this,u,u+1);return this},p.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<l;u+=4)ee(this,u,u+3),ee(this,u+1,u+2);return this},p.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<l;u+=8)ee(this,u,u+7),ee(this,u+1,u+6),ee(this,u+2,u+5),ee(this,u+3,u+4);return this},p.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Jr(this,0,l):nt.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(l){if(!p.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:p.compare(this,l)===0},p.prototype.inspect=function(){let l="";const u=n.INSPECT_MAX_BYTES;return l=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(l+=" ... "),"<Buffer "+l+">"},r&&(p.prototype[r]=p.prototype.inspect),p.prototype.compare=function(l,u,g,y,w){if(We(l,i)&&(l=p.from(l,l.offset,l.byteLength)),!p.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(u===void 0&&(u=0),g===void 0&&(g=l?l.length:0),y===void 0&&(y=0),w===void 0&&(w=this.length),u<0||g>l.length||y<0||w>this.length)throw new RangeError("out of range index");if(y>=w&&u>=g)return 0;if(y>=w)return-1;if(u>=g)return 1;if(u>>>=0,g>>>=0,y>>>=0,w>>>=0,this===l)return 0;let E=w-y,Q=g-u;const ae=Math.min(E,Q),oe=this.slice(y,w),se=l.slice(u,g);for(let te=0;te<ae;++te)if(oe[te]!==se[te]){E=oe[te],Q=se[te];break}return E<Q?-1:Q<E?1:0};function De(m,l,u,g,y){if(m.length===0)return-1;if(typeof u=="string"?(g=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,jn(u)&&(u=y?0:m.length-1),u<0&&(u=m.length+u),u>=m.length){if(y)return-1;u=m.length-1}else if(u<0)if(y)u=0;else return-1;if(typeof l=="string"&&(l=p.from(l,g)),p.isBuffer(l))return l.length===0?-1:Ae(m,l,u,g,y);if(typeof l=="number")return l=l&255,typeof i.prototype.indexOf=="function"?y?i.prototype.indexOf.call(m,l,u):i.prototype.lastIndexOf.call(m,l,u):Ae(m,[l],u,g,y);throw new TypeError("val must be string, number or Buffer")}function Ae(m,l,u,g,y){let w=1,E=m.length,Q=l.length;if(g!==void 0&&(g=String(g).toLowerCase(),g==="ucs2"||g==="ucs-2"||g==="utf16le"||g==="utf-16le")){if(m.length<2||l.length<2)return-1;w=2,E/=2,Q/=2,u/=2}function ae(se,te){return w===1?se[te]:se.readUInt16BE(te*w)}let oe;if(y){let se=-1;for(oe=u;oe<E;oe++)if(ae(m,oe)===ae(l,se===-1?0:oe-se)){if(se===-1&&(se=oe),oe-se+1===Q)return se*w}else se!==-1&&(oe-=oe-se),se=-1}else for(u+Q>E&&(u=E-Q),oe=u;oe>=0;oe--){let se=!0;for(let te=0;te<Q;te++)if(ae(m,oe+te)!==ae(l,te)){se=!1;break}if(se)return oe}return-1}p.prototype.includes=function(l,u,g){return this.indexOf(l,u,g)!==-1},p.prototype.indexOf=function(l,u,g){return De(this,l,u,g,!0)},p.prototype.lastIndexOf=function(l,u,g){return De(this,l,u,g,!1)};function Hn(m,l,u,g){u=Number(u)||0;const y=m.length-u;g?(g=Number(g),g>y&&(g=y)):g=y;const w=l.length;g>w/2&&(g=w/2);let E;for(E=0;E<g;++E){const Q=parseInt(l.substr(E*2,2),16);if(jn(Q))return E;m[u+E]=Q}return E}function Ql(m,l,u,g){return gn(Fn(l,m.length-u),m,u,g)}function Yl(m,l,u,g){return gn(ad(l),m,u,g)}function Wl(m,l,u,g){return gn(ao(l),m,u,g)}function $l(m,l,u,g){return gn(sd(l,m.length-u),m,u,g)}p.prototype.write=function(l,u,g,y){if(u===void 0)y="utf8",g=this.length,u=0;else if(g===void 0&&typeof u=="string")y=u,g=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(g)?(g=g>>>0,y===void 0&&(y="utf8")):(y=g,g=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const w=this.length-u;if((g===void 0||g>w)&&(g=w),l.length>0&&(g<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");y||(y="utf8");let E=!1;for(;;)switch(y){case"hex":return Hn(this,l,u,g);case"utf8":case"utf-8":return Ql(this,l,u,g);case"ascii":case"latin1":case"binary":return Yl(this,l,u,g);case"base64":return Wl(this,l,u,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $l(this,l,u,g);default:if(E)throw new TypeError("Unknown encoding: "+y);y=(""+y).toLowerCase(),E=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Jl(m,l,u){return l===0&&u===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(l,u))}function Jr(m,l,u){u=Math.min(m.length,u);const g=[];let y=l;for(;y<u;){const w=m[y];let E=null,Q=w>239?4:w>223?3:w>191?2:1;if(y+Q<=u){let ae,oe,se,te;switch(Q){case 1:w<128&&(E=w);break;case 2:ae=m[y+1],(ae&192)===128&&(te=(w&31)<<6|ae&63,te>127&&(E=te));break;case 3:ae=m[y+1],oe=m[y+2],(ae&192)===128&&(oe&192)===128&&(te=(w&15)<<12|(ae&63)<<6|oe&63,te>2047&&(te<55296||te>57343)&&(E=te));break;case 4:ae=m[y+1],oe=m[y+2],se=m[y+3],(ae&192)===128&&(oe&192)===128&&(se&192)===128&&(te=(w&15)<<18|(ae&63)<<12|(oe&63)<<6|se&63,te>65535&&te<1114112&&(E=te))}}E===null?(E=65533,Q=1):E>65535&&(E-=65536,g.push(E>>>10&1023|55296),E=56320|E&1023),g.push(E),y+=Q}return Xl(g)}const Xr=4096;function Xl(m){const l=m.length;if(l<=Xr)return String.fromCharCode.apply(String,m);let u="",g=0;for(;g<l;)u+=String.fromCharCode.apply(String,m.slice(g,g+=Xr));return u}function Zl(m,l,u){let g="";u=Math.min(m.length,u);for(let y=l;y<u;++y)g+=String.fromCharCode(m[y]&127);return g}function ed(m,l,u){let g="";u=Math.min(m.length,u);for(let y=l;y<u;++y)g+=String.fromCharCode(m[y]);return g}function td(m,l,u){const g=m.length;(!l||l<0)&&(l=0),(!u||u<0||u>g)&&(u=g);let y="";for(let w=l;w<u;++w)y+=cd[m[w]];return y}function nd(m,l,u){const g=m.slice(l,u);let y="";for(let w=0;w<g.length-1;w+=2)y+=String.fromCharCode(g[w]+g[w+1]*256);return y}p.prototype.slice=function(l,u){const g=this.length;l=~~l,u=u===void 0?g:~~u,l<0?(l+=g,l<0&&(l=0)):l>g&&(l=g),u<0?(u+=g,u<0&&(u=0)):u>g&&(u=g),u<l&&(u=l);const y=this.subarray(l,u);return Object.setPrototypeOf(y,p.prototype),y};function he(m,l,u){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+l>u)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=this[l],w=1,E=0;for(;++E<u&&(w*=256);)y+=this[l+E]*w;return y},p.prototype.readUintBE=p.prototype.readUIntBE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=this[l+--u],w=1;for(;u>0&&(w*=256);)y+=this[l+--u]*w;return y},p.prototype.readUint8=p.prototype.readUInt8=function(l,u){return l=l>>>0,u||he(l,1,this.length),this[l]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(l,u){return l=l>>>0,u||he(l,2,this.length),this[l]|this[l+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(l,u){return l=l>>>0,u||he(l,2,this.length),this[l]<<8|this[l+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(l,u){return l=l>>>0,u||he(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(l,u){return l=l>>>0,u||he(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},p.prototype.readBigUInt64LE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=u+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,w=this[++l]+this[++l]*2**8+this[++l]*2**16+g*2**24;return BigInt(y)+(BigInt(w)<<BigInt(32))}),p.prototype.readBigUInt64BE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=u*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],w=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+g;return(BigInt(y)<<BigInt(32))+BigInt(w)}),p.prototype.readIntLE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=this[l],w=1,E=0;for(;++E<u&&(w*=256);)y+=this[l+E]*w;return w*=128,y>=w&&(y-=Math.pow(2,8*u)),y},p.prototype.readIntBE=function(l,u,g){l=l>>>0,u=u>>>0,g||he(l,u,this.length);let y=u,w=1,E=this[l+--y];for(;y>0&&(w*=256);)E+=this[l+--y]*w;return w*=128,E>=w&&(E-=Math.pow(2,8*u)),E},p.prototype.readInt8=function(l,u){return l=l>>>0,u||he(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},p.prototype.readInt16LE=function(l,u){l=l>>>0,u||he(l,2,this.length);const g=this[l]|this[l+1]<<8;return g&32768?g|4294901760:g},p.prototype.readInt16BE=function(l,u){l=l>>>0,u||he(l,2,this.length);const g=this[l+1]|this[l]<<8;return g&32768?g|4294901760:g},p.prototype.readInt32LE=function(l,u){return l=l>>>0,u||he(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},p.prototype.readInt32BE=function(l,u){return l=l>>>0,u||he(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},p.prototype.readBigInt64LE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(g<<24);return(BigInt(y)<<BigInt(32))+BigInt(u+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),p.prototype.readBigInt64BE=at(function(l){l=l>>>0,At(l,"offset");const u=this[l],g=this[l+7];(u===void 0||g===void 0)&&Kt(l,this.length-8);const y=(u<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(y)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+g)}),p.prototype.readFloatLE=function(l,u){return l=l>>>0,u||he(l,4,this.length),t.read(this,l,!0,23,4)},p.prototype.readFloatBE=function(l,u){return l=l>>>0,u||he(l,4,this.length),t.read(this,l,!1,23,4)},p.prototype.readDoubleLE=function(l,u){return l=l>>>0,u||he(l,8,this.length),t.read(this,l,!0,52,8)},p.prototype.readDoubleBE=function(l,u){return l=l>>>0,u||he(l,8,this.length),t.read(this,l,!1,52,8)};function Re(m,l,u,g,y,w){if(!p.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>y||l<w)throw new RangeError('"value" argument is out of bounds');if(u+g>m.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(l,u,g,y){if(l=+l,u=u>>>0,g=g>>>0,!y){const Q=Math.pow(2,8*g)-1;Re(this,l,u,g,Q,0)}let w=1,E=0;for(this[u]=l&255;++E<g&&(w*=256);)this[u+E]=l/w&255;return u+g},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(l,u,g,y){if(l=+l,u=u>>>0,g=g>>>0,!y){const Q=Math.pow(2,8*g)-1;Re(this,l,u,g,Q,0)}let w=g-1,E=1;for(this[u+w]=l&255;--w>=0&&(E*=256);)this[u+w]=l/E&255;return u+g},p.prototype.writeUint8=p.prototype.writeUInt8=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,1,255,0),this[u]=l&255,u+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,65535,0),this[u]=l&255,this[u+1]=l>>>8,u+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,65535,0),this[u]=l>>>8,this[u+1]=l&255,u+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,4294967295,0),this[u+3]=l>>>24,this[u+2]=l>>>16,this[u+1]=l>>>8,this[u]=l&255,u+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,4294967295,0),this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=l&255,u+4};function Zr(m,l,u,g,y){io(l,g,y,m,u,7);let w=Number(l&BigInt(4294967295));m[u++]=w,w=w>>8,m[u++]=w,w=w>>8,m[u++]=w,w=w>>8,m[u++]=w;let E=Number(l>>BigInt(32)&BigInt(4294967295));return m[u++]=E,E=E>>8,m[u++]=E,E=E>>8,m[u++]=E,E=E>>8,m[u++]=E,u}function eo(m,l,u,g,y){io(l,g,y,m,u,7);let w=Number(l&BigInt(4294967295));m[u+7]=w,w=w>>8,m[u+6]=w,w=w>>8,m[u+5]=w,w=w>>8,m[u+4]=w;let E=Number(l>>BigInt(32)&BigInt(4294967295));return m[u+3]=E,E=E>>8,m[u+2]=E,E=E>>8,m[u+1]=E,E=E>>8,m[u]=E,u+8}p.prototype.writeBigUInt64LE=at(function(l,u=0){return Zr(this,l,u,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=at(function(l,u=0){return eo(this,l,u,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(l,u,g,y){if(l=+l,u=u>>>0,!y){const ae=Math.pow(2,8*g-1);Re(this,l,u,g,ae-1,-ae)}let w=0,E=1,Q=0;for(this[u]=l&255;++w<g&&(E*=256);)l<0&&Q===0&&this[u+w-1]!==0&&(Q=1),this[u+w]=(l/E>>0)-Q&255;return u+g},p.prototype.writeIntBE=function(l,u,g,y){if(l=+l,u=u>>>0,!y){const ae=Math.pow(2,8*g-1);Re(this,l,u,g,ae-1,-ae)}let w=g-1,E=1,Q=0;for(this[u+w]=l&255;--w>=0&&(E*=256);)l<0&&Q===0&&this[u+w+1]!==0&&(Q=1),this[u+w]=(l/E>>0)-Q&255;return u+g},p.prototype.writeInt8=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,1,127,-128),l<0&&(l=255+l+1),this[u]=l&255,u+1},p.prototype.writeInt16LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,32767,-32768),this[u]=l&255,this[u+1]=l>>>8,u+2},p.prototype.writeInt16BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,2,32767,-32768),this[u]=l>>>8,this[u+1]=l&255,u+2},p.prototype.writeInt32LE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,2147483647,-2147483648),this[u]=l&255,this[u+1]=l>>>8,this[u+2]=l>>>16,this[u+3]=l>>>24,u+4},p.prototype.writeInt32BE=function(l,u,g){return l=+l,u=u>>>0,g||Re(this,l,u,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=l&255,u+4},p.prototype.writeBigInt64LE=at(function(l,u=0){return Zr(this,l,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=at(function(l,u=0){return eo(this,l,u,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function to(m,l,u,g,y,w){if(u+g>m.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function no(m,l,u,g,y){return l=+l,u=u>>>0,y||to(m,l,u,4),t.write(m,l,u,g,23,4),u+4}p.prototype.writeFloatLE=function(l,u,g){return no(this,l,u,!0,g)},p.prototype.writeFloatBE=function(l,u,g){return no(this,l,u,!1,g)};function ro(m,l,u,g,y){return l=+l,u=u>>>0,y||to(m,l,u,8),t.write(m,l,u,g,52,8),u+8}p.prototype.writeDoubleLE=function(l,u,g){return ro(this,l,u,!0,g)},p.prototype.writeDoubleBE=function(l,u,g){return ro(this,l,u,!1,g)},p.prototype.copy=function(l,u,g,y){if(!p.isBuffer(l))throw new TypeError("argument should be a Buffer");if(g||(g=0),!y&&y!==0&&(y=this.length),u>=l.length&&(u=l.length),u||(u=0),y>0&&y<g&&(y=g),y===g||l.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(g<0||g>=this.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("sourceEnd out of bounds");y>this.length&&(y=this.length),l.length-u<y-g&&(y=l.length-u+g);const w=y-g;return this===l&&typeof i.prototype.copyWithin=="function"?this.copyWithin(u,g,y):i.prototype.set.call(l,this.subarray(g,y),u),w},p.prototype.fill=function(l,u,g,y){if(typeof l=="string"){if(typeof u=="string"?(y=u,u=0,g=this.length):typeof g=="string"&&(y=g,g=this.length),y!==void 0&&typeof y!="string")throw new TypeError("encoding must be a string");if(typeof y=="string"&&!p.isEncoding(y))throw new TypeError("Unknown encoding: "+y);if(l.length===1){const E=l.charCodeAt(0);(y==="utf8"&&E<128||y==="latin1")&&(l=E)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(u<0||this.length<u||this.length<g)throw new RangeError("Out of range index");if(g<=u)return this;u=u>>>0,g=g===void 0?this.length:g>>>0,l||(l=0);let w;if(typeof l=="number")for(w=u;w<g;++w)this[w]=l;else{const E=p.isBuffer(l)?l:p.from(l,y),Q=E.length;if(Q===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(w=0;w<g-u;++w)this[w+u]=E[w%Q]}return this};const St={};function qn(m,l,u){St[m]=class extends u{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:y,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}qn("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),qn("ERR_INVALID_ARG_TYPE",function(m,l){return`The "${m}" argument must be of type number. Received type ${typeof l}`},TypeError),qn("ERR_OUT_OF_RANGE",function(m,l,u){let g=`The value of "${m}" is out of range.`,y=u;return Number.isInteger(u)&&Math.abs(u)>2**32?y=oo(String(u)):typeof u=="bigint"&&(y=String(u),(u>BigInt(2)**BigInt(32)||u<-(BigInt(2)**BigInt(32)))&&(y=oo(y)),y+="n"),g+=` It must be ${l}. Received ${y}`,g},RangeError);function oo(m){let l="",u=m.length;const g=m[0]==="-"?1:0;for(;u>=g+4;u-=3)l=`_${m.slice(u-3,u)}${l}`;return`${m.slice(0,u)}${l}`}function rd(m,l,u){At(l,"offset"),(m[l]===void 0||m[l+u]===void 0)&&Kt(l,m.length-(u+1))}function io(m,l,u,g,y,w){if(m>u||m<l){const E=typeof l=="bigint"?"n":"";let Q;throw w>3?l===0||l===BigInt(0)?Q=`>= 0${E} and < 2${E} ** ${(w+1)*8}${E}`:Q=`>= -(2${E} ** ${(w+1)*8-1}${E}) and < 2 ** ${(w+1)*8-1}${E}`:Q=`>= ${l}${E} and <= ${u}${E}`,new St.ERR_OUT_OF_RANGE("value",Q,m)}rd(g,y,w)}function At(m,l){if(typeof m!="number")throw new St.ERR_INVALID_ARG_TYPE(l,"number",m)}function Kt(m,l,u){throw Math.floor(m)!==m?(At(m,u),new St.ERR_OUT_OF_RANGE(u||"offset","an integer",m)):l<0?new St.ERR_BUFFER_OUT_OF_BOUNDS:new St.ERR_OUT_OF_RANGE(u||"offset",`>= ${u?1:0} and <= ${l}`,m)}const od=/[^+/0-9A-Za-z-_]/g;function id(m){if(m=m.split("=")[0],m=m.trim().replace(od,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function Fn(m,l){l=l||1/0;let u;const g=m.length;let y=null;const w=[];for(let E=0;E<g;++E){if(u=m.charCodeAt(E),u>55295&&u<57344){if(!y){if(u>56319){(l-=3)>-1&&w.push(239,191,189);continue}else if(E+1===g){(l-=3)>-1&&w.push(239,191,189);continue}y=u;continue}if(u<56320){(l-=3)>-1&&w.push(239,191,189),y=u;continue}u=(y-55296<<10|u-56320)+65536}else y&&(l-=3)>-1&&w.push(239,191,189);if(y=null,u<128){if((l-=1)<0)break;w.push(u)}else if(u<2048){if((l-=2)<0)break;w.push(u>>6|192,u&63|128)}else if(u<65536){if((l-=3)<0)break;w.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((l-=4)<0)break;w.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return w}function ad(m){const l=[];for(let u=0;u<m.length;++u)l.push(m.charCodeAt(u)&255);return l}function sd(m,l){let u,g,y;const w=[];for(let E=0;E<m.length&&!((l-=2)<0);++E)u=m.charCodeAt(E),g=u>>8,y=u%256,w.push(y),w.push(g);return w}function ao(m){return e.toByteArray(id(m))}function gn(m,l,u,g){let y;for(y=0;y<g&&!(y+u>=l.length||y>=m.length);++y)l[y+u]=m[y];return y}function We(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function jn(m){return m!==m}const cd=function(){const m="0123456789abcdef",l=new Array(256);for(let u=0;u<16;++u){const g=u*16;for(let y=0;y<16;++y)l[g+y]=m[u]+m[y]}return l}();function at(m){return typeof BigInt>"u"?ld:m}function ld(){throw new Error("BigInt not supported")}})(xr);const ji=xr.Buffer,hn={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(n){this.code_verifier=Tt.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await Tt.pkceChallengeFromVerifier(this.code_verifier);const e=Ne.Capacitor.getPlatform();let t=ji.from(`code_challenge=${this.code_challenge}&platform=${e}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");n=`${n}&RelayState=${t}`;let r=this;window.addEventListener("message",async o=>{var i;if(!this.allowedOrigins.includes(o.origin))return console.log("Origin is not allowed!");if(o.data.type==="saml"&&o.data.code){if(this.display==="popup")return(i=window.parent)==null?void 0:i.postMessage({code:o.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await r.exchangeAuthCode({code:o.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await Gt.Browser.open({url:n,presentationStyle:"popover"}):window.open(n,"popup","width=600,height=600")},async handleSamlRedirect(){var t;let n,e={type:"saml"};if(this.$route.query.code&&(e.code=this.$route.query.code),window.opener)window.opener.postMessage(e,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await Gt.Browser.close(),z.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(n=this.$route.query.code),console.log(this.display,{code:n}),n){if(this.display==="popup")return(t=window.parent)==null?void 0:t.postMessage({code:n,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:n,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),z.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Ki={name:"AuthLogin",mixins:[or,ir,ar,dn,un,hn,Ce,{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 c.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=n.length;let t="";const r=new Uint32Array(32);return window.crypto.getRandomValues(r),r.forEach(o=>{t+=n.charAt(o%e)}),t},refreshQrCode(){var n,e;this.qrCode&&((e=(n=document.getElementById("qrCodeContainer"))==null?void 0:n.childNodes[0])==null||e.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new so({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[n,e]=await $(yn.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(n)return this.errorHandler(n);e.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...e,isModal:this.isModal}),await this.getLoggedInAccounts()),this.loginSuccess({...e,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await c.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 n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var n,e;return(((e=(n=this.ssoCompany)==null?void 0:n.login)==null?void 0:e.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&&z.$emit("ssoEvent",{name:"setLoading",data:!1})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let e={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?e.email=this.emailOrUsername:e.username=this.emailOrUsername;const[t,r]=await $(this.login(e));t&&console.error(t),this.submitted=!1,r===!0&&(this.emailOrUsername="",this.password="")},close(){z.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){z.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(n){n.includes("@")&&(this.$storage.verifyEmail=n)},"$route.path":async function(n){if(n==="/login/callback/okta")return await this.handleOktaRedirect();if(n==="/login/callback/saml")return await this.handleSamlRedirect()}}},Vi=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Gi={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Qi=c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Yi={key:1},Wi={class:"page-login-field half-top"},$i=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ji=["placeholder"],Xi=c.createElementVNode("em",null,null,-1),Zi={class:"page-login-field half-bottom"},ea=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),ta=["type","placeholder"],na={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},ra={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},oa={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},ia={key:0},aa={key:1,class:"button--loading button__loader"},sa=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ca=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),la={key:0},da={key:1,class:"button--loading button__loader"},ua=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),pa={key:0},ha={key:1,class:"button--loading-black button__loader"},ma=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),ga={key:0},fa={key:1,class:"button--loading-black button__loader"},_a=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),va={key:0},ya={key:1,class:"button--loading-black button__loader"},ka=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),wa={key:0},ba={key:1,class:"button--loading-black button__loader"},Ca=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),Ea={key:0},Ta={key:1,class:"button--loading-black button__loader"},Ia=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),Sa=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Aa={class:"close-text center-text half-top color-black"},Ra=c.createElementVNode("br",null,null,-1),Na={class:"",href:"https://tapni.co/policies/terms-of-service"},Pa={href:"https://tapni.co/policies/privacy-policy"},Ma=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),La={key:9,class:"page-login-links"},Oa=c.createElementVNode("div",{class:"clear"},null,-1),za={class:"forgot center-text pointer small-top"},Ba=c.createElementVNode("br",null,null,-1),Ua=c.createElementVNode("div",{class:"clear"},null,-1);function xa(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[13]||(e[13]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Vi)):c.createCommentVNode("",!0),c.createElementVNode("h1",Gi,c.toDisplayString(this.ssoLang[this.appLanguage].login),1),Qi,i.displayFormLogin?(c.openBlock(),c.createElementBlock("span",Yi,[c.createElementVNode("div",Wi,[$i,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.emailOrUsername=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:n.ssoLang[this.appLanguage].email_username,required:""},null,40,Ji),[[c.vModelText,o.emailOrUsername]]),Xi]),c.createElementVNode("div",Zi,[ea,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,ta),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",na,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",ra,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",oa,[o.submitted?(c.openBlock(),c.createElementBlock("span",aa)):(c.openBlock(),c.createElementBlock("span",ia,c.toDisplayString(n.ssoLang[n.appLanguage].login),1))])])):c.createCommentVNode("",!0),sa,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[5]||(e[5]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ca,n.appleLoad?(c.openBlock(),c.createElementBlock("span",da)):(c.openBlock(),c.createElementBlock("span",la,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Apple",1))])):c.createCommentVNode("",!0),n.displayGoogleLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[6]||(e[6]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ua,n.googleLoad?(c.openBlock(),c.createElementBlock("span",ha)):(c.openBlock(),c.createElementBlock("span",pa,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Google",1))])):c.createCommentVNode("",!0),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[7]||(e[7]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[ma,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",fa)):(c.openBlock(),c.createElementBlock("span",ga,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Facebook",1))])):c.createCommentVNode("",!0),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:5,onClick:e[8]||(e[8]=(...s)=>n.microsoftLogin&&n.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[_a,n.microsoftLoad?(c.openBlock(),c.createElementBlock("span",ya)):(c.openBlock(),c.createElementBlock("span",va,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Outlook",1))])),n.displayMicrosoftSSOLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:6,onClick:e[9]||(e[9]=(...s)=>n.ssoLogin&&n.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[ka,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",ba)):(c.openBlock(),c.createElementBlock("span",wa,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1))])),n.displayMicrosoftSSOLogin?(c.openBlock(),c.createElementBlock("a",{key:7,onClick:e[10]||(e[10]=s=>n.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[Ca,n.microsoftSSOLoad?(c.openBlock(),c.createElementBlock("span",Ea,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SSO",1)):(c.openBlock(),c.createElementBlock("span",Ta))])):c.createCommentVNode("",!0),i.displayFormLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:8,onClick:e[11]||(e[11]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[Ia,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Email",1)])),Sa,c.createElementVNode("p",Aa,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].terms_by_signing_in)+" ",1),Ra,c.createElementVNode("a",Na,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].and)+" ",1),c.createElementVNode("a",Pa,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),Ma,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:10,class:"page-login-links",onClick:e[12]||(e[12]=(...s)=>i.createAccountModal&&i.createAccountModal(...s))},[c.createElementVNode("a",za,[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].or)+" ",1),Ba,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[n.appLanguage].create_new_account),1)]),Ua])):(c.openBlock(),c.createElementBlock("div",La,[i.displayRegisterLogin?(c.openBlock(),c.createBlock(a,{key:0,class:"forgot float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].create_account),1)]),_:1})):c.createCommentVNode("",!0),i.displayResetPasswordLogin?(c.openBlock(),c.createBlock(a,{key:1,class:"create float-left",to:"/reset"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[n.appLanguage].reset_password),1)]),_:1})):c.createCommentVNode("",!0),Oa]))],36)}const Hr=He(Ki,[["render",xa]]),Da={name:"AuthRegister",mixins:[or,ir,ar,dn,Ce],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&&z.$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 n={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},e=await this.register(n);this.submitted=!1,e.data&&e.data.success&&(e.data.message==="SUCCESS_REGISTER"?(this.isModal?z.$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):e.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...e,isModal:n.isModal}),await this.getLoggedInAccounts()),await this.loginSuccess({...e,isModal:n.isModal})))},close(){z.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){z.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(n){this.$storage.verifyEmail=n},referral(n){this.$storage.referral=n}}},Ha=[c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],qa={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Fa={class:"half-bottom small-top center-text color-black"},ja={key:0},Ka=c.createElementVNode("br",null,null,-1),Va={key:1},Ga={class:"page-login-field half-top"},Qa=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Ya=["placeholder"],Wa=c.createElementVNode("em",null,null,-1),$a={class:"page-login-field half-top"},Ja=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Xa=["placeholder","disabled"],Za=c.createElementVNode("em",null,null,-1),es={class:"page-login-field half-top half-bottom"},ts=c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),ns=["type","placeholder"],rs={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},os={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},is={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},as={key:0},ss={key:1,class:"button--loading button__loader"},cs=c.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ls=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),ds={key:0},us={key:1,class:"button--loading button__loader"},ps=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),hs={key:0},ms={key:1,class:"button--loading button__loader"},gs=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),fs={key:0},_s={key:1,class:"button--loading button__loader"},vs=c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),ys=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ks={class:"close-text center-text half-top color-black"},ws=c.createElementVNode("br",null,null,-1),bs={class:"",href:"https://tapni.co/policies/terms-of-service"},Cs={href:"https://tapni.co/policies/privacy-policy"},Es=c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Ts={key:5,class:"page-login-links"},Is=c.createElementVNode("div",{class:"clear"},null,-1),Ss={class:"forgot center-text pointer small-top"},As=c.createElementVNode("br",null,null,-1),Rs=c.createElementVNode("div",{class:"clear"},null,-1);function Ns(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[12]||(e[12]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),autocomplete:"on",style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Ha)):c.createCommentVNode("",!0),c.createElementVNode("h1",qa,c.toDisplayString(n.ssoLang[this.appLanguage].register),1),c.createElementVNode("p",Fa,[o.usernameRegister?(c.openBlock(),c.createElementBlock("span",ja,[c.createTextVNode(" t.link/"+c.toDisplayString(o.username)+" "+c.toDisplayString(n.ssoLang[this.appLanguage].username_is_free)+" β
",1),Ka])):c.createCommentVNode("",!0)]),o.emailLogin?(c.openBlock(),c.createElementBlock("span",Va,[c.createElementVNode("div",Ga,[Qa,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Ya),[[c.vModelText,o.email]]),Wa]),c.createElementVNode("div",$a,[Ja,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.username=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:n.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:o.usernameRegister,class:c.normalizeClass({"input-disabled":o.usernameRegister})},null,42,Xa),[[c.vModelText,o.username]]),Za]),c.createElementVNode("div",es,[ts,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,ns),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword=!o.revealPassword),class:"pointer"},[c.withDirectives(c.createElementVNode("img",rs,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",os,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("button",is,[o.submitted?(c.openBlock(),c.createElementBlock("span",ss)):(c.openBlock(),c.createElementBlock("span",as,c.toDisplayString(o.formButtonText),1))])])):c.createCommentVNode("",!0),cs,n.displayAppleLogin?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[7]||(e[7]=(...s)=>n.appleLogin&&n.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ls,n.appleLoad?(c.openBlock(),c.createElementBlock("span",us)):(c.openBlock(),c.createElementBlock("span",ds,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):c.createCommentVNode("",!0),c.createElementVNode("a",{onClick:e[8]||(e[8]=(...s)=>n.googleLogin&&n.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[ps,n.googleLoad?(c.openBlock(),c.createElementBlock("span",ms)):(c.openBlock(),c.createElementBlock("span",hs,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),n.displayFacebookLogin?(c.openBlock(),c.createElementBlock("a",{key:3,onClick:e[9]||(e[9]=(...s)=>n.facebookLogin&&n.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[gs,n.facebookLoad?(c.openBlock(),c.createElementBlock("span",_s)):(c.openBlock(),c.createElementBlock("span",fs,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):c.createCommentVNode("",!0),o.emailLogin?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",{key:4,onClick:e[10]||(e[10]=s=>o.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[vs,c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),ys,c.createElementVNode("p",ks,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].terms_by_registering)+" ",1),ws,c.createElementVNode("a",bs,c.toDisplayString(n.ssoLang[this.appLanguage].terms_of_service),1),c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].and)+" ",1),c.createElementVNode("a",Cs,c.toDisplayString(n.ssoLang[this.appLanguage].privacy_policy),1)]),Es,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:6,class:"page-login-links",onClick:e[11]||(e[11]=(...s)=>i.loginAccountModal&&i.loginAccountModal(...s))},[c.createElementVNode("a",Ss,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),As,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].sign_in_with_new),1)]),Rs])):(c.openBlock(),c.createElementBlock("div",Ts,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Is]))],36)}const qr=He(Da,[["render",Ns]]),Ps={name:"AuthVerify",mixins:[Ce],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),z.$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 n={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let e=await this.verify(n);this.submitted=!1,e&&e.data&&e.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="",z.$emit("closeModal")),await this.loginSetup(e),await this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+e.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){z.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){z.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(n){n&&(this.email=n)},"route.name"(n,e){!e&&n&&this.init()},"route.query":{handler(n){this.isEmpty(n)||this.init()},deep:!0}}},xe=n=>(c.pushScopeId("data-v-75db7f02"),n=n(),c.popScopeId(),n),Ms=[xe(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],Ls={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Os=xe(()=>c.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),zs={class:"page-login-field half-top"},Bs=xe(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Us=["placeholder"],xs=xe(()=>c.createElementVNode("em",null,null,-1)),Ds={class:"page-login-field half-top"},Hs=xe(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),qs=["placeholder"],Fs=xe(()=>c.createElementVNode("em",null,null,-1)),js={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ks={key:0,class:"uppercase"},Vs={key:1,class:"button--loading button__loader"},Gs=xe(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Qs={class:"close-text center-text half-top color-black"},Ys=["innerHTML"],Ws=xe(()=>c.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),$s=xe(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Js={key:1,class:"page-login-links"},Xs=xe(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Zs={class:"forgot center-text pointer small-top"},ec=xe(()=>c.createElementVNode("br",null,null,-1)),tc=xe(()=>c.createElementVNode("div",{class:"clear"},null,-1));function nc(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:e[6]||(e[6]=c.withModifiers((...s)=>i.submit&&i.submit(...s),["prevent"])),style:c.normalizeStyle(t.isModal?"max-width: 500px;":"")},[t.isModal?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Ms)):c.createCommentVNode("",!0),c.createElementVNode("h1",Ls,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1),Os,c.createElementVNode("div",zs,[Bs,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[1]||(e[1]=s=>o.email=s),onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,Us),[[c.vModelText,o.email]]),xs]),c.createElementVNode("div",Ds,[Hs,c.withDirectives(c.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":e[3]||(e[3]=s=>o.code=s),onKeydown:e[4]||(e[4]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:n.ssoLang[this.appLanguage].code,required:""},null,40,qs),[[c.vModelText,o.code]]),Fs]),c.createElementVNode("button",js,[o.submitted?(c.openBlock(),c.createElementBlock("span",Vs)):(c.openBlock(),c.createElementBlock("span",Ks,c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1))]),Gs,c.createElementVNode("p",Qs,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].verify_account_p1},null,8,Ys),Ws]),$s,t.isModal?(c.openBlock(),c.createElementBlock("div",{key:2,class:"page-login-links",onClick:e[5]||(e[5]=(...s)=>i.registerAccountModal&&i.registerAccountModal(...s))},[c.createElementVNode("a",Zs,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].or)+" ",1),ec,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].create_new_account),1)]),tc])):(c.openBlock(),c.createElementBlock("div",Js,[c.createVNode(a,{class:"create float-right",to:"/register"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].register),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Xs]))],36)}const Fr=He(Ps,[["render",nc],["__scopeId","data-v-75db7f02"]]),rc={name:"AuthReset",mixins:[Ce],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),z.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let n={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(n),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 n={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},e=await this.changePassword(n);this.submitted=!1,e===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(n){this.$storage.verifyEmail=n}}},tt=n=>(c.pushScopeId("data-v-4f85b89a"),n=n(),c.popScopeId(),n),oc={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},ic=tt(()=>c.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),ac={class:"page-login-field half-top color-black"},sc=tt(()=>c.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),cc=["placeholder"],lc=tt(()=>c.createElementVNode("em",null,null,-1)),dc={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},uc={key:0,class:"uppercase"},pc={key:1,class:"button--loading button__loader"},hc=tt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),mc={class:"close-text center-text half-top color-black"},gc=["innerHTML"],fc=["href"],_c=tt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vc={class:"page-login-links"},yc=tt(()=>c.createElementVNode("div",{class:"clear"},null,-1)),kc={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},wc={class:"half-bottom small-top center-text color-black"},bc={class:"page-login-field half-top"},Cc=tt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Ec=["type","placeholder"],Tc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ic={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Sc={class:"page-login-field half-top"},Ac=tt(()=>c.createElementVNode("i",{style:{"padding-top":"15px"}},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),Rc=["type","placeholder"],Nc={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Pc={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Mc={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Lc={key:0,class:"uppercase"},Oc={key:1,class:"button--loading button__loader"},zc=tt(()=>c.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Bc={class:"close-text center-text half-top color-black"},Uc=["innerHTML"],xc=["href"];function Dc(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return o.passwordChange?(c.openBlock(),c.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:e[7]||(e[7]=c.withModifiers((...s)=>i.changePw&&i.changePw(...s),["prevent"]))},[c.createElementVNode("h3",kc,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1),c.createElementVNode("p",wc,c.toDisplayString(n.ssoLang[this.appLanguage].password_new),1),c.createElementVNode("div",bc,[Cc,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[3]||(e[3]=s=>o.password=s),type:o.revealPassword?"text":"password",placeholder:n.ssoLang[this.appLanguage].password,required:""},null,8,Ec),[[c.vModelDynamic,o.password]]),c.createElementVNode("em",{onClick:e[4]||(e[4]=s=>o.revealPassword=!o.revealPassword)},[c.withDirectives(c.createElementVNode("img",Tc,null,512),[[c.vShow,!o.revealPassword]]),c.withDirectives(c.createElementVNode("img",Ic,null,512),[[c.vShow,o.revealPassword]])])]),c.createElementVNode("div",Sc,[Ac,c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":e[5]||(e[5]=s=>o.passwordRepeat=s),type:o.revealPassword2?"text":"password",placeholder:n.ssoLang[this.appLanguage].password_repeat,required:""},null,8,Rc),[[c.vModelDynamic,o.passwordRepeat]]),c.createElementVNode("em",{onClick:e[6]||(e[6]=s=>o.revealPassword2=!o.revealPassword2)},[c.withDirectives(c.createElementVNode("img",Nc,null,512),[[c.vShow,!o.revealPassword2]]),c.withDirectives(c.createElementVNode("img",Pc,null,512),[[c.vShow,o.revealPassword2]])])]),c.createElementVNode("button",Mc,[o.submitted?(c.openBlock(),c.createElementBlock("span",Oc)):(c.openBlock(),c.createElementBlock("span",Lc,c.toDisplayString(n.ssoLang[this.appLanguage].password_change),1))]),zc,c.createElementVNode("p",Bc,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p2},null,8,Uc),c.createTextVNode(),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,xc)])],32)):(c.openBlock(),c.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:e[2]||(e[2]=c.withModifiers((...s)=>i.resetEmail&&i.resetEmail(...s),["prevent"])),autocomplete:"on"},[c.createElementVNode("h3",oc,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1),ic,c.createElementVNode("div",ac,[sc,c.withDirectives(c.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":e[0]||(e[0]=s=>o.email=s),onKeydown:e[1]||(e[1]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:n.ssoLang[this.appLanguage].email,required:""},null,40,cc),[[c.vModelText,o.email]]),lc]),c.createElementVNode("button",dc,[o.submitted?(c.openBlock(),c.createElementBlock("span",pc)):(c.openBlock(),c.createElementBlock("span",uc,c.toDisplayString(n.ssoLang[this.appLanguage].reset_password),1))]),hc,c.createElementVNode("p",mc,[c.createElementVNode("span",{innerHTML:n.ssoLang[this.appLanguage].reset_password_p1},null,8,gc),c.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+n.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,fc)]),_c,c.createElementVNode("div",vc,[c.createVNode(a,{class:"create float-right",to:"/verify"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].verify_account),1)]),_:1}),c.createVNode(a,{class:"forgot float-left",to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),yc])],32))}const jr=He(rc,[["render",Dc],["__scopeId","data-v-4f85b89a"]]),Hc={name:"AuthCallback",mixins:[un,hn,Ce],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let n=co.sanitizeUrl(location.href);return n=n.replace("http","tapni"),n=n.replace("https","tapni"),window.open(n)}}},qc={class:"page-login content-boxed content-boxed-padding"},Fc={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},jc=c.createElementVNode("br",null,null,-1),Kc={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Vc(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",qc,[(n.$route.query.platform==="android"||n.$route.query.platform==="ios")&&!n.isNative?(c.openBlock(),c.createElementBlock("h5",Fc,[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].you_will_be_redirected),1),jc,c.createTextVNode(" "+c.toDisplayString(n.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),c.createElementVNode("span",{onClick:e[0]||(e[0]=(...a)=>i.inAppRedirect&&i.inAppRedirect(...a)),style:{color:"blue",cursor:"pointer"}},c.toDisplayString(n.ssoLang[this.appLanguage].click_here),1),c.createTextVNode(".")])):(c.openBlock(),c.createElementBlock("h4",Kc,c.toDisplayString(n.ssoLang[this.appLanguage].please_wait),1))])}const Kr=He(Hc,[["render",Vc]]),Gc={name:"ModalOverlay",mixins:[Ce],data(){return{toggle:!1}},mounted(){z.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),z.$on("openModalOverlay",()=>{this.toggle=!0}),z.$on("toggleLanguageModal",this.toggleModal),z.$on("toggleSSOModal",this.toggleModal),z.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(n=!0){n&&(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 n,e;!this.isLoggedIn&&((e=(n=this.user)==null?void 0:n.lead_form)!=null&&e.forceFilling)||z.$emit("closeModal")}}};function Qc(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":o.toggle}),onClick:e[0]||(e[0]=(...a)=>i.toggleEmit&&i.toggleEmit(...a))},null,2)}const Vr=He(Gc,[["render",Qc],["__scopeId","data-v-a128c2fa"]]),Yc={name:"SSO",mixins:[dn,un,hn,Ce],data(){return{toggle:!1,email:"",loading:!1}},mounted(){z.$on("toggleSSOModal",this.toggleModal),z.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){z._events.toggleSSOModal.pop()},methods:{forceClose(){z.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const n=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let e;if(!(!n||n.error))if(e=Object.keys(n.sso),e.length)e.length<=1?(e[0]==="azure"&&this.microsoftLogin("sso",n.sso.azure.sso),e[0]==="okta"&&this.oktaLogin(n.sso.okta.sso),e[0]==="saml"&&this.samlLogin(n.sso.saml.sso.loginUrl)):(this.forceClose(),z.$emit("toggleSSOPickModal",{sso:n.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Wc=[(n=>(c.pushScopeId("data-v-11f19a09"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],$c={class:"bold center-text color-black half-top half-bottom"},Jc=["placeholder"],Xc={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},Zc={key:0},el={key:1,class:"button--loading button__loader"};function tl(n,e,t,r,o,i){return c.openBlock(),c.createElementBlock("form",{onSubmit:e[3]||(e[3]=c.withModifiers((...a)=>i.submit&&i.submit(...a),["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...a)=>i.forceClose&&i.forceClose(...a)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Wc),c.createElementVNode("h3",$c,c.toDisplayString(n.ssoLang[n.appLanguage].enter_company_email),1),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{type:"text","onUpdate:modelValue":e[1]||(e[1]=a=>o.email=a),placeholder:n.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:e[2]||(e[2]=c.withKeys(c.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Jc),[[c.vModelText,o.email]])]),c.createElementVNode("button",Xc,[o.loading?(c.openBlock(),c.createElementBlock("span",el)):(c.openBlock(),c.createElementBlock("span",Zc,c.toDisplayString(n.ssoLang[n.appLanguage].continue),1))])],34)}const Gr=He(Yc,[["render",tl],["__scopeId","data-v-11f19a09"]]),nl={name:"SSOPick",mixins:[dn,un,hn,Ce],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){z.$on("toggleSSOPickModal",this.toggleModal),z.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){z._events.toggleSSOPickModal.pop()},methods:{forceClose(){z.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(n){n==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),n==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),n==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(n){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,n&&(this.sso=n.sso,this.email=n.email),this.toggle=!this.toggle}}},mn=n=>(c.pushScopeId("data-v-4f821f65"),n=n(),c.popScopeId(),n),rl=[mn(()=>c.createElementVNode("i",{class:"font-17 color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],ol={class:"bold center-text color-black half-top half-bottom"},il=mn(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),al={key:0},sl={key:1,class:"button--loading button__loader"},cl=mn(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),ll={key:0},dl={key:1,class:"button--loading button__loader"},ul=mn(()=>c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),pl={key:0},hl={key:1,class:"button--loading button__loader"};function ml(n,e,t,r,o,i){var a,s,d;return c.openBlock(),c.createElementBlock("form",{onSubmit:e[4]||(e[4]=c.withModifiers(()=>{},["prevent"])),class:c.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...h)=>i.forceClose&&i.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},rl),c.createElementVNode("h3",ol,c.toDisplayString(n.ssoLang[n.appLanguage].select_sign_method),1),(a=o.sso)!=null&&a.azure?(c.openBlock(),c.createElementBlock("a",{key:0,onClick:e[1]||(e[1]=h=>i.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[il,o.azureLoad?(c.openBlock(),c.createElementBlock("span",sl)):(c.openBlock(),c.createElementBlock("span",al,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Azure",1))])):c.createCommentVNode("",!0),(s=o.sso)!=null&&s.okta?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:e[2]||(e[2]=h=>i.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[cl,o.oktaLoad?(c.openBlock(),c.createElementBlock("span",dl)):(c.openBlock(),c.createElementBlock("span",ll,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" Okta",1))])):c.createCommentVNode("",!0),(d=o.sso)!=null&&d.saml?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:e[3]||(e[3]=h=>i.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[ul,o.samlLoad?(c.openBlock(),c.createElementBlock("span",hl)):(c.openBlock(),c.createElementBlock("span",pl,c.toDisplayString(n.ssoLang[n.appLanguage].sign_in_with)+" SAML",1))])):c.createCommentVNode("",!0)],34)}const Qr=He(nl,[["render",ml],["__scopeId","data-v-4f821f65"]]),gl={name:"LinkIcon",mixins:[Ce],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:{}},fl=["src","alt"],_l=["src","alt"],vl=["src","alt"],yl=["src","alt"];function kl(n,e,t,r,o,i){var a,s;return c.openBlock(),c.createElementBlock("a",{class:c.normalizeClass(["disable-select",t.linkStyle+(t.disabled?" opacity-50":"")]),style:c.normalizeStyle((t.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[c.createElementVNode("span",{class:c.normalizeClass({"user-link-img":!0,"pulse pulse-border":t.pulse,"link-drag":t.editing}),style:c.normalizeStyle({...(a=t.customLinkStyle)==null?void 0:a.linkIcon})},[!t.data.custom_icon&&t.data.type!=="customlink"?(c.openBlock(),c.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+t.data.type+".png",class:"responsive-image",alt:t.data.text,onLoad:e[0]||(e[0]=d=>n.$emit("loaded")),onError:e[1]||(e[1]=d=>n.$emit("loaded"))},null,40,fl)):!t.data.custom_icon&&t.data.type==="customlink"&&t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:t.data.text,onLoad:e[2]||(e[2]=d=>n.$emit("loaded")),onError:e[3]||(e[3]=d=>n.$emit("loaded"))},null,40,_l)):!t.data.custom_icon&&t.data.type==="customlink"&&!t.linkAdding?(c.openBlock(),c.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:t.data.text,onLoad:e[4]||(e[4]=d=>n.$emit("loaded")),onError:e[5]||(e[5]=d=>n.$emit("loaded"))},null,40,vl)):(c.openBlock(),c.createElementBlock("img",{key:3,src:t.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:t.data.text,onLoad:e[6]||(e[6]=d=>n.$emit("loaded")),onError:e[7]||(e[7]=d=>n.$emit("loaded"))},null,40,yl))],6),c.createElementVNode("span",{class:"link-text link-drag color-black",style:c.normalizeStyle({color:(s=t.customLinkStyle)==null?void 0:s.color})},c.toDisplayString(i.linkText),5)],6)}const wl=He(gl,[["render",kl]]),bl={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:""},Cl={name:"Language",mixins:[Ce],components:{LinkIcon:wl},data(){return{toggle:!1}},async mounted(){z.$on("toggleLanguageModal",this.toggleModal),z.$on("closeModal",()=>{this.toggle=!1});let n=this.isNative?await Vt.Device.getLanguageCode():Tt.getFirstBrowserLanguage();n&&bl.SUPPORTED_LANGUAGES.includes(n)&&this.updateLanguage(n)},beforeDestroy(){z._events.toggleLanguageModal.pop()},methods:{forceClose(){z.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(n){z.$emit("updateLang",n),z.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},El=[(n=>(c.pushScopeId("data-v-34a6b7b2"),n=n(),c.popScopeId(),n))(()=>c.createElementVNode("i",{class:"font-17 fa color-black"},[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],Tl={class:"bold center-text color-black small-bottom"};function Il(n,e,t,r,o,i){const a=c.resolveComponent("LinkIcon");return c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":o.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[c.createElementVNode("a",{onClick:e[0]||(e[0]=(...s)=>i.close&&i.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},El),c.createElementVNode("h3",Tl,c.toDisplayString(n.ssoLang[n.appLanguage].app_language),1),c.createVNode(a,{onClick:e[1]||(e[1]=s=>i.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:n.ssoLang[this.appLanguage].english},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[2]||(e[2]=s=>i.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:n.ssoLang[this.appLanguage].spanish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[3]||(e[3]=s=>i.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:n.ssoLang[this.appLanguage].german},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[4]||(e[4]=s=>i.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:n.ssoLang[this.appLanguage].italian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[5]||(e[5]=s=>i.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:n.ssoLang[this.appLanguage].french},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[6]||(e[6]=s=>i.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:n.ssoLang[this.appLanguage].korean},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[7]||(e[7]=s=>i.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:n.ssoLang[this.appLanguage].serbian},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"]),c.createVNode(a,{onClick:e[8]||(e[8]=s=>i.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:n.ssoLang[this.appLanguage].turkish},editing:!1,class:c.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const Yr=He(Cl,[["render",Il],["__scopeId","data-v-34a6b7b2"]]);var Sl={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 Al={id:"ssoapp"},Rl={key:0,href:"/",class:"header-logo"},Nl=[c.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgNsIvKgRyXhBBCyqCzyo8yeO7BKgOp0Fdna5U/q9wmzvWLEEIIaQr7q2ySwXNxV38EFfrKwOXrQXERfNqq/FWcBTkhhBCyJg7PeDHRiQrdgWP2+8VZk5dAhLUbxY9xAyGEkHhBNLitMnx+N3EnzIVX6FDm94q7/6jvZ7dL8YzwCCGENJ0tZOWcGFmVodAKvaTMuzTyO3upXMnxSgghpAE2D6AMW8XaeEko9EFNUOYljlU5iWOWEEJIPfQMoAxdYm28ShU6lPmYMhsAofa+y3FLCCFkFUII+FVbRIVezs58Va5S2Z1jlxBCSB1CCP5VFWvjNVeh72zKfL1m/j3SkN6ksinHLyGEEGNWAGWYWSSFDmU+pgJlXqKHf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/3KH7YantEmfZ5BUzn9huHbKBKfU97SSij00ElfKpLURgl/CQymNreOkbY3kgu76QQYbB48UFpIG3wD72tZ8kF2kPfYBMf+NUHhAXY//TgHennLPCCKnLvqBCJ554z3bNkFYqvVS2FHd3/yWV3uLSuXa2lXaLOn9baxMGfKRxvAmXpCm2G4e8LbRs9g12jPebYG7oaTv+baw/N1FZz3ZuPev0JxZNuNrA8ekc+4qxMU3cvTiuoSbZgraWzUwIFToJG0zor5ncU+f7mPRxLN+uAYU+N+CdWpGBTcDrJqVgLiXjoTbiTmM62u8tMoFL58em0GupvAmhQif5Yrntwj9kU0RPSUlDef+HzUFIWNBtjRBCCKFCJ4QQQggVOiGEEEKo0AkhhBBChU4IIYRQoRNCCCGECp0QQgghCdKyU6dObAWSGgsWLJBly5axIUgqtGvXTlq3bi21tYxhQypn/vz50r59+2jL33Lq1KnsRZI4VVVV0rJlS9l7771lwoQJbBCSCiNHjpTjjjtO5s1juH5SOVgYtm3bNl6F3rVrV/YiSY1WrVqxEUhqdOzYUdq0afO5EFJ0eIdOCCGEUKETQgghhAqdEEIIIVTohBBCCKFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],Pl={class:"lang-icon"},Ml={class:"snackbar snackbar-boxed",id:"snackbar"},Ll={class:"snack-body",id:"errorSnack"},Ol={id:"errorMessage"},zl=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Bl={class:"snack-body",id:"successSnack"},Ul={id:"successMessage"},xl=[c.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Wr=Object.assign({name:"TapniAuth",mixins:[Ce],data(){return{isSetup:!1}},components:{Language:Yr,SSOPick:Qr,SSO:Gr,ModalOverlay:Vr,AuthCallback:Kr,AuthReset:jr,AuthVerify:Fr,AuthRegister:qr,AuthLogin:Hr,AuthWelcome:nr},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),z.$on("ssoEvent",this.ssoOutgoingEvent),z.$on("ssoLogout",n=>this.logout(n)),z.$on("getLoggedInAccounts",n=>this.getLoggedInAccounts(n)),z.$on("refreshTokenAction",n=>this.refreshTokenAction(n)),z.$on("switchAccount",n=>this.switchAccount(n))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const n=this.getRefreshTokens();this.setRefreshToken(n[0]),await this.getLoggedInAccounts(n),this.$emit("ssoLibraryReady",this.$storage)},ssoOutgoingEvent(n){this.$emit("ssoEvent",n)},ssoIncomingEvent(n){z.$emit(n.name,n.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){z.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()},"$storageReady.value"(n){n&&this.display==="npm"&&this.init()}}},{setup(n){return document.addEventListener("DOMContentLoaded",function(){const e=document.createElement("script");e.src=`https://www.google.com/recaptcha/api.js?render=${Sl.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(e)}),(e,t)=>(c.openBlock(),c.createElementBlock("div",Al,[e.display==="redirect"?(c.openBlock(),c.createElementBlock("a",Rl,Nl)):c.createCommentVNode("",!0),e.display==="redirect"?(c.openBlock(),c.createElementBlock("a",{key:1,onClick:t[0]||(t[0]=(...r)=>e.toggleLanguageModal&&e.toggleLanguageModal(...r)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[c.createElementVNode("span",Pl,c.toDisplayString(e.appLanguage.toUpperCase()),1)])):c.createCommentVNode("",!0),c.createVNode(Vr),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Yr,{key:2})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Gr,{key:3})),n.isModal?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(Qr,{key:4})),e.initialized&&e.renderView==="AuthWelcome"?(c.openBlock(),c.createBlock(nr,{key:5})):e.initialized&&e.renderView==="AuthLogin"?(c.openBlock(),c.createBlock(Hr,{key:6,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthRegister"?(c.openBlock(),c.createBlock(qr,{key:7,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthVerify"?(c.openBlock(),c.createBlock(Fr,{key:8,isModal:n.isModal},null,8,["isModal"])):e.initialized&&e.renderView==="AuthReset"?(c.openBlock(),c.createBlock(jr,{key:9})):e.initialized&&e.renderView==="AuthCallback"?(c.openBlock(),c.createBlock(Kr,{key:10})):e.display!=="npm"?(c.openBlock(),c.createBlock(c.unref(Rt.RouterView),{key:11})):c.createCommentVNode("",!0),c.createElementVNode("div",Ml,[c.createElementVNode("p",Ll,[c.createElementVNode("span",Ol,c.toDisplayString(e.ssoLang[e.appLanguage].error),1),c.createElementVNode("a",{onClick:t[1]||(t[1]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},zl)]),c.createElementVNode("p",Bl,[c.createElementVNode("span",Ul,c.toDisplayString(e.ssoLang[e.appLanguage].success),1),c.createElementVNode("a",{onClick:t[2]||(t[2]=(...r)=>e.closeSnacks&&e.closeSnacks(...r)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},xl)])])]))}}),Dl={TapniAuth:Wr,AuthMixin:Ce,install:(n,e)=>{e&&e.API_ROOT&&ht.setApiRootFromOptions(e.API_ROOT),n.component("TapniAuth",Wr)}};class Hl extends Ne.WebPlugin{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.defer=!0,o.async=!0,o.id=e,o.onload=this.platformJsLoaded.bind(this),o.src="https://apis.google.com/js/platform.js",r.appendChild(o)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var t,r;if(typeof window>"u")return;const o=(t=document.getElementsByName("google-signin-client_id")[0])===null||t===void 0?void 0:t.content,i=e.clientId||o||"";i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(r=e.grantOfflineAccess)!==null&&r!==void 0?r:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(a=>{window.gapiResolve=a,this.loadScript()}),this.addUserChangeListener()}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,t)=>{var r;try{let o;const i=(r=this.options.grantOfflineAccess)!==null&&r!==void 0?r:!1;i?o=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const a=gapi.auth2.getAuthInstance().currentUser.get();i&&await a.reloadAuthResponse();const s=this.getUserFrom(a);s.serverAuthCode=o,e(s)}catch(o){t(o)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const t={},r=e.getBasicProfile();t.email=r.getEmail(),t.familyName=r.getFamilyName(),t.givenName=r.getGivenName(),t.id=r.getId(),t.imageUrl=r.getImageUrl(),t.name=r.getName();const o=e.getAuthResponse(!0);return t.authentication={accessToken:o.access_token,idToken:o.id_token,refreshToken:""},t}}const ql=Object.freeze(Object.defineProperty({__proto__:null,GoogleAuthWeb:Hl},Symbol.toStringTag,{value:"Module"}));class Fl extends Ne.WebPlugin{async initialize(e){const t={version:"v17.0"};return await this.loadScript(e.locale),FB.init(Object.assign(Object.assign({},t),e))}loadScript(e){if(typeof document>"u")return Promise.reject("document global not found");const t="fb";if(document.getElementById(t))return Promise.resolve();const o=document.getElementsByTagName("head")[0],i=document.createElement("script");return new Promise(a=>{i.onload=()=>a(),i.defer=!0,i.async=!0,i.id=t,i.src=`https://connect.facebook.net/${e??"en_US"}/sdk.js`,o.appendChild(i)})}async login(e){return new Promise((t,r)=>{FB.login(o=>{o.status==="connected"?t({accessToken:{token:o.authResponse.accessToken}}):r({accessToken:{token:null}})},{scope:e.permissions.join(",")})})}async logout(){return new Promise(e=>FB.logout(()=>e()))}async reauthorize(){return new Promise(e=>FB.reauthorize(t=>e(t)))}async getCurrentAccessToken(){return new Promise((e,t)=>{FB.getLoginStatus(r=>{if(r.status==="connected"){const o={accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:r.authResponse.accessToken,userId:r.authResponse.userID}};e(o)}else t({accessToken:{token:null}})})})}async getProfile(e){const t=e.fields.join(",");return new Promise((r,o)=>{FB.api("/me",{fields:t},i=>{if(i.error){o(i.error.message);return}r(i)})})}async logEvent(){return Promise.resolve()}async setAutoLogAppEventsEnabled(){return Promise.resolve()}async setAdvertiserTrackingEnabled(){return Promise.resolve()}async setAdvertiserIDCollectionEnabled(){return Promise.resolve()}}const jl=Object.freeze(Object.defineProperty({__proto__:null,FacebookLoginWeb:Fl},Symbol.toStringTag,{value:"Module"}));var $r={exports:{}};/*!
|
|
138
138
|
* $script.js JS loader & dependency manager
|
|
139
139
|
* https://github.com/ded/script.js
|
|
140
140
|
* (c) Dustin Diaz 2014 | License MIT
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
this.setToken(this.$storage.token);
|
|
136
136
|
const refreshTokens = this.getRefreshTokens();
|
|
137
137
|
this.setRefreshToken(refreshTokens[0]);
|
|
138
|
-
await this.getLoggedInAccounts();
|
|
138
|
+
await this.getLoggedInAccounts(refreshTokens);
|
|
139
139
|
|
|
140
140
|
// Let App know that the auth is ready
|
|
141
141
|
this.$emit('ssoLibraryReady', this.$storage);
|
package/src/mixins/auth.mixin.js
CHANGED
|
@@ -449,8 +449,8 @@ export default {
|
|
|
449
449
|
return response.data;
|
|
450
450
|
}
|
|
451
451
|
},
|
|
452
|
-
async getLoggedInAccounts() {
|
|
453
|
-
|
|
452
|
+
async getLoggedInAccounts(refreshTokens) {
|
|
453
|
+
if (!refreshTokens) refreshTokens = this.getRefreshTokens();
|
|
454
454
|
if (refreshTokens && refreshTokens.length >= 1) {
|
|
455
455
|
const [err, response] = await to(
|
|
456
456
|
AuthService.getLoggedInAccounts({ refreshTokens }, this.$storage)
|