1(self.webpackChunk_aqx_member_web=self.webpackChunk_aqx_member_web||[]).push([["4356"],{85117:function(e,t,n){"use strict";var r=n(66330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},68886:function(e,t,n){var r=n(88113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},30256:function(e,t,n){var r=n(88113);e.exports=/MSIE|Trident/.test(r)},98008:function(e,t,n){var r=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},91038:function(e,t,n){var r=n(82109),o=n(48457);r({target:"Array",stat:!0,forced:!n(17072)(function(e){Array.from(e)})},{from:o})},2707:function(e,t,n){"use strict";var r=n(82109),o=n(1702),i=n(19662),c=n(47908),l=n(26244),a=n(85117),s=n(41340),u=n(47293),f=n(94362),d=n(9341),p=n(68886),h=n(30256),b=n(7392),g=n(98008),y=[],v=o(y.sort),m=o(y.push),x=u(function(){y.sort(void 0)}),w=u(function(){y.sort(null)}),j=d("sort"),O=!u(function(){if(b)return b<70;if(!p||!(p>3)){if(h)return!0;if(g)return g<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case
169:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort(function(e,t){return t.v-e.v}),r=0;r<y.length;r++)t=y[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:x||!w||!j||!O},{sort:function(e){void 0!==e&&i(e);var t,n,r=c(this);if(O)return void 0===e?v(r):v(r,e);var o=[],u=l(r);for(n=0;n<u;n++)n in r&&m(o,r[n]);for(f(o,function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}),t=l(o),n=0;n<t;)r[n]=o[n++];for(;n<u;)a(r,n++);return r}})},13589:function(e,t,n){"use strict";n.d(t,{By:()=>i,Ov:()=>o,n1:()=>c});var r=n(16029),o=function(e){return e?e>0?r.a.PROFIT:r.a.LOSS:r.a.NEUTRAL},i=function(e){return e?r.a.PROFIT:r.a.LOSS},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a.PROFIT;switch(t){case r.a.PROFIT:return e.pnl.positive.default;case r.a.LOSS:return e.pnl.negative.default;case r.a.NEUTRAL:default:return e.pnl.idle.default}}},54901:function(e,t,n){"use strict";n.d(t,{X:()=>r});var r=40},74124:function(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>tS});var r=n(74512),o=n(32735),i=n(10281),c=n(45954),l=n(99667),a=n(27662),s=n(93004),u=n(2871),f=n(93262),d=n(71028),p=n(57753),h=n(54901),b=n(77253),g=n(33179);n(32564),n(92222);var y=n(81182),v=n(96838),m=n(62715),x=n(71225),w=n(38074),j=n(73407),O=n(1403),C=n(56740),P=n(76898),S=n(33007),E=n(16829),I=n(76594),T=n(78319);function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t,n,r,o,i,c){try{var l=e[i](c),a=l.value}catch(e){n(e);return}l.done?t(a):Promise.resolve(a).then(r,o)}function Z(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function c(e){L(i,r,o,c,l,"next",e)}function l(e){L(i,r,o,c,l,"throw",e)}c(void 0)})}}function A(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c.throw=l(1),c.return=l(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(l){return function(a){var s=[l,a];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}let R=function(e){var t,n=e.onLoginSuccess,i=(0,y.$G)().t,c=(0,S.VC)().theme,l=(0,O.rW)(),s=null==l?void 0:l.copytradeOAuthClientIdWeb,u=null==l?void 0:l.copytradeBrokerCode,f=(0,o.useRef)(null),d=(0,o.useRef)(null),p=(t=(0,o.useState)(!1),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,l=!1;try{for(o=o.call(e);!(c=(n=o.next()).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{c||null==o.return||o.return()}finally{if(l)throw r}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return k(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=p[0],b=p[1],g=!!s&&!!u,x=(0,o.useCallback)(function(){d.current&&(window.clearInterval(d.current),d.current=null,(0,E.t7)()),f.current=null,b(!1)},[]),L=(0,o.useCallback)(function(){d.current&&window.clearInterval(d.current),d.current=window.setInterval(function(){(!f.current||f.current.closed)&&x()},500)},[x]),R=(0,o.useCallback)(function(e){var t=window.open(e,"_blank","width=1000,height=900");t?(f.current=t,b(!0),L()):b(!1)},[L]);(0,o.useEffect)(function(){var e=function(e){e.data===a.fJ&&(x(),null==n||n()),e.data===a.rv&&(x(),C.Yu.showAlert({message:(0,j.yi)(j.c4.PW_1029),messageType:C.KK.ERROR}))};return window.addEventListener("message",e),function(){x(),window.removeEventListener("message",e)}},[x,n]);var N=(0,o.useCallback)(function(){if(h){var e;null==(e=f.current)||e.focus();return}u&&(0,T.Y)((0,E.Ro)(u))},[u,h]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D,{children:(0,r.jsx)(I.ZP,{title:i("Margin trading is complex and comes with a high risk of losing money rapidly due to leverage."),content:i("The vast majority of retail client accounts lose money when margin trading. You should consider whether you understand how margin trading works and whether you can afford to take the high risk of losing your money.")})}),(0,r.jsx)(_,{children:(0,r.jsx)(X,{children:(0,r.jsxs)(M,{children:[(0,r.jsxs)(G,{children:[(0,r.jsx)(w.ZP,{typography:m.wZ.DISPLAY_M_BOLD,children:i("Log in to Pelican Account")}
1),(0,r.jsx)(w.ZP,{typography:m.wZ.TEXT_M_REGULAR,color:c.themeColors.text.muted,children:i("To continue with copy trade, please login to your Pelican account.")})]}),(0,r.jsxs)(U,{children:[(0,r.jsx)(v.ZP,{onClick:function(){return Z(function(){var e,t,n;return A(this,function(r){switch(r.label){case 0:if(P.Z.setItem(P.V.ACTION,a.dK.LOGIN),h)return null==(e=f.current)||e.focus(),[2];if(!s||!u)return[2];return t=(0,E.Uj)(),P.Z.setItem(P.V.VERIFIER,t),[4,(0,E.OT)(t)];case 1:return n=r.sent(),R((0,E.Qn)(s,u,n,"".concat((0,E.SV)()).concat(a.D6))),[2]}})})()},variant:v.eF.FILLED_THEMED,loading:h,disabled:h||!g,children:i("Log In")}),(0,r.jsx)(v.ZP,{onClick:function(){return Z(function(){var e,t,n,r;return A(this,function(o){switch(o.label){case 0:if(P.Z.setItem(P.V.ACTION,a.dK.SIGNUP),h)return null==(e=f.current)||e.focus(),[2];if(!s||!u)return[2];return t=(0,E.zs)(22),n=(0,E.Uj)(),(0,E.Pp)(t,n),[4,(0,E.OT)(n)];case 1:return r=o.sent(),R((0,E.X0)(s,u,r,t,"".concat((0,E.SV)()).concat(a.D6))),[2]}})})()},variant:v.eF.OUTLINED_THEMED,loading:h,disabled:h||!g,children:i("Sign Up")}),(0,r.jsx)(v.ZP,{variant:v.eF.TEXT_ONLY_THEMED,onClick:N,loading:h,disabled:h,children:i("Forgot Password?")})]})]})})})]})};var D=i.ZP.div.withConfig({componentId:"sc-9d309b1e-0"})(["margin:","px;"],x.A.XL),_=i.ZP.div.withConfig({componentId:"sc-9d309b1e-1"})(["display:flex;justify-content:center;align-items:center;height:100%;padding:","px;"],x.A.XL),X=i.ZP.div.withConfig({componentId:"sc-9d309b1e-2"})(["border:1px solid ",";border-radius:","px;padding:","px;width:100%;max-width:500px;background-color:",";"],function(e){return e.theme.themeColors.border.default},x.A.L,x.A.XXXL,function(e){return e.theme.themeColors.background.default}),M=i.ZP.div.withConfig({componentId:"sc-9d309b1e-3"})(["display:flex;flex-direction:column;align-items:center;gap:28px;"]),G=i.ZP.div.withConfig({componentId:"sc-9d309b1e-4"})(["display:flex;flex-direction:column;gap:","px;width:100%;"],x.A.REGULAR),U=i.ZP.div.withConfig({componentId:"sc-9d309b1e-5"})(["display:flex;flex-direction:column;gap:","px;width:100%;"],x.A.M),N=n(61305),H=n(1753),F=n(34950),$=n(80199),B=n(18909),V=n(76498),Y=n(17580),K=n(66698),z=n(86151),q=n(15226),W=n(46645),J=n(33481),Q=n(50449);let ee=function(){var e=(0,y.$G)().t,t=(0,S.VC)().theme;return(0,r.jsxs)(et,{children:[(0,r.jsx)(w.ZP,{typography:m.wZ.TEXT_M_MEDIUM,color:t.themeColors.text.default,children:e("Copier Drawdown")}),(0,r.jsx)("a",{href:a.Sf,target:"_blank",rel:"noreferrer",onClick:function(e){return e.stopPropagation()},children:(0,r.jsx)($.ZP,{icon:$.Ro.INFO,size:$.sk.S})})]})};var et=i.ZP.div.withConfig({componentId:"sc-41bfc4c6-0"})(["display:flex;padding:","px ","px;align-items:center;width:100%;gap:","px;background-color:",";border-bottom:1px solid ",";border-top:1px solid ",";&:hover{background-color:",";}"],x.A.XS,x.A.REGULAR,x.A.XS,function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.border.default},function(e){return e.theme.themeColors.border.default},function(e){return e.theme.themeColors.background.active});let en=function(){var e=(0,y.$G)().t,t=(0,S.VC)().theme,n=(0,Q.Z)(),i=n.isPrecheckingDrawdown,c=n.handleEditCopierDrawdown,l=(0,u.jW)(),a=(0,o.useMemo)(function(){var e;return null!=(e=null==l?void 0:l.drawdown)?e:{currentLevel:0,softStopLevel:0,hardStopLevel:0}},[l]),s=a.currentLevel,f=a.softStopLevel,d=a.hardStopLevel;return(0,r.jsx)(z.Z,{selector:(0,r.jsx)(ee,{}),defaultExpanded:!0,variant:z.y.BASE,children:(0,r.jsxs)(er,{children:[(0,r.jsxs)(ei,{children:[(0,r.jsxs)(eo,{children:[(0,r.jsx)(w.ZP,{color:t.themeColors.text.muted,typography:m.wZ.TEXT_L_REGULAR,children:e("Current Level")}),(0,r.jsxs)(w.ZP,{typography:m.wZ.TEXT_L_REGULAR,children:[(0,J.Wi)((0,W.eI)(new K.BigNumber(s).times(100)),2,!1),"%"]})]}),(0,r.jsxs)(eo,{children:[(0,r.jsxs)(ea,{children:[(0,r.jsx)(w.ZP,{color:t.themeColors.text.muted,typography:m.wZ.TEXT_L_REGULAR,children:e("Soft Stop Level")}),(0,r.jsx)(q.Z,{placement:"top",trigger:"mouseenter",content:(0,r.jsx)(el,{children:e("If triggered, copying will be suspended.")}),children:(0,r.jsx)($.ZP,{icon:$.Ro.INFO,size:$.sk.S})})]}),(0,r.jsxs)(w.ZP,{typography:m.wZ.TEXT_L_REGULAR,children:[(0,J.Wi)((0,W.eI)(new K.BigNumber(f).times(100)),2,!1),"%"]})]}),(0,r.jsxs)(eo,{children:[(0,r.jsxs)(ea,{children:[(0,r.jsx)(w.ZP,{color:t.themeColors.text.muted,typography:m.wZ.TEXT_L_REGULAR,children:e("Hard Stop Level")}),(0,r.jsx)(q.Z,{placement:"top",trigger:"mouseenter",content:(0,r.jsx)(el,{children:e("If triggered, all trades will close and copying will be suspended.")}),children:(0,r.jsx)($.ZP,{icon:$.Ro.INFO,size:$.sk.S})})]}),(0,r.jsxs)(w.ZP,{typography:m.wZ.TEXT_L_REGULAR,children:[(0,J.Wi)((0,W.eI)(new K.BigNumber(d).times(100)),2,!1),"%"]})]})]}),(0,r.jsx)(ec,{children:(0,r.jsx)(v.ZP,{variant:v.eF.FILLED_THEMED,stretch:!0,onClick:c,loading:i,children:e("Edit Drawdown")})})]})})};var er=i.ZP.div.withConfig({componentId:"sc-1f235306-0"})(["display:flex;flex-direction:column;"]),eo=i.ZP.div.withConfig({componentId:"sc-1f235306-1"})(["display:flex;flex-direction:row;justify-content:space-between;"]),ei=i.ZP.div.withConfig({componentId:"sc-1f235306-2"})(["display:flex;flex-direction:column;gap:","px;padding:","px ","px;"],x.A.XS,x.A.REGULAR,x.A.M),ec=i.ZP.div.withConfig({componentId:"sc-1f235306-3"})(["display:flex;padding:","px ","px;border-top:1px solid ",";"],x.A.REGULAR,x.A.M,function(e){return e.theme.themeColors.border.default}),el=(0,i.ZP)(w.ZP).withConfig({componentId:"sc-1f235306-4"})(["color:",";padding:","px ","px;"],function(e){return e.theme.themeColors.background.default},x.A.XS,x.A.M),ea=i.ZP.div.withConfig({componentId:"sc-1f235306-5"})(["display:flex;flex-direction:row;align-items:center;gap:","px;"],x.A.XXS),es=n(97186),eu=n(88651);
1n(41539),n(21249);var ef=n(74307),ed=n(79908);let ep=function(){var e=(0,y.$G)().t,t=(0,f.kv)(),n=t.every(function(e){return e.visible}),i=(0,o.useCallback)(function(){var e=t.map(function(e){var t,r,o=!e.editable&&e.visible;return t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),r=r={visible:!n||o},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t});f.jq.updateEditingStrategySections(e)},[t,n]);return(0,r.jsx)(eh,{children:(0,r.jsx)(ed.dz,{children:(0,r.jsxs)(ed.y7,{children:[(0,r.jsx)(ef.Z,{checked:n,onClick:i}),(0,r.jsx)(eb,{typography:m.wZ.TEXT_M_MEDIUM,children:e("Show all")})]})})})};var eh=(0,i.ZP)(ed.ol).withConfig({componentId:"sc-792363a3-0"})(["border-bottom:1px solid ",";"],function(e){return e.theme.themeColors.border.subtle}),eb=(0,i.ZP)(w.ZP).withConfig({componentId:"sc-792363a3-1"})(["text-transform:capitalize;"]);n(34553);var eg=n(5513),ey=n(95339),ev=n(67445),em=n(81613);n(39714);var ex=n(759);let ew=function(e){var t,n,o=e.item,i=e.handleCheckboxChange,c=(0,ev.nB)({id:o.label}),l=c.setNodeRef,a=c.transform,s=c.transition,u=c.setActivatorNodeRef,f=c.listeners,d={transform:ex.ux.Transform.toString(a),transition:s};return(0,r.jsx)(ed.ol,{ref:l,style:d,children:(0,r.jsxs)(ed.dz,{children:[(0,r.jsxs)(ed.y7,{children:[(0,r.jsx)(ef.Z,{checked:o.visible,disabled:!o.editable,onClick:function(){o.editable&&i(o.label,!o.visible)}}),(0,r.jsx)(w.ZP,{typography:m.wZ.TEXT_M_REGULAR,children:o.label})]}),(0,r.jsx)(ej,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({ref:u},f),n=n={children:(0,r.jsx)($.ZP,{icon:$.Ro.REORDER,size:$.sk.M})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))]})},o.label)};var ej=i.zo.span.withConfig({componentId:"sc-6c849dd3-0"})(["display:flex;align-items:center;justify-content:center;width:16px;height:16px;cursor:grab;"]);function eO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function eC(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let eP=function(){var e=(0,y.$G)().t,t=(0,f.kv)();(0,o.useEffect)(function(){f.jq.initializeEditingStrategySections()},[]);var n=(0,o.useMemo)(function(){return t.map(function(t){var n,r;return{label:(0,em.el)(t.label,e),visible:null!=(n=t.visible)&&n,editable:null!=(r=t.editable)&&r}})},[t,e]),i=(0,o.useCallback)(function(e){var r=e.active,o=e.over;if(r.id!==(null==o?void 0:o.id)&&o){var i=n.findIndex(function(e){return e.label===r.id}),c=n.findIndex(function(e){return e.label===o.id});if(-1!==i&&-1!==c){var l=(0,ev.Rp)(t,i,c).map(function(e,t){return eC(eO({},e),{order:t})});f.jq.updateEditingStrategySections(l)}}},[t,n]),c=(0,o.useCallback)(function(n,r){var o=t.map(function(t){return(0,em.el)(t.label,e)===n?eC(eO({},t),{visible:r}):t});f.jq.updateEditingStrategySections(o)},[e,t]),l=(0,o.useMemo)(function(){return n.map(function(e){return e.label})},[n]);return(0,r.jsx)(eg.LB,{onDragEnd:i,modifiers:[ey.DL],children:(0,r.jsx)(ev.Fo,{items:l,strategy:ev.qw,children:n.map(function(e){return(0,r.jsx)(ew,{item:e,handleCheckboxChange:c},e.label)})})})};var eS=n(16689);let eE=function(e){var t=e.onCancel,n=(0,y.$G)().t,i=(0,f.kv)(),c=(0,f.PJ)(),l=(0,f.Ht)(),a=(0,f.LY)(),s=(0,f.c8)(),u=(0,o.useCallback)(function(){f.jq.editAvailableStrategySections({sections:a,onSuccess:function(){C.Yu.showAlert({message:n("All changes are saved."),messageType:eS.KK.SUCCESS}),t()},onError:function(){C.Yu.showAlert({message:n("Failed to save strategy sections. Please try again."),messageType:eS.KK.ERROR}),t()}})},[a,t,n]),d=(0,o.useCallback)(function(){c?(0,es.OQ)({modalTitle:n("Confirmation"),content:n("Are you sure to proceed without saving?"),okText:n("Confirm"),cancelText:n("Cancel"),onOk:function(e){var n=e.onCancel;null==n||n(),t()}}):t()},[c,n,t]),p=(0,o.useCallback)(function(){if(0===i.length)return void t();f.jq.editAvailableStrategySections({sections:i,onSuccess:function(){C.Yu.showAlert({message:n("All changes are saved."),messageType:eS.KK.SUCCESS}),t()},onError:function(){C.Yu.showAlert({message:n("Failed to save strategy sections. Please try again."),messageType:eS.KK.ERROR})}})},[i,t,n]);return(0,r.jsx)(eI,{children:(0,r.jsxs)(eT,{children:[(0,r.jsx)(v.ZP,{variant:v.eF.OUTLINED_THEMED,onClick:u,disabled:l||s,children:n("Reset to default")}),(0,r.jsxs)(ek,{children:[(0,r.jsx)(v.ZP,{variant:v.eF.OUTLINED,onClick:d,disabled:s,children:n("Cancel")}),(0,r.jsx)(v.ZP,{variant:v.eF.FILLED_THEMED,onClick:p,disabled:!c,loading:s,children:n("Done")})]})]})})};var eI=i.ZP.div.withConfig({componentId:"sc-6876ab74-0"})(["width:100%;"]),eT=i.ZP.div.withConfig({componentId:"sc-6876ab74-1"})(["display:flex;justify-content:space-between;align-items:center;padding:","px;gap:","px;"],x.A.L,x.A.XS),ek=i.ZP.div.withConfig({componentId:"sc-6876ab74-2"})(["display:flex;justify-content:flex-end;align-items:center;gap:","px;"],x.A.XS),eL=function(e){var t=e.onCancel,n=(0,y.$G)().t;return(0,r.jsxs)(es.ZP,{variant:es.KH.CONFIRMATION,modalTitle:n("Strategy List Tabs"),footer:(0,r.jsx)(eE,{onCancel:t}),children:[(0,r.jsx)(ep,{}),(0,r.jsx)(eZ,{$contentHeight:160,children:(0,r.jsx)(eP,{})})]})},eZ=i.ZP.div.withConfig({componentId:"sc-50db22f0-0"})(["max-height:",";overflow-y:auto;height:100%;width:100%;"],function(e){var t=e.$contentHeight;return"".concat(t,"px")}),eA=function(e){var t=function(e){e()};(0,eu.ZP)(function(n){var o,i;return(0,r.jsx)(eL,(o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),i=i={onCancel:function(){return t(n)}}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(i)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(i,e))}),o))})};n(68309);var eR=n(25932);n(91038),n(78783);var eD=n(31378);n(9653),n(52420);var e_=n(82337),eX=n(3082),eM=n(16029),eG=n(42014);let eU=function(e){var t=e.strategy,n=t.name,i=t.risk,c=t.liveReturn,l=t.wins,a=t.losses,f=t.publishDate,d=t.id,p=(0,S.VC)().theme,h=(0,u.rx)(),b=(null==h?void 0:h.id)===d,g=(0,o.useMemo)(function(){return eX._.convertToDayjsWithOffset({input:Number(f)}).format(e_.vj)},[f]),y=(0,o.useMemo)(function(){return 1===Math.sign(c)},[c]);return(0,r.jsxs)(eN,{onClick:function(){s.B.onStrategySelected(t)},className:b?"selected":"",children:[(0,r.jsx)(eH,{children:(0,r.jsx)(eF,{typography:m.wZ.TEXT_M_REGULAR,children:n})}),(0,r.jsx)(e$,{children:(0,r.jsx)(w.ZP,{color:p.themeColors.riskLevel[null==i?void 0:i.toLowerCase()],typography:m.wZ.TEXT_M_REGULAR,children:(0,E.FS)(i)})}),(0,r.jsx)(eB,{children:(0,r.jsxs)(eG.g,{profitLoss:y?eM.a.PROFIT:eM.a.LOSS,typography:m.wZ.TEXT_M_REGULAR,children:[y&&"+",(0,J.Wi)(c,2,!0),"%"]})}),(0,r.jsx)(eV,{children:(0,r.jsxs)(eG.g,{profitLoss:eM.a.PROFIT,typography:m.wZ.TEXT_M_REGULAR,children:[l,"%"]})}),(0,r.jsx)(eY,{children:(0,r.jsxs)(eG.g,{profitLoss:eM.a.LOSS,typography:m.wZ.TEXT_M_REGULAR,children:[a,"%"]})}),(0,r.jsx)(eK,{children:(0,r.jsx)(w.ZP,{typography:m.wZ.TEXT_M_REGULAR,children:g})})]})};var eN=i.ZP.div.withConfig({componentId:"sc-1de1ec5-0"})(["display:flex;padding:","px;cursor:pointer;&:hover{background-color:",";}&.selected{background-color:",";border-bottom:",";}"],x.A.XS,function(e){return e.theme.themeColors.background.subtle},function(e){return e.theme.themeColors.background.active},function(e){var t=e.theme;return"1px solid ".concat(t.themeColors.background.default)}),eH=i.ZP.div.withConfig({componentId:"sc-1de1ec5-1"})(["flex:0 0 120px;text-align:start;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]),eF=(0,i.ZP)(w.ZP).withConfig({componentId:"sc-1de1ec5-2"})(["text-align:start;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-inline-end:","px;"],x.A.XXS),e$=i.ZP.div.withConfig({componentId:"sc-1de1ec5-3"})(["flex:0 0 68px;text-align:start;"]),eB=i.ZP.div.withConfig({componentId:"sc-1de1ec5-4"})(["flex:0 0 103px;text-align:start;"]),eV=i.ZP.div.withConfig({componentId:"sc-1de1ec5-5"})(["flex:0 0 93px;text-align:start;"]),eY=i.ZP.div.withConfig({componentId:"sc-1de1ec5-6"})(["flex:0 0 93px;text-align:start;"]),eK=i.ZP.div.withConfig({componentId:"sc-1de1ec5-7"})(["flex:0 0 80px;text-align:end;"]);let ez=function(){var e=(0,y.$G)().t,t={id:"",name:"XXXXXXX XXXXX",risk:a.xY.LOW,liveReturn:1023.32,wins:10.23,losses:10.23,publishDate:"XXXX-XX-XX",rank:10,measure:"Measure 1",numCopiers:1e3,fee:1e3,copied:!1},n=(0,o.useCallback)(function(){d.q.copyTrade.copyTradeInterest({action:p.V8.COPY_TRADE_EXPRESS_INTEREST}),(0,eu.ZP)(function(t){return(0,r.jsx)(es.ZP,{variant:es.KH.BASIC,title:e("Express Your Interest"),okText:e("Submit"),cancelText:e("Cancel"),onOk:function(n){var r=n.onCancel;d.q.copyTrade.copyTradeInterest({action:p.V8.COPY_TRADE_INTEREST_SUBMITTED}),C.Yu.showAlert({message:e("Your interest has been submitted."),messageType:C.KK.SUCCESS}),null==r||r(),t()},onCancel:t,children:(0,r.jsx)(eW,{children:e("Let us know if you're interested in more copy trading strategies. Your input helps us prioritize features that matter to you!")})})})},[e]);return(0,r.jsxs)(eq,{children:[Array.from({length:10}).map(function(e,n){return(0,r.jsx)(eU,{strategy:t},"locked-strategy-".concat(n))}),(0,r.jsx)(eJ,{children:(0,r.jsx)(eQ,{children:(0,r.jsx)(eR.Z,{variant:eR.R.LOCKED_STRATEGY,onClick:n})})})]})};var eq=i.ZP.div.withConfig({componentId:"sc-bc7e87ec-0"})(["position:relative;flex:1;"]),eW=(0,i.ZP)(w.ZP).withConfig({componentId:"sc-bc7e87ec-1"})(["display:flex;flex-direction:column;gap:","px;"],x.A.XS),eJ=i.ZP.div.withConfig({componentId:"sc-bc7e87ec-2"})(["top:0;position:absolute;width:100%;height:100%;background:",";backdrop-filter:blur(3px);"],function(e){var t=e.theme;return t.themeMode===eD.bS.DARK?(0,S.m4)(t.themeColors.background.default,.7):(0,S.m4)(t.themeColors.white,.75)}),eQ=i.ZP.div.withConfig({componentId:"sc-bc7e87ec-3"})(["position:sticky;left:90px;width:187px;margin:48px 90px;"]);let e0=function(){var e=(0,y.$G)().t,t=(0,S.VC)().theme,n=[e("Strategies"),e("Risk"),e("Live Return"),e("Wins"),e("Losses"),e("Publish Date")];return(0,r.jsx)(e1,{children:n.map(function(e){return(0,r.jsx)(e3,{children:(0,r.jsx)(w.ZP,{typography:m.wZ.TEXT_M_REGULAR,color:t.themeColors.text.muted,children:e})},e)})})};var e1=i.ZP.div.withConfig({componentId:"sc-c63b4be6-0"})(["width:fit-content;display:flex;padding:6px ","px 6px ","px;flex-direction:row;align-items:",";background-color:",";border-bottom:1px solid ",";position:sticky;top:0;> div{&:first-child{flex:0 0 120px;text-align:start;}&:nth-child(2){flex:0 0 68px;text-align:start;}&:nth-child(3){flex:0 0 103px;text-align:start;}&:nth-child(4){flex:0 0 93px;text-align:start;}&:nth-child(5){flex:0 0 93px;text-align:start;}&:last-child{flex:0 0 80px;text-align:end;z-index:1;}}"],x.A.REGULAR,x.A.XS,function(e){return e.$needsCenterAlignment?"center":"flex-start"},function(e){return e.theme.themeColors.background.default},function(e){return e.theme.themeColors.border.subtle}),e3=i.ZP.div.withConfig({componentId:"sc-c63b4be6-1"})([""]);function e2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
1let e6=function(){var e=(0,u.Lm)(),t=(0,u.hS)(),n=(0,u.iM)(),i=(0,u.$_)(),l=(0,u.A3)(),f=(0,u.Do)(),d=(0,u.yq)(),p=(0,u.n6)(),h=(0,o.useRef)(null),b=(0,o.useRef)(null),g=(0,o.useCallback)(function(){return(null==p?void 0:p.tenantCopyTradeConfig.copyTradeSubscription)===V.v3.FREEMIUM&&d===a.Q$.ALL},[d,null==p?void 0:p.tenantCopyTradeConfig.copyTradeSubscription]);(0,o.useEffect)(function(){var n=h.current;if(n&&f&&!e&&!t){var r=new IntersectionObserver(function(n){((function(e){if(Array.isArray(e))return e})(n)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,l=!1;try{for(o=o.call(e);!(c=(n=o.next()).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{c||null==o.return||o.return()}finally{if(l)throw r}}return i}}(n,1)||function(e,t){if(e){if("string"==typeof e)return e2(e,1);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e2(e,t)}}(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0].isIntersecting&&f&&!e&&!t&&s.B.loadMoreStrategies()},{root:b.current,rootMargin:"100px",threshold:.1});return r.observe(n),function(){r.disconnect()}}},[f,e,t,i.length,null==p?void 0:p.tenantCopyTradeConfig.copyTradeSubscription]);var y=(0,o.useMemo)(function(){if(i.length)return null;if(d!==a.Q$.EARLIER_COPIED)return eR.R.NO_RESULT_FOUND;var e,t=null!=(e=null==p?void 0:p.linkedCopiers)?e:[];return 0===t.length?eR.R.NO_COPIER_ACCOUNT:(0,Y.x6)(t)?l?eR.R.NO_RESULT_FOUND:eR.R.NO_COPIED_STRATEGIES:eR.R.NO_SELECTED_CURRENT_ACCOUNT},[i.length,d,null==p?void 0:p.linkedCopiers,l]);return e?(0,r.jsx)(e7,{children:(0,r.jsx)(c.ZP,{absolute:!0})}):y?(0,r.jsx)(eR.Z,{variant:y}):(0,r.jsxs)(e7,{ref:b,children:[(0,r.jsx)(e0,{}),(0,r.jsxs)(e8,{children:[i.map(function(e){return(0,r.jsx)(eU,{strategy:e},e.id||e.name)}),f&&!g()&&(0,r.jsx)(e4,{ref:h,children:(t||n)&&(0,r.jsx)(c.ZP,{})}),g()&&(0,r.jsx)(e5,{children:(0,r.jsx)(ez,{})})]})]})};var e7=i.ZP.div.withConfig({componentId:"sc-26fd3ec3-0"}
1)(["height:100%;flex:1;overflow:auto;display:flex;flex-direction:column;position:relative;"]),e8=i.ZP.div.withConfig({componentId:"sc-26fd3ec3-1"})(["width:fit-content;flex:1;display:flex;flex-direction:column;"]),e4=i.ZP.div.withConfig({componentId:"sc-26fd3ec3-2"})(["display:flex;justify-content:center;align-items:center;padding:","px;min-height:40px;position:sticky;left:0;width:368px;"],x.A.XS),e5=i.ZP.div.withConfig({componentId:"sc-26fd3ec3-3"})(["position:relative;display:flex;flex-direction:column;height:100%;"]),e9=i.ZP.div.withConfig({componentId:"sc-859a28e7-0"})(["position:absolute;top:0px;"," height:34px;width:34px;display:flex;align-items:center;justify-content:",";padding-inline-end:","px;background:",";"],function(e){return e.$isEnd?"right: 0px;":"left: 0px;"},function(e){return e.$isEnd?"flex-end":"flex-start"},x.A.XXS,function(e){var t=e.$isEnd,n=e.theme;return"linear-gradient(".concat(t?"90deg":"-90deg",", ").concat((0,S.m4)(n.themeColors.background.subtle,0)," 0%, ").concat(n.themeColors.background.subtle," 48%)")});let te=function(e){var t=e.isEnd,n=e.onClick,o=e.shouldShow,i=(0,S.VC)().theme;return o?(0,r.jsx)(e9,{onClick:n,$isEnd:t,children:(0,r.jsx)(v.ZP,{variant:v.eF.ICON_ONLY,textColor:i.themeColors.icon.default,icon:t?$.Ro.CHEVRON_RIGHT:$.Ro.CHEVRON_LEFT})}):null};var tt=function(){var e=(0,y.$G)().t,t=(0,f.Jt)();return(0,o.useMemo)(function(){var n=[];return t.forEach(function(t){n.push({label:(0,Y.el)(t,e),value:t})}),n},[e,t])},tn=n(81468);function tr(e,t,n,r,o,i,c){try{var l=e[i](c),a=l.value}catch(e){n(e);return}l.done?t(a):Promise.resolve(a).then(r,o)}let to=function(e){var t=e.tabList,n=(0,u.yq)(),i=(0,u.Lm)(),c=(0,u.hS)(),l=(0,o.useCallback)(function(e){var t;return(t=function(){return function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c.throw=l(1),c.return=l(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(l){return function(a){var s=[l,a];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(t){switch(t.label){case 0:return[4,s.B.onStrategySectionSelected({section:e})];case 1:return t.sent(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(e){tr(i,r,o,c,l,"next",e)}function l(e){tr(i,r,o,c,l,"throw",e)}c(void 0)})})()},[]);return(0,r.jsx)(tn.Z,{variant:tn.N.UNDERLINED,tabList:t,selectedValue:n,disabled:i||c,onClick:l})};function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,l=!1;try{for(o=o.call(e);!(c=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{c||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,t)}}
1(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}let tl=function(e){var t=e.tabContainerRef,n=tt(),i=tc((0,o.useState)(!1),2),c=i[0],l=i[1],a=tc((0,o.useState)(0),2),s=a[0],u=a[1],f=tc((0,o.useState)(0),2),d=f[0],p=f[1],h=(0,o.useRef)(null),b=tc((0,o.useState)(!1),2),g=b[0],y=b[1],v=tc((0,o.useState)(!1),2),m=v[0],x=v[1],w=function(){if((null==h?void 0:h.current)&&(null==t?void 0:t.current)){var e,n,r,o=null!=(e=h.current.scrollWidth)?e:0,i=null!=(n=t.current.clientWidth)?n:0;if(!(o<=i)){var c=null!=(r=h.current.scrollLeft)?r:0;y(c!==o-i),x(0!==c)}}};return((0,o.useEffect)(function(){var e=h.current;if(e){var n=new ResizeObserver(function(){var n;0!==(null!=(n=e.scrollWidth)?n:0)&&t.current&&w()});return n.observe(e),function(){n.unobserve(e)}}return function(){y(!1),x(!1)}},[]),0===n.length)?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(te,{shouldShow:m,onClick:function(){var e;(null==h?void 0:h.current)&&(null==h||null==(e=h.current)||e.scroll({left:0,behavior:"smooth"}),y(!0),x(!1))}}),(0,r.jsx)(ta,{$isDragging:c,ref:h,onMouseDown:function(e){h.current&&(l(!0),u(e.pageX-h.current.offsetLeft),p(h.current.scrollLeft))},onMouseMove:function(e){if(c&&h.current){e.preventDefault();var t=e.pageX-h.current.offsetLeft;h.current.scrollLeft=d-(t-s)*2}},onMouseUp:function(){l(!1),w()},onMouseLeave:function(){l(!1)},children:(0,r.jsx)(to,{tabList:n})}),(0,r.jsx)(te,{isEnd:!0,shouldShow:g,onClick:function(){if(null==h?void 0:h.current){var e,t,n=null!=(t=h.current.scrollWidth)?t:0;null==h||null==(e=h.current)||e.scroll({left:n,behavior:"smooth"}),y(!1),x(!0)}}})]})};var ta=i.ZP.div.withConfig({componentId:"sc-faa6efe5-0"})(["overflow-x:scroll;display:flex;cursor:",";&::-webkit-scrollbar{display:none;}-webkit-user-select:none;-ms-user-select:none;user-select:none;"],function(e){return e.$isDragging?"grabbing":"grab"});let ts=function(){var e,t=(0,N.GR)().leftPanelState,n=!N.Pw.isExpandState(t),i=(0,S.VC)().theme,c=(0,y.$G)().t,l=(0,u.n6)(),a=(0,u.A3)(),f=(0,o.useRef)(null);return(0,r.jsx)(tu,{$isFold:n,children:(0,r.jsxs)(tf,{children:[(0,r.jsxs)(td,{children:[(0,r.jsx)(tp,{ref:f,children:(0,r.jsx)(tl,{tabContainerRef:f})}),(0,r.jsxs)(tg,{children:[(0,r.jsx)(th,{}),(0,r.jsx)(v.ZP,{variant:v.eF.ICON_ONLY,textColor:i.themeColors.icon.default,icon:$.Ro.COLUMN_SELECTOR,iconSize:$.sk.L,onClick:function(){return eA({onCancel:function(){}})}})]})]}),(null==l?void 0:l.tenantCopyTradeConfig.copyTradeSubscription)===V.v3.PREMIUM?(0,r.jsx)(tb,{children:(0,r.jsx)(B.ZP,{size:"small",variant:B.Bv.BORDERED_TEXT,placeholder:c("Search strategies"),value:a,onChange:function(e){return s.B.onSearchQueryChange(e.target.value)},inputLeftSection:(0,r.jsx)(ty,{icon:$.Ro.SEARCH,size:$.sk.M})})}):null,(0,r.jsx)(e6,{}),(0,Y.x6)(null!=(e=null==l?void 0:l.linkedCopiers)?e:[])?(0,r.jsx)(en,{}):null]})})};var tu=i.ZP.div.withConfig({componentId:"sc-32ed7b66-0"})(["width:368px;height:100%;flex-direction:column;border-radius:3px;background-color:",";display:",";"],function(e){return e.theme.themeColors.background.subtle},function(e){return e.$isFold?"none":"flex"}),tf=i.ZP.div.withConfig({componentId:"sc-32ed7b66-1"})(["display:flex;height:100%;background-color:",";flex-direction:column;"],function(e){return e.theme.themeColors.background.default}),td=i.ZP.div.withConfig({componentId:"sc-32ed7b66-2"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;background-color:",";"],function(e){return e.theme.themeColors.background.subtle}),tp=i.ZP.div.withConfig({componentId:"sc-32ed7b66-3"})(["display:flex;overflow-y:hidden;overflow-x:auto;position:relative;&::-webkit-scrollbar{display:none;}"]),th=i.ZP.div.withConfig({componentId:"sc-32ed7b66-4"})(["width:1px;height:22px;background-color:",";margin-right:","px;"],function(e){return e.theme.themeColors.border.default},x.A.XS),tb=i.ZP.div.withConfig({componentId:"sc-32ed7b66-5"})(["padding:","px;border-bottom:1px solid ",";"],x.A.XS,function(e){return e.theme.themeColors.border.subtle}),tg=i.ZP.div.withConfig({componentId:"sc-32ed7b66-6"})(["padding-right:","px;border-bottom:1px solid ",";display:flex;align-items:center;justify-content:center;height:calc(100% - 1px);"],x.A.XS,function(e){return e.theme.themeColors.border.default}),ty=(0,i.ZP)($.ZP).withConfig({componentId:"sc-32ed7b66-7"})(["margin-left:","px;"],x.A.XS);let tv=function(){var e=(0,u.LL)();
1return(0,o.useEffect)(function(){return N.Pw.initCalendarLayoutState(),function(){N.Pw.resetPanelStates()}},[]),(0,o.useEffect)(function(){var t=setTimeout(function(){e&&(0,H.x)()},500);return function(){return clearTimeout(t)}},[e]),(0,r.jsx)(tm,{children:(0,r.jsxs)(tx,{children:[(0,r.jsx)(tw,{children:(0,r.jsx)(ts,{},"copy-trade-strategy-list")}),(0,r.jsx)(F.Z,{})]})})};var tm=i.ZP.div.withConfig({componentId:"sc-500738d7-0"})(["flex:1;height:100%;display:flex;flex-direction:column;background-color:",";"],function(e){return e.theme.themeColors.background.base}),tx=i.ZP.div.withConfig({componentId:"sc-500738d7-1"})(["flex:1;height:100%;display:flex;flex-direction:row;"]),tw=i.ZP.div.withConfig({componentId:"sc-500738d7-2"})(["height:100%;"]);function tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tO(e,t,n,r,o,i,c){try{var l=e[i](c),a=l.value}catch(e){n(e);return}l.done?t(a):Promise.resolve(a).then(r,o)}function tC(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function c(e){tO(i,r,o,c,l,"next",e)}function l(e){tO(i,r,o,c,l,"throw",e)}c(void 0)})}}function tP(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return c.next=l(0),c.throw=l(1),c.return=l(2),"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(l){return function(a){var s=[l,a];if(n)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}let tS=function(){var e,t=(0,u.BJ)(),n=(0,u.iM)(),i=(0,f.c8)(),h=(e=(0,o.useState)(!1),function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],c=!0,l=!1;try{for(o=o.call(e);!(c=(n=o.next()).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{c||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return tj(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tj(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=h[0],y=h[1],v=(0,o.useCallback)(function(){return tC(function(){return tP(this,function(e){switch(e.label){case 0:return[4,s.B.getUserInfo({onSuccess:function(e){return tC(function(){return tP(this,function(t){switch(t.label){case 0:return[4,f.jq.getAvailableStrategySections({})];case 1:return t.sent(),s.B.setIsAuthenticated(!0),s.B.onStrategySectionSelected({chunkSize:(null==e?void 0:e.tenantCopyTradeConfig.copyTradeSubscription)===l.v3.FREEMIUM?a.YK:a.Sc}),[2]}})})()}})];case 1:return e.sent(),y(!0),d.q.page.trackPageView(p.aF.COPY_TRADE),[2]}})})()},[]),m=(0,o.useCallback)(function(){return tC(function(){return tP(this,function(e){switch(e.label){case 0:return[4,v()];case 1:return e.sent(),[2]}})})()},[v]);return((0,o.useEffect)(function(){return v(),f.jq.getAllStrategySections({}),function(){s.B.reset()}},[v]),!g||n||i)?(0,r.jsx)(c.ZP,{absolute:!0}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.Z,{}),(0,r.jsx)(tE,{children:(0,r.jsx)(tI,{children:t?(0,r.jsx)(tv,{}):(0,r.jsx)(R,{onLoginSuccess:m})})})]})};var tE=i.ZP.div.withConfig({componentId:"sc-34bc97e4-0"})(["display:flex;width:100%;height:calc( 100vh - ","px );background-color:",";"],h.X+g.o+a.Xd,function(e){return e.theme.themeColors.background.default}),tI=i.ZP.div.withConfig({componentId:"sc-34bc97e4-1"})(["display:flex;flex-direction:column;width:100%;height:100%;"])},63450:function(e,t,n){"use strict";n.d(t,{ZP:()=>I,L9:()=>a});var r,o,i=n(74512),c=n(32735),l=n(86544),a=((r={}).BASE="BASE",r.LIGHT="LIGHT",r.LIGHT_THEMED="LIGHT_THEMED",r.LIGHT_VIOLET="LIGHT_VIOLET",r.SOLID_THEMED="SOLID_THEMED",r),s=((o={})[o.LIGHT=.08]="LIGHT",o);n(68233);var u=n(10281),f=n(71225),d=n(62715),p=n(38074),h={small:"1px ".concat(f.A.XXS,"px"),xsmall:"".concat(f.A.XXXS,"px ").concat(f.A.XXS,"px"),xxsmall:"
11px ".concat(f.A.XXXS,"px")};let b=function(e){var t=e.size,n=void 0===t?"small":t,r=e.className,o=e.children,l=e.dataTestId,a=(0,c.useMemo)(function(){switch(n){case"xxsmall":return d.wZ.TEXT_XXS_MEDIUM;case"xsmall":return d.wZ.TEXT_XS_MEDIUM;default:return d.wZ.TEXT_S_MEDIUM}},[n]);return(0,i.jsx)(g,{typography:a,className:void 0===r?"":r,dataTestId:l,$padding:h[n],children:o})};var g=(0,u.ZP)(p.ZP).withConfig({componentId:"sc-74a39db0-0"})(["padding:",";border-radius:2px;text-transform:uppercase;display:flex;align-items:center;justify-content:center;white-space:nowrap;"],function(e){return e.$padding}),y=n(31378);let v=function(e){var t,n,r=(0,y.eP)().theme.themeColors,o=e.textColor,c=void 0===o?r.tag.default.color:o,l=e.backgroundColor,a=void 0===l?r.tag.default.background:l;return(0,i.jsx)(m,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={textColor:c,backgroundColor:a},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};var m=(0,u.ZP)(b).withConfig({componentId:"sc-19f993bf-0"})(["color:",";background-color:",";"],function(e){return e.textColor},function(e){return e.backgroundColor}),x=n(84511);let w=function(e){var t,n,r=(0,y.eP)().theme.themeColors,o=e.textColor,c=void 0===o?r.primary:o,l=e.backgroundColor,u=void 0===l?(0,x.m)(r.primary,s.LIGHT):l;return(0,i.jsx)(v,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={variant:a.LIGHT,textColor:c,backgroundColor:u},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))},j=function(e){return(0,i.jsx)(O,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e))};var O=(0,u.ZP)(b).withConfig({componentId:"sc-e8aa48e3-0"})(["background-color:",";color:",";&:hover{background-color:",";}&:active{background-color:",";}"],function(e){return e.theme.themeColors.tag.others.background},function(e){return e.theme.themeColors.tag.others.color},function(e){return e.hoverColor},function(e){return e.activeColor});let C=function(e){var t,n,r=(0,y.eP)().theme.themeColors,o=e.textColor,c=void 0===o?r.white:o,l=e.backgroundColor,a=void 0===l?r.primary:l;return(0,i.jsx)(P,(t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}({},e),n=n={textColor:c,backgroundColor:a}
1,Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}),t))};var P=(0,u.ZP)(b).withConfig({componentId:"sc-6edfed8d-0"})(["color:",";background-color:",";"],function(e){return e.textColor},function(e){return e.backgroundColor});function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})}return e}function E(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}let I=(0,l.Y)(function(e){var t=e.variant;switch(void 0===t?a.SOLID_THEMED:t){case a.LIGHT:return(0,i.jsx)(v,E(S({},e),{variant:a.LIGHT}));case a.LIGHT_THEMED:return(0,i.jsx)(w,E(S({},e),{variant:a.LIGHT_THEMED}));case a.LIGHT_VIOLET:return(0,i.jsx)(j,E(S({},e),{variant:a.LIGHT_VIOLET}));case a.BASE:return(0,i.jsx)(b,E(S({},e),{variant:a.BASE}));default:return(0,i.jsx)(C,E(S({},e),{variant:a.SOLID_THEMED}))}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.