scope360-core 0.0.213 → 0.0.214

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.
@@ -19,7 +19,7 @@
19
19
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[cm]=this[cm]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=bo(a);r[l]||(Wb(s,a),r[l]=!0)}return Y.isArray(e)?e.forEach(i):i(e),this}}Ga.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(Ga.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Y.freezeMethods(Ga);const mr=Ga;function lu(t,e){const n=this||ou,r=e||n,s=mr.from(r.headers);let i=r.data;return Y.forEach(t,function(l){i=l.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function dm(t){return!!(t&&t.__CANCEL__)}function ko(t,e,n){ve.call(this,t??"canceled",ve.ERR_CANCELED,e,n),this.name="CanceledError"}Y.inherits(ko,ve,{__CANCEL__:!0});function jb(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Zb=Qn.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const a=[t+"="+encodeURIComponent(e)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ub(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function qb(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function um(t,e){return t&&!Ub(e)?qb(t,e):e}const Gb=Qn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let a=i;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(a){const l=Y.isString(a)?s(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function Kb(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Xb(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,a;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[i];a||(a=d),n[s]=c,r[s]=d;let h=i,f=0;for(;h!==s;)f+=n[h++],h=h%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),d-a<e)return;const m=u&&d-u;return m?Math.round(f*1e3/m):void 0}}function hm(t,e){let n=0;const r=Xb(50,250);return s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-n,c=r(l),d=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-i)/c:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const cu={http:Db,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let s=t.data;const i=mr.from(t.headers).normalize();let{responseType:a,withXSRFToken:l}=t,c;function d(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let u;if(Y.isFormData(s)){if(Qn.hasStandardBrowserEnv||Qn.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[p,..._]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",..._].join("; "))}}let h=new XMLHttpRequest;if(t.auth){const p=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+_))}const f=um(t.baseURL,t.url);h.open(t.method.toUpperCase(),sm(f,t.params,t.paramsSerializer),!0),h.timeout=t.timeout;function m(){if(!h)return;const p=mr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:p,config:t,request:h};jb(function(k){n(k),d()},function(k){r(k),d()},y),h=null}if("onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(m)},h.onabort=function(){h&&(r(new ve("Request aborted",ve.ECONNABORTED,t,h)),h=null)},h.onerror=function(){r(new ve("Network Error",ve.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let _=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const y=t.transitional||om;t.timeoutErrorMessage&&(_=t.timeoutErrorMessage),r(new ve(_,y.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,t,h)),h=null},Qn.hasStandardBrowserEnv&&(l&&Y.isFunction(l)&&(l=l(t)),l||l!==!1&&Gb(f))){const p=t.xsrfHeaderName&&t.xsrfCookieName&&Zb.read(t.xsrfCookieName);p&&i.set(t.xsrfHeaderName,p)}s===void 0&&i.setContentType(null),"setRequestHeader"in h&&Y.forEach(i.toJSON(),function(_,y){h.setRequestHeader(y,_)}),Y.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),a&&a!=="json"&&(h.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&h.addEventListener("progress",hm(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",hm(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=p=>{h&&(r(!p||p.type?new ko(null,t,h):p),h.abort(),h=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const g=Kb(f);if(g&&Qn.protocols.indexOf(g)===-1){r(new ve("Unsupported protocol "+g+":",ve.ERR_BAD_REQUEST,t));return}h.send(s||null)})}};Y.forEach(cu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const fm=t=>`- ${t}`,Jb=t=>Y.isFunction(t)||t===null||t===!1,mm={getAdapter:t=>{t=Y.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let a;if(r=n,!Jb(n)&&(r=cu[(a=String(n)).toLowerCase()],r===void 0))throw new ve(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+i]=r}if(!r){const i=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
20
20
  `+i.map(fm).join(`
21
21
  `):" "+fm(i[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:cu};function du(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ko(null,t)}function pm(t){return du(t),t.headers=mr.from(t.headers),t.data=lu.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),mm.getAdapter(t.adapter||ou.adapter)(t).then(function(r){return du(t),r.data=lu.call(t,t.transformResponse,r),r.headers=mr.from(r.headers),r},function(r){return dm(r)||(du(t),r&&r.response&&(r.response.data=lu.call(t,t.transformResponse,r.response),r.response.headers=mr.from(r.response.headers))),Promise.reject(r)})}const gm=t=>t instanceof mr?{...t}:t;function bi(t,e){e=e||{};const n={};function r(d,u,h){return Y.isPlainObject(d)&&Y.isPlainObject(u)?Y.merge.call({caseless:h},d,u):Y.isPlainObject(u)?Y.merge({},u):Y.isArray(u)?u.slice():u}function s(d,u,h){if(Y.isUndefined(u)){if(!Y.isUndefined(d))return r(void 0,d,h)}else return r(d,u,h)}function i(d,u){if(!Y.isUndefined(u))return r(void 0,u)}function a(d,u){if(Y.isUndefined(u)){if(!Y.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function l(d,u,h){if(h in e)return r(d,u);if(h in t)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,u)=>s(gm(d),gm(u),!0)};return Y.forEach(Object.keys(Object.assign({},t,e)),function(u){const h=c[u]||s,f=h(t[u],e[u],u);Y.isUndefined(f)&&h!==l||(n[u]=f)}),n}const _m="1.6.8",uu={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{uu[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ym={};uu.transitional=function(e,n,r){function s(i,a){return"[Axios v"+_m+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(e===!1)throw new ve(s(a," has been removed"+(n?" in "+n:"")),ve.ERR_DEPRECATED);return n&&!ym[a]&&(ym[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,a,l):!0}};function Qb(t,e,n){if(typeof t!="object")throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],a=e[i];if(a){const l=t[i],c=l===void 0||a(l,i,t);if(c!==!0)throw new ve("option "+i+" must be "+c,ve.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ve("Unknown option "+i,ve.ERR_BAD_OPTION)}}const hu={assertOptions:Qb,validators:uu},Gr=hu.validators;class Ka{constructor(e){this.defaults=e,this.interceptors={request:new im,response:new im}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
22
- `+i):r.stack=i}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=bi(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&hu.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),s!=null&&(Y.isFunction(s)?n.paramsSerializer={serialize:s}:hu.assertOptions(s,{encode:Gr.function,serialize:Gr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Y.merge(i.common,i[n.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=mr.concat(a,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,h=0,f;if(!c){const g=[pm.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),f=g.length,u=Promise.resolve(n);h<f;)u=u.then(g[h++],g[h++]);return u}f=l.length;let m=n;for(h=0;h<f;){const g=l[h++],p=l[h++];try{m=g(m)}catch(_){p.call(this,_);break}}try{u=pm.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,f=d.length;h<f;)u=u.then(d[h++],d[h++]);return u}getUri(e){e=bi(this.defaults,e);const n=um(e.baseURL,e.url);return sm(n,e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){Ka.prototype[e]=function(n,r){return this.request(bi(r||{},{method:e,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function n(r){return function(i,a,l){return this.request(bi(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ka.prototype[e]=n(),Ka.prototype[e+"Form"]=n(!0)});const Xa=Ka;class fu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,l){r.reason||(r.reason=new ko(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new fu(function(s){e=s}),cancel:e}}}const ek=fu;function tk(t){return function(n){return t.apply(null,n)}}function nk(t){return Y.isObject(t)&&t.isAxiosError===!0}const mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mu).forEach(([t,e])=>{mu[e]=t});const rk=mu;function wm(t){const e=new Xa(t),n=z0(Xa.prototype.request,e);return Y.extend(n,Xa.prototype,e,{allOwnKeys:!0}),Y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return wm(bi(t,s))},n}const bt=wm(ou);bt.Axios=Xa,bt.CanceledError=ko,bt.CancelToken=ek,bt.isCancel=dm,bt.VERSION=_m,bt.toFormData=Ua,bt.AxiosError=ve,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=tk,bt.isAxiosError=nk,bt.mergeConfig=bi,bt.AxiosHeaders=mr,bt.formToJSON=t=>lm(Y.isHTMLForm(t)?new FormData(t):t),bt.getAdapter=mm.getAdapter,bt.HttpStatusCode=rk,bt.default=bt;const Co=bt;/*! js-cookie v3.0.5 | MIT */function Ja(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var sk={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pu(t,e){function n(s,i,a){if(!(typeof document>"u")){a=Ja({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var c=i[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=t.read(d,u),s===u)break}catch{}}return s?a[s]:a}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",Ja({},i,{expires:-1}))},withAttributes:function(s){return pu(this.converter,Ja({},this.attributes,s))},withConverter:function(s){return pu(Ja({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ki=pu(sk,{path:"/"});class rt{static setItem(e,n,r=Date.now()+31449600){ki.set(e,n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io",expires:new Date(r*1e3),secure:!0,sameSite:"strict"})}static getItem(e){return ki.get(e)}static removeItem(e){ki.remove(e,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static clear(){const e=Object.keys(ki.get());for(const n of e)ki.remove(n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static getAll(){return ki.get()}}const bm=t=>(o.pushScopeId("data-v-b00bb400"),t=t(),o.popScopeId(),t),ik={class:"scope-dropzone__container"},ok={key:0,class:"scope-dropzone__label"},ak={key:1,class:"scope-dropzone__prompt"},lk={class:"scope-dropzone__content"},ck=bm(()=>o.createElementVNode("div",{class:"scope-dropzone__prompt"},"Drag & Drop your files here",-1)),dk=bm(()=>o.createElementVNode("div",{class:"scope-dropzone__or"},"OR",-1)),uk={key:2,class:"scope-dropzone__files"},hk={class:"scope-dropzone__file"},fk={class:"scope-dropzone__file__img-wrapper"},mk=["src"],pk={class:"scope-dropzone__file__options"},gk={class:"scope-dropzone__file__name"},_k=Oe({__name:"Dropzone",props:o.mergeModels({fullWidth:Boolean,label:String,limit:{type:Number,default:5},lengthError:String,prompt:String},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t,{expose:e}){const{error:n}=hh(),r=t,s=o.useModel(t,"modelValue"),i=o.ref([]),a=o.ref(null);o.ref(null);const l=o.ref(!1),c=()=>{a.value.click()},d=_=>{if(_.dataTransfer.files.length){a.value.files=_.dataTransfer.files;for(var y=0,C=_.dataTransfer.files.length;y<C;y++)s.value.items.length<5&&p(_.dataTransfer.files[y])}l.value=!1},u=_=>{s.value.length<5?p(_.target.files[0]):n(r.lengthError)},h=(_,y)=>{s.value.splice(y,1),i.value.push(_)},f=()=>{let _=[];i.value.forEach(y=>{let C=Co.delete(`https://media.scope360.io/auth/media/delete/${y.id}`,{headers:{"Content-Type-ID":3,Authorization:rt.getItem("isOAuth")?rt.getItem("access_token"):"Bearer "+rt.getItem("access_token")}});_.push(C)}),Promise.all(_).then(()=>{i.value=[]}).catch(y=>{n(n.response.data.error)})},m=async _=>{const y=new FormData;return y.append("file",_,_.name),await Co.post("https://media.scope360.io/auth/full/upload",y,{headers:{"Content-Type-ID":3,Authorization:rt.getItem("isOAuth")?rt.getItem("access_token"):"Bearer "+rt.getItem("access_token")}})},g=_=>{const y=_.lastIndexOf(".");return _.slice(0,y)+"_compressed"+_.slice(y)+"?compressed=true"},p=async _=>{const{data:y}=await m(_),C=y.path.substring(y.path.lastIndexOf("/")+1);y.path.lastIndexOf("/");const k="https://media.scope360.io/media/"+y.path;s.value.push({id:y.id,name:C,url:k,compressedUrl:g(k),shortcut:y.shortcut})};return o.onBeforeUnmount(()=>{i.value.forEach(_=>{s.value.push(_)})}),e({onDelete:f}),(_,y)=>(o.openBlock(),o.createElementBlock("div",ik,[t.label?(o.openBlock(),o.createElementBlock("div",ok,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.prompt?(o.openBlock(),o.createElementBlock("div",ak,o.toDisplayString(t.prompt),1)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["scope-dropzone",{"-over":l.value,"-full-width":t.fullWidth}]),onDragover:y[0]||(y[0]=o.withModifiers(C=>l.value=!0,["prevent"])),onDragend:y[1]||(y[1]=C=>l.value=!1),onDragleave:y[2]||(y[2]=C=>l.value=!1),onDrop:o.withModifiers(d,["prevent"])},[o.createElementVNode("div",lk,[o.createVNode(o.unref(Le),{icon:"file-bend"}),ck,dk,o.createVNode(o.unref(ya),{onClick:c,"cta-text":"Browse files",size:"sm",view:"secondary-blue",width:"157px"})]),o.createElementVNode("input",{ref_key:"input",ref:a,type:"file",name:"myFile",class:"scope-dropzone__input",onChange:u},null,544)],34),s.value.length?(o.openBlock(),o.createElementBlock("div",uk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,(C,k)=>(o.openBlock(),o.createElementBlock("div",hk,[o.createElementVNode("div",fk,[o.createElementVNode("img",{class:"scope-dropzone__file__img",src:C.compressedUrl},null,8,mk),o.createElementVNode("div",pk,[o.createVNode(o.unref(Le),{icon:"success",class:"scope-dropzone__file__success"}),o.createVNode(o.unref(Le),{icon:"trash",class:"scope-dropzone__file__remove",onClick:v=>h(C,k)},null,8,["onClick"])])]),o.createElementVNode("div",gk,o.toDisplayString(C.name),1)]))),256))])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-b00bb400"]]),km=t=>(o.pushScopeId("data-v-cd05e8e4"),t=t(),o.popScopeId(),t),yk={class:"sidebar-popup-container"},wk={class:"sidebar-popup__profile-info"},bk=["src"],kk={key:1,class:"sidebar-popup__profile-info__letter"},Ck={class:"sidebar-popup__profile-info__wrapper"},xk={class:"sidebar-popup__profile-info__name"},Mk={class:"sidebar-popup__profile-info__e-mail"},Sk=km(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),vk={class:"sidebar-popup__tabs"},Tk=["onClick"],Dk={class:"sidebar-popup__tab__icon-wrapper"},Ok={class:"sidebar-popup__tab__name"},Ek=km(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),$k={class:"sidebar-popup__actions-buttons"},Pk=Oe({__name:"SidebarPopup",props:{activeSection:String,user:Object},emits:["logout"],setup(t,{emit:e}){const n=t,r=e,s=o.ref(!1),i=o.ref(null),a=o.reactive([{name:"charts",isActive:!0},{name:"futures",isActive:!0},{name:"spot",isActive:!1},{name:"trading terminal",isActive:!1}]),l=o.computed(()=>n.user&&n.user.name?n.user.name.charAt(0):"U"),c=()=>{if(window!==void 0){const f=window.location.hostname==="localhost"?"http://localhost:8080":"https://scope360.io";window.open(`${f}/settings/profile`,"_self")}},d=f=>{f.isActive&&window.open(`https://${f.name}.scope360.io/`)},u=()=>{s.value=!s.value},h=f=>{i.value&&!i.value.contains(f.target)&&u()};return o.onMounted(()=>{document.addEventListener("click",h)}),o.onUnmounted(()=>{document.removeEventListener("click",h)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",yk,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup-container__icon-wrapper",{"-is-active":s.value}]),onClick:o.withModifiers(u,["stop"]),name:"popup-icon-wrapper"},[o.createVNode(Le,{icon:"pop-up_opener"})],2),s.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"sidebar-popup",ref_key:"popupRef",ref:i},[o.createElementVNode("div",wk,[t.user.image?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.user.image,class:"sidebar-popup__profile-info__photo"},null,8,bk)):(o.openBlock(),o.createElementBlock("div",kk,o.toDisplayString(l.value),1)),o.createElementVNode("div",Ck,[o.createElementVNode("div",xk,o.toDisplayString(t.user.name),1),o.createElementVNode("div",Mk,o.toDisplayString(t.user.email),1)])]),Sk,o.createElementVNode("div",vk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,g=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["sidebar-popup__tab",{"-is-active":g.name===t.activeSection},{"-is-disable":!g.isActive}]),onClick:p=>d(g)},[o.createElementVNode("div",Dk,[o.createVNode(Le,{icon:g.name.split(" ").join("_")},null,8,["icon"])]),o.createElementVNode("div",Ok,o.toDisplayString(g.name),1)],10,Tk))),256))]),Ek,o.createElementVNode("div",$k,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup__settings",{"-is-active":t.activeSection==="settings"}]),onClick:c}," Settings ",2),o.createElementVNode("div",{class:"sidebar-popup__logout",onClick:m[0]||(m[0]=g=>r("logout"))},"Log out")])],512)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-cd05e8e4"]]),Lk={class:"scope-tooltip"},pn=Oe({__name:"Tooltip",props:{alternative:Boolean,position:{type:String,default:"top"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Lk,[o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__icon-wrapper",{"-alternative":t.alternative}])},[o.createVNode(o.unref(Le),{icon:"tip",class:"scope-tooltip__icon"})],2),o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__text",{"-alternative":t.alternative},`-${t.position}`])},[o.renderSlot(e.$slots,"default",{},void 0,!0)],2)]))}},[["__scopeId","data-v-b3a05358"]]),Vk={class:"no-more"},Nk={class:"no-more__icon-wrapper"},Bk={class:"__text-wrapper"},Ak={class:"no-more__title"},Fk={class:"no-more__subtitle"},gu=Oe({__name:"NoMore",props:{title:{type:String,default:"No more trades"},subtitle:{type:String,default:"No data available for the specified period"},icon:{type:String,default:"pie-chart"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Vk,[o.createElementVNode("div",Nk,[o.createVNode(o.unref(Le),{icon:t.icon},null,8,["icon"])]),o.createElementVNode("div",Bk,[o.createElementVNode("div",Ak,o.toDisplayString(t.title),1),o.createElementVNode("div",Fk,o.toDisplayString(t.subtitle),1)])]))}},[["__scopeId","data-v-2d206905"]]),Cm=t=>(o.pushScopeId("data-v-ea085d6b"),t=t(),o.popScopeId(),t),Rk={class:"long-short"},Ik=Cm(()=>o.createElementVNode("span",null,"L",-1)),Hk={class:"long-short__item__text"},zk=Cm(()=>o.createElementVNode("span",null,"S",-1)),Yk={class:"long-short__item__text"},xm=Oe({__name:"LongShort",props:{long:{type:Number,default:0},short:{type:Number,default:0},isHidden:Boolean},setup(t){const e=t,n=o.computed(()=>{const r=e.long/(e.long+e.short)*100;return isNaN(r)?50:r});return(r,s)=>(o.openBlock(),o.createElementBlock("div",Rk,[o.createElementVNode("div",{class:"long-short__item -long",style:o.normalizeStyle(`width: ${n.value}%`)},[Ik,o.createElementVNode("div",Hk,o.toDisplayString(o.unref(Me)(t.isHidden,o.unref(Et)(t.long/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4),o.createElementVNode("div",{class:"long-short__item -short",style:o.normalizeStyle(`width: ${100-n.value}%`)},[zk,o.createElementVNode("div",Yk,o.toDisplayString(o.unref(Me)(t.isHidden,o.unref(Et)(t.short/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4)]))}},[["__scopeId","data-v-ea085d6b"]]);/*!
22
+ `+i):r.stack=i}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=bi(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&hu.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean)},!1),s!=null&&(Y.isFunction(s)?n.paramsSerializer={serialize:s}:hu.assertOptions(s,{encode:Gr.function,serialize:Gr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Y.merge(i.common,i[n.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=mr.concat(a,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let u,h=0,f;if(!c){const g=[pm.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,d),f=g.length,u=Promise.resolve(n);h<f;)u=u.then(g[h++],g[h++]);return u}f=l.length;let m=n;for(h=0;h<f;){const g=l[h++],p=l[h++];try{m=g(m)}catch(_){p.call(this,_);break}}try{u=pm.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,f=d.length;h<f;)u=u.then(d[h++],d[h++]);return u}getUri(e){e=bi(this.defaults,e);const n=um(e.baseURL,e.url);return sm(n,e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){Ka.prototype[e]=function(n,r){return this.request(bi(r||{},{method:e,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function n(r){return function(i,a,l){return this.request(bi(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Ka.prototype[e]=n(),Ka.prototype[e+"Form"]=n(!0)});const Xa=Ka;class fu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,l){r.reason||(r.reason=new ko(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new fu(function(s){e=s}),cancel:e}}}const ek=fu;function tk(t){return function(n){return t.apply(null,n)}}function nk(t){return Y.isObject(t)&&t.isAxiosError===!0}const mu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mu).forEach(([t,e])=>{mu[e]=t});const rk=mu;function wm(t){const e=new Xa(t),n=z0(Xa.prototype.request,e);return Y.extend(n,Xa.prototype,e,{allOwnKeys:!0}),Y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return wm(bi(t,s))},n}const bt=wm(ou);bt.Axios=Xa,bt.CanceledError=ko,bt.CancelToken=ek,bt.isCancel=dm,bt.VERSION=_m,bt.toFormData=Ua,bt.AxiosError=ve,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=tk,bt.isAxiosError=nk,bt.mergeConfig=bi,bt.AxiosHeaders=mr,bt.formToJSON=t=>lm(Y.isHTMLForm(t)?new FormData(t):t),bt.getAdapter=mm.getAdapter,bt.HttpStatusCode=rk,bt.default=bt;const Co=bt;/*! js-cookie v3.0.5 | MIT */function Ja(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var sk={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pu(t,e){function n(s,i,a){if(!(typeof document>"u")){a=Ja({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var c=i[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=t.read(d,u),s===u)break}catch{}}return s?a[s]:a}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",Ja({},i,{expires:-1}))},withAttributes:function(s){return pu(this.converter,Ja({},this.attributes,s))},withConverter:function(s){return pu(Ja({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var ki=pu(sk,{path:"/"});class rt{static setItem(e,n,r=Date.now()+31449600){ki.set(e,n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io",expires:new Date(r*1e3),secure:!0,sameSite:"strict"})}static getItem(e){return ki.get(e)}static removeItem(e){ki.remove(e,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static clear(){const e=Object.keys(ki.get());for(const n of e)ki.remove(n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static getAll(){return ki.get()}}const bm=t=>(o.pushScopeId("data-v-8797178e"),t=t(),o.popScopeId(),t),ik={class:"scope-dropzone__container"},ok={key:0,class:"scope-dropzone__label"},ak={key:1,class:"scope-dropzone__prompt"},lk={class:"scope-dropzone__content"},ck=bm(()=>o.createElementVNode("div",{class:"scope-dropzone__prompt"},"Drag & Drop your files here",-1)),dk=bm(()=>o.createElementVNode("div",{class:"scope-dropzone__or"},"OR",-1)),uk={key:2,class:"scope-dropzone__files"},hk={class:"scope-dropzone__file"},fk={class:"scope-dropzone__file__img-wrapper"},mk=["src"],pk={class:"scope-dropzone__file__options"},gk={class:"scope-dropzone__file__name"},_k=Oe({__name:"Dropzone",props:o.mergeModels({fullWidth:Boolean,label:String,limit:{type:Number,default:5},lengthError:String,prompt:String,isDelete:Boolean},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{error:e}=hh(),n=t,r=o.useModel(t,"modelValue"),s=o.ref([]),i=o.ref(null);o.ref(null);const a=o.ref(!1),l=()=>{i.value.click()},c=p=>{if(p.dataTransfer.files.length){i.value.files=p.dataTransfer.files;for(var _=0,y=p.dataTransfer.files.length;_<y;_++)r.value.items.length<5&&g(p.dataTransfer.files[_])}a.value=!1},d=p=>{r.value.length<5?g(p.target.files[0]):e(n.lengthError)},u=(p,_)=>{r.value.splice(_,1),s.value.push(p)},h=()=>{let p=[];s.value.forEach(_=>{let y=Co.delete(`https://media.scope360.io/auth/media/delete/${_.id}`,{headers:{"Content-Type-ID":3,Authorization:rt.getItem("isOAuth")?rt.getItem("access_token"):"Bearer "+rt.getItem("access_token")}});p.push(y)}),Promise.all(p).then(()=>{s.value=[]}).catch(_=>{e(e.response.data.error)})},f=async p=>{const _=new FormData;return _.append("file",p,p.name),await Co.post("https://media.scope360.io/auth/full/upload",_,{headers:{"Content-Type-ID":3,Authorization:rt.getItem("isOAuth")?rt.getItem("access_token"):"Bearer "+rt.getItem("access_token")}})},m=p=>{const _=p.lastIndexOf(".");return p.slice(0,_)+"_compressed"+p.slice(_)+"?compressed=true"},g=async p=>{const{data:_}=await f(p),y=_.path.substring(_.path.lastIndexOf("/")+1);_.path.lastIndexOf("/");const C="https://media.scope360.io/media/"+_.path;r.value.push({id:_.id,name:y,url:C,compressedUrl:m(C),shortcut:_.shortcut})};return o.onBeforeUnmount(()=>{s.value.forEach(p=>{r.value.push(p)})}),o.watch(()=>n.isDelete,p=>{p&&(console.log(p),h())}),(p,_)=>(o.openBlock(),o.createElementBlock("div",ik,[t.label?(o.openBlock(),o.createElementBlock("div",ok,o.toDisplayString(t.label),1)):o.createCommentVNode("",!0),t.prompt?(o.openBlock(),o.createElementBlock("div",ak,o.toDisplayString(t.prompt),1)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["scope-dropzone",{"-over":a.value,"-full-width":t.fullWidth}]),onDragover:_[0]||(_[0]=o.withModifiers(y=>a.value=!0,["prevent"])),onDragend:_[1]||(_[1]=y=>a.value=!1),onDragleave:_[2]||(_[2]=y=>a.value=!1),onDrop:o.withModifiers(c,["prevent"])},[o.createElementVNode("div",lk,[o.createVNode(o.unref(Le),{icon:"file-bend"}),ck,dk,o.createVNode(o.unref(ya),{onClick:l,"cta-text":"Browse files",size:"sm",view:"secondary-blue",width:"157px"})]),o.createElementVNode("input",{ref_key:"input",ref:i,type:"file",name:"myFile",class:"scope-dropzone__input",onChange:d},null,544)],34),r.value.length?(o.openBlock(),o.createElementBlock("div",uk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,(y,C)=>(o.openBlock(),o.createElementBlock("div",hk,[o.createElementVNode("div",fk,[o.createElementVNode("img",{class:"scope-dropzone__file__img",src:y.compressedUrl},null,8,mk),o.createElementVNode("div",pk,[o.createVNode(o.unref(Le),{icon:"success",class:"scope-dropzone__file__success"}),o.createVNode(o.unref(Le),{icon:"trash",class:"scope-dropzone__file__remove",onClick:k=>u(y,C)},null,8,["onClick"])])]),o.createElementVNode("div",gk,o.toDisplayString(y.name),1)]))),256))])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-8797178e"]]),km=t=>(o.pushScopeId("data-v-cd05e8e4"),t=t(),o.popScopeId(),t),yk={class:"sidebar-popup-container"},wk={class:"sidebar-popup__profile-info"},bk=["src"],kk={key:1,class:"sidebar-popup__profile-info__letter"},Ck={class:"sidebar-popup__profile-info__wrapper"},xk={class:"sidebar-popup__profile-info__name"},Mk={class:"sidebar-popup__profile-info__e-mail"},Sk=km(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),vk={class:"sidebar-popup__tabs"},Tk=["onClick"],Dk={class:"sidebar-popup__tab__icon-wrapper"},Ok={class:"sidebar-popup__tab__name"},Ek=km(()=>o.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),$k={class:"sidebar-popup__actions-buttons"},Pk=Oe({__name:"SidebarPopup",props:{activeSection:String,user:Object},emits:["logout"],setup(t,{emit:e}){const n=t,r=e,s=o.ref(!1),i=o.ref(null),a=o.reactive([{name:"charts",isActive:!0},{name:"futures",isActive:!0},{name:"spot",isActive:!1},{name:"trading terminal",isActive:!1}]),l=o.computed(()=>n.user&&n.user.name?n.user.name.charAt(0):"U"),c=()=>{if(window!==void 0){const f=window.location.hostname==="localhost"?"http://localhost:8080":"https://scope360.io";window.open(`${f}/settings/profile`,"_self")}},d=f=>{f.isActive&&window.open(`https://${f.name}.scope360.io/`)},u=()=>{s.value=!s.value},h=f=>{i.value&&!i.value.contains(f.target)&&u()};return o.onMounted(()=>{document.addEventListener("click",h)}),o.onUnmounted(()=>{document.removeEventListener("click",h)}),(f,m)=>(o.openBlock(),o.createElementBlock("div",yk,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup-container__icon-wrapper",{"-is-active":s.value}]),onClick:o.withModifiers(u,["stop"]),name:"popup-icon-wrapper"},[o.createVNode(Le,{icon:"pop-up_opener"})],2),s.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"sidebar-popup",ref_key:"popupRef",ref:i},[o.createElementVNode("div",wk,[t.user.image?(o.openBlock(),o.createElementBlock("img",{key:0,src:t.user.image,class:"sidebar-popup__profile-info__photo"},null,8,bk)):(o.openBlock(),o.createElementBlock("div",kk,o.toDisplayString(l.value),1)),o.createElementVNode("div",Ck,[o.createElementVNode("div",xk,o.toDisplayString(t.user.name),1),o.createElementVNode("div",Mk,o.toDisplayString(t.user.email),1)])]),Sk,o.createElementVNode("div",vk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,g=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["sidebar-popup__tab",{"-is-active":g.name===t.activeSection},{"-is-disable":!g.isActive}]),onClick:p=>d(g)},[o.createElementVNode("div",Dk,[o.createVNode(Le,{icon:g.name.split(" ").join("_")},null,8,["icon"])]),o.createElementVNode("div",Ok,o.toDisplayString(g.name),1)],10,Tk))),256))]),Ek,o.createElementVNode("div",$k,[o.createElementVNode("div",{class:o.normalizeClass(["sidebar-popup__settings",{"-is-active":t.activeSection==="settings"}]),onClick:c}," Settings ",2),o.createElementVNode("div",{class:"sidebar-popup__logout",onClick:m[0]||(m[0]=g=>r("logout"))},"Log out")])],512)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-cd05e8e4"]]),Lk={class:"scope-tooltip"},pn=Oe({__name:"Tooltip",props:{alternative:Boolean,position:{type:String,default:"top"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Lk,[o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__icon-wrapper",{"-alternative":t.alternative}])},[o.createVNode(o.unref(Le),{icon:"tip",class:"scope-tooltip__icon"})],2),o.createElementVNode("div",{class:o.normalizeClass(["scope-tooltip__text",{"-alternative":t.alternative},`-${t.position}`])},[o.renderSlot(e.$slots,"default",{},void 0,!0)],2)]))}},[["__scopeId","data-v-b3a05358"]]),Vk={class:"no-more"},Nk={class:"no-more__icon-wrapper"},Bk={class:"__text-wrapper"},Ak={class:"no-more__title"},Fk={class:"no-more__subtitle"},gu=Oe({__name:"NoMore",props:{title:{type:String,default:"No more trades"},subtitle:{type:String,default:"No data available for the specified period"},icon:{type:String,default:"pie-chart"}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",Vk,[o.createElementVNode("div",Nk,[o.createVNode(o.unref(Le),{icon:t.icon},null,8,["icon"])]),o.createElementVNode("div",Bk,[o.createElementVNode("div",Ak,o.toDisplayString(t.title),1),o.createElementVNode("div",Fk,o.toDisplayString(t.subtitle),1)])]))}},[["__scopeId","data-v-2d206905"]]),Cm=t=>(o.pushScopeId("data-v-ea085d6b"),t=t(),o.popScopeId(),t),Rk={class:"long-short"},Ik=Cm(()=>o.createElementVNode("span",null,"L",-1)),Hk={class:"long-short__item__text"},zk=Cm(()=>o.createElementVNode("span",null,"S",-1)),Yk={class:"long-short__item__text"},xm=Oe({__name:"LongShort",props:{long:{type:Number,default:0},short:{type:Number,default:0},isHidden:Boolean},setup(t){const e=t,n=o.computed(()=>{const r=e.long/(e.long+e.short)*100;return isNaN(r)?50:r});return(r,s)=>(o.openBlock(),o.createElementBlock("div",Rk,[o.createElementVNode("div",{class:"long-short__item -long",style:o.normalizeStyle(`width: ${n.value}%`)},[Ik,o.createElementVNode("div",Hk,o.toDisplayString(o.unref(Me)(t.isHidden,o.unref(Et)(t.long/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4),o.createElementVNode("div",{class:"long-short__item -short",style:o.normalizeStyle(`width: ${100-n.value}%`)},[zk,o.createElementVNode("div",Yk,o.toDisplayString(o.unref(Me)(t.isHidden,o.unref(Et)(t.short/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4)]))}},[["__scopeId","data-v-ea085d6b"]]);/*!
23
23
  * @kurkle/color v0.3.2
24
24
  * https://github.com/kurkle/color#readme
25
25
  * (c) 2023 Jukka Kurkela