@tapni/auth 0.0.153 → 0.0.155

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.
@@ -0,0 +1,5 @@
1
+ import{W as j}from"./index-fqOl-PhG.js";var w={exports:{}};/*!
2
+ * $script.js JS loader & dependency manager
3
+ * https://github.com/ded/script.js
4
+ * (c) Dustin Diaz 2014 | License MIT
5
+ */(function(y){(function(i,p){y.exports?y.exports=p():this[i]=p()})("$script",function(){var i=document,p=i.getElementsByTagName("head")[0],I=!1,m="push",S="readyState",A="onreadystatechange",s={},o={},d={},f,v;function g(e,t){for(var n=0,u=e.length;n<u;++n)if(!t(e[n]))return I;return 1}function h(e,t){g(e,function(n){return t(n),1})}function l(e,t,n){e=e[m]?e:[e];var u=t&&t.call,r=u?t:n,W=u?e.join(""):t,N=e.length;function b(c){return c.call?c():s[c]}function _(){if(!--N){s[W]=1,r&&r();for(var c in o)g(c.split("|"),b)&&!h(o[c],b)&&(o[c]=[])}}return setTimeout(function(){h(e,function c(a,U){if(a===null)return _();if(!U&&!/^https?:\/\//.test(a)&&f&&(a=a.indexOf(".js")===-1?f+a+".js":f+a),d[a])return d[a]==2?_():setTimeout(function(){c(a,!0)},0);d[a]=1,x(a,_)})},0),l}function x(e,t){var n=i.createElement("script"),u;n.onload=n.onerror=n[A]=function(){n[S]&&!/^c|loade/.test(n[S])||u||(n.onload=n[A]=null,u=1,d[e]=2,t())},n.async=1,n.src=v?e+(e.indexOf("?")===-1?"?":"&")+v:e,p.insertBefore(n,p.lastChild)}return l.get=x,l.order=function(e,t,n){(function u(r){r=e.shift(),e.length?l(r,u):l(r,t,n)})()},l.path=function(e){f=e},l.urlArgs=function(e){v=e},l.ready=function(e,t,n){e=e[m]?e:[e];var u=[];return!h(e,function(r){s[r]||u[m](r)})&&g(e,function(r){return s[r]})?t():function(r){o[r]=o[r]||[],o[r][m](t),n&&n(u)}(e.join("|")),l},l.done=function(e){l([null],e)},l})})(w);var z=w.exports;class P extends j{constructor(){super({name:"SignInWithApple",platforms:["web"]}),this.appleScriptUrl="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",this.isAppleScriptLoaded=!1}async authorize(i){return new Promise((p,I)=>{i?this.loadSignInWithAppleJS().then(m=>{var S,A,s;this.isAppleScriptLoaded=m,this.isAppleScriptLoaded?(AppleID.auth.init({clientId:i.clientId,redirectURI:i.redirectURI,scope:(S=i.scopes)!==null&&S!==void 0?S:void 0,state:(A=i.state)!==null&&A!==void 0?A:void 0,nonce:(s=i.nonce)!==null&&s!==void 0?s:void 0,usePopup:!0}),AppleID.auth.signIn().then(o=>{var d,f,v,g,h;const l={response:{user:null,email:(d=o.user)===null||d===void 0?void 0:d.email,givenName:(v=(f=o.user)===null||f===void 0?void 0:f.name)===null||v===void 0?void 0:v.firstName,familyName:(h=(g=o.user)===null||g===void 0?void 0:g.name)===null||h===void 0?void 0:h.lastName,identityToken:o.authorization.id_token,authorizationCode:o.authorization.code}};p(l)}).catch(o=>{I(o)})):I("Unable to load Sign in with Apple JS framework.")}):I("No options were provided.")})}loadSignInWithAppleJS(){return new Promise(i=>{this.isAppleScriptLoaded?i(!0):typeof window!==void 0?z.get(this.appleScriptUrl,()=>i(!0)):i(!1)})}}export{P as SignInWithAppleWeb};
@@ -0,0 +1 @@
1
+ import{W as i}from"./index-fqOl-PhG.js";class u extends i{async initialize(e){const n={version:"v17.0"};return await this.loadScript(e.locale),FB.init(Object.assign(Object.assign({},n),e))}loadScript(e){if(typeof document>"u")return Promise.reject("document global not found");const n="fb";if(document.getElementById(n))return Promise.resolve();const r=document.getElementsByTagName("head")[0],s=document.createElement("script");return new Promise(o=>{s.onload=()=>o(),s.defer=!0,s.async=!0,s.id=n,s.src=`https://connect.facebook.net/${e??"en_US"}/sdk.js`,r.appendChild(s)})}async login(e){return new Promise((n,t)=>{FB.login(r=>{r.status==="connected"?n({accessToken:{token:r.authResponse.accessToken}}):t({accessToken:{token:null}})},{scope:e.permissions.join(",")})})}async logout(){return new Promise(e=>FB.logout(()=>e()))}async reauthorize(){return new Promise(e=>FB.reauthorize(n=>e(n)))}async getCurrentAccessToken(){return new Promise((e,n)=>{FB.getLoginStatus(t=>{if(t.status==="connected"){const r={accessToken:{applicationId:void 0,declinedPermissions:[],expires:void 0,isExpired:void 0,lastRefresh:void 0,permissions:[],token:t.authResponse.accessToken,userId:t.authResponse.userID}};e(r)}else n({accessToken:{token:null}})})})}async getProfile(e){const n=e.fields.join(",");return new Promise((t,r)=>{FB.api("/me",{fields:n},s=>{if(s.error){r(s.error.message);return}t(s)})})}async logEvent(){return Promise.resolve()}async setAutoLogAppEventsEnabled(){return Promise.resolve()}async setAdvertiserTrackingEnabled(){return Promise.resolve()}async setAdvertiserIDCollectionEnabled(){return Promise.resolve()}}export{u as FacebookLoginWeb};
@@ -0,0 +1 @@
1
+ import{W as o}from"./index-fqOl-PhG.js";class e extends o{constructor(){super(),this._lastWindow=null}async open(s){this._lastWindow=window.open(s.url,s.windowName||"_blank")}async close(){return new Promise((s,n)=>{this._lastWindow!=null?(this._lastWindow.close(),this._lastWindow=null,s()):n("No active window to close!")})}}const i=new e;export{i as Browser,e as BrowserWeb};
@@ -0,0 +1 @@
1
+ import{W as t}from"./index-fqOl-PhG.js";class s extends t{constructor(){super(),this.handleVisibilityChange=()=>{const e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}}export{s as AppWeb};
@@ -0,0 +1 @@
1
+ import{W as c}from"./index-fqOl-PhG.js";class g extends c{constructor(){super()}loadScript(){if(typeof document>"u")return;const e="gapi";if(document==null?void 0:document.getElementById(e))return;const n=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.defer=!0,t.async=!0,t.id=e,t.onload=this.platformJsLoaded.bind(this),t.src="https://apis.google.com/js/platform.js",n.appendChild(t)}initialize(e={clientId:"",scopes:[],grantOfflineAccess:!1}){var s,n;if(typeof window>"u")return;const t=(s=document.getElementsByName("google-signin-client_id")[0])===null||s===void 0?void 0:s.content,i=e.clientId||t||"";i||console.warn("GoogleAuthPlugin - clientId is empty"),this.options={clientId:i,grantOfflineAccess:(n=e.grantOfflineAccess)!==null&&n!==void 0?n:!1,scopes:e.scopes||[]},this.gapiLoaded=new Promise(o=>{window.gapiResolve=o,this.loadScript()}),this.addUserChangeListener()}platformJsLoaded(){gapi.load("auth2",()=>{const e={client_id:this.options.clientId,plugin_name:"CodetrixStudioCapacitorGoogleAuth"};this.options.scopes.length&&(e.scope=this.options.scopes.join(" ")),gapi.auth2.init(e),window.gapiResolve()})}async signIn(){return new Promise(async(e,s)=>{var n;try{let t;const i=(n=this.options.grantOfflineAccess)!==null&&n!==void 0?n:!1;i?t=(await gapi.auth2.getAuthInstance().grantOfflineAccess()).code:await gapi.auth2.getAuthInstance().signIn();const o=gapi.auth2.getAuthInstance().currentUser.get();i&&await o.reloadAuthResponse();const a=this.getUserFrom(o);a.serverAuthCode=t,e(a)}catch(t){s(t)}})}async refresh(){const e=await gapi.auth2.getAuthInstance().currentUser.get().reloadAuthResponse();return{accessToken:e.access_token,idToken:e.id_token,refreshToken:""}}async signOut(){return gapi.auth2.getAuthInstance().signOut()}async addUserChangeListener(){await this.gapiLoaded,gapi.auth2.getAuthInstance().currentUser.listen(e=>{this.notifyListeners("userChange",e.isSignedIn()?this.getUserFrom(e):null)})}getUserFrom(e){const s={},n=e.getBasicProfile();s.email=n.getEmail(),s.familyName=n.getFamilyName(),s.givenName=n.getGivenName(),s.id=n.getId(),s.imageUrl=n.getImageUrl(),s.name=n.getName();const t=e.getAuthResponse(!0);return s.authentication={accessToken:t.access_token,idToken:t.id_token,refreshToken:""},s}}export{g as GoogleAuthWeb};
@@ -0,0 +1 @@
1
+ import{W as w}from"./index-fqOl-PhG.js";class y extends w{async getId(){return{identifier:this.getUid()}}async getInfo(){if(typeof navigator>"u"||!navigator.userAgent)throw this.unavailable("Device API not available in this browser");const e=navigator.userAgent,i=this.parseUa(e);return{model:i.model,platform:"web",operatingSystem:i.operatingSystem,osVersion:i.osVersion,manufacturer:navigator.vendor,isVirtual:!1,webViewVersion:i.browserVersion}}async getBatteryInfo(){if(typeof navigator>"u"||!navigator.getBattery)throw this.unavailable("Device API not available in this browser");let e={};try{e=await navigator.getBattery()}catch{}return{batteryLevel:e.level,isCharging:e.charging}}async getLanguageCode(){return{value:navigator.language.split("-")[0].toLowerCase()}}async getLanguageTag(){return{value:navigator.language}}parseUa(e){const i={},r=e.indexOf("(")+1;let a=e.indexOf(") AppleWebKit");e.indexOf(") Gecko")!==-1&&(a=e.indexOf(") Gecko"));const s=e.substring(r,a);if(e.indexOf("Android")!==-1){const t=s.replace("; wv","").split("; ").pop();t&&(i.model=t.split(" Build")[0]),i.osVersion=s.split("; ")[1]}else if(i.model=s.split("; ")[0],typeof navigator<"u"&&navigator.oscpu)i.osVersion=navigator.oscpu;else if(e.indexOf("Windows")!==-1)i.osVersion=s;else{const t=s.split("; ").pop();if(t){const n=t.replace(" like Mac OS X","").split(" ");i.osVersion=n[n.length-1].replace(/_/g,".")}}/android/i.test(e)?i.operatingSystem="android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?i.operatingSystem="ios":/Win/.test(e)?i.operatingSystem="windows":/Mac/i.test(e)?i.operatingSystem="mac":i.operatingSystem="unknown";const l=!!window.ApplePaySession,x=!!window.chrome,p=/Firefox/.test(e),d=/Edg/.test(e),g=/FxiOS/.test(e),c=/CriOS/.test(e),f=/EdgiOS/.test(e);if(l||x&&!d||g||c||f){let t;g?t="FxiOS":c?t="CriOS":f?t="EdgiOS":l?t="Version":t="Chrome";const n=e.split(" ");for(const o of n)if(o.includes(t)){const v=o.split("/")[1];i.browserVersion=v}}else if(p||d){const o=e.split("").reverse().join("").split("/")[0].split("").reverse().join("");i.browserVersion=o}return i}getUid(){if(typeof window<"u"&&window.localStorage){let e=window.localStorage.getItem("_capuid");return e||(e=this.uuid4(),window.localStorage.setItem("_capuid",e),e)}return this.uuid4()}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const i=Math.random()*16|0;return(e==="x"?i:i&3|8).toString(16)})}}export{y as DeviceWeb};
@@ -0,0 +1 @@
1
+ import{W as p}from"./index-fqOl-PhG.js";class f extends p{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],n="_cap_",o=Object.keys(this.impl).filter(i=>i.indexOf(n)===0);for(const i of o){const r=i.substring(n.length),a=(e=this.impl.getItem(i))!==null&&e!==void 0?e:"",{value:l}=await this.get({key:r});typeof l=="string"?s.push(r):(await this.set({key:r,value:a}),t.push(r))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}export{f as PreferencesWeb};
@@ -0,0 +1,36 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta name="google-signin-client_id" content="977665455842-5d5ar2comte3muk65oaf4g5jrmcsvu1m.apps.googleusercontent.com">
5
+ <meta charset="utf-8">
6
+ <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
7
+ <meta name="format-detection" content="telephone=no">
8
+ <meta name="msapplication-tap-highlight" content="no">
9
+ <meta name="format-detection" content="telephone=no">
10
+ <link rel="icon" href="/favicon.ico" class="next-head"/>
11
+ <title>Tapni - Share everything with just a tap</title>
12
+ <meta name="description" content="Your new connecting experience. Tapni allows you to share all your socials and contact information in a smart, contactless, and sustainable way. One TAP is all it takes. Keep all your links in one place. Bring your business card to life. Impress anyone you meet. Connecting made effortless with just a simple tap!">
13
+ <!-- Open Graph / Facebook -->
14
+ <meta property="og:type" content="website">
15
+ <meta property="og:title" content="Tapni - Share with just a tap">
16
+ <meta property="og:description" content="Share everything in a smart, contactless,and sustainable way">
17
+ <meta property="og:image" content="https://cdn.tapni.co/images/banner-sticker.png">
18
+ <meta property="og:url" content="https://tapni.com">
19
+
20
+ <!-- Twitter -->
21
+ <meta property="twitter:url" content="https://tapni.com">
22
+ <meta property="twitter:card" content="summary_large_image">
23
+ <meta property="twitter:site" content="@tapni_co">
24
+ <meta property="twitter:title" content="Tapni - Share everything with just a tap">
25
+ <meta property="twitter:description" content="Your new connecting experience. Tapni allows you to share all your socials and contact information in a smart, contactless, and sustainable way. One TAP is all it takes. Keep all your links in one place. Bring your business card to life. Impress anyone you meet. Connecting made effortless with just a simple tap!">
26
+ <meta property="twitter:image" content="https://cdn.tapni.co/images/banner-sticker.png">
27
+
28
+ <link rel="apple-touch-icon" href="/icon.png">
29
+ <link rel="android-touch-icon" href="/icon.png" />
30
+ <script type="module" crossorigin src="/assets/index-fqOl-PhG.js"></script>
31
+ <link rel="stylesheet" crossorigin href="/assets/index-NeBZUPRp.css">
32
+ </head>
33
+ <body id="bodyId" class="lazy-scroll no-select">
34
+ <div id="app"></div>
35
+ </body>
36
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.153",
3
+ "version": "0.0.155",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -19,8 +19,7 @@
19
19
  "dev": "vite",
20
20
  "build": "vite build --mode standalone",
21
21
  "preview": "vite preview",
22
- "build-lib": "vite build --config=vite-lib.config.js",
23
- "publish": "npm publish"
22
+ "build-lib": "vite build --config=vite-lib.config.js"
24
23
  },
25
24
  "dependencies": {
26
25
  "@braintree/sanitize-url": "^7.0.0",
@@ -47,8 +46,9 @@
47
46
  "vuex": "^4.0.2"
48
47
  },
49
48
  "devDependencies": {
49
+ "@rollup/plugin-inject": "^5.0.5",
50
50
  "@vitejs/plugin-vue": "^4.5.2",
51
51
  "vite": "^5.0.10",
52
- "vite-plugin-node-polyfills": "^0.21.0"
52
+ "vite-plugin-node-polyfills": "^0.22.0"
53
53
  }
54
54
  }
package/src/App.vue CHANGED
@@ -1,8 +1,7 @@
1
1
  <script setup>
2
2
  import { RouterView } from 'vue-router'
3
3
  // add Buffer globally
4
- import { Buffer } from 'buffer';
5
- import OTP from "@/components/OTP.vue";
4
+ import { Buffer } from 'buffer/';
6
5
  window.Buffer = Buffer;
7
6
  document.addEventListener('DOMContentLoaded', function() {
8
7
  const recaptchaScript = document.createElement('script');
@@ -151,7 +150,7 @@ export default {
151
150
 
152
151
  EventBus.$on('ssoEvent', this.ssoOutgoingEvent)
153
152
  EventBus.$on('ssoLogout',(data) => this.logout(data.refreshToken))
154
- EventBus.$on('getLoggedInAccounts',(data) => this.getLoggedInAccounts(data))
153
+ EventBus.$on('getLoggedInAccounts',() => this.getLoggedInAccounts())
155
154
  EventBus.$on('refreshTokenAction',(data) => this.refreshTokenAction({...data, storage: this.$storex}))
156
155
  EventBus.$on('switchAccount',(data) => this.switchAccount(data))
157
156
  EventBus.$on('setToken',(data) => this.setToken(data))
@@ -167,9 +166,6 @@ export default {
167
166
  if (this.isSetup) return;
168
167
  this.isSetup = true;
169
168
 
170
- this.setToken(this.$storex.token);
171
- const refreshTokens = this.getRefreshTokens();
172
- this.setRefreshToken(refreshTokens[0]);
173
169
  await this.getLoggedInAccounts();
174
170
 
175
171
  // Let App know that the auth is ready
@@ -20,6 +20,8 @@ export default {
20
20
  'allowedOriginsAuth'
21
21
  ]),
22
22
  ...mapGetters([
23
+ 'accessToken',
24
+ 'refreshTokens',
23
25
  'isLoggedIn',
24
26
  'renderView',
25
27
  'appLanguage'
@@ -57,6 +59,7 @@ export default {
57
59
  'setDisplay',
58
60
  'setState',
59
61
  'setResponseType',
62
+ 'switchAccount'
60
63
  ])
61
64
  },
62
65
  watch: {
package/src/store/auth.js CHANGED
@@ -469,7 +469,7 @@ export default {
469
469
  return response.data;
470
470
  }
471
471
  },
472
- async getLoggedInAccounts({ commit, state, getters, dispatch }, refreshTokens) {
472
+ async getLoggedInAccounts({ getters, dispatch }) {
473
473
  if (getters.refreshTokens && getters.refreshTokens.length >= 1) {
474
474
  const [err, response] = await to(
475
475
  AuthService.getLoggedInAccounts({ refreshTokens: getters.refreshTokens })
@@ -494,10 +494,6 @@ export default {
494
494
  setLoggedInUserId({ commit }, id) {
495
495
  commit('setLoggedInUserId', id);
496
496
  },
497
- getRefreshTokens({ state }) {
498
- if (state.$storex && state.$storex.refreshTokens) return state.$storex.refreshTokens.split(',')
499
- else return [];
500
- },
501
497
  setRefreshToken({ commit }, token) {
502
498
  commit('setRefreshToken', token);
503
499
  },
@@ -545,8 +541,8 @@ export default {
545
541
  return !!state.$storex.token && state.$storex.token !== "" && state.$storex.token !== "null";
546
542
  },
547
543
  renderView: state => {
548
- if (state.display === "redirect") {
549
- return false;
544
+ if (state.display !== "npm") {
545
+ return '';
550
546
  } else return state.view;
551
547
  },
552
548
  appRealm: state => {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="page-login content-boxed content-boxed-padding center-text" style="margin-top: -1px; overflow: hidden; border: solid 0px #ffffff;">
3
3
  <br>
4
- <h1 class="bold full-top no-bottom center-text">{{ssoLang[appLanguage].welcome}}, {{account.name}}</h1>
4
+ <h1 class="bold full-top no-bottom center-text">{{ssoLang[appLanguage].welcome}}</h1>
5
5
  <p class="full-bottom half-top center-text color-black font-16">{{account.email}}</p>
6
6
 
7
7
  <div v-if="display !== 'npm' && false" class="full-top full-bottom">
@@ -117,7 +117,7 @@
117
117
 
118
118
  <div class="divider"></div>
119
119
 
120
- <div class="device" @click="logout">
120
+ <div class="device" @click="logoutAccount">
121
121
  <div class="left">
122
122
  <img
123
123
  src="https://cdn.tapni.co/icons/newLogout.svg"
@@ -179,8 +179,8 @@ export default {
179
179
  toggleLanguageModal () {
180
180
  EventBus.$emit('toggleSSOLanguageModal')
181
181
  },
182
- logout () {
183
- this.logout()
182
+ logoutAccount () {
183
+ this.logout({ refreshToken: this.refreshTokens[0], sendRequest: true })
184
184
  },
185
185
  }
186
186
  };
@@ -378,7 +378,7 @@ export default {
378
378
  }
379
379
  },
380
380
  close() {
381
- EventBus.$emit('ssoEvent', {name: 'toggleAddAccountModal', data: true})
381
+ EventBus.$emit('ssoEvent', {name: 'toggleAuthModal', data: true})
382
382
  },
383
383
  createAccountModal() {
384
384
  EventBus.$emit('ssoEvent', {name: 'toggleAddAccountModalRegister', data: {}})
@@ -1,58 +0,0 @@
1
- {
2
- "_install-UQQaBBxi.js": {
3
- "file": "install-UQQaBBxi.js",
4
- "dynamicImports": [
5
- "src/views/Account.vue",
6
- "src/views/QR.vue",
7
- "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
8
- "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
9
- "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
10
- "node_modules/@capacitor/preferences/dist/esm/web.js"
11
- ]
12
- },
13
- "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js": {
14
- "file": "web-NrPZl3qD.js",
15
- "src": "node_modules/@capacitor-community/apple-sign-in/dist/esm/web.js",
16
- "isDynamicEntry": true
17
- },
18
- "node_modules/@capacitor-community/facebook-login/dist/esm/web.js": {
19
- "file": "web-L3jORB19.js",
20
- "src": "node_modules/@capacitor-community/facebook-login/dist/esm/web.js",
21
- "isDynamicEntry": true
22
- },
23
- "node_modules/@capacitor/preferences/dist/esm/web.js": {
24
- "file": "web-AImUTDQQ.js",
25
- "src": "node_modules/@capacitor/preferences/dist/esm/web.js",
26
- "isDynamicEntry": true
27
- },
28
- "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js": {
29
- "file": "web-5VtGcKeU.js",
30
- "src": "node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js",
31
- "isDynamicEntry": true
32
- },
33
- "src/install.js": {
34
- "file": "TapniAuth.umd.js",
35
- "src": "src/install.js",
36
- "isEntry": true
37
- },
38
- "src/views/Account.vue": {
39
- "file": "Account-7Z8L-cWb.js",
40
- "src": "src/views/Account.vue",
41
- "isDynamicEntry": true,
42
- "imports": [
43
- "_install-UQQaBBxi.js"
44
- ]
45
- },
46
- "src/views/QR.vue": {
47
- "file": "QR-vhHo9pvK.js",
48
- "src": "src/views/QR.vue",
49
- "isDynamicEntry": true,
50
- "imports": [
51
- "_install-UQQaBBxi.js"
52
- ]
53
- },
54
- "style.css": {
55
- "file": "style.css",
56
- "src": "style.css"
57
- }
58
- }
@@ -1,111 +0,0 @@
1
- import { _ as l, A as d, E as g } from "./install-UQQaBBxi.js";
2
- import { openBlock as r, createElementBlock as p, createElementVNode as t, toDisplayString as i, createCommentVNode as c, pushScopeId as _, popScopeId as u } from "vue";
3
- var h = { 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 };
4
- const m = {
5
- mixins: [d],
6
- data() {
7
- return {
8
- expanded: !1,
9
- addAccountReady: !1,
10
- appVersion: h.APP_VERSION
11
- };
12
- },
13
- async mounted() {
14
- this.getAccountSettings();
15
- },
16
- methods: {
17
- continueTo(e) {
18
- console.log("continue to " + e);
19
- },
20
- addAccount() {
21
- this.$router.push("/login");
22
- },
23
- switchAccount(e) {
24
- console.log("switch", e);
25
- },
26
- toggleAccountSettingsModal() {
27
- this.$router.push("/mfa");
28
- },
29
- toggleLanguageModal() {
30
- g.$emit("toggleSSOLanguageModal");
31
- },
32
- logout() {
33
- this.logout();
34
- }
35
- }
36
- }, o = (e) => (_("data-v-99676a71"), e = e(), u(), e), v = {
37
- class: "page-login content-boxed content-boxed-padding center-text",
38
- style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
39
- }, f = /* @__PURE__ */ o(() => /* @__PURE__ */ t("br", null, null, -1)), A = { class: "bold full-top no-bottom center-text" }, E = { class: "full-bottom half-top center-text color-black font-16" };
40
- const L = { class: "container" }, P = { class: "settingsCard pointer left-text" }, b = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
41
- /* @__PURE__ */ t("img", {
42
- src: "https://cdn.tapni.co/icons/newSettings.svg",
43
- style: { width: "50px", "border-radius": "20px" }
44
- })
45
- ], -1)), S = { class: "middle" }, w = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
46
- /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
47
- ], -1)), O = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), V = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
48
- /* @__PURE__ */ t("img", {
49
- src: "https://cdn.tapni.co/icons/newPublicProfile.svg",
50
- style: { width: "50px", "border-radius": "20px" }
51
- })
52
- ], -1)), k = { class: "middle" }, x = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
53
- /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
54
- ], -1)), I = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "divider" }, null, -1)), T = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "left" }, [
55
- /* @__PURE__ */ t("img", {
56
- src: "https://cdn.tapni.co/icons/newLogout.svg",
57
- style: { width: "50px", "border-radius": "20px" }
58
- })
59
- ], -1)), N = { class: "middle" }, y = /* @__PURE__ */ o(() => /* @__PURE__ */ t("div", { class: "right" }, [
60
- /* @__PURE__ */ t("img", { src: "https://cdn.tapni.co/icons/newArrowRight.svg" })
61
- ], -1));
62
- function C(e, n, R, D, M, a) {
63
- return r(), p("div", v, [
64
- f,
65
- t("h1", A, i(e.ssoLang[e.appLanguage].welcome) + ", " + i(e.account.name), 1),
66
- t("p", E, i(e.account.email), 1),
67
- (e.display, c("", !0)),
68
- t("div", L, [
69
- c("", !0),
70
- t("div", P, [
71
- t("div", {
72
- class: "device",
73
- onClick: n[4] || (n[4] = (...s) => a.toggleAccountSettingsModal && a.toggleAccountSettingsModal(...s))
74
- }, [
75
- b,
76
- t("div", S, [
77
- t("h4", null, i(e.ssoLang[e.appLanguage].mfa), 1)
78
- ]),
79
- w
80
- ]),
81
- O,
82
- t("div", {
83
- class: "device",
84
- onClick: n[5] || (n[5] = (...s) => a.toggleLanguageModal && a.toggleLanguageModal(...s))
85
- }, [
86
- V,
87
- t("div", k, [
88
- t("h4", null, i(e.ssoLang[e.appLanguage].change_language), 1)
89
- ]),
90
- x
91
- ]),
92
- I,
93
- t("div", {
94
- class: "device",
95
- onClick: n[6] || (n[6] = (...s) => a.logout && a.logout(...s))
96
- }, [
97
- T,
98
- t("div", N, [
99
- t("h4", null, i(e.ssoLang[e.appLanguage].logout), 1)
100
- ]),
101
- y
102
- ]),
103
- c("", !0)
104
- ])
105
- ])
106
- ]);
107
- }
108
- const U = /* @__PURE__ */ l(m, [["render", C], ["__scopeId", "data-v-99676a71"]]);
109
- export {
110
- U as default
111
- };
@@ -1,41 +0,0 @@
1
- import { _ as s, A as a, Q as i } from "./install-UQQaBBxi.js";
2
- import { resolveComponent as l, openBlock as _, createElementBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
3
- const g = {
4
- name: "AuthQR",
5
- mixins: [a, i]
6
- }, h = { class: "page-login content-boxed content-boxed-padding" }, c = { style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "130px" } }, m = /* @__PURE__ */ n("br", null, null, -1), L = { class: "qrCodeLoginContainer center-text" }, b = /* @__PURE__ */ n("div", {
7
- id: "qrCodeContainer",
8
- class: "qrCodeRounded",
9
- style: { "max-width": "100%" }
10
- }, null, -1), f = /* @__PURE__ */ n("br", null, null, -1), y = /* @__PURE__ */ n("br", null, null, -1), C = { style: { margin: "0 auto", width: "85%", "text-align": "left" } }, v = { class: "center-text" }, k = /* @__PURE__ */ n("br", null, null, -1), q = /* @__PURE__ */ n("br", null, null, -1), w = /* @__PURE__ */ n("br", null, null, -1);
11
- function x(e, A, Q, R, $, N) {
12
- const t = l("router-link");
13
- return _(), r("div", h, [
14
- n("h5", c, o(e.ssoLang[e.appLanguage].use_tapni_on_the_web), 1),
15
- m,
16
- n("div", L, [
17
- b,
18
- f,
19
- y,
20
- n("div", C, [
21
- n("h2", v, o(e.ssoLang[e.appLanguage].login_by_scanning_qr_code), 1),
22
- k,
23
- n("h4", null, o(e.ssoLang[e.appLanguage].open_tapni_app_on_your_phone), 1),
24
- n("h4", null, o(e.ssoLang[e.appLanguage].go_to_settings_link_a_device), 1),
25
- n("h4", null, o(e.ssoLang[e.appLanguage].point_your_phone_at_this_qr_code), 1),
26
- q,
27
- w
28
- ]),
29
- d(t, { to: "/login" }, {
30
- default: u(() => [
31
- p(o(e.ssoLang[e.appLanguage].choose_other_login_methods), 1)
32
- ]),
33
- _: 1
34
- })
35
- ])
36
- ]);
37
- }
38
- const E = /* @__PURE__ */ s(g, [["render", x]]);
39
- export {
40
- E as default
41
- };
@@ -1,4 +0,0 @@
1
- import { i as f } from "./install-UQQaBBxi.js";
2
- export {
3
- f as default
4
- };