@tapni/auth 1.0.37 → 1.0.38

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-Cka3V66t.js": {
3
- "file": "install-Cka3V66t.js",
2
+ "_install-C4Lex_kN.js": {
3
+ "file": "install-C4Lex_kN.js",
4
4
  "name": "install",
5
5
  "dynamicImports": [
6
6
  "src/views/QR.vue",
@@ -38,48 +38,48 @@
38
38
  "isEntry": true
39
39
  },
40
40
  "src/views/Apps.vue": {
41
- "file": "Apps-DVN_XPTJ.js",
41
+ "file": "Apps-C4nFFTR3.js",
42
42
  "name": "Apps",
43
43
  "src": "src/views/Apps.vue",
44
44
  "isDynamicEntry": true,
45
45
  "imports": [
46
- "_install-Cka3V66t.js"
46
+ "_install-C4Lex_kN.js"
47
47
  ]
48
48
  },
49
49
  "src/views/Billing.vue": {
50
- "file": "Billing-Br-tdiyC.js",
50
+ "file": "Billing-Cx3P0KLS.js",
51
51
  "name": "Billing",
52
52
  "src": "src/views/Billing.vue",
53
53
  "isDynamicEntry": true,
54
54
  "imports": [
55
- "_install-Cka3V66t.js"
55
+ "_install-C4Lex_kN.js"
56
56
  ]
57
57
  },
58
58
  "src/views/CustomApp.vue": {
59
- "file": "CustomApp-CHcb9znC.js",
59
+ "file": "CustomApp-CPUfVF2K.js",
60
60
  "name": "CustomApp",
61
61
  "src": "src/views/CustomApp.vue",
62
62
  "isDynamicEntry": true,
63
63
  "imports": [
64
- "_install-Cka3V66t.js"
64
+ "_install-C4Lex_kN.js"
65
65
  ]
66
66
  },
67
67
  "src/views/General.vue": {
68
- "file": "General-OQWiNYkq.js",
68
+ "file": "General-DEC_IL_V.js",
69
69
  "name": "General",
70
70
  "src": "src/views/General.vue",
71
71
  "isDynamicEntry": true,
72
72
  "imports": [
73
- "_install-Cka3V66t.js"
73
+ "_install-C4Lex_kN.js"
74
74
  ]
75
75
  },
76
76
  "src/views/QR.vue": {
77
- "file": "QR-BzZfdP0g.js",
77
+ "file": "QR-PAbloyew.js",
78
78
  "name": "QR",
79
79
  "src": "src/views/QR.vue",
80
80
  "isDynamicEntry": true,
81
81
  "imports": [
82
- "_install-Cka3V66t.js"
82
+ "_install-C4Lex_kN.js"
83
83
  ]
84
84
  },
85
85
  "style.css": {
@@ -1,4 +1,4 @@
1
- import { a as l, _ as g, A as u, E as _ } from "./install-Cka3V66t.js";
1
+ import { a as l, _ as g, A as u, E as _ } from "./install-C4Lex_kN.js";
2
2
  import { resolveComponent as h, openBlock as o, createElementBlock as a, createElementVNode as e, createCommentVNode as r, createBlock as f, withCtx as m, toDisplayString as i, Fragment as b, renderList as y } from "vue";
3
3
  const k = {
4
4
  async getRecordById(t) {
@@ -1,4 +1,4 @@
1
- import { _ as d, A as u, b as g, E as _ } from "./install-Cka3V66t.js";
1
+ import { _ as d, A as u, b as g, E as _ } from "./install-C4Lex_kN.js";
2
2
  import { resolveComponent as h, openBlock as e, createElementBlock as i, createElementVNode as s, createCommentVNode as r, createBlock as b, withCtx as m, toDisplayString as a, createTextVNode as f, Fragment as y, renderList as v } from "vue";
3
3
  const w = {
4
4
  name: "AuthBilling",
@@ -1,4 +1,4 @@
1
- import { _ as d, A as u, b as g, E as m } from "./install-Cka3V66t.js";
1
+ import { _ as d, A as u, b as g, E as m } from "./install-C4Lex_kN.js";
2
2
  import { resolveComponent as _, openBlock as s, createElementBlock as a, createElementVNode as t, createCommentVNode as r, createBlock as h, withCtx as f, toDisplayString as i } from "vue";
3
3
  const y = {
4
4
  name: "AuthCustomApp",
@@ -1,4 +1,4 @@
1
- import { _ as ae, A as te, E as le } from "./install-Cka3V66t.js";
1
+ import { _ as ae, A as te, E as le } from "./install-C4Lex_kN.js";
2
2
  import "await-to-js";
3
3
  import { defineComponent as Z, mergeModels as K, useModel as oe, ref as S, computed as P, watch as J, onMounted as ne, onBeforeUnmount as ie, openBlock as d, createElementBlock as g, normalizeClass as V, createElementVNode as i, renderSlot as M, createTextVNode as O, toDisplayString as L, createCommentVNode as x, Fragment as E, renderList as I, createVNode as $, withDirectives as T, vModelText as F, createBlock as B, Teleport as se, normalizeStyle as re, withCtx as X, withKeys as de, resolveComponent as H, withModifiers as ue } from "vue";
4
4
  (function() {
@@ -1,4 +1,4 @@
1
- import { _ as s, A as i, Q as a } from "./install-Cka3V66t.js";
1
+ import { _ as s, A as i, Q as a } from "./install-C4Lex_kN.js";
2
2
  import { resolveComponent as r, openBlock as u, createElementBlock as p, createElementVNode as o, toDisplayString as t, createVNode as d, withCtx as g, createTextVNode as _ } from "vue";
3
3
  const m = {
4
4
  name: "AuthQR",
@@ -1,4 +1,4 @@
1
- import { i as f } from "./install-Cka3V66t.js";
1
+ import { i as f } from "./install-C4Lex_kN.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(u){const t=base64Js,n=ieee754,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;u.Buffer=y,u.SlowBuffer=Q,u.INSPECT_MAX_BYTES=50;const h=2147483647;u.kMaxLength=h;const{Uint8Array:o,ArrayBuffer:_,SharedArrayBuffer:b}=globalThis;y.TYPED_ARRAY_SUPPORT=E(),!y.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function E(){try{const W=new o(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,o.prototype),Object.setPrototypeOf(W,D),W.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function S(W){if(W>h)throw new RangeError('The value "'+W+'" is invalid for option "size"');const D=new o(W);return Object.setPrototypeOf(D,y.prototype),D}function y(W,D,H){if(typeof W=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(W)}return k(W,D,H)}y.poolSize=8192;function k(W,D,H){if(typeof W=="string")return B(W,D);if(_.isView(W))return O(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Xe(W,_)||W&&Xe(W.buffer,_)||typeof b<"u"&&(Xe(W,b)||W&&Xe(W.buffer,b)))return N(W,D,H);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=W.valueOf&&W.valueOf();if(ne!=null&&ne!==W)return y.from(ne,D,H);const xe=z(W);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return y.from(W[Symbol.toPrimitive]("string"),D,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}y.from=function(W,D,H){return k(W,D,H)},Object.setPrototypeOf(y.prototype,o.prototype),Object.setPrototypeOf(y,o);function A(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function T(W,D,H){return A(W),W<=0?S(W):D!==void 0?typeof H=="string"?S(W).fill(D,H):S(W).fill(D):S(W)}y.alloc=function(W,D,H){return T(W,D,H)};function R(W){return A(W),S(W<0?0:$(W)|0)}y.allocUnsafe=function(W){return R(W)},y.allocUnsafeSlow=function(W){return R(W)};function B(W,D){if((typeof D!="string"||D==="")&&(D="utf8"),!y.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const H=G(W,D)|0;let ne=S(H);const xe=ne.write(W,D);return xe!==H&&(ne=ne.slice(0,xe)),ne}function L(W){const D=W.length<0?0:$(W.length)|0,H=S(D);for(let ne=0;ne<D;ne+=1)H[ne]=W[ne]&255;return H}function O(W){if(Xe(W,o)){const D=new o(W);return N(D.buffer,D.byteOffset,D.byteLength)}return L(W)}function N(W,D,H){if(D<0||W.byteLength<D)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<D+(H||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return D===void 0&&H===void 0?ne=new o(W):H===void 0?ne=new o(W,D):ne=new o(W,D,H),Object.setPrototypeOf(ne,y.prototype),ne}function z(W){if(y.isBuffer(W)){const D=$(W.length)|0,H=S(D);return H.length===0||W.copy(H,0,0,D),H}if(W.length!==void 0)return typeof W.length!="number"||mt(W.length)?S(0):L(W);if(W.type==="Buffer"&&Array.isArray(W.data))return L(W.data)}function $(W){if(W>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return W|0}function Q(W){return+W!=W&&(W=0),y.alloc(+W)}y.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==y.prototype},y.compare=function(D,H){if(Xe(D,o)&&(D=y.from(D,D.offset,D.byteLength)),Xe(H,o)&&(H=y.from(H,H.offset,H.byteLength)),!y.isBuffer(D)||!y.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===H)return 0;let ne=D.length,xe=H.length;for(let He=0,Ne=Math.min(ne,xe);He<Ne;++He)if(D[He]!==H[He]){ne=D[He],xe=H[He];break}return ne<xe?-1:xe<ne?1:0},y.isEncoding=function(D){switch(String(D).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(D,H){if(!Array.isArray(D))throw new TypeError('"list" argument must be an Array of Buffers');if(D.length===0)return y.alloc(0);let ne;if(H===void 0)for(H=0,ne=0;ne<D.length;++ne)H+=D[ne].length;const xe=y.allocUnsafe(H);let He=0;for(ne=0;ne<D.length;++ne){let Ne=D[ne];if(Xe(Ne,o))He+Ne.length>xe.length?(y.isBuffer(Ne)||(Ne=y.from(Ne)),Ne.copy(xe,He)):o.prototype.set.call(xe,Ne,He);else if(y.isBuffer(Ne))Ne.copy(xe,He);else throw new TypeError('"list" argument must be an Array of Buffers');He+=Ne.length}return xe};function G(W,D){if(y.isBuffer(W))return W.length;if(_.isView(W)||Xe(W,_))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const H=W.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&H===0)return 0;let xe=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return pt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H*2;case"hex":return H>>>1;case"base64":return lt(W).length;default:if(xe)return ne?-1:pt(W).length;D=(""+D).toLowerCase(),xe=!0}}y.byteLength=G;function _e(W,D,H){let ne=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0,D>>>=0,H<=D))return"";for(W||(W="utf8");;)switch(W){case"hex":return x(this,D,H);case"utf8":case"utf-8":return w(this,D,H);case"ascii":return r(this,D,H);case"latin1":case"binary":return v(this,D,H);case"base64":return m(this,D,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,D,H);default:if(ne)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ne=!0}}y.prototype._isBuffer=!0;function ee(W,D,H){const ne=W[D];W[D]=W[H],W[H]=ne}y.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;H<D;H+=2)ee(this,H,H+1);return this},y.prototype.swap32=function(){const D=this.length;if(D%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let H=0;H<D;H+=4)ee(this,H,H+3),ee(this,H+1,H+2);return this},y.prototype.swap64=function(){const D=this.length;if(D%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let H=0;H<D;H+=8)ee(this,H,H+7),ee(this,H+1,H+6),ee(this,H+2,H+5),ee(this,H+3,H+4);return this},y.prototype.toString=function(){const D=this.length;return D===0?"":arguments.length===0?w(this,0,D):_e.apply(this,arguments)},y.prototype.toLocaleString=y.prototype.toString,y.prototype.equals=function(D){if(!y.isBuffer(D))throw new TypeError("Argument must be a Buffer");return this===D?!0:y.compare(this,D)===0},y.prototype.inspect=function(){let D="";const H=u.INSPECT_MAX_BYTES;return D=this.toString("hex",0,H).replace(/(.{2})/g,"$1 ").trim(),this.length>H&&(D+=" ... "),"<Buffer "+D+">"},l&&(y.prototype[l]=y.prototype.inspect),y.prototype.compare=function(D,H,ne,xe,He){if(Xe(D,o)&&(D=y.from(D,D.offset,D.byteLength)),!y.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(H===void 0&&(H=0),ne===void 0&&(ne=D?D.length:0),xe===void 0&&(xe=0),He===void 0&&(He=this.length),H<0||ne>D.length||xe<0||He>this.length)throw new RangeError("out of range index");if(xe>=He&&H>=ne)return 0;if(xe>=He)return-1;if(H>=ne)return 1;if(H>>>=0,ne>>>=0,xe>>>=0,He>>>=0,this===D)return 0;let Ne=He-xe,Je=ne-H;const ht=Math.min(Ne,Je),Ge=this.slice(xe,He),et=D.slice(H,ne);for(let dt=0;dt<ht;++dt)if(Ge[dt]!==et[dt]){Ne=Ge[dt],Je=et[dt];break}return Ne<Je?-1:Je<Ne?1:0};function Z(W,D,H,ne,xe){if(W.length===0)return-1;if(typeof H=="string"?(ne=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),H=+H,mt(H)&&(H=xe?0:W.length-1),H<0&&(H=W.length+H),H>=W.length){if(xe)return-1;H=W.length-1}else if(H<0)if(xe)H=0;else return-1;if(typeof D=="string"&&(D=y.from(D,ne)),y.isBuffer(D))return D.length===0?-1:Pe(W,D,H,ne,xe);if(typeof D=="number")return D=D&255,typeof o.prototype.indexOf=="function"?xe?o.prototype.indexOf.call(W,D,H):o.prototype.lastIndexOf.call(W,D,H):Pe(W,[D],H,ne,xe);throw new TypeError("val must be string, number or Buffer")}function Pe(W,D,H,ne,xe){let He=1,Ne=W.length,Je=D.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(W.length<2||D.length<2)return-1;He=2,Ne/=2,Je/=2,H/=2}function ht(et,dt){return He===1?et[dt]:et.readUInt16BE(dt*He)}let Ge;if(xe){let et=-1;for(Ge=H;Ge<Ne;Ge++)if(ht(W,Ge)===ht(D,et===-1?0:Ge-et)){if(et===-1&&(et=Ge),Ge-et+1===Je)return et*He}else et!==-1&&(Ge-=Ge-et),et=-1}else for(H+Je>Ne&&(H=Ne-Je),Ge=H;Ge>=0;Ge--){let et=!0;for(let dt=0;dt<Je;dt++)if(ht(W,Ge+dt)!==ht(D,dt)){et=!1;break}if(et)return Ge}return-1}y.prototype.includes=function(D,H,ne){return this.indexOf(D,H,ne)!==-1},y.prototype.indexOf=function(D,H,ne){return Z(this,D,H,ne,!0)},y.prototype.lastIndexOf=function(D,H,ne){return Z(this,D,H,ne,!1)};function M(W,D,H,ne){H=Number(H)||0;const xe=W.length-H;ne?(ne=Number(ne),ne>xe&&(ne=xe)):ne=xe;const He=D.length;ne>He/2&&(ne=He/2);let Ne;for(Ne=0;Ne<ne;++Ne){const Je=parseInt(D.substr(Ne*2,2),16);if(mt(Je))return Ne;W[H+Ne]=Je}return Ne}function e(W,D,H,ne){return Ve(pt(D,W.length-H),W,H,ne)}function s(W,D,H,ne){return Ve(Ke(D),W,H,ne)}function f(W,D,H,ne){return Ve(lt(D),W,H,ne)}function d(W,D,H,ne){return Ve(Qe(D,W.length-H),W,H,ne)}y.prototype.write=function(D,H,ne,xe){if(H===void 0)xe="utf8",ne=this.length,H=0;else if(ne===void 0&&typeof H=="string")xe=H,ne=this.length,H=0;else if(isFinite(H))H=H>>>0,isFinite(ne)?(ne=ne>>>0,xe===void 0&&(xe="utf8")):(xe=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const He=this.length-H;if((ne===void 0||ne>He)&&(ne=He),D.length>0&&(ne<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");let Ne=!1;for(;;)switch(xe){case"hex":return M(this,D,H,ne);case"utf8":case"utf-8":return e(this,D,H,ne);case"ascii":case"latin1":case"binary":return s(this,D,H,ne);case"base64":return f(this,D,H,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,D,H,ne);default:if(Ne)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),Ne=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(W,D,H){return D===0&&H===W.length?t.fromByteArray(W):t.fromByteArray(W.slice(D,H))}function w(W,D,H){H=Math.min(W.length,H);const ne=[];let xe=D;for(;xe<H;){const He=W[xe];let Ne=null,Je=He>239?4:He>223?3:He>191?2:1;if(xe+Je<=H){let ht,Ge,et,dt;switch(Je){case 1:He<128&&(Ne=He);break;case 2:ht=W[xe+1],(ht&192)===128&&(dt=(He&31)<<6|ht&63,dt>127&&(Ne=dt));break;case 3:ht=W[xe+1],Ge=W[xe+2],(ht&192)===128&&(Ge&192)===128&&(dt=(He&15)<<12|(ht&63)<<6|Ge&63,dt>2047&&(dt<55296||dt>57343)&&(Ne=dt));break;case 4:ht=W[xe+1],Ge=W[xe+2],et=W[xe+3],(ht&192)===128&&(Ge&192)===128&&(et&192)===128&&(dt=(He&15)<<18|(ht&63)<<12|(Ge&63)<<6|et&63,dt>65535&&dt<1114112&&(Ne=dt))}}Ne===null?(Ne=65533,Je=1):Ne>65535&&(Ne-=65536,ne.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),ne.push(Ne),xe+=Je}return p(ne)}const C=4096;function p(W){const D=W.length;if(D<=C)return String.fromCharCode.apply(String,W);let H="",ne=0;for(;ne<D;)H+=String.fromCharCode.apply(String,W.slice(ne,ne+=C));return H}function r(W,D,H){let ne="";H=Math.min(W.length,H);for(let xe=D;xe<H;++xe)ne+=String.fromCharCode(W[xe]&127);return ne}function v(W,D,H){let ne="";H=Math.min(W.length,H);for(let xe=D;xe<H;++xe)ne+=String.fromCharCode(W[xe]);return ne}function x(W,D,H){const ne=W.length;(!D||D<0)&&(D=0),(!H||H<0||H>ne)&&(H=ne);let xe="";for(let He=D;He<H;++He)xe+=Ze[W[He]];return xe}function q(W,D,H){const ne=W.slice(D,H);let xe="";for(let He=0;He<ne.length-1;He+=2)xe+=String.fromCharCode(ne[He]+ne[He+1]*256);return xe}y.prototype.slice=function(D,H){const ne=this.length;D=~~D,H=H===void 0?ne:~~H,D<0?(D+=ne,D<0&&(D=0)):D>ne&&(D=ne),H<0?(H+=ne,H<0&&(H=0)):H>ne&&(H=ne),H<D&&(H=D);const xe=this.subarray(D,H);return Object.setPrototypeOf(xe,y.prototype),xe};function K(W,D,H){if(W%1!==0||W<0)throw new RangeError("offset is not uint");if(W+D>H)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=this[D],He=1,Ne=0;for(;++Ne<H&&(He*=256);)xe+=this[D+Ne]*He;return xe},y.prototype.readUintBE=y.prototype.readUIntBE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=this[D+--H],He=1;for(;H>0&&(He*=256);)xe+=this[D+--H]*He;return xe},y.prototype.readUint8=y.prototype.readUInt8=function(D,H){return D=D>>>0,H||K(D,1,this.length),this[D]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(D,H){return D=D>>>0,H||K(D,2,this.length),this[D]|this[D+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(D,H){return D=D>>>0,H||K(D,2,this.length),this[D]<<8|this[D+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(D,H){return D=D>>>0,H||K(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(D,H){return D=D>>>0,H||K(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},y.prototype.readBigUInt64LE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=H+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,He=this[++D]+this[++D]*2**8+this[++D]*2**16+ne*2**24;return BigInt(xe)+(BigInt(He)<<BigInt(32))}),y.prototype.readBigUInt64BE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=H*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],He=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ne;return(BigInt(xe)<<BigInt(32))+BigInt(He)}),y.prototype.readIntLE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=this[D],He=1,Ne=0;for(;++Ne<H&&(He*=256);)xe+=this[D+Ne]*He;return He*=128,xe>=He&&(xe-=Math.pow(2,8*H)),xe},y.prototype.readIntBE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=H,He=1,Ne=this[D+--xe];for(;xe>0&&(He*=256);)Ne+=this[D+--xe]*He;return He*=128,Ne>=He&&(Ne-=Math.pow(2,8*H)),Ne},y.prototype.readInt8=function(D,H){return D=D>>>0,H||K(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},y.prototype.readInt16LE=function(D,H){D=D>>>0,H||K(D,2,this.length);const ne=this[D]|this[D+1]<<8;return ne&32768?ne|4294901760:ne},y.prototype.readInt16BE=function(D,H){D=D>>>0,H||K(D,2,this.length);const ne=this[D+1]|this[D]<<8;return ne&32768?ne|4294901760:ne},y.prototype.readInt32LE=function(D,H){return D=D>>>0,H||K(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},y.prototype.readInt32BE=function(D,H){return D=D>>>0,H||K(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},y.prototype.readBigInt64LE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(ne<<24);return(BigInt(xe)<<BigInt(32))+BigInt(H+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24)}),y.prototype.readBigInt64BE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=(H<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(xe)<<BigInt(32))+BigInt(this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ne)}),y.prototype.readFloatLE=function(D,H){return D=D>>>0,H||K(D,4,this.length),n.read(this,D,!0,23,4)},y.prototype.readFloatBE=function(D,H){return D=D>>>0,H||K(D,4,this.length),n.read(this,D,!1,23,4)},y.prototype.readDoubleLE=function(D,H){return D=D>>>0,H||K(D,8,this.length),n.read(this,D,!0,52,8)},y.prototype.readDoubleBE=function(D,H){return D=D>>>0,H||K(D,8,this.length),n.read(this,D,!1,52,8)};function le(W,D,H,ne,xe,He){if(!y.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>xe||D<He)throw new RangeError('"value" argument is out of bounds');if(H+ne>W.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(D,H,ne,xe){if(D=+D,H=H>>>0,ne=ne>>>0,!xe){const Je=Math.pow(2,8*ne)-1;le(this,D,H,ne,Je,0)}let He=1,Ne=0;for(this[H]=D&255;++Ne<ne&&(He*=256);)this[H+Ne]=D/He&255;return H+ne},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(D,H,ne,xe){if(D=+D,H=H>>>0,ne=ne>>>0,!xe){const Je=Math.pow(2,8*ne)-1;le(this,D,H,ne,Je,0)}let He=ne-1,Ne=1;for(this[H+He]=D&255;--He>=0&&(Ne*=256);)this[H+He]=D/Ne&255;return H+ne},y.prototype.writeUint8=y.prototype.writeUInt8=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,1,255,0),this[H]=D&255,H+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,65535,0),this[H]=D&255,this[H+1]=D>>>8,H+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,65535,0),this[H]=D>>>8,this[H+1]=D&255,H+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,4294967295,0),this[H+3]=D>>>24,this[H+2]=D>>>16,this[H+1]=D>>>8,this[H]=D&255,H+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,4294967295,0),this[H]=D>>>24,this[H+1]=D>>>16,this[H+2]=D>>>8,this[H+3]=D&255,H+4};function te(W,D,H,ne,xe){ze(D,ne,xe,W,H,7);let He=Number(D&BigInt(4294967295));W[H++]=He,He=He>>8,W[H++]=He,He=He>>8,W[H++]=He,He=He>>8,W[H++]=He;let Ne=Number(D>>BigInt(32)&BigInt(4294967295));return W[H++]=Ne,Ne=Ne>>8,W[H++]=Ne,Ne=Ne>>8,W[H++]=Ne,Ne=Ne>>8,W[H++]=Ne,H}function F(W,D,H,ne,xe){ze(D,ne,xe,W,H,7);let He=Number(D&BigInt(4294967295));W[H+7]=He,He=He>>8,W[H+6]=He,He=He>>8,W[H+5]=He,He=He>>8,W[H+4]=He;let Ne=Number(D>>BigInt(32)&BigInt(4294967295));return W[H+3]=Ne,Ne=Ne>>8,W[H+2]=Ne,Ne=Ne>>8,W[H+1]=Ne,Ne=Ne>>8,W[H]=Ne,H+8}y.prototype.writeBigUInt64LE=rt(function(D,H=0){return te(this,D,H,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=rt(function(D,H=0){return F(this,D,H,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(D,H,ne,xe){if(D=+D,H=H>>>0,!xe){const ht=Math.pow(2,8*ne-1);le(this,D,H,ne,ht-1,-ht)}let He=0,Ne=1,Je=0;for(this[H]=D&255;++He<ne&&(Ne*=256);)D<0&&Je===0&&this[H+He-1]!==0&&(Je=1),this[H+He]=(D/Ne>>0)-Je&255;return H+ne},y.prototype.writeIntBE=function(D,H,ne,xe){if(D=+D,H=H>>>0,!xe){const ht=Math.pow(2,8*ne-1);le(this,D,H,ne,ht-1,-ht)}let He=ne-1,Ne=1,Je=0;for(this[H+He]=D&255;--He>=0&&(Ne*=256);)D<0&&Je===0&&this[H+He+1]!==0&&(Je=1),this[H+He]=(D/Ne>>0)-Je&255;return H+ne},y.prototype.writeInt8=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,1,127,-128),D<0&&(D=255+D+1),this[H]=D&255,H+1},y.prototype.writeInt16LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,32767,-32768),this[H]=D&255,this[H+1]=D>>>8,H+2},y.prototype.writeInt16BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,32767,-32768),this[H]=D>>>8,this[H+1]=D&255,H+2},y.prototype.writeInt32LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,2147483647,-2147483648),this[H]=D&255,this[H+1]=D>>>8,this[H+2]=D>>>16,this[H+3]=D>>>24,H+4},y.prototype.writeInt32BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[H]=D>>>24,this[H+1]=D>>>16,this[H+2]=D>>>8,this[H+3]=D&255,H+4},y.prototype.writeBigInt64LE=rt(function(D,H=0){return te(this,D,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=rt(function(D,H=0){return F(this,D,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(W,D,H,ne,xe,He){if(H+ne>W.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function Ee(W,D,H,ne,xe){return D=+D,H=H>>>0,xe||X(W,D,H,4),n.write(W,D,H,ne,23,4),H+4}y.prototype.writeFloatLE=function(D,H,ne){return Ee(this,D,H,!0,ne)},y.prototype.writeFloatBE=function(D,H,ne){return Ee(this,D,H,!1,ne)};function Ie(W,D,H,ne,xe){return D=+D,H=H>>>0,xe||X(W,D,H,8),n.write(W,D,H,ne,52,8),H+8}y.prototype.writeDoubleLE=function(D,H,ne){return Ie(this,D,H,!0,ne)},y.prototype.writeDoubleBE=function(D,H,ne){return Ie(this,D,H,!1,ne)},y.prototype.copy=function(D,H,ne,xe){if(!y.isBuffer(D))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!xe&&xe!==0&&(xe=this.length),H>=D.length&&(H=D.length),H||(H=0),xe>0&&xe<ne&&(xe=ne),xe===ne||D.length===0||this.length===0)return 0;if(H<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),D.length-H<xe-ne&&(xe=D.length-H+ne);const He=xe-ne;return this===D&&typeof o.prototype.copyWithin=="function"?this.copyWithin(H,ne,xe):o.prototype.set.call(D,this.subarray(ne,xe),H),He},y.prototype.fill=function(D,H,ne,xe){if(typeof D=="string"){if(typeof H=="string"?(xe=H,H=0,ne=this.length):typeof ne=="string"&&(xe=ne,ne=this.length),xe!==void 0&&typeof xe!="string")throw new TypeError("encoding must be a string");if(typeof xe=="string"&&!y.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);if(D.length===1){const Ne=D.charCodeAt(0);(xe==="utf8"&&Ne<128||xe==="latin1")&&(D=Ne)}}else typeof D=="number"?D=D&255:typeof D=="boolean"&&(D=Number(D));if(H<0||this.length<H||this.length<ne)throw new RangeError("Out of range index");if(ne<=H)return this;H=H>>>0,ne=ne===void 0?this.length:ne>>>0,D||(D=0);let He;if(typeof D=="number")for(He=H;He<ne;++He)this[He]=D;else{const Ne=y.isBuffer(D)?D:y.from(D,xe),Je=Ne.length;if(Je===0)throw new TypeError('The value "'+D+'" is invalid for argument "value"');for(He=0;He<ne-H;++He)this[He+H]=Ne[He%Je]}return this};const Te={};function J(W,D,H){Te[W]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:D.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(xe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:xe,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(W,D){return`The "${W}" argument must be of type number. Received type ${typeof D}`},TypeError),J("ERR_OUT_OF_RANGE",function(W,D,H){let ne=`The value of "${W}" is out of range.`,xe=H;return Number.isInteger(H)&&Math.abs(H)>2**32?xe=Be(String(H)):typeof H=="bigint"&&(xe=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(xe=Be(xe)),xe+="n"),ne+=` It must be ${D}. Received ${xe}`,ne},RangeError);function Be(W){let D="",H=W.length;const ne=W[0]==="-"?1:0;for(;H>=ne+4;H-=3)D=`_${W.slice(H-3,H)}${D}`;return`${W.slice(0,H)}${D}`}function st(W,D,H){Fe(D,"offset"),(W[D]===void 0||W[D+H]===void 0)&&ut(D,W.length-(H+1))}function ze(W,D,H,ne,xe,He){if(W>H||W<D){const Ne=typeof D=="bigint"?"n":"";let Je;throw D===0||D===BigInt(0)?Je=`>= 0${Ne} and < 2${Ne} ** ${(He+1)*8}${Ne}`:Je=`>= -(2${Ne} ** ${(He+1)*8-1}${Ne}) and < 2 ** ${(He+1)*8-1}${Ne}`,new Te.ERR_OUT_OF_RANGE("value",Je,W)}st(ne,xe,He)}function Fe(W,D){if(typeof W!="number")throw new Te.ERR_INVALID_ARG_TYPE(D,"number",W)}function ut(W,D,H){throw Math.floor(W)!==W?(Fe(W,H),new Te.ERR_OUT_OF_RANGE("offset","an integer",W)):D<0?new Te.ERR_BUFFER_OUT_OF_BOUNDS:new Te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,W)}const Ye=/[^+/0-9A-Za-z-_]/g;function qe(W){if(W=W.split("=")[0],W=W.trim().replace(Ye,""),W.length<2)return"";for(;W.length%4!==0;)W=W+"=";return W}function pt(W,D){D=D||1/0;let H;const ne=W.length;let xe=null;const He=[];for(let Ne=0;Ne<ne;++Ne){if(H=W.charCodeAt(Ne),H>55295&&H<57344){if(!xe){if(H>56319){(D-=3)>-1&&He.push(239,191,189);continue}else if(Ne+1===ne){(D-=3)>-1&&He.push(239,191,189);continue}xe=H;continue}if(H<56320){(D-=3)>-1&&He.push(239,191,189),xe=H;continue}H=(xe-55296<<10|H-56320)+65536}else xe&&(D-=3)>-1&&He.push(239,191,189);if(xe=null,H<128){if((D-=1)<0)break;He.push(H)}else if(H<2048){if((D-=2)<0)break;He.push(H>>6|192,H&63|128)}else if(H<65536){if((D-=3)<0)break;He.push(H>>12|224,H>>6&63|128,H&63|128)}else if(H<1114112){if((D-=4)<0)break;He.push(H>>18|240,H>>12&63|128,H>>6&63|128,H&63|128)}else throw new Error("Invalid code point")}return He}function Ke(W){const D=[];for(let H=0;H<W.length;++H)D.push(W.charCodeAt(H)&255);return D}function Qe(W,D){let H,ne,xe;const He=[];for(let Ne=0;Ne<W.length&&!((D-=2)<0);++Ne)H=W.charCodeAt(Ne),ne=H>>8,xe=H%256,He.push(xe),He.push(ne);return He}function lt(W){return t.toByteArray(qe(W))}function Ve(W,D,H,ne){let xe;for(xe=0;xe<ne&&!(xe+H>=D.length||xe>=W.length);++xe)D[xe+H]=W[xe];return xe}function Xe(W,D){return W instanceof D||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===D.name}function mt(W){return W!==W}const Ze=function(){const W="0123456789abcdef",D=new Array(256);for(let H=0;H<16;++H){const ne=H*16;for(let xe=0;xe<16;++xe)D[ne+xe]=W[H]+W[xe]}return D}();function rt(W){return typeof BigInt>"u"?vt:W}function vt(){throw new Error("BigInt not supported")}})(buffer$2);const Buffer$1=buffer$2.Buffer,listeners=vue.reactive(new Map),EventBus={$on(u,t){let n=listeners.get(u);n||(n=new Set,listeners.set(u,n)),n.add(t)},$emit(u,...t){const n=listeners.get(u);if(n)for(const l of n)l(...t)},$off(u,t){const n=listeners.get(u);n&&n.delete(t)}};vue.readonly(EventBus);const GlobalMixin={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||core.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||core.Capacitor.getPlatform()==="ios"},isNative(){return core.Capacitor.isNativePlatform()}},methods:{getIcon(u){return this.isNative?`/icons/${u}`:"https://cdn.tapni.co/icons/"+u},errorHandler(u){return u&&u.response&&u.response.data&&u.response.data.error&&((u.response.data.error==="ACCESS_DENIED"||u.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!u.response.data.error.includes("Network Error")&&!u.response.data.error.includes("Cannot read properties")&&this.errorSnack(u.response.data.error)),u},errorSnack(u){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),l=document.getElementById("errorSnack");n.innerHTML=u,t.classList.add("show-snack"),l.classList.add("active-snack"),setTimeout(function(){l.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(u){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),l=document.getElementById("successSnack");n.innerHTML=u,t.classList.add("show-snack"),l.classList.add("active-snack"),setTimeout(function(){l.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(u){return u<10?"":u<=50?"🔥":u<=100?"💥":u<=300?"💎":u>300?"🚀":""},isEmpty(u){if(!u)return!0;for(let t in u)if(u.hasOwnProperty(t))return!1;return JSON.stringify(u)===JSON.stringify({})},copy(u=""){const t=document.createElement("textarea");t.value=u,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(u){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:u})}catch(t){return console.error("grecaptcha_error",t),null}}}},{mapState,mapActions,mapGetters}=vuex.createNamespacedHelpers("auth"),AuthMixin={mixins:[GlobalMixin],props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{...mapState(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...mapGetters(["accessToken","refreshTokens","isLoggedIn","renderView","appLanguage"])},methods:{...mapActions(["setLoggedInAccounts","setLoggedInUserId","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setStorageItem","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setRealm","setResponseType","switchAccount","loginSetup","loginSuccess","refreshTokenAction"])},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.setRealm(this.$route.query.realm)},deep:!0}}},_export_sfc=(u,t)=>{const n=u.__vccOpts||u;for(const[l,h]of t)n[l]=h;return n},_sfc_main$d={name:"AuthWelcome",mixins:[AuthMixin],data(){return{loading:!0}},async mounted(){let u=document.getElementById("tapniVideo");u.addEventListener("canplay",function(){if(document.body.contains(u))try{u.play()}catch(t){console.error("Play was interrupted:",t)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):EventBus.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},_hoisted_1$d={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},_hoisted_2$c=["autoplay"],_hoisted_3$d={class:"bold full-top no-bottom center-text text-[24px]"},_hoisted_4$c={class:"full-bottom half-top center-text color-black font-16"},_hoisted_6$b={class:"page-login-links center-text"},_hoisted_8$6={key:3,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}};function _sfc_render$c(u,t,n,l,h,o){const _=vue.resolveComponent("router-link");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[vue.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:u.isNative},t[1]||(t[1]=[vue.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1)]),8,_hoisted_2$c),vue.createElementVNode("h1",_hoisted_3$d,vue.toDisplayString(u.ssoLang[this.appLanguage].welcome),1),vue.createElementVNode("p",_hoisted_4$c,vue.toDisplayString(u.ssoLang[this.appLanguage].welcome_p1),1),vue.createCommentVNode("",!0),vue.createCommentVNode("",!0),vue.createVNode(_,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(u.ssoLang[this.appLanguage].create_account),1)]),_:1}),vue.createElementVNode("div",_hoisted_6$b,[vue.createVNode(_,{to:"/login"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.ssoLang[this.appLanguage].already_registered)+"? ",1),vue.createElementVNode("b",null,vue.toDisplayString(u.ssoLang[this.appLanguage].sign_in),1)]),_:1}),t[2]||(t[2]=vue.createElementVNode("div",{class:"clear"},null,-1))]),vue.createCommentVNode("",!0),this.isNative?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$6,t[3]||(t[3]=[vue.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-cb61958b><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-cb61958b></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-cb61958b><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-cb61958b></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-cb61958b><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-cb61958b></a>',3)])))])}const AuthWelcome=_export_sfc(_sfc_main$d,[["render",_sfc_render$c],["__scopeId","data-v-cb61958b"]]),Welcome$1=Object.freeze(Object.defineProperty({__proto__:null,default:AuthWelcome},Symbol.toStringTag,{value:"Module"})),version$3="1.0.37",UserService={getMe(){return api$1().get("/users/me")},getByUsername(u){let t=document.referrer||"",n=u.utmParams||{};return u.dontTap&&(n.dontTap=!0),api$1().get(`/users/${u.username}`,{params:n,headers:{"X-Referer":t}})},getByNumber(u){let t=document.referrer||"",n=u.utmParams||{};return u.dontTap&&(n.dontTap=!0),api$1().get(`/users/tag/${u.serial}`,{params:n,headers:{"X-Referer":t}})},save(u){return api$1().put("/users",u)},newPassword(u){return api$1().put("/users/new-password",u)},connect(u){return api$1().post("/users/connect",u)},eventLog(u){return api$1().post("/users/log",u)},deleteAccount(u){return api$1().post("/users/profile/delete",u)},registerDevice(u){return api$1().post("/users/device/register",u)},addFcmToken(u){return api$1().post("/users/device/fcm",u)},loginUsingQR(u){return api$1().post("/users/qr/login",u)}},DeviceService={registerDevice(u){return api$1().post("/devices/add",u)},addFcmToken(u){return api$1().post("/devices/fcm/add",u)}},CompanyService={getBySSOEmail(u){return api$1().get(`/company/sso/${u}`)},acceptCompanyInvitation(u){return api$1().get(`/users/invitation?ic=${u}`)},qrCodePooling(u){return api$1().post("/company/login/qr",u)}},enLocale={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>
6
+ */(function(u){const t=base64Js,n=ieee754,l=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;u.Buffer=y,u.SlowBuffer=Q,u.INSPECT_MAX_BYTES=50;const h=2147483647;u.kMaxLength=h;const{Uint8Array:o,ArrayBuffer:_,SharedArrayBuffer:b}=globalThis;y.TYPED_ARRAY_SUPPORT=E(),!y.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function E(){try{const W=new o(1),D={foo:function(){return 42}};return Object.setPrototypeOf(D,o.prototype),Object.setPrototypeOf(W,D),W.foo()===42}catch{return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function S(W){if(W>h)throw new RangeError('The value "'+W+'" is invalid for option "size"');const D=new o(W);return Object.setPrototypeOf(D,y.prototype),D}function y(W,D,H){if(typeof W=="number"){if(typeof D=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(W)}return k(W,D,H)}y.poolSize=8192;function k(W,D,H){if(typeof W=="string")return B(W,D);if(_.isView(W))return O(W);if(W==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W);if(Xe(W,_)||W&&Xe(W.buffer,_)||typeof b<"u"&&(Xe(W,b)||W&&Xe(W.buffer,b)))return N(W,D,H);if(typeof W=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=W.valueOf&&W.valueOf();if(ne!=null&&ne!==W)return y.from(ne,D,H);const xe=z(W);if(xe)return xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof W[Symbol.toPrimitive]=="function")return y.from(W[Symbol.toPrimitive]("string"),D,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof W)}y.from=function(W,D,H){return k(W,D,H)},Object.setPrototypeOf(y.prototype,o.prototype),Object.setPrototypeOf(y,o);function A(W){if(typeof W!="number")throw new TypeError('"size" argument must be of type number');if(W<0)throw new RangeError('The value "'+W+'" is invalid for option "size"')}function T(W,D,H){return A(W),W<=0?S(W):D!==void 0?typeof H=="string"?S(W).fill(D,H):S(W).fill(D):S(W)}y.alloc=function(W,D,H){return T(W,D,H)};function R(W){return A(W),S(W<0?0:$(W)|0)}y.allocUnsafe=function(W){return R(W)},y.allocUnsafeSlow=function(W){return R(W)};function B(W,D){if((typeof D!="string"||D==="")&&(D="utf8"),!y.isEncoding(D))throw new TypeError("Unknown encoding: "+D);const H=G(W,D)|0;let ne=S(H);const xe=ne.write(W,D);return xe!==H&&(ne=ne.slice(0,xe)),ne}function L(W){const D=W.length<0?0:$(W.length)|0,H=S(D);for(let ne=0;ne<D;ne+=1)H[ne]=W[ne]&255;return H}function O(W){if(Xe(W,o)){const D=new o(W);return N(D.buffer,D.byteOffset,D.byteLength)}return L(W)}function N(W,D,H){if(D<0||W.byteLength<D)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<D+(H||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return D===void 0&&H===void 0?ne=new o(W):H===void 0?ne=new o(W,D):ne=new o(W,D,H),Object.setPrototypeOf(ne,y.prototype),ne}function z(W){if(y.isBuffer(W)){const D=$(W.length)|0,H=S(D);return H.length===0||W.copy(H,0,0,D),H}if(W.length!==void 0)return typeof W.length!="number"||mt(W.length)?S(0):L(W);if(W.type==="Buffer"&&Array.isArray(W.data))return L(W.data)}function $(W){if(W>=h)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h.toString(16)+" bytes");return W|0}function Q(W){return+W!=W&&(W=0),y.alloc(+W)}y.isBuffer=function(D){return D!=null&&D._isBuffer===!0&&D!==y.prototype},y.compare=function(D,H){if(Xe(D,o)&&(D=y.from(D,D.offset,D.byteLength)),Xe(H,o)&&(H=y.from(H,H.offset,H.byteLength)),!y.isBuffer(D)||!y.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(D===H)return 0;let ne=D.length,xe=H.length;for(let He=0,Ne=Math.min(ne,xe);He<Ne;++He)if(D[He]!==H[He]){ne=D[He],xe=H[He];break}return ne<xe?-1:xe<ne?1:0},y.isEncoding=function(D){switch(String(D).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},y.concat=function(D,H){if(!Array.isArray(D))throw new TypeError('"list" argument must be an Array of Buffers');if(D.length===0)return y.alloc(0);let ne;if(H===void 0)for(H=0,ne=0;ne<D.length;++ne)H+=D[ne].length;const xe=y.allocUnsafe(H);let He=0;for(ne=0;ne<D.length;++ne){let Ne=D[ne];if(Xe(Ne,o))He+Ne.length>xe.length?(y.isBuffer(Ne)||(Ne=y.from(Ne)),Ne.copy(xe,He)):o.prototype.set.call(xe,Ne,He);else if(y.isBuffer(Ne))Ne.copy(xe,He);else throw new TypeError('"list" argument must be an Array of Buffers');He+=Ne.length}return xe};function G(W,D){if(y.isBuffer(W))return W.length;if(_.isView(W)||Xe(W,_))return W.byteLength;if(typeof W!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof W);const H=W.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&H===0)return 0;let xe=!1;for(;;)switch(D){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return pt(W).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H*2;case"hex":return H>>>1;case"base64":return lt(W).length;default:if(xe)return ne?-1:pt(W).length;D=(""+D).toLowerCase(),xe=!0}}y.byteLength=G;function _e(W,D,H){let ne=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0,D>>>=0,H<=D))return"";for(W||(W="utf8");;)switch(W){case"hex":return x(this,D,H);case"utf8":case"utf-8":return w(this,D,H);case"ascii":return r(this,D,H);case"latin1":case"binary":return v(this,D,H);case"base64":return m(this,D,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,D,H);default:if(ne)throw new TypeError("Unknown encoding: "+W);W=(W+"").toLowerCase(),ne=!0}}y.prototype._isBuffer=!0;function ee(W,D,H){const ne=W[D];W[D]=W[H],W[H]=ne}y.prototype.swap16=function(){const D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;H<D;H+=2)ee(this,H,H+1);return this},y.prototype.swap32=function(){const D=this.length;if(D%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let H=0;H<D;H+=4)ee(this,H,H+3),ee(this,H+1,H+2);return this},y.prototype.swap64=function(){const D=this.length;if(D%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let H=0;H<D;H+=8)ee(this,H,H+7),ee(this,H+1,H+6),ee(this,H+2,H+5),ee(this,H+3,H+4);return this},y.prototype.toString=function(){const D=this.length;return D===0?"":arguments.length===0?w(this,0,D):_e.apply(this,arguments)},y.prototype.toLocaleString=y.prototype.toString,y.prototype.equals=function(D){if(!y.isBuffer(D))throw new TypeError("Argument must be a Buffer");return this===D?!0:y.compare(this,D)===0},y.prototype.inspect=function(){let D="";const H=u.INSPECT_MAX_BYTES;return D=this.toString("hex",0,H).replace(/(.{2})/g,"$1 ").trim(),this.length>H&&(D+=" ... "),"<Buffer "+D+">"},l&&(y.prototype[l]=y.prototype.inspect),y.prototype.compare=function(D,H,ne,xe,He){if(Xe(D,o)&&(D=y.from(D,D.offset,D.byteLength)),!y.isBuffer(D))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof D);if(H===void 0&&(H=0),ne===void 0&&(ne=D?D.length:0),xe===void 0&&(xe=0),He===void 0&&(He=this.length),H<0||ne>D.length||xe<0||He>this.length)throw new RangeError("out of range index");if(xe>=He&&H>=ne)return 0;if(xe>=He)return-1;if(H>=ne)return 1;if(H>>>=0,ne>>>=0,xe>>>=0,He>>>=0,this===D)return 0;let Ne=He-xe,Je=ne-H;const ht=Math.min(Ne,Je),Ge=this.slice(xe,He),et=D.slice(H,ne);for(let dt=0;dt<ht;++dt)if(Ge[dt]!==et[dt]){Ne=Ge[dt],Je=et[dt];break}return Ne<Je?-1:Je<Ne?1:0};function Z(W,D,H,ne,xe){if(W.length===0)return-1;if(typeof H=="string"?(ne=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),H=+H,mt(H)&&(H=xe?0:W.length-1),H<0&&(H=W.length+H),H>=W.length){if(xe)return-1;H=W.length-1}else if(H<0)if(xe)H=0;else return-1;if(typeof D=="string"&&(D=y.from(D,ne)),y.isBuffer(D))return D.length===0?-1:Pe(W,D,H,ne,xe);if(typeof D=="number")return D=D&255,typeof o.prototype.indexOf=="function"?xe?o.prototype.indexOf.call(W,D,H):o.prototype.lastIndexOf.call(W,D,H):Pe(W,[D],H,ne,xe);throw new TypeError("val must be string, number or Buffer")}function Pe(W,D,H,ne,xe){let He=1,Ne=W.length,Je=D.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(W.length<2||D.length<2)return-1;He=2,Ne/=2,Je/=2,H/=2}function ht(et,dt){return He===1?et[dt]:et.readUInt16BE(dt*He)}let Ge;if(xe){let et=-1;for(Ge=H;Ge<Ne;Ge++)if(ht(W,Ge)===ht(D,et===-1?0:Ge-et)){if(et===-1&&(et=Ge),Ge-et+1===Je)return et*He}else et!==-1&&(Ge-=Ge-et),et=-1}else for(H+Je>Ne&&(H=Ne-Je),Ge=H;Ge>=0;Ge--){let et=!0;for(let dt=0;dt<Je;dt++)if(ht(W,Ge+dt)!==ht(D,dt)){et=!1;break}if(et)return Ge}return-1}y.prototype.includes=function(D,H,ne){return this.indexOf(D,H,ne)!==-1},y.prototype.indexOf=function(D,H,ne){return Z(this,D,H,ne,!0)},y.prototype.lastIndexOf=function(D,H,ne){return Z(this,D,H,ne,!1)};function M(W,D,H,ne){H=Number(H)||0;const xe=W.length-H;ne?(ne=Number(ne),ne>xe&&(ne=xe)):ne=xe;const He=D.length;ne>He/2&&(ne=He/2);let Ne;for(Ne=0;Ne<ne;++Ne){const Je=parseInt(D.substr(Ne*2,2),16);if(mt(Je))return Ne;W[H+Ne]=Je}return Ne}function e(W,D,H,ne){return Ve(pt(D,W.length-H),W,H,ne)}function s(W,D,H,ne){return Ve(Ke(D),W,H,ne)}function f(W,D,H,ne){return Ve(lt(D),W,H,ne)}function d(W,D,H,ne){return Ve(Qe(D,W.length-H),W,H,ne)}y.prototype.write=function(D,H,ne,xe){if(H===void 0)xe="utf8",ne=this.length,H=0;else if(ne===void 0&&typeof H=="string")xe=H,ne=this.length,H=0;else if(isFinite(H))H=H>>>0,isFinite(ne)?(ne=ne>>>0,xe===void 0&&(xe="utf8")):(xe=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const He=this.length-H;if((ne===void 0||ne>He)&&(ne=He),D.length>0&&(ne<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");let Ne=!1;for(;;)switch(xe){case"hex":return M(this,D,H,ne);case"utf8":case"utf-8":return e(this,D,H,ne);case"ascii":case"latin1":case"binary":return s(this,D,H,ne);case"base64":return f(this,D,H,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,D,H,ne);default:if(Ne)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),Ne=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(W,D,H){return D===0&&H===W.length?t.fromByteArray(W):t.fromByteArray(W.slice(D,H))}function w(W,D,H){H=Math.min(W.length,H);const ne=[];let xe=D;for(;xe<H;){const He=W[xe];let Ne=null,Je=He>239?4:He>223?3:He>191?2:1;if(xe+Je<=H){let ht,Ge,et,dt;switch(Je){case 1:He<128&&(Ne=He);break;case 2:ht=W[xe+1],(ht&192)===128&&(dt=(He&31)<<6|ht&63,dt>127&&(Ne=dt));break;case 3:ht=W[xe+1],Ge=W[xe+2],(ht&192)===128&&(Ge&192)===128&&(dt=(He&15)<<12|(ht&63)<<6|Ge&63,dt>2047&&(dt<55296||dt>57343)&&(Ne=dt));break;case 4:ht=W[xe+1],Ge=W[xe+2],et=W[xe+3],(ht&192)===128&&(Ge&192)===128&&(et&192)===128&&(dt=(He&15)<<18|(ht&63)<<12|(Ge&63)<<6|et&63,dt>65535&&dt<1114112&&(Ne=dt))}}Ne===null?(Ne=65533,Je=1):Ne>65535&&(Ne-=65536,ne.push(Ne>>>10&1023|55296),Ne=56320|Ne&1023),ne.push(Ne),xe+=Je}return p(ne)}const C=4096;function p(W){const D=W.length;if(D<=C)return String.fromCharCode.apply(String,W);let H="",ne=0;for(;ne<D;)H+=String.fromCharCode.apply(String,W.slice(ne,ne+=C));return H}function r(W,D,H){let ne="";H=Math.min(W.length,H);for(let xe=D;xe<H;++xe)ne+=String.fromCharCode(W[xe]&127);return ne}function v(W,D,H){let ne="";H=Math.min(W.length,H);for(let xe=D;xe<H;++xe)ne+=String.fromCharCode(W[xe]);return ne}function x(W,D,H){const ne=W.length;(!D||D<0)&&(D=0),(!H||H<0||H>ne)&&(H=ne);let xe="";for(let He=D;He<H;++He)xe+=Ze[W[He]];return xe}function q(W,D,H){const ne=W.slice(D,H);let xe="";for(let He=0;He<ne.length-1;He+=2)xe+=String.fromCharCode(ne[He]+ne[He+1]*256);return xe}y.prototype.slice=function(D,H){const ne=this.length;D=~~D,H=H===void 0?ne:~~H,D<0?(D+=ne,D<0&&(D=0)):D>ne&&(D=ne),H<0?(H+=ne,H<0&&(H=0)):H>ne&&(H=ne),H<D&&(H=D);const xe=this.subarray(D,H);return Object.setPrototypeOf(xe,y.prototype),xe};function K(W,D,H){if(W%1!==0||W<0)throw new RangeError("offset is not uint");if(W+D>H)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=this[D],He=1,Ne=0;for(;++Ne<H&&(He*=256);)xe+=this[D+Ne]*He;return xe},y.prototype.readUintBE=y.prototype.readUIntBE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=this[D+--H],He=1;for(;H>0&&(He*=256);)xe+=this[D+--H]*He;return xe},y.prototype.readUint8=y.prototype.readUInt8=function(D,H){return D=D>>>0,H||K(D,1,this.length),this[D]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(D,H){return D=D>>>0,H||K(D,2,this.length),this[D]|this[D+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(D,H){return D=D>>>0,H||K(D,2,this.length),this[D]<<8|this[D+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(D,H){return D=D>>>0,H||K(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(D,H){return D=D>>>0,H||K(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},y.prototype.readBigUInt64LE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=H+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24,He=this[++D]+this[++D]*2**8+this[++D]*2**16+ne*2**24;return BigInt(xe)+(BigInt(He)<<BigInt(32))}),y.prototype.readBigUInt64BE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=H*2**24+this[++D]*2**16+this[++D]*2**8+this[++D],He=this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ne;return(BigInt(xe)<<BigInt(32))+BigInt(He)}),y.prototype.readIntLE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=this[D],He=1,Ne=0;for(;++Ne<H&&(He*=256);)xe+=this[D+Ne]*He;return He*=128,xe>=He&&(xe-=Math.pow(2,8*H)),xe},y.prototype.readIntBE=function(D,H,ne){D=D>>>0,H=H>>>0,ne||K(D,H,this.length);let xe=H,He=1,Ne=this[D+--xe];for(;xe>0&&(He*=256);)Ne+=this[D+--xe]*He;return He*=128,Ne>=He&&(Ne-=Math.pow(2,8*H)),Ne},y.prototype.readInt8=function(D,H){return D=D>>>0,H||K(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},y.prototype.readInt16LE=function(D,H){D=D>>>0,H||K(D,2,this.length);const ne=this[D]|this[D+1]<<8;return ne&32768?ne|4294901760:ne},y.prototype.readInt16BE=function(D,H){D=D>>>0,H||K(D,2,this.length);const ne=this[D+1]|this[D]<<8;return ne&32768?ne|4294901760:ne},y.prototype.readInt32LE=function(D,H){return D=D>>>0,H||K(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},y.prototype.readInt32BE=function(D,H){return D=D>>>0,H||K(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},y.prototype.readBigInt64LE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=this[D+4]+this[D+5]*2**8+this[D+6]*2**16+(ne<<24);return(BigInt(xe)<<BigInt(32))+BigInt(H+this[++D]*2**8+this[++D]*2**16+this[++D]*2**24)}),y.prototype.readBigInt64BE=rt(function(D){D=D>>>0,Fe(D,"offset");const H=this[D],ne=this[D+7];(H===void 0||ne===void 0)&&ut(D,this.length-8);const xe=(H<<24)+this[++D]*2**16+this[++D]*2**8+this[++D];return(BigInt(xe)<<BigInt(32))+BigInt(this[++D]*2**24+this[++D]*2**16+this[++D]*2**8+ne)}),y.prototype.readFloatLE=function(D,H){return D=D>>>0,H||K(D,4,this.length),n.read(this,D,!0,23,4)},y.prototype.readFloatBE=function(D,H){return D=D>>>0,H||K(D,4,this.length),n.read(this,D,!1,23,4)},y.prototype.readDoubleLE=function(D,H){return D=D>>>0,H||K(D,8,this.length),n.read(this,D,!0,52,8)},y.prototype.readDoubleBE=function(D,H){return D=D>>>0,H||K(D,8,this.length),n.read(this,D,!1,52,8)};function le(W,D,H,ne,xe,He){if(!y.isBuffer(W))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>xe||D<He)throw new RangeError('"value" argument is out of bounds');if(H+ne>W.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(D,H,ne,xe){if(D=+D,H=H>>>0,ne=ne>>>0,!xe){const Je=Math.pow(2,8*ne)-1;le(this,D,H,ne,Je,0)}let He=1,Ne=0;for(this[H]=D&255;++Ne<ne&&(He*=256);)this[H+Ne]=D/He&255;return H+ne},y.prototype.writeUintBE=y.prototype.writeUIntBE=function(D,H,ne,xe){if(D=+D,H=H>>>0,ne=ne>>>0,!xe){const Je=Math.pow(2,8*ne)-1;le(this,D,H,ne,Je,0)}let He=ne-1,Ne=1;for(this[H+He]=D&255;--He>=0&&(Ne*=256);)this[H+He]=D/Ne&255;return H+ne},y.prototype.writeUint8=y.prototype.writeUInt8=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,1,255,0),this[H]=D&255,H+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,65535,0),this[H]=D&255,this[H+1]=D>>>8,H+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,65535,0),this[H]=D>>>8,this[H+1]=D&255,H+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,4294967295,0),this[H+3]=D>>>24,this[H+2]=D>>>16,this[H+1]=D>>>8,this[H]=D&255,H+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,4294967295,0),this[H]=D>>>24,this[H+1]=D>>>16,this[H+2]=D>>>8,this[H+3]=D&255,H+4};function te(W,D,H,ne,xe){ze(D,ne,xe,W,H,7);let He=Number(D&BigInt(4294967295));W[H++]=He,He=He>>8,W[H++]=He,He=He>>8,W[H++]=He,He=He>>8,W[H++]=He;let Ne=Number(D>>BigInt(32)&BigInt(4294967295));return W[H++]=Ne,Ne=Ne>>8,W[H++]=Ne,Ne=Ne>>8,W[H++]=Ne,Ne=Ne>>8,W[H++]=Ne,H}function F(W,D,H,ne,xe){ze(D,ne,xe,W,H,7);let He=Number(D&BigInt(4294967295));W[H+7]=He,He=He>>8,W[H+6]=He,He=He>>8,W[H+5]=He,He=He>>8,W[H+4]=He;let Ne=Number(D>>BigInt(32)&BigInt(4294967295));return W[H+3]=Ne,Ne=Ne>>8,W[H+2]=Ne,Ne=Ne>>8,W[H+1]=Ne,Ne=Ne>>8,W[H]=Ne,H+8}y.prototype.writeBigUInt64LE=rt(function(D,H=0){return te(this,D,H,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=rt(function(D,H=0){return F(this,D,H,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(D,H,ne,xe){if(D=+D,H=H>>>0,!xe){const ht=Math.pow(2,8*ne-1);le(this,D,H,ne,ht-1,-ht)}let He=0,Ne=1,Je=0;for(this[H]=D&255;++He<ne&&(Ne*=256);)D<0&&Je===0&&this[H+He-1]!==0&&(Je=1),this[H+He]=(D/Ne>>0)-Je&255;return H+ne},y.prototype.writeIntBE=function(D,H,ne,xe){if(D=+D,H=H>>>0,!xe){const ht=Math.pow(2,8*ne-1);le(this,D,H,ne,ht-1,-ht)}let He=ne-1,Ne=1,Je=0;for(this[H+He]=D&255;--He>=0&&(Ne*=256);)D<0&&Je===0&&this[H+He+1]!==0&&(Je=1),this[H+He]=(D/Ne>>0)-Je&255;return H+ne},y.prototype.writeInt8=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,1,127,-128),D<0&&(D=255+D+1),this[H]=D&255,H+1},y.prototype.writeInt16LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,32767,-32768),this[H]=D&255,this[H+1]=D>>>8,H+2},y.prototype.writeInt16BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,2,32767,-32768),this[H]=D>>>8,this[H+1]=D&255,H+2},y.prototype.writeInt32LE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,2147483647,-2147483648),this[H]=D&255,this[H+1]=D>>>8,this[H+2]=D>>>16,this[H+3]=D>>>24,H+4},y.prototype.writeInt32BE=function(D,H,ne){return D=+D,H=H>>>0,ne||le(this,D,H,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),this[H]=D>>>24,this[H+1]=D>>>16,this[H+2]=D>>>8,this[H+3]=D&255,H+4},y.prototype.writeBigInt64LE=rt(function(D,H=0){return te(this,D,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=rt(function(D,H=0){return F(this,D,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(W,D,H,ne,xe,He){if(H+ne>W.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function Ee(W,D,H,ne,xe){return D=+D,H=H>>>0,xe||X(W,D,H,4),n.write(W,D,H,ne,23,4),H+4}y.prototype.writeFloatLE=function(D,H,ne){return Ee(this,D,H,!0,ne)},y.prototype.writeFloatBE=function(D,H,ne){return Ee(this,D,H,!1,ne)};function Ie(W,D,H,ne,xe){return D=+D,H=H>>>0,xe||X(W,D,H,8),n.write(W,D,H,ne,52,8),H+8}y.prototype.writeDoubleLE=function(D,H,ne){return Ie(this,D,H,!0,ne)},y.prototype.writeDoubleBE=function(D,H,ne){return Ie(this,D,H,!1,ne)},y.prototype.copy=function(D,H,ne,xe){if(!y.isBuffer(D))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!xe&&xe!==0&&(xe=this.length),H>=D.length&&(H=D.length),H||(H=0),xe>0&&xe<ne&&(xe=ne),xe===ne||D.length===0||this.length===0)return 0;if(H<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),D.length-H<xe-ne&&(xe=D.length-H+ne);const He=xe-ne;return this===D&&typeof o.prototype.copyWithin=="function"?this.copyWithin(H,ne,xe):o.prototype.set.call(D,this.subarray(ne,xe),H),He},y.prototype.fill=function(D,H,ne,xe){if(typeof D=="string"){if(typeof H=="string"?(xe=H,H=0,ne=this.length):typeof ne=="string"&&(xe=ne,ne=this.length),xe!==void 0&&typeof xe!="string")throw new TypeError("encoding must be a string");if(typeof xe=="string"&&!y.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);if(D.length===1){const Ne=D.charCodeAt(0);(xe==="utf8"&&Ne<128||xe==="latin1")&&(D=Ne)}}else typeof D=="number"?D=D&255:typeof D=="boolean"&&(D=Number(D));if(H<0||this.length<H||this.length<ne)throw new RangeError("Out of range index");if(ne<=H)return this;H=H>>>0,ne=ne===void 0?this.length:ne>>>0,D||(D=0);let He;if(typeof D=="number")for(He=H;He<ne;++He)this[He]=D;else{const Ne=y.isBuffer(D)?D:y.from(D,xe),Je=Ne.length;if(Je===0)throw new TypeError('The value "'+D+'" is invalid for argument "value"');for(He=0;He<ne-H;++He)this[He+H]=Ne[He%Je]}return this};const Te={};function J(W,D,H){Te[W]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:D.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${W}]`,this.stack,delete this.name}get code(){return W}set code(xe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:xe,writable:!0})}toString(){return`${this.name} [${W}]: ${this.message}`}}}J("ERR_BUFFER_OUT_OF_BOUNDS",function(W){return W?`${W} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),J("ERR_INVALID_ARG_TYPE",function(W,D){return`The "${W}" argument must be of type number. Received type ${typeof D}`},TypeError),J("ERR_OUT_OF_RANGE",function(W,D,H){let ne=`The value of "${W}" is out of range.`,xe=H;return Number.isInteger(H)&&Math.abs(H)>2**32?xe=Be(String(H)):typeof H=="bigint"&&(xe=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(xe=Be(xe)),xe+="n"),ne+=` It must be ${D}. Received ${xe}`,ne},RangeError);function Be(W){let D="",H=W.length;const ne=W[0]==="-"?1:0;for(;H>=ne+4;H-=3)D=`_${W.slice(H-3,H)}${D}`;return`${W.slice(0,H)}${D}`}function st(W,D,H){Fe(D,"offset"),(W[D]===void 0||W[D+H]===void 0)&&ut(D,W.length-(H+1))}function ze(W,D,H,ne,xe,He){if(W>H||W<D){const Ne=typeof D=="bigint"?"n":"";let Je;throw D===0||D===BigInt(0)?Je=`>= 0${Ne} and < 2${Ne} ** ${(He+1)*8}${Ne}`:Je=`>= -(2${Ne} ** ${(He+1)*8-1}${Ne}) and < 2 ** ${(He+1)*8-1}${Ne}`,new Te.ERR_OUT_OF_RANGE("value",Je,W)}st(ne,xe,He)}function Fe(W,D){if(typeof W!="number")throw new Te.ERR_INVALID_ARG_TYPE(D,"number",W)}function ut(W,D,H){throw Math.floor(W)!==W?(Fe(W,H),new Te.ERR_OUT_OF_RANGE("offset","an integer",W)):D<0?new Te.ERR_BUFFER_OUT_OF_BOUNDS:new Te.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${D}`,W)}const Ye=/[^+/0-9A-Za-z-_]/g;function qe(W){if(W=W.split("=")[0],W=W.trim().replace(Ye,""),W.length<2)return"";for(;W.length%4!==0;)W=W+"=";return W}function pt(W,D){D=D||1/0;let H;const ne=W.length;let xe=null;const He=[];for(let Ne=0;Ne<ne;++Ne){if(H=W.charCodeAt(Ne),H>55295&&H<57344){if(!xe){if(H>56319){(D-=3)>-1&&He.push(239,191,189);continue}else if(Ne+1===ne){(D-=3)>-1&&He.push(239,191,189);continue}xe=H;continue}if(H<56320){(D-=3)>-1&&He.push(239,191,189),xe=H;continue}H=(xe-55296<<10|H-56320)+65536}else xe&&(D-=3)>-1&&He.push(239,191,189);if(xe=null,H<128){if((D-=1)<0)break;He.push(H)}else if(H<2048){if((D-=2)<0)break;He.push(H>>6|192,H&63|128)}else if(H<65536){if((D-=3)<0)break;He.push(H>>12|224,H>>6&63|128,H&63|128)}else if(H<1114112){if((D-=4)<0)break;He.push(H>>18|240,H>>12&63|128,H>>6&63|128,H&63|128)}else throw new Error("Invalid code point")}return He}function Ke(W){const D=[];for(let H=0;H<W.length;++H)D.push(W.charCodeAt(H)&255);return D}function Qe(W,D){let H,ne,xe;const He=[];for(let Ne=0;Ne<W.length&&!((D-=2)<0);++Ne)H=W.charCodeAt(Ne),ne=H>>8,xe=H%256,He.push(xe),He.push(ne);return He}function lt(W){return t.toByteArray(qe(W))}function Ve(W,D,H,ne){let xe;for(xe=0;xe<ne&&!(xe+H>=D.length||xe>=W.length);++xe)D[xe+H]=W[xe];return xe}function Xe(W,D){return W instanceof D||W!=null&&W.constructor!=null&&W.constructor.name!=null&&W.constructor.name===D.name}function mt(W){return W!==W}const Ze=function(){const W="0123456789abcdef",D=new Array(256);for(let H=0;H<16;++H){const ne=H*16;for(let xe=0;xe<16;++xe)D[ne+xe]=W[H]+W[xe]}return D}();function rt(W){return typeof BigInt>"u"?vt:W}function vt(){throw new Error("BigInt not supported")}})(buffer$2);const Buffer$1=buffer$2.Buffer,listeners=vue.reactive(new Map),EventBus={$on(u,t){let n=listeners.get(u);n||(n=new Set,listeners.set(u,n)),n.add(t)},$emit(u,...t){const n=listeners.get(u);if(n)for(const l of n)l(...t)},$off(u,t){const n=listeners.get(u);n&&n.delete(t)}};vue.readonly(EventBus);const GlobalMixin={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||core.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||core.Capacitor.getPlatform()==="ios"},isNative(){return core.Capacitor.isNativePlatform()}},methods:{getIcon(u){return this.isNative?`/icons/${u}`:"https://cdn.tapni.co/icons/"+u},errorHandler(u){return u&&u.response&&u.response.data&&u.response.data.error&&((u.response.data.error==="ACCESS_DENIED"||u.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!u.response.data.error.includes("Network Error")&&!u.response.data.error.includes("Cannot read properties")&&this.errorSnack(u.response.data.error)),u},errorSnack(u){let t=document.getElementById("snackbar"),n=document.getElementById("errorMessage"),l=document.getElementById("errorSnack");n.innerHTML=u,t.classList.add("show-snack"),l.classList.add("active-snack"),setTimeout(function(){l.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},successSnack(u){let t=document.getElementById("snackbar"),n=document.getElementById("successMessage"),l=document.getElementById("successSnack");n.innerHTML=u,t.classList.add("show-snack"),l.classList.add("active-snack"),setTimeout(function(){l.classList.remove("active-snack"),t.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(u){return u<10?"":u<=50?"🔥":u<=100?"💥":u<=300?"💎":u>300?"🚀":""},isEmpty(u){if(!u)return!0;for(let t in u)if(u.hasOwnProperty(t))return!1;return JSON.stringify(u)===JSON.stringify({})},copy(u=""){const t=document.createElement("textarea");t.value=u,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(u){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:u})}catch(t){return console.error("grecaptcha_error",t),null}}}},{mapState,mapActions,mapGetters}=vuex.createNamespacedHelpers("auth"),AuthMixin={mixins:[GlobalMixin],props:{isModal:{type:Boolean,required:!1,default:!1}},computed:{...mapState(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...mapGetters(["accessToken","refreshTokens","isLoggedIn","renderView","appLanguage"])},methods:{...mapActions(["setLoggedInAccounts","setLoggedInUserId","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setStorageItem","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setRealm","setResponseType","switchAccount","loginSetup","loginSuccess","refreshTokenAction"])},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.setRealm(this.$route.query.realm)},deep:!0}}},_export_sfc=(u,t)=>{const n=u.__vccOpts||u;for(const[l,h]of t)n[l]=h;return n},_sfc_main$d={name:"AuthWelcome",mixins:[AuthMixin],data(){return{loading:!0}},async mounted(){let u=document.getElementById("tapniVideo");u.addEventListener("canplay",function(){if(document.body.contains(u))try{u.play()}catch(t){console.error("Play was interrupted:",t)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):EventBus.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},_hoisted_1$d={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},_hoisted_2$c=["autoplay"],_hoisted_3$d={class:"bold full-top no-bottom center-text text-[24px]"},_hoisted_4$c={class:"full-bottom half-top center-text color-black font-16"},_hoisted_6$b={class:"page-login-links center-text"},_hoisted_8$6={key:3,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}};function _sfc_render$c(u,t,n,l,h,o){const _=vue.resolveComponent("router-link");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$d,[vue.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:u.isNative},t[1]||(t[1]=[vue.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1)]),8,_hoisted_2$c),vue.createElementVNode("h1",_hoisted_3$d,vue.toDisplayString(u.ssoLang[this.appLanguage].welcome),1),vue.createElementVNode("p",_hoisted_4$c,vue.toDisplayString(u.ssoLang[this.appLanguage].welcome_p1),1),vue.createCommentVNode("",!0),vue.createCommentVNode("",!0),vue.createVNode(_,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:vue.withCtx(()=>[vue.createElementVNode("span",null,vue.toDisplayString(u.ssoLang[this.appLanguage].create_account),1)]),_:1}),vue.createElementVNode("div",_hoisted_6$b,[vue.createVNode(_,{to:"/login"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(u.ssoLang[this.appLanguage].already_registered)+"? ",1),vue.createElementVNode("b",null,vue.toDisplayString(u.ssoLang[this.appLanguage].sign_in),1)]),_:1}),t[2]||(t[2]=vue.createElementVNode("div",{class:"clear"},null,-1))]),vue.createCommentVNode("",!0),this.isNative?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$6,t[3]||(t[3]=[vue.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-cb61958b><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-cb61958b></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-cb61958b><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-cb61958b></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-cb61958b><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-cb61958b></a>',3)])))])}const AuthWelcome=_export_sfc(_sfc_main$d,[["render",_sfc_render$c],["__scopeId","data-v-cb61958b"]]),Welcome$1=Object.freeze(Object.defineProperty({__proto__:null,default:AuthWelcome},Symbol.toStringTag,{value:"Module"})),version$3="1.0.38",UserService={getMe(){return api$1().get("/users/me")},getByUsername(u){let t=document.referrer||"",n=u.utmParams||{};return u.dontTap&&(n.dontTap=!0),api$1().get(`/users/${u.username}`,{params:n,headers:{"X-Referer":t}})},getByNumber(u){let t=document.referrer||"",n=u.utmParams||{};return u.dontTap&&(n.dontTap=!0),api$1().get(`/users/tag/${u.serial}`,{params:n,headers:{"X-Referer":t}})},save(u){return api$1().put("/users",u)},newPassword(u){return api$1().put("/users/new-password",u)},connect(u){return api$1().post("/users/connect",u)},eventLog(u){return api$1().post("/users/log",u)},deleteAccount(u){return api$1().post("/users/profile/delete",u)},registerDevice(u){return api$1().post("/users/device/register",u)},addFcmToken(u){return api$1().post("/users/device/fcm",u)},loginUsingQR(u){return api$1().post("/users/qr/login",u)}},DeviceService={registerDevice(u){return api$1().post("/devices/add",u)},addFcmToken(u){return api$1().post("/devices/fcm/add",u)}},CompanyService={getBySSOEmail(u){return api$1().get(`/company/sso/${u}`)},acceptCompanyInvitation(u){return api$1().get(`/users/invitation?ic=${u}`)},qrCodePooling(u){return api$1().post("/company/login/qr",u)}},enLocale={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>
7
7
  so that we can know who you are.
8
8
  <br><br>Be exclusive.
9
9
  <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>
@@ -1390,7 +1390,7 @@ function _sfc_render$7(u, t, n, l, d, o) {
1390
1390
  const AuthWelcome = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$7], ["__scopeId", "data-v-cb61958b"]]), Welcome$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1391
1391
  __proto__: null,
1392
1392
  default: AuthWelcome
1393
- }, Symbol.toStringTag, { value: "Module" })), version$3 = "1.0.37", UserService = {
1393
+ }, Symbol.toStringTag, { value: "Module" })), version$3 = "1.0.38", UserService = {
1394
1394
  getMe() {
1395
1395
  return api$1().get("/users/me");
1396
1396
  },
@@ -5824,7 +5824,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5824
5824
  app_region: "지역",
5825
5825
  app_region_p: "맞춤형 결제 및 지원을 위해 지역을 선택하세요"
5826
5826
  }
5827
- }, Welcome = () => Promise.resolve().then(() => Welcome$1), Login$1 = () => Promise.resolve().then(() => Login), Register$1 = () => Promise.resolve().then(() => Register), Reset$1 = () => Promise.resolve().then(() => Reset), Account$1 = () => Promise.resolve().then(() => Account), Verify$1 = () => Promise.resolve().then(() => Verify), Callback$1 = () => Promise.resolve().then(() => Callback), QR = () => import("./QR-BzZfdP0g.js"), Security$1 = () => Promise.resolve().then(() => Security), Apps = () => import("./Apps-DVN_XPTJ.js"), Billing = () => import("./Billing-Br-tdiyC.js"), CustomApp = () => import("./CustomApp-CHcb9znC.js"), General = () => import("./General-OQWiNYkq.js"), routes = [
5827
+ }, Welcome = () => Promise.resolve().then(() => Welcome$1), Login$1 = () => Promise.resolve().then(() => Login), Register$1 = () => Promise.resolve().then(() => Register), Reset$1 = () => Promise.resolve().then(() => Reset), Account$1 = () => Promise.resolve().then(() => Account), Verify$1 = () => Promise.resolve().then(() => Verify), Callback$1 = () => Promise.resolve().then(() => Callback), QR = () => import("./QR-PAbloyew.js"), Security$1 = () => Promise.resolve().then(() => Security), Apps = () => import("./Apps-C4nFFTR3.js"), Billing = () => import("./Billing-Cx3P0KLS.js"), CustomApp = () => import("./CustomApp-CPUfVF2K.js"), General = () => import("./General-DEC_IL_V.js"), routes = [
5828
5828
  {
5829
5829
  path: "/welcome",
5830
5830
  name: "AuthWelcome",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -64,4 +64,4 @@
64
64
  "vite": "^5.4.11",
65
65
  "vite-plugin-node-polyfills": "^0.22.0"
66
66
  }
67
- }
67
+ }