@tapni/auth 0.0.129 → 0.0.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
- "_install-iwBIAdhj.js": {
3
- "file": "install-iwBIAdhj.js",
2
+ "_install-U2Oup1Im.js": {
3
+ "file": "install-U2Oup1Im.js",
4
4
  "dynamicImports": [
5
5
  "src/views/Account.vue",
6
6
  "src/views/QR.vue",
@@ -30,19 +30,19 @@
30
30
  "isEntry": true
31
31
  },
32
32
  "src/views/Account.vue": {
33
- "file": "Account-pOLNqo87.js",
33
+ "file": "Account-7o_hss4i.js",
34
34
  "src": "src/views/Account.vue",
35
35
  "isDynamicEntry": true,
36
36
  "imports": [
37
- "_install-iwBIAdhj.js"
37
+ "_install-U2Oup1Im.js"
38
38
  ]
39
39
  },
40
40
  "src/views/QR.vue": {
41
- "file": "QR-0JD_Lekm.js",
41
+ "file": "QR-pMMYqleP.js",
42
42
  "src": "src/views/QR.vue",
43
43
  "isDynamicEntry": true,
44
44
  "imports": [
45
- "_install-iwBIAdhj.js"
45
+ "_install-U2Oup1Im.js"
46
46
  ]
47
47
  },
48
48
  "style.css": {
@@ -1,4 +1,4 @@
1
- import { _ as l, A as d, E as g } from "./install-iwBIAdhj.js";
1
+ import { _ as l, A as d, E as g } from "./install-U2Oup1Im.js";
2
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
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
4
  const m = {
@@ -1,4 +1,4 @@
1
- import { _ as s, A as a, Q as i } from "./install-iwBIAdhj.js";
1
+ import { _ as s, A as a, Q as i } from "./install-U2Oup1Im.js";
2
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
3
  const g = {
4
4
  name: "AuthQR",
@@ -1,4 +1,4 @@
1
- import { i as f } from "./install-iwBIAdhj.js";
1
+ import { i as f } from "./install-U2Oup1Im.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- (function(c,on){typeof exports=="object"&&typeof module<"u"?module.exports=on(require("vue"),require("vue-router"),require("buffer"),require("await-to-js"),require("@capacitor/core"),require("jwt-decode"),require("axios"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@capacitor/device"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","buffer","await-to-js","@capacitor/core","jwt-decode","axios","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@capacitor/device","@tapni/capacitor-reactive-localstorage-vue3"],on):(c=typeof globalThis<"u"?globalThis:c||self,c.TapniAuth=on(c.Vue,c.vueRouter,c.buffer$2,c.to,c.core,c.jwtDecode,c.axios,c.browser$1,c.QRCodeStyling,c.sanitizeUrl,c.device,c.ReactiveStorage))})(this,function(c,on,Wi,ue,nt,Eo,Mr,Xn,Co,Ji,Zn,Xi){"use strict";function Zi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var To={exports:{}},Ce=To.exports={},Ct,Tt;function Or(){throw new Error("setTimeout has not been defined")}function Lr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ct=setTimeout:Ct=Or}catch{Ct=Or}try{typeof clearTimeout=="function"?Tt=clearTimeout:Tt=Lr}catch{Tt=Lr}})();function So(n){if(Ct===setTimeout)return setTimeout(n,0);if((Ct===Or||!Ct)&&setTimeout)return Ct=setTimeout,setTimeout(n,0);try{return Ct(n,0)}catch{try{return Ct.call(null,n,0)}catch{return Ct.call(this,n,0)}}}function ea(n){if(Tt===clearTimeout)return clearTimeout(n);if((Tt===Lr||!Tt)&&clearTimeout)return Tt=clearTimeout,clearTimeout(n);try{return Tt(n)}catch{try{return Tt.call(null,n)}catch{return Tt.call(this,n)}}}var jt=[],wn=!1,an,er=-1;function ta(){!wn||!an||(wn=!1,an.length?jt=an.concat(jt):er=-1,jt.length&&Io())}function Io(){if(!wn){var n=So(ta);wn=!0;for(var e=jt.length;e;){for(an=jt,jt=[];++er<e;)an&&an[er].run();er=-1,e=jt.length}an=null,wn=!1,ea(n)}}Ce.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];jt.push(new Ao(n,e)),jt.length===1&&!wn&&So(Io)};function Ao(n,e){this.fun=n,this.array=e}Ao.prototype.run=function(){this.fun.apply(null,this.array)},Ce.title="browser",Ce.browser=!0,Ce.env={},Ce.argv=[],Ce.version="",Ce.versions={};function Ht(){}Ce.on=Ht,Ce.addListener=Ht,Ce.once=Ht,Ce.off=Ht,Ce.removeListener=Ht,Ce.removeAllListeners=Ht,Ce.emit=Ht,Ce.prependListener=Ht,Ce.prependOnceListener=Ht,Ce.listeners=function(n){return[]},Ce.binding=function(n){throw new Error("process.binding is not supported")},Ce.cwd=function(){return"/"},Ce.chdir=function(n){throw new Error("process.chdir is not supported")},Ce.umask=function(){return 0};var na=To.exports;const pe=Zi(na),zn=globalThis||void 0||self;function ra(){return Ro().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ro(){return typeof navigator<"u"&&typeof window<"u"?window:typeof zn<"u"?zn:{}}const oa=typeof Proxy=="function",ia="devtools-plugin:setup",aa="plugin:settings:set";let kn,xr;function sa(){var n;return kn!==void 0||(typeof window<"u"&&window.performance?(kn=!0,xr=window.performance):typeof zn<"u"&&(!((n=zn.perf_hooks)===null||n===void 0)&&n.performance)?(kn=!0,xr=zn.perf_hooks.performance):kn=!1),kn}function ca(){return sa()?xr.now():Date.now()}class la{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const a in e.settings){const s=e.settings[a];r[a]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const a=localStorage.getItem(o),s=JSON.parse(a);Object.assign(i,s)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}i=a},now(){return ca()}},t&&t.on(aa,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(h=>{this.targetQueue.push({method:s,args:l,resolve:h})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function da(n,e){const t=n,r=Ro(),o=ra(),i=oa&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(ia,n,e);else{const a=i?new la(t,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}var ua="store";function sn(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function No(n){return n!==null&&typeof n=="object"}function pa(n){return n&&typeof n.then=="function"}function gt(n,e){if(!n)throw new Error("[vuex] "+e)}function ha(n,e){return function(){return n(e)}}function Po(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var r=e.indexOf(n);r>-1&&e.splice(r,1)}}function Mo(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;tr(n,t,[],n._modules.root,!0),zr(n,t,e)}function zr(n,e,t){var r=n._state;n.getters={},n._makeLocalGettersCache=Object.create(null);var o=n._wrappedGetters,i={};sn(o,function(a,s){i[s]=ha(a,n),Object.defineProperty(n.getters,s,{get:function(){return i[s]()},enumerable:!0})}),n._state=c.reactive({data:e}),n.strict&&ya(n),r&&t&&n._withCommit(function(){r.data=null})}function tr(n,e,t,r,o){var i=!t.length,a=n._modules.getNamespace(t);if(r.namespaced&&(n._modulesNamespaceMap[a]&&pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+t.join("/")),n._modulesNamespaceMap[a]=r),!i&&!o){var s=Br(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){pe.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+t.join(".")+'"'),s[l]=r.state})}var h=r.context=fa(n,a,t);r.forEachMutation(function(d,g){var m=a+g;ma(n,m,d,h)}),r.forEachAction(function(d,g){var m=d.root?g:a+g,y=d.handler||d;ga(n,m,y,h)}),r.forEachGetter(function(d,g){var m=a+g;_a(n,m,d,h)}),r.forEachChild(function(d,g){tr(n,e,t.concat(g),d,o)})}function fa(n,e,t){var r=e==="",o={dispatch:r?n.dispatch:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._actions[g])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+g);return}return n.dispatch(g,h)},commit:r?n.commit:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._mutations[g])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+g);return}n.commit(g,h,d)}};return Object.defineProperties(o,{getters:{get:r?function(){return n.getters}:function(){return Oo(n,e)}},state:{get:function(){return Br(n.state,t)}}}),o}function Oo(n,e){if(!n._makeLocalGettersCache[e]){var t={},r=e.length;Object.keys(n.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(t,i,{get:function(){return n.getters[o]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function ma(n,e,t,r){var o=n._mutations[e]||(n._mutations[e]=[]);o.push(function(a){t.call(n,r.state,a)})}function ga(n,e,t,r){var o=n._actions[e]||(n._actions[e]=[]);o.push(function(a){var s=t.call(n,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:n.getters,rootState:n.state},a);return pa(s)||(s=Promise.resolve(s)),n._devtoolHook?s.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):s})}function _a(n,e,t,r){if(n._wrappedGetters[e]){pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}n._wrappedGetters[e]=function(i){return t(r.state,r.getters,i.state,i.getters)}}function ya(n){c.watch(function(){return n._state.data},function(){pe.env.NODE_ENV!=="production"&&gt(n._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Br(n,e){return e.reduce(function(t,r){return t[r]},n)}function nr(n,e,t){return No(n)&&n.type&&(t=e,e=n,n=n.type),pe.env.NODE_ENV!=="production"&&gt(typeof n=="string","expects string as the type, but found "+typeof n+"."),{type:n,payload:e,options:t}}var va="vuex bindings",Lo="vuex:mutations",Ur="vuex:actions",bn="vuex",wa=0;function ka(n,e){da({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[va]},function(t){t.addTimelineLayer({id:Lo,label:"Vuex Mutations",color:xo}),t.addTimelineLayer({id:Ur,label:"Vuex Actions",color:xo}),t.addInspector({id:bn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(r){if(r.app===n&&r.inspectorId===bn)if(r.filter){var o=[];Do(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Uo(e._modules.root,"")]}),t.on.getInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId;Oo(e,o),r.state=Ca(Sa(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),t.on.editInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),e._withCommit(function(){r.set(e._state.data,i,r.state.value)})}}),e.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state=o,t.notifyComponentUpdate(),t.sendInspectorTree(bn),t.sendInspectorState(bn),t.addTimelineEvent({layerId:Lo,event:{time:Date.now(),title:r.type,data:i}})}),e.subscribeAction({before:function(r,o){var i={};r.payload&&(i.payload=r.payload),r._id=wa++,r._time=Date.now(),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,o){var i={},a=Date.now()-r._time;i.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},r.payload&&(i.payload=r.payload),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var xo=8702998,ba=6710886,Ea=16777215,zo={label:"namespaced",textColor:Ea,backgroundColor:ba};function Bo(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function Uo(n,e){return{id:e||"root",label:Bo(e),tags:n.namespaced?[zo]:[],children:Object.keys(n._children).map(function(t){return Uo(n._children[t],e+t+"/")})}}function Do(n,e,t,r){r.includes(t)&&n.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[zo]:[]}),Object.keys(e._children).forEach(function(o){Do(n,e._children[o],t,r+o+"/")})}function Ca(n,e,t){e=t==="root"?e:e[t];var r=Object.keys(e),o={state:Object.keys(n.state).map(function(a){return{key:a,editable:!0,value:n.state[a]}})};if(r.length){var i=Ta(e);o.getters=Object.keys(i).map(function(a){return{key:a.endsWith("/")?Bo(a):a,editable:!1,value:Dr(function(){return i[a]})}})}return o}function Ta(n){var e={};return Object.keys(n).forEach(function(t){var r=t.split("/");if(r.length>1){var o=e,i=r.pop();r.forEach(function(a){o[a]||(o[a]={_custom:{value:{},display:a,tooltip:"Module",abstract:!0}}),o=o[a]._custom.value}),o[i]=Dr(function(){return n[t]})}else e[t]=Dr(function(){return n[t]})}),e}function Sa(n,e){var t=e.split("/").filter(function(r){return r});return t.reduce(function(r,o,i){var a=r[o];if(!a)throw new Error('Missing module "'+o+'" for path "'+e+'".');return i===t.length-1?a:a._children},e==="root"?n:n.root._children)}function Dr(n){try{return n()}catch(e){return e}}var _t=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},jo={namespaced:{configurable:!0}};jo.namespaced.get=function(){return!!this._rawModule.namespaced},_t.prototype.addChild=function(e,t){this._children[e]=t},_t.prototype.removeChild=function(e){delete this._children[e]},_t.prototype.getChild=function(e){return this._children[e]},_t.prototype.hasChild=function(e){return e in this._children},_t.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},_t.prototype.forEachChild=function(e){sn(this._children,e)},_t.prototype.forEachGetter=function(e){this._rawModule.getters&&sn(this._rawModule.getters,e)},_t.prototype.forEachAction=function(e){this._rawModule.actions&&sn(this._rawModule.actions,e)},_t.prototype.forEachMutation=function(e){this._rawModule.mutations&&sn(this._rawModule.mutations,e)},Object.defineProperties(_t.prototype,jo);var cn=function(e){this.register([],e,!1)};cn.prototype.get=function(e){return e.reduce(function(t,r){return t.getChild(r)},this.root)},cn.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(r,o){return t=t.getChild(o),r+(t.namespaced?o+"/":"")},"")},cn.prototype.update=function(e){Ho([],this.root,e)},cn.prototype.register=function(e,t,r){var o=this;r===void 0&&(r=!0),pe.env.NODE_ENV!=="production"&&Vo(e,t);var i=new _t(t,r);if(e.length===0)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&sn(t.modules,function(s,l){o.register(e.concat(l),s,r)})},cn.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],o=t.getChild(r);if(!o){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&t.removeChild(r)},cn.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return t?t.hasChild(r):!1};function Ho(n,e,t){if(pe.env.NODE_ENV!=="production"&&Vo(n,t),e.update(t),t.modules)for(var r in t.modules){if(!e.getChild(r)){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}Ho(n.concat(r),e.getChild(r),t.modules[r])}}var Fo={assert:function(n){return typeof n=="function"},expected:"function"},Ia={assert:function(n){return typeof n=="function"||typeof n=="object"&&typeof n.handler=="function"},expected:'function or object with "handler" function'},qo={getters:Fo,mutations:Fo,actions:Ia};function Vo(n,e){Object.keys(qo).forEach(function(t){if(e[t]){var r=qo[t];sn(e[t],function(o,i){gt(r.assert(o),Aa(n,t,i,o,r.expected))})}})}function Aa(n,e,t,r,o){var i=e+" should be "+o+' but "'+e+"."+t+'"';return n.length>0&&(i+=' in module "'+n.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}function Ra(n){return new We(n)}var We=function n(e){var t=this;e===void 0&&(e={}),pe.env.NODE_ENV!=="production"&&(gt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),gt(this instanceof n,"store must be called with the new operator."));var r=e.plugins;r===void 0&&(r=[]);var o=e.strict;o===void 0&&(o=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new cn(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var a=this,s=this,l=s.dispatch,h=s.commit;this.dispatch=function(m,y){return l.call(a,m,y)},this.commit=function(m,y,E){return h.call(a,m,y,E)},this.strict=o;var d=this._modules.root.state;tr(this,d,[],this._modules.root),zr(this,d),r.forEach(function(g){return g(t)})},jr={state:{configurable:!0}};We.prototype.install=function(e,t){e.provide(t||ua,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:pe.env.NODE_ENV!=="production"||!1;r&&ka(e,this)},jr.state.get=function(){return this._state.data},jr.state.set=function(n){pe.env.NODE_ENV!=="production"&&gt(!1,"use store.replaceState() to explicit replace store state.")},We.prototype.commit=function(e,t,r){var o=this,i=nr(e,t,r),a=i.type,s=i.payload,l=i.options,h={type:a,payload:s},d=this._mutations[a];if(!d){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){d.forEach(function(m){m(s)})}),this._subscribers.slice().forEach(function(g){return g(h,o.state)}),pe.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")},We.prototype.dispatch=function(e,t){var r=this,o=nr(e,t),i=o.type,a=o.payload,s={type:i,payload:a},l=this._actions[i];if(!l){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(s,r.state)})}catch(d){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var h=l.length>1?Promise.all(l.map(function(d){return d(a)})):l[0](a);return new Promise(function(d,g){h.then(function(m){try{r._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(s,r.state)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}d(m)},function(m){try{r._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(s,r.state,m)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}g(m)})})},We.prototype.subscribe=function(e,t){return Po(e,this._subscribers,t)},We.prototype.subscribeAction=function(e,t){var r=typeof e=="function"?{before:e}:e;return Po(r,this._actionSubscribers,t)},We.prototype.watch=function(e,t,r){var o=this;return pe.env.NODE_ENV!=="production"&&gt(typeof e=="function","store.watch only accepts a function."),c.watch(function(){return e(o.state,o.getters)},t,Object.assign({},r))},We.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},We.prototype.registerModule=function(e,t,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&(gt(Array.isArray(e),"module path must be a string or an Array."),gt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,t),tr(this,this.state,e,this._modules.get(e),r.preserveState),zr(this,this.state)},We.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&gt(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=Br(t.state,e.slice(0,-1));delete r[e[e.length-1]]}),Mo(this)},We.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&gt(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},We.prototype.hotUpdate=function(e){this._modules.update(e),Mo(this,!0)},We.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(We.prototype,jr);var Na=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){var s=this.$store.state,l=this.$store.getters;if(n){var h=ir(this.$store,"mapState",n);if(!h)return;s=h.context.state,l=h.context.getters}return typeof i=="function"?i.call(this,s,l):s[i]},t[o].vuex=!0}),t}),Pa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.commit;if(n){var d=ir(this.$store,"mapMutations",n);if(!d)return;h=d.context.commit}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),Ma=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;i=n+i,t[o]=function(){if(!(n&&!ir(this.$store,"mapGetters",n))){if(pe.env.NODE_ENV!=="production"&&!(i in this.$store.getters)){console.error("[vuex] unknown getter: "+i);return}return this.$store.getters[i]}},t[o].vuex=!0}),t}),Oa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.dispatch;if(n){var d=ir(this.$store,"mapActions",n);if(!d)return;h=d.context.dispatch}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),La=function(n){return{mapState:Na.bind(null,n),mapGetters:Ma.bind(null,n),mapMutations:Pa.bind(null,n),mapActions:Oa.bind(null,n)}};function rr(n){return Bn(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function Bn(n){return Array.isArray(n)||No(n)}function or(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function ir(n,e,t){var r=n._modulesNamespaceMap[t];return pe.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+e+"(): "+t),r}const ar=c.reactive(new Map),q={$on(n,e){let t=ar.get(n);t||(t=new Set,ar.set(n,t)),t.add(e)},$emit(n,...e){const t=ar.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=ar.get(n);t&&t.delete(e)}};c.readonly(q);const xa={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||nt.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||nt.Capacitor.getPlatform()==="ios"},isNative(){return nt.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}},{mapState:za,mapActions:Ba,mapGetters:Ua}=La("auth"),je={mixins:[xa],computed:{...za(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOrigins"]),...Ua(["isLoggedIn","renderView","appLanguage"])},methods:{...Ba(["setLoggedInAccounts","setLoggedInUserId","getRefreshTokens","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setUserID","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setResponseType"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.$storage&&this.setRealm(this.$route.query.realm)},deep:!0}}},Qe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Da={name:"AuthWelcome",mixins:[je],data(){return{loading:!0}},async mounted(){console.log("yoo");let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.log("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):q.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},Ko=n=>(c.pushScopeId("data-v-3d89d57a"),n=n(),c.popScopeId(),n),ja={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ha=["autoplay"],Fa=[Ko(()=>c.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],qa={class:"bold full-top no-bottom center-text"},Va={class:"full-bottom half-top center-text color-black font-16"},Ka={class:"page-login-links center-text"},Ga=Ko(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Qa={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},$a=[c.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a>',3)];function Ya(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",ja,[c.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},Fa,8,Ha),c.createElementVNode("h1",qa,c.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),c.createElementVNode("p",Va,c.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),c.createCommentVNode("",!0),c.createCommentVNode("",!0),c.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),c.createElementVNode("div",Ka,[c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),c.createElementVNode("b",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ga]),this.isNative?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",Qa,$a))])}const Hr=Qe(Da,[["render",Ya],["__scopeId","data-v-3d89d57a"]]),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Ja="0.0.129",sr={getMe(){return ae().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ae().put("/users",n)},newPassword(n){return ae().put("/users/new-password",n)},connect(n){return ae().post("/users/connect",n)},eventLog(n){return ae().post("/users/log",n)},deleteAccount(n){return ae().post("/users/profile/delete",n)},registerDevice(n){return ae().post("/users/device/register",n)},addFcmToken(n){return ae().post("/users/device/fcm",n)},loginUsingQR(n){return ae().post("/users/qr/login",n)}},Go={registerDevice(n){return ae().post("/devices/add",n)},addFcmToken(n){return ae().post("/devices/fcm/add",n)}},Fr={getBySSOEmail(n){return ae().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ae().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ae().post("/company/login/qr",n)}},Qo={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(c,on){typeof exports=="object"&&typeof module<"u"?module.exports=on(require("vue"),require("vue-router"),require("buffer"),require("await-to-js"),require("@capacitor/core"),require("jwt-decode"),require("axios"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@capacitor/device"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","buffer","await-to-js","@capacitor/core","jwt-decode","axios","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@capacitor/device","@tapni/capacitor-reactive-localstorage-vue3"],on):(c=typeof globalThis<"u"?globalThis:c||self,c.TapniAuth=on(c.Vue,c.vueRouter,c.buffer$2,c.to,c.core,c.jwtDecode,c.axios,c.browser$1,c.QRCodeStyling,c.sanitizeUrl,c.device,c.ReactiveStorage))})(this,function(c,on,Wi,ue,nt,Eo,Mr,Xn,Co,Ji,Zn,Xi){"use strict";function Zi(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var To={exports:{}},Ce=To.exports={},Ct,Tt;function Or(){throw new Error("setTimeout has not been defined")}function Lr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ct=setTimeout:Ct=Or}catch{Ct=Or}try{typeof clearTimeout=="function"?Tt=clearTimeout:Tt=Lr}catch{Tt=Lr}})();function So(n){if(Ct===setTimeout)return setTimeout(n,0);if((Ct===Or||!Ct)&&setTimeout)return Ct=setTimeout,setTimeout(n,0);try{return Ct(n,0)}catch{try{return Ct.call(null,n,0)}catch{return Ct.call(this,n,0)}}}function ea(n){if(Tt===clearTimeout)return clearTimeout(n);if((Tt===Lr||!Tt)&&clearTimeout)return Tt=clearTimeout,clearTimeout(n);try{return Tt(n)}catch{try{return Tt.call(null,n)}catch{return Tt.call(this,n)}}}var jt=[],wn=!1,an,er=-1;function ta(){!wn||!an||(wn=!1,an.length?jt=an.concat(jt):er=-1,jt.length&&Io())}function Io(){if(!wn){var n=So(ta);wn=!0;for(var e=jt.length;e;){for(an=jt,jt=[];++er<e;)an&&an[er].run();er=-1,e=jt.length}an=null,wn=!1,ea(n)}}Ce.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];jt.push(new Ao(n,e)),jt.length===1&&!wn&&So(Io)};function Ao(n,e){this.fun=n,this.array=e}Ao.prototype.run=function(){this.fun.apply(null,this.array)},Ce.title="browser",Ce.browser=!0,Ce.env={},Ce.argv=[],Ce.version="",Ce.versions={};function Ht(){}Ce.on=Ht,Ce.addListener=Ht,Ce.once=Ht,Ce.off=Ht,Ce.removeListener=Ht,Ce.removeAllListeners=Ht,Ce.emit=Ht,Ce.prependListener=Ht,Ce.prependOnceListener=Ht,Ce.listeners=function(n){return[]},Ce.binding=function(n){throw new Error("process.binding is not supported")},Ce.cwd=function(){return"/"},Ce.chdir=function(n){throw new Error("process.chdir is not supported")},Ce.umask=function(){return 0};var na=To.exports;const pe=Zi(na),zn=globalThis||void 0||self;function ra(){return Ro().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ro(){return typeof navigator<"u"&&typeof window<"u"?window:typeof zn<"u"?zn:{}}const oa=typeof Proxy=="function",ia="devtools-plugin:setup",aa="plugin:settings:set";let kn,xr;function sa(){var n;return kn!==void 0||(typeof window<"u"&&window.performance?(kn=!0,xr=window.performance):typeof zn<"u"&&(!((n=zn.perf_hooks)===null||n===void 0)&&n.performance)?(kn=!0,xr=zn.perf_hooks.performance):kn=!1),kn}function ca(){return sa()?xr.now():Date.now()}class la{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const r={};if(e.settings)for(const a in e.settings){const s=e.settings[a];r[a]=s.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},r);try{const a=localStorage.getItem(o),s=JSON.parse(a);Object.assign(i,s)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(o,JSON.stringify(a))}catch{}i=a},now(){return ca()}},t&&t.on(aa,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(h=>{this.targetQueue.push({method:s,args:l,resolve:h})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function da(n,e){const t=n,r=Ro(),o=ra(),i=oa&&t.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))o.emit(ia,n,e);else{const a=i?new la(t,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}var ua="store";function sn(n,e){Object.keys(n).forEach(function(t){return e(n[t],t)})}function No(n){return n!==null&&typeof n=="object"}function pa(n){return n&&typeof n.then=="function"}function gt(n,e){if(!n)throw new Error("[vuex] "+e)}function ha(n,e){return function(){return n(e)}}function Po(n,e,t){return e.indexOf(n)<0&&(t&&t.prepend?e.unshift(n):e.push(n)),function(){var r=e.indexOf(n);r>-1&&e.splice(r,1)}}function Mo(n,e){n._actions=Object.create(null),n._mutations=Object.create(null),n._wrappedGetters=Object.create(null),n._modulesNamespaceMap=Object.create(null);var t=n.state;tr(n,t,[],n._modules.root,!0),zr(n,t,e)}function zr(n,e,t){var r=n._state;n.getters={},n._makeLocalGettersCache=Object.create(null);var o=n._wrappedGetters,i={};sn(o,function(a,s){i[s]=ha(a,n),Object.defineProperty(n.getters,s,{get:function(){return i[s]()},enumerable:!0})}),n._state=c.reactive({data:e}),n.strict&&ya(n),r&&t&&n._withCommit(function(){r.data=null})}function tr(n,e,t,r,o){var i=!t.length,a=n._modules.getNamespace(t);if(r.namespaced&&(n._modulesNamespaceMap[a]&&pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+t.join("/")),n._modulesNamespaceMap[a]=r),!i&&!o){var s=Br(e,t.slice(0,-1)),l=t[t.length-1];n._withCommit(function(){pe.env.NODE_ENV!=="production"&&l in s&&console.warn('[vuex] state field "'+l+'" was overridden by a module with the same name at "'+t.join(".")+'"'),s[l]=r.state})}var h=r.context=fa(n,a,t);r.forEachMutation(function(d,g){var m=a+g;ma(n,m,d,h)}),r.forEachAction(function(d,g){var m=d.root?g:a+g,y=d.handler||d;ga(n,m,y,h)}),r.forEachGetter(function(d,g){var m=a+g;_a(n,m,d,h)}),r.forEachChild(function(d,g){tr(n,e,t.concat(g),d,o)})}function fa(n,e,t){var r=e==="",o={dispatch:r?n.dispatch:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._actions[g])){console.error("[vuex] unknown local action type: "+l.type+", global type: "+g);return}return n.dispatch(g,h)},commit:r?n.commit:function(i,a,s){var l=nr(i,a,s),h=l.payload,d=l.options,g=l.type;if((!d||!d.root)&&(g=e+g,pe.env.NODE_ENV!=="production"&&!n._mutations[g])){console.error("[vuex] unknown local mutation type: "+l.type+", global type: "+g);return}n.commit(g,h,d)}};return Object.defineProperties(o,{getters:{get:r?function(){return n.getters}:function(){return Oo(n,e)}},state:{get:function(){return Br(n.state,t)}}}),o}function Oo(n,e){if(!n._makeLocalGettersCache[e]){var t={},r=e.length;Object.keys(n.getters).forEach(function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(t,i,{get:function(){return n.getters[o]},enumerable:!0})}}),n._makeLocalGettersCache[e]=t}return n._makeLocalGettersCache[e]}function ma(n,e,t,r){var o=n._mutations[e]||(n._mutations[e]=[]);o.push(function(a){t.call(n,r.state,a)})}function ga(n,e,t,r){var o=n._actions[e]||(n._actions[e]=[]);o.push(function(a){var s=t.call(n,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:n.getters,rootState:n.state},a);return pa(s)||(s=Promise.resolve(s)),n._devtoolHook?s.catch(function(l){throw n._devtoolHook.emit("vuex:error",l),l}):s})}function _a(n,e,t,r){if(n._wrappedGetters[e]){pe.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+e);return}n._wrappedGetters[e]=function(i){return t(r.state,r.getters,i.state,i.getters)}}function ya(n){c.watch(function(){return n._state.data},function(){pe.env.NODE_ENV!=="production"&&gt(n._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Br(n,e){return e.reduce(function(t,r){return t[r]},n)}function nr(n,e,t){return No(n)&&n.type&&(t=e,e=n,n=n.type),pe.env.NODE_ENV!=="production"&&gt(typeof n=="string","expects string as the type, but found "+typeof n+"."),{type:n,payload:e,options:t}}var va="vuex bindings",Lo="vuex:mutations",Ur="vuex:actions",bn="vuex",wa=0;function ka(n,e){da({id:"org.vuejs.vuex",app:n,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[va]},function(t){t.addTimelineLayer({id:Lo,label:"Vuex Mutations",color:xo}),t.addTimelineLayer({id:Ur,label:"Vuex Actions",color:xo}),t.addInspector({id:bn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),t.on.getInspectorTree(function(r){if(r.app===n&&r.inspectorId===bn)if(r.filter){var o=[];Do(o,e._modules.root,r.filter,""),r.rootNodes=o}else r.rootNodes=[Uo(e._modules.root,"")]}),t.on.getInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId;Oo(e,o),r.state=Ca(Sa(e._modules,o),o==="root"?e.getters:e._makeLocalGettersCache,o)}}),t.on.editInspectorState(function(r){if(r.app===n&&r.inspectorId===bn){var o=r.nodeId,i=r.path;o!=="root"&&(i=o.split("/").filter(Boolean).concat(i)),e._withCommit(function(){r.set(e._state.data,i,r.state.value)})}}),e.subscribe(function(r,o){var i={};r.payload&&(i.payload=r.payload),i.state=o,t.notifyComponentUpdate(),t.sendInspectorTree(bn),t.sendInspectorState(bn),t.addTimelineEvent({layerId:Lo,event:{time:Date.now(),title:r.type,data:i}})}),e.subscribeAction({before:function(r,o){var i={};r.payload&&(i.payload=r.payload),r._id=wa++,r._time=Date.now(),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:i}})},after:function(r,o){var i={},a=Date.now()-r._time;i.duration={_custom:{type:"duration",display:a+"ms",tooltip:"Action duration",value:a}},r.payload&&(i.payload=r.payload),i.state=o,t.addTimelineEvent({layerId:Ur,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:i}})}})})}var xo=8702998,ba=6710886,Ea=16777215,zo={label:"namespaced",textColor:Ea,backgroundColor:ba};function Bo(n){return n&&n!=="root"?n.split("/").slice(-2,-1)[0]:"Root"}function Uo(n,e){return{id:e||"root",label:Bo(e),tags:n.namespaced?[zo]:[],children:Object.keys(n._children).map(function(t){return Uo(n._children[t],e+t+"/")})}}function Do(n,e,t,r){r.includes(t)&&n.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[zo]:[]}),Object.keys(e._children).forEach(function(o){Do(n,e._children[o],t,r+o+"/")})}function Ca(n,e,t){e=t==="root"?e:e[t];var r=Object.keys(e),o={state:Object.keys(n.state).map(function(a){return{key:a,editable:!0,value:n.state[a]}})};if(r.length){var i=Ta(e);o.getters=Object.keys(i).map(function(a){return{key:a.endsWith("/")?Bo(a):a,editable:!1,value:Dr(function(){return i[a]})}})}return o}function Ta(n){var e={};return Object.keys(n).forEach(function(t){var r=t.split("/");if(r.length>1){var o=e,i=r.pop();r.forEach(function(a){o[a]||(o[a]={_custom:{value:{},display:a,tooltip:"Module",abstract:!0}}),o=o[a]._custom.value}),o[i]=Dr(function(){return n[t]})}else e[t]=Dr(function(){return n[t]})}),e}function Sa(n,e){var t=e.split("/").filter(function(r){return r});return t.reduce(function(r,o,i){var a=r[o];if(!a)throw new Error('Missing module "'+o+'" for path "'+e+'".');return i===t.length-1?a:a._children},e==="root"?n:n.root._children)}function Dr(n){try{return n()}catch(e){return e}}var _t=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=(typeof r=="function"?r():r)||{}},jo={namespaced:{configurable:!0}};jo.namespaced.get=function(){return!!this._rawModule.namespaced},_t.prototype.addChild=function(e,t){this._children[e]=t},_t.prototype.removeChild=function(e){delete this._children[e]},_t.prototype.getChild=function(e){return this._children[e]},_t.prototype.hasChild=function(e){return e in this._children},_t.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},_t.prototype.forEachChild=function(e){sn(this._children,e)},_t.prototype.forEachGetter=function(e){this._rawModule.getters&&sn(this._rawModule.getters,e)},_t.prototype.forEachAction=function(e){this._rawModule.actions&&sn(this._rawModule.actions,e)},_t.prototype.forEachMutation=function(e){this._rawModule.mutations&&sn(this._rawModule.mutations,e)},Object.defineProperties(_t.prototype,jo);var cn=function(e){this.register([],e,!1)};cn.prototype.get=function(e){return e.reduce(function(t,r){return t.getChild(r)},this.root)},cn.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(r,o){return t=t.getChild(o),r+(t.namespaced?o+"/":"")},"")},cn.prototype.update=function(e){Ho([],this.root,e)},cn.prototype.register=function(e,t,r){var o=this;r===void 0&&(r=!0),pe.env.NODE_ENV!=="production"&&Vo(e,t);var i=new _t(t,r);if(e.length===0)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&sn(t.modules,function(s,l){o.register(e.concat(l),s,r)})},cn.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],o=t.getChild(r);if(!o){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+r+"', which is not registered");return}o.runtime&&t.removeChild(r)},cn.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return t?t.hasChild(r):!1};function Ho(n,e,t){if(pe.env.NODE_ENV!=="production"&&Vo(n,t),e.update(t),t.modules)for(var r in t.modules){if(!e.getChild(r)){pe.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+r+"' on hot reloading, manual reload is needed");return}Ho(n.concat(r),e.getChild(r),t.modules[r])}}var Fo={assert:function(n){return typeof n=="function"},expected:"function"},Ia={assert:function(n){return typeof n=="function"||typeof n=="object"&&typeof n.handler=="function"},expected:'function or object with "handler" function'},qo={getters:Fo,mutations:Fo,actions:Ia};function Vo(n,e){Object.keys(qo).forEach(function(t){if(e[t]){var r=qo[t];sn(e[t],function(o,i){gt(r.assert(o),Aa(n,t,i,o,r.expected))})}})}function Aa(n,e,t,r,o){var i=e+" should be "+o+' but "'+e+"."+t+'"';return n.length>0&&(i+=' in module "'+n.join(".")+'"'),i+=" is "+JSON.stringify(r)+".",i}function Ra(n){return new We(n)}var We=function n(e){var t=this;e===void 0&&(e={}),pe.env.NODE_ENV!=="production"&&(gt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),gt(this instanceof n,"store must be called with the new operator."));var r=e.plugins;r===void 0&&(r=[]);var o=e.strict;o===void 0&&(o=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new cn(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var a=this,s=this,l=s.dispatch,h=s.commit;this.dispatch=function(m,y){return l.call(a,m,y)},this.commit=function(m,y,E){return h.call(a,m,y,E)},this.strict=o;var d=this._modules.root.state;tr(this,d,[],this._modules.root),zr(this,d),r.forEach(function(g){return g(t)})},jr={state:{configurable:!0}};We.prototype.install=function(e,t){e.provide(t||ua,this),e.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:pe.env.NODE_ENV!=="production"||!1;r&&ka(e,this)},jr.state.get=function(){return this._state.data},jr.state.set=function(n){pe.env.NODE_ENV!=="production"&&gt(!1,"use store.replaceState() to explicit replace store state.")},We.prototype.commit=function(e,t,r){var o=this,i=nr(e,t,r),a=i.type,s=i.payload,l=i.options,h={type:a,payload:s},d=this._mutations[a];if(!d){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+a);return}this._withCommit(function(){d.forEach(function(m){m(s)})}),this._subscribers.slice().forEach(function(g){return g(h,o.state)}),pe.env.NODE_ENV!=="production"&&l&&l.silent&&console.warn("[vuex] mutation type: "+a+". Silent option has been removed. Use the filter functionality in the vue-devtools")},We.prototype.dispatch=function(e,t){var r=this,o=nr(e,t),i=o.type,a=o.payload,s={type:i,payload:a},l=this._actions[i];if(!l){pe.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(s,r.state)})}catch(d){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var h=l.length>1?Promise.all(l.map(function(d){return d(a)})):l[0](a);return new Promise(function(d,g){h.then(function(m){try{r._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(s,r.state)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}d(m)},function(m){try{r._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(s,r.state,m)})}catch(y){pe.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}g(m)})})},We.prototype.subscribe=function(e,t){return Po(e,this._subscribers,t)},We.prototype.subscribeAction=function(e,t){var r=typeof e=="function"?{before:e}:e;return Po(r,this._actionSubscribers,t)},We.prototype.watch=function(e,t,r){var o=this;return pe.env.NODE_ENV!=="production"&&gt(typeof e=="function","store.watch only accepts a function."),c.watch(function(){return e(o.state,o.getters)},t,Object.assign({},r))},We.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},We.prototype.registerModule=function(e,t,r){r===void 0&&(r={}),typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&(gt(Array.isArray(e),"module path must be a string or an Array."),gt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,t),tr(this,this.state,e,this._modules.get(e),r.preserveState),zr(this,this.state)},We.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&gt(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var r=Br(t.state,e.slice(0,-1));delete r[e[e.length-1]]}),Mo(this)},We.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),pe.env.NODE_ENV!=="production"&&gt(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},We.prototype.hotUpdate=function(e){this._modules.update(e),Mo(this,!0)},We.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(We.prototype,jr);var Na=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){var s=this.$store.state,l=this.$store.getters;if(n){var h=ir(this.$store,"mapState",n);if(!h)return;s=h.context.state,l=h.context.getters}return typeof i=="function"?i.call(this,s,l):s[i]},t[o].vuex=!0}),t}),Pa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.commit;if(n){var d=ir(this.$store,"mapMutations",n);if(!d)return;h=d.context.commit}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),Ma=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;i=n+i,t[o]=function(){if(!(n&&!ir(this.$store,"mapGetters",n))){if(pe.env.NODE_ENV!=="production"&&!(i in this.$store.getters)){console.error("[vuex] unknown getter: "+i);return}return this.$store.getters[i]}},t[o].vuex=!0}),t}),Oa=or(function(n,e){var t={};return pe.env.NODE_ENV!=="production"&&!Bn(e)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),rr(e).forEach(function(r){var o=r.key,i=r.val;t[o]=function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];var h=this.$store.dispatch;if(n){var d=ir(this.$store,"mapActions",n);if(!d)return;h=d.context.dispatch}return typeof i=="function"?i.apply(this,[h].concat(s)):h.apply(this.$store,[i].concat(s))}}),t}),La=function(n){return{mapState:Na.bind(null,n),mapGetters:Ma.bind(null,n),mapMutations:Pa.bind(null,n),mapActions:Oa.bind(null,n)}};function rr(n){return Bn(n)?Array.isArray(n)?n.map(function(e){return{key:e,val:e}}):Object.keys(n).map(function(e){return{key:e,val:n[e]}}):[]}function Bn(n){return Array.isArray(n)||No(n)}function or(n){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),n(e,t)}}function ir(n,e,t){var r=n._modulesNamespaceMap[t];return pe.env.NODE_ENV!=="production"&&!r&&console.error("[vuex] module namespace not found in "+e+"(): "+t),r}const ar=c.reactive(new Map),q={$on(n,e){let t=ar.get(n);t||(t=new Set,ar.set(n,t)),t.add(e)},$emit(n,...e){const t=ar.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=ar.get(n);t&&t.delete(e)}};c.readonly(q);const xa={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||nt.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||nt.Capacitor.getPlatform()==="ios"},isNative(){return nt.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}},{mapState:za,mapActions:Ba,mapGetters:Ua}=La("auth"),je={mixins:[xa],computed:{...za(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOrigins"]),...Ua(["isLoggedIn","renderView","appLanguage"])},methods:{...Ba(["setLoggedInAccounts","setLoggedInUserId","getRefreshTokens","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setUserID","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setResponseType"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.$storage&&this.setRealm(this.$route.query.realm)},deep:!0}}},Qe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},Da={name:"AuthWelcome",mixins:[je],data(){return{loading:!0}},async mounted(){console.log("yoo");let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.log("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):q.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},Ko=n=>(c.pushScopeId("data-v-3d89d57a"),n=n(),c.popScopeId(),n),ja={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ha=["autoplay"],Fa=[Ko(()=>c.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],qa={class:"bold full-top no-bottom center-text"},Va={class:"full-bottom half-top center-text color-black font-16"},Ka={class:"page-login-links center-text"},Ga=Ko(()=>c.createElementVNode("div",{class:"clear"},null,-1)),Qa={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},$a=[c.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-3d89d57a><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-3d89d57a></a>',3)];function Ya(n,e,t,r,o,i){const a=c.resolveComponent("router-link");return c.openBlock(),c.createElementBlock("div",ja,[c.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},Fa,8,Ha),c.createElementVNode("h1",qa,c.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),c.createElementVNode("p",Va,c.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),c.createCommentVNode("",!0),c.createCommentVNode("",!0),c.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),c.createElementVNode("div",Ka,[c.createVNode(a,{to:"/login"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),c.createElementVNode("b",null,c.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ga]),this.isNative?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",Qa,$a))])}const Hr=Qe(Da,[["render",Ya],["__scopeId","data-v-3d89d57a"]]),Wa=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Ja="0.0.130",sr={getMe(){return ae().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ae().put("/users",n)},newPassword(n){return ae().put("/users/new-password",n)},connect(n){return ae().post("/users/connect",n)},eventLog(n){return ae().post("/users/log",n)},deleteAccount(n){return ae().post("/users/profile/delete",n)},registerDevice(n){return ae().post("/users/device/register",n)},addFcmToken(n){return ae().post("/users/device/fcm",n)},loginUsingQR(n){return ae().post("/users/qr/login",n)}},Go={registerDevice(n){return ae().post("/devices/add",n)},addFcmToken(n){return ae().post("/devices/fcm/add",n)}},Fr={getBySSOEmail(n){return ae().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ae().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ae().post("/company/login/qr",n)}},Qo={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>
@@ -1186,7 +1186,7 @@ function Es(n, e, t, r, o, i) {
1186
1186
  const So = /* @__PURE__ */ _t(ps, [["render", Es], ["__scopeId", "data-v-3d89d57a"]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1187
1187
  __proto__: null,
1188
1188
  default: So
1189
- }, Symbol.toStringTag, { value: "Module" })), Ss = "0.0.129", yr = {
1189
+ }, Symbol.toStringTag, { value: "Module" })), Ss = "0.0.130", yr = {
1190
1190
  getMe() {
1191
1191
  return ce().get("/users/me");
1192
1192
  },
@@ -5327,7 +5327,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5327
5327
  choose_other_login_methods: "다른 로그인 방법 선택하기",
5328
5328
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
5329
5329
  }
5330
- }, Qo = () => Promise.resolve().then(() => Ts), As = () => Promise.resolve().then(() => Zl), Rs = () => Promise.resolve().then(() => Qu), Ps = () => Promise.resolve().then(() => Ap), Ms = () => import("./Account-pOLNqo87.js"), Ns = () => Promise.resolve().then(() => wd), Os = () => Promise.resolve().then(() => xp), Ls = () => import("./QR-0JD_Lekm.js"), xs = () => Promise.resolve().then(() => Kd), zs = [
5330
+ }, Qo = () => Promise.resolve().then(() => Ts), As = () => Promise.resolve().then(() => Zl), Rs = () => Promise.resolve().then(() => Qu), Ps = () => Promise.resolve().then(() => Ap), Ms = () => import("./Account-7o_hss4i.js"), Ns = () => Promise.resolve().then(() => wd), Os = () => Promise.resolve().then(() => xp), Ls = () => import("./QR-pMMYqleP.js"), xs = () => Promise.resolve().then(() => Kd), zs = [
5331
5331
  {
5332
5332
  path: "/welcome",
5333
5333
  name: "AuthWelcome",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.129",
3
+ "version": "0.0.130",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",