scope360-core 0.0.273 → 0.0.274
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[dm]=this[dm]={accessors:{}}).accessors,s=this.prototype;function o(a){const l=ko(a);r[l]||(Xb(s,a),r[l]=!0)}return Y.isArray(e)?e.forEach(o):o(e),this}}Ka.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(Ka.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Y.freezeMethods(Ka);const mr=Ka;function lu(t,e){const n=this||ou,r=e||n,s=mr.from(r.headers);let o=r.data;return Y.forEach(t,function(l){o=l.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function um(t){return!!(t&&t.__CANCEL__)}function Co(t,e,n){De.call(this,t??"canceled",De.ERR_CANCELED,e,n),this.name="CanceledError"}Y.inherits(Co,De,{__CANCEL__:!0});function Qb(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Jb=Jn.hasStandardBrowserEnv?{write(t,e,n,r,s,o){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),o===!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 ek(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function tk(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function hm(t,e){return t&&!ek(e)?tk(t,e):e}const nk=Jn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let a=o;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 rk(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function sk(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[o];a||(a=d),n[s]=c,r[s]=d;let h=o,f=0;for(;h!==s;)f+=n[h++],h=h%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),d-a<e)return;const m=u&&d-u;return m?Math.round(f*1e3/m):void 0}}function fm(t,e){let n=0;const r=sk(50,250);return s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-n,c=r(l),d=o<=a;n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-o)/c:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const cu={http:Nb,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let s=t.data;const o=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(Jn.hasStandardBrowserEnv||Jn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((u=o.getContentType())!==!1){const[p,..._]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];o.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)):"";o.set("Authorization","Basic "+btoa(p+":"+_))}const f=hm(t.baseURL,t.url);h.open(t.method.toUpperCase(),im(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};Qb(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 De("Request aborted",De.ECONNABORTED,t,h)),h=null)},h.onerror=function(){r(new De("Network Error",De.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let _=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const y=t.transitional||am;t.timeoutErrorMessage&&(_=t.timeoutErrorMessage),r(new De(_,y.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,t,h)),h=null},Jn.hasStandardBrowserEnv&&(l&&Y.isFunction(l)&&(l=l(t)),l||l!==!1&&nk(f))){const p=t.xsrfHeaderName&&t.xsrfCookieName&&Jb.read(t.xsrfCookieName);p&&o.set(t.xsrfHeaderName,p)}s===void 0&&o.setContentType(null),"setRequestHeader"in h&&Y.forEach(o.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",fm(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",fm(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=p=>{h&&(r(!p||p.type?new Co(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=rk(f);if(g&&Jn.protocols.indexOf(g)===-1){r(new De("Unsupported protocol "+g+":",De.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 mm=t=>`- ${t}`,ik=t=>Y.isFunction(t)||t===null||t===!1,pm={getAdapter:t=>{t=Y.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!ik(n)&&(r=cu[(a=String(n)).toLowerCase()],r===void 0))throw new De(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=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?o.length>1?`since :
|
|
20
20
|
`+o.map(mm).join(`
|
|
21
21
|
`):" "+mm(o[0]):"as no adapter specified";throw new De("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 Co(null,t)}function gm(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),pm.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 um(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 _m=t=>t instanceof mr?{...t}:t;function ki(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 o(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:o,method:o,data:o,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(_m(d),_m(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 ym="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 wm={};uu.transitional=function(e,n,r){function s(o,a){return"[Axios v"+ym+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,l)=>{if(e===!1)throw new De(s(a," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!wm[a]&&(wm[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,l):!0}};function ok(t,e,n){if(typeof t!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],a=e[o];if(a){const l=t[o],c=l===void 0||a(l,o,t);if(c!==!0)throw new De("option "+o+" must be "+c,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+o,De.ERR_BAD_OPTION)}}const hu={assertOptions:ok,validators:uu},Kr=hu.validators;class Xa{constructor(e){this.defaults=e,this.interceptors={request:new om,response:new om}}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 o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
22
|
-
`+o):r.stack=o}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ki(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&hu.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),s!=null&&(Y.isFunction(s)?n.paramsSerializer={serialize:s}:hu.assertOptions(s,{encode:Kr.function,serialize:Kr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&Y.merge(o.common,o[n.method]);o&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=mr.concat(a,o);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=[gm.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=gm.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=ki(this.defaults,e);const n=hm(e.baseURL,e.url);return im(n,e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){Xa.prototype[e]=function(n,r){return this.request(ki(r||{},{method:e,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,l){return this.request(ki(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Xa.prototype[e]=n(),Xa.prototype[e+"Form"]=n(!0)});const Qa=Xa;class fu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,l){r.reason||(r.reason=new Co(o,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 ak=fu;function lk(t){return function(n){return t.apply(null,n)}}function ck(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 dk=mu;function bm(t){const e=new Qa(t),n=Y0(Qa.prototype.request,e);return Y.extend(n,Qa.prototype,e,{allOwnKeys:!0}),Y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return bm(ki(t,s))},n}const bt=bm(ou);bt.Axios=Qa,bt.CanceledError=Co,bt.CancelToken=ak,bt.isCancel=um,bt.VERSION=ym,bt.toFormData=qa,bt.AxiosError=De,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=lk,bt.isAxiosError=ck,bt.mergeConfig=ki,bt.AxiosHeaders=mr,bt.formToJSON=t=>cm(Y.isHTMLForm(t)?new FormData(t):t),bt.getAdapter=pm.getAdapter,bt.HttpStatusCode=dk,bt.default=bt;const xo=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 uk={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,o,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(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],a={},l=0;l<o.length;l++){var c=o[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,o){n(s,"",Ja({},o,{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 Ci=pu(uk,{path:"/"});class rt{static setItem(e,n,r=Date.now()+31449600){Ci.set(e,n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io",expires:new Date(r*1e3),secure:!0,sameSite:"strict"})}static getItem(e){return Ci.get(e)}static removeItem(e){Ci.remove(e,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static clear(){const e=Object.keys(Ci.get());for(const n of e)Ci.remove(n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static getAll(){return Ci.get()}}const km=t=>(i.pushScopeId("data-v-3566bd30"),t=t(),i.popScopeId(),t),hk={class:"scope-dropzone__container"},fk={key:0,class:"scope-dropzone__label"},mk={key:1,class:"scope-dropzone__prompt"},pk={class:"scope-dropzone__content"},gk=km(()=>i.createElementVNode("div",{class:"scope-dropzone__prompt"},"Drag & Drop your files here",-1)),_k=km(()=>i.createElementVNode("div",{class:"scope-dropzone__or"},"OR",-1)),yk={key:2,class:"scope-dropzone__files"},wk={class:"scope-dropzone__file"},bk={class:"scope-dropzone__file__img-wrapper"},kk=["src"],Ck={class:"scope-dropzone__file__options"},xk={class:"scope-dropzone__file__name"},Mk=Se({__name:"Dropzone",props:i.mergeModels({fullWidth:Boolean,label:String,limit:{type:Number,default:5},lengthError:String,prompt:String,mediaUrl:String,isDelete:Boolean},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{error:e}=fh(),n=t,r=i.useModel(t,"modelValue"),s=i.ref([]),o=i.ref(null);i.ref(null);const a=i.ref(!1),l=()=>{o.value.click()},c=p=>{if(p.dataTransfer.files.length){o.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=xo.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 xo.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=n.mediaUrl+_.path;r.value.push({id:_.id,name:y,url:C,compressedUrl:m(C),shortcut:_.shortcut})};return i.onBeforeUnmount(()=>{s.value.forEach(p=>{r.value.push(p)})}),i.watch(()=>n.isDelete,p=>{p&&(console.log(p),h())}),(p,_)=>(i.openBlock(),i.createElementBlock("div",hk,[t.label?(i.openBlock(),i.createElementBlock("div",fk,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),t.prompt?(i.openBlock(),i.createElementBlock("div",mk,i.toDisplayString(t.prompt),1)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["scope-dropzone",{"-over":a.value,"-full-width":t.fullWidth}]),onDragover:_[0]||(_[0]=i.withModifiers(y=>a.value=!0,["prevent"])),onDragend:_[1]||(_[1]=y=>a.value=!1),onDragleave:_[2]||(_[2]=y=>a.value=!1),onDrop:i.withModifiers(c,["prevent"])},[i.createElementVNode("div",pk,[i.createVNode(i.unref(Ee),{icon:"file-bend"}),gk,_k,i.createVNode(i.unref(wa),{onClick:l,"cta-text":"Browse files",size:"sm",view:"secondary-blue",width:"157px"})]),i.createElementVNode("input",{ref_key:"input",ref:o,type:"file",name:"myFile",class:"scope-dropzone__input",onChange:d},null,544)],34),r.value.length?(i.openBlock(),i.createElementBlock("div",yk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(y,C)=>(i.openBlock(),i.createElementBlock("div",wk,[i.createElementVNode("div",bk,[i.createElementVNode("img",{class:"scope-dropzone__file__img",src:y.compressedUrl},null,8,kk),i.createElementVNode("div",Ck,[i.createVNode(i.unref(Ee),{icon:"success",class:"scope-dropzone__file__success"}),i.createVNode(i.unref(Ee),{icon:"trash",class:"scope-dropzone__file__remove",onClick:k=>u(y,C)},null,8,["onClick"])])]),i.createElementVNode("div",xk,i.toDisplayString(y.name),1)]))),256))])):i.createCommentVNode("",!0)]))}},[["__scopeId","data-v-3566bd30"]]),Cm=t=>(i.pushScopeId("data-v-cd05e8e4"),t=t(),i.popScopeId(),t),Sk={class:"sidebar-popup-container"},vk={class:"sidebar-popup__profile-info"},Dk=["src"],Tk={key:1,class:"sidebar-popup__profile-info__letter"},Ok={class:"sidebar-popup__profile-info__wrapper"},Ek={class:"sidebar-popup__profile-info__name"},$k={class:"sidebar-popup__profile-info__e-mail"},Pk=Cm(()=>i.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Lk={class:"sidebar-popup__tabs"},Vk=["onClick"],Nk={class:"sidebar-popup__tab__icon-wrapper"},Bk={class:"sidebar-popup__tab__name"},Ak=Cm(()=>i.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Fk={class:"sidebar-popup__actions-buttons"},Rk=Se({__name:"SidebarPopup",props:{activeSection:String,user:Object},emits:["logout"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1),o=i.ref(null),a=i.reactive([{name:"charts",isActive:!0},{name:"futures",isActive:!0},{name:"spot",isActive:!1},{name:"trading terminal",isActive:!1}]),l=i.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=>{o.value&&!o.value.contains(f.target)&&u()};return i.onMounted(()=>{document.addEventListener("click",h)}),i.onUnmounted(()=>{document.removeEventListener("click",h)}),(f,m)=>(i.openBlock(),i.createElementBlock("div",Sk,[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-popup-container__icon-wrapper",{"-is-active":s.value}]),onClick:i.withModifiers(u,["stop"]),name:"popup-icon-wrapper"},[i.createVNode(Ee,{icon:"pop-up_opener"})],2),s.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"sidebar-popup",ref_key:"popupRef",ref:o},[i.createElementVNode("div",vk,[t.user.image?(i.openBlock(),i.createElementBlock("img",{key:0,src:t.user.image,class:"sidebar-popup__profile-info__photo"},null,8,Dk)):(i.openBlock(),i.createElementBlock("div",Tk,i.toDisplayString(l.value),1)),i.createElementVNode("div",Ok,[i.createElementVNode("div",Ek,i.toDisplayString(t.user.name),1),i.createElementVNode("div",$k,i.toDisplayString(t.user.email),1)])]),Pk,i.createElementVNode("div",Lk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,g=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["sidebar-popup__tab",{"-is-active":g.name===t.activeSection},{"-is-disable":!g.isActive}]),onClick:p=>d(g)},[i.createElementVNode("div",Nk,[i.createVNode(Ee,{icon:g.name.split(" ").join("_")},null,8,["icon"])]),i.createElementVNode("div",Bk,i.toDisplayString(g.name),1)],10,Vk))),256))]),Ak,i.createElementVNode("div",Fk,[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-popup__settings",{"-is-active":t.activeSection==="settings"}]),onClick:c}," Settings ",2),i.createElementVNode("div",{class:"sidebar-popup__logout",onClick:m[0]||(m[0]=g=>r("logout"))},"Log out")])],512)):i.createCommentVNode("",!0)]))}},[["__scopeId","data-v-cd05e8e4"]]),Ik={class:"scope-tooltip"},pn=Se({__name:"Tooltip",props:{alternative:Boolean,position:{type:String,default:"top"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Ik,[i.createElementVNode("div",{class:i.normalizeClass(["scope-tooltip__icon-wrapper",{"-alternative":t.alternative}])},[i.createVNode(i.unref(Ee),{icon:"tip",class:"scope-tooltip__icon"})],2),i.createElementVNode("div",{class:i.normalizeClass(["scope-tooltip__text",{"-alternative":t.alternative},`-${t.position}`])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2)]))}},[["__scopeId","data-v-b3a05358"]]),Hk={class:"no-more"},zk={class:"no-more__icon-wrapper"},Yk={class:"__text-wrapper"},Wk={class:"no-more__title"},jk={class:"no-more__subtitle"},gu=Se({__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)=>(i.openBlock(),i.createElementBlock("div",Hk,[i.createElementVNode("div",zk,[i.createVNode(i.unref(Ee),{icon:t.icon},null,8,["icon"])]),i.createElementVNode("div",Yk,[i.createElementVNode("div",Wk,i.toDisplayString(t.title),1),i.createElementVNode("div",jk,i.toDisplayString(t.subtitle),1)])]))}},[["__scopeId","data-v-2d206905"]]),xm=t=>(i.pushScopeId("data-v-ea085d6b"),t=t(),i.popScopeId(),t),Zk={class:"long-short"},Uk=xm(()=>i.createElementVNode("span",null,"L",-1)),qk={class:"long-short__item__text"},Gk=xm(()=>i.createElementVNode("span",null,"S",-1)),Kk={class:"long-short__item__text"},Mm=Se({__name:"LongShort",props:{long:{type:Number,default:0},short:{type:Number,default:0},isHidden:Boolean},setup(t){const e=t,n=i.computed(()=>{const r=e.long/(e.long+e.short)*100;return isNaN(r)?50:r});return(r,s)=>(i.openBlock(),i.createElementBlock("div",Zk,[i.createElementVNode("div",{class:"long-short__item -long",style:i.normalizeStyle(`width: ${n.value}%`)},[Uk,i.createElementVNode("div",qk,i.toDisplayString(i.unref(Ce)(t.isHidden,i.unref(Et)(t.long/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4),i.createElementVNode("div",{class:"long-short__item -short",style:i.normalizeStyle(`width: ${100-n.value}%`)},[Gk,i.createElementVNode("div",Kk,i.toDisplayString(i.unref(Ce)(t.isHidden,i.unref(Et)(t.short/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4)]))}},[["__scopeId","data-v-ea085d6b"]]);/*!
|
|
22
|
+
`+o):r.stack=o}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ki(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&hu.assertOptions(r,{silentJSONParsing:Kr.transitional(Kr.boolean),forcedJSONParsing:Kr.transitional(Kr.boolean),clarifyTimeoutError:Kr.transitional(Kr.boolean)},!1),s!=null&&(Y.isFunction(s)?n.paramsSerializer={serialize:s}:hu.assertOptions(s,{encode:Kr.function,serialize:Kr.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&Y.merge(o.common,o[n.method]);o&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=mr.concat(a,o);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=[gm.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=gm.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=ki(this.defaults,e);const n=hm(e.baseURL,e.url);return im(n,e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){Xa.prototype[e]=function(n,r){return this.request(ki(r||{},{method:e,url:n,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,l){return this.request(ki(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Xa.prototype[e]=n(),Xa.prototype[e+"Form"]=n(!0)});const Qa=Xa;class fu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,l){r.reason||(r.reason=new Co(o,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 ak=fu;function lk(t){return function(n){return t.apply(null,n)}}function ck(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 dk=mu;function bm(t){const e=new Qa(t),n=Y0(Qa.prototype.request,e);return Y.extend(n,Qa.prototype,e,{allOwnKeys:!0}),Y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return bm(ki(t,s))},n}const bt=bm(ou);bt.Axios=Qa,bt.CanceledError=Co,bt.CancelToken=ak,bt.isCancel=um,bt.VERSION=ym,bt.toFormData=qa,bt.AxiosError=De,bt.Cancel=bt.CanceledError,bt.all=function(e){return Promise.all(e)},bt.spread=lk,bt.isAxiosError=ck,bt.mergeConfig=ki,bt.AxiosHeaders=mr,bt.formToJSON=t=>cm(Y.isHTMLForm(t)?new FormData(t):t),bt.getAdapter=pm.getAdapter,bt.HttpStatusCode=dk,bt.default=bt;const xo=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 uk={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,o,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(o,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],a={},l=0;l<o.length;l++){var c=o[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,o){n(s,"",Ja({},o,{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 Ci=pu(uk,{path:"/"});class rt{static setItem(e,n,r=Date.now()+31449600){Ci.set(e,n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io",expires:new Date(r*1e3),secure:!0,sameSite:"strict"})}static getItem(e){return Ci.get(e)}static removeItem(e){Ci.remove(e,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static clear(){const e=Object.keys(Ci.get());for(const n of e)Ci.remove(n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static getAll(){return Ci.get()}}const km=t=>(i.pushScopeId("data-v-2006a023"),t=t(),i.popScopeId(),t),hk={class:"scope-dropzone__container"},fk={key:0,class:"scope-dropzone__label"},mk={key:1,class:"scope-dropzone__prompt"},pk={class:"scope-dropzone__content"},gk=km(()=>i.createElementVNode("div",{class:"scope-dropzone__prompt"},"Drag & Drop your files here",-1)),_k=km(()=>i.createElementVNode("div",{class:"scope-dropzone__or"},"OR",-1)),yk={key:2,class:"scope-dropzone__files"},wk={class:"scope-dropzone__file"},bk={class:"scope-dropzone__file__img-wrapper"},kk=["src"],Ck={class:"scope-dropzone__file__options"},xk={class:"scope-dropzone__file__name"},Mk=Se({__name:"Dropzone",props:i.mergeModels({fullWidth:Boolean,label:String,limit:{type:Number,default:5},lengthError:String,prompt:String,mediaUrl:String,isDelete:Boolean},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{error:e}=fh(),n=t,r=i.useModel(t,"modelValue"),s=i.ref([]),o=i.ref(null);i.ref(null);const a=i.ref(!1),l=()=>{o.value.click()},c=p=>{if(p.dataTransfer.files.length){o.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=xo.delete(`${n.mediaUrl}/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 xo.post(`${n.mediaUrl}/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=`${n.mediaUrl}/media/${_.path}`;r.value.push({id:_.id,name:y,url:C,compressedUrl:m(C),shortcut:_.shortcut})};return i.onBeforeUnmount(()=>{s.value.forEach(p=>{r.value.push(p)})}),i.watch(()=>n.isDelete,p=>{p&&(console.log(p),h())}),(p,_)=>(i.openBlock(),i.createElementBlock("div",hk,[t.label?(i.openBlock(),i.createElementBlock("div",fk,i.toDisplayString(t.label),1)):i.createCommentVNode("",!0),t.prompt?(i.openBlock(),i.createElementBlock("div",mk,i.toDisplayString(t.prompt),1)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:i.normalizeClass(["scope-dropzone",{"-over":a.value,"-full-width":t.fullWidth}]),onDragover:_[0]||(_[0]=i.withModifiers(y=>a.value=!0,["prevent"])),onDragend:_[1]||(_[1]=y=>a.value=!1),onDragleave:_[2]||(_[2]=y=>a.value=!1),onDrop:i.withModifiers(c,["prevent"])},[i.createElementVNode("div",pk,[i.createVNode(i.unref(Ee),{icon:"file-bend"}),gk,_k,i.createVNode(i.unref(wa),{onClick:l,"cta-text":"Browse files",size:"sm",view:"secondary-blue",width:"157px"})]),i.createElementVNode("input",{ref_key:"input",ref:o,type:"file",name:"myFile",class:"scope-dropzone__input",onChange:d},null,544)],34),r.value.length?(i.openBlock(),i.createElementBlock("div",yk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(r.value,(y,C)=>(i.openBlock(),i.createElementBlock("div",wk,[i.createElementVNode("div",bk,[i.createElementVNode("img",{class:"scope-dropzone__file__img",src:y.compressedUrl},null,8,kk),i.createElementVNode("div",Ck,[i.createVNode(i.unref(Ee),{icon:"success",class:"scope-dropzone__file__success"}),i.createVNode(i.unref(Ee),{icon:"trash",class:"scope-dropzone__file__remove",onClick:k=>u(y,C)},null,8,["onClick"])])]),i.createElementVNode("div",xk,i.toDisplayString(y.name),1)]))),256))])):i.createCommentVNode("",!0)]))}},[["__scopeId","data-v-2006a023"]]),Cm=t=>(i.pushScopeId("data-v-cd05e8e4"),t=t(),i.popScopeId(),t),Sk={class:"sidebar-popup-container"},vk={class:"sidebar-popup__profile-info"},Dk=["src"],Tk={key:1,class:"sidebar-popup__profile-info__letter"},Ok={class:"sidebar-popup__profile-info__wrapper"},Ek={class:"sidebar-popup__profile-info__name"},$k={class:"sidebar-popup__profile-info__e-mail"},Pk=Cm(()=>i.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Lk={class:"sidebar-popup__tabs"},Vk=["onClick"],Nk={class:"sidebar-popup__tab__icon-wrapper"},Bk={class:"sidebar-popup__tab__name"},Ak=Cm(()=>i.createElementVNode("div",{class:"sidebar-popup__divider"},null,-1)),Fk={class:"sidebar-popup__actions-buttons"},Rk=Se({__name:"SidebarPopup",props:{activeSection:String,user:Object},emits:["logout"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1),o=i.ref(null),a=i.reactive([{name:"charts",isActive:!0},{name:"futures",isActive:!0},{name:"spot",isActive:!1},{name:"trading terminal",isActive:!1}]),l=i.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=>{o.value&&!o.value.contains(f.target)&&u()};return i.onMounted(()=>{document.addEventListener("click",h)}),i.onUnmounted(()=>{document.removeEventListener("click",h)}),(f,m)=>(i.openBlock(),i.createElementBlock("div",Sk,[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-popup-container__icon-wrapper",{"-is-active":s.value}]),onClick:i.withModifiers(u,["stop"]),name:"popup-icon-wrapper"},[i.createVNode(Ee,{icon:"pop-up_opener"})],2),s.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"sidebar-popup",ref_key:"popupRef",ref:o},[i.createElementVNode("div",vk,[t.user.image?(i.openBlock(),i.createElementBlock("img",{key:0,src:t.user.image,class:"sidebar-popup__profile-info__photo"},null,8,Dk)):(i.openBlock(),i.createElementBlock("div",Tk,i.toDisplayString(l.value),1)),i.createElementVNode("div",Ok,[i.createElementVNode("div",Ek,i.toDisplayString(t.user.name),1),i.createElementVNode("div",$k,i.toDisplayString(t.user.email),1)])]),Pk,i.createElementVNode("div",Lk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(a,g=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["sidebar-popup__tab",{"-is-active":g.name===t.activeSection},{"-is-disable":!g.isActive}]),onClick:p=>d(g)},[i.createElementVNode("div",Nk,[i.createVNode(Ee,{icon:g.name.split(" ").join("_")},null,8,["icon"])]),i.createElementVNode("div",Bk,i.toDisplayString(g.name),1)],10,Vk))),256))]),Ak,i.createElementVNode("div",Fk,[i.createElementVNode("div",{class:i.normalizeClass(["sidebar-popup__settings",{"-is-active":t.activeSection==="settings"}]),onClick:c}," Settings ",2),i.createElementVNode("div",{class:"sidebar-popup__logout",onClick:m[0]||(m[0]=g=>r("logout"))},"Log out")])],512)):i.createCommentVNode("",!0)]))}},[["__scopeId","data-v-cd05e8e4"]]),Ik={class:"scope-tooltip"},pn=Se({__name:"Tooltip",props:{alternative:Boolean,position:{type:String,default:"top"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Ik,[i.createElementVNode("div",{class:i.normalizeClass(["scope-tooltip__icon-wrapper",{"-alternative":t.alternative}])},[i.createVNode(i.unref(Ee),{icon:"tip",class:"scope-tooltip__icon"})],2),i.createElementVNode("div",{class:i.normalizeClass(["scope-tooltip__text",{"-alternative":t.alternative},`-${t.position}`])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2)]))}},[["__scopeId","data-v-b3a05358"]]),Hk={class:"no-more"},zk={class:"no-more__icon-wrapper"},Yk={class:"__text-wrapper"},Wk={class:"no-more__title"},jk={class:"no-more__subtitle"},gu=Se({__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)=>(i.openBlock(),i.createElementBlock("div",Hk,[i.createElementVNode("div",zk,[i.createVNode(i.unref(Ee),{icon:t.icon},null,8,["icon"])]),i.createElementVNode("div",Yk,[i.createElementVNode("div",Wk,i.toDisplayString(t.title),1),i.createElementVNode("div",jk,i.toDisplayString(t.subtitle),1)])]))}},[["__scopeId","data-v-2d206905"]]),xm=t=>(i.pushScopeId("data-v-ea085d6b"),t=t(),i.popScopeId(),t),Zk={class:"long-short"},Uk=xm(()=>i.createElementVNode("span",null,"L",-1)),qk={class:"long-short__item__text"},Gk=xm(()=>i.createElementVNode("span",null,"S",-1)),Kk={class:"long-short__item__text"},Mm=Se({__name:"LongShort",props:{long:{type:Number,default:0},short:{type:Number,default:0},isHidden:Boolean},setup(t){const e=t,n=i.computed(()=>{const r=e.long/(e.long+e.short)*100;return isNaN(r)?50:r});return(r,s)=>(i.openBlock(),i.createElementBlock("div",Zk,[i.createElementVNode("div",{class:"long-short__item -long",style:i.normalizeStyle(`width: ${n.value}%`)},[Uk,i.createElementVNode("div",qk,i.toDisplayString(i.unref(Ce)(t.isHidden,i.unref(Et)(t.long/(t.long+t.short)*100,1),{repeat:3}))+"% ",1)],4),i.createElementVNode("div",{class:"long-short__item -short",style:i.normalizeStyle(`width: ${100-n.value}%`)},[Gk,i.createElementVNode("div",Kk,i.toDisplayString(i.unref(Ce)(t.isHidden,i.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
|