@tapni/auth 0.0.46 → 0.0.48

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.
@@ -13,7 +13,7 @@ import { Browser as H } from "@capacitor/browser";
13
13
  import qe from "qr-code-styling";
14
14
  import { sanitizeUrl as Me } from "@braintree/sanitize-url";
15
15
  import "@tapni/capacitor-reactive-localstorage-vue3";
16
- const Re = "0.0.46", m = (e, a = !1) => {
16
+ const Re = "0.0.48", m = (e, a = !1) => {
17
17
  const n = Re;
18
18
  let o = "https://api.tapni.co/v1/";
19
19
  location.hostname.includes("dev.") && (o = "https://api-dev.tapni.co/v1/");
@@ -4259,7 +4259,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4259
4259
  }, Ve = {
4260
4260
  computed: {
4261
4261
  home() {
4262
- return this.$storage.token && this.$storage.username ? "/" + this.$storage.username : "/welcome";
4262
+ return this.$storage && this.$storage.token && this.$storage.username ? "/" + this.$storage.username : "/welcome";
4263
4263
  },
4264
4264
  isAndroid() {
4265
4265
  return /Android/i.test(navigator.userAgent) || D.getPlatform() === "android";
@@ -4786,7 +4786,7 @@ const ge = {
4786
4786
  const e = ["email"], [a, n] = await g(Ie.login({ permissions: e }));
4787
4787
  if (a)
4788
4788
  return this.facebookLoad = !1;
4789
- if (this.referral && (n.ref = this.referral), this.display === "popup" && (n.response_type = "code"), n.accessToken) {
4789
+ if (this.referral && (n.ref = this.referral), this.display === "popup" && (n.response_type = "code"), n && n.accessToken) {
4790
4790
  const [i, r] = await g(y.facebookSDK(n, this.$storage));
4791
4791
  if (i)
4792
4792
  return this.facebookLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
@@ -4874,7 +4874,7 @@ const F = {
4874
4874
  );
4875
4875
  if (n)
4876
4876
  return console.log("Error: " + JSON.stringify(n)), this.microsoftLoad = !1;
4877
- if (this.referral && (o.ref = this.referral), o.response_type = "code", o && (o.accessToken || o.idToken)) {
4877
+ if (this.referral && (o.ref = this.referral), this.display === "popup" && (o.response_type = "code"), o && (o.accessToken || o.idToken)) {
4878
4878
  const [s, _] = await g(
4879
4879
  y.microsoftSDK(o, this.$storage)
4880
4880
  );
@@ -1,4 +1,4 @@
1
- (function(a,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@codetrix-studio/capacitor-google-auth"),require("@capacitor-community/facebook-login"),require("@capacitor-community/apple-sign-in"),require("@recognizebv/capacitor-plugin-msauth"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@codetrix-studio/capacitor-google-auth","@capacitor-community/facebook-login","@capacitor-community/apple-sign-in","@recognizebv/capacitor-plugin-msauth","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@tapni/capacitor-reactive-localstorage-vue3"],z):(a=typeof globalThis<"u"?globalThis:a||self,a.TapniAuth=z(a.Vue,a.vueRouter,a.to,a.axios,a.jwtDecode,a.device,a.core,a.capacitorGoogleAuth,a.facebookLogin,a.appleSignIn,a.capacitorPluginMsauth,a.browser,a.QRCodeStyling,a.sanitizeUrl))})(this,function(a,z,_,I,V,L,S,B,se,ce,le,E,de,pe){"use strict";const _e="0.0.46",p=(e,t=!1)=>{const n=_e;let o="https://api.tapni.co/v1/";location.hostname.includes("dev.")&&(o="https://api-dev.tapni.co/v1/");let i=I.create({baseURL:o,headers:{Authorization:`Bearer ${e.token}`,"X-Client-Name":"sso-"+n.platform,"X-Client-Version":n.version}});return i.interceptors.request.use(async function(r){if(["post","put","delete"].includes(r.method.toLowerCase())?r.data={...r.data,lang:e.appLanguage,realm:e.realm||"app"}:r.method.toLowerCase()==="get"&&(r.params={...r.params,lang:e.appLanguage,realm:e.realm||"app"}),e.token&&!t){const l=V.jwtDecode(e.token);if(l.exp-30<Math.floor(Date.now()/1e3))return m.methods.refreshTokenAction(l).then(()=>(r.headers={...r.headers,Authorization:`Bearer ${e.token}`},r))}return r}),i},y={getMe(){return p(storage).get("/users/me")},getByUsername(e,t){let n=document.referrer||"",o=e.utmParams||{};return e.dontTap&&(o.dontTap=!0),p(t).get(`/users/${e.username}`,{params:o,headers:{"X-Referer":n}})},getByNumber(e,t){let n=document.referrer||"",o=e.utmParams||{};return e.dontTap&&(o.dontTap=!0),p(t).get(`/users/tag/${e.serial}`,{params:o,headers:{"X-Referer":n}})},save(e,t){return p(t).put("/users",e)},newPassword(e,t){return p(t).put("/users/new-password",e)},connect(e,t){return p(t).post("/users/connect",e)},eventLog(e,t){return p(t).post("/users/log",e)},deleteAccount(e,t){return p(t).post("/users/profile/delete",e)},registerDevice(e,t){return p(t).post("/users/device/register",e)},addFcmToken(e,t){return p(t).post("/users/device/fcm",e)},loginUsingQR(e,t){return p(t).post("/users/qr/login",e)}},x={registerDevice(e,t){return p(t).post("/devices/add",e)},addFcmToken(e,t){return p(t).post("/devices/fcm/add",e)}};let g;L.Device.getId().then(e=>g=e.uuid);const u={register(e,t){return e.device_id=g,p(t).post("/users/register",e)},login(e,t){return e.device_id=g,p(t).post("/users/login",e)},logout(e,t){return e.device_id=g,p(t).post("/users/logout",e)},refreshToken(e,t){return p(t,!0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`)},getLoggedInAccounts(e,t){return p(t).post("/users/tokens",e)},sendResetEmail(e,t){return e.device_id=g,p(t).post("/users/reset",e)},changePassword(e,t){return p(t).put("/users/password",e,{headers:{Authorization:"Bearer "+e.token}})},verify(e,t){return p(t).get("/users/verify?c="+e.code+"&e="+e.email+"&captchatoken="+e.captchaToken)},googleUrl(e){return p(e).get("/users/google/url")},google(e,t){return e.device_id=g,p(t).post("/users/google",e)},facebook(e,t){return e.device_id=g,p(t).post("/users/facebook",e)},googleSDK(e,t){return e.device_id=g,p(t).post("/users/google/sdk",e)},facebookSDK(e,t){return e.device_id=g,p(t).post("/users/facebook/sdk",e)},appleSDK(e,t){return e.device_id=g,p(t).post("/users/apple/sdk",e)},microsoftSDK(e,t){return e.device_id=g,p(t).post("/users/microsoft/sdk",e)},oktaSDK(e,t){return e.device_id=g,p(t).post("/users/okta/sdk",e)},samlLoginUrl(e,t){return p(t).post("/saml/url",e)},exchangeAuthCode(e,t){return p(t).post("/v1/users/auth-code",e)}},N={getBySSOEmail(e,t){return p(t).get(`/company/sso/${e}`)},acceptCompanyInvitation(e,t){return p(t).get(`/users/invitation?ic=${e}`)},qrCodePooling(e,t){return p(t).post("/company/login/qr",e)}},C=a.reactive(new Map),c={$on(e,t){let n=C.get(e);n||(n=new Set,C.set(e,n)),n.add(t)},$emit(e,...t){const n=C.get(e);if(n)for(const o of n)o(...t)},$off(e,t){const n=C.get(e);n&&n.delete(t)}};a.readonly(c);const M={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
1
+ (function(a,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@codetrix-studio/capacitor-google-auth"),require("@capacitor-community/facebook-login"),require("@capacitor-community/apple-sign-in"),require("@recognizebv/capacitor-plugin-msauth"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@codetrix-studio/capacitor-google-auth","@capacitor-community/facebook-login","@capacitor-community/apple-sign-in","@recognizebv/capacitor-plugin-msauth","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@tapni/capacitor-reactive-localstorage-vue3"],z):(a=typeof globalThis<"u"?globalThis:a||self,a.TapniAuth=z(a.Vue,a.vueRouter,a.to,a.axios,a.jwtDecode,a.device,a.core,a.capacitorGoogleAuth,a.facebookLogin,a.appleSignIn,a.capacitorPluginMsauth,a.browser,a.QRCodeStyling,a.sanitizeUrl))})(this,function(a,z,_,I,V,L,S,B,se,ce,le,E,de,pe){"use strict";const _e="0.0.48",p=(e,t=!1)=>{const n=_e;let o="https://api.tapni.co/v1/";location.hostname.includes("dev.")&&(o="https://api-dev.tapni.co/v1/");let i=I.create({baseURL:o,headers:{Authorization:`Bearer ${e.token}`,"X-Client-Name":"sso-"+n.platform,"X-Client-Version":n.version}});return i.interceptors.request.use(async function(r){if(["post","put","delete"].includes(r.method.toLowerCase())?r.data={...r.data,lang:e.appLanguage,realm:e.realm||"app"}:r.method.toLowerCase()==="get"&&(r.params={...r.params,lang:e.appLanguage,realm:e.realm||"app"}),e.token&&!t){const l=V.jwtDecode(e.token);if(l.exp-30<Math.floor(Date.now()/1e3))return m.methods.refreshTokenAction(l).then(()=>(r.headers={...r.headers,Authorization:`Bearer ${e.token}`},r))}return r}),i},y={getMe(){return p(storage).get("/users/me")},getByUsername(e,t){let n=document.referrer||"",o=e.utmParams||{};return e.dontTap&&(o.dontTap=!0),p(t).get(`/users/${e.username}`,{params:o,headers:{"X-Referer":n}})},getByNumber(e,t){let n=document.referrer||"",o=e.utmParams||{};return e.dontTap&&(o.dontTap=!0),p(t).get(`/users/tag/${e.serial}`,{params:o,headers:{"X-Referer":n}})},save(e,t){return p(t).put("/users",e)},newPassword(e,t){return p(t).put("/users/new-password",e)},connect(e,t){return p(t).post("/users/connect",e)},eventLog(e,t){return p(t).post("/users/log",e)},deleteAccount(e,t){return p(t).post("/users/profile/delete",e)},registerDevice(e,t){return p(t).post("/users/device/register",e)},addFcmToken(e,t){return p(t).post("/users/device/fcm",e)},loginUsingQR(e,t){return p(t).post("/users/qr/login",e)}},x={registerDevice(e,t){return p(t).post("/devices/add",e)},addFcmToken(e,t){return p(t).post("/devices/fcm/add",e)}};let g;L.Device.getId().then(e=>g=e.uuid);const u={register(e,t){return e.device_id=g,p(t).post("/users/register",e)},login(e,t){return e.device_id=g,p(t).post("/users/login",e)},logout(e,t){return e.device_id=g,p(t).post("/users/logout",e)},refreshToken(e,t){return p(t,!0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`)},getLoggedInAccounts(e,t){return p(t).post("/users/tokens",e)},sendResetEmail(e,t){return e.device_id=g,p(t).post("/users/reset",e)},changePassword(e,t){return p(t).put("/users/password",e,{headers:{Authorization:"Bearer "+e.token}})},verify(e,t){return p(t).get("/users/verify?c="+e.code+"&e="+e.email+"&captchatoken="+e.captchaToken)},googleUrl(e){return p(e).get("/users/google/url")},google(e,t){return e.device_id=g,p(t).post("/users/google",e)},facebook(e,t){return e.device_id=g,p(t).post("/users/facebook",e)},googleSDK(e,t){return e.device_id=g,p(t).post("/users/google/sdk",e)},facebookSDK(e,t){return e.device_id=g,p(t).post("/users/facebook/sdk",e)},appleSDK(e,t){return e.device_id=g,p(t).post("/users/apple/sdk",e)},microsoftSDK(e,t){return e.device_id=g,p(t).post("/users/microsoft/sdk",e)},oktaSDK(e,t){return e.device_id=g,p(t).post("/users/okta/sdk",e)},samlLoginUrl(e,t){return p(t).post("/saml/url",e)},exchangeAuthCode(e,t){return p(t).post("/v1/users/auth-code",e)}},N={getBySSOEmail(e,t){return p(t).get(`/company/sso/${e}`)},acceptCompanyInvitation(e,t){return p(t).get(`/users/invitation?ic=${e}`)},qrCodePooling(e,t){return p(t).post("/company/login/qr",e)}},C=a.reactive(new Map),c={$on(e,t){let n=C.get(e);n||(n=new Set,C.set(e,n)),n.add(t)},$emit(e,...t){const n=C.get(e);if(n)for(const o of n)o(...t)},$off(e,t){const n=C.get(e);n&&n.delete(t)}};a.readonly(c);const M={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
2
2
  so that we can know who you are.
3
3
  <br><br>Be exclusive.
4
4
  <br>Not everyone gets accepted.😉`,referral_apply_now:"Apply now",referral_apply_thanks:"Thanks for applying. We will review your application soon!",connect:"Connect",with:"with",exchange_contact:"Exchange Contact",add_details:"Add more",show_details:"Show more",download_contact:"Download Contact",stay_in_touch:"Stay in touch with",no_thanks:"No Thanks",connect_join:"Join Tapni",connect_with:"Exchange contact with",connect_required_fields:"One of the two contact fields must be provided",name:"Name",first_name:"First name",last_name:"Last name",email:"Email",phone:"Phone number",phone_p:"Phone",company:"Company",address:"Address",website:"Website",open:"Open",delete:"Delete",confirm:"Confirm",cancel:"Cancel",save:"Save",code:"Code",note:"Note",note_p:"Add a note",contact_card_icon:"Set text under the contact card icon",contact_card_name:"Enter first and lastname",contact_card_name_p:"Contact card name",contact_card_email:"Enter personal email address",contact_card_email_p:"Contact card email",contact_card_phone:"Enter personal phone number",contact_card_phone_p:"Contact card phone",contact_card_website:"Enter personal website",contact_card_website_p:"Contact card website",contact_card_company_name:"Enter company name",contact_card_company_name_p:"Contact card company name",contact_card_job_title:"Job title",contact_card_job_title_p:"Enter job title",contact_card_company_website:"Company website",contact_card_company_website_p:"Enter company website",contact_card_bio:"Enter bio for the contact card",contact_card_bio_p:"Enter bio for the contact card",contact_card_home_address:"Enter home address",contact_card_home_address_p:"Contact card home address",contact_card_work_address:"Enter work address",contact_card_work_address_p:"Contact card work address",contact_card_social:"Choose social media links to your Tapni profile <br>in order to add them in the contact card",contact_card_social_p:"Choose social media links for the contact card",link_text_p:"Link Text",link_icon:"Set text under the link icon",direct_pick:"Pick a direct link",direct_p:"When you tap someone's phone, <br> this link will be opened instead of your full profile.",password_change:"Change password",password_repeat:"Repeat password",password_reset_t:"Password reset",password_current:"Enter your current password",password_current_p:"Current Password",password_new:"Enter your new password",password_new_p:"New Password",password_new_repeat:"Enter your new password again",password_new_repeat_p:"Enter your new password again",password_update:"Password update",password_reset:`If you can't remember your current password,<br>
@@ -99,4 +99,4 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
99
99
  또는 궁금한 게 있으면,<br>
100
100
  저희에게 연락주세요`,referral_p5:"지금부터 돈을 벌기 시작하세요!",referral_p66:"제휴링크를 공유하고 돈을 벌어보세요!",referral_p6:`블로거, 인플루언서 또는 소셜 미디어 매니아라면 당사의 엠버서더 프로그램 에 완벽하게 적합합니다.
101
101
  브랜드를 홍보하고 할인 코드 또는 추천 링크를 사용하여 구입한 경우 20%의 수수료를 받으십시오.`,referral_p7:`탭니 엠버서더 프로그램에 등록하면 개인 추천 링크와 할인 코드가 발급됩니다.
102
- 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.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 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."}},me={computed:{home(){return this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||S.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||S.Capacitor.getPlatform()==="ios"},isNative(){return S.Capacitor.isNativePlatform()}},methods:{errorHandler(e){return e&&e.response&&e.response.data&&e.response.data.error&&((e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)),e},errorSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(e){return e<10?"":e<=50?"🔥":e<=100?"💥":e<=300?"💎":e>300?"🚀":""},isEmpty(e){if(!e)return!0;for(let t in e)if(e.hasOwnProperty(t))return!1;return JSON.stringify(e)===JSON.stringify({})},copy(e=""){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(e){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:e})}catch(t){return console.log(t),null}}}};var ge={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const m={mixins:[me],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:M.state,de:q.state,es:D.state,fr:R.state,it:O.state,sr:K.state,tr:U.state,cn:ue.state,kr:$.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),c.$on("updateLang",this.updateLang),ge.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")return this.logout();!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)}return e},errorSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog(e){const[t,n]=await _(y.eventLog(e,this.$storage));return t?this.errorHandler(t):n},async maintenance(){const[e,t]=await _(I.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(t){let n=t.data;typeof t.data=="string"&&(n=JSON.parse(t.data)),n.api&&n.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+n.api.msg)}},async getUser(e){if(e){let t,n;if(e.username?[t,n]=await _(y.getByUsername(e,this.$storage)):e.serial&&([t,n]=await _(y.getByNumber(e,this.$storage))),t)return this.errorHandler(t);if(n.data.success){if(!n.data.user&&n.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+n.data.showDemoProfile)}!n.data.user&&e.login&&this.logout(),this.registerLang(n.data.user?n.data.user.ssoLang:"en"),this.setUser(n.data.user)}}},async loginSetup(e){var t,n;e.data.refreshToken&&this.setRefreshToken(e.data.refreshToken),e.data.token&&this.setToken(e.data.token),((n=(t=e.data)==null?void 0:t.data)==null?void 0:n.ssoLang)!==this.appLanguage&&c.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLanguage,username:e.data.data.username}}),this.setLoggedInUserId(e.data.data.id),this.$storage.UserId=e.data.data.id,this.$storage.username=e.data.data.username,e.isModal===!0&&this.setLoggedInAccounts([{id:e.data.data.id,username:e.data.data.username,refreshToken:e.data.refreshToken,photo:e.data.data.photo}])},async refreshTokenAction(e){const[t,n]=await _(u.refreshToken({id:e.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(t&&t.response&&t.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();n&&n.data?this.setToken(n.data.token):console.error("Invalid response setToken")},async login(e){const[t,n]=await _(u.login(e,this.$storage));if(t)return this.errorHandler(t);if(n.data.success)return this.display==="npm"&&(this.loginSetup({...n,isModal:e.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...n,isModal:e.isModal}),!0},loginSuccess(e){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(t=>this.redirect_uri.startsWith(t)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+e.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(t=>{var n;(n=window.parent)==null||n.postMessage({code:e.data.auth_code,state:this.$route.query.state},t)}):this.display==="npm"&&(c.$emit("ssoEvent",{name:"setLoading",data:!0}),c.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:e.data.data.username}}),e.isModal&&(c.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+e.data.data.username+"#edit"))},async register(e){const[t,n]=await _(u.register(e,this.$storage));return t?this.errorHandler(t):n},async verify(e){const[t,n]=await _(u.verify(e,this.$storage));return t?this.errorHandler(t):n},async reset(e){const[t,n]=await _(u.sendResetEmail(e,this.$storage));if(t)return this.errorHandler(t);n.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(e){const[t,n]=await _(u.exchangeAuthCode(e,this.storage));if(t)return this.errorHandler(t);await this.loginSetup(n),await this.getLoggedInAccounts(),this.loginSuccess(n)},async changePassword(e){const[t,n]=await _(u.changePassword(e,this.$storage));return t?this.errorHandler(t):n.data.success},async newPassword(e){const[t,n]=await _(y.newPassword(e,this.$storage));return t?this.errorHandler(t):n.data.success},async deleteAccount(e){const[t,n]=await _(y.deleteAccount(e,this.$storage));return t?this.errorHandler(t):n.data.success},async registerDevice(){const e=await L.Device.getId(),t=await L.Device.getInfo();let n={device_id:e.uuid,platform:t.platform,device_info:{model:t.model,manufacturer:t.manufacturer,operatingSystem:t.operatingSystem,osVersion:t.osVersion,isVirtual:t.isVirtual,webViewVersion:t.webViewVersion}};const[o,i]=await _(x.registerDevice(n,this.$storage));return o?this.errorHandler(o):i},async addFcmToken(e){const[t,n]=await _(x.addFcmToken(e,this.$storage));return t?this.errorHandler(t):n},async acceptCompanyInvitation(e){const[t,n]=await _(N.acceptCompanyInvitation(e,this.$storage));return t?this.errorHandler(t):n},async logout(e=!0){e&&u.logout({token:this.refreshToken},this.$storage),this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId="",this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(t=>{this.loggedInAccounts[t].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[t].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[t].id),this.$storage.username=t,this.$storage.UserId=this.loggedInAccounts[t].id,this.getLoggedInAccounts(),this.$router.push("/"+t)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(e){const[t,n]=await _(N.getBySSOEmail(e.email,this.$storage));if(t)return this.errorHandler(t);if(n.data.success)return n.data},async getLoggedInAccounts(){const e=this.getRefreshTokens(),[t,n]=await _(u.getLoggedInAccounts({refreshTokens:e},this.$storage));if(t)return this.errorHandler(t);n.data.success&&this.setLoggedInAccounts(n.data.accounts)},async loginUsingQR(e){const[t,n]=await _(y.loginUsingQR(e,this.$storage));return t?this.errorHandler(t):n.data.success},setLoggedInAccounts(e){this.loggedInAccounts={},e.forEach(t=>{this.loggedInAccounts[t.username]=t}),c.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId(e){this.loggedInUserId=e},setUser(e){this.ssoUser=e,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=e.ssoLang)},getRefreshTokens(){return this.$storage.refreshTokens.split(",")},setRefreshToken(e){let t=this.getRefreshTokens();e&&!t.includes(e)?t.unshift(e):t=t.filter(n=>n!==this.refreshToken),t.length>=1?this.refreshToken=t[0]:this.refreshToken=e,this.$storage.refreshTokens=t.join(","),c.$emit("ssoEvent",{name:"setRefreshToken",data:e})},setToken(e){this.$storage.token=e,this.token=e,c.$emit("ssoEvent",{name:"setToken",data:e})},setUserID(e){this.$storage.UserId=e},updateLang(e){this.appLanguage=e}},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&(this.redirect_uri=this.$route.query.redirect_uri),this.$route.query.display&&(this.display=this.$route.query.display),this.$route.query.state&&(this.state=this.$route.query.state),this.$route.query.response_type&&(this.response_type=this.$route.query.response_type),this.$route.query.realm&&(this.$storage.realm=this.$route.query.realm),this.$route.query.qrLogin&&this.changeLoginToQr()},deep:!0}}},k=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},he={name:"AuthWelcome",mixins:[m],data(){return{loading:!0}},async mounted(){let e=document.getElementById("tapniVideo");e.addEventListener("canplay",function(){document.body.contains(e)&&e.play().catch(t=>{console.log("Play was interrupted:",t)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):c.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),c.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},H=e=>(a.pushScopeId("data-v-c5cb659c"),e=e(),a.popScopeId(),e),fe={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ke=["autoplay"],be=[H(()=>a.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],ye={class:"bold full-top no-bottom center-text"},ve={class:"full-bottom half-top center-text color-black font-16"},we={class:"page-login-links center-text"},ze=H(()=>a.createElementVNode("div",{class:"clear"},null,-1)),Se={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Le=[a.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a>',3)];function Ee(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",fe,[a.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:e.isNative},be,8,ke),a.createElementVNode("h1",ye,a.toDisplayString(e.ssoLang[this.appLanguage].welcome),1),a.createElementVNode("p",ve,a.toDisplayString(e.ssoLang[this.appLanguage].welcome_p1),1),a.createCommentVNode("",!0),a.createCommentVNode("",!0),a.createVNode(l,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(e.ssoLang[this.appLanguage].create_account),1)]),_:1}),a.createElementVNode("div",we,[a.createVNode(l,{to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].already_registered)+"? ",1),a.createElementVNode("b",null,a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),ze]),this.isNative?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Se,Le))])}const F=k(he,[["render",Ee],["__scopeId","data-v-c5cb659c"]]),Q={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.google_login)&&!this.isModal)??!0}},mounted(){B.GoogleAuth.initialize()},methods:{async googleLogin(){var n;this.googleLoad=!0;let[e,t]=await _(B.GoogleAuth.signIn());if(e)return this.googleLoad=!1;if(this.referral&&(t.ref=this.referral),t.authentication&&(t.authentication.accessToken||t.authentication.idToken)){this.referral&&(t.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(u.googleSDK(t,this.$storage));if(o)return this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.loginSuccess({...i,isModal:!1}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(e,t,n){var o,i=e.getElementsByTagName(t)[0];e.getElementById(n)||(o=e.createElement(t),o.id=n,o.src="https://connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(o,i))}(document,"script","facebook-jssdk");const G={data(){return{facebookLoad:!1}},computed:{fbLoginUrl(){return'https://www.facebook.com/v16.0/dialog/oauth?client_id=202577611527680&state={"oauth":"facebook"}&response_type=code%20granted_scopes&scope=email&redirect_uri=https://'+window.location.host+"/login"},displayFacebookLogin(){return!1}},methods:{async facebookLogin(){var o;this.facebookLoad=!0;const e=["email"],[t,n]=await _(se.FacebookLogin.login({permissions:e}));if(t)return this.facebookLoad=!1;if(this.referral&&(n.ref=this.referral),this.display==="popup"&&(n.response_type="code"),n.accessToken){const[i,r]=await _(u.facebookSDK(n,this.$storage));if(i)return this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(i);if(r.data.success){if(this.display==="popup")return(o=window.parent)==null?void 0:o.postMessage({code:r.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(r),this.getLoggedInAccounts(),this.$router.push("/"+r.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}},W={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var n;this.appleLoad=!0;const[e,t]=await _(ce.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(e)return this.appleLoad=!1;if(t.response.tokenData=V.jwtDecode(t.response.identityToken),t&&t.response&&t.response.identityToken){this.referral&&(t.response.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(u.appleSDK(t.response,this.$storage));if(o)return this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.loginSuccess({...i,isModal:!1}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var Ce={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const T={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(e,t={}){var i,r,l;e==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(t).length||(t=((r=(i=this.ssoCompany.sso)==null?void 0:i.azure)==null?void 0:r.sso)||{});const[n,o]=await _(le.MsAuthPlugin.login({clientId:e==="sso"?t.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:e==="sso"?t.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:Ce.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(n)return console.log("Error: "+JSON.stringify(n)),this.microsoftLoad=!1;if(this.referral&&(o.ref=this.referral),o.response_type="code",o&&(o.accessToken||o.idToken)){const[s,d]=await _(u.microsoftSDK(o,this.$storage));if(s)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(s);if(d.data.success){if(this.display==="popup")return(l=window.parent)==null?void 0:l.postMessage({code:d.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(d),this.getLoggedInAccounts(),this.loginSuccess({...d,isModal:!1}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){c.$emit("toggleSSOModal")}}},v={getFirstBrowserLanguage(){let e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"],n,o;if(Array.isArray(e.languages)){for(n=0;n<e.languages.length;n++)if(o=e.languages[n],o&&o.length)return o.slice(0,2)}for(n=0;n<t.length;n++)if(o=e[t[n]],o&&o.length)return o.slice(0,2);return null},compareLangKeys(){const e=Object.keys(M.default.state),t=Object.keys(q.default.state),n=Object.keys(D.default.state),o=Object.keys($.default.state),i=Object.keys(O.default.state),r=Object.keys(R.default.state),l=Object.keys(K.default.state),s=Object.keys(U.default.state);console.log("In en but not in de",e.filter(d=>!t.includes(d))),console.log("In de but not in en",t.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in es",e.filter(d=>!n.includes(d))),console.log("In es but not in en",n.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in kr",e.filter(d=>!o.includes(d))),console.log("In kr but not in en",o.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in it",e.filter(d=>!i.includes(d))),console.log("In it but not in en",i.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in fr",e.filter(d=>!r.includes(d))),console.log("In fr but not in en",r.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in sr",e.filter(d=>!l.includes(d))),console.log("In sr but not in en",l.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in tr",e.filter(d=>!s.includes(d))),console.log("In tr but not in en",s.filter(d=>!e.includes(d))),console.log()},base64ImageToBlob(e){const t=e.split(";base64,"),n=t[0].split(":")[1],o=window.atob(t[1]),i=new Uint8Array(o.length);for(let r=0;r<o.length;++r)i[r]=o.charCodeAt(r);return new Blob([i],{type:n})},blobToBase64(e){const t=new FileReader;return t.readAsDataURL(e),new Promise(n=>{t.onloadend=()=>{n(t.result)}})},base64toFile(e,t){for(var n=e.split(","),o=n[0].match(/:(.*?);/)[1],i=atob(n[1]),r=i.length,l=new Uint8Array(r);r--;)l[r]=i.charCodeAt(r);return new File([l],t,{type:o})},fileToBase64(e){new Promise((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>t(o.result),o.onerror=i=>n(i)})},getUTMParams(e,t){let n={};return e.utm_source&&(n.utm_source=e.utm_source),e.utm_medium&&(n.utm_medium=e.utm_medium),e.utm_campaign&&(n.utm_campaign=e.utm_campaign),e.utm_term&&(n.utm_term=e.utm_term),e.utm_content&&(n.utm_content=e.utm_content),n},cropCardScan(e,t){const n=new window.Image,o=document.createElement("canvas"),i=o.getContext("2d");n.src="data:image/jpeg;base64,"+e,n.onload=()=>{const r=n.width,l=n.width/1.65,s=0,d=n.height/2-l/2,f=r,w=l;o.width=f,o.height=w,i.drawImage(n,s,d,r,l,0,0,f,w);const re=o.toDataURL();return t(re),re}},generateRandomString(e){let t=new Uint32Array(e);return window.crypto.getRandomValues(t),Array.from(t,n=>("0"+n.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(e){const n=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",n);return btoa(String.fromCharCode.apply(null,new Uint8Array(o))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(e,t,n){let i=new TextEncoder().encode(n,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:t},e,i)},async decryptAES(e,t,n){try{const o=d=>Uint8Array.from(atob(d),f=>f.charCodeAt(0));n=n.replace(/ /g,"+");const i=new TextEncoder,r=new TextDecoder;e=i.encode(e),t=i.encode(t),n=o(n,storage);const l=await window.crypto.subtle.importKey("raw",e,"AES-CBC",!0,["encrypt","decrypt"]);let s=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:t},l,n);return s=r.decode(s),s=s.replace(/ /g,"+"),s=atob(s),s}catch(o){console.log(o)}}},j={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(e){var i,r;let[t,n]=await _(I.post(e.domain+"/v1/token",new URLSearchParams({code:e.code,client_id:e.clientID,grant_type:"authorization_code",redirect_uri:this.isNative?"tapni://t.link/callback/okta":location.origin+"/callback/okta",code_verifier:localStorage.getItem("pkce_code_verifier")})));if(t)return this.errorHandler(t);localStorage.removeItem("pkce_code_verifier");let o={accessToken:(i=n.data)==null?void 0:i.access_token,domain:e.domain};if(this.display==="popup"&&(o.response_type="code"),[t,n]=await _(u.oktaSDK(o,this.$storage)),t)return this.oktaLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(t);if(n.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:n.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(n),this.getLoggedInAccounts(),this.$router.push("/"+n.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(e){const t=S.Capacitor.getPlatform()||"web";let n=btoa("domain="+e.domain+"&client_id="+e.clientID+"&platform="+t+"&rand="+v.generateRandomString(28)),o=v.generateRandomString(28);localStorage.setItem("pkce_code_verifier",o);let i=await v.pkceChallengeFromVerifier(o),r=e.domain+"/v1/authorize",l;this.isNative?l="tapni://t.link/callback/okta":l=location.origin+"/callback/okta";let s=r+"?response_type=code&client_id="+encodeURIComponent(e.clientID)+"&state="+encodeURIComponent(n)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(l)+"&code_challenge="+encodeURIComponent(i)+"&code_challenge_method=S256",d=this,f;window.addEventListener("message",async w=>{if(!this.allowedOrigins.includes(w.origin))return console.log("Origin is not allowed!");w.data.type==="okta"&&(f=w.data.code,await d.exchangeCode({domain:e.domain,code:f,clientID:e.clientID}))},{once:!0}),this.isNative?await E.Browser.open({url:s,presentationStyle:"popover"}):window.open(s,"popup","width=600,height=600")},async handleOktaRedirect(){let e=this.$route.query.code,t,n,o,i,r={type:"okta"};if(e&&(r.code=e),this.$route.query.state){t=this.$route.query.state,t=atob(t);const l=new URLSearchParams(t);n=l.get("client_id"),o=l.get("domain"),i=l.get("platform")}window.opener?(window.opener.postMessage(r,location.origin),window.close()):(this.isNative&&this.isIOS&&await E.Browser.close(),c.$emit("ssoEvent",{name:"setLoading",data:!0}),e&&n&&o&&await this.exchangeCode({code:e,clientID:n,domain:o,platform:i}),localStorage.removeItem("pkce_code_verifier"),c.$emit("ssoEvent",{name:"setLoading",data:!1}))}}},P={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(e){this.code_verifier=v.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await v.pkceChallengeFromVerifier(this.code_verifier);const t=S.Capacitor.getPlatform();let n=Buffer.from(`code_challenge=${this.code_challenge}&platform=${t}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");e=`${e}&RelayState=${n}`;let o=this;window.addEventListener("message",async i=>{var r;if(!this.allowedOrigins.includes(i.origin))return console.log("Origin is not allowed!");if(i.data.type==="saml"&&i.data.code){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:i.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await o.exchangeAuthCode({code:i.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await E.Browser.open({url:e,presentationStyle:"popover"}):window.open(e,"popup","width=600,height=600")},async handleSamlRedirect(){var n;let e,t={type:"saml"};if(this.$route.query.code&&(t.code=this.$route.query.code),window.opener)window.opener.postMessage(t,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await E.Browser.close(),EventBus.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(e=this.$route.query.code),e){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:e,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:e,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),EventBus.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Te={name:"AuthLogin",mixins:[Q,G,W,T,j,P,m,{data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await a.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e.length;let n="";const o=new Uint32Array(32);return window.crypto.getRandomValues(o),o.forEach(i=>{n+=e.charAt(i%t)}),n},refreshQrCode(){var e,t;this.qrCode&&((t=(e=document.getElementById("qrCodeContainer"))==null?void 0:e.childNodes[0])==null||t.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new de({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[e,t]=await _(N.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(e)return this.errorHandler(e);t.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...t,isModal:this.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...t,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await a.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}}],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.create_account)&&!this.isModal)??!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),c.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let t={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?t.email=this.emailOrUsername:t.username=this.emailOrUsername;const[n,o]=await _(this.login(t));n&&console.error(n),this.submitted=!1,o===!0&&(this.emailOrUsername="",this.password="")},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(e){e.includes("@")&&(this.$storage.verifyEmail=e)},"$route.path":async function(e){if(e==="/login/callback/okta")return await this.handleOktaRedirect();if(e==="/login/callback/saml")return await this.handleSamlRedirect()}}},je=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Pe={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ae=a.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Ie={key:1},Ne={class:"page-login-field half-top"},Ve=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Be=["placeholder"],xe=a.createElementVNode("em",null,null,-1),Me={class:"page-login-field half-bottom"},qe=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),De=["type","placeholder"],Re={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Oe={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ke={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ue={key:0},$e={key:1,class:"button--loading button__loader"},He=a.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Fe=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Qe={key:0},Ge={key:1,class:"button--loading button__loader"},We=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),Xe={key:0},Ye={key:1,class:"button--loading-black button__loader"},Ze=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),Je={key:0},ea={key:1,class:"button--loading-black button__loader"},aa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ta={key:0},na={key:1,class:"button--loading-black button__loader"},ia=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading-black button__loader"},sa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading-black button__loader"},da=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),_a={class:"close-text center-text half-top color-black"},ua=a.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:9,class:"page-login-links"},ka=a.createElementVNode("div",{class:"clear"},null,-1),ba={class:"forgot center-text pointer small-top"},ya=a.createElementVNode("br",null,null,-1),va=a.createElementVNode("div",{class:"clear"},null,-1);function wa(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[13]||(t[13]=a.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},je)):a.createCommentVNode("",!0),a.createElementVNode("h1",Pe,a.toDisplayString(this.ssoLang[this.appLanguage].login),1),Ae,r.displayFormLogin?(a.openBlock(),a.createElementBlock("span",Ie,[a.createElementVNode("div",Ne,[Ve,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>i.emailOrUsername=s),onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:e.ssoLang[this.appLanguage].email_username,required:""},null,40,Be),[[a.vModelText,i.emailOrUsername]]),xe]),a.createElementVNode("div",Me,[qe,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,De),[[a.vModelDynamic,i.password]]),a.createElementVNode("em",{onClick:t[4]||(t[4]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[a.withDirectives(a.createElementVNode("img",Re,null,512),[[a.vShow,!i.revealPassword]]),a.withDirectives(a.createElementVNode("img",Oe,null,512),[[a.vShow,i.revealPassword]])])]),a.createElementVNode("button",Ke,[i.submitted?(a.openBlock(),a.createElementBlock("span",$e)):(a.openBlock(),a.createElementBlock("span",Ue,a.toDisplayString(e.ssoLang[e.appLanguage].login),1))])])):a.createCommentVNode("",!0),He,e.displayAppleLogin?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:t[5]||(t[5]=(...s)=>e.appleLogin&&e.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fe,e.appleLoad?(a.openBlock(),a.createElementBlock("span",Ge)):(a.openBlock(),a.createElementBlock("span",Qe,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Apple",1))])):a.createCommentVNode("",!0),e.displayGoogleLogin?(a.openBlock(),a.createElementBlock("a",{key:3,onClick:t[6]||(t[6]=(...s)=>e.googleLogin&&e.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[We,e.googleLoad?(a.openBlock(),a.createElementBlock("span",Ye)):(a.openBlock(),a.createElementBlock("span",Xe,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Google",1))])):a.createCommentVNode("",!0),e.displayFacebookLogin?(a.openBlock(),a.createElementBlock("a",{key:4,onClick:t[7]||(t[7]=(...s)=>e.facebookLogin&&e.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ze,e.facebookLoad?(a.openBlock(),a.createElementBlock("span",ea)):(a.openBlock(),a.createElementBlock("span",Je,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Facebook",1))])):a.createCommentVNode("",!0),e.displayMicrosoftSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:5,onClick:t[8]||(t[8]=(...s)=>e.microsoftLogin&&e.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[aa,e.microsoftLoad?(a.openBlock(),a.createElementBlock("span",na)):(a.openBlock(),a.createElementBlock("span",ta,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Outlook",1))])),e.displayMicrosoftSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:6,onClick:t[9]||(t[9]=(...s)=>e.ssoLogin&&e.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[ia,e.microsoftSSOLoad?(a.openBlock(),a.createElementBlock("span",ra)):(a.openBlock(),a.createElementBlock("span",oa,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1))])),e.displayMicrosoftSSOLogin?(a.openBlock(),a.createElementBlock("a",{key:7,onClick:t[10]||(t[10]=s=>e.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[sa,e.microsoftSSOLoad?(a.openBlock(),a.createElementBlock("span",ca,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1)):(a.openBlock(),a.createElementBlock("span",la))])):a.createCommentVNode("",!0),r.displayFormLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:8,onClick:t[11]||(t[11]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,a.createElementVNode("span",null,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Email",1)])),pa,a.createElementVNode("p",_a,[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].terms_by_signing_in)+" ",1),ua,a.createElementVNode("a",ma,a.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),a.createTextVNode(" "+a.toDisplayString(e.ssoLang[e.appLanguage].and)+" ",1),a.createElementVNode("a",ga,a.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ha,n.isModal?(a.openBlock(),a.createElementBlock("div",{key:10,class:"page-login-links",onClick:t[12]||(t[12]=(...s)=>r.createAccountModal&&r.createAccountModal(...s))},[a.createElementVNode("a",ba,[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].or)+" ",1),ya,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[e.appLanguage].create_new_account),1)]),va])):(a.openBlock(),a.createElementBlock("div",fa,[r.displayRegisterLogin?(a.openBlock(),a.createBlock(l,{key:0,class:"forgot float-right",to:"/register"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].create_account),1)]),_:1})):a.createCommentVNode("",!0),r.displayResetPasswordLogin?(a.openBlock(),a.createBlock(l,{key:1,class:"create float-left",to:"/reset"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].reset_password),1)]),_:1})):a.createCommentVNode("",!0),ka]))],36)}const X=k(Te,[["render",wa]]),za={name:"AuthRegister",mixins:[Q,G,W,T,m],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.$storage.referral&&(this.referral=this.$storage.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let e={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},t=await this.register(e);this.submitted=!1,t.data&&t.data.success&&(t.data.message==="SUCCESS_REGISTER"?(this.isModal?c.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):t.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...t,isModal:e.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...t,isModal:e.isModal})))},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(e){this.$storage.verifyEmail=e},referral(e){this.$storage.referral=e}}},Sa=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],La={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ea={class:"half-bottom small-top center-text color-black"},Ca={key:0},Ta=a.createElementVNode("br",null,null,-1),ja={key:1},Pa={class:"page-login-field half-top"},Aa=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Ia=["placeholder"],Na=a.createElementVNode("em",null,null,-1),Va={class:"page-login-field half-top"},Ba=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),xa=["placeholder","disabled"],Ma=a.createElementVNode("em",null,null,-1),qa={class:"page-login-field half-top half-bottom"},Da=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ra=["type","placeholder"],Oa={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ka={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ua={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},$a={key:0},Ha={key:1,class:"button--loading button__loader"},Fa=a.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Qa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Ga={key:0},Wa={key:1,class:"button--loading button__loader"},Xa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),Ya={key:0},Za={key:1,class:"button--loading button__loader"},Ja=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),et={key:0},at={key:1,class:"button--loading button__loader"},tt=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),nt=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),it={class:"close-text center-text half-top color-black"},ot=a.createElementVNode("br",null,null,-1),rt={class:"",href:"https://tapni.co/policies/terms-of-service"},st={href:"https://tapni.co/policies/privacy-policy"},ct=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),lt={key:5,class:"page-login-links"},dt=a.createElementVNode("div",{class:"clear"},null,-1),pt={class:"forgot center-text pointer small-top"},_t=a.createElementVNode("br",null,null,-1),ut=a.createElementVNode("div",{class:"clear"},null,-1);function mt(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[12]||(t[12]=a.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Sa)):a.createCommentVNode("",!0),a.createElementVNode("h1",La,a.toDisplayString(e.ssoLang[this.appLanguage].register),1),a.createElementVNode("p",Ea,[i.usernameRegister?(a.openBlock(),a.createElementBlock("span",Ca,[a.createTextVNode(" t.link/"+a.toDisplayString(i.username)+" "+a.toDisplayString(e.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),Ta])):a.createCommentVNode("",!0)]),i.emailLogin?(a.openBlock(),a.createElementBlock("span",ja,[a.createElementVNode("div",Pa,[Aa,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Ia),[[a.vModelText,i.email]]),Na]),a.createElementVNode("div",Va,[Ba,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.username=s),onKeydown:t[4]||(t[4]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:e.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:i.usernameRegister,class:a.normalizeClass({"input-disabled":i.usernameRegister})},null,42,xa),[[a.vModelText,i.username]]),Ma]),a.createElementVNode("div",qa,[Da,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ra),[[a.vModelDynamic,i.password]]),a.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[a.withDirectives(a.createElementVNode("img",Oa,null,512),[[a.vShow,!i.revealPassword]]),a.withDirectives(a.createElementVNode("img",Ka,null,512),[[a.vShow,i.revealPassword]])])]),a.createElementVNode("button",Ua,[i.submitted?(a.openBlock(),a.createElementBlock("span",Ha)):(a.openBlock(),a.createElementBlock("span",$a,a.toDisplayString(i.formButtonText),1))])])):a.createCommentVNode("",!0),Fa,e.displayAppleLogin?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:t[7]||(t[7]=(...s)=>e.appleLogin&&e.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Qa,e.appleLoad?(a.openBlock(),a.createElementBlock("span",Wa)):(a.openBlock(),a.createElementBlock("span",Ga,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):a.createCommentVNode("",!0),a.createElementVNode("a",{onClick:t[8]||(t[8]=(...s)=>e.googleLogin&&e.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Xa,e.googleLoad?(a.openBlock(),a.createElementBlock("span",Za)):(a.openBlock(),a.createElementBlock("span",Ya,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),e.displayFacebookLogin?(a.openBlock(),a.createElementBlock("a",{key:3,onClick:t[9]||(t[9]=(...s)=>e.facebookLogin&&e.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ja,e.facebookLoad?(a.openBlock(),a.createElementBlock("span",at)):(a.openBlock(),a.createElementBlock("span",et,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):a.createCommentVNode("",!0),i.emailLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:4,onClick:t[10]||(t[10]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[tt,a.createElementVNode("span",null,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),nt,a.createElementVNode("p",it,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].terms_by_registering)+" ",1),ot,a.createElementVNode("a",rt,a.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].and)+" ",1),a.createElementVNode("a",st,a.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ct,n.isModal?(a.openBlock(),a.createElementBlock("div",{key:6,class:"page-login-links",onClick:t[11]||(t[11]=(...s)=>r.loginAccountModal&&r.loginAccountModal(...s))},[a.createElementVNode("a",pt,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),_t,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].sign_in_with_new),1)]),ut])):(a.openBlock(),a.createElementBlock("div",lt,[a.createVNode(l,{class:"create float-right",to:"/verify"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),a.createVNode(l,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),dt]))],36)}const Y=k(za,[["render",mt]]),gt={name:"AuthVerify",mixins:[m],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route&&this.init()},methods:{init(){this.isLoggedIn?this.$router.push(this.home):(this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),c.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let e={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let t=await this.verify(e);this.submitted=!1,t&&t.data&&t.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",c.$emit("closeModal")),await this.loginSetup(t),this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+t.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(e){e&&(this.email=e)},"route.name"(e,t){!t&&e&&this.init()},"route.query":{handler(e){this.isEmpty(e)||this.init()},deep:!0}}},h=e=>(a.pushScopeId("data-v-af1531aa"),e=e(),a.popScopeId(),e),ht=[h(()=>a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],ft={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},kt=h(()=>a.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),bt={class:"page-login-field half-top"},yt=h(()=>a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),vt=["placeholder"],wt=h(()=>a.createElementVNode("em",null,null,-1)),zt={class:"page-login-field half-top"},St=h(()=>a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),Lt=["placeholder"],Et=h(()=>a.createElementVNode("em",null,null,-1)),Ct={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Tt={key:0,class:"uppercase"},jt={key:1,class:"button--loading button__loader"},Pt=h(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),At={class:"close-text center-text half-top color-black"},It=["innerHTML"],Nt=h(()=>a.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Vt=h(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Bt={key:1,class:"page-login-links"},xt=h(()=>a.createElementVNode("div",{class:"clear"},null,-1)),Mt={class:"forgot center-text pointer small-top"},qt=h(()=>a.createElementVNode("br",null,null,-1)),Dt=h(()=>a.createElementVNode("div",{class:"clear"},null,-1));function Rt(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[6]||(t[6]=a.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},ht)):a.createCommentVNode("",!0),a.createElementVNode("h1",ft,a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1),kt,a.createElementVNode("div",bt,[yt,a.withDirectives(a.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,vt),[[a.vModelText,i.email]]),wt]),a.createElementVNode("div",zt,[St,a.withDirectives(a.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":t[3]||(t[3]=s=>i.code=s),onKeydown:t[4]||(t[4]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:e.ssoLang[this.appLanguage].code,required:""},null,40,Lt),[[a.vModelText,i.code]]),Et]),a.createElementVNode("button",Ct,[i.submitted?(a.openBlock(),a.createElementBlock("span",jt)):(a.openBlock(),a.createElementBlock("span",Tt,a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1))]),Pt,a.createElementVNode("p",At,[a.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].verify_account_p1},null,8,It),Nt]),Vt,n.isModal?(a.openBlock(),a.createElementBlock("div",{key:2,class:"page-login-links",onClick:t[5]||(t[5]=(...s)=>r.registerAccountModal&&r.registerAccountModal(...s))},[a.createElementVNode("a",Mt,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),qt,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].create_new_account),1)]),Dt])):(a.openBlock(),a.createElementBlock("div",Bt,[a.createVNode(l,{class:"create float-right",to:"/register"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].register),1)]),_:1}),a.createVNode(l,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),xt]))],36)}const Z=k(gt,[["render",Rt],["__scopeId","data-v-af1531aa"]]),Ot={name:"AuthReset",mixins:[m],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),c.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let e={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(e),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let e={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},t=await this.changePassword(e);this.submitted=!1,t===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(e){this.$storage.verifyEmail=e}}},b=e=>(a.pushScopeId("data-v-4f85b89a"),e=e(),a.popScopeId(),e),Kt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ut=b(()=>a.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),$t={class:"page-login-field half-top color-black"},Ht=b(()=>a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ft=["placeholder"],Qt=b(()=>a.createElementVNode("em",null,null,-1)),Gt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Wt={key:0,class:"uppercase"},Xt={key:1,class:"button--loading button__loader"},Yt=b(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Zt={class:"close-text center-text half-top color-black"},Jt=["innerHTML"],en=["href"],an=b(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),tn={class:"page-login-links"},nn=b(()=>a.createElementVNode("div",{class:"clear"},null,-1)),on={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},rn={class:"half-bottom small-top center-text color-black"},sn={class:"page-login-field half-top"},cn=b(()=>a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),ln=["type","placeholder"],dn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},pn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},_n={class:"page-login-field half-top"},un=b(()=>a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),mn=["type","placeholder"],gn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},hn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},fn={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},kn={key:0,class:"uppercase"},bn={key:1,class:"button--loading button__loader"},yn=b(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vn={class:"close-text center-text half-top color-black"},wn=["innerHTML"],zn=["href"];function Sn(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return i.passwordChange?(a.openBlock(),a.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:t[7]||(t[7]=a.withModifiers((...s)=>r.changePw&&r.changePw(...s),["prevent"]))},[a.createElementVNode("h3",on,a.toDisplayString(e.ssoLang[this.appLanguage].password_change),1),a.createElementVNode("p",rn,a.toDisplayString(e.ssoLang[this.appLanguage].password_new),1),a.createElementVNode("div",sn,[cn,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,required:""},null,8,ln),[[a.vModelDynamic,i.password]]),a.createElementVNode("em",{onClick:t[4]||(t[4]=s=>i.revealPassword=!i.revealPassword)},[a.withDirectives(a.createElementVNode("img",dn,null,512),[[a.vShow,!i.revealPassword]]),a.withDirectives(a.createElementVNode("img",pn,null,512),[[a.vShow,i.revealPassword]])])]),a.createElementVNode("div",_n,[un,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.passwordRepeat=s),type:i.revealPassword2?"text":"password",placeholder:e.ssoLang[this.appLanguage].password_repeat,required:""},null,8,mn),[[a.vModelDynamic,i.passwordRepeat]]),a.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword2=!i.revealPassword2)},[a.withDirectives(a.createElementVNode("img",gn,null,512),[[a.vShow,!i.revealPassword2]]),a.withDirectives(a.createElementVNode("img",hn,null,512),[[a.vShow,i.revealPassword2]])])]),a.createElementVNode("button",fn,[i.submitted?(a.openBlock(),a.createElementBlock("span",bn)):(a.openBlock(),a.createElementBlock("span",kn,a.toDisplayString(e.ssoLang[this.appLanguage].password_change),1))]),yn,a.createElementVNode("p",vn,[a.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p2},null,8,wn),a.createTextVNode(),a.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,zn)])],32)):(a.openBlock(),a.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:t[2]||(t[2]=a.withModifiers((...s)=>r.resetEmail&&r.resetEmail(...s),["prevent"])),autocomplete:"on"},[a.createElementVNode("h3",Kt,a.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1),Ut,a.createElementVNode("div",$t,[Ht,a.withDirectives(a.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[0]||(t[0]=s=>i.email=s),onKeydown:t[1]||(t[1]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,Ft),[[a.vModelText,i.email]]),Qt]),a.createElementVNode("button",Gt,[i.submitted?(a.openBlock(),a.createElementBlock("span",Xt)):(a.openBlock(),a.createElementBlock("span",Wt,a.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1))]),Yt,a.createElementVNode("p",Zt,[a.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p1},null,8,Jt),a.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,en)]),an,a.createElementVNode("div",tn,[a.createVNode(l,{class:"create float-right",to:"/verify"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),a.createVNode(l,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),nn])],32))}const J=k(Ot,[["render",Sn],["__scopeId","data-v-4f85b89a"]]),Ln={name:"AuthCallback",mixins:[j,P,m],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let e=pe.sanitizeUrl(location.href);return e=e.replace("http","tapni"),e=e.replace("https","tapni"),window.open(e)}}},En={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Cn=a.createElementVNode("br",null,null,-1),Tn={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function jn(e,t,n,o,i,r){return a.openBlock(),a.createElementBlock("div",null,[(e.$route.query.platform==="android"||e.$route.query.platform==="ios")&&!e.isNative?(a.openBlock(),a.createElementBlock("h5",En,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].you_will_be_redirected),1),Cn,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),a.createElementVNode("span",{onClick:t[0]||(t[0]=(...l)=>r.inAppRedirect&&r.inAppRedirect(...l)),style:{color:"blue",cursor:"pointer"}},a.toDisplayString(e.ssoLang[this.appLanguage].click_here),1),a.createTextVNode(".")])):(a.openBlock(),a.createElementBlock("h4",Tn,a.toDisplayString(e.ssoLang[this.appLanguage].please_wait),1))])}const ee=k(Ln,[["render",jn]]),Pn={name:"ModalOverlay",mixins:[m],data(){return{toggle:!1}},mounted(){c.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),c.$on("openModalOverlay",()=>{this.toggle=!0}),c.$on("toggleLanguageModal",this.toggleModal),c.$on("toggleSSOModal",this.toggleModal),c.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(e=!0){e&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var e,t;!this.isLoggedIn&&((t=(e=this.user)==null?void 0:e.lead_form)!=null&&t.forceFilling)||c.$emit("closeModal")}}};function An(e,t,n,o,i,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":i.toggle}),onClick:t[0]||(t[0]=(...l)=>r.toggleEmit&&r.toggleEmit(...l))},null,2)}const ae=k(Pn,[["render",An],["__scopeId","data-v-a128c2fa"]]),In={name:"SSO",mixins:[T,j,P,m],data(){return{toggle:!1,email:"",loading:!1}},mounted(){c.$on("toggleSSOModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const e=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let t;if(!(!e||e.error))if(t=Object.keys(e.sso),t.length)t.length<=1?(t[0]==="azure"&&this.microsoftLogin("sso",e.sso.azure.sso),t[0]==="okta"&&this.oktaLogin(e.sso.okta.sso),t[0]==="saml"&&this.samlLogin(e.sso.saml.sso.loginUrl)):(this.forceClose(),c.$emit("toggleSSOPickModal",{sso:e.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Nn=[(e=>(a.pushScopeId("data-v-11f19a09"),e=e(),a.popScopeId(),e))(()=>a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Vn={class:"bold center-text color-black half-top half-bottom"},Bn=["placeholder"],xn={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},Mn={key:0},qn={key:1,class:"button--loading button__loader"};function Dn(e,t,n,o,i,r){return a.openBlock(),a.createElementBlock("form",{onSubmit:t[3]||(t[3]=a.withModifiers((...l)=>r.submit&&r.submit(...l),["prevent"])),class:a.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[a.createElementVNode("a",{onClick:t[0]||(t[0]=(...l)=>r.forceClose&&r.forceClose(...l)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Nn),a.createElementVNode("h3",Vn,a.toDisplayString(e.ssoLang[e.appLanguage].enter_company_email),1),a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=l=>i.email=l),placeholder:e.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Bn),[[a.vModelText,i.email]])]),a.createElementVNode("button",xn,[i.loading?(a.openBlock(),a.createElementBlock("span",qn)):(a.openBlock(),a.createElementBlock("span",Mn,a.toDisplayString(e.ssoLang[e.appLanguage].continue),1))])],34)}const te=k(In,[["render",Dn],["__scopeId","data-v-11f19a09"]]),Rn={name:"SSOPick",mixins:[T,j,P,m],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){c.$on("toggleSSOPickModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOPickModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(e){e==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),e==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),e==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(e){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,e&&(this.sso=e.sso,this.email=e.email),this.toggle=!this.toggle}}},A=e=>(a.pushScopeId("data-v-4f821f65"),e=e(),a.popScopeId(),e),On=[A(()=>a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Kn={class:"bold center-text color-black half-top half-bottom"},Un=A(()=>a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),$n={key:0},Hn={key:1,class:"button--loading button__loader"},Fn=A(()=>a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Qn={key:0},Gn={key:1,class:"button--loading button__loader"},Wn=A(()=>a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Xn={key:0},Yn={key:1,class:"button--loading button__loader"};function Zn(e,t,n,o,i,r){var l,s,d;return a.openBlock(),a.createElementBlock("form",{onSubmit:t[4]||(t[4]=a.withModifiers(()=>{},["prevent"])),class:a.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[a.createElementVNode("a",{onClick:t[0]||(t[0]=(...f)=>r.forceClose&&r.forceClose(...f)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},On),a.createElementVNode("h3",Kn,a.toDisplayString(e.ssoLang[e.appLanguage].select_sign_method),1),(l=i.sso)!=null&&l.azure?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[1]||(t[1]=f=>r.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Un,i.azureLoad?(a.openBlock(),a.createElementBlock("span",Hn)):(a.openBlock(),a.createElementBlock("span",$n,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Azure",1))])):a.createCommentVNode("",!0),(s=i.sso)!=null&&s.okta?(a.openBlock(),a.createElementBlock("a",{key:1,onClick:t[2]||(t[2]=f=>r.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[Fn,i.oktaLoad?(a.openBlock(),a.createElementBlock("span",Gn)):(a.openBlock(),a.createElementBlock("span",Qn,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Okta",1))])):a.createCommentVNode("",!0),(d=i.sso)!=null&&d.saml?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:t[3]||(t[3]=f=>r.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[Wn,i.samlLoad?(a.openBlock(),a.createElementBlock("span",Yn)):(a.openBlock(),a.createElementBlock("span",Xn,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SAML",1))])):a.createCommentVNode("",!0)],34)}const ne=k(Rn,[["render",Zn],["__scopeId","data-v-4f821f65"]]),Jn={name:"LinkIcon",mixins:[m],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.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:{}},ei=["src","alt"],ai=["src","alt"],ti=["src","alt"],ni=["src","alt"];function ii(e,t,n,o,i,r){var l,s;return a.openBlock(),a.createElementBlock("a",{class:a.normalizeClass(["disable-select",n.linkStyle+(n.disabled?" opacity-50":"")]),style:a.normalizeStyle((n.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[a.createElementVNode("span",{class:a.normalizeClass({"user-link-img":!0,"pulse pulse-border":n.pulse,"link-drag":n.editing}),style:a.normalizeStyle({...(l=n.customLinkStyle)==null?void 0:l.linkIcon})},[!n.data.custom_icon&&n.data.type!=="customlink"?(a.openBlock(),a.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+n.data.type+".png",class:"responsive-image",alt:n.data.text,onLoad:t[0]||(t[0]=d=>e.$emit("loaded")),onError:t[1]||(t[1]=d=>e.$emit("loaded"))},null,40,ei)):!n.data.custom_icon&&n.data.type==="customlink"&&n.linkAdding?(a.openBlock(),a.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:n.data.text,onLoad:t[2]||(t[2]=d=>e.$emit("loaded")),onError:t[3]||(t[3]=d=>e.$emit("loaded"))},null,40,ai)):!n.data.custom_icon&&n.data.type==="customlink"&&!n.linkAdding?(a.openBlock(),a.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:n.data.text,onLoad:t[4]||(t[4]=d=>e.$emit("loaded")),onError:t[5]||(t[5]=d=>e.$emit("loaded"))},null,40,ti)):(a.openBlock(),a.createElementBlock("img",{key:3,src:n.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:n.data.text,onLoad:t[6]||(t[6]=d=>e.$emit("loaded")),onError:t[7]||(t[7]=d=>e.$emit("loaded"))},null,40,ni))],6),a.createElementVNode("span",{class:"link-text link-drag color-black",style:a.normalizeStyle({color:(s=n.customLinkStyle)==null?void 0:s.color})},a.toDisplayString(r.linkText),5)],6)}const oi=k(Jn,[["render",ii]]),ri={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},si={name:"Language",mixins:[m],components:{LinkIcon:oi},data(){return{toggle:!1}},async mounted(){c.$on("toggleLanguageModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1});let e=this.isNative?await L.Device.getLanguageCode():v.getFirstBrowserLanguage();e&&ri.SUPPORTED_LANGUAGES.includes(e)&&this.updateLanguage(e)},beforeDestroy(){c._events.toggleLanguageModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(e){c.$emit("updateLang",e),c.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},ci=[(e=>(a.pushScopeId("data-v-34a6b7b2"),e=e(),a.popScopeId(),e))(()=>a.createElementVNode("i",{class:"font-17 fa color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],li={class:"bold center-text color-black small-bottom"};function di(e,t,n,o,i,r){const l=a.resolveComponent("LinkIcon");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[a.createElementVNode("a",{onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},ci),a.createElementVNode("h3",li,a.toDisplayString(e.ssoLang[e.appLanguage].app_language),1),a.createVNode(l,{onClick:t[1]||(t[1]=s=>r.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:e.ssoLang[this.appLanguage].english},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[2]||(t[2]=s=>r.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:e.ssoLang[this.appLanguage].spanish},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[3]||(t[3]=s=>r.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:e.ssoLang[this.appLanguage].german},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[4]||(t[4]=s=>r.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:e.ssoLang[this.appLanguage].italian},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[5]||(t[5]=s=>r.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:e.ssoLang[this.appLanguage].french},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[6]||(t[6]=s=>r.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:e.ssoLang[this.appLanguage].korean},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[7]||(t[7]=s=>r.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:e.ssoLang[this.appLanguage].serbian},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[8]||(t[8]=s=>r.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:e.ssoLang[this.appLanguage].turkish},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const ie=k(si,[["render",di],["__scopeId","data-v-34a6b7b2"]]);var pi={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _i={id:"ssoapp"},ui={key:0,href:"/",class:"header-logo"},mi=[a.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AA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qBCJ554z3bNkFYqvVS2FHd3/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)],gi={class:"lang-icon"},hi={class:"snackbar snackbar-boxed",id:"snackbar"},fi={class:"snack-body",id:"errorSnack"},ki={id:"errorMessage"},bi=[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],yi={class:"snack-body",id:"successSnack"},vi={id:"successMessage"},wi=[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],oe=Object.assign({name:"TapniAuth",mixins:[m],data(){return{isSetup:!1}},components:{Language:ie,SSOPick:ne,SSO:te,ModalOverlay:ae,AuthCallback:ee,AuthReset:J,AuthVerify:Z,AuthRegister:Y,AuthLogin:X,AuthWelcome:F},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),c.$on("ssoEvent",this.ssoOutgoingEvent),c.$on("ssoLogout",e=>this.logout(e)),c.$on("getLoggedInAccounts",e=>this.getLoggedInAccounts(e)),c.$on("refreshTokenAction",e=>this.refreshTokenAction(e))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const e=this.getRefreshTokens();this.setRefreshToken(e[0]),this.getLoggedInAccounts(),this.$emit("ssoLibraryReady")},ssoOutgoingEvent(e){this.$emit("ssoEvent",e)},ssoIncomingEvent(e){c.$emit(e.name,e.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){c.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(e){return document.addEventListener("DOMContentLoaded",function(){const t=document.createElement("script");t.src=`https://www.google.com/recaptcha/api.js?render=${pi.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(t)}),(t,n)=>(a.openBlock(),a.createElementBlock("div",_i,[t.display==="redirect"?(a.openBlock(),a.createElementBlock("a",ui,mi)):a.createCommentVNode("",!0),t.display==="redirect"?(a.openBlock(),a.createElementBlock("a",{key:1,onClick:n[0]||(n[0]=(...o)=>t.toggleLanguageModal&&t.toggleLanguageModal(...o)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[a.createElementVNode("span",gi,a.toDisplayString(t.appLanguage.toUpperCase()),1)])):a.createCommentVNode("",!0),a.createVNode(ae),a.createVNode(ie),a.createVNode(te),a.createVNode(ne),t.initialized&&t.renderView==="AuthWelcome"?(a.openBlock(),a.createBlock(F,{key:2})):t.initialized&&t.renderView==="AuthLogin"?(a.openBlock(),a.createBlock(X,{key:3,isModal:e.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthRegister"?(a.openBlock(),a.createBlock(Y,{key:4,isModal:e.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthVerify"?(a.openBlock(),a.createBlock(Z,{key:5,isModal:e.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthReset"?(a.openBlock(),a.createBlock(J,{key:6})):t.initialized&&t.renderView==="AuthCallback"?(a.openBlock(),a.createBlock(ee,{key:7})):(a.openBlock(),a.createBlock(a.unref(z.RouterView),{key:8})),a.createElementVNode("div",hi,[a.createElementVNode("p",fi,[a.createElementVNode("span",ki,a.toDisplayString(t.ssoLang[t.appLanguage].error),1),a.createElementVNode("a",{onClick:n[1]||(n[1]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},bi)]),a.createElementVNode("p",yi,[a.createElementVNode("span",vi,a.toDisplayString(t.ssoLang[t.appLanguage].success),1),a.createElementVNode("a",{onClick:n[2]||(n[2]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},wi)])])]))}});return{TapniAuth:oe,install:e=>{e.component("TapniAuth",oe)}}});
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 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."}},me={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||S.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||S.Capacitor.getPlatform()==="ios"},isNative(){return S.Capacitor.isNativePlatform()}},methods:{errorHandler(e){return e&&e.response&&e.response.data&&e.response.data.error&&((e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)),e},errorSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(e){return e<10?"":e<=50?"🔥":e<=100?"💥":e<=300?"💎":e>300?"🚀":""},isEmpty(e){if(!e)return!0;for(let t in e)if(e.hasOwnProperty(t))return!1;return JSON.stringify(e)===JSON.stringify({})},copy(e=""){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(e){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:e})}catch(t){return console.log(t),null}}}};var ge={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const m={mixins:[me],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:M.state,de:q.state,es:D.state,fr:R.state,it:O.state,sr:K.state,tr:U.state,cn:ue.state,kr:$.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),c.$on("updateLang",this.updateLang),ge.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")return this.logout();!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)}return e},errorSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),o=document.getElementById("errorSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(e){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),o=document.getElementById("successSnack");n.innerHTML=e,t.classList.add("show-snack"),o.classList.add("active-snack"),setTimeout(function(){o.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog(e){const[t,n]=await _(y.eventLog(e,this.$storage));return t?this.errorHandler(t):n},async maintenance(){const[e,t]=await _(I.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(t){let n=t.data;typeof t.data=="string"&&(n=JSON.parse(t.data)),n.api&&n.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+n.api.msg)}},async getUser(e){if(e){let t,n;if(e.username?[t,n]=await _(y.getByUsername(e,this.$storage)):e.serial&&([t,n]=await _(y.getByNumber(e,this.$storage))),t)return this.errorHandler(t);if(n.data.success){if(!n.data.user&&n.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+n.data.showDemoProfile)}!n.data.user&&e.login&&this.logout(),this.registerLang(n.data.user?n.data.user.ssoLang:"en"),this.setUser(n.data.user)}}},async loginSetup(e){var t,n;e.data.refreshToken&&this.setRefreshToken(e.data.refreshToken),e.data.token&&this.setToken(e.data.token),((n=(t=e.data)==null?void 0:t.data)==null?void 0:n.ssoLang)!==this.appLanguage&&c.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLanguage,username:e.data.data.username}}),this.setLoggedInUserId(e.data.data.id),this.$storage.UserId=e.data.data.id,this.$storage.username=e.data.data.username,e.isModal===!0&&this.setLoggedInAccounts([{id:e.data.data.id,username:e.data.data.username,refreshToken:e.data.refreshToken,photo:e.data.data.photo}])},async refreshTokenAction(e){const[t,n]=await _(u.refreshToken({id:e.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(t&&t.response&&t.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();n&&n.data?this.setToken(n.data.token):console.error("Invalid response setToken")},async login(e){const[t,n]=await _(u.login(e,this.$storage));if(t)return this.errorHandler(t);if(n.data.success)return this.display==="npm"&&(this.loginSetup({...n,isModal:e.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...n,isModal:e.isModal}),!0},loginSuccess(e){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(t=>this.redirect_uri.startsWith(t)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+e.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(t=>{var n;(n=window.parent)==null||n.postMessage({code:e.data.auth_code,state:this.$route.query.state},t)}):this.display==="npm"&&(c.$emit("ssoEvent",{name:"setLoading",data:!0}),c.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:e.data.data.username}}),e.isModal&&(c.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+e.data.data.username+"#edit"))},async register(e){const[t,n]=await _(u.register(e,this.$storage));return t?this.errorHandler(t):n},async verify(e){const[t,n]=await _(u.verify(e,this.$storage));return t?this.errorHandler(t):n},async reset(e){const[t,n]=await _(u.sendResetEmail(e,this.$storage));if(t)return this.errorHandler(t);n.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(e){const[t,n]=await _(u.exchangeAuthCode(e,this.storage));if(t)return this.errorHandler(t);await this.loginSetup(n),await this.getLoggedInAccounts(),this.loginSuccess(n)},async changePassword(e){const[t,n]=await _(u.changePassword(e,this.$storage));return t?this.errorHandler(t):n.data.success},async newPassword(e){const[t,n]=await _(y.newPassword(e,this.$storage));return t?this.errorHandler(t):n.data.success},async deleteAccount(e){const[t,n]=await _(y.deleteAccount(e,this.$storage));return t?this.errorHandler(t):n.data.success},async registerDevice(){const e=await L.Device.getId(),t=await L.Device.getInfo();let n={device_id:e.uuid,platform:t.platform,device_info:{model:t.model,manufacturer:t.manufacturer,operatingSystem:t.operatingSystem,osVersion:t.osVersion,isVirtual:t.isVirtual,webViewVersion:t.webViewVersion}};const[o,i]=await _(x.registerDevice(n,this.$storage));return o?this.errorHandler(o):i},async addFcmToken(e){const[t,n]=await _(x.addFcmToken(e,this.$storage));return t?this.errorHandler(t):n},async acceptCompanyInvitation(e){const[t,n]=await _(N.acceptCompanyInvitation(e,this.$storage));return t?this.errorHandler(t):n},async logout(e=!0){e&&u.logout({token:this.refreshToken},this.$storage),this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId="",this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(t=>{this.loggedInAccounts[t].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[t].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[t].id),this.$storage.username=t,this.$storage.UserId=this.loggedInAccounts[t].id,this.getLoggedInAccounts(),this.$router.push("/"+t)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(e){const[t,n]=await _(N.getBySSOEmail(e.email,this.$storage));if(t)return this.errorHandler(t);if(n.data.success)return n.data},async getLoggedInAccounts(){const e=this.getRefreshTokens(),[t,n]=await _(u.getLoggedInAccounts({refreshTokens:e},this.$storage));if(t)return this.errorHandler(t);n.data.success&&this.setLoggedInAccounts(n.data.accounts)},async loginUsingQR(e){const[t,n]=await _(y.loginUsingQR(e,this.$storage));return t?this.errorHandler(t):n.data.success},setLoggedInAccounts(e){this.loggedInAccounts={},e.forEach(t=>{this.loggedInAccounts[t.username]=t}),c.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId(e){this.loggedInUserId=e},setUser(e){this.ssoUser=e,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=e.ssoLang)},getRefreshTokens(){return this.$storage.refreshTokens.split(",")},setRefreshToken(e){let t=this.getRefreshTokens();e&&!t.includes(e)?t.unshift(e):t=t.filter(n=>n!==this.refreshToken),t.length>=1?this.refreshToken=t[0]:this.refreshToken=e,this.$storage.refreshTokens=t.join(","),c.$emit("ssoEvent",{name:"setRefreshToken",data:e})},setToken(e){this.$storage.token=e,this.token=e,c.$emit("ssoEvent",{name:"setToken",data:e})},setUserID(e){this.$storage.UserId=e},updateLang(e){this.appLanguage=e}},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&(this.redirect_uri=this.$route.query.redirect_uri),this.$route.query.display&&(this.display=this.$route.query.display),this.$route.query.state&&(this.state=this.$route.query.state),this.$route.query.response_type&&(this.response_type=this.$route.query.response_type),this.$route.query.realm&&(this.$storage.realm=this.$route.query.realm),this.$route.query.qrLogin&&this.changeLoginToQr()},deep:!0}}},k=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},he={name:"AuthWelcome",mixins:[m],data(){return{loading:!0}},async mounted(){let e=document.getElementById("tapniVideo");e.addEventListener("canplay",function(){document.body.contains(e)&&e.play().catch(t=>{console.log("Play was interrupted:",t)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):c.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),c.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},H=e=>(a.pushScopeId("data-v-c5cb659c"),e=e(),a.popScopeId(),e),fe={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ke=["autoplay"],be=[H(()=>a.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],ye={class:"bold full-top no-bottom center-text"},ve={class:"full-bottom half-top center-text color-black font-16"},we={class:"page-login-links center-text"},ze=H(()=>a.createElementVNode("div",{class:"clear"},null,-1)),Se={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Le=[a.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a>',3)];function Ee(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("div",fe,[a.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:e.isNative},be,8,ke),a.createElementVNode("h1",ye,a.toDisplayString(e.ssoLang[this.appLanguage].welcome),1),a.createElementVNode("p",ve,a.toDisplayString(e.ssoLang[this.appLanguage].welcome_p1),1),a.createCommentVNode("",!0),a.createCommentVNode("",!0),a.createVNode(l,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(e.ssoLang[this.appLanguage].create_account),1)]),_:1}),a.createElementVNode("div",we,[a.createVNode(l,{to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].already_registered)+"? ",1),a.createElementVNode("b",null,a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),ze]),this.isNative?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Se,Le))])}const F=k(he,[["render",Ee],["__scopeId","data-v-c5cb659c"]]),Q={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.google_login)&&!this.isModal)??!0}},mounted(){B.GoogleAuth.initialize()},methods:{async googleLogin(){var n;this.googleLoad=!0;let[e,t]=await _(B.GoogleAuth.signIn());if(e)return this.googleLoad=!1;if(this.referral&&(t.ref=this.referral),t.authentication&&(t.authentication.accessToken||t.authentication.idToken)){this.referral&&(t.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(u.googleSDK(t,this.$storage));if(o)return this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.loginSuccess({...i,isModal:!1}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(e,t,n){var o,i=e.getElementsByTagName(t)[0];e.getElementById(n)||(o=e.createElement(t),o.id=n,o.src="https://connect.facebook.net/en_US/sdk.js",i.parentNode.insertBefore(o,i))}(document,"script","facebook-jssdk");const G={data(){return{facebookLoad:!1}},computed:{fbLoginUrl(){return'https://www.facebook.com/v16.0/dialog/oauth?client_id=202577611527680&state={"oauth":"facebook"}&response_type=code%20granted_scopes&scope=email&redirect_uri=https://'+window.location.host+"/login"},displayFacebookLogin(){return!1}},methods:{async facebookLogin(){var o;this.facebookLoad=!0;const e=["email"],[t,n]=await _(se.FacebookLogin.login({permissions:e}));if(t)return this.facebookLoad=!1;if(this.referral&&(n.ref=this.referral),this.display==="popup"&&(n.response_type="code"),n&&n.accessToken){const[i,r]=await _(u.facebookSDK(n,this.$storage));if(i)return this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(i);if(r.data.success){if(this.display==="popup")return(o=window.parent)==null?void 0:o.postMessage({code:r.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(r),this.getLoggedInAccounts(),this.$router.push("/"+r.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}},W={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var n;this.appleLoad=!0;const[e,t]=await _(ce.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(e)return this.appleLoad=!1;if(t.response.tokenData=V.jwtDecode(t.response.identityToken),t&&t.response&&t.response.identityToken){this.referral&&(t.response.ref=this.referral),this.display==="popup"&&(t.response_type="code");const[o,i]=await _(u.appleSDK(t.response,this.$storage));if(o)return this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(o);if(i.data.success){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:i.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(i),this.getLoggedInAccounts(),this.loginSuccess({...i,isModal:!1}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var Ce={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const T={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(e,t={}){var i,r,l;e==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(t).length||(t=((r=(i=this.ssoCompany.sso)==null?void 0:i.azure)==null?void 0:r.sso)||{});const[n,o]=await _(le.MsAuthPlugin.login({clientId:e==="sso"?t.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:e==="sso"?t.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:Ce.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(n)return console.log("Error: "+JSON.stringify(n)),this.microsoftLoad=!1;if(this.referral&&(o.ref=this.referral),this.display==="popup"&&(o.response_type="code"),o&&(o.accessToken||o.idToken)){const[s,d]=await _(u.microsoftSDK(o,this.$storage));if(s)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(s);if(d.data.success){if(this.display==="popup")return(l=window.parent)==null?void 0:l.postMessage({code:d.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(d),this.getLoggedInAccounts(),this.loginSuccess({...d,isModal:!1}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){c.$emit("toggleSSOModal")}}},v={getFirstBrowserLanguage(){let e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"],n,o;if(Array.isArray(e.languages)){for(n=0;n<e.languages.length;n++)if(o=e.languages[n],o&&o.length)return o.slice(0,2)}for(n=0;n<t.length;n++)if(o=e[t[n]],o&&o.length)return o.slice(0,2);return null},compareLangKeys(){const e=Object.keys(M.default.state),t=Object.keys(q.default.state),n=Object.keys(D.default.state),o=Object.keys($.default.state),i=Object.keys(O.default.state),r=Object.keys(R.default.state),l=Object.keys(K.default.state),s=Object.keys(U.default.state);console.log("In en but not in de",e.filter(d=>!t.includes(d))),console.log("In de but not in en",t.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in es",e.filter(d=>!n.includes(d))),console.log("In es but not in en",n.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in kr",e.filter(d=>!o.includes(d))),console.log("In kr but not in en",o.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in it",e.filter(d=>!i.includes(d))),console.log("In it but not in en",i.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in fr",e.filter(d=>!r.includes(d))),console.log("In fr but not in en",r.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in sr",e.filter(d=>!l.includes(d))),console.log("In sr but not in en",l.filter(d=>!e.includes(d))),console.log(),console.log("In en but not in tr",e.filter(d=>!s.includes(d))),console.log("In tr but not in en",s.filter(d=>!e.includes(d))),console.log()},base64ImageToBlob(e){const t=e.split(";base64,"),n=t[0].split(":")[1],o=window.atob(t[1]),i=new Uint8Array(o.length);for(let r=0;r<o.length;++r)i[r]=o.charCodeAt(r);return new Blob([i],{type:n})},blobToBase64(e){const t=new FileReader;return t.readAsDataURL(e),new Promise(n=>{t.onloadend=()=>{n(t.result)}})},base64toFile(e,t){for(var n=e.split(","),o=n[0].match(/:(.*?);/)[1],i=atob(n[1]),r=i.length,l=new Uint8Array(r);r--;)l[r]=i.charCodeAt(r);return new File([l],t,{type:o})},fileToBase64(e){new Promise((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>t(o.result),o.onerror=i=>n(i)})},getUTMParams(e,t){let n={};return e.utm_source&&(n.utm_source=e.utm_source),e.utm_medium&&(n.utm_medium=e.utm_medium),e.utm_campaign&&(n.utm_campaign=e.utm_campaign),e.utm_term&&(n.utm_term=e.utm_term),e.utm_content&&(n.utm_content=e.utm_content),n},cropCardScan(e,t){const n=new window.Image,o=document.createElement("canvas"),i=o.getContext("2d");n.src="data:image/jpeg;base64,"+e,n.onload=()=>{const r=n.width,l=n.width/1.65,s=0,d=n.height/2-l/2,f=r,w=l;o.width=f,o.height=w,i.drawImage(n,s,d,r,l,0,0,f,w);const re=o.toDataURL();return t(re),re}},generateRandomString(e){let t=new Uint32Array(e);return window.crypto.getRandomValues(t),Array.from(t,n=>("0"+n.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(e){const n=new TextEncoder().encode(e),o=await window.crypto.subtle.digest("SHA-256",n);return btoa(String.fromCharCode.apply(null,new Uint8Array(o))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(e,t,n){let i=new TextEncoder().encode(n,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:t},e,i)},async decryptAES(e,t,n){try{const o=d=>Uint8Array.from(atob(d),f=>f.charCodeAt(0));n=n.replace(/ /g,"+");const i=new TextEncoder,r=new TextDecoder;e=i.encode(e),t=i.encode(t),n=o(n,storage);const l=await window.crypto.subtle.importKey("raw",e,"AES-CBC",!0,["encrypt","decrypt"]);let s=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:t},l,n);return s=r.decode(s),s=s.replace(/ /g,"+"),s=atob(s),s}catch(o){console.log(o)}}},j={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(e){var i,r;let[t,n]=await _(I.post(e.domain+"/v1/token",new URLSearchParams({code:e.code,client_id:e.clientID,grant_type:"authorization_code",redirect_uri:this.isNative?"tapni://t.link/callback/okta":location.origin+"/callback/okta",code_verifier:localStorage.getItem("pkce_code_verifier")})));if(t)return this.errorHandler(t);localStorage.removeItem("pkce_code_verifier");let o={accessToken:(i=n.data)==null?void 0:i.access_token,domain:e.domain};if(this.display==="popup"&&(o.response_type="code"),[t,n]=await _(u.oktaSDK(o,this.$storage)),t)return this.oktaLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(t);if(n.data.success){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:n.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(n),this.getLoggedInAccounts(),this.$router.push("/"+n.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,c.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(e){const t=S.Capacitor.getPlatform()||"web";let n=btoa("domain="+e.domain+"&client_id="+e.clientID+"&platform="+t+"&rand="+v.generateRandomString(28)),o=v.generateRandomString(28);localStorage.setItem("pkce_code_verifier",o);let i=await v.pkceChallengeFromVerifier(o),r=e.domain+"/v1/authorize",l;this.isNative?l="tapni://t.link/callback/okta":l=location.origin+"/callback/okta";let s=r+"?response_type=code&client_id="+encodeURIComponent(e.clientID)+"&state="+encodeURIComponent(n)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(l)+"&code_challenge="+encodeURIComponent(i)+"&code_challenge_method=S256",d=this,f;window.addEventListener("message",async w=>{if(!this.allowedOrigins.includes(w.origin))return console.log("Origin is not allowed!");w.data.type==="okta"&&(f=w.data.code,await d.exchangeCode({domain:e.domain,code:f,clientID:e.clientID}))},{once:!0}),this.isNative?await E.Browser.open({url:s,presentationStyle:"popover"}):window.open(s,"popup","width=600,height=600")},async handleOktaRedirect(){let e=this.$route.query.code,t,n,o,i,r={type:"okta"};if(e&&(r.code=e),this.$route.query.state){t=this.$route.query.state,t=atob(t);const l=new URLSearchParams(t);n=l.get("client_id"),o=l.get("domain"),i=l.get("platform")}window.opener?(window.opener.postMessage(r,location.origin),window.close()):(this.isNative&&this.isIOS&&await E.Browser.close(),c.$emit("ssoEvent",{name:"setLoading",data:!0}),e&&n&&o&&await this.exchangeCode({code:e,clientID:n,domain:o,platform:i}),localStorage.removeItem("pkce_code_verifier"),c.$emit("ssoEvent",{name:"setLoading",data:!1}))}}},P={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(e){this.code_verifier=v.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await v.pkceChallengeFromVerifier(this.code_verifier);const t=S.Capacitor.getPlatform();let n=Buffer.from(`code_challenge=${this.code_challenge}&platform=${t}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");e=`${e}&RelayState=${n}`;let o=this;window.addEventListener("message",async i=>{var r;if(!this.allowedOrigins.includes(i.origin))return console.log("Origin is not allowed!");if(i.data.type==="saml"&&i.data.code){if(this.display==="popup")return(r=window.parent)==null?void 0:r.postMessage({code:i.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await o.exchangeAuthCode({code:i.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await E.Browser.open({url:e,presentationStyle:"popover"}):window.open(e,"popup","width=600,height=600")},async handleSamlRedirect(){var n;let e,t={type:"saml"};if(this.$route.query.code&&(t.code=this.$route.query.code),window.opener)window.opener.postMessage(t,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await E.Browser.close(),EventBus.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(e=this.$route.query.code),e){if(this.display==="popup")return(n=window.parent)==null?void 0:n.postMessage({code:e,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:e,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),EventBus.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Te={name:"AuthLogin",mixins:[Q,G,W,T,j,P,m,{data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await a.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e.length;let n="";const o=new Uint32Array(32);return window.crypto.getRandomValues(o),o.forEach(i=>{n+=e.charAt(i%t)}),n},refreshQrCode(){var e,t;this.qrCode&&((t=(e=document.getElementById("qrCodeContainer"))==null?void 0:e.childNodes[0])==null||t.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new de({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[e,t]=await _(N.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(e)return this.errorHandler(e);t.data.auth_code&&(this.display==="npm"&&(this.loginSetup({...t,isModal:this.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...t,isModal:this.isModal}),clearInterval(this.poolingInterval),clearInterval(this.qrCodeRefreshInterval))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await a.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}}],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var e,t;return(((t=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:t.create_account)&&!this.isModal)??!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),c.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let t={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?t.email=this.emailOrUsername:t.username=this.emailOrUsername;const[n,o]=await _(this.login(t));n&&console.error(n),this.submitted=!1,o===!0&&(this.emailOrUsername="",this.password="")},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(e){e.includes("@")&&(this.$storage.verifyEmail=e)},"$route.path":async function(e){if(e==="/login/callback/okta")return await this.handleOktaRedirect();if(e==="/login/callback/saml")return await this.handleSamlRedirect()}}},je=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Pe={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ae=a.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Ie={key:1},Ne={class:"page-login-field half-top"},Ve=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Be=["placeholder"],xe=a.createElementVNode("em",null,null,-1),Me={class:"page-login-field half-bottom"},qe=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),De=["type","placeholder"],Re={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Oe={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ke={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Ue={key:0},$e={key:1,class:"button--loading button__loader"},He=a.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Fe=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Qe={key:0},Ge={key:1,class:"button--loading button__loader"},We=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),Xe={key:0},Ye={key:1,class:"button--loading-black button__loader"},Ze=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),Je={key:0},ea={key:1,class:"button--loading-black button__loader"},aa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ta={key:0},na={key:1,class:"button--loading-black button__loader"},ia=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading-black button__loader"},sa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading-black button__loader"},da=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),_a={class:"close-text center-text half-top color-black"},ua=a.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:9,class:"page-login-links"},ka=a.createElementVNode("div",{class:"clear"},null,-1),ba={class:"forgot center-text pointer small-top"},ya=a.createElementVNode("br",null,null,-1),va=a.createElementVNode("div",{class:"clear"},null,-1);function wa(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[13]||(t[13]=a.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},je)):a.createCommentVNode("",!0),a.createElementVNode("h1",Pe,a.toDisplayString(this.ssoLang[this.appLanguage].login),1),Ae,r.displayFormLogin?(a.openBlock(),a.createElementBlock("span",Ie,[a.createElementVNode("div",Ne,[Ve,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>i.emailOrUsername=s),onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:e.ssoLang[this.appLanguage].email_username,required:""},null,40,Be),[[a.vModelText,i.emailOrUsername]]),xe]),a.createElementVNode("div",Me,[qe,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,De),[[a.vModelDynamic,i.password]]),a.createElementVNode("em",{onClick:t[4]||(t[4]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[a.withDirectives(a.createElementVNode("img",Re,null,512),[[a.vShow,!i.revealPassword]]),a.withDirectives(a.createElementVNode("img",Oe,null,512),[[a.vShow,i.revealPassword]])])]),a.createElementVNode("button",Ke,[i.submitted?(a.openBlock(),a.createElementBlock("span",$e)):(a.openBlock(),a.createElementBlock("span",Ue,a.toDisplayString(e.ssoLang[e.appLanguage].login),1))])])):a.createCommentVNode("",!0),He,e.displayAppleLogin?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:t[5]||(t[5]=(...s)=>e.appleLogin&&e.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Fe,e.appleLoad?(a.openBlock(),a.createElementBlock("span",Ge)):(a.openBlock(),a.createElementBlock("span",Qe,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Apple",1))])):a.createCommentVNode("",!0),e.displayGoogleLogin?(a.openBlock(),a.createElementBlock("a",{key:3,onClick:t[6]||(t[6]=(...s)=>e.googleLogin&&e.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[We,e.googleLoad?(a.openBlock(),a.createElementBlock("span",Ye)):(a.openBlock(),a.createElementBlock("span",Xe,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Google",1))])):a.createCommentVNode("",!0),e.displayFacebookLogin?(a.openBlock(),a.createElementBlock("a",{key:4,onClick:t[7]||(t[7]=(...s)=>e.facebookLogin&&e.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ze,e.facebookLoad?(a.openBlock(),a.createElementBlock("span",ea)):(a.openBlock(),a.createElementBlock("span",Je,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Facebook",1))])):a.createCommentVNode("",!0),e.displayMicrosoftSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:5,onClick:t[8]||(t[8]=(...s)=>e.microsoftLogin&&e.microsoftLogin(...s)),class:"button-center button button-90 google-button pointer"},[aa,e.microsoftLoad?(a.openBlock(),a.createElementBlock("span",na)):(a.openBlock(),a.createElementBlock("span",ta,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Outlook",1))])),e.displayMicrosoftSSOLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:6,onClick:t[9]||(t[9]=(...s)=>e.ssoLogin&&e.ssoLogin(...s)),class:"button-center button button-90 google-button pointer"},[ia,e.microsoftSSOLoad?(a.openBlock(),a.createElementBlock("span",ra)):(a.openBlock(),a.createElementBlock("span",oa,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1))])),e.displayMicrosoftSSOLogin?(a.openBlock(),a.createElementBlock("a",{key:7,onClick:t[10]||(t[10]=s=>e.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[sa,e.microsoftSSOLoad?(a.openBlock(),a.createElementBlock("span",ca,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1)):(a.openBlock(),a.createElementBlock("span",la))])):a.createCommentVNode("",!0),r.displayFormLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:8,onClick:t[11]||(t[11]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,a.createElementVNode("span",null,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Email",1)])),pa,a.createElementVNode("p",_a,[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].terms_by_signing_in)+" ",1),ua,a.createElementVNode("a",ma,a.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),a.createTextVNode(" "+a.toDisplayString(e.ssoLang[e.appLanguage].and)+" ",1),a.createElementVNode("a",ga,a.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ha,n.isModal?(a.openBlock(),a.createElementBlock("div",{key:10,class:"page-login-links",onClick:t[12]||(t[12]=(...s)=>r.createAccountModal&&r.createAccountModal(...s))},[a.createElementVNode("a",ba,[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].or)+" ",1),ya,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[e.appLanguage].create_new_account),1)]),va])):(a.openBlock(),a.createElementBlock("div",fa,[r.displayRegisterLogin?(a.openBlock(),a.createBlock(l,{key:0,class:"forgot float-right",to:"/register"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].create_account),1)]),_:1})):a.createCommentVNode("",!0),r.displayResetPasswordLogin?(a.openBlock(),a.createBlock(l,{key:1,class:"create float-left",to:"/reset"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[e.appLanguage].reset_password),1)]),_:1})):a.createCommentVNode("",!0),ka]))],36)}const X=k(Te,[["render",wa]]),za={name:"AuthRegister",mixins:[Q,G,W,T,m],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&c.$emit("ssoEvent",{name:"setLoading",data:!1}),this.invitationCode=this.$route.query.ic||"",this.$route.query.username&&(this.usernameRegister=!0,this.emailLogin=!0,this.username=this.$route.query.username),this.$route.query.ref?this.referral=this.$route.query.ref:this.$storage.referral&&(this.referral=this.$storage.referral))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let e={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},t=await this.register(e);this.submitted=!1,t.data&&t.data.success&&(t.data.message==="SUCCESS_REGISTER"?(this.isModal?c.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):t.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...t,isModal:e.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...t,isModal:e.isModal})))},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(e){this.$storage.verifyEmail=e},referral(e){this.$storage.referral=e}}},Sa=[a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],La={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ea={class:"half-bottom small-top center-text color-black"},Ca={key:0},Ta=a.createElementVNode("br",null,null,-1),ja={key:1},Pa={class:"page-login-field half-top"},Aa=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Ia=["placeholder"],Na=a.createElementVNode("em",null,null,-1),Va={class:"page-login-field half-top"},Ba=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),xa=["placeholder","disabled"],Ma=a.createElementVNode("em",null,null,-1),qa={class:"page-login-field half-top half-bottom"},Da=a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ra=["type","placeholder"],Oa={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ka={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Ua={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},$a={key:0},Ha={key:1,class:"button--loading button__loader"},Fa=a.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Qa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),Ga={key:0},Wa={key:1,class:"button--loading button__loader"},Xa=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),Ya={key:0},Za={key:1,class:"button--loading button__loader"},Ja=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),et={key:0},at={key:1,class:"button--loading button__loader"},tt=a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),nt=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),it={class:"close-text center-text half-top color-black"},ot=a.createElementVNode("br",null,null,-1),rt={class:"",href:"https://tapni.co/policies/terms-of-service"},st={href:"https://tapni.co/policies/privacy-policy"},ct=a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),lt={key:5,class:"page-login-links"},dt=a.createElementVNode("div",{class:"clear"},null,-1),pt={class:"forgot center-text pointer small-top"},_t=a.createElementVNode("br",null,null,-1),ut=a.createElementVNode("div",{class:"clear"},null,-1);function mt(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[12]||(t[12]=a.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),autocomplete:"on",style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Sa)):a.createCommentVNode("",!0),a.createElementVNode("h1",La,a.toDisplayString(e.ssoLang[this.appLanguage].register),1),a.createElementVNode("p",Ea,[i.usernameRegister?(a.openBlock(),a.createElementBlock("span",Ca,[a.createTextVNode(" t.link/"+a.toDisplayString(i.username)+" "+a.toDisplayString(e.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),Ta])):a.createCommentVNode("",!0)]),i.emailLogin?(a.openBlock(),a.createElementBlock("span",ja,[a.createElementVNode("div",Pa,[Aa,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Ia),[[a.vModelText,i.email]]),Na]),a.createElementVNode("div",Va,[Ba,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.username=s),onKeydown:t[4]||(t[4]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:e.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:i.usernameRegister,class:a.normalizeClass({"input-disabled":i.usernameRegister})},null,42,xa),[[a.vModelText,i.username]]),Ma]),a.createElementVNode("div",qa,[Da,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ra),[[a.vModelDynamic,i.password]]),a.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword=!i.revealPassword),class:"pointer"},[a.withDirectives(a.createElementVNode("img",Oa,null,512),[[a.vShow,!i.revealPassword]]),a.withDirectives(a.createElementVNode("img",Ka,null,512),[[a.vShow,i.revealPassword]])])]),a.createElementVNode("button",Ua,[i.submitted?(a.openBlock(),a.createElementBlock("span",Ha)):(a.openBlock(),a.createElementBlock("span",$a,a.toDisplayString(i.formButtonText),1))])])):a.createCommentVNode("",!0),Fa,e.displayAppleLogin?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:t[7]||(t[7]=(...s)=>e.appleLogin&&e.appleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Qa,e.appleLoad?(a.openBlock(),a.createElementBlock("span",Wa)):(a.openBlock(),a.createElementBlock("span",Ga,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):a.createCommentVNode("",!0),a.createElementVNode("a",{onClick:t[8]||(t[8]=(...s)=>e.googleLogin&&e.googleLogin(...s)),class:"button-center button button-90 google-button pointer"},[Xa,e.googleLoad?(a.openBlock(),a.createElementBlock("span",Za)):(a.openBlock(),a.createElementBlock("span",Ya,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),e.displayFacebookLogin?(a.openBlock(),a.createElementBlock("a",{key:3,onClick:t[9]||(t[9]=(...s)=>e.facebookLogin&&e.facebookLogin(...s)),class:"button-center button button-90 google-button pointer"},[Ja,e.facebookLoad?(a.openBlock(),a.createElementBlock("span",at)):(a.openBlock(),a.createElementBlock("span",et,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):a.createCommentVNode("",!0),i.emailLogin?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("a",{key:4,onClick:t[10]||(t[10]=s=>i.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[tt,a.createElementVNode("span",null,a.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),nt,a.createElementVNode("p",it,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].terms_by_registering)+" ",1),ot,a.createElementVNode("a",rt,a.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].and)+" ",1),a.createElementVNode("a",st,a.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ct,n.isModal?(a.openBlock(),a.createElementBlock("div",{key:6,class:"page-login-links",onClick:t[11]||(t[11]=(...s)=>r.loginAccountModal&&r.loginAccountModal(...s))},[a.createElementVNode("a",pt,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),_t,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].sign_in_with_new),1)]),ut])):(a.openBlock(),a.createElementBlock("div",lt,[a.createVNode(l,{class:"create float-right",to:"/verify"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),a.createVNode(l,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),dt]))],36)}const Y=k(za,[["render",mt]]),gt={name:"AuthVerify",mixins:[m],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route&&this.init()},methods:{init(){this.isLoggedIn?this.$router.push(this.home):(this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route.hash==="#reset"&&(this.action="reset"),this.$route.query.e&&(this.email=this.$route.query.e),this.$route.query.c&&(this.code=this.$route.query.c),c.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let e={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let t=await this.verify(e);this.submitted=!1,t&&t.data&&t.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",c.$emit("closeModal")),await this.loginSetup(t),this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+t.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){c.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){c.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(e){e&&(this.email=e)},"route.name"(e,t){!t&&e&&this.init()},"route.query":{handler(e){this.isEmpty(e)||this.init()},deep:!0}}},h=e=>(a.pushScopeId("data-v-af1531aa"),e=e(),a.popScopeId(),e),ht=[h(()=>a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],ft={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},kt=h(()=>a.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),bt={class:"page-login-field half-top"},yt=h(()=>a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),vt=["placeholder"],wt=h(()=>a.createElementVNode("em",null,null,-1)),zt={class:"page-login-field half-top"},St=h(()=>a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),Lt=["placeholder"],Et=h(()=>a.createElementVNode("em",null,null,-1)),Ct={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Tt={key:0,class:"uppercase"},jt={key:1,class:"button--loading button__loader"},Pt=h(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),At={class:"close-text center-text half-top color-black"},It=["innerHTML"],Nt=h(()=>a.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Vt=h(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Bt={key:1,class:"page-login-links"},xt=h(()=>a.createElementVNode("div",{class:"clear"},null,-1)),Mt={class:"forgot center-text pointer small-top"},qt=h(()=>a.createElementVNode("br",null,null,-1)),Dt=h(()=>a.createElementVNode("div",{class:"clear"},null,-1));function Rt(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return a.openBlock(),a.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:t[6]||(t[6]=a.withModifiers((...s)=>r.submit&&r.submit(...s),["prevent"])),style:a.normalizeStyle(n.isModal?"max-width: 500px;":"")},[n.isModal?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},ht)):a.createCommentVNode("",!0),a.createElementVNode("h1",ft,a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1),kt,a.createElementVNode("div",bt,[yt,a.withDirectives(a.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[1]||(t[1]=s=>i.email=s),onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,vt),[[a.vModelText,i.email]]),wt]),a.createElementVNode("div",zt,[St,a.withDirectives(a.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":t[3]||(t[3]=s=>i.code=s),onKeydown:t[4]||(t[4]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:e.ssoLang[this.appLanguage].code,required:""},null,40,Lt),[[a.vModelText,i.code]]),Et]),a.createElementVNode("button",Ct,[i.submitted?(a.openBlock(),a.createElementBlock("span",jt)):(a.openBlock(),a.createElementBlock("span",Tt,a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1))]),Pt,a.createElementVNode("p",At,[a.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].verify_account_p1},null,8,It),Nt]),Vt,n.isModal?(a.openBlock(),a.createElementBlock("div",{key:2,class:"page-login-links",onClick:t[5]||(t[5]=(...s)=>r.registerAccountModal&&r.registerAccountModal(...s))},[a.createElementVNode("a",Mt,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),qt,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].create_new_account),1)]),Dt])):(a.openBlock(),a.createElementBlock("div",Bt,[a.createVNode(l,{class:"create float-right",to:"/register"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].register),1)]),_:1}),a.createVNode(l,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),xt]))],36)}const Z=k(gt,[["render",Rt],["__scopeId","data-v-af1531aa"]]),Ot={name:"AuthReset",mixins:[m],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route.query.c&&(this.code=this.$route.query.c,this.passwordChange=!0),this.$route.query.e&&(this.email=this.$route.query.e),c.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let e={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(e),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let e={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},t=await this.changePassword(e);this.submitted=!1,t===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(e){this.$storage.verifyEmail=e}}},b=e=>(a.pushScopeId("data-v-4f85b89a"),e=e(),a.popScopeId(),e),Kt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Ut=b(()=>a.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),$t={class:"page-login-field half-top color-black"},Ht=b(()=>a.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ft=["placeholder"],Qt=b(()=>a.createElementVNode("em",null,null,-1)),Gt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Wt={key:0,class:"uppercase"},Xt={key:1,class:"button--loading button__loader"},Yt=b(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Zt={class:"close-text center-text half-top color-black"},Jt=["innerHTML"],en=["href"],an=b(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),tn={class:"page-login-links"},nn=b(()=>a.createElementVNode("div",{class:"clear"},null,-1)),on={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},rn={class:"half-bottom small-top center-text color-black"},sn={class:"page-login-field half-top"},cn=b(()=>a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),ln=["type","placeholder"],dn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},pn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},_n={class:"page-login-field half-top"},un=b(()=>a.createElementVNode("i",{style:{"padding-top":"15px"}},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),mn=["type","placeholder"],gn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},hn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},fn={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},kn={key:0,class:"uppercase"},bn={key:1,class:"button--loading button__loader"},yn=b(()=>a.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),vn={class:"close-text center-text half-top color-black"},wn=["innerHTML"],zn=["href"];function Sn(e,t,n,o,i,r){const l=a.resolveComponent("router-link");return i.passwordChange?(a.openBlock(),a.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:t[7]||(t[7]=a.withModifiers((...s)=>r.changePw&&r.changePw(...s),["prevent"]))},[a.createElementVNode("h3",on,a.toDisplayString(e.ssoLang[this.appLanguage].password_change),1),a.createElementVNode("p",rn,a.toDisplayString(e.ssoLang[this.appLanguage].password_new),1),a.createElementVNode("div",sn,[cn,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[3]||(t[3]=s=>i.password=s),type:i.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,required:""},null,8,ln),[[a.vModelDynamic,i.password]]),a.createElementVNode("em",{onClick:t[4]||(t[4]=s=>i.revealPassword=!i.revealPassword)},[a.withDirectives(a.createElementVNode("img",dn,null,512),[[a.vShow,!i.revealPassword]]),a.withDirectives(a.createElementVNode("img",pn,null,512),[[a.vShow,i.revealPassword]])])]),a.createElementVNode("div",_n,[un,a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[5]||(t[5]=s=>i.passwordRepeat=s),type:i.revealPassword2?"text":"password",placeholder:e.ssoLang[this.appLanguage].password_repeat,required:""},null,8,mn),[[a.vModelDynamic,i.passwordRepeat]]),a.createElementVNode("em",{onClick:t[6]||(t[6]=s=>i.revealPassword2=!i.revealPassword2)},[a.withDirectives(a.createElementVNode("img",gn,null,512),[[a.vShow,!i.revealPassword2]]),a.withDirectives(a.createElementVNode("img",hn,null,512),[[a.vShow,i.revealPassword2]])])]),a.createElementVNode("button",fn,[i.submitted?(a.openBlock(),a.createElementBlock("span",bn)):(a.openBlock(),a.createElementBlock("span",kn,a.toDisplayString(e.ssoLang[this.appLanguage].password_change),1))]),yn,a.createElementVNode("p",vn,[a.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p2},null,8,wn),a.createTextVNode(),a.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,zn)])],32)):(a.openBlock(),a.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:t[2]||(t[2]=a.withModifiers((...s)=>r.resetEmail&&r.resetEmail(...s),["prevent"])),autocomplete:"on"},[a.createElementVNode("h3",Kt,a.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1),Ut,a.createElementVNode("div",$t,[Ht,a.withDirectives(a.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":t[0]||(t[0]=s=>i.email=s),onKeydown:t[1]||(t[1]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,Ft),[[a.vModelText,i.email]]),Qt]),a.createElementVNode("button",Gt,[i.submitted?(a.openBlock(),a.createElementBlock("span",Xt)):(a.openBlock(),a.createElementBlock("span",Wt,a.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1))]),Yt,a.createElementVNode("p",Zt,[a.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p1},null,8,Jt),a.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,en)]),an,a.createElementVNode("div",tn,[a.createVNode(l,{class:"create float-right",to:"/verify"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),a.createVNode(l,{class:"forgot float-left",to:"/login"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),nn])],32))}const J=k(Ot,[["render",Sn],["__scopeId","data-v-4f85b89a"]]),Ln={name:"AuthCallback",mixins:[j,P,m],data(){return{}},async mounted(){if(this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let e=pe.sanitizeUrl(location.href);return e=e.replace("http","tapni"),e=e.replace("https","tapni"),window.open(e)}}},En={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Cn=a.createElementVNode("br",null,null,-1),Tn={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function jn(e,t,n,o,i,r){return a.openBlock(),a.createElementBlock("div",null,[(e.$route.query.platform==="android"||e.$route.query.platform==="ios")&&!e.isNative?(a.openBlock(),a.createElementBlock("h5",En,[a.createTextVNode(a.toDisplayString(e.ssoLang[this.appLanguage].you_will_be_redirected),1),Cn,a.createTextVNode(" "+a.toDisplayString(e.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),a.createElementVNode("span",{onClick:t[0]||(t[0]=(...l)=>r.inAppRedirect&&r.inAppRedirect(...l)),style:{color:"blue",cursor:"pointer"}},a.toDisplayString(e.ssoLang[this.appLanguage].click_here),1),a.createTextVNode(".")])):(a.openBlock(),a.createElementBlock("h4",Tn,a.toDisplayString(e.ssoLang[this.appLanguage].please_wait),1))])}const ee=k(Ln,[["render",jn]]),Pn={name:"ModalOverlay",mixins:[m],data(){return{toggle:!1}},mounted(){c.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),c.$on("openModalOverlay",()=>{this.toggle=!0}),c.$on("toggleLanguageModal",this.toggleModal),c.$on("toggleSSOModal",this.toggleModal),c.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(e=!0){e&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var e,t;!this.isLoggedIn&&((t=(e=this.user)==null?void 0:e.lead_form)!=null&&t.forceFilling)||c.$emit("closeModal")}}};function An(e,t,n,o,i,r){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":i.toggle}),onClick:t[0]||(t[0]=(...l)=>r.toggleEmit&&r.toggleEmit(...l))},null,2)}const ae=k(Pn,[["render",An],["__scopeId","data-v-a128c2fa"]]),In={name:"SSO",mixins:[T,j,P,m],data(){return{toggle:!1,email:"",loading:!1}},mounted(){c.$on("toggleSSOModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const e=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let t;if(!(!e||e.error))if(t=Object.keys(e.sso),t.length)t.length<=1?(t[0]==="azure"&&this.microsoftLogin("sso",e.sso.azure.sso),t[0]==="okta"&&this.oktaLogin(e.sso.okta.sso),t[0]==="saml"&&this.samlLogin(e.sso.saml.sso.loginUrl)):(this.forceClose(),c.$emit("toggleSSOPickModal",{sso:e.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Nn=[(e=>(a.pushScopeId("data-v-11f19a09"),e=e(),a.popScopeId(),e))(()=>a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Vn={class:"bold center-text color-black half-top half-bottom"},Bn=["placeholder"],xn={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},Mn={key:0},qn={key:1,class:"button--loading button__loader"};function Dn(e,t,n,o,i,r){return a.openBlock(),a.createElementBlock("form",{onSubmit:t[3]||(t[3]=a.withModifiers((...l)=>r.submit&&r.submit(...l),["prevent"])),class:a.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[a.createElementVNode("a",{onClick:t[0]||(t[0]=(...l)=>r.forceClose&&r.forceClose(...l)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Nn),a.createElementVNode("h3",Vn,a.toDisplayString(e.ssoLang[e.appLanguage].enter_company_email),1),a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=l=>i.email=l),placeholder:e.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:t[2]||(t[2]=a.withKeys(a.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Bn),[[a.vModelText,i.email]])]),a.createElementVNode("button",xn,[i.loading?(a.openBlock(),a.createElementBlock("span",qn)):(a.openBlock(),a.createElementBlock("span",Mn,a.toDisplayString(e.ssoLang[e.appLanguage].continue),1))])],34)}const te=k(In,[["render",Dn],["__scopeId","data-v-11f19a09"]]),Rn={name:"SSOPick",mixins:[T,j,P,m],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){c.$on("toggleSSOPickModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){c._events.toggleSSOPickModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(e){e==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),e==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),e==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(e){this.azureLoad=!1,this.oktaLoad=!1,this.samlLoad=!1,this.sso=null,this.email=null,e&&(this.sso=e.sso,this.email=e.email),this.toggle=!this.toggle}}},A=e=>(a.pushScopeId("data-v-4f821f65"),e=e(),a.popScopeId(),e),On=[A(()=>a.createElementVNode("i",{class:"font-17 color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Kn={class:"bold center-text color-black half-top half-bottom"},Un=A(()=>a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),$n={key:0},Hn={key:1,class:"button--loading button__loader"},Fn=A(()=>a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Qn={key:0},Gn={key:1,class:"button--loading button__loader"},Wn=A(()=>a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Xn={key:0},Yn={key:1,class:"button--loading button__loader"};function Zn(e,t,n,o,i,r){var l,s,d;return a.openBlock(),a.createElementBlock("form",{onSubmit:t[4]||(t[4]=a.withModifiers(()=>{},["prevent"])),class:a.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[a.createElementVNode("a",{onClick:t[0]||(t[0]=(...f)=>r.forceClose&&r.forceClose(...f)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},On),a.createElementVNode("h3",Kn,a.toDisplayString(e.ssoLang[e.appLanguage].select_sign_method),1),(l=i.sso)!=null&&l.azure?(a.openBlock(),a.createElementBlock("a",{key:0,onClick:t[1]||(t[1]=f=>r.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Un,i.azureLoad?(a.openBlock(),a.createElementBlock("span",Hn)):(a.openBlock(),a.createElementBlock("span",$n,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Azure",1))])):a.createCommentVNode("",!0),(s=i.sso)!=null&&s.okta?(a.openBlock(),a.createElementBlock("a",{key:1,onClick:t[2]||(t[2]=f=>r.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[Fn,i.oktaLoad?(a.openBlock(),a.createElementBlock("span",Gn)):(a.openBlock(),a.createElementBlock("span",Qn,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Okta",1))])):a.createCommentVNode("",!0),(d=i.sso)!=null&&d.saml?(a.openBlock(),a.createElementBlock("a",{key:2,onClick:t[3]||(t[3]=f=>r.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[Wn,i.samlLoad?(a.openBlock(),a.createElementBlock("span",Yn)):(a.openBlock(),a.createElementBlock("span",Xn,a.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SAML",1))])):a.createCommentVNode("",!0)],34)}const ne=k(Rn,[["render",Zn],["__scopeId","data-v-4f821f65"]]),Jn={name:"LinkIcon",mixins:[m],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.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:{}},ei=["src","alt"],ai=["src","alt"],ti=["src","alt"],ni=["src","alt"];function ii(e,t,n,o,i,r){var l,s;return a.openBlock(),a.createElementBlock("a",{class:a.normalizeClass(["disable-select",n.linkStyle+(n.disabled?" opacity-50":"")]),style:a.normalizeStyle((n.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[a.createElementVNode("span",{class:a.normalizeClass({"user-link-img":!0,"pulse pulse-border":n.pulse,"link-drag":n.editing}),style:a.normalizeStyle({...(l=n.customLinkStyle)==null?void 0:l.linkIcon})},[!n.data.custom_icon&&n.data.type!=="customlink"?(a.openBlock(),a.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+n.data.type+".png",class:"responsive-image",alt:n.data.text,onLoad:t[0]||(t[0]=d=>e.$emit("loaded")),onError:t[1]||(t[1]=d=>e.$emit("loaded"))},null,40,ei)):!n.data.custom_icon&&n.data.type==="customlink"&&n.linkAdding?(a.openBlock(),a.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:n.data.text,onLoad:t[2]||(t[2]=d=>e.$emit("loaded")),onError:t[3]||(t[3]=d=>e.$emit("loaded"))},null,40,ai)):!n.data.custom_icon&&n.data.type==="customlink"&&!n.linkAdding?(a.openBlock(),a.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:n.data.text,onLoad:t[4]||(t[4]=d=>e.$emit("loaded")),onError:t[5]||(t[5]=d=>e.$emit("loaded"))},null,40,ti)):(a.openBlock(),a.createElementBlock("img",{key:3,src:n.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:n.data.text,onLoad:t[6]||(t[6]=d=>e.$emit("loaded")),onError:t[7]||(t[7]=d=>e.$emit("loaded"))},null,40,ni))],6),a.createElementVNode("span",{class:"link-text link-drag color-black",style:a.normalizeStyle({color:(s=n.customLinkStyle)==null?void 0:s.color})},a.toDisplayString(r.linkText),5)],6)}const oi=k(Jn,[["render",ii]]),ri={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},si={name:"Language",mixins:[m],components:{LinkIcon:oi},data(){return{toggle:!1}},async mounted(){c.$on("toggleLanguageModal",this.toggleModal),c.$on("closeModal",()=>{this.toggle=!1});let e=this.isNative?await L.Device.getLanguageCode():v.getFirstBrowserLanguage();e&&ri.SUPPORTED_LANGUAGES.includes(e)&&this.updateLanguage(e)},beforeDestroy(){c._events.toggleLanguageModal.pop()},methods:{forceClose(){c.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(e){c.$emit("updateLang",e),c.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},ci=[(e=>(a.pushScopeId("data-v-34a6b7b2"),e=e(),a.popScopeId(),e))(()=>a.createElementVNode("i",{class:"font-17 fa color-black"},[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],li={class:"bold center-text color-black small-bottom"};function di(e,t,n,o,i,r){const l=a.resolveComponent("LinkIcon");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":i.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[a.createElementVNode("a",{onClick:t[0]||(t[0]=(...s)=>r.close&&r.close(...s)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},ci),a.createElementVNode("h3",li,a.toDisplayString(e.ssoLang[e.appLanguage].app_language),1),a.createVNode(l,{onClick:t[1]||(t[1]=s=>r.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:e.ssoLang[this.appLanguage].english},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[2]||(t[2]=s=>r.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:e.ssoLang[this.appLanguage].spanish},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[3]||(t[3]=s=>r.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:e.ssoLang[this.appLanguage].german},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[4]||(t[4]=s=>r.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:e.ssoLang[this.appLanguage].italian},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[5]||(t[5]=s=>r.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:e.ssoLang[this.appLanguage].french},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[6]||(t[6]=s=>r.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:e.ssoLang[this.appLanguage].korean},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[7]||(t[7]=s=>r.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:e.ssoLang[this.appLanguage].serbian},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"]),a.createVNode(l,{onClick:t[8]||(t[8]=s=>r.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:e.ssoLang[this.appLanguage].turkish},editing:!1,class:a.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const ie=k(si,[["render",di],["__scopeId","data-v-34a6b7b2"]]);var pi={VITE_APP_MODE:"npm",VITE_APP_APP_ROOT:"https://t.link",VITE_APP_API_ROOT:"https://api.tapni.co",VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY:"6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",VITE_APP_SSO_ID:"9cd47053-080a-4df8-8fd8-ca4389163fde",VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN:"https://auth.tapni.com",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _i={id:"ssoapp"},ui={key:0,href:"/",class:"header-logo"},mi=[a.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+y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W9hzIuWEOf4nom7SA+sOfYwibAcoA9yA9U9rcx6mtxdp/K7abQQ5pQ25uySVPhrpCw4wRgzmrrYdGB93l5AH2xsPSMmpoaGT06zjw/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)],gi={class:"lang-icon"},hi={class:"snackbar snackbar-boxed",id:"snackbar"},fi={class:"snack-body",id:"errorSnack"},ki={id:"errorMessage"},bi=[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],yi={class:"snack-body",id:"successSnack"},vi={id:"successMessage"},wi=[a.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],oe=Object.assign({name:"TapniAuth",mixins:[m],data(){return{isSetup:!1}},components:{Language:ie,SSOPick:ne,SSO:te,ModalOverlay:ae,AuthCallback:ee,AuthReset:J,AuthVerify:Z,AuthRegister:Y,AuthLogin:X,AuthWelcome:F},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),c.$on("ssoEvent",this.ssoOutgoingEvent),c.$on("ssoLogout",e=>this.logout(e)),c.$on("getLoggedInAccounts",e=>this.getLoggedInAccounts(e)),c.$on("refreshTokenAction",e=>this.refreshTokenAction(e))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const e=this.getRefreshTokens();this.setRefreshToken(e[0]),this.getLoggedInAccounts(),this.$emit("ssoLibraryReady")},ssoOutgoingEvent(e){this.$emit("ssoEvent",e)},ssoIncomingEvent(e){c.$emit(e.name,e.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){c.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(e){return document.addEventListener("DOMContentLoaded",function(){const t=document.createElement("script");t.src=`https://www.google.com/recaptcha/api.js?render=${pi.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(t)}),(t,n)=>(a.openBlock(),a.createElementBlock("div",_i,[t.display==="redirect"?(a.openBlock(),a.createElementBlock("a",ui,mi)):a.createCommentVNode("",!0),t.display==="redirect"?(a.openBlock(),a.createElementBlock("a",{key:1,onClick:n[0]||(n[0]=(...o)=>t.toggleLanguageModal&&t.toggleLanguageModal(...o)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[a.createElementVNode("span",gi,a.toDisplayString(t.appLanguage.toUpperCase()),1)])):a.createCommentVNode("",!0),a.createVNode(ae),a.createVNode(ie),a.createVNode(te),a.createVNode(ne),t.initialized&&t.renderView==="AuthWelcome"?(a.openBlock(),a.createBlock(F,{key:2})):t.initialized&&t.renderView==="AuthLogin"?(a.openBlock(),a.createBlock(X,{key:3,isModal:e.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthRegister"?(a.openBlock(),a.createBlock(Y,{key:4,isModal:e.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthVerify"?(a.openBlock(),a.createBlock(Z,{key:5,isModal:e.isModal},null,8,["isModal"])):t.initialized&&t.renderView==="AuthReset"?(a.openBlock(),a.createBlock(J,{key:6})):t.initialized&&t.renderView==="AuthCallback"?(a.openBlock(),a.createBlock(ee,{key:7})):(a.openBlock(),a.createBlock(a.unref(z.RouterView),{key:8})),a.createElementVNode("div",hi,[a.createElementVNode("p",fi,[a.createElementVNode("span",ki,a.toDisplayString(t.ssoLang[t.appLanguage].error),1),a.createElementVNode("a",{onClick:n[1]||(n[1]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},bi)]),a.createElementVNode("p",yi,[a.createElementVNode("span",vi,a.toDisplayString(t.ssoLang[t.appLanguage].success),1),a.createElementVNode("a",{onClick:n[2]||(n[2]=(...o)=>t.closeSnacks&&t.closeSnacks(...o)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},wi)])])]))}});return{TapniAuth:oe,install:e=>{e.component("TapniAuth",oe)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -33,7 +33,7 @@
33
33
  "@codetrix-studio/capacitor-google-auth": "^3.3.6",
34
34
  "@recognizebv/capacitor-plugin-msauth": "^3.5.1",
35
35
  "@tapni/capacitor-reactive-localstorage-vue3": "^0.0.14",
36
- "@tapni/styles": "^0.0.2",
36
+ "@tapni/styles": "^0.0.3",
37
37
  "await-to-js": "^3.0.0",
38
38
  "axios": "^1.6.5",
39
39
  "jwt-decode": "^4.0.0",
@@ -49,7 +49,7 @@ export default {
49
49
 
50
50
  if (this.display === 'popup') user.response_type = 'code';
51
51
 
52
- if (user.accessToken) {
52
+ if (user && user.accessToken) {
53
53
 
54
54
  const [err, response] = await to(AuthService.facebookSDK(user, this.$storage))
55
55
  if (err) {
@@ -3,7 +3,7 @@ import {Capacitor} from '@capacitor/core';
3
3
  export default {
4
4
  computed: {
5
5
  home() {
6
- if (this.$storage.token && this.$storage.username) {
6
+ if (this.$storage && this.$storage.token && this.$storage.username) {
7
7
  if (import.meta.env.VITE_APP_MODE === 'npm') return '/' + this.$storage.username
8
8
  if (import.meta.env.VITE_APP_MODE === 'redirect') return 'https://t.link/'
9
9
  } else return '/welcome'
@@ -46,8 +46,7 @@ export default {
46
46
  if (this.referral) user.ref = this.referral;
47
47
 
48
48
  // Code Login
49
- // if (this.display === "popup") user.response_type = "code";
50
- user.response_type = "code";
49
+ if (this.display === "popup") user.response_type = "code";
51
50
 
52
51
  if (user && (user.accessToken || user.idToken)) {
53
52
  const [err, response] = await to(