1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2faa8c13-dccb-46c2-b10a-c2a676671d0f",e._sentryDebugIdIdentifier="sentry-dbid-2faa8c13-dccb-46c2-b10a-c2a676671d0f")}catch(e){}}(),(self.webpackChunkiverson=self.webpackChunkiverson||[]).push([[3110],{636415(e,t,i){const r=(0,i(510364).createTemplateFactory)({id:"gN76bEho",block:'[[[1,[28,[35,0],[[30,0,["_parentFinder"]]],null]],[1,"\\n\\n"],[41,[30,0,["renderInPlace"]],[[[1," "],[11,0],[16,1,[30,1]],[16,0,[30,2]],[16,"hidden",[30,0,["hidden"]]],[16,"role",[30,3]],[17,4],[4,[38,2],[[28,[37,3],[[30,0],"didInsertPopperElement"],null]],null],[4,[38,4],[[28,[37,3],[[30,0],"willDestroyPopperElement"],null]],null],[4,[38,5],[[28,[37,3],[[30,0],"didUpdatePopperSettings"],null],[30,0,["eventsEnabled"]],[30,0,["modifiers"]],[30,0,["onCreate"]],[30,0,["onUpdate"]],[30,0,["placement"]],[30,0,["popperTarget"]],[30,0,["renderInPlace"]]],null],[12],[1,"\\n "],[18,5,[[28,[37,7],null,[["disableEventListeners","enableEventListeners","scheduleUpdate","update"],[[28,[37,3],[[30,0],"disableEventListeners"],null],[28,[37,3],[[30,0],"enableEventListeners"],null],[28,[37,3],[[30,0],"scheduleUpdate"],null],[28,[37,3],[[30,0],"update"],null]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[40,[[[1," "],[11,0],[16,1,[30,1]],[16,0,[30,2]],[16,"hidden",[30,0,["hidden"]]],[16,"role",[30,3]],[17,4],[4,[38,2],[[28,[37,3],[[30,0],"didInsertPopperElement"],null]],null],[4,[38,4],[[28,[37,3],[[30,0],"willDestroyPopperElement"],null]],null],[4,[38,5],[[28,[37,3],[[30,0],"didUpdatePopperSettings"],null],[30,0,["eventsEnabled"]],[30,0,["modifiers"]],[30,0,["onCreate"]],[30,0,["onUpdate"]],[30,0,["placement"]],[30,0,["popperTarget"]],[30,0,["renderInPlace"]]],null],[12],[1,"\\n "],[18,5,[[28,[37,7],null,[["disableEventListeners","enableEventListeners","scheduleUpdate","update"],[[28,[37,3],[[30,0],"disableEventListeners"],null],[28,[37,3],[[30,0],"enableEventListeners"],null],[28,[37,3],[[30,0],"scheduleUpdate"],null],[28,[37,3],[[30,0],"update"],null]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],"%cursor:0%",[28,[37,9],[[30,0,["_popperContainer"]]],null],null]],[]]]],["@id","@class","@ariaRole","&attrs","&default"],false,["unbound","if","did-insert","action","will-destroy","did-update","yield","hash","in-element","-in-el-null"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-popper.573c06d6/node_modules/ember-popper/templates/components/ember-popper-targeting-parent.hbs",isStrictMode:!1});i.d(t,["A",0,r])},978662(e,t,i){const r=(0,i(510364).createTemplateFactory)({id:"gjfY9owr",block:'[[[41,[30,0,["renderInPlace"]],[[[1," "],[11,0],[16,1,[30,1]],[16,0,[30,2]],[16,"hidden",[30,0,["hidden"]]],[16,"role",[30,3]],[17,4],[4,[38,1],[[28,[37,2],[[30,0],"didInsertPopperElement"],null]],null],[4,[38,3],[[28,[37,2],[[30,0],"willDestroyPopperElement"],null]],null],[4,[38,4],[[28,[37,2],[[30,0],"didUpdatePopperSettings"],null],[30,0,["eventsEnabled"]],[30,0,["modifiers"]],[30,0,["onCreate"]],[30,0,["onUpdate"]],[30,0,["placement"]],[30,0,["popperTarget"]],[30,0,["renderInPlace"]]],null],[12],[1,"\\n "],[18,5,[[28,[37,6],null,[["disableEventListeners","enableEventListeners","scheduleUpdate","update"],[[28,[37,2],[[30,0],"disableEventListeners"],null],[28,[37,2],[[30,0],"enableEventListeners"],null],[28,[37,2],[[30,0],"scheduleUpdate"],null],[28,[37,2],[[30,0],"update"],null]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[40,[[[1," "],[11,0],[16,1,[30,1]],[16,0,[30,2]],[16,"hidden",[30,0,["hidden"]]],[16,"role",[30,3]],[17,4],[4,[38,1],[[28,[37,2],[[30,0],"didInsertPopperElement"],null]],null],[4,[38,3],[[28,[37,2],[[30,0],"willDestroyPopperElement"],null]],null],[4,[38,4],[[28,[37,2],[[30,0],"didUpdatePopperSettings"],null],[30,0,["eventsEnabled"]],[30,0,["modifiers"]],[30,0,["onCreate"]],[30,0,["onUpdate"]],[30,0,["placement"]],[30,0,["popperTarget"]],[30,0,["renderInPlace"]]],null],[12],[1,"\\n "],[18,5,[[28,[37,6],null,[["disableEventListeners","enableEventListeners","scheduleUpdate","update"],[[28,[37,2],[[30,0],"disableEventListeners"],null],[28,[37,2],[[30,0],"enableEventListeners"],null],[28,[37,2],[[30,0],"scheduleUpdate"],null],[28,[37,2],[[30,0],"update"],null]]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],"%cursor:0%",[28,[37,8],[[30,0,["_popperContainer"]]],null],null]],[]]]],["@id","@class","@ariaRole","&attrs","&default"],false,["if","did-insert","action","will-destroy","did-update","yield","hash","in-element","-in-el-null"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-popper.573c06d6/node_modules/ember-popper/templates/components/ember-popper.hbs",isStrictMode:!1});i.d(t,["A",0,r])},526381(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"OBcbbuzl",block:'[[[10,"ol"],[14,0,"carousel-indicators"],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[46,[30,0,["indicatorComponent"]],null,[["active","onClick"],[[28,[37,3],[[30,3],[30,0,["activeIndex"]]],null],[28,[37,4],[[30,0],"goto",[30,3]],null]]],null]],[2,3]],null],[13],[1,"\\n"],[10,0],[14,0,"carousel-inner"],[12],[1,"\\n "],[18,4,null],[1,"\\n"],[13],[1,"\\n"],[11,3],[24,0,"left carousel-control"],[24,6,"#"],[4,[38,4],[[30,0],"prev"],null],[12],[1,"â¹"],[13],[1,"\\n"],[11,3],[24,0,"right carousel-control"],[24,6,"#"],[4,[38,4],[[30,0],"next"],null],[12],[1,"âº"],[13]],["@content","content","index","&default"],false,["each","-track-array","component","eq","action","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/carousel.hbs",isStrictMode:!1});i.d(t,["default",0,r])},821100(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"kbJSam8m",block:'[[[10,2],[12],[1,[30,0,["modal","content"]]],[13]],[],false,[]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/components/modal-body.hbs",isStrictMode:!1});i.d(t,["default",0,r])},382821(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"BiFGYvmY",block:'[[[41,[30,0,["modal","confirmText"]],[[[1," "],[11,"button"],[16,0,[29,["btn btn-confirm\\n ",[30,0,["modal","confirmButtonStyleClassName"]],"\\n ",[52,[30,0,["modal","isDisabled"]],"disabled"]]]],[16,"disabled",[30,0,["modal","isDisabled"]]],[24,"data-env-test-id","modal-confirm"],[24,4,"button"],[4,[38,1],[[30,0],"sendConfirm"],[["target"],[[30,0,["modal"]]]]],[12],[1,"\\n "],[1,[30,0,["modal","confirmText"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["modal","cancelText"]],[[[1," "],[11,"button"],[24,0,"btn btn-default btn-cancel"],[24,4,"button"],[4,[38,1],[[30,0],"sendCancel"],[["target"],[[30,0,["modal"]]]]],[12],[1,[30,0,["modal","cancelText"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["modal","closeText"]],[[[1," "],[11,"button"],[24,0,"btn btn-default btn-close"],[24,4,"button"],[4,[38,1],[[30,0],"sendClose"],[["target"],[[30,0,["modal"]]]]],[12],[1,[30,0,["modal","closeText"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if","action"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/components/modal-footer.hbs",isStrictMode:!1});i.d(t,["default",0,r])},106931(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"ctqJ2TBn",block:'[[[11,"button"],[24,0,"close"],[24,4,"button"],[4,[38,0],[[30,0],"sendClose"],[["target"],[[30,0,["modal"]]]]],[12],[1,"Ã"],[13],[1,"\\n\\n"],[10,0],[14,0,"title-container"],[12],[1,"\\n"],[41,[30,0,["modal","isDraggable"]],[[[1," "],[10,"img"],[14,"src","/img/fingerprinted/grip_dots-5de921a1e0bb554a0c690e98b83288c6.svg"],[14,"draggable","false"],[12],[13],[1,"\\n"]],[]],null],[1,"\\n "],[10,"h4"],[14,0,"modal-title"],[12],[1,[30,0,["modal","headerText"]]],[13],[1,"\\n"],[13]],[],false,["action","if"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/components/modal-header.hbs",isStrictMode:!1});i.d(t,["default",0,r])},879632(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"8GDQfUFN",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["popover","popovers"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@destinationElement"],[[30,1,["destinationElement"]]]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n"],[1," "],[46,[28,[37,4],[[30,1,["componentName"]]],null],null,[["_propertyOptions","__renderPopoverNewAPI"],[[30,1,["propertyOptions"]],true]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[1]],null]],["p"],false,["each","-track-array","ember-wormhole","component","register"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/components/render-popover.hbs",isStrictMode:!1});i.d(t,["default",0,r])},119628(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"R1SZdFFb",block:'[[[41,[30,1,["isGroupOption"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,"i"],[15,0,[52,[30,0,["isGroupHeaderCollapsible"]],[52,[30,1,["isGroupHeaderCollapsed"]],[30,0,["collapsedGroupHeaderIcon"]],[30,0,["expandedGroupHeaderIcon"]]]]],[12],[13],[1,"\\n "],[1,[30,1,["name"]]],[1,"\\n"],[41,[30,2,["componentNameForGroupTooltip"]],[[[1," "],[46,[30,2,["componentNameForGroupTooltip"]],null,[["groupItem"],[[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[30,3],[[[1," "],[10,1],[15,"title",[30,0,["label"]]],[14,"data-heap-redact-attributes","title"],[12],[1,"\\n "],[1,[30,0,["label"]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["label"]]],[1,"\\n"]],[]]]],[]]]],["@content","@select","@titleOnOptions"],false,["if","component"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/components/select-option.hbs",isStrictMode:!1});i.d(t,["default",0,r])},961375(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"g7DizPNH",block:'[[[10,0],[14,0,"arrow"],[15,5,[30,1]],[12],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,"h4"],[14,0,"popover-title"],[12],[1,[30,2]],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"popover-content"],[12],[1,"\\n "],[8,[39,1],null,[["@content","@popover"],[[30,3],[30,0]]],null],[1,"\\n"],[13]],["@arrowStyle","@title","@content"],false,["if","utils/popover-carousel"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/components/utils/popovers/carousel.hbs",isStrictMode:!1});i.d(t,["default",0,r])},79152(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"SI6yE4jy",block:'[[[10,0],[15,0,[29,["modal-dialog ",[30,0,["sizeClass"]]]]],[14,"tabindex","-1"],[12],[1,"\\n "],[10,0],[14,0,"modal-content"],[12],[1,"\\n "],[10,0],[14,0,"modal-header"],[12],[1,"\\n "],[46,[30,0,["headerComponent"]],null,[["modal"],[[30,0]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"modal-body"],[12],[1,"\\n"],[41,[30,0,["bodyComponentClass"]],[[[1," "],[46,[28,[37,2],[[30,0,["bodyComponentClass"]]],null],null,[["modal"],[[30,0]]],null],[1,"\\n"]],[]],[[[1," "],[46,[30,0,["bodyComponent"]],null,[["modal"],[[30,0]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[15,0,[29,["modal-footer ",[30,1]]]],[12],[1,"\\n"],[41,[30,2],[[[1," "],[46,[28,[37,2],[[30,2]],null],null,[["modal"],[[30,0]]],null],[1,"\\n"]],[]],[[[1," "],[46,[30,0,["footerComponent"]],null,[["modal"],[[30,0]]],null],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["@footerClass","@footerComponentClass"],false,["component","if","register"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/modal.hbs",isStrictMode:!1});i.d(t,["default",0,r])},289156(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"j4Oi0rTU",block:'[[[10,0],[14,0,"arrow"],[15,5,[30,1]],[12],[13],[1,"\\n"],[41,[30,0,["title"]],[[[1," "],[10,"h4"],[14,0,"popover-title"],[12],[1,[30,0,["title"]]],[13],[1,"\\n"]],[]],null],[10,0],[14,0,"popover-content"],[12],[1,"\\n "],[1,[30,0,["content"]]],[1,"\\n"],[13]],["@arrowStyle"],false,["if"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/popover.hbs",isStrictMode:!1});i.d(t,["default",0,r])},521214(e,t,i){i.r(t);const r=(0,i(510364).createTemplateFactory)({id:"Vebh4OZq",block:'[[[8,[39,0],null,[["@name"],[[30,0,["name"]]]],null],[1,"\\n"],[18,1,null]],["&default"],false,["radio-input","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/_app_/templates/radio-button-layout.hbs",isStrictMode:!1});i.d(t,["default",0,r])},668710(e,t,i){i.r(t),i.d(t,{default:()=>T});var r=i(765632),o=i(279564),a=(i(44384),i(943910)),n=(i(496314),i(804204));const s="https://cdn.plaid.com/link/v2/stable/link-initialize.js";var l=i(701627),u=i.n(l);const c=(0,i(510364).createTemplateFactory)({id:"pLQudFou",block:'[[[11,0],[17,1],[12],[1,"\\n "],[18,2,[[28,[37,1],null,[["isProcessing","script","open","update"],[[30,0,["isProcessing"]],[30,0,["plaidScript"]],[30,0,["open"]
1],[30,0,["update"]]]]]]],[1,"\\n"],[13]],["&attrs","&default"],false,["yield","hash"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@addepar/ember-plaid.08cecc89/node_modules/@addepar/ember-plaid/components/plaid-link.hbs",isStrictMode:!1});var d,p,h,m,g,f,y,b=i(618576);function v(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function w(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const A=n.service??n.inject;let T=(d=class extends r.A{constructor(e,t){super(e,t),v(this,"plaidService",p,this),v(this,"loadScript",h,this),v(this,"linkToken",m,this),v(this,"isProcessing",g,this),v(this,"isConsoleLogEnabled",f,this),v(this,"handler",y,this),w(this,"onSuccess",async(e,t)=>{let{isLogEventsEnabled:i,onSuccess:r}=this.args;i&&console.log(e,t),this.reset(),this.removeIframe(),r&&await r(e,t)}),w(this,"onEvent",(e,t)=>{let{isLogEventsEnabled:i}=this.args;i&&console.log(e,t)}),w(this,"onExit",(e,t)=>{let{isLogEventsEnabled:i,onExit:r}=this.args;i&&console.log(e,t),this.reset(),this.removeIframe(),r&&r(e,t)});let{createLinkBodyOptions:i,delayCreateToken:r,linkTokenUrl:o,loadScriptAttributes:a,plaidScriptUrl:n,requestHeaders:l}=this.args;if(this.loadScript.useScript({src:n??s,checkForExisting:!0,loadScriptAttributes:a}),!r){this.isProcessing=!0;try{this.createLinkToken(i,o,l)}catch(e){console.error(e)}this.isProcessing=!1}}get plaidScript(){return this.loadScript.getScript(s)}async createLinkToken(e,t,i){let{isLogEventsEnabled:r,onExit:o}=this.args;try{this.linkToken=await this.plaidService.createLinkToken(e,t,i),u().resolve(this.linkToken)}catch(e){r&&console.error(e),this.linkToken=null,o&&o(e,void 0),u().reject(e)}}isEnvironmentReadyForOpen(){if("undefined"==typeof window||!window.Plaid)throw this.isProcessing=!1,new Error("Plaid not loaded");return!!this.linkToken||(this.isProcessing=!1,console.warn("plaid-link: You cannot call open() without a valid link token. This is a no-op."),!1)}reset(){this.linkToken=null,this.isProcessing=!1}removeIframe(){this.handler?.destroy()}async update(e,t){let{createLinkBodyOptions:i,isLogEventsEnabled:r,linkTokenUrl:o,requestHeaders:a}=this.args;i.item_id=e,t&&(i.region=t),this.isProcessing=!0;try{await this.createLinkToken(i,o,a),this.linkToken&&await this.open()}catch(e){r&&console.error(e)}this.reset()}async open(){let{createLinkBodyOptions:e,isLogEventsEnabled:t,linkTokenUrl:i,onLoad:r,requestHeaders:o}=this.args;if(this.isProcessing=!0,!this.linkToken)try{await this.createLinkToken(e,i,o)}catch(e){if(t)return void console.error(e)}if(!this.isEnvironmentReadyForOpen())return;let a={token:this.linkToken,onLoad:r,onEvent:this.onEvent,onExit:this.onExit,onSuccess:this.onSuccess};this.handler=window.Plaid.create(a),this.handler.open()}},p=_(d.prototype,"plaidService",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=_(d.prototype,"loadScript",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=_(d.prototype,"linkToken",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),g=_(d.prototype,"isProcessing",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=_(d.prototype,"isConsoleLogEnabled",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),y=_(d.prototype,"handler",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),_(d.prototype,"update",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"update"),d.prototype),_(d.prototype,"open",[a.action],Object.getOwnPropertyDescriptor(d.prototype,"open"),d.prototype),d);(0,b.setComponentTemplate)(c,T)},335638(e,t,i){i.r(t),i.d(t,{default:()=>y});var r,o,a,n,s,l,u=i(804204),c=i.n(u),d=i(279564);function p(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function h(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function m(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const g="undefined"!=typeof window&&void 0!==window.document;let f=(o=m((r=class{constructor({src:e,loading:t=!1,error:i=null,scriptElement:r=null,scriptLoaded:u=!1}={}){p(this,"src",o,this),p(this,"loading",a,this),p(this,"error",n,this),p(this,"scriptElement",s,this),p(this,"scriptLoaded",l,this),h(this,"handleLoad",()=>{this.loading=!1,this.scriptLoaded=!0,this.removeListeners()}),h(this,"handleError",e=>{this.error=e,this.removeListeners()}),h(this,"addListeners",()=>{this.scriptElement?.addEventListener("load",this.handleLoad),this.scriptElement?.addEventListener("error",this.handleError)}),h(this,"removeListeners",()=>{this.scriptElement?.removeEventListener("load",this.handleLoad),this.scriptElement?.removeEventListener("error",this.handleError)}),this.src=e,this.error=i,this.loading=t,this.scriptElement=r,this.scriptLoaded=u}}).prototype,"src",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),a=m(r.prototype,"loading",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),n=m(r.prototype,"error",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),s=m(r.prototype,"scriptElement",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),l=m(r.prototype,"scriptLoaded",[d.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),r);class y extends(c()){constructor(...e){super(...e),h(this,"trackedScriptsStatusArray",[]),h(this,"checkExisting",e=>{let t=document.querySelector(`script[src="${e}"]`);if(t){let i=this.getScript(e);return i&&(i.loading=!1,i.error=null,i.scriptElement=t),i}})}getScript(e){return this.trackedScriptsStatusArray.find(t=>t.src===e)}useScript({src:e,checkForExisting:t,loadScriptAttributes:i}){let r,o=this.getScript(e);
1if(!o&&t&&e&&g&&(o=this.checkExisting(e)),g&&e&&!o?.scriptLoaded&&!o?.error){if(o)r=o.scriptElement;else{if(r=document.createElement("script"),r.src=e,i)for(let[e,t=""]of Object.entries(i))r.setAttribute(e,t);let t=new f({src:e,loading:!0,error:null,scriptElement:r});o=t,this.trackedScriptsStatusArray.push(t)}r&&(o.addListeners(),document.body.appendChild(r))}}}},567849(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(804204),o=i.n(r);class a extends(o()){async createLinkToken(e,t,i){let r=null,o=i?new Headers(i):new Headers;o.has("content-type")||o.append("content-type","application/json");let a=Object.assign({},e),n={headers:o,body:JSON.stringify(a),method:"POST"},s=new Request(t,n);return await fetch(s).then(e=>e.json()).then(e=>{if(e.link_token)return r=e.link_token,e.link_token;if(e.error)throw new Error(JSON.stringify(e.error))}),r}}},219437(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(158511)},686403(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(926871)},498968(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(158511).A.extend({triggerEvent:"hover",placement:"right-start"})},341224(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"+HONsYhW",block:'[[[8,[39,0],null,[["@placement","@class"],[[30,0,["placement"]],[30,0,["tooltipClass"]]]],[["default"],[[[[1,"\\n "],[18,1,null],[1,"\\n"]],[]]]]]],["&default"],false,["adde-tooltip","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@addepar/pop-menu.2130dbcd/node_modules/@addepar/pop-menu/components/adde-tooltip-icon.hbs",isStrictMode:!1}),n=(0,r.setComponentTemplate)(a,o().extend({tagName:"i",classNames:["tooltip-icon"],classNameBindings:["iconClass","iconWeight"],attributeBindings:["tabindex"],tabindex:"0",iconClass:"fa-question-circle",iconWeight:"fas",placement:"auto",tooltipClass:""}))},344296(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(63351);const o=(0,i(510364).createTemplateFactory)({id:"hEPssjxP",block:'[[[8,[39,0],null,[["@isOpen","@placement","@modifiers","@renderInPlace","@popperClass","@onOpen","@onClose"],[[30,0,["isOpen"]],[30,0,["placement"]],[30,0,["_popperModifiers"]],[30,0,["renderInPlace"]],[28,[37,1],["adde-tooltip ",[30,0,["_popperClass"]]],null],[30,0,["popoverOpened"]],[30,0,["popoverClosed"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"adde-popper-content adde-tooltip-content"],[12],[1,"\\n "],[18,1,null],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"popper-arrow"],[14,"x-arrow",""],[12],[13],[1,"\\n"]],[]]]]]],["&default"],false,["animated-popper","concat","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@addepar/pop-menu.2130dbcd/node_modules/@addepar/pop-menu/components/adde-tooltip.hbs",isStrictMode:!1}),a=(0,i(618576).setComponentTemplate)(o,r.A.extend({triggerEvent:"hover"}))},154079(e,t,i){i.r(t),i.d(t,{default:()=>u});var r=i(618576),o=i.n(r),a=i(989272),n=i(458504),s=i(387569);const l=(0,i(510364).createTemplateFactory)({id:"8mdgFL6P",block:'[[[1,[28,[35,0],[[30,0,["_parentFinder"]]],null]],[1,"\\n\\n"],[41,[30,0,["renderInDOM"]],[[[1," "],[8,[39,2],null,[["@popperTarget","@placement","@modifiers","@renderInPlace","@registerAPI","@class"],[[30,0,["popperTarget"]],[30,0,["placement"]],[30,0,["modifiers"]],[30,0,["renderInPlace"]],[28,[37,3],[[30,0],"registerAPI"],null],[29,["adde-animated ",[52,[30,0,["makeVisible"]],"is-visible",""]," ",[30,0,["popperClass"]]]]]],[["default"],[[[[1,"\\n "],[18,1,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],["&default"],false,["unbound","if","ember-popper","action","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@addepar/pop-menu.2130dbcd/node_modules/@addepar/pop-menu/components/-private/animated-popper.hbs",isStrictMode:!1}),u=(0,r.setComponentTemplate)(l,o().extend({tagName:"",isOpen:!1,onOpen:null,onClose:null,renderInPlace:!1,popperClass:"",popperTarget:null,placement:"auto",modifiers:null,renderInDOM:!1,makeVisible:!1,_token:null,_parentFinder:null,_animatedElement:null,_hasTransition:!1,init(...e){this._super(...e),this._transitionEndHandler=()=>{!1===this.get("makeVisible")&&this.finalizeClose()},this._token=new s.ou,this._parentFinder=document.createTextNode(""),this.isOpenDidChange(),(0,a.schedule)("afterRender",()=>{this.set("popperTarget",this.get("popperTarget")||this._parentFinder.parentNode.parentNode)})},didInsertElement(){(0,n.addObserver)(this,"isOpen",this,this.isOpenDidChange,!0)},willDestroy(){s.ck.forget(this._token),this._token=null,(0,n.removeObserver)(this,"isOpen",this,this.isOpenDidChange,!0)},isOpenDidChange(){!0===this.get("isOpen")?(this.set("renderInDOM",!0),s.ck.schedule("sync",()=>{this.set("makeVisible",!0)},this._token)):(this.set("makeVisible",!1),this._animatedElement&&!this._hasTransition&&s.ck.schedule("affect",()=>{!1===this.get("makeVisible")&&this.finalizeClose()},this._token))},actions:{registerAPI(e){this._animatedElement=e.popperElement,this._hasTransition=function(e){let{transitionDuration:t}=window.getComputedStyle(e);return parseFloat(t)>0}(this._animatedElement),this._hasTransition&&this._animatedElement.addEventListener("transitionend",this._transitionEndHandler),this.onOpen(e)}},finalizeClose(){this.isDestroying||(0,a.run)(()=>{this.set("renderInDOM",!1),this._hasTransition&&this._animatedElement.removeEventListener("transitionend",this._transitionEndHandler),this._animatedElement=null,this.onClose()})}}))},63351(e,t,i){var r=i(618576),o=i.n(r),a=i(161015),n=i(943910),s=i(989272),l=(i(44384),i(387569));function u(e,t){let i=e;for(;i!==document.body&&null!==i;){if(i.matches(t))return i;i=i.parentNode}return null}const c={flip:{boundariesElement:"viewport"},preventOverflow:{boundariesElement:"window"}},d=o().extend({trapFocus:!0,placement:"auto",renderInPlace:!1,triggerEvent:null,rootElementSelector:".ember-
1application",popperModifiers:null,arrowNavigation:!1,didInsertCallback:null,willDestroyCallback:null,open(){return this._openPopoverHandler()},isOpen:!1,_triggerElement:null,_popperElement:null,_popperClass:"",_rootElement:null,outlyingComponents:null,_ownSelectors:null,ownSelectors:(0,n.computed)("_ownSelectors","outlyingComponents",{get(){return null!==this._ownSelectors?this._ownSelectors:[".adde-base-pop-menu"].concat(this.outlyingComponents||[])},set(e,t){return(0,n.set)(this,"_ownSelectors",t),t}}),_popperModifiers:(0,n.computed)("popperModifiers",{get(){return Object.assign({},c,this.get("popperModifiers"))}}),openDelay:0,closeDelay:0,init(...e){this._super(...e),this._openPopoverHandler=(e,t)=>{(0,s.debounce)(this,this._insertOrRemovePopover,this._insertPopover.bind(this),t,this.get("openDelay")||0,!1)},this._closePopoverHandler=()=>{(0,s.debounce)(this,this._insertOrRemovePopover,this._removePopover.bind(this),this.get("closeDelay")||0,!1)},this._insertOrRemovePopover=(e,t)=>{this.isDestroying||(e(),t&&t())},this._closePopoverBlurHandler=()=>{null!==this._popperElement&&0===this._getFocusableElementsInPopper().length&&this._closePopoverHandler()},this._handleBodyClick=({target:e})=>{this.get("ownSelectors").find(t=>u(e,t))?u(e,"[data-close]:not([disabled])")&&this._closePopoverHandler():this._closePopoverHandler()},this._triggerKeyHandler=e=>{let t=e.key;"ArrowDown"!==t&&"ArrowUp"!==t||e.preventDefault(),"Enter"!==t&&" "!==t&&"ArrowDown"!==t&&"ArrowUp"!==t||this.get("isOpen")?"Escape"!==t&&"Enter"!==t||!this.get("isOpen")?"Tab"===t&&this.get("isOpen")&&this._closePopoverHandler():this._closePopoverAndFocusTrigger():this._openPopoverHandler(null,()=>{l.ck.schedule("layout",()=>{"ArrowUp"===t?this._focusOnPopperEnter("last"):this._focusOnPopperEnter()},this._token)})},this._popperKeyHandler=e=>{let t=e.key,i=this._getFocusableElementsInPopper(),r=document.activeElement;"ArrowDown"!==t&&"ArrowUp"!==t||e.preventDefault(),"Escape"===t?this._closePopoverAndFocusTrigger():"Enter"===t&&e.target.hasAttribute("data-close")?this._closePopoverHandler():"Tab"!==t||e.shiftKey||r!==i[i.length-1]?e.shiftKey&&"Tab"===t&&r===i[0]?this._closePopoverAndFocusTrigger():"ArrowDown"===t&&this.get("arrowNavigation")?this._focusOnFocusableElement("next"):"ArrowUp"===t&&this.get("arrowNavigation")&&this._focusOnFocusableElement("prev"):this._closePopoverAndFocusTrigger()},this._popperClass=`adde-base-pop-menu ${this.class||""} ${this.classNames.join(" ")}`;for(let e of this.classNameBindings)e.value&&(this._popperClass+=` ${e.value()}`)},didInsertElement(){let e=this.get("rootElementSelector"),t=self.document.querySelectorAll(e);this._rootElement=t[0],this._triggerElement=this.element.parentNode,this._triggerElement.setAttribute("data-popover-trigger",(0,a.guidFor)(this)),this._triggerElement.setAttribute("aria-haspopup","true"),this._triggerElement.setAttribute("aria-expanded","false"),"click"===this.get("triggerEvent")?(this._triggerElement.addEventListener("click",this._openPopoverHandler),this._triggerElement.addEventListener("keydown",this._triggerKeyHandler)):(this._triggerElement.addEventListener("mouseenter",this._openPopoverHandler),this._triggerElement.addEventListener("mouseleave",this._closePopoverHandler),this._triggerElement.addEventListener("focus",this._openPopoverHandler),this._triggerElement.addEventListener("blur",this._closePopoverBlurHandler)),this.didInsertCallback?.(this)},willDestroyElement(){l.ck.forget(this._insertFrame),"click"===this.get("triggerEvent")?(this._triggerElement.removeEventListener("click",this._openPopoverHandler),this._triggerElement.removeEventListener("keydown",this._triggerKeyHandler)):(this._triggerElement.removeEventListener("mouseenter",this._openPopoverHandler),this._triggerElement.removeEventListener("mouseleave",this._closePopoverHandler),this._triggerElement.removeEventListener("focus",this._openPopoverHandler),this._triggerElement.removeEventListener("blur",this._closePopoverBlurHandler)),this._triggerElement.removeAttribute("data-popover-trigger"),this._rootElement.removeEventListener("mouseup",this._handleBodyClick),this._removePopperListeners(),this.willDestroyCallback?.(this)},_insertPopover(){this.get("isOpen")||((0,s.run)(()=>this.set("isOpen",!0)),this._rootElement.addEventListener("mouseup",this._handleBodyClick))},_removePopover(){this.get("isOpen")&&((0,s.run)(()=>this.set("isOpen",!1)),this._rootElement.removeEventListener("mouseup",this._handleBodyClick))},_closePopoverAndFocusTrigger(){this.get("trapFocus")&&this._triggerElement.focus(),this._closePopoverHandler()},_getFocusableElementsInPopper(){return this.get("trapFocus")?this._popperElement.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not
1([disabled]):not([tabindex="-1"])'):[]},_focusOnFocusableElement(e="next"){let t=this._getFocusableElementsInPopper(),i=Array.from(t).indexOf(document.activeElement);"next"===e?(i++,i>=t.length&&(i=0)):"prev"===e&&(i--,i<0&&(i=t.length-1)),t[i].focus()},_focusOnPopperEnter(e="first"){let t=this._getFocusableElementsInPopper();if(t.length>0){let i=Array.from(t).find(e=>/(selected|active)/.test(e.className)||e.checked);i?i.focus():"first"===e?t[0].focus():"last"===e&&t[t.length-1].focus()}},popoverOpened:(0,n.action)(function({popperElement:e}){this._popperElement=e,this._popperElement.setAttribute("data-popover-content",(0,a.guidFor)(this)),this._triggerElement.setAttribute("aria-describedby",(0,a.guidFor)(this)),this._triggerElement.classList.add("is-active"),this._triggerElement.setAttribute("aria-expanded","true"),this._popperElement.addEventListener("keydown",this._popperKeyHandler),"hover"===this.triggerEvent&&(this._popperElement.addEventListener("mouseenter",this._openPopoverHandler),this._popperElement.addEventListener("mouseleave",this._closePopoverHandler),this._popperElement.addEventListener("focus",this._openPopoverHandler),this._popperElement.addEventListener("blur",this._closePopoverBlurHandler)),this.onOpen&&this.onOpen(e,this._closePopoverAndFocusTrigger.bind(this))}),_removePopperListeners(){this._popperElement&&(this._popperElement.removeEventListener("keydown",this._popperKeyHandler),"hover"===this.get("triggerEvent")&&(this._popperElement.removeEventListener("mouseenter",this._openPopoverHandler),this._popperElement.removeEventListener("mouseleave",this._closePopoverHandler),this._popperElement.removeEventListener("focus",this._openPopoverHandler),this._popperElement.removeEventListener("blur",this._closePopoverBlurHandler)))},popoverClosed:(0,n.action)(function(){this._removePopperListeners(),this._triggerElement.classList.remove("is-active"),this._triggerElement.setAttribute("aria-expanded","false"),this._popperElement.removeAttribute("data-popover-content"),this._popperElement=null,this.onClose&&this.onClose()})});i.d(t,["A",0,d])},158511(e,t,i){i.d(t,{A:()=>a});var r=i(63351);const o=(0,i(510364).createTemplateFactory)({id:"VAGMUhur",block:'[[[8,[39,0],null,[["@isOpen","@placement","@modifiers","@renderInPlace","@popperClass","@popperTarget","@onOpen","@onClose"],[[30,0,["isOpen"]],[30,0,["placement"]],[30,0,["_popperModifiers"]],[30,0,["renderInPlace"]],[28,[37,1],["adde-dropdown ",[30,0,["_popperClass"]]],null],[30,0,["positionTarget"]],[30,0,["popoverOpened"]],[30,0,["popoverClosed"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"adde-popper-content adde-dropdown-content"],[12],[1,"\\n "],[18,1,[[30,0,["_closePopoverHandler"]]]],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["&default"],false,["animated-popper","concat","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@addepar/pop-menu.2130dbcd/node_modules/@addepar/pop-menu/components/adde-dropdown.hbs",isStrictMode:!1}),a=(0,i(618576).setComponentTemplate)(o,r.A.extend({triggerEvent:"click",arrowNavigation:!0,placement:"bottom-start",positionTarget:null}))},926871(e,t,i){i.d(t,{A:()=>a});var r=i(63351);const o=(0,i(510364).createTemplateFactory)({id:"LwizSVli",block:'[[[8,[39,0],null,[["@isOpen","@placement","@modifiers","@renderInPlace","@popperClass","@onOpen","@onClose"],[[30,0,["isOpen"]],[30,0,["placement"]],[30,0,["_popperModifiers"]],[30,0,["renderInPlace"]],[28,[37,1],["adde-popover ",[52,[30,0,["popoverTitle"]],"has-title "],[30,0,["_popperClass"]]],null],[30,0,["popoverOpened"]],[30,0,["popoverClosed"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"adde-popper-content adde-popover-content"],[12],[1,"\\n"],[41,[30,0,["popoverTitle"]],[[[1," "],[10,"header"],[14,0,"adde-popover-title"],[12],[1,[30,0,["popoverTitle"]]],[13],[1,"\\n"]],[]],null],[1," "],[18,1,[[30,0,["_closePopoverHandler"]]]],[1,"\\n "],[13],[1,"\\n"],[41,[51,[30,0,["hideArrow"]]],[[[1," "],[10,0],[14,0,"popper-arrow"],[14,"x-arrow",""],[12],[13],[1,"\\n"]],[]],null]],[]]]]]],["&default"],false,["animated-popper","concat","if","yield","unless"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@addepar/pop-menu.2130dbcd/node_modules/@addepar/pop-menu/components/
1adde-popover.hbs",isStrictMode:!1}),a=(0,i(618576).setComponentTemplate)(o,r.A.extend({triggerEvent:"click",placement:"right-start",popoverTitle:null,hideArrow:!1,openDelay:null,closeDelay:null}))},759391(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"w5BnuV0g",block:'[[[10,"apl-badge"],[15,"preset",[30,0,["variant"]]],[12],[13]],[],false,[]]',moduleName:"@addepar/product-language/templates/components/apl-badge.hbs",isStrictMode:!1}),n=o().extend({layout:a,variant:"new"})},255605(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"OxiN4uyV",block:'[[[10,"apl-banner"],[15,"header",[30,0,["optionalTitle"]]],[15,4,[30,0,["variant"]]],[12],[1,"\\n "],[10,1],[14,"slot","content"],[12],[18,1,null],[13],[1,"\\n"],[13]],["&default"],false,["yield"]]',moduleName:"@addepar/product-language/templates/components/apl-banner.hbs",isStrictMode:!1});var n=i(943910);const s=o().extend({layout:a,classNames:["flex","w-auto","rounded","py-12px","px-16px","text-gray-800"],iconType:(0,n.computed)("variant",function(){let e=this.get("variant");return e.includes("success")?"solid_check-circle":e.includes("warning")?"solid_exclamation-triangle":e.includes("error")?"solid_exclamation-circle":e.includes("info")?"info-circle":null}),didInsertElement(){this._super(...arguments),this.element.setAttribute("data-test-apl-banner","")},optionalTitle:"",iconTitleClass:(0,n.computed)("optionalTitle",function(){return this.get("optionalTitle")?" align-text-top":" align-middle"}),variant:"info",colorClass:(0,n.computed)("variant",function(){let e=this.get("variant");return e.includes("success")?"text-green-700":e.includes("warning")?"text-yellow-700":e.includes("error")?"text-red-800":e.includes("info")?"text-mauve-600":null}),click(e){this.onClick?.(e)}})},397021(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"pUgW9TSC",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"@addepar/product-language/templates/components/apl-button.hbs",isStrictMode:!1});var n=i(943910);const s=o().extend({layout:a,tagName:"button",shadowFocusGap:(0,n.computed)("variant",function(){return this.get("variant")?.includes("link")?"focus-shadow-gap-0":""}),classNames:["component-button","animated-focus-shadow"],classNameBindings:["variant","shadowFocusGap"],variant:null,attributeBindings:["disabled","data-test-toast-expand-button"],onClick:()=>{},click(e){this.get("onClick")(e)}})},17277(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"cqOSOXTb",block:'[[[41,[51,[30,0,["disabled"]]],[[[1," "],[10,1],[14,0,"text-gray-600 pl-12px text-small"],[12],[1,"Optional"],[13],[1,"\\n"]],[]],null]],[],false,["unless"]]',moduleName:"@addepar/product-language/templates/components/apl-common/-optional-label.hbs",isStrictMode:!1}),n=o().extend({layout:a})},980279(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"wuRIziQH",block:"[[],[],false,[]]",moduleName:"@addepar/product-language/templates/components/apl-icon.hbs",isStrictMode:!1}),n=o().extend({layout:a,tagName:""})},317193(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"t70oHrgb",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"@addepar/product-language/templates/components/apl-input-group.hbs",isStrictMode:!1});class n extends(o().extend({layout:a,classNames:["grid","grid-flow-col","gap-x-12px","w-max-content"]})){}},173342(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"4wZ3qM0m",block:'[[[10,"svg"],[14,0,"component-spinner"],[12],[1,"\\n "],[10,"g"],[14,0,"container"],[12],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-0"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-1"],[12],[1,"\\n "],[10,"cir
1cle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-2"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-3"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-4"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-5"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-6"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-7"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"g"],[14,0,"dot-container dot-8"],[12],[1,"\\n "],[10,"circle"],[14,0,"spinner-dot"],[14,"r","0.1em"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"@addepar/product-language/templates/components/apl-loading-spinner.hbs",isStrictMode:!1});class n extends(o().extend({layout:a,classNameBindings:["color"],color:"text-forest-700"})){}},52275(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(618576),o=i.n(r),a=i(943910);const n=(0,i(510364).createTemplateFactory)({id:"0P0vhVzH",block:'[[[10,"legend"],[15,0,[29,["flex items-center justify-between text-paragraph text-gray-800\\n ",[52,[30,0,["disabled"]],"text-gray-600"]]]],[12],[1,"\\n "],[10,1],[14,0,"pr-4px"],[12],[1,[30,0,["label"]]],[13],[1,"\\n "],[8,[39,1],null,[["@disabled"],[[28,[37,2],[[30,0,["optional"]]],null]]],null],[1,"\\n"],[13],[1,"\\n"],[10,0],[12],[1,"\\n"],[42,[28,[37,4],[[28,[37,4],[[30,0,["options"]]],null]],null],null,[[[1," "],[8,[39,5],null,[["@option","@disabled","@name","@groupValue","@groupLabel","@onChange"],[[30,1],[30,0,["disabled"]],[30,0,["radioGroupName"]],[30,0,["value"]],[30,0,["selectedOptionLabel"]],[30,0,["optionSelected"]]]],null],[1,"\\n"]],[1]],null],[13]],["option"],false,["if","apl-common/-optional-label","not","each","-track-array","apl-radio/-option"]]',moduleName:"@addepar/product-language/templates/components/apl-radio.hbs",isStrictMode:!1});let s=0;const l=o().extend({layout:n,value:null,selectedOptionLabel:void 0,tagName:"fieldset",disabled:!1,optional:!1,classNames:["component-radio"],didInsertElement(...e){this._super(...e),this.set("radioGroupName","radio-group-"+s++);let t=this.get("value");if(t&&!this.get("selectedOptionLabel")){let e=this.get("options").filter(e=>e===t||e.value===t);1===e.length&&("string"==typeof e[0]?this.set("selectedOptionLabel",e[0]):this.set("selectedOptionLabel",e[0].label))}},optionSelected:(0,a.action)(function(e,t){let i=e.target.parentNode.innerText.trim();this.set("selectedOptionLabel",i),this.set("value",t),this.onChange?.(e,t)})})},364321(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"Axz7f/yT",block:'[[[10,"input"],[15,"disabled",[30,0,["disabled"]]],[15,1,[30,0,["uniqueOptionId"]]],[15,3,[30,0,["name"]]],[15,2,[30,0,["optionValue"]]],[15,"onclick",[30,0,["clickAction"]]],[15,"checked",[30,0,["isChecked"]]],[14,0,"obfuscate"],[14,4,"radio"],[12],[13],[1,"\\n"],[10,"label"],[15,"for",[30,0,["uniqueOptionId"]]],[15,0,[29,["font-body text-paragraph relative pl-24px cursor-pointer -ml-16px inline-block text-gray-800\\n ",[52,[30,0,["disabled"]],"text-gray-600 cursor-not-allowed"]]]],[12],[1,"\\n "],[10,0],[15,0,[29,["rounded-full animated-focus-shadow radio-button-circle border border-forest-700\\n ",[52,[30,0,["disabled"]],"disabled"]]]],[12],[13],[1,"\\n "],[1,[30,0,["optionLabel"]]],[1,"\\n"],[13]],[],false,["if"]]',moduleName:"@addepar/product-language/templates/components/apl-radio/-option.hbs",isStrictMode:!1});var n=i(943910);let s=0;const l=o().extend({layout:a,option:"",classNames:["pt-8px"],testLabel:(0,n.computed)("optionLabel","optionValue",function(){let e=this.get("optionLabel");return`${this.get("optionValue")}-${e}`}),optionName:(0,n.computed)("option",function(){let e=this.get("option");return e.name||e}),optionValue:(0,n.computed)("option",function(){let e=this.get("option");return e.value||e}),optionLabel:(0,n.computed)("option",function(){let e=this.get("option");return e.label||e}),isChecked:(0,n.computed)("optionValue","groupValue","optionLabel","groupLabel",function(){let e=this.get("optionValue"),t=this.get("groupValue"),i=this.get("optionLabel"),r=this.get("groupLabel");return e===t&&i===r}),didInsertElement(...e){this._super(...e),this.set("uniqueOptionId","radio-option-"+s++)},clickAction:(0,n.action)(function(e){this.onChange?.(e,this.get("optionValue"))})})},606372(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"vApzEkIz",block:'[[[11,0],[17,1],[12],[1,"\\n"],[41,[30,0,["isLabeled"]],[[[1," "],[10,0],[14,0,"flex justify-between"],[12],[1,"\\n "],[10,1],[14,0,"text-gray-800 text-paragraph"],[12],[1,"\\n "],[1,[30,0,["label"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["optional"]],[[[1," "],[10,1],[14,0,"text-gray-600 text-small"],[12],[1,"\\n Optional\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[12],[1,"\\n "],[10,"label"],[15,0,[29,["h-40px flex items-center cursor-text z-0 rounded transition focus-within:duration-200 duration-100 ease-in-out animated-focus-shadow\\n ",[52,[30,0,["helpText"]],"mb-4px"],"\\n focus-within:border-forest-900\\n ",[52,[30,0,["error"]],"border-red-800","border-gray-400"],"\\n ",[52,[30,0,["error"]],"error"],"\\n ",[52,[30,0,["disabled"]],"bg-gray-100 text-gray-700 cursor-not-allowed disabled","border"]]]],[12],[1,"\\n"],[41,[30,0,["prefix"]],[[[1," "],[10,1],[14,0,"flex pl-12px"],[12],[1,"\\n "],[46,[30,0,["prefix"]],null,null,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["prefixIcon"]],[[[1," "],[10,1],[14,0,"flex pl-12px"],[12],[1,"\\n "],[8,[39,2],null,[["@icon"],[[30,0,["prefixIcon"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"input"],[15,"readOnly",[30,0,["readOnly"]]],[14,0,"z-10 flex-grow placeholder-gray-600 bg-transparent outline-none text-paragraph px-12px"],[15,2,[30,0,["value"]]],[15,"placeholder",[30,0,["placeholder"]]],[15,"oninput",[30,0,["inputChanged"]]],[15,"disabled",[30,0,["disabled"]]],[15,4,[30,0,["type"]]],[12],[13],[1,"\\n"],[41,[30,0,["suffix"]],[[[1," "],[10,1],[14,0,"flex pr-12px"],[12],[1,"\\n "],[46,[30,0,["suffix"]],null,null,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["suffixIcon"]],[[[1," "],[10,1],[14,0,"flex pr-12px"],[12],[1,"\\n "],[8,[39,2],null,[["@icon"],[[30,0,["suffixIcon"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["helpText"]],[[[1," "],[10,1],[15,0,[29,["text-small ",[52,[30,0,["error"]],"text-error","text-grey-secondary"]]]],[12],[1,"\\n "],[1,[30,0,["helpText"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["&attrs"],false,["if","component","apl-icon"]]',moduleName:"@addepar/product-language/templates/components/
1apl-text-field.hbs",isStrictMode:!1});var n=i(943910);const s=o().extend({layout:a,tagName:"",prefix:null,prefixIcon:null,suffix:null,suffixIcon:null,label:null,error:!1,disabled:!1,type:"text",optional:!1,placeholder:"",helpText:"",onChange:null,value:"",isLabeled:(0,n.computed)("optional","label",function(){return this.get("label")||this.get("optional")}),inputChanged:(0,n.action)(function(e){this.onChange?.(e)})})},629236(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"s9O3uVoM",block:'[[[11,0],[17,1],[12],[1,"\\n "],[10,0],[15,0,[29,["fixed bottom-0 left-0 mb-32px ml-32px pointer-events-none toast-message-queue\\n ",[30,0,["queueClass"]]]]],[12],[1,"\\n "],[8,[39,0],null,[["@messages"],[[30,0,["toast","messages"]]]],null],[1,"\\n "],[13],[1,"\\n "],[10,0],[15,0,[29,["fixed top-0 left-0 right-0 flex flex-col-reverse items-center mt-24px animation-system-messages pointer-events-none toast-message-queue\\n ",[30,0,["systemQueueClass"]]]]],[12],[1,"\\n "],[8,[39,0],null,[["@messages"],[[30,0,["toast","systemMessages"]]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["&attrs"],false,["apl-toast-bar/-message-queue"]]',moduleName:"@addepar/product-language/templates/components/apl-toast-bar.hbs",isStrictMode:!1});var n=i(804204);const s=n.service??n.inject,l=o().extend({layout:a,tagName:"",toast:s("toast"),systemQueueClass:"",queueClass:"",didInsertElement(...e){this._super(...e),this.get("toast").set("isContainerRendered",!0)}})},767833(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"8DTFf4Ux",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[1," "],[8,[39,2],null,[["@linkText","@message","@onClick","@onExpand","@type","@fullWidth","@toastWidth","@modalZIndex","@modalTargetElement","@isSystemMsg","@toastId","@variant","@customVariant","@showIcon","@removeAnimation","@showClose","@state"],[[30,2,["config","link","label"]],[30,2,["config","message"]],[30,2,["config","link","action"]],[30,2,["config","onExpand"]],[30,2,["config","type"]],[30,2,["config","fullWidth"]],[30,2,["config","toastWidth"]],[30,2,["config","modalZIndex"]],[30,2,["config","modalTargetElement"]],[30,2,["config","isSystemMsg"]],[30,2,["id"]],[30,2,["config","variant"]],[30,2,["config","customVariant"]],[30,2,["config","showIcon"]],[30,2,["config","removeAnimation"]],[28,[37,3],[[30,2,["config","showClose"]],[30,2,["config","persist"]]],null],[30,2,["state"]]]],null],[1,"\\n"]],[2]],null]],["@messages","toast"],false,["each","-track-array","apl-toast-bar/-toast-message","or"]]',moduleName:"@addepar/product-language/templates/components/apl-toast-bar/-message-queue.hbs",isStrictMode:!1}),n=o().extend({layout:a,tagName:"",toastComponent:"apl-toast-bar/-toast-message"})},258938(e,t,i){i.r(t),i.d(t,{default:()=>c});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"JKGr1A/W",block:'[[[10,"apl-toast-message"],[15,"toastId",[30,0,["toastId"]]],[15,"message",[30,0,["message"]]],[15,"showIcon",[30,0,["showIcon"]]],[15,"showClose",[30,0,["showClose"]]],[15,"fullWidth",[30,0,["fullWidth"]]],[15,"toastWidth",[30,0,["toastWidth"]]],[15,"actionText",[30,0,["linkText"]]],[15,"actionCallback",[30,0,["linkAction"]]],[15,"closeCallback",[30,0,["closeAction"]]],[15,"isSystemMsg",[30,0,["isSystemMsg"]]],[15,"modalZIndex",[30,0,["modalZIndex"]]],[15,"modalTargetElement",[30,0,["modalTargetElement"]]],[15,4,[30,0,["type"]]],[12],[13]],[],false,[]]',moduleName:"@addepar/product-language/templates/components/apl-toast-bar/-toast-message.hbs",isStrictMode:!1});var n=i(804204),s=i(943910);i(44384);const l=n.service??n.inject;let u={success:"solid_check-circle",warning:"solid_exclamation-triangle",error:"solid_exclamation-circle"};class c extends(o().extend({toastId:null,message:"",classNames:["toast-message"],classNameBindings:["removeAnimation:apl-remove-animation"],attributeBindings:["message:data-test-toast-message"],showIcon:!1,type:"success",showClose:!1,modalZIndex:50,modalTargetElement:null,linkText:null,removeAnimation:!1,toast:l(),iconType:(0,s.computed)("type",function(){let e=this.get("type");return u[e]}),variant:"",variantFn:null,didInsertElement(...e){this._super(...e);let t=this.get("toastId");this.element.setAttribute("data-toast-id",t)},colorClass:(0,s.computed)("type",function(){switch(this.get("type")){case"error":return"text-red-800";case"warning":return"text-yellow-700";default:return"text-green-700"}}),linkAction:(0,s.action)(function(e){this.get("onClick")?.(e)}),closeAction:(0,s.action)(function(e){this.get("toast").removeToastById(this.get("toastId")),this.get("onClose")?.(e)}),showFullMessage:(0,s.action)(function(e){this.get("onExpand")?.(e,this.get("message"))}),layout:a})){}},962452(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"X/SGn1OG",block:'[[[18,1,[[28,[37,1],null,[["target","isTruncated"],[[50,"apl-truncate-aware/target",0,null,[["data-truncate-id"],[[30,0,["truncateId"]]]]],[30,0,["isTruncated"]]]]]]]],["&default"],false,["yield","hash","component"]]',moduleName:"@addepar/product-language/templates/components/
1apl-truncate-aware.hbs",isStrictMode:!1});let n=(0,i(397202).A)("truncation-target");class s extends(o().extend({tagName:"",isTruncated:!1,truncateId:null,layout:a})){constructor(...e){super(...e),this.set("truncateId",n.next().value)}didRender(){let e=document.querySelector(`[data-truncate-id="${this.get("truncateId")}"]`);if(e){let t=e?.scrollHeight,i=e?.clientHeight;i&&t&&t>i?this.set("isTruncated",!0):this.set("isTruncated",!1)}else this.set("isTruncated",!1)}}},830680(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"qRS+WUyh",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"@addepar/product-language/templates/components/apl-truncate-aware/target.hbs",isStrictMode:!1});function n(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s extends(o().extend({})){constructor(...e){super(...e),n(this,"layout",a),n(this,"classNames",["truncation-target"]),n(this,"attributeBindings",["data-truncate-id"])}}},472010(e,t,i){function r([e,t]){return null!=e&&!Array.isArray(e.length)&&e.includes(t)}i.r(t),i.d(t,{aplContains:()=>r,default:()=>o});const o=(0,i(827413).helper)(r)},279007(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(827413),o=i.n(r),a=i(804204);const n=a.service??a.inject,s=o().extend({toast:n(),compute([e],t){return t.isSystemToast?()=>this.get("toast").queueSystemToast(e,t):()=>this.get("toast").queueToast(e,t)}})},255024(e,t,i){i.r(t),i.d(t,{default:()=>m,initialize:()=>h});var r=i(44384),o=i(469706),a=i(681841),n=i(582355);const s=(0,n.lQ)("@addepar/product-language:stencil-raf"),l=(0,n.lQ)("@addepar/product-language:stencil-bundle");async function u(){(0,r.isTesting)()?(await o.u(window,{raf:c}),await async function(){let e=["apl-internal-modal-dialog"],t=["apl-stacked-chips-wrapper","apl-modal"],i=l.beginAsync();try{await Promise.all(a.jO.map(e=>e.match(d)[1]).map(async i=>{if(e.includes(i))return;let r=document.createElement(i);if("apl-accordion"===i)r.headingLevel="h1";else if("apl-breadcrumbs"===i)r.itemsArray=[{label:""}];else if("apl-dropdown-list-option"===i)r.option={};else if("apl-dropdown-list-section"===i)r.section={};else if("apl-internal-dropdown-list-content"===i)r.optionsArray=[];else if("apl-modal"===i)r.targetElement=document.createDocumentFragment();else if("apl-info-detail-panel"===i)r.targetElement=document.createDocumentFragment();else if("apl-popover"===i){let e=document.createElement("button"),t=document.createElement("div");e.setAttribute("slot","trigger"),t.setAttribute("slot","popover-content"),r.appendChild(e),r.appendChild(t)}r.connectedCallback(),await function(e,t,i){return new Promise(t=>{let r=setTimeout(()=>{console.error(`[@addepar/product-language] Timed out after 10000ms waiting for <${i}> componentOnReady()`),t()},1e4);e.then(e=>{clearTimeout(r),t(e)}).catch(e=>{clearTimeout(r),console.error(`[@addepar/product-language] <${i}> componentOnReady() rejected:`,e),t()})})}(r.componentOnReady(),0,i),t.includes(i)&&await r.disconnectedCallback()}))}finally{l.endAsync(i)}}()):await o.u()}function c(e){let t=s.beginAsync();return requestAnimationFrame(()=>{e(),s.endAsync(t)})}const d=/components\/([^/]+)/;let p=!1;function h(e){p||(p=!0,(0,r.isTesting)()?(e.deferReadiness(),u().catch(e=>{console.error("[@addepar/product-language] Failed to define custom elements:",e)}).finally(()=>e.advanceReadiness())):u())}const m={initialize:h}},647301(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(204011),a=i(526879);class n extends a.Ay{constructor(...e){super(...e),(0,r.A)(this,"TOAST_MAX_COUNT",o.default.TOAST_MAX_COUNT),(0,r.A)(this,"TOAST_MAX_DURATION",o.default.TOAST_MAX_DURATION)}}},512792(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(397202)},526879(e,t,i){i.d(t,{Ay:()=>h,lA:()=>c});var r=i(804204),o=i.n(r),a=i(734138),n=i(989272),s=(i(44384),i(943910));function l(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let u=0,c=function(e){return e.success="success",e.error="error",e.warning="warning",e.processing="processing",e}({});class d{constructor(e,t="toast-"+ ++u){l(this,"config",void 0),l(this,"id",void 0),l(this,"state",void 0),this.id=t,this.config=e,this.state="active"}}
1const p={persist:!1,type:c.success,showIcon:!1,showClose:!1,variant:"",message:"",customVariant:e=>e,preventDuplicate:!1,onExpand:null,removeAnimation:!1,isSystemMsg:!1};class h extends(o()){constructor(...e){super(...e),l(this,"messages",(0,a.A)([])),l(this,"systemMessages",(0,a.A)([])),l(this,"isContainerRendered",!1)}queueToast(e,t){return g.apply(this,[this.messages,e,t])}queueSystemToast(e,t){return g.apply(this,[this.systemMessages,e,{...t,isSystemMsg:!0}])}removeToastById(e){let t=document.querySelector(`[data-toast-id=${e}]`),i=this.getToastById(e);if(i&&i.config.removeAnimation){if(this.isDestroying)return;this.getQueueByToastId(e).removeObject(i)}else t&&i&&((0,s.set)(i,"state","removing"),t.addEventListener("animationend",()=>{this.isDestroying||(0,n.run)(()=>{this.getQueueByToastId(e).removeObject(i)})},{once:!0}),t.classList.add("fade-out"))}getQueueByToastId(e){return this.get("messages").findBy("id",e)?this.get("messages"):this.get("systemMessages")}getToastById(e){return this.getQueueByToastId(e).findBy("id",e)}}function m(e,t,i){e.config.removeAnimation?setTimeout(()=>(0,n.run)(()=>this.removeToastById(e.id)),this.TOAST_MAX_DURATION):(0,n.later)(()=>{this.isDestroying||e.config.persist||this.removeToastById(e.id)},this.TOAST_MAX_DURATION),t.length>=i&&t.slice(0,t.length-i).filter(e=>!e.config.persist).forEach(e=>this.removeToastById(e.id))}function g(e,t,i=p){let r={...p,...i};if(r.preventDuplicate&&e.any(e=>e.config.message===t))return;let o=new d({...r,message:t});return e.pushObject(o),m.apply(this,[o,this.messages,this.TOAST_MAX_COUNT]),()=>this.removeToastById(o.id)}},397202(e,t,i){function*r(e="APL"){let t=0;for(;;)yield`${e}-${t++}`}i.d(t,{A:()=>r})},156135(e,t,i){i.d(t,{W:()=>r});var r=i(985157)},832148(e,t,i){i.r(t),i.d(t,{default:()=>R});var r=i(765632),o=i(943910),a=i(753804),n=(i(44384),i(989272)),s=i(279564);const l=(0,i(510364).createTemplateFactory)({id:"Upwuwt+x",block:'[[[10,0],[14,0,"apl-layout-small flex h-full flex-col border-0 border-l border-solid vs:apl-elevation-surface-1 legacy:border-gray-400 vs:border-vs-line-0 vs:text-vs-primary"],[12],[1,"\\n"],[41,[30,0,["isConfigError"]],[[[1," "],[8,[39,1],null,null,null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"flex items-center justify-between pb-4 pt-6 legacy:pl-4 legacy:pr-2 vs:pl
1-6 vs:pr-4"],[12],[1,"\\n "],[10,0],[12],[1,"\\n"],[41,[30,0,["isTemplateWidget"]],[[[1," "],[10,0],[15,0,[29,["m-0\\n ",[52,[28,[37,2],null,null],"text-core-body-small","config-panel-linked-widget-descriptors text-core-primary uppercase"],"\\n "]]],[12],[1,"\\n Linked widget\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,0],[14,0,"text-core-panel-title tracking-normal legacy:font-head legacy:font-normal vs:font-normal"],[12],[1,[30,0,["label"]]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,1],[[[1," "],[11,"apl-button"],[24,"appearance","secondary"],[24,"icon-only",""],[24,"icon-transparent-background",""],[4,[38,3],["click",[30,1]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","xmark"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"overflow-y-auto overflow-x-hidden border-0 border-t border-solid legacy:border-gray-400 vs:border-vs-line-1"],[12],[1,"\\n "],[10,0],[14,0,"content p-6"],[12],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,2],[15,0,[29,["m-0\\n ",[52,[28,[37,2],null,null],"text-core-body-small","config-panel-linked-widget-descriptors text-core-core-secondary uppercase"],"\\n "]]],[12],[1,"Name"],[13],[1,"\\n "],[10,2],[12],[1,[30,0,["visualization","title"]]],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["visualization","description"]],[[[1," "],[10,0],[14,0,"mt-2"],[12],[1,"\\n "],[10,2],[15,0,[29,["m-0\\n ",[52,[28,[37,2],null,null],"text-core-body-small","config-panel-linked-widget-descriptors text-core-secondary uppercase"],"\\n "]]],[12],[1,"Description"],[13],[1,"\\n "],[10,2],[12],[1,[30,0,["visualization","description"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,"apl-tabs"],[16,"tabs",[30,0,["tabNames"]]],[16,"activeIndex",[30,0,["tabIndex"]]],[16,"appearance",[52,[28,[37,4],[[30,3],"legacy"],null],"edge-to-edge","edge-to-edge-compact"]],[24,0,"vs:pb-px"],[4,[38,5],[[30,0,["ensureTab"]],[30,0,["visualization"]],[30,0,["visualization","type"]]],null],[4,[38,3],["tabChanged",[30,0,["onTabChanged"]]],[["capture"],[true]]],[12],[13],[1,"\\n\\n "],[10,0],[14,0,"overflow-y-auto overflow-x-hidden border-0 legacy:border-b legacy:border-solid legacy:border-gray-400"],[12],[1,"\\n"],[41,[30,0,["forceRerenderAccordionHack"]],[[],[]],[[[1," "],[8,[39,6],null,[["@applicationTheme"],[[30,3]]],[["default"],[[[[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,0,["activeTab","sections"]]],null]],null],"label",[[[41,[30,4,["component"]],[[[44,[[50,[30,4,["component"]],0,null,null]],[[[1," "],[8,[30,5],null,[["@itemController","@applicationTheme"],[[30,0,["itemController"]],[30,3]]],null],[1,"\\n"]],[5]]]],[]],[[[1," "],[8,[39,11],null,[["@itemController","@section"],[[30,0,["itemController"]],[30,4]]],[["default"],[[[[1,"\\n"],[42,[28,[37,8],[[28,[37,8],[[30,4,["fields"]]],null]],null],"path",[[[1," "],[8,[39,12],null,[["@field","@itemController","@applicationTheme","@isMultiContext"],[[30,6],[30,0,["itemController"]],[30,3],[30,7]]],null],[1,"\\n"]],[6]],null],[1," "]],[]]]]],[1,"\\n"]],[]]]],[4]],null],[1," "]],[]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]]],[]]],[13]],["@closePanel","@readonly","@applicationTheme","section","SectionComponent","field","@isMultiContext"],false,["if","widget/visualization/shared/data-provider-config-error-state","is-visual-signature","on","eq","on-update","widget/config-panel/tab","each","-track-array","let","component","widget/config-panel/section","widget/config-panel/field"]]',moduleName:"@addepar/widgets/components/widget/config-panel.hbs",isStrictMode:!1});var u,c,d,p,h,m,g,f,y,b,v,w,_,A,T=i(618576);function C(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function S(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let R=(u=(0,o.computed)("args.widget"),c=(0,o.computed)("widget.itemController"),d=(0,o.computed)("widget.visualization"),p=(0,o.computed)("visualization.isTemplate"),h=(0,o.computed)("visualization.configTabs"),m=(0,o.computed)("visualization.widgetType"),g=(0,o.computed)("visualization.{widgetType,isTable,isChart}"),f=(0,o.computed)("widget.visualizationComponent"),y=(0,o.computed)("visualizationComponent.visualizationDisplayName"),b=(0,o.computed)("[email protected]"),v=(0,o.computed)("configTabs","tabIndex"),S((w=class extends r.A{constructor(...e){super(...e),C(this,"tabIndex",_,this),C(this,"forceRerenderAccordionH
1ack",A,this)}get widget(){return this.args.widget}get itemController(){return this.widget.itemController}get visualization(){return this.widget.visualization}get isTemplateWidget(){return this.visualization.isTemplate}get configTabs(){return this.visualization.configTabs}get isConfigError(){return!this.visualization.widgetType}get label(){let{label:e,dataSet:t}=this.visualization.widgetType,i=this.visualization.isTable?" table":this.visualization.isChart?" chart":"";return`${(0,a.ZH)(e)}${t?"":i}`}get visualizationComponent(){return this.widget.visualizationComponent}get displayName(){return this.visualizationComponent?.visualizationDisplayName}ensureTab(){this.activeTab||(0,n.next)(()=>{this.tabIndex=0}),this.forceRerenderAccordion()}get tabNames(){return this.configTabs.map(e=>e.label)}get activeTab(){return this.configTabs[this.tabIndex]}onTabChanged(e){this.tabIndex=e.detail.tabIndex,this.forceRerenderAccordion()}forceRerenderAccordion(){this.forceRerenderAccordionHack=!0,(0,n.next)(()=>{this.forceRerenderAccordionHack=!1})}}).prototype,"widget",[u],Object.getOwnPropertyDescriptor(w.prototype,"widget"),w.prototype),S(w.prototype,"itemController",[c],Object.getOwnPropertyDescriptor(w.prototype,"itemController"),w.prototype),S(w.prototype,"visualization",[d],Object.getOwnPropertyDescriptor(w.prototype,"visualization"),w.prototype),S(w.prototype,"isTemplateWidget",[p],Object.getOwnPropertyDescriptor(w.prototype,"isTemplateWidget"),w.prototype),S(w.prototype,"configTabs",[h],Object.getOwnPropertyDescriptor(w.prototype,"configTabs"),w.prototype),S(w.prototype,"isConfigError",[m],Object.getOwnPropertyDescriptor(w.prototype,"isConfigError"),w.prototype),S(w.prototype,"label",[g],Object.getOwnPropertyDescriptor(w.prototype,"label"),w.prototype),S(w.prototype,"visualizationComponent",[f],Object.getOwnPropertyDescriptor(w.prototype,"visualizationComponent"),w.prototype),S(w.prototype,"displayName",[y],Object.getOwnPropertyDescriptor(w.prototype,"displayName"),w.prototype),_=S(w.prototype,"tabIndex",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),S(w.prototype,"ensureTab",[o.action],Object.getOwnPropertyDescriptor(w.prototype,"ensureTab"),w.prototype),S(w.prototype,"tabNames",[b],Object.getOwnPropertyDescriptor(w.prototype,"tabNames"),w.prototype),S(w.prototype,"activeTab",[v],Object.getOwnPropertyDescriptor(w.prototype,"activeTab"),w.prototype),S(w.prototype,"onTabChanged",[o.action],Object.getOwnPropertyDescriptor(w.prototype,"onTabChanged"),w.prototype),A=S(w.prototype,"forceRerenderAccordionHack",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),w);(0,T.setComponentTemplate)(l,R)},175444(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(765632),o=i(943910),a=(i(150249),i(279564)),n=(i(44384),i(922265));const s=(0,i(510364).createTemplateFactory)({id:"Sb0hhYIG",block:'[[[41,[30,1,["component"]],[[[44,[[50,[30,1,["component"]],0,null,null]],[[[1," "],[8,[30,2],null,[["@field","@itemController","@isMultiContext"],[[30,1],[30,3],[30,4]]],null],[1,"\\n"]],[2]]]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"composite"],null],[[[1," "],[10,"apl-composite"],[14,"connected","false"],[15,"ratio",[30,1,["ratio"]]],[14,"hide-label",""],[14,0,"space-x-2"],[12],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,1,["fields"]]],null]],null],null,[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,6],null,[["@field","@itemController","@applicationTheme"],[[30,5],[30,3],[30,6]]],null],[1,"\\n "],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"checkbox"],null],[[[1," "],[11,"apl-checkbox"],[24,0,"block"],[16,"checked",[30,0,["value"]]],[16,"disabled",[30,1,["disabled"]]],[4,[38,7],["change",[30,0,["onChange"]]],null],[12],[1,"\\n"],[1," "],[2,[30,1,["label"]]],[1,"\\n"],[41,[30,1,["tooltip"]],[[[1," "],[10,"apl-tooltip"],[14,0,"relative -ml-1.5 mt-px"],[14,"preset","info"],[15,5,[28,[37,8],[[52,[28,[37,3],[[30,6],"legacy"],null],"--decision-button-icon-only-compact-height: 11px; --decision-icon-height: 11px; --decision-icon-width-default: 11px;","--decision-button-icon-only-compact-height: 20px"]],null]],[12],[1,"\\n "],[10,1],[14,"slot","text"],[12],[1,[30,1,["tooltip"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"dropdown"],null],[[[1," "],[11,"apl-dropdown-list"],[16,"label",[30,1,["label"]]],[16,2,[30,0,["value"]]],[16,"optionsArray",[30,1,["options"]]],[16,"multiSelect",[30,1,["multiSelect"]]],[16,"multiSelectRows",[30,1,["multiSelectRows"]]],[4,[38,7],["change",[30,0,["onChange"]]],null],[12],[1,"\\n"],[41,[30,1,["tooltip"]],[[[1," "],[10,0],[14,"slot","tooltip-info"],[12],[1,[30,1,["tooltip"]]],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"radio"],null],[[[1," "],[11,"apl-radio"],[16,"label",[30,1,["label"]]],[16,"optionsArray",[30,1,["options"]]],[16,2,[30,0,["value"]]],[4,[38,7],["change",[30,0,["onChange"]]],null],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"switch"],null],[[[1," "],[11,"apl-segmented-switch"],[16,"appearance",[30,1,["appearance"]]],[16,"size",[30,1,["size"]]],[16,3,[30,1,["path"]]],[16,"label",[30,1,["label"]]],[16,2,[30,0,["value"]]],[16,"optionsArray",[30,1,["options"]]],[4,[38,7],["change",[30,0,["onChange"]]],null],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"range"],null],[[[1," "],[11,"apl-range-slider"],[16,"label",[30,1,["label"]]],[16,2,[30,0,["value"]]],[16,"min",[30,1,["min"]]],[16,"max",[30,1,["max"]]],[16,"step",[30,1,["step"]]],[16,"show-text-input",[28,[37,9],[[30,1,["hideInput"]]],null]],[4,[38,7],["change",[30,0,["onChange"]]],null],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"text-input"],null],[[[1," "],[10,"apl-text-input"],[15,"input-type",[30,1,["inputType"]]],[15,"label",[30,1,["label"]]],[15,2,[30,0,["value"]]],[15,"error",[30,0,["error"]]],[15,"onInput",[30,0,["onChange"]]],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,1,["type"]],"stacked-chips"],null],[[[1," "],[8,[39,10],null,[["@label","@value","@min","@max","@labelField","@valueField","@options","@onChange"],[[30,1,["label"]],[30,0,["value"]],[30,1,["min"]],[30,1,["max"]],[30,1,["labelField"]],[30,1,["valueField"]],[30,1,["options"]],[30,0,["onChange"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,"apl-banner"],[14,0,"my-3"],[15,"content",[29,["Unsupported field: ",[30,1,["label"]]," (type: ",[30,1,["type"]],")"]]],[14,4,"error"],[12],[13],[1,"\\n"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],["@field","FieldComponent","@itemController","@isMultiContext","field","@applicationTheme"],false,["if","let","component","eq","each","-track-array","widget/config-panel/field","on","sanitize-style","not","widget/config-panel/field/stacked-chips"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field.hbs",isStrictMode:!1});var l,u,c=i(618576);function d(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let p=(l=class extends r.A{constructor(...e){var t;super(...e),(t=u)&&Object.defineProperty(this,"error",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}get field(){return this.args.field}get itemController(){return this.args.itemController}get visualization(){return this.itemController.visualization}get value(){return this.field.getValue(this.visualization)}onChange(e){let t;switch(this.field.type){case"stacked-chips":{let t=this.field;switch(e.action){case"add":t.onAdd?.(this.visualization,e.value);break;case"remove":t.onRemove(this.visualization,e.item);break;case"reorder":t.onReorder(this.visualization,e.items,e.movedItem);break;case"swap":t.onSwap?.(this.visualization,e.item,e.value)}break}case"dropdown":if(this.field.multiSelect){let t=this.value,{option:i,add:r}=e.detail;t=i instanceof Set?[...i].map(e=>e.value):r?[...t,i.value]:t.filter(e=>e!==i.value),e={target:{value:(0,n.OA)(t)}}}t=this.field.onChange(this.visualization,e);break;default:t=this.field.onChange(this.visualization,e)}this.error=t?.error,this.field.notifyChart&&this.itemController.notifyChartConfigChanged?.()}},u=d(l.prototype,"error",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d(l.prototype,"onChange",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"onChange"),l.prototype),l);(0,c.setComponentTemplate)(s,p)},112956(e,t,i){i.r(t),i.d(t,{default:()=>h});var r=i(830819),o=i(943910),a=i(636272),n=i(765632);const s=(0,i(510364).createTemplateFactory)({id:"MsbMrFVG",block:'[[[11,"apl-segmented-switch"],[24,"appearance","stretch"],[16,"optionsArray",[30,0,["alignmentOptions"]]],[16,2,[30,0,["alignment"]]],[24,0,"mr-2.5"],[24,"hide-label",""],[4,[38,0],["change",[30,0,["handleAlignmentChange"]]],null],[12],[13]],[],false,["on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/alignment.hbs",isStrictMode:!1});var l,u,c,d=i(618576);function p(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let h=(l=(0,o.computed)("_alignment","args.itemController.visualizationComponent.alignment"),u=(0,o.computed)("args.itemController.visualizationComponent.textStyle"),p((c=class extends n.A{constructor(...e){var t,i,r;super(...e),t=this,r=null,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="_alignment"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r}get alignmentOptions(){return r.L4}get alignment(){return null!==this._alignment?this._alignment:this.args.itemController.visualizationComponent.alignment}set alignment(e){(0,o.set)(this,"_alignment",e)}get textStyle(){return this.args.itemController.visualizationComponent.textStyle}handleAlignmentChange(e){let t=e.target.value;if(!["left","right","center"].includes(t))throw new Error(`Invalid 'alignment' ${t}. 'alignment' must be one of 'left', 'center', or 'right'`);{let e=this.textStyle;this.args.itemController.notifyTextConfigChanged("applyFontFormat","p");let i=`justify${(0,a.A)(t)}`;this.args.itemController.notifyTextConfigChanged(i),this.alignment=t,e&&this.args.itemController.notifyTextConfigChanged("applyFontFormat",e)}}}).prototype,"alignment",[l],Object.getOwnPropertyDescriptor(c.prototype,"alignment"),c.prototype),p(c.prototype,"textStyle",[u],Object.getOwnPropertyDescriptor(c.prototype,"textStyle"),c.prototype),p(c.prototype,"handleAlignmentChange",[o.action],Object.getOwnPropertyDescriptor(c.prototype,"handleAlignmentChange"),c.prototype),c);(0,d.setComponentTemplate)(s,h)},273477(e,t,i){i.r(t),i.d(t,{default:()=>d});var r=i(765632),o=i(943910);const a=(0,i(510364).createTemplateFactory)({id:"8uMN7h+E",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["switchOptions"]]],null]],null],null,[[[1," "],[10,"apl-segmented-switch"],[15,3,[30,2]],[15,"label",[30,1,["name"]]],[15,2,[30,1,["value"]]],[15,"optionsArray",[30,0,["optionsArray"]]],[15,"onChange",[30,0,["onSelection"]]],[12],[13],[1,"\\n"]],[1,2]],null]],["entry","index"],false,["each","-track-array"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/axis-assignment.hbs",isStrictMode:!1});var n,s,l=i(618576);function u(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const c=Object.freeze(["first","second"]);let d=(n=(0,o.computed)("[email protected]"),u((s=class extends r.A{get itemController(){return this.args.itemController}get visualization(){return this.itemController.visualization}get optionsArray(){let{supportsSecondXAxis:e}=this.visualization;return[{value:c[0],label:e?"Bottom":"Left"},{value:c[1],label:e?"Top":"Right"}]}get axisAssignments(){let{query:e,valueFactorAxisAssignments:t}=this.visualization;return e.valueFactors.map((e,i)=>({name:e.headerName,value:JSON.stringify([i,t[i]])}))}get switchOptions(){return this.axisAssignments.map(e=>{let[t,i]=JSON.parse(e.value);return{id:t,name:e.name,value:c[i]}})}
1onSelection(e){let t=e.target,i=parseInt(t.name),r=c.indexOf(t.value);this.visualization.valueFactorAxisAssignments.splice(i,1,r),this.visualization.valueFactorAxisAssignments=[...this.visualization.valueFactorAxisAssignments],this.itemController.notifyChartConfigChanged?.()}}).prototype,"switchOptions",[n],Object.getOwnPropertyDescriptor(s.prototype,"switchOptions"),s.prototype),u(s.prototype,"onSelection",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"onSelection"),s.prototype),s);(0,l.setComponentTemplate)(a,d)},376939(e,t,i){i.r(t),i.d(t,{default:()=>c});var r=i(765632),o=i(943910);const a=(0,i(510364).createTemplateFactory)({id:"lNpF0u3V",block:'[[[10,0],[14,0,"widgets-config-panel-color-picker"],[12],[1,"\\n "],[8,[39,0],null,[["@dropdownClass","@selectedColor","@userSelected","@useAngleDownIcon"],["adde-color-picker-dropdown widgets-config-panel-color-picker-dropdown",[30,0,["selectedColor"]],[30,0,["handleColorSelect"]],true]],null],[1,"\\n"],[13]],[],false,["adde-color-picker"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/font-color.hbs",isStrictMode:!1});var n,s,l=i(618576);function u(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let c=(n=(0,o.computed)("_selectedColor","args.itemController.visualizationComponent.selectedFontColor"),u((s=class extends r.A{constructor(...e){var t,i,r;super(...e),t=this,r=null,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="_selectedColor"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r}get selectedColor(){return null!==this._selectedColor?this._selectedColor:this.args.itemController.visualizationComponent.selectedFontColor}set selectedColor(e){(0,o.set)(this,"_selectedColor",e)}handleColorSelect(e){this.args.itemController.notifyTextConfigChanged("applyForeColor",e)}}).prototype,"selectedColor",[n],Object.getOwnPropertyDescriptor(s.prototype,"selectedColor"),s.prototype),u(s.prototype,"handleColorSelect",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"handleColorSelect"),s.prototype),s);(0,l.setComponentTemplate)(a,c)},788928(e,t,i){i.r(t),i.d(t,{default:()=>v});var r=i(830819),o=i(943910),a=i(765632),n=i(989272),s=i(279564),l=i(804204);const u=(0,i(510364).createTemplateFactory)({id:"6p5L/hkL",block:'[[[11,"apl-dropdown-list"],[16,"optionsArray",[30,0,["fontSizeOptions"]]],[16,2,[30,0,["fontSize"]]],[16,"typeaheadCallback",[30,0,["handleTextSizeInput"]]],[16,"openCallback",[30,0,["handleOpen"]]],[16,"closeCallback",[30,0,["handleClose"]]],[16,"mouseOverCallback",[30,0,["handleMouseOver"]]],[16,"mouseLeaveCallback",[30,0,["handleMouseLeave"]]],[24,"hide-label",""],[16,"enableTypeaheadTrigger",true],[24,"disable-typeahead-filter",""],[24,"typeahead-trigger-preset","number"],[24,"typeahead-trigger-placeholder",""],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],["change",[30,0,["handleTextSizeInput"]]],null],[12],[13]],[],false,["on-insert","on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/font-size.hbs",isStrictMode:!1});var c,d,p,h,m,g=i(618576);function f(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function y(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const b=l.service??l.inject;let v=(c=(0,o.computed)("args.itemController.visualizationComponent.fontSize","savedFontSize"),d=class extends a.A{constructor(...e){super(...e),f(this,"dropdownElement",p,this),f(this,"savedFontSize",h,this),f(this,"featureFlags",m,this)}async didInsertEl(e){this.dropdownElement=e,await this.didUpdateFontSize(this.fontSize)}get fontSize(){return this.savedFontSize??String(this.args.itemController.visualizationComponent.fontSize)}get fontSizeOptions(){return r.Bq}
1handleMouseOver(e){let{value:t}=e;t&&(this.savedFontSize=this.fontSize,this.args.itemController.notifyTextConfigChanged("applyFontSize",t))}handleMouseLeave(){this.savedFontSize&&this.args.itemController.notifyTextConfigChanged("applyFontSize",this.savedFontSize)}async didUpdateFontSize(e){await(this.dropdownElement?.setTypeaheadValue(e)),await(this.dropdownElement?.closeList())}async handleOpen(e){if(e instanceof PointerEvent){let e=await(this.dropdownElement?.getTrigger());e?.refs?.input?.select()}}async handleClose(e){this.isDestroying||e.typeahead!==this.fontSize&&await this.didUpdateFontSize(this.fontSize)}async handleTextSizeInput(e){let t="string"==typeof e?e:e.target.value;if(t.length){let i=Math.round(parseFloat(t));await(this.dropdownElement?.setTypeaheadValue(String(i))),i>=r.v0&&(i=Math.min(r.l6,i),"string"==typeof e?(0,n.debounce)(this,this.updateFontSize,String(i),500):await this.updateFontSize(String(i)))}}async updateFontSize(e){this.args.itemController.visualizationComponent&&(this.args.itemController.notifyTextConfigChanged("applyFontSize",Number(e)),this.savedFontSize=e,await this.didUpdateFontSize(e))}},p=y(d.prototype,"dropdownElement",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y(d.prototype,"savedFontSize",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=y(d.prototype,"featureFlags",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y(d.prototype,"didInsertEl",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"didInsertEl"),d.prototype),y(d.prototype,"fontSize",[c],Object.getOwnPropertyDescriptor(d.prototype,"fontSize"),d.prototype),y(d.prototype,"handleMouseOver",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleMouseOver"),d.prototype),y(d.prototype,"handleMouseLeave",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleMouseLeave"),d.prototype),y(d.prototype,"didUpdateFontSize",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"didUpdateFontSize"),d.prototype),y(d.prototype,"handleOpen",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleOpen"),d.prototype),y(d.prototype,"handleClose",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleClose"),d.prototype),y(d.prototype,"handleTextSizeInput",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleTextSizeInput"),d.prototype),d);(0,g.setComponentTemplate)(u,v)},473249(e,t,i){i.r(t),i.d(t,{default:()=>d});var r=i(830819),o=i(943910),a=i(765632);const n=(0,i(510364).createTemplateFactory)({id:"ghMI3rTb",block:'[[[10,"apl-composite"],[14,"connected","true"],[14,"hide-label",""],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["fontStyleOptions"]]],null]],null],null,[[[1," "],[10,"apl-button"],[14,"iconOnly","true"],[14,"toggle","true"],[14,0,"flex-grow"],[14,"appearance","secondary"],[15,"active",[28,[30,0,["isModeActive"]],[[30,1,["icon"]]],null]],[15,"onclick",[28,[37,2],[[30,0,["handleFontStyleChange"]],[30,1,["value"]]],null]],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[30,1,["icon"]]],[12],[13],[1,"\\n "],[10,1],[14,"slot","icon-alt-text"],[12],[1,[30,1,["label"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[13]],["option"],false,["each","-track-array","fn"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/font-style.hbs",isStrictMode:!1});var s,l,u=i(618576);function c(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let d=(s=(0,o.computed)("args.itemController.visualizationComponent.activeFontStyles"),c((l=class extends a.A{get fontStyleOptions(){return r.r2}get activeFontStyles(){return this.args.itemController.visualizationComponent.activeFontStyles}isModeActive(e){return this.activeFontStyles.has(e)}handleFontStyleChange(e){if("bold"===e)this.args.itemController.notifyTextConfigChanged("toggleBold");else if("italic"===e)this.args.itemController.notifyTextConfigChanged("toggleItalic");else{if("underline"!==e)throw new Error(`Invalid font style passed to FontStyleAndSizeComponent: ${e}`);this.args.itemController.notifyTextConfigChanged("toggleUnderline")}}}).prototype,"activeFontStyles",[s],Object.getOwnPropertyDescriptor(l.prototype,"activeFontStyles"),l.prototype),c(l.prototype,"isModeActive",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"isModeActive"),l.prototype),c(l.prototype,"handleFontStyleChange",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"handleFontStyleChange"),l.prototype),l);(0,u.setComponentTemplate)(n,d)},383016(e,t,i){i.r(t),i.d(t,{default:()=>y});var r=i(943910),o=i(765632),a=i(279564),n=i(804204);const s=(0,i(510364).createTemplateFactory)({id:"feE6ncIC",block:'[[[11,"apl-dropdown-list"],[24,0,"min-w-[100px]"],[16,"optionsArray",[30,0,["fontWeightOptions"]]],[16,2,[30,0,["fontWeight"]]],[16,"mouseOverCallback",[30,0,["handleMouseOver"]]],[16,"mouseLeaveCallback",[30,0,["handleMouseLeave"]]],[16,"hide-label",true],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],["change",[30,0,["handleChange"]]],null],[12],[13]],[],false,["on-insert","on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/font-we
1ight.hbs",isStrictMode:!1});var l,u,c,d,p,h=i(618576);function m(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function g(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const f=n.service??n.inject;let y=(l=(0,r.computed)("args.itemController.visualizationComponent.fontWeight","savedFontWeight"),u=(0,r.computed)("args.itemController.fontNameOptions"),c=class extends o.A{constructor(...e){super(...e),m(this,"savedFontWeight",d,this),m(this,"featureFlags",p,this)}didInsertEl(){this.savedFontWeight=this.fontWeight}get fontWeight(){return this.savedFontWeight??this.args.itemController.visualizationComponent.fontWeight}get fontWeightOptions(){return this.args.itemController.fontNameOptions}handleMouseOver(e){let{value:t}=e;t&&(this.savedFontWeight=this.fontWeight,this.args.itemController.notifyTextConfigChanged("applyFontWeight",t))}handleMouseLeave(){this.savedFontWeight&&this.args.itemController.notifyTextConfigChanged("applyFontWeight",this.savedFontWeight)}handleChange(e){let t=e.target.value;this.args.itemController.notifyTextConfigChanged("applyFontWeight",t),this.savedFontWeight=t}},d=g(c.prototype,"savedFontWeight",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=g(c.prototype,"featureFlags",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(c.prototype,"didInsertEl",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"didInsertEl"),c.prototype),g(c.prototype,"fontWeight",[l],Object.getOwnPropertyDescriptor(c.prototype,"fontWeight"),c.prototype),g(c.prototype,"fontWeightOptions",[u],Object.getOwnPropertyDescriptor(c.prototype,"fontWeightOptions"),c.prototype),g(c.prototype,"handleMouseOver",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"handleMouseOver"),c.prototype),g(c.prototype,"handleMouseLeave",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"handleMouseLeave"),c.prototype),g(c.prototype,"handleChange",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"handleChange"),c.prototype),c);(0,h.setComponentTemplate)(s,y)},599388(e,t,i){i.r(t),i.d(t,{default:()=>u});var r=i(943910),o=i(765632);const a=(0,i(510364).createTemplateFactory)({id:"kK9ByeuP",block:'[[[11,"apl-button"],[24,"appearance","secondary"],[24,"icon-only",""],[24,"icon-border",""],[4,[38,0],["click",[30,0,["handleOutdent"]]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","outdent"],[12],[13],[1,"\\n"],[13],[1,"\\n"],[11,"apl-button"],[24,"appearance","secondary"],[24,"icon-only",""],[24,"icon-border",""],[4,[38,0],["click",[30,0,["handleIndent"]]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","indent"],[12],[13],[1,"\\n"],[13]],[],false,["on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/indent.hbs",isStrictMode:!1});var n,s=i(618576);function l(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let u=(l((n=class extends o.A{handleIndent(){this.args.itemController.notifyTextConfigChanged("indent")}handleOutdent(){this.args.itemController.notifyTextConfigChanged("outdent")}}).prototype,"handleIndent",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"handleIndent"),n.prototype),l(n.prototype,"handleOutdent",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"handleOutdent"),n.prototype),n);(0,s.setComponentTemplate)(a,u)},96775(e,t,i){i.r(t),i.d(t,{default:()=>v});var r=i(830819),o=i(943910),a=i(765632),n=i(279564),s=i(989272),l=i(804204);const u=(0,i(510364).createTemplateFactory)({id:"DRndsM18",block:'[[[11,"apl-dropdown-list"],[16,"optionsArray",[30,0,["lineSpacingOptions"]]],[16,2,[30,0,["lineSpacing"]]],[24,0,"min-w-[100px]"],[24,"list-width","100px"],[16,"openCallback",[30,0,["handleOpen"]]],[16,"closeCallback",[30,0,["handleClose"]]],[16,"mouseOverCallback",[30,0,["handleMouseOver"]]],[16,"mouseLeaveCallback",[30,0,["handleMouseLeave"]]],[16,"typeaheadCallback",[30,0,["handleLineSpacingChange"]]],[24,"hide-label",""],[16,"enableTypeaheadTrigger",true],[24,"disable-typeahead-filter",""],[24,"typeahead-trigger-preset","number"],[24,"typeahead-trigger-placeholder",""],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],["change",[30,0,["handleLineSpacingChange"]]],null],[12],[1,"\\n "],[10,0],[14,0,"mr-2 mt-2"],[14,"slot","typeahead-trigger-prefix"],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","line-spacing"],[12],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["on-insert","on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/line-spacing.hbs",isStrictMode:!1});var c,d,p,h,m,g=i(618576);function f(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function y(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const b=l.service??l.inject;let v=(c=(0,o.computed)("args.itemController.visualizationComponent.lineSpacing","savedLineSpacing"),d=class extends a.A{constructor(...e){super(...e),f(this,"dropdownElement",p,this),f(this,"savedLineSpacing",h,this),f(this,"featureFlags",m,this)}async didInsertEl(e){this.dropdownElement=e,await this.didUpdateLineSpacing(this.lineSpacing)}get lineSpacingOptions(){return r.WU}get lineSpacing(){return this.savedLineSpacing??String(this.args.itemController.visualizationComponent?.lineSpacing??r.J$)}getLineSpacingLabel(e){return e===r.J$?"Default":String(e)}handleMouseOver(e){let{value:t}=e;t&&(this.savedLineSpacing=this.lineSpacing,this.args.itemController.notifyTextConfigChanged("applyLineSpacing",{size:t}))}handleMouseLeave(){this.savedLineSpacing&&this.args.itemController.notifyTextConfigChanged("applyLineSpacing",{size:this.savedLineSpacing})}async handleOpen(e){if(e instanceof PointerEvent){let e=await(this.dropdownElement?.getTrigger());e?.refs?.input?.select()}}async handleClose(e){this.isDestroying||e.typeahead!==this.getLineSpacingLabel(this.lineSpacing)&&await this.didUpdateLineSpacing(this.lineSpacing)}async didUpdateLineSpacing(e){await(this.dropdownElement?.setTypeaheadValue(this.getLineSpacingLabel(e))),await(this.dropdownElement?.closeList())}async handleLineSpacingChange(e){let t="string"==typeof e?e:e.target.value;t.length&&(t=t.replaceAll(",",""),t=t.endsWith(".")?t.slice(0,-1):t,await(this.dropdownElement?.setTypeaheadValue(this.getLineSpacingLabel(t))),"string"==typeof e?(0,s.debounce)(this,this.updateLineSpacing,t,500):await this.updateLineSpacing(String(t)))}async updateLineSpacing(e){this.args.itemController.visualizationComponent&&(this.args.itemController.notifyTextConfigChanged("applyLineSpacing",{size:e}),this.savedLineSpacing=e,await this.didUpdateLineSpacing(e))}},p=y(d.prototype,"dropdownElement",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),h=y(d.prototype,"savedLineSpacing",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=y(d.prototype,"featureFlags",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y(d.prototype,"didInsertEl",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"didInsertEl"),d.prototype),y(d.prototype,"lineSpacing",[c],Ob
1ject.getOwnPropertyDescriptor(d.prototype,"lineSpacing"),d.prototype),y(d.prototype,"handleMouseOver",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleMouseOver"),d.prototype),y(d.prototype,"handleMouseLeave",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleMouseLeave"),d.prototype),y(d.prototype,"handleOpen",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleOpen"),d.prototype),y(d.prototype,"handleClose",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleClose"),d.prototype),y(d.prototype,"didUpdateLineSpacing",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"didUpdateLineSpacing"),d.prototype),y(d.prototype,"handleLineSpacingChange",[o.action],Object.getOwnPropertyDescriptor(d.prototype,"handleLineSpacingChange"),d.prototype),d);(0,g.setComponentTemplate)(u,v)},632821(e,t,i){i.r(t),i.d(t,{default:()=>u});var r=i(943910),o=i(765632);const a=(0,i(510364).createTemplateFactory)({id:"r70Y4jLZ",block:'[[[10,"apl-composite"],[14,"connected","false"],[15,"ratio",[28,[37,0],["1","1"],null]],[14,"hide-label",""],[12],[1,"\\n "],[11,"apl-button"],[24,"appearance","secondary"],[4,[38,1],["click",[30,0,["setNumberListType"]]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","list-ol"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[11,"apl-button"],[24,"appearance","secondary"],[4,[38,1],["click",[30,0,["setBulletListType"]]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","list"],[12],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],false,["array","on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/list-type.hbs",isStrictMode:!1});var n,s=i(618576);function l(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let u=(l((n=class extends o.A{setNumberListType(){this.args.itemController.notifyTextConfigChanged("insertOrderedList")}setBulletListType(){this.args.itemController.notifyTextConfigChanged("insertUnorderedList")}}).prototype,"setNumberListType",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"setNumberListType"),n.prototype),l(n.prototype,"setBulletListType",[r.action],Object.getOwnPropertyDescriptor(n.prototype,"setBulletListType"),n.prototype),n);(0,s.setComponentTemplate)(a,u)},887084(e,t,i){i.r(t),i.d(t,{default:()=>m});var r=i(618576),o=i.n(r),a=i(640626);const n=(0,i(510364).createTemplateFactory)({id:"+tIk9Ch7",block:'[[[8,[39,0],null,[["@noFiltersPlaceholder","@popoverPlacement","@descriptionPlacement","@filterOwner","@filterSetOwner","@startDate","@endDate","@ownershipPerspective","@onFilterSetDelete","@useAplFilterList"],["","left","left-start",[30,0,["visualization","query"]],[30,0,["visualization"]],[30,0,["queryRequest","startDate"]],[30,0,["queryRequest","endDate"]],[30,0,["queryRequest","ownershipPerspective"]],[30,0,["itemController","controller","onFilterSetDelete"]],true]],null]],[],false,["filters-editor/inline"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/portfolio-filters.hbs",isStrictMode:!1});var s,l,u,c,d;function p(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function h(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let m=(s=(0,a.readOnly)("itemController.queryRequest"),l=(0,a.readOnly)("itemController.visualization"),u=class extends(o()){constructor(...e){var t,i,r;super(...e),t=this,r="",(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="tagName"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,p(this,"queryRequest",c,this),p(this,"visualization",d,this)}},c=h(u.prototype,"queryRequest",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=h(u.prototype,"visualization",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u);(0,r.setComponentTemplate)(n,m)},397366(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(765632),o=i(279564),a=i(989272),n=i(943910);i(44384);const s=(0,i(510364).createTemplateFactory)({id:"T+CeAlxU",block:'[[[11,0],[17,1],[16,0,[29,[[52,[30,0,["chipData","length"]],"space-y-2","-space-y-0.5"]]]],[12],[1,"\\n"],[41,[51,[30,0,["forceRerender
1StackedChipsHack"]]],[[[1," "],[8,[39,2],[[16,"label",[30,2]],[16,"hide-label",[28,[37,3],[[30,2]],null]],[24,"hide-empty-state",""],[24,"aux-button-style","none"]],[["@data","@dragEndCallback","@chipRemoveCallback","@sortable","@removable"],[[30,0,["chipData"]],[30,0,["reorderItems"]],[30,0,["removeItem"]],[30,0,["canSortItems"]],[30,0,["canRemoveItem"]]]],[["default"],[[[[1,"\\n "],[10,0],[14,0,"items-justify-stretch flex items-center"],[14,"slot","content"],[12],[1,"\\n"],[41,[30,4],[[[1," "],[11,"apl-dropdown-list"],[24,0,"w-0 grow"],[24,"hide-label",""],[16,"label",[28,[37,4],[[30,3],[30,0,["labelField"]]],null]],[16,2,[28,[37,4],[[30,3],[30,0,["valueField"]]],null]],[24,"show-typeahead-input",""],[16,"optionsArray",[28,[30,0,["getSwapOptions"]],[[30,3]],null]],[4,[38,5],["change",[28,[37,6],[[30,0,["editItem"]],[30,3]],null]],null],[12],[1,"\\n "],[10,"apl-block"],[14,"slot","trigger"],[14,0,"w-full"],[14,"variant","trigger"],[15,"label",[28,[37,4],[[30,3],[30,0,["labelField"]]],null]],[14,"icon","pen"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,5],[[[1," "],[11,"apl-block"],[24,"data-factor-btn",""],[24,0,"w-0 grow"],[24,"variant","trigger"],[16,"label",[28,[37,4],[[30,3],[30,0,["labelField"]]],null]],[24,"icon","pen"],[4,[38,5],["click",[28,[37,6],[[30,0,["handleItemEdit"]],[30,3]],null]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,"apl-block"],[14,0,"w-0 grow"],[14,"variant","trigger"],[15,"label",[28,[37,4],[[30,3],[30,0,["labelField"]]],null]],[12],[13],[1,"\\n "]],[]]]],[]]],[41,[30,6],[[[1," "],[11,"apl-segmented-switch"],[24,3,"subtype"],[24,0,"ml-1"],[16,"hideLabel",true],[16,"label",[28,[37,4],[[30,3],[30,0,["labelField"]]],null]],[16,2,[28,[37,4],[[30,3],[30,7]],null]],[16,"optionsArray",[30,0,["aplSubtypeOptions"]]],[4,[38,5],["change",[28,[37,6],[[30,0,["subtypeChanged"]],[30,3]],null]],null],[12],[13],[1,"\\n"]],[]],null],[41,[30,8],[[[1," "],[10,"apl-floating-menu"],[14,0,"ml-1"],[14,"placement","bottom-end"],[14,"size","compact"],[12],[1,"\\n "],[10,"apl-tooltip"],[14,"slot","trigger"],[14,0,"flex"],[14,"placement","bottom"],[14,"size","small"],[14,"appearance","dark"],[12],[1,"\\n "],[10,"apl-button"],[14,"slot","trigger"],[14,"icon-only",""],[14,"icon-border",""],[12],[1,"\\n"],[44,[[28,[37,4],[[30,3],[30,9]],null]],[[[44,[[28,[37,4],[[30,0,["sortingOptionsMap"]],[30,10]],null]],[[[1," "],[10,"apl-icon"],[15,"icon",[30,11,["icon"]]],[12],[13],[1,"\\n"]],[11]]]],[10]]],[1," "],[13],[1,"\\n "],[10,0],[14,"slot","text"],[12],[1,"\\n Sort direction\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,8]],null]],null],null,[[[1," "],[11,"apl-floating-menu-item"],[4,[38,5],["click",[28,[37,6],[[30,0,["sortingChanged"]],[30,3],[30,12,["value"]]],null]],null],[12],[1,"\\n "],[10,1],[14,0,"flex items-center"],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[30,12,["icon"]]],[12],[13],[10,1],[14,0,"pl-2"],[12],[1,[30,12,["label"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[12]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[3]]]]],[1,"\\n"]],[]],null],[41,[30,0,["showAddButton"]],[[[41,[30,4],[[[1," "],[11,"apl-dropdown-list"],[24,"hide-label",""],[24,"label","Add"],[24,"show-typeahead-input",""],[16,"optionsArray",[30,0,["addOptions"]]],[4,[38,5],["change",[30,0,["addItem"]]],null],[12],[1,"\\n "],[10,"apl-button"],[14,"slot","trigger"],[14,"appearance","secondary"],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","plus"],[12],[13],[1,"\\n Add\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,"apl-button"],[24,"appearance","secondary"],[16,"disabled",[28,[37,10],[[30,0,["canAddItem"]]],null]],[4,[38,5],["click",[30,0,["addItemClick"]]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","plus"],[12],[13],[1,"\\n Add\\n "],[13],[1,"\\n"]],[]]]],[]],null],[13]],["&attrs","@label","item","@options","@onChange","@subtypeOptions","@subtypeField","@sortingOptions","@sortingField","value","selectedSortOption","option"],false,["if","unless","apl-stacked-chips","is-empty","get","on","fn","let","each","-track-array","not"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/stacked-chips.hbs",isStrictMode:!1});var l,u,c=i(618576);function d(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let p=(d((l=class extends r.A{constructor(...e){var t;super(...e),function(e,t,i){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"getSwapOptions",e=>[{value:String((0,n.get)(e,this.valueField)),label:String((0,n.get)(e,this.labelField))},...this.addOptions]),(t=u)&&Object.defineProperty(this,"forceRerender
1StackedChipsHack",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}get items(){return this.args.value}get labelField(){return this.args.labelField??"label"}get valueField(){return this.args.valueField??"value"}get minLength(){return this.args.min??0}get maxLength(){return this.args.max??1/0}get aplSubtypeOptions(){return this.args.subtypeOptions?.map(e=>({...e,hideLabel:!0}))}get showAddButton(){return!1!==this.args.showAddButton&&(!this.args.options||0!==this.addOptions.length)&&(0===this.items.length||this.canAddItem)}get enableSorting(){return this.args.enableSorting??!0}get chipData(){return this.items.slice()}get canAddItem(){return this.items.length<this.maxLength}get canSortItems(){return this.items.length>1&&this.enableSorting}get canRemoveItem(){return this.items.length>this.minLength}get addOptions(){let e=this.args.options??[],{valueField:t}=this;return e.filter(e=>!this.items.some(i=>String((0,n.get)(i,t))===String(e.value)))}addItem(e){let t=e.detail,i=String(t.option?.value??t.value);this.args.onChange?.({action:"add",value:i}),this.forceRerenderStackedChips()}addItemClick(e){this.args.onChange?.({action:"addClick",targetElement:e.target})}forceRerenderStackedChips(){this.forceRerenderStackedChipsHack=!0,(0,a.schedule)("afterRender",()=>{this.forceRerenderStackedChipsHack=!1})}removeItem(e){this.args.onChange?.({action:"remove",item:e}),this.forceRerenderStackedChips()}reorderItems(e,{newIndex:t}){let i=e[t];this.items.setObjects(e),this.args.onChange?.({action:"reorder",items:e,movedItem:i}),this.forceRerenderStackedChips()}editItem(e,t){let i=t.detail,r=String(i.option?.value??i.value);this.args.onChange?.({action:"swap",item:e,value:r}),this.forceRerenderStackedChips()}handleItemEdit(e,t){this.args.onChange?.({action:"editClick",item:e,targetElement:t.target})}subtypeChanged(e,t){let i=t.target.value;this.args.onChange?.({action:"subtypeChange",item:e,value:i})}sortingChanged(e,t){this.args.onChange?.({action:"sortingChange",item:e,value:t})}get sortingOptionsMap(){let e={};for(let t of this.args.sortingOptions??[])e[t.value]=t;return e}}).prototype,"addItem",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"addItem"),l.prototype),d(l.prototype,"addItemClick",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"addItemClick"),l.prototype),u=d(l.prototype,"forceRerenderStackedChipsHack",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d(l.prototype,"removeItem",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"removeItem"),l.prototype),d(l.prototype,"reorderItems",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"reorderItems"),l.prototype),d(l.prototype,"editItem",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"editItem"),l.prototype),d(l.prototype,"handleItemEdit",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"handleItemEdit"),l.prototype),d(l.prototype,"subtypeChanged",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"subtypeChanged"),l.prototype),d(l.prototype,"sortingChanged",[n.action],Object.getOwnPropertyDescriptor(l.prototype,"sortingChanged"),l.prototype),l);(0,c.setComponentTemplate)(s,p)},88196(e,t,i){i.r(t),i.d(t,{default:()=>y});var r=i(943910),o=i(765632),a=i(279564),n=i(804204);const s=(0,i(510364).createTemplateFactory)({id:"RU77nkr2",block:'[[[11,"apl-dropdown-list"],[16,"optionsArray",[30,0,["textStyleOptions"]]],[16,2,[30,0,["textStyle"]]],[16,"disabled",[30,0,["disabled"]]],[16,"mouseOverCallback",[30,0,["handleMouseOver"]]],[16,"mouseLeaveCallback",[30,0,["handleMouseLeave"]]],[24,"hide-label",""],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],["change",[30,0,["handleTextStyleChange"]]],null],[12],[13]],[],false,["on-insert","on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/text-style.hbs",isStrictMode:!1});var l,u,c,d,p,h=i(618576);function m(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function g(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const f=n.service??n.inject;let y=(l=(0,r.computed)("args.itemController.visualizationComponent.textStyle","savedTextStyle"),u=(0,r.computed)("args.itemController.fontFormats"),c=class extends o.A{constructor(...e){super(...e),m(this,"savedTextStyle",d,this),m(this,"featureFlags",p,this)}didInsertEl(){this.savedTextStyle=this.textStyle}get textStyle(){return this.savedTextStyle??this.args.itemController.visualizationComponent.textStyle}get textStyleOptions(){return this.args.itemController.fontFormats.map(e=>{let{tag:t,...i}=e;return i})}handleMouseOver(e){let{value:t}=e;t&&(this.savedTextStyle=this.textStyle,this.args.itemController.notifyTextConfigChanged("applyFontFormat",t))}handleMouseLeave(){this.savedTextStyle&&this.args.itemController.notifyTextConfigChanged("applyFontFormat",this.savedTextStyle)}handleTextStyleChange(e){let t=e.target.value;this.args.itemController.notifyTextConfigChanged("applyFontFormat",t),this.savedTextStyle=t}},d=g(c.prototype,"savedTextStyle",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=g(c.prototype,"featureFlags",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(c.prototype,"didInsertEl",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"didInsertEl"),c.prototype),g(c.prototype,"textStyle",[l],Object.getOwnPropertyDescriptor(c.prototype,"textStyle"),c.prototype),g(c.prototype,"textStyleOptions",[u],Object.getOwnPropertyDescriptor(c.prototype,"textStyleOptions"),c.prototype),g(c.prototype,"handleMouseOver",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"handleMouseOver"),c.prototype),g(c.prototype,"handleMouseLeave",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"handleMouseLeave"),c.prototype),g(c.prototype,"handleTextStyleChange",[r.action],Object.getOwnPropertyDescriptor(c.prototype,"handleTextStyleChange"),c.prototype),c);(0,h.setComponentTemplate)(s,y)},189898(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(765632);const o=(0,i(510364).createTemplateFactory)({id:"KE4sM9pn",block:'[[[8,[39,0],null,[["@title","@filterGroups","@addFilter","@editFilter","@removeFilter","@clearAllFilters","@canAddORGroup","@isSortable"],["",[30,0,["visualizationEditor","filterGroups"]],[30,0,["visualizationEditor","addFilter"]],[30,0,["visualizationEditor","editFilter"]],[30,0,["visualizationEditor","removeFilter"]],[30,0,["visualizationEditor","clearAllFilters"]],false,false]],null]],[],false,["filter-list-apl"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/transaction-filters.hbs",isStrictMode:!1});var a=i(618576);
1class n extends r.A{get visualizationEditor(){return this.args.itemController.visualizationEditor}}(0,a.setComponentTemplate)(o,n)},160851(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(765632),o=i(943910);const a=(0,i(510364).createTemplateFactory)({id:"iAqZ9IiJ",block:'[[[10,0],[14,0,"form-group"],[12],[1,"\\n "],[10,"label"],[14,0,"text-paragraph font-normal"],[15,"title",[30,1,["label"]]],[14,"data-heap-redact-attributes","title"],[12],[1,[30,1,["label"]]],[13],[1,"\\n "],[10,"apl-floating-menu"],[12],[1,"\\n "],[10,"apl-button"],[14,"slot","trigger"],[14,"appearance","secondary"],[14,"has-popup","menu"],[14,0,"w-full"],[12],[1,"\\n "],[10,0],[14,0,"flex items-center w-full h-full"],[12],[1,"\\n"],[41,[30,0,["value","iconURL"]],[[[1," "],[10,"img"],[15,"src",[30,0,["value","iconURL"]]],[14,0,"h-4 pr-2"],[12],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,0,["value","displayName"]]],[1,"\\n "],[13],[1,"\\n "],[10,"apl-icon"],[14,"icon","angle-down"],[12],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,1,["options"]]],null]],null],null,[[[1," "],[11,"apl-floating-menu-item"],[4,[38,3],["click",[28,[37,4],[[30,0,["onChange"]],[30,2]],null]],null],[12],[1,"\\n"],[41,[30,2,["iconURL"]],[[[1," "],[10,"img"],[15,"src",[29,[[30,2,["iconURL"]]]]],[14,0,"h-4 pr-2"],[12],[13],[1,"\\n"]],[]],null],[1," "],[1,[30,2,["displayName"]]],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"],[13]],["@field","option"],false,["if","each","-track-array","on","fn"]]',moduleName:"@addepar/widgets/components/widget/config-panel/field/visualization-type.hbs",isStrictMode:!1});var n,s=i(618576);let l=(n=class extends r.A{get field(){return this.args.field}get itemController(){return this.args.itemController}get visualization(){return this.itemController.visualization}get value(){return this.field.getValue(this.visualization)}onChange(e){this.field.onChange(this.visualization,e),this.itemController.notifyChartConfigChanged({path:this.field.path})}},u=n.prototype,c="onChange",d=[o.action],p=Object.getOwnPropertyDescriptor(n.prototype,"onChange"),h=n.prototype,m={},Object.keys(p).forEach(function(e){m[e]=p[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce(function(e,t){return t(u,c,e)||e},m),h&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(h):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,c,m),n);var u,c,d,p,h,m;(0,s.setComponentTemplate)(a,l)},45680(e,t,i){i.r(t),i.d(t,{default:()=>c});var r=i(765632),o=i(943910),a=i(496314);i(44384);const n=(0,i(510364).createTemplateFactory)({id:"OoWPFsm/",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@collapsable","@managedFundsLookthrough","@etfLookthrough","@onManagedFundsSettingsChange","@onEtfViewTypeChange","@onEtfThresholdChange"],[true,[30,2,["visualization","query","lookthrough"]],[30,2,["visualization","query","constituentLookthrough"]],[28,[37,2],[[30,0,["onLookthroughViewTypeChange"]],"managedFunds"],null],[28,[37,2],[[30,0,["onLookthroughViewTypeChange"]],"etf"],null],[30,0,["onLookthroughThresholdChange"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,"\\n "],[10,"apl-accordion-item"],[14,"header-text","Look-through settings"],[12],[1,"\\n "],[10,0],[14,"slot","tooltip"],[12],[1,"Show the underlying investments of assets like managed funds and ETFs."],[13],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[8,[39,3],null,[["@managedFundsLookthrough","@etfLookthrough","@onManagedFundsSettingsChange","@onEtfViewTypeChange","@onEtfThresholdChange"],[[30,2,["visualization","query","lookthrough"]],[30,2,["visualization","query","constituentLookthrough"]],[28,[37,2],[[30,0,["onLookthroughViewTypeChange"]],"managedFunds"],null],[28,[37,2],[[30,0,["onLookthroughViewTypeChange"]],"etf"],null],[30,0,["onLookthroughThresholdChange"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],["@useLegacyComponents","@itemController"],false,["if","constituent-settings/legacy-components","fn","constituent-settings/apl-components-without-header"]]',moduleName:"@addepar/widgets/components/widget/config-panel/lookthrough-constituent/container.hbs",isStrictMode:!1});var s,l=i(618576);function u(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let c=(u((s=class extends r.A{onLookthroughViewTypeChange(e,t){let{visualization:i}=this.args.itemController;if(!(0,a.isNone)(i?.query)&&("managedFunds"===e&&i.query.set("lookthrough",t),"etf"===e)){let{constituentLookthrough:e}=i.query;"all"!==t&&"none"!==t||i.query.set("constituentLookthrough",{type:t}),"top"!==t&&"weighted"!==t||i.query.set("constituentLookthrough",{type:t,threshold:e.threshold})}}onLookthroughThresholdChange(e){let{visualization:t}=this.args.itemController;(0,a.isNone)(t?.query)||t?.query.set("constituentLookthrough",{type:t.query.constituentLookthrough.type,threshold:e})}}).prototype,"onLookthroughViewTypeChange",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"onLookthroughViewTypeChange"),s.prototype),u(s.prototype,"onLookthroughThresholdChange",[o.action],Object.getOwnPropertyDescriptor(s.prototype,"onLookthroughThresholdChange"),s.prototype),s);(0,l.setComponentTemplate)(n,c)},373858(e,t,i){i.r(t),i.d(t,{default:()=>R});var r=i(618576),o=i.n(r),a=i(943910),n=(i(44384),i(640626)),s=i(804204),l=i(827599),u=i.n(l);const c=(0,i(510364).createTemplateFactory)({id:"ydWtlND8",block:'[[[41,[28,[37,1],[[30,1,["type"]],"factor-config"],null],[[[1," "],[8,[39,2],null,[["@label","@value","@min","@max","@labelField","@subtypeField","@sortingField","@subtypeOptions","@sortingOptions","@onChange"],[[30,1,["label"]],[30,0,["value"]],[30,1,["min"]],[30,1,["max"]],[30,1,["labelField"]],[30,1,["subtypeField"]],[30,1,["sortingField"]],[30,1,["subtypeOptions"]],[30,1,["sortingOptions"]],[30,0,["factorsOnChange"]]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1,["type"]],"time-series-args"],null],[[[1," "],[10,"label"],[14,0,"text-core-paragraph font-normal"],[12],[1,[30,1,["label"]]],[13],[1,"\\n "],[8,[39,3],null,[["@placement","@timeSeriesArgs","@queryValueFactors","@valueFactorGraphicTypes","@hasPastFactor","@hasFutureFactor","@applyTimeSettings"],[[30,0,["popoverPlacement"]],[30,0,["visualizationEditor","timeSeriesArgs"]],[30,0,["query","valueFactors"]],[30,0,["visualizationEditor","visualization","valueFactorGraphicTypes"]],[30,0,["query","hasPastFactor"]],[30,0,["query","hasFutureFactor"]],[30,0,["visualizationEditor","applyTimeSettings"]]]],[["default"],[[[[1,"\\n "],[10,"apl-button"],[14,"appearance","secondary"],[14,0,"w-full"],[12],[1,"\\n "],[10,0],[14,0,"flex h-full w-full items-center"],[12],[1,"\\n "],[1,[30,0,["value"]]],[1,"\\n "],[13],[1,"\\n "],[10,"apl-icon"],[14,"icon","angle-down"],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1,["type"]],"time-arg"],null],[[[41,[28,[37,1],[[30,0,["value","templateId"]],"period"],null],[[[1," "],[8,[39,4],null,[["@value","@onValueUpdated","@onValuePropertyUpdated","@valueChangedAction"],[[30,0,["value","value"]],[28,[37,5],[[30,1,["onTimeArgumentUpdated"]],[30,0]],null],[28,[37,5],[[30,1,["onValuePropertyUpdated"]],[30,0]],null],[28,[37,5],[[30,1,["onValuePropertyUpdated"]],[30,0]],null]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,0,["value","templateId"]],"time_point"],null],[[[1," "],[8,[39,6],null,[["@value","@onValueUpdated","@onValuePropertyUpdated","@valueChangedAction"],[[30,0,["value","value"]],[28,[37,5],[[30,1,["onTimeArgumentUpdated"]],[30,0]],null],[28,[37,5],[[30,1,["onValuePropertyUpdated"]],[30,0]],null],[28,[37,5],[[30,1,["onValuePropertyUpdated"]],[30,0]],null]]],null],[1,"\\n "]],[]],null]],[]]]],[]],[[[41,[28,[37,1],[[30,1,["type"]],"checkbox"],null],[[[1," "],[11,"apl-checkbox"],[24,0,"block"],[16,"checked",[30,0,["value"]]],[16,"disabled",[30,1,["disabled"]]],[4,[38,7],["change",[28,[37,5],[[30,1,["onChange"]],[30,0]],null]],null],[12],[1,"\\n "],[1,[30,1,["label"]]],[1,"\\n"],[41,[30,1,["tooltip"]],[[[1," "],[10,"apl-tooltip"],[14,"preset","info"],[12],[10,1],[14,"slot","text"],[12],[1,[30,1,["tooltip"]]],[13],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1,["type"]],"text-variable"],null],[[[1," "],[11,"apl-button"],[24,"appearance","secondary"],[4,[38,7],["click",[28,[37,5],[[30,1,["onAddVariable"]],[30,0]],null]],null],[12],[1,"\\n Insert variable\\n "],[10,1],[14,"slot","icon-alt-text"],[12],[1,"="],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1,["type"]],"custom-factor-display-name"],null],[[[1," "],[11,"apl-dropdown-list"],[16,"label",[30,1,["label"]]],[16,2,[30,0,["value"]]],[16,"optionsArray",[30,1,["options"]]],[4,[38,7],["change",[28,[37,5],[[30,1,["onChange"]],[30,0]],null]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,"apl-banner"],[14,0,"my-3"],[15,"content",[29,["Unsupported portfolio-data-field: ",[30,1,["label"]]," (type: ",[30,1,["type"]],")"]]],[14,4,"error"],[12],[13],[1,"\\n"]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],["@field"],false,["if","eq","widget/config-panel/field/stacked-chips","utils/popovers/time-picker","time-intervals/apl-time-period-chooser","fn","time-intervals/apl-time-point-chooser","on"]]',moduleName:"@addepar/widgets/components/widget/config-panel/portfolio-data-field.hbs",isStrictMode:!1});var d,p,h,m,g,f,y,b,v,w,_,A;function T(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function C(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function S(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let R=(d=(s.service??s.inject)("widget/configuration"),p=(0,n.readOnly)("itemController.queryRequest"),h=(0,n.readOnly)("itemController.visualization"),m=(0,n.readOnly)("visualization.query"),g=(0,n.readOnly)("queryRequest.result"),f=(0,a.computed)("visualization","queryRequest","configurationService","popoverPlacement","descriptionPlacement","getTimeSeriesArgs"),y=class extends(o()){constructor(...e){super(...e),T(this,"configurationService",b,this),C(this,"tagName",""),C(this,"popoverPlacement","left"),C(this,"descriptionPlacement","left-start"),C(this,"field",null),C(this,"itemController",null),T(this,"queryRequest",v,this),T(this,"visualization",w,this),T(this,"query",_,this),T(this,"queryResult",A,this),C(this,"factorsOnChange",e=>{switch(e.action){case"editClick":this.field.onEditClick?.(this,{item:e.item,targetElement:e.targetElement});break;case"addClick":this.field.onAddClick?.(this,{targetElement:e.targetElement});break;case"remove":this.field.onRemove?.(this,e.item);break;case"reorder":this.field.onReorder?.(this,e.items,e.movedItem);break;case"subtypeChange":this.field.onSubtypeChange?.(this,e.item,e.value);break;case"sortingChange":this.field.onSortingChange?.(this,e.item,e.value)}})}getTimeSeriesArgs(){return u().clone(this.timeSeriesArgs,this.store)}get value(){return this.field.getValue(this.visualization)}get visualizationEditor(){return this.configurationService.getPortfolioVisualizationEditor({visualization:this.visualization,queryRequest:this.queryRequest,popoverPlacement:this.popoverPlacement,descriptionPlacement:this.descriptionPlacement,getTimeSeriesArgs:this.getTimeSeriesArgs})}},b=S(y.prototype,"configurationService",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=S(y.prototype,"queryRequest",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=S(y.prototype,"visualization",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=S(y.prototype,"query",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=S(y.prototype,"queryResult",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S(y.prototype,"visualizationEditor",[f],Object.getOwnPropertyDescriptor(y.prototype,"visualizationEditor"),y.prototype),y);(0,r.setComponentTemplate)(c,R)},664238(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"z11XeJY3",block:'[[[10,"apl-accordion-item"],[14,"header-text","Alignment"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[8,[39,0],null,[["@itemController"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@itemController"],false,["reporting/arrange-tab/alignment"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/arrange/alignment-section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"alignment-section"))},96350(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"lSREUFef",block:'[[[10,"apl-accordion-item"],[14,"header-text","Order"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[8,[39,0],null,[["@itemController"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@itemController"],false,["reporting/arrange-tab/order"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/arrange/order-section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"order-section"))},184178(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"5H1o7r2a",block:'[[[10,"apl-accordion-item"],[14,"header-text","Size and position"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[8,[39,0],null,[["@itemController"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@itemController"],false,["reporting/arrange-tab/size-position"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/arrange/size-position-section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"size-position-section"))},346679(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(528057);const o=(0,i(510364).createTemplateFactory)({id:"inrNpbMu",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@itemController"],[[30,1]]],null],[1,"\\n"]],[]]]]]],["@itemController"],false,["widget/config-panel/section","reporting/format-tab/table/advanced"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/advanced-section.hbs",isStrictMode:!1});var a=i(618576);
1class n extends r.A{get section(){return{label:"Advanced",rightHeaderContent:{locked:!1}}}}(0,a.setComponentTemplate)(o,n)},975917(e,t,i){i.r(t),i.d(t,{default:()=>b});var r=i(765632),o=i(493055),a=i(91510),n=i(814498),s=i(757975),l=i(943910);const u=(0,i(510364).createTemplateFactory)({id:"5y+bJAl8",block:'[[[10,"apl-accordion-item"],[15,"header-text",[52,[30,0,["hasSecondXAxis"]],"Bottom x-axis","X-axis"]],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n "],[8,[39,1],null,[["@itemController"],[[30,1]]],null],[1,"\\n\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisTitleFormattingWithDefaults","xAxisTitleShow"]]],[4,[38,2],["click",[30,0,["toggleXAxisTitleShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis title"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisTitleFormattingWithDefaults","xAxisTitleShow"]],[[[1," "],[8,[39,3],null,[["@axisName","@itemController"],["x",[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showAxisLabelConfig"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisLabelFormattingWithDefaults","xAxisLabelShow"]]],[4,[38,2],["click",[30,0,["toggleXAxisLabelShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis labels"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisLabelFormattingWithDefaults","xAxisLabelShow"]],[[[1," "],[8,[39,4],null,[["@axisName","@itemController"],["x",[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["hasSecondXAxis"]],[[[1," "],[10,"apl-accordion-item"],[14,"header-text","Top x-axis"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n "],[8,[39,5],null,[["@itemController"],[[30,1]]],null],[1,"\\n\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisTitleFormattingWithDefaults","secondAxisTitleShow"]]],[4,[38,2],["click",[30,0,["toggleSecondAxisTitleShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis title"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisTitleFormattingWithDefaults","secondAxisTitleShow"]],[[[1," "],[8,[39,3],null,[["@axisName","@itemController"],["second",[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showAxisLabelConfig"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisLabelFormattingWithDefaults","secondAxisLabelShow"]]],[4,[38,2],["click",[30,0,["toggleSecondAxisLabelShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis labels"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisLabelFormattingWithDefaults","secondAxisLabelShow"]],[[[1," "],[8,[39,4],null,[["@axisName","@itemController"],["second",[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[10,"apl-accordion-item"],[15,"header-text",[52,[30,0,["hasSecondYAxis"]],"Left y-axis","Y-axis"]],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n "],[8,[39,6],null,[["@itemController"],[[30,1]]],null],[1,"\\n\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisTitleFormattingWithDefaults","yAxisTitleShow"]]],[4,[38,2],["click",[30,0,["toggleYAxisTitleShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis title"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisTitleFormattingWithDefaults","yAxisTitleShow"]],[[[1," "],[8,[39,3],null,[["@axisName","@itemController"],["y",[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showAxisLabelConfig"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisLabelFormattingWithDefaults","yAxisLabelShow"]]],[4,[38,2],["click",[30,0,["toggleYAxisLabelShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis labels"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisLabelFormattingWithDefaults","yAxisLabelShow"]],[[[1," "],[8,[39,4],null,[["@axisName","@itemController"],["y",[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["hasSecondYAxis"]],[[[1," "],[10,"apl-accordion-item"],[14,"header-text","Right y-axis"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n "],[8,[39,7],null,[["@itemController"],[[30,1]]],null],[1,"\\n\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisTitleFormattingWithDefaults","secondAxisTitleShow"]]],[4,[38,2],["click",[30,0,["toggleSecondAxisTitleShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis title"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisTitleFormattingWithDefaults","secondAxisTitleShow"]],[[[1," "],[8,[39,3],null,[["@axisName","@itemController"],["second",[30,1]]],null],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["showAxisLabelConfig"]],[[[1," "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"mb-2.5"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,0,["axisLabelFormattingWithDefaults","secondAxisLabelShow"]]],[24,0,"my-2.5"],[4,[38,2],["click",[30,0,["toggleSecondAxisLabelShow"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Axis labels"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["axisLabelFormattingWithDefaults","secondAxisLabelShow"]],[[[1," "],[8,[39,4],null,[["@axisName","@itemController"],["second",[30,1]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@itemController"],false,["if","reporting/format-tab/x-axis","on","reporting/format-tab/axis-title","reporting/format-tab/axis-labels","reporting/format-tab/x-second-axis","reporting/format-tab/y-axis","reporting/format-tab/y-second-axis"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/axes-section.hbs",isStrictMode:!1});var c,d,p,h,m,g=i(618576);function f(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function y(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let b=(c=(0,a.l)(),d=(0,n.L)(),p=class extends r.A{constructor(...e){super(...e),f(this,"axisLabelFormattingWithDefaults",h,this),f(this,"axisTitleFormattingWithDefaults",m,this)}get dualValueAxesAllowed(){let{itemController:e}=this.args,{isForBetaBar:t,isForBetaLine:i}=this;return(t||i)&&e.queryRequest.query.valueFactors.length>1}get hasSecondAxis(){let{dualValueAxesAllowed:e,visualization:t}=this,i=t.valueFactorAxisAssignments??[],r=(0,s.A)(i);return e&&t.useDualValueAxes&&2===r.length}get hasSecondXAxis(){let{hasSecondAxis:e,supportsSecondXAxis:t}=this;return e&&t}get hasSecondYAxis(){let{hasSecondAxis:e,supportsSecondYAxis:t}=this;return e&&t}get isForBetaBar(){let{visualization:e}=this;return"beta_bar"===e.type}get isForBetaLine(){let{visualization:e}=this;return"beta_line"===e.type}get showAxisLabelConfig(){let{visualization:e}=this;return o.eA.includes(e.type)}get supportsSecondXAxis(){let{dualValueAxesAllowed:e,isForBetaBar:t,visualization:i}=this,r=t&&i.isHorizontal;return e&&r}get supportsSecondYAxis(){let{dualValueAxesAllowed:e,isForBetaBar:t,isForBetaLine:i,visualization:r}=this,o=t&&!r.isHorizontal;return e&&(o||i)}get visualization(){let{itemController:e}=this.args;return e.model.visualization}notifyChartComponentConfigChanged(){let e=this.args.itemController?.chartComponent;e?.send("configChanged")}toggleXAxisLabelShow(){let{axisLabelFormattingWithDefaults:e,visualization:t}=this,{xAxisLabelShow:i}=e;t.xAxisLabelShow=!i,this.notifyChartComponentConfigChanged()}toggleXAxisTitleShow(){let{axisTitleFormattingWithDefaults:e,visualization:t}=this,{xAxisTitleShow:i}=e;t.xAxisTitleShow=!i,this.notifyChartComponentConfigChanged()}toggleYAxisLabelShow(){let{axisLabelFormattingWithDefaults:e,visualization:t}=this,{yAxisLabelShow:i}=e;t.yAxisLabelShow=!i,this.notifyChartComponentConfigChanged()}toggleYAxisTitleShow(){let{axisTitleFormattingWithDefaults:e,visualization:t}=this,{yAxisTitleShow:i}=e;t.yAxisTitleShow=!i,this.notifyChartComponentConfigChanged()}toggleSecondAxisLabelShow(){let{axisLabelFormattingWithDefaults:e,visualization:t}=this,{secondAxisLabelShow:i}=e;t.secondAxisLabelShow=!i,this.notifyChartComponentConfigChanged()}toggleSecondAxisTitleShow(){let{axisTitleFormattingWithDefaults:e,visualization:t}=this,{secondAxisTitleShow:i}=e;t.secondAxisTitleShow=!i,this.notifyChartComponentConfigChanged()}},h=y(p.prototype,"axisLabelFormattingWithDefaults",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=y(p.prototype,"axisTitleFormattingWithDefaults",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y(p.prototype,"toggleXAxisLabelShow",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleXAxisLabelShow"),p.prototype),y(p.prototype,"toggleXAxisTitleShow",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleXAxisTitleShow"),p.prototype),y(p.prototype,"toggleYAxisLabelShow",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleYAxisLabelShow"),p.prototype),y(p.prototype,"toggleYAxisTitleShow",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleYAxisTitleShow"),p.prototype),y(p.prototype,"toggleSecondAxisLabelShow",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleSecondAxisLabelShow"),p.prototype),y(p.prototype,"toggleSecondAxisTitleShow",[l.action],Object.getOwnPropertyDescriptor(p.prototype,"toggleSecondAxisTitleShow"),p.prototype),p);(0,g.setComponentTemplate)(u,b)},635903(e,t,i){i.r(t),i.d(t,{default:()=>u});var r=i(765632),o=i(943910),a=i(555546);const n=(0,i(510364).createTemplateFactory)({id:"i6vj375L",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,1],null,[["@field","@itemController","@applicationTheme"],[[30,0,["staticOptions"]],[30,1],[30,2]]],null],[1,"\\n "],[13],[1,"\\n"]],[]]]]]],["@itemController","@applicationTheme"],false,["widget/config-panel/section","widget/config-panel/field"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/bar-sizing-section.hbs",isStrictMode:!1});var s,l=i(618576);let u=(s=class extends r.A{get section(){return{label:"Bar sizing"}}get itemController(){return this.args.itemController}notifyChartConfigChanged(){this.itemController.notifyChartConfigChanged?.()}get visualization(){return this.itemController.visualization}get staticOptions(){let e=Object.values(a.QZ);return{path:"barMaxWidth",appearance:"stretch",size:"comfortable",label:"Bar width",type:"switch",options:[{label:"small",value:`${a.QZ.SMALL}`,icon:"max-bar-width-small",hideLabel:!0},{label:"medium",value:`${a.QZ.MEDIUM}`,icon:"max-bar-width-medium",hideLabel:!0},{label:"large",value:`${a.QZ.LARGE}`,icon:"max-bar-width-large",hideLabel:!0},{label:"fill",value:`${a.QZ.FILL}`,icon:"max-bar-width-fill",hideLabel:!0}],getValue:()=>`${e.includes(this.visualization.barMaxWidth)?this.visualization.barMaxWidth:a.QZ.FILL}`,onChange:(e,t)=>
1{e.set("barMaxWidth",Number(t.target.value)),this.notifyChartConfigChanged()}}}},c=s.prototype,d="notifyChartConfigChanged",p=[o.action],h=Object.getOwnPropertyDescriptor(s.prototype,"notifyChartConfigChanged"),m=s.prototype,g={},Object.keys(h).forEach(function(e){g[e]=h[e]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=p.slice().reverse().reduce(function(e,t){return t(c,d,e)||e},g),m&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),void 0===g.initializer&&Object.defineProperty(c,d,g),s);var c,d,p,h,m,g;(0,l.setComponentTemplate)(n,u)},482230(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(528057);const o=(0,i(510364).createTemplateFactory)({id:"ASWiTiDg",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@itemController","@noXPadding"],[[30,1],true]],null],[1,"\\n"]],[]]]]]],["@itemController"],false,["widget/config-panel/section","reporting/format-tab/table/body-row"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/body-row-section.hbs",isStrictMode:!1});var a=i(618576);class n extends r.A{get section(){return{label:"Body rows",rightHeaderContent:{locked:this.hasTableTheme}}}}(0,a.setComponentTemplate)(o,n)},662627(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(765632),o=i(943910);const a=(0,i(510364).createTemplateFactory)({id:"PBNma1Xa",block:'[[[10,"apl-accordion-item"],[14,"header-text","Chart title"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[11,"apl-toggle"],[16,"checked",[30,1,["model","showDisplayName"]]],[24,0,"mb-2.5"],[4,[38,0],["click",[30,0,["toggleShowDisplayName"]]],null],[12],[1,"\\n "],[10,1],[14,"slot","label"],[12],[1,"Show chart title"],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,1],null,[["@itemController"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@itemController"],false,["on","reporting/format-tab/chart-title"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/chart-title-section.hbs",isStrictMode:!1});var n,s=i(618576);let l=(n=class extends r.A{toggleShowDisplayName(){let{itemController:e}=this.args;e.model.showDisplayName=!e.model.showDisplayName}},u=n.prototype,c="toggleShowDisplayName",d=[o.action],p=Object.getOwnPropertyDescriptor(n.prototype,"toggleShowDisplayName"),h=n.prototype,m={},Object.keys(p).forEach(function(e){m[e]=p[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce(function(e,t){return t(u,c,e)||e},m),h&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(h):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,c,m),n);var u,c,d,p,h,m;(0,s.setComponentTemplate)(a,l)},720750(e,t,i){i.r(t),i.d(t,{default:()=>f});var r=i(943910),o=i(528057),a=i(496314),n=i(640626);const s=(0,i(510364).createTemplateFactory)({id:"kVytUnYf",block:'[[[41,[28,[37,1],[[30,0,["columnConfigs","length"]],[30,0,["isPivotTable"]]],null],[[[1," "],[8,[39,2],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,3],null,[["@itemController","@columnConfigs"],[[30,1],[30,0,["columnConfigs"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],["@itemController"],false,["if","or","widget/config-panel/section","reporting/format-tab/table/column-format"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/column-format-section.hbs",isStrictMode:!1});var l,u,c,d,p,h,m=i(618576);function g(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let f=(l=(0,r.computed)("args.itemController.queryRequest.query.groupingFactors"),u=(0,r.computed)("args.itemController.queryRequest.query.valueFactors"),c=(0,n.equal)("args.itemController.tableDisplayType","portfolio_pivot_table"),d=(0,r.computed)("groupingFactors.@each.{headerName,labelFormatOptions,valueFormatOptions}","args.itemController.columns.[]","valueFactors.@each.{headerName,valueFormatOptions}"),g((p=class extends o.A{constructor(...e){var t;super(...e),(t=h)&&Object.defineProperty(this,"isPivotTable",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}get groupingFactors(){return this.args.itemController.queryRequest.query.groupingFactors}get valueFactors(){return this.args.itemController.queryRequest.query.valueFactors}get columnConfigs(){let e=[],t=this.groupingFactors.slice()[0],i=this.args.itemController;if(i.isDestroying)return e;if(!(0,a.isNone)(t)){let r={valueFormatOptions:null,labelFormatOptions:t.labelFormatOptions,currentLabel:t.headerName,defaultLabel:t.displayName,currentValueFormat:null,id:"col-grouping-factor",column:i.columns[0],columnSettings:i.columnSettings.slice()[0],factor:t,isGroupingFactor:!0};e.push(r)}let r=this.valueFactors.map((e,t)=>{let r=e,o=r.valueFormat,a=r.valueFormatOptions,n=r.labelFormatOptions,s=r.headerName,l=r.displayName,u=a.find(e=>e.format===o);return{valueFormatOptions:a,labelFormatOptions:n,currentLabel:s,defaultLabel:l,currentValueFormat:u&&u.display||"Default",id:`col-${t}`,column:i.columns.at(t+1),columnSettings:i.columnSettings.slice()[t+1],factor:r,displaySetting:i.displaySetting}}).filter(e=>!(0,a.isNone)(e.columnSettings)&&!e.columnSettings.isHiddenSortColumn);return e.push(...r),e}get section(){return{label:"Column format",rightHeaderContent:{locked:!1}}}}).prototype,"groupingFactors",[l],Object.getOwnPropertyDescriptor(p.prototype,"groupingFactors"),p.prototype),g(p.prototype,"valueFactors",[u],Object.getOwnPropertyDescriptor(p.prototype,"valueFactors"),p.prototype),h=g(p.prototype,"isPivotTable",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g(p.prototype,"columnConfigs",[d],Object.getOwnPropertyDescriptor(p.prototype,"columnConfigs"),p.prototype),p);(0,m.setComponentTemplate)(s,f)},75112(e,t,i){i.r(t),i.d(t,{default:()=>h});
1var r=i(943910),o=i(528057),a=i(874837);const n=(0,i(510364).createTemplateFactory)({id:"vhPyWEZj",block:'[[[41,[30,0,["groupingConfigs","length"]],[[[1," "],[8,[39,1],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,2],null,[["@itemController","@groupingConfigs"],[[30,1],[30,0,["groupingConfigs"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],["@itemController"],false,["if","widget/config-panel/section","reporting/format-tab/table/grouping-format"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/grouping-format-section.hbs",isStrictMode:!1});var s,l,u,c,d=i(618576);function p(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let h=(s=(0,r.computed)("args.itemController.queryRequest.query.groupingFactors"),l=(0,r.computed)("args.itemController.model.visualization.tableGroupingSettings"),u=(0,r.computed)("groupingFactors.[]","args.itemController.model.{subtotalDisplayType,subtotalMidLevelDisplayType,tableThemeId}","[email protected]"),p((c=class extends o.A{get groupingFactors(){return this.args.itemController.queryRequest.query.groupingFactors}get tableGroupingSettings(){return this.args.itemController.model.visualization.tableGroupingSettings}get groupingConfigs(){let e=[];
1if(this.args.itemController.isDestroying)return e;let t=a.Tp,i=this.tableGroupingSettings;return e=this.groupingFactors.map((e,r)=>{let o=e.displayName,a=`grouping-${r}`,n=i.slice()[r],s=t.find(e=>e.value===n?.get("subtotalDisplayType"));return{subTotalOptions:t,currentOption:s,displayName:o,id:a,tableGroupingSetting:n}}),e}get section(){return{label:"Grouping format",rightHeaderContent:{locked:!1}}}}).prototype,"groupingFactors",[s],Object.getOwnPropertyDescriptor(c.prototype,"groupingFactors"),c.prototype),p(c.prototype,"tableGroupingSettings",[l],Object.getOwnPropertyDescriptor(c.prototype,"tableGroupingSettings"),c.prototype),p(c.prototype,"groupingConfigs",[u],Object.getOwnPropertyDescriptor(c.prototype,"groupingConfigs"),c.prototype),c);(0,d.setComponentTemplate)(n,h)},303593(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(528057);const o=(0,i(510364).createTemplateFactory)({id:"oOR8NkND",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@itemController"],[[30,1]]],null],[1,"\\n"]],[]]]]]],["@itemController"],false,["widget/config-panel/section","reporting/format-tab/table/header-row"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/header-row-section.hbs",isStrictMode:!1});var a=i(618576);class n extends r.A{get section(){return{label:"Header row",rightHeaderContent:{locked:this.hasTableTheme}}}}(0,a.setComponentTemplate)(o,n)},616450(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"k+dK1PQX",block:'[[[10,"apl-accordion-item"],[14,"header-text","Legend format"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[8,[39,0],null,[["@itemController"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@itemController"],false,["reporting/format-tab/legend-format"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/legend-format-section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"legend-format-section"))},988497(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"ZBU6q+pJ",block:'[[[10,"apl-accordion-item"],[14,"header-text","Line styles"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2"],[12],[1,"\\n "],[8,[39,0],null,[["@itemController"],[[30,1]]],null],[1,"\\n "],[13],[1,"\\n"],[13]],["@itemController"],false,["reporting/format-tab/line-styles"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/line-styles-section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"line-styles-section"))},412228(e,t,i){i.r(t),i.d(t,{default:()=>d});var r=i(943910),o=i(528057);const a=(0,i(510364).createTemplateFactory)({id:"PnhTjXKp",block:'[[[41,[30,0,["metricConfigs","length"]],[[[1," "],[8,[39,1],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,2],null,[["@itemController","@metricConfigs"],[[30,1],[30,0,["metricConfigs"]]]],null],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null]],["@itemController"],false,["if","widget/config-panel/section","reporting/format-tab/table/metrics"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/metrics-section.hbs",isStrictMode:!1});var n,s,l,u=i(618576);function c(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let d=(n=(0,r.computed)("args.itemController.queryRequest.query.metricFactors"),s=(0,r.computed)("metricFactors.@each.{headerName,displayName,valueFormat,valueFormatOptions}"),c((l=class extends o.A{get metricFactors(){return this.args.itemController.queryRequest.query.metricFactors}get metricConfigs(){return this.metricFactors.map((e,t)=>{let i=e.get("valueFormat"),r=e.get("valueFormatOptions"),o=e.get("labelFormatOptions"),a=e.get("headerName"),n=e.get("displayName"),s=r.find(e=>e.format===i);return{valueFormatOptions:r,labelFormatOptions:o,currentLabel:a,defaultLabel:n,currentValueFormat:s&&s.display||"Default",cssSelector:`#col-m-${t}`,cssId:`col-m-${t}`,factor:e}})}get section(){return{label:"Metrics",rightHeaderContent:{locked:!1}}}}).prototype,"metricFactors",[n],Object.getOwnPropertyDescriptor(l.prototype,"metricFactors"),l.prototype),c(l.prototype,"metricConfigs",[s],Object.getOwnPropertyDescriptor(l.prototype,"metricConfigs"),l.prototype),l);(0,u.setComponentTemplate)(a,d)},252411(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(528057);const o=(0,i(510364).createTemplateFactory)({id:"kQ/wBXqt",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@itemController","@noXPadding"],[[30,1],true]],null],[1,"\\n"]],[]]]]]],["@itemController"],false,["widget/config-panel/section","reporting/format-tab/table/subtotal-row"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/subtotal-row-section.hbs",isStrictMode:!1});var a=i(618576);
1class n extends r.A{get section(){return{label:"Subtotal rows",rightHeaderContent:{locked:this.hasTableTheme}}}}(0,a.setComponentTemplate)(o,n)},161698(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"G5Wa9LhG",block:'[[[10,0],[14,0,"panel-body-content"],[12],[1,"\\n "],[8,[39,0],null,[["@itemController"],[[30,1]]],null],[1,"\\n"],[13]],["@itemController"],false,["reporting/format-tab/table/table-theme"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/table-theme-section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"table-theme-section"))},107008(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(943910),o=i(528057);const a=(0,i(510364).createTemplateFactory)({id:"vOr8rEpe",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@itemController"],[[30,1]]],null],[1,"\\n"]],[]]]]]],["@itemController"],false,["widget/config-panel/section","reporting/format-tab/table/table-title"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/table-title-section.hbs",isStrictMode:!1});var n,s=i(618576);let l=(n=class extends o.A{getToggleValue(e){return e.model.showDisplayName}getToggleTooltipContent(e){let{showDisplayName:t}=e.model;return(t?"Hide":"Show")+" title."}toggleShowDisplayName(){let{itemController:e}=this.args;e.model.showDisplayName=!e.model.showDisplayName}get section(){return{label:"Table title",rightHeaderContent:{locked:this.hasTableTheme,getToggleValue:()=>this.getToggleValue(this.args.itemController),getToggleTooltipContent:()=>this.getToggleTooltipContent(this.args.itemController),onToggle:this.toggleShowDisplayName}}}},u=n.prototype,c="toggleShowDisplayName",d=[r.action],p=Object.getOwnPropertyDescriptor(n.prototype,"toggleShowDisplayName"),h=n.prototype,m={},Object.keys(p).forEach(function(e){m[e]=p[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce(function(e,t){return t(u,c,e)||e},m),h&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(h):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,c,m),n);var u,c,d,p,h,m;(0,s.setComponentTemplate)(a,l)},483444(e,t,i){i.r(t),i.d(t,{default:()=>c});var r=i(943910),o=i(528057);const a=(0,i(510364).createTemplateFactory)({id:"jM+9LD2a",block:'[[[8,[39,0],null,[["@section"],[[30,0,["section"]]]],[["default"],[[[[1,"\\n "],[8,[39,1],null,[["@itemController"],[[30,1]]],null],[1,"\\n"]],[]]]]]],["@itemController"],false,["widget/config-panel/section","reporting/format-tab/table/total-row"]]',moduleName:"@addepar/widgets/components/widget/config-panel/reporting/format/total-row-section.hbs",isStrictMode:!1});var n,s,l=i(618576);function u(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let c=(n=(0,r.computed)("args.itemController.model.type"),u((s=class extends o.A{get isProjectionTable(){return"report_projection_table"===this.args.itemController.model.type}getToggleValue(e){return e.model.showTotalRow}getToggleTooltipContent(e){let{showTotalRow:t}=e.model;return(t?"Hide":"Show")+" total row."}toggleShowTotalRow(){let{itemController:e}=this.args,t=!e.model.showTotalRow;e.toggleShowTotalRow(t)}get section(){return{label:"Total row",rightHeaderContent:{locked:this.hasTableTheme,getToggleValue:()=>this.getToggleValue(this.args.itemController),getToggleTooltipContent:()=>this.getToggleTooltipContent(this.args.itemController),onToggle:this.isProjectionTable?null:this.toggleShowTotalRow}}}}).prototype,"isProjectionTable",[n],Object.getOwnPropertyDescriptor(s.prototype,"isProjectionTable"),s.prototype),u(s.prototype,"toggleShowTotalRow",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"toggleShowTotalRow"),s.prototype),s);(0,l.setComponentTemplate)(a,c)},95825(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(943910),o=i(765632);const a=(0,i(510364).createTemplateFactory)({id:"jYV0pmT4",block:'[[[10,0],[14,0,"flex items-center ml-1.5 pointer-events-auto"],[12],[1,"\\n"],[41,[30,1],[[[1," "],[10,0],[14,0,"top-1 relative legacy:text-gray-800 vs:text-vs-icon-secondary-disabled"],[12],[1,"\\n "],[10,"apl-tooltip"],[14,"placement","top"],[12],[1,"\\n "],[10,1],[14,"slot","trigger"],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","lock"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,"slot","text"],[12],[1,"When a theme is applied, custom formatting is disabled."],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,2],[[[1," "],[10,0],[14,0,"right-11 top-2.5 absolute"],[12],[1,"\\n"],[41,[30,0,["toggleTooltipContent"]],[[[1," "],[10,"apl-tooltip"],[12],[1,"\\n "],[10,0],[14,"slot","trigger"],[12],[1,"\\n "],[10,"apl-toggle"],[15,"checked",[30,0,["toggleValue"]]],[15,"onChange",[30,0,["handleToggle"]]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,1],[14,"slot","text"],[12],[1,"\\n "],[1,[30,0,["toggleTooltipContent"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"apl-toggle"],[15,"checked",[30,0,["toggleValue"]]],[15,"onChange",[30,0,["handleToggle"]]],[12],[13],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[13]],["@locked","@onToggle"],false,["if"]]',moduleName:"@addepar/widgets/components/widget/config-panel/section-right-header.hbs",isStrictMode:!1});var n,s=i(618576);
1let l=(n=class extends o.A{get toggleValue(){return this.args.getToggleValue?.(this.args.itemController)}get toggleTooltipContent(){return this.args.getToggleTooltipContent?.(this.args.itemController)}handleToggle(e){this.args.onToggle?.(this.args.itemController,!e.target.checked)}},u=n.prototype,c="handleToggle",d=[r.action],p=Object.getOwnPropertyDescriptor(n.prototype,"handleToggle"),h=n.prototype,m={},Object.keys(p).forEach(function(e){m[e]=p[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce(function(e,t){return t(u,c,e)||e},m),h&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(h):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,c,m),n);var u,c,d,p,h,m;(0,s.setComponentTemplate)(a,l)},715106(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"K03ztZry",block:'[[[10,"apl-accordion-item"],[15,"header-text",[30,1,["label"]]],[12],[1,"\\n "],[10,0],[14,"slot","content"],[14,0,"legacy:px-2 space-y-2"],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"],[41,[30,1,["rightHeaderContent"]],[[[1," "],[10,0],[14,"slot","right-header-content"],[12],[1,"\\n "],[8,[39,2],null,[["@itemController","@locked","@getToggleValue","@onToggle","@getToggleTooltipContent"],[[30,2],[30,1,["rightHeaderContent","locked"]],[30,1,["rightHeaderContent","getToggleValue"]],[30,1,["rightHeaderContent","onToggle"]],[30,1,["rightHeaderContent","getToggleTooltipContent"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["@section","@itemController","&default"],false,["yield","if","widget/config-panel/section-right-header"]]',moduleName:"@addepar/widgets/components/widget/config-panel/section.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"section"))},44067(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"w2PC3US7",block:'[[[10,"apl-accordion"],[15,"accordion-style",[52,[28,[37,1],[[30,1],"legacy"],null],"border-top-bottom","border-bottom"]],[14,"caret-alignment","right"],[14,"default-open","all"],[14,"heading-level","h6"],[15,"padded",[52,[28,[37,1],[[30,1],"legacy"],null],false,true]],[14,"multi-expand",""],[12],[1,"\\n "],[18,2,null],[1,"\\n"],[13]],["@applicationTheme","&default"],false,["if","eq","yield"]]',moduleName:"@addepar/widgets/components/widget/config-panel/tab.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"tab"))},848840(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(765632);const o=(0,i(510364).createTemplateFactory)({id:"GdnvuSyK",block:'[[[41,[28,[37,1],[[30,1,["type"]],"stacked-chips"],null],[[[1," "],[8,[39,2],null,[["@label","@value","@min","@max","@labelField","@valueField","@options","@onChange"],[[30,1,["label"]],[30,0,["value"]],[30,1,["min"]],[30,1,["max"]],[30,1,["labelField"]],[30,1,["valueField"]],[30,1,["options"]],[30,0,["onChange"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,"apl-banner"],[14,0,"my-3"],[15,"content",[29,["Unsupported transactions-data-field: ",[30,1,["label"]]," (type: ",[30,1,["type"]],")"]]],[14,4,"error"],[12],[13],[1,"\\n"]],[]]]],["@field"],false,["if","eq","widget/config-panel/field/stacked-chips"]]',moduleName:"@addepar/widgets/components/widget/config-panel/transactions-data-field.hbs",isStrictMode:!1});var a=i(618576);class n extends r.A{constructor(...e){var t,i,r;super(...e),t=this,r=e=>{switch(e.action){case"add":this.args.field.onAdd?.(this,e.value);break;case"swap":this.args.field.onSwap?.(this,e.item,e.value);break;case"remove":this.args.field.onRemove?.(this,e.item);break;case"reorder":this.args.field.onReorder?.(this,e.items,e.movedItem);break;default:throw new Error(`Unsupported action: ${e.action}`)}},(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="onChange"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r}get visualization(){return this.args.itemController.visualization}get itemController(){return this.args.itemController}get value(){return this.args.field.getValue(this.visualization)}}(0,a.setComponentTemplate)(o,n)},90629(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"iff9uorC",block:'[[[41,[30,1,["isChart"]],[[[1," "],[8,[39,1],[[17,2]],[["@queryRequest","@visualization","@selectedSeedColors","@applicationTheme","@isPrint","@isRepGen","@registerChartComponent","@registerVisualizationComponent","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,3],[30,1],[30,4],[3
10,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13]]],[["header"],[[[[1,"\\n "],[18,39,[[30,14]]],[1,"\\n "]],[14]]]]],[1,"\\n"]],[]],[[[41,[30,1,["isTable"]],[[[1," "],[8,[39,3],[[17,2]],[["@sortInReadonly","@queryRequest","@visualization","@registerTableComponent","@registerVisualizationComponent","@applicationTheme","@isAddeparUser","@widthConstraint","@forceRerenderOnResize","@readonly","@onHeightChanged","@exportToExcel","@disableCustomSortOrdering","@selectedRows","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@openInspector","@canOpenInspectorFromHeader","@enableFactorDescriptionPopovers","@canEditFactor","@enableDynamicHeight","@enableVsTableStyling","@useAgGridTable","@useGenericTableRightBorders","@visualizationEditor","@enableColumnLinking"],[[30,15],[30,3],[30,1],[30,16],[30,9],[30,5],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,24],[30,25],[30,26],[30,27],[30,28],[30,29],[30,30],[30,31],[30,32],[30,33],[30,34],[30,35],[30,13],[30,36]]],[["header"],[[[[1,"\\n "],[18,39,[[30,37]]],[1,"\\n "]],[37]]]]],[1,"\\n"]],[]],[[[41,[30,1,["isBigNumber"]],[[[1," "],[8,[39,4],[[17,2]],[["@visualization","@queryRequest","@registerVisualizationComponent","@applicationTheme"],[[30,1],[30,3],[30,9],[30,5]]],[["header"],[[[[1,"\\n "],[18,39,[[30,38]]],[1,"\\n "]],[38]]]]],[1,"\\n"]],[]],[[[41,[30,1,["isText"]],[[[1," "],[8,[39,5],[[17,2]],[["@readonly","@visualization","@queryRequest","@applicationTheme","@registerVisualizationComponent"],[[30,20],[30,1],[30,3],[30,5],[30,9]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"flex items-center justify-center flex-1 h-full"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"icon","triangle-exclamation"],[14,"size","compact"],[14,"header","Unsupported visualization"],[15,"message",[28,[37,6],["type: ",[30,1,["type"]]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]]],[]]]],[]]]],["@visualization","&attrs","@queryRequest","@selectedSeedColors","@applicationTheme","@isPrint","@isRepGen","@registerChartComponent","@registerVisualizationComponent","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor","header","@sortInReadonly","@registerTableComponent","@isAddeparUser","@widthConstraint","@forceRerenderOnResize","@readonly","@onHeightChanged","@exportToExcel","@disableCustomSortOrdering","@selectedRows","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@openInspector","@canOpenInspectorFromHeader","@enableFactorDescriptionPopovers","@canEditFactor","@enableDynamicHeight","@enableVsTableStyling","@useAgGridTable","@useGenericTableRightBorders","@enableColumnLinking","header","header","&header"],false,["if","widget/visualization/chart","yield","widget/visualization/table","widget/visualization/big-number","widget/visualization/read-only-text","concat"]]',moduleName:"@addepar/widgets/components/widget/read-only-visualization.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"read-only-visualization"))},55968(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"ocbrIEjG",block:'[[[11,"apl-tooltip"],[24,0,"indicator-tooltip"],[24,"inline",""],[24,"size","large"],[24,"placement","bottom"],[24,"trigger-display","inline"],[17,1],[12],[1,"\\n "],[10,"button"],[14,"slot","trigger"],[14,0,"text-paragraph unstyled-button cursor-default"],[12],[1,"\\n "],[10,1],[15,0,[30,2]],[12],[1,[30,3]],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,"slot","text"],[12],[1,"\\n "],[10,0],[14,0,"text-vs-primary"],[12],[1,"\\n "],[1,[30,4]],[1,"\\n "],[13],[1,"\\n"],[41,[30,5],[[[1," "],[10,0],[14,0,"text-vs-secondary mt-1"],[12],[1,"\\n "],[1,[30,5]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,6],[[[1," "],[10,0],[14,0,"text-vs-secondary mt-1"],[12],[1,"\\n "],[1,[30,6]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,7],[[[1," "],[10,0],[14,0,"text-vs-secondary mt-1"],[12],[1,"\\n "],[1,[30,7]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["&attrs","@triggerClass","@dataAsOfDisplay","@dataAsOfDescription","@scheduleDescription","@dataUpdateDescriptor","@precomputeDataDescriptor"],false,["if"]]',moduleName:"@addepar/widgets/components/widget/shared/timestamp.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"timestamp"))},763556(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(223538)},837033(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(877012),o=i(943910),a=i(279564),n=i(567407);const s=(0,i(510364).createTemplateFactory)({id:"QgRYycB+",block:'[[[11,0],[24,0,"addison-insights-container"],[17,1],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],[[30,0,["willDestroyEl"]]],null],[12],[1,"\\n "],[18,2,[[28,[37,3],null,[["isLoading","labelHeight","visualizationDisplayName"],[[30,0,["isLoading"]],[30,0,["labelHeight"]],[30,0,["visualizationDisplayName"]]]]]]],[1,"\\n"],[41,[30,0,["showNoPerspectivePlaceholder"]],[[[1," "],[8,[39,5],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["isAddisonSdkLoaded"]],[[[1," "],[10,0],[14,0,"widget-main-content"],[12],[1,"\\n "],[11,"addison-sdk"],[24,"is-widget",""],[4,[38,0],[[30,0,["setupComponent"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[18,3,null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"flex items-center justify-center flex-1 h-full"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"icon","triangle-exclamation"],[14,"size","compact"],[14,"header","Addison SDK not loaded"],[14,"message","The Addison Insights component is currently unavailable."],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[13]],["&attrs","&header","&footer"],false,["on-insert","on-destroy","yield","hash","if","widget/visualization/shared/no-perspective-empty-state"]]',moduleName:"@addepar/widgets/components/widget/visualization/addison-insights.hbs",isStrictMode:!1});var l,u,c=i(618576);function d(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let p=(l=class extends r.A{constructor(e,t){var i;super(e,t),(i=u)&&Object.defineProperty(this,"isAddisonSdkLoaded",{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(this):void 0}),function(e,t,i){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"addisonElement",void 0),this.checkAddisonSdkAvailability(),this.queryRequest.registerRunQueryCallback(()=>this.setDataContext()),(0,n.registerDestructor)(this,()=>{this.queryRequest.registerRunQueryCallback(null)})}checkAddisonSdkAvailability(){this.isAddisonSdkLoaded=!!customElements.get("addison-sdk")}get queryRequest(){return super.queryRequest}get dataContext(){let e=this.queryRequest.userSelectionContext;
1return{startDate:e.startDate,endDate:e.endDate,filters:e.inheritedFilters,ownershipPerspective:{type:e.ownershipPerspective?.perspective_type,value:e.ownershipPerspective?.value,subType:e.ownershipPerspective?.sub_type}}}setupComponent(e){this.addisonElement=e,this.setDataContext()}setDataContext(){this.addisonElement&&(this.addisonElement.dataContext=this.dataContext)}},u=d(l.prototype,"isAddisonSdkLoaded",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d(l.prototype,"setupComponent",[o.action],Object.getOwnPropertyDescriptor(l.prototype,"setupComponent"),l.prototype),l);(0,c.setComponentTemplate)(s,p)},860342(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(877012)},951970(e,t,i){i.r(t),i.d(t,{default:()=>X});var r=i(877012),o=i(943910),a=i(666035),n=i(830819),s=i(634512),l=i(967736),u=i(506601);i(44384);const c=(0,i(510364).createTemplateFactory)({id:"aaQvuEVE",block:'[[[11,0],[24,0,"big-number-container"],[17,1],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],[[30,0,["willDestroyEl"]]],null],[12],[1,"\\n "],[18,3,[[28,[37,3],null,[["visualizationDisplayName"],[[30,0,["visualizationDisplayName"]]]]]]],[1,"\\n"],[41,[30,0,["queryLoading"]],[[[1," "],[8,[39,5],null,[["@applicationTheme"],[[30,2]]],null],[1,"\\n"]],[]],[[[41,[30,0,["showNoPerspectivePlaceholder"]],[[[1," "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["isDataProviderError"]],[[[1," "],[8,[39,7],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["hasEmptyDisplayValue"]],[[[1," "],[8,[39,8],null,null,null],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["flex flex-col\\n ",[52,[30,0,["isLegacyTheme"]],"items-center justify-center flex-auto text-center"]]]],[12],[1,"\\n "],[10,0],[15,0,[29,["legacy:text-headline-large vs:text-number-l vs:text-[color:var(--color-text-primary)]\\n ",[52,[28,[37,9],[[30,0,["isLegacyTheme"]]],null],"text-ellipsis overflow-hidden -tracking-[1px]"]]]],[12],[1,"\\n "],[8,[39,10],null,[["@href","@value"],[[30,0,["bigNumberDeepLink"]],[30,0,["bigNumberDisplayString"]]]],null],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,0,["totalValueDisplayString"]],[[[1," "],[10,0],[14,0,"flex mt-1.5 gap-1 flex-wrap"],[12],[1,"\\n "],[10,0],[14,0,"text-vs-secondary text-small flex flex-wrap items-center gap-1"],[12],[1,"\\n of\\n "],[8,[39,10],null,[["@href","@value"],[[30,0,["totalValueDeepLink"]],[30,0,["totalValueDisplayString"]]]],null],[1,"\\n "],[10,"apl-badge"],[14,"theme","neutral"],[12],[1,"\\n "],[10,1],[14,"slot","content"],[12],[1,[30,0,["percentOfTotalDisplayString"]]],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,11],[[30,0,["deltaDisplayString"]],[30,0,["percentDeltaDisplayString"]]],null],[[[41,[30,0,["isLegacyTheme"]],[[[1," "],[10,0],[15,0,[29,["pt-16px legacy:text-subtitle ",[30,0,["deltaColor"]]]]],[12],[1,"\\n "],[10,"i"],[15,0,[29,[[30,0,["deltaIcon"]]]]],[12],[13],[1,"\\n"],[41,[30,0,["deltaDisplayString"]],[[[1," "],[1,[30,0,["deltaDisplayString"]]],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["percentDeltaDisplayString"]],[[[1," ("],[1,[30,0,["percentDeltaDisplayString"]]],[1,")\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["fromDisplayString"]],[[[1," "],[10,0],[14,0,"legacy:title-subtitle text-[color:var(--color-text-secondary, var(--apl-gray-700)]"],[12],[1,"\\n "],[1,[30,0,["fromDisplayString"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],[[[1," "],[10,0],[14,0,"flex mt-1.5 gap-1 flex-wrap"],[12],[1,"\\n "],[10,0],[15,0,[29,["text-small ",[30,0,["deltaColor"]]," flex flex-wrap gap-1 items-center"]]],[12],[1,"\\n"],[41,[30,0,["deltaDisplayString"]],[[[1," "],[10,"apl-icon"],[15,"icon",[52,[30,0,["isDeltaNegative"]],"caret-down_solid","caret-up_solid"]],[12],[13],[1,"\\n "],[1,[30,0,["deltaDisplayString"]]],[1,"\\n"]],[]],null],[41,[30,0,["percentDeltaDisplayString"]],[[[1," "],[10,"apl-badge"],[15,"theme",[30,0,["relativeDeltaBadgeTheme"]]],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,[30,0,["percentDeltaDisplayString"]]],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[30,0,["fromDis
1playString"]],[[[1," "],[10,0],[14,0,"text-vs-secondary text-small flex items-center"],[12],[1,"\\n "],[1,[30,0,["fromDisplayString"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]]],[]],null],[1," "],[13],[1,"\\n "]],[]]]],[]]]],[]]]],[]]],[13]],["&attrs","@applicationTheme","&header"],false,["on-insert","on-destroy","yield","hash","if","widget/visualization/shared/loading-animation","widget/visualization/shared/no-perspective-empty-state","widget/visualization/shared/data-provider-error-state","widget/visualization/shared/no-data-empty-state","not","widget/visualization/shared/linkable-cell","or"]]',moduleName:"@addepar/widgets/components/widget/visualization/big-number.hbs",isStrictMode:!1});var d,p,h,m,g,f,y,b,v,w,_,A,T,C,S,R,D,O,E,F,P,x,N,z,I,M,k,L,j,V,B,q,H,U,G,W,$,Y,K=i(618576);function Q(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let X=(d=(0,o.computed)("queryRequest.result"),p=(0,o.computed)("queryRequest.result.deltaResult"),h=(0,o.computed)("deltaResult.currentValue"),m=(0,o.computed)("deltaResult.originalValue"),g=(0,o.computed)("deltaResult.absoluteDelta"),f=(0,o.computed)("deltaResult.relativeDelta"),y=(0,o.computed)("currentValue.factor"),b=(0,o.computed)("originalValue.factor"),v=(0,o.computed)("[email protected]"),w=(0,o.computed)("visualization.deltaDisplay"),_=(0,o.computed)("visualization.deltaDecreaseTrendColor"),A=(0,o.computed)("visualization.deltaIncreaseTrendColor"),T=(0,o.computed)("deltaDisplay"),C=(0,o.computed)("deltaDisplay"),S=(0,o.computed)("isDeltaNegative","visualization.deltaColor"),R=(0,o.computed)("useWidgetEngine","queryResult.deltaValue","absoluteDelta.value"),D=(0,o.computed)("queryResult.currentValue","currentValue.{factor,type}","visualization.{valueDecimals,valueScale}","_warningAnnotations"),O=(0,o.computed)("queryResult.totalValue"),E=(0,o.computed)("queryResult.currentValueLink"),F=(0,o.computed)("queryResult.totalValueLink"),P=(0,o.computed)("useWidgetEngine","queryResult.{currentValue,totalValue,totalValuePercent}"),x=(0,o.computed)("currentValue","bigNumberDisplayString","deltaResult"),N=(0,o.computed)("invalidDisplayValue"),z=(0,o.computed)("useWidgetEngine","queryResult.absoluteDelta","bigNumberDisplayString","originalValue","showAbsoluteDelta","absoluteDelta","visualization.{valueDecimals,valueScale}"),I=(0,o.computed)("useWidgetEngine","queryResult.relativeDelta","deltaDisplayString","originalValue","showRelativeDelta","relativeDelta.value","isLegacyTheme"),M=(0,o.computed)("useWidgetEngine","queryResult.deltaValueDate","queryResultOriginalValueFactor.displayNames.date"),k=(0,o.computed)("isDeltaNegative","decreaseTrendColor","increaseTrendColor"),L=(0,o.computed)("isDeltaNegative"),j=(0,o.computed)("showShortHeldAssetWarning","showDeannualizedWarning","showDerivedTxWarning","showEstimatedReturnsWarning","showBenchmarkProxyWarning"),V=(0,o.computed)("queryRequest.deannualizedFigures","currentValue.isDeannualizedFigure"),B=(0,o.computed)("queryRequest.derivedTx","currentValue.hasDerivedTx","derivedTx"),q=(0,o.computed)("queryRequest.estimatedReturnsDisplayPreference"),H=(0,o.computed)("estimatedReturnsDisplayPreference","currentValue.usesEstimatedReturns"),U=(0,o.computed)("queryRequest.benchmarkProxyDisplayPreference"),G=(0,o.computed)("benchmarkProxyDisplayPreference","currentValue.usesBenchmarkProxy"),W=(0,o.computed)("queryRequest.shortHeldAssetDisplayPreference"),$=(0,o.computed)("shortHeldAssetDisplayPreference","currentValue.isHeldForShortPeriod"),Q((Y=class extends r.A{get isLegacyTheme(){return"legacy"===(this.args.applicationTheme??"legacy")}get queryResult(){return this.queryRequest.result}get deltaResult(){return this.queryRequest.result?.deltaResult}get currentValue(){return this.deltaResult?.currentValue}get originalValue(){return this.deltaResult?.originalValue}get absoluteDelta(){return this.deltaResult?.absoluteDelta}get relativeDelta(){return this.deltaResult?.relativeDelta}get queryResultCurrentValueFactor(){return this.currentValue?.factor}get queryResultOriginalValueFactor(){return this.originalValue?.factor}get factorDisplayName(){return this.queryRequest.query.valueFactors[0]?.displayName}get deltaDisplay(){return this.visualization.deltaDisplay}
1get decreaseTrendColor(){return this.visualization.deltaDecreaseTrendColor}get increaseTrendColor(){return this.visualization.deltaIncreaseTrendColor}get showAbsoluteDelta(){return[n.ls.BOTH,n.ls.ABSOLUTE].includes(this.deltaDisplay)}get showRelativeDelta(){return[n.ls.BOTH,n.ls.RELATIVE].includes(this.deltaDisplay)}get relativeDeltaBadgeTheme(){return this.visualization.deltaColor===n.AT.INVERT?this.isDeltaNegative?n.l9.GREEN:n.l9.RED:this.isDeltaNegative?n.l9.RED:n.l9.GREEN}get isDeltaNegative(){return this.useWidgetEngine?(this.queryResult?.deltaValue??0)<0:"number"==typeof this.absoluteDelta?.value&&this.absoluteDelta.value<0}get bigNumberDisplayString(){return this.queryResult?.currentValue??this._format(this.currentValue,this._warningAnnotations)}get totalValueDisplayString(){return this.queryResult?.totalValue}get bigNumberDeepLink(){return this.queryResult?.currentValueLink}get totalValueDeepLink(){return this.queryResult?.totalValueLink}get percentOfTotalDisplayString(){if(this.useWidgetEngine)return this.queryResult?.totalValuePercent;let{currentValue:e,totalValue:t}=this.queryResult??{};return(0,s.Fl)(e/t,"percent","0,0.00%")}get invalidDisplayValue(){return this.deltaResult?(0,l.j)(this.currentValue):this.bigNumberDisplayString??""}get hasEmptyDisplayValue(){return""===this.invalidDisplayValue}get deltaDisplayString(){return this.useWidgetEngine?this.queryResult?.absoluteDelta:this.originalValue&&this.showAbsoluteDelta?this._format(this.absoluteDelta):null}get percentDeltaDisplayString(){return this.useWidgetEngine?this.queryResult?.relativeDelta:this.originalValue&&this.showRelativeDelta?this.relativeDelta?(0,s.Fl)(this.relativeDelta.value,"percent","0,0.00%"):"-":null}get fromDisplayString(){let e=this.useWidgetEngine?this.queryResult?.deltaValueDate:this.queryResultOriginalValueFactor?.displayNames?.date;return e?`from ${e}`:null}get deltaColor(){return this.isDeltaNegative?this.decreaseTrendColor:this.increaseTrendColor}get deltaIcon(){return this.isDeltaNegative?"fa fa-caret-down":"fa fa-caret-up"}get _warningAnnotations(){let e=[];return this.showShortHeldAssetWarning&&e.push(u.uJ.SHORT_HELD_ASSET),this.showDeannualizedWarning&&e.push(u.uJ.DEANNUALIZED),this.showDerivedTxWarning&&e.push(u.uJ.DERIVED_TRANSACTION),this.showEstimatedReturnsWarning&&e.push(u.uJ.ESTIMATED_RETURNS),this.showBenchmarkProxyWarning&&e.push(u.uJ.BENCHMARK_PROXY),e.join("")}get showDeannualizedWarning(){return"warn"===this.queryRequest.deannualizedFigures&&this.currentValue?.isDeannualizedFigure}get showDerivedTxWarning(){return"warn"===this.queryRequest.derivedTx&&this.currentValue?.hasDerivedTx}get estimatedReturnsDisplayPreference(){return this.queryRequest.estimatedReturnsDisplayPreference}get showEstimatedReturnsWarning(){return"warn"===this.estimatedReturnsDisplayPreference&&this.currentValue?.usesEstimatedReturns}get benchmarkProxyDisplayPreference(){return this.queryRequest.benchmarkProxyDisplayPreference}get showBenchmarkProxyWarning(){return"warn"===this.benchmarkProxyDisplayPreference&&this.currentValue?.usesBenchmarkProxy}get shortHeldAssetDisplayPreference(){return this.queryRequest.shortHeldAssetDisplayPreference}get showShortHeldAssetWarning(){return"warn"===this.shortHeldAssetDisplayPreference&&this.currentValue?.isHeldForShortPeriod}_format(e,t=""){let i=(0,l.j)(e);if(void 0!==i)return i;let r=a.Ay.buildFormat({type:this.currentValue?.type,valueDecimals:this.visualization.valueDecimals,valueScale:this.visualization.valueScale});return(0,s.GP)(e,this.currentValue?.factor,r)+t}}).prototype,"queryResult",[d],Object.getOwnPropertyDescriptor(Y.prototype,"queryResult"),Y.prototype),Q(Y.prototype,"deltaResult",[p],Object.getOwnPropertyDescriptor(Y.prototype,"deltaResult"),Y.prototype),Q(Y.prototype,"currentValue",[h],Object.getOwnPropertyDescriptor(Y.prototype,"currentValue"),Y.prototype),Q(Y.prototype,"originalValue",[m],Object.getOwnPropertyDescriptor(Y.prototype,"originalValue"),Y.prototype),Q(Y.prototype,"absoluteDelta",[g],Object.getOwnPropertyDescriptor(Y.prototype,"absoluteDelta"),Y.prototype),Q(Y.prototype,"relativeDelta",[f],Object.getOwnPropertyDescriptor(Y.prototype,"relativeDelta"),Y.prototype),Q(Y.prototype,"queryResultCurrentValueFactor",[y],Object.getOwnPropertyDescriptor(Y.prototype,"queryResultCurrentValueFactor"),Y.prototype),Q(Y.prototype,"queryResultOriginalValueFactor",[b],Object.getOwnPropertyDescriptor(Y.prototype,"queryResultOriginalValueFactor"),Y.prototype),Q(Y.prototype,"factorDisplayName",[v],Object.getOwnPropertyDescriptor(Y.prototype,"factorDisplayName"),Y.prototype),Q(Y.prototype,"deltaDisplay",[w],Object.getOwnPropertyDescriptor(Y.prototype,"deltaDisplay"),Y.prototype),Q(Y.prototype,"decreaseTrendColor",[_],Object.getOwnPropertyDescriptor(Y.prototype,"decreaseTrendColor"),Y.prototype),Q(Y.prototype,"increaseTrendColor",[A],Object.getOwnPropertyDescriptor(Y.prototype,"increaseTrendColor"),Y.prototype),Q(Y.prototype,"showAbsoluteDelta",[T],Object.getOwnPropertyDescriptor(Y.prototype,"showAbsoluteDelta"),Y.prototype),Q(Y.prototype,"showRelativeDelta",[C],Object.getOwnPropertyDescriptor(Y.prototype,"showRelativeDelta"),Y.prototype),Q(Y.prototype,"relativeDeltaBadgeTheme",[S],Object.getOwnPropertyDescriptor(Y.prototype,"relativeDeltaBadgeTheme"),Y.prototype),Q(Y.prototype,"isDeltaNegative",[R],Object.getOwnPropertyDescriptor(Y.prototype,"isDeltaNegative"),Y.prototype),Q(Y.prototype,"bigNumberDis
1playString",[D],Object.getOwnPropertyDescriptor(Y.prototype,"bigNumberDisplayString"),Y.prototype),Q(Y.prototype,"totalValueDisplayString",[O],Object.getOwnPropertyDescriptor(Y.prototype,"totalValueDisplayString"),Y.prototype),Q(Y.prototype,"bigNumberDeepLink",[E],Object.getOwnPropertyDescriptor(Y.prototype,"bigNumberDeepLink"),Y.prototype),Q(Y.prototype,"totalValueDeepLink",[F],Object.getOwnPropertyDescriptor(Y.prototype,"totalValueDeepLink"),Y.prototype),Q(Y.prototype,"percentOfTotalDisplayString",[P],Object.getOwnPropertyDescriptor(Y.prototype,"percentOfTotalDisplayString"),Y.prototype),Q(Y.prototype,"invalidDisplayValue",[x],Object.getOwnPropertyDescriptor(Y.prototype,"invalidDisplayValue"),Y.prototype),Q(Y.prototype,"hasEmptyDisplayValue",[N],Object.getOwnPropertyDescriptor(Y.prototype,"hasEmptyDisplayValue"),Y.prototype),Q(Y.prototype,"deltaDisplayString",[z],Object.getOwnPropertyDescriptor(Y.prototype,"deltaDisplayString"),Y.prototype),Q(Y.prototype,"percentDeltaDisplayString",[I],Object.getOwnPropertyDescriptor(Y.prototype,"percentDeltaDisplayString"),Y.prototype),Q(Y.prototype,"fromDisplayString",[M],Object.getOwnPropertyDescriptor(Y.prototype,"fromDisplayString"),Y.prototype),Q(Y.prototype,"deltaColor",[k],Object.getOwnPropertyDescriptor(Y.prototype,"deltaColor"),Y.prototype),Q(Y.prototype,"deltaIcon",[L],Object.getOwnPropertyDescriptor(Y.prototype,"deltaIcon"),Y.prototype),Q(Y.prototype,"_warningAnnotations",[j],Object.getOwnPropertyDescriptor(Y.prototype,"_warningAnnotations"),Y.prototype),Q(Y.prototype,"showDeannualizedWarning",[V],Object.getOwnPropertyDescriptor(Y.prototype,"showDeannualizedWarning"),Y.prototype),Q(Y.prototype,"showDerivedTxWarning",[B],Object.getOwnPropertyDescriptor(Y.prototype,"showDerivedTxWarning"),Y.prototype),Q(Y.prototype,"estimatedReturnsDisplayPreference",[q],Object.getOwnPropertyDescriptor(Y.prototype,"estimatedReturnsDisplayPreference"),Y.prototype),Q(Y.prototype,"showEstimatedReturnsWarning",[H],Object.getOwnPropertyDescriptor(Y.prototype,"showEstimatedReturnsWarning"),Y.prototype),Q(Y.prototype,"benchmarkProxyDisplayPreference",[U],Object.getOwnPropertyDescriptor(Y.prototype,"benchmarkProxyDisplayPreference"),Y.prototype),Q(Y.prototype,"showBenchmarkProxyWarning",[G],Object.getOwnPropertyDescriptor(Y.prototype,"showBenchmarkProxyWarning"),Y.prototype),Q(Y.prototype,"shortHeldAssetDisplayPreference",[W],Object.getOwnPropertyDescriptor(Y.prototype,"shortHeldAssetDisplayPreference"),Y.prototype),Q(Y.prototype,"showShortHeldAssetWarning",[$],Object.getOwnPropertyDescriptor(Y.prototype,"showShortHeldAssetWarning"),Y.prototype),Y);(0,K.setComponentTemplate)(c,X)},913830(e,t,i){i.r(t),i.d(t,{default:()=>D});var r=i(877012),o=i(943910),a=i(830819),n=i(279564);const s=(0,i(510364).createTemplateFactory)({id:"pVU4tTo0",block:'[[[11,0],[16,0,[29,["portfolio-graph-view view-wrapper\\n ",[52,[30,0,["useBottomCustomLegendPadding"]],"bottom-custom-legend-padding"]]]],[17,1],[4,[38,1],[[30,0,["didInsertEl"]]],null],[4,[38,2],[[30,0,["willDestroyEl"]]],null],[12],[1,"\\n "],[18,9,[[28,[37,4],null,[["isLoading","labelHeight","visualizationDisplayName"],[[30,0,["isLoading"]],[30,0,["labelHeight"]],[30,0,["visualizationDisplayName"]]]]]]],[1,"\\n"],[41,[30,0,["isLoading"]],[[[1," "],[8,[39,5],null,[["@applicationTheme"],[[30,2]]],null],[1,"\\n"]],[]],[[[41,[30,0,["showNavigatorUnsupportedPerspectivePlaceholder"]],[[[1," "],[10,0],[14,0,"flex h-full flex-1 items-center justify-center"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"size","compact"],[14,"header","No data available"],[14,"message","Navigator projections are not supported for this entity type."],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showNoPerspectivePlaceholder"]],[[[1," "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["isDataProviderError"]],[[[1," "],[8,[39,7],null,null,null],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["flex ",[30,0,["chartHeightClass"]]," w-full"]]],[12],[1,"\\n"],[41,[28,[37,8],[[30,0,["type"]],"beta_waterfall"],null],[[[1," "],[8,[39,9],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[3
10,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"beta_bar"],null],[[[1," "],[8,[39,10],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"beta_pie"],null],[[[1," "],[8,[39,11],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"gauge"],null],[[[1," "],[8,[39,12],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"beta_scatter"],null],[[[1," "],[8,[39,13],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"beta_line"],null],[[[1," "],[8,[39,14],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"beta_area"],null],[[[1," "],[8,[39,15],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[3
10,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"beta_boxplot"],null],[[[1," "],[8,[39,16],[[24,0,"h-full w-full"]],[["@parent","@target","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@visualizationEditor"],[[30,0],[30,0],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,8]]],null],[1,"\\n"]],[]],[[[41,[28,[37,8],[[30,0,["type"]],"projection_chart"],null],[[[1," "],[8,[39,17],[[24,0,"h-full w-full"]],[["@parent","@target","@useStaticDimensions","@registerInstance","@isInteractive","@visualization","@queryRequest","@selectedSeedColors","@applicationTheme","@hasMultipleMetrics","@maxBarThickness","@labelAngle","@portfolioVisualizationLabelHeight","@labelWidthMultiplier","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,0],[30,0],[30,3],[30,0,["registerChartInstance"]],[30,0,["isInteractive"]],[30,0,["visualization"]],[30,0,["queryRequest"]],[30,4],[30,2],[30,0,["hasMultipleMetrics"]],null,[30,0,["labelAngle"]],[30,0,["labelHeight"]],[30,0,["labelWidthMultiplier"]],[30,5],[30,6],[30,7],[30,8]]],null],[1,"\\n "]],[]],null]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]]],[]]],[41,[30,0,["showCustomLegend"]],[[[1," "],[8,[39,18],null,[["@chartComponent","@legendPosition","@legendAlignmentClass"],[[30,0,["chartComponent"]],[30,0,["legendPosition"]],[30,0,["legendAlignmentClass"]]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[18,10,null],[1,"\\n "]],[]]]],[]]]],[]]]],[]]],[13]],["&attrs","@applicationTheme","@isRepGen","@selectedSeedColors","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor","&header","&footer"],false,["if","on-insert","on-destroy","yield","hash","widget/visualization/shared/loading-animation","widget/visualization/shared/no-perspective-empty-state","widget/visualization/shared/data-provider-error-state","eq","widget/visualization/chart/beta-waterfall","widget/visualization/chart/beta-bar","widget/visualization/chart/beta-pie","widget/visualization/chart/gauge","widget/visualization/chart/beta-scatter","widget/visualization/chart/beta-line","widget/visualization/chart/beta-area","widget/visualization/chart/beta-boxplot","widget/visualization/chart/projection-chart","widget/visualization/shared/legend"]]',moduleName:"@addepar/widgets/components/widget/visualization/chart.hbs",isStrictMode:!1});var l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T,C,S=i(618576);function R(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let D=(l=(0,o.computed)("visualization.title"),u=(0,o.computed)("useVisualizationLabelFormatting","visualization.labelWidthMultiplier"),c=(0,o.computed)("useVisualizationLabelFormatting","visualization.labelHeight"),d=(0,o.computed)("useVisualizationLabelFormatting","visualization.labelAngle"),p=(0,o.computed)("resultValueFactors.length"),h=(0,o.computed)("visualization.query.valueFactors"),m=(0,o.computed)("visualization.query.groupingFactors"),g=(0,o.computed)("chartComponent.showCustomLegend"),f=(0,o.computed)("visualization.legendPosition"),y=(0,o.computed)("args.enableVsChartStyling","legendPosition","showCustomLegend"),b=(0,o.computed)("legendPosition","args.enableVsChartStyling","queryRequest.{dataAsOfDisplay,showDataAsOfTime}"),v=(0,o.computed)("legendPosition","type"),w=(0,o.computed)("queryLoading"),_=(0,o.computed)("visualization.type"),A=(0,o.computed)("queryRequest.result.valueFactors"),R((T=class extends r.A{constructor(...e){var t;super(...e),(t=C)&&Object.defineProperty(this,"chartComponent",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}get isPrint(){return this.args.isPrint??!1}get isInteractive(){return!this.isPrint}get useVisualizationLabelFormatting(){return this.isPrint}get title(){return this.visualization.title}set title(e){this.visualization.set("title",e)}get labelWidthMultiplier(){let{useVisualizationLabelFormatting:e,visualization:t}=this;return e?t.labelWidthMultiplier:.2}get labelHeight(){let{useVisualizationLabelFormatting:e,visualization:t}=this;return e?t.labelHeight:50}get labelAngle(){let{useVisualizationLabelFormatting:e,visualization:t}=this;return e?t.labelAngle:void 0}get hasMultipleMetrics(){return this.resultValueFactors?.length??!1}registerChartInstance(e){this.isDestroying||(this.chartComponent=e,this.args.registerChartComponent?.(e))}get queryValueFactors(){return this.visualization.query.valueFactors}get queryGroupingFactors(){return this.visualization.query.groupingFactors}get showCustomLegend(){return this.chartComponent?.showCustomLegend}get legendPosition(){return this.visualization.legendPosition}get useBottomCustomLegendPadding(){return this.showCustomLegend&&"bottom"===this.legendPosition&&this.args.enableVsChartStyling}
1get chartHeightClass(){let e="flex-1 h-full min-h-0";if("bottom"===this.legendPosition&&this.args.enableVsChartStyling){e="flex-col custom-legend-chart";let{dataAsOfDisplay:t,showDataAsOfTime:i}=this.queryRequest;i&&t&&(e+=" has-data-as-of-display")}return e.trim()}get legendAlignmentClass(){let e=this.type;return e===a.$Z.BETA_PIE_TYPE&&"right"===this.legendPosition?"flex-col justify-center pl-2":e===a.$Z.BETA_PIE_TYPE?"justify-center":""}get isLoading(){return this.queryLoading}get type(){return this.visualization.type}get resultValueFactors(){return this.queryRequest.result?.valueFactors}}).prototype,"title",[l],Object.getOwnPropertyDescriptor(T.prototype,"title"),T.prototype),R(T.prototype,"labelWidthMultiplier",[u],Object.getOwnPropertyDescriptor(T.prototype,"labelWidthMultiplier"),T.prototype),R(T.prototype,"labelHeight",[c],Object.getOwnPropertyDescriptor(T.prototype,"labelHeight"),T.prototype),R(T.prototype,"labelAngle",[d],Object.getOwnPropertyDescriptor(T.prototype,"labelAngle"),T.prototype),R(T.prototype,"hasMultipleMetrics",[p],Object.getOwnPropertyDescriptor(T.prototype,"hasMultipleMetrics"),T.prototype),C=R(T.prototype,"chartComponent",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R(T.prototype,"registerChartInstance",[o.action],Object.getOwnPropertyDescriptor(T.prototype,"registerChartInstance"),T.prototype),R(T.prototype,"queryValueFactors",[h],Object.getOwnPropertyDescriptor(T.prototype,"queryValueFactors"),T.prototype),R(T.prototype,"queryGroupingFactors",[m],Object.getOwnPropertyDescriptor(T.prototype,"queryGroupingFactors"),T.prototype),R(T.prototype,"showCustomLegend",[g],Object.getOwnPropertyDescriptor(T.prototype,"showCustomLegend"),T.prototype),R(T.prototype,"legendPosition",[f],Object.getOwnPropertyDescriptor(T.prototype,"legendPosition"),T.prototype),R(T.prototype,"useBottomCustomLegendPadding",[y],Object.getOwnPropertyDescriptor(T.prototype,"useBottomCustomLegendPadding"),T.prototype),R(T.prototype,"chartHeightClass",[b],Object.getOwnPropertyDescriptor(T.prototype,"chartHeightClass"),T.prototype),R(T.prototype,"legendAlignmentClass",[v],Object.getOwnPropertyDescriptor(T.prototype,"legendAlignmentClass"),T.prototype),R(T.prototype,"isLoading",[w],Object.getOwnPropertyDescriptor(T.prototype,"isLoading"),T.prototype),R(T.prototype,"type",[_],Object.getOwnPropertyDescriptor(T.prototype,"type"),T.prototype),R(T.prototype,"resultValueFactors",[A],Object.getOwnPropertyDescriptor(T.prototype,"resultValueFactors"),T.prototype),T);(0,S.setComponentTemplate)(s,D)},37015(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(145968)},794424(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-beta-area"],type:"beta_area",isAreaChart:!0,dataEnvTestId:"chart-beta-area"})},651213(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-beta-bar"],type:"beta_bar",dataEnvTestId:"chart-beta-bar"})},142482(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-beta-boxplot"],type:"beta_boxplot",dataEnvTestId:"chart-beta-boxplot"})},499296(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-beta-line"],type:"beta_line",dataEnvTestId:"chart-beta-line"})},768115(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-beta-pie"],type:"beta_pie",dataEnvTestId:"chart-beta-pie"})},942089(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(145968),o=i(555546);const a=r.A.extend({classNames:["chart-beta-scatter"],type:"beta_scatter",dataEnvTestId:"chart-beta-scatter",resizeViewport(e,t){this._super(e,t);let i=!1;if(this.isInteractive){let r=t*(1-o.g$.CHART_HEIGHT_PERCENTAGE),a=this.chartOptionGrid?.legendHeight;a>r&&(i=!0,t+=a-r,e-=o.g$.SCROLLBAR_WIDTH,this._super(e,t))}return i}})},154080(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-beta-waterfall"],type:"beta_waterfall",dataEnvTestId:"chart-beta-bar"})},729053(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-gauge"],type:"gauge",dataEnvTestId:"chart-gauge"})},320835(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(145968).A.extend({classNames:["chart-projection"],type:"projection_chart",dataEnvTestId:"chart-projection"})},249050(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(877012);const o=(0,i(510364).createTemplateFactory)({id:"0GRmDcVB",block:'[[[41,[28,[37,1],[[30,1,["dataSource"]],"ADDEPAR_PORTFOLIO"],null],[[[41,[30,1,["query","pivotFactor"]],[[[1," "],[8,[39,2],[[17,2]],[["@isRepGen","@renderBody","@columns","@displayValueFactors","@pivotBuckets","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@columnSettings","@target","@isLexicographicalSort","@formatNegativeNumbers","@enableTextWrapping","@useAgGridTable","@tableTheme","@itemFrame","@registerInstance","@resetSortColumn","@showRowNumber"],[[30,3],[30,4],[3
10,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,14],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,24]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,3],[[17,2]],[["@isRepGen","@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@enableTextWrapping","@useAgGridTable","@tableTheme","@itemFrame","@registerInstance","@resetSortColumn","@showRowNumber","@numberedFootnotes"],[[30,3],[30,4],[30,5],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,24],[30,25]]],null],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,1],[[30,1,["dataSource"]],"ADDEPAR_TRANSACTION"],null],[[[1," "],[8,[39,4],null,[["@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@itemFrame","@registerInstance","@tableTheme","@enableTextWrapping","@useAgGridTable","@headerRowTextWeight","@headerRowHeight","@headerRowTextSize","@headerRowLetterCase","@headerRowTextColor","@headerRowBackgroundColor","@headerRowBorderStyle","@headerRowBorderColor","@bodyRowTextSize","@bodyRowBorderStyle","@bodyRowBorderColor","@bodyTopLevelRowTextWeight","@bodyTopLevelRowTextColor","@bodyTopLevelRowBackgroundColor","@bodyRepeatingRowTextWeight","@bodyRepeatingRowTextColor","@bodyRepeatingRowBackgroundColor","@bodyBaseRowTextWeight","@bodyBaseRowTextColor","@bodyBaseRowBackgroundColor","@bodyRowHeight"],[[30,4],[30,5],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,17],[30,21],[30,22],[30,20],[30,18],[30,19],[30,26],[30,27],[30,28],[30,29],[30,30],[30,31],[30,32],[30,33],[30,34],[30,35],[30,36],[30,37],[30,38],[30,39],[30,40],[30,41],[30,42],[30,43],[30,44],[30,45],[30,46]]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1,["dataSource"]],"NAVIGATOR_PROJECTION"],null],[[[1," "],[8,[39,3],null,[["@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@tableTheme","@itemFrame","@registerInstance","@useAgGridTable","@bodyCellComponentName","@tableType"],[[30,4],[30,5],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,17],[30,20],[30,21],[30,22],[30,19],"report-projection-table-cell","report_projection_table"]],null],[1,"\\n"]],[]],[[[41,[28,[37,1],[[30,1,["dataSource"]],"BILLING_RATE_TIER"],null],[[[1," "],[8,[39,3],null,[["@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@enableTextWrapping","@tableTheme","@itemFrame","@registerInstance","@tableType"],[[30,4],[30,5],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13],[30,17],[30,18],[30,20],[30,21],[30,22],"report_billing_rate_tier_table"]],null],[1,"\\n"],[41,[30,47],[[[1," "],[10,0],[14,0,"mt-4"],[12],[1,"\\n "],[8,[39,3],null,[["@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@enableTextWrapping","@tableTheme","@itemFrame","@registerInstance","@tableType"],[[30,4],[30,48],[30,49],[30,50],[30,10],[30,11],[30,51],[30,52],[30,17],[30,18],[30,20],[30,21],[30,53],"report_billing_rate_tier_table"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null]],[]]]],[]]]],[]]]],["@visualization","&attrs","@isRepGen","@renderBody","@columns","@displayValueFactors","@pivotBuckets","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@columnSettings","@target","@isLexicographicalSort","@formatNegativeNumbers","@enableTextWrapping","@useAgGridTable","@tableTheme","@itemFrame","@registerTableComponent","@resetSortColumn","@showRowNumber","@numberedFootnotes","@headerRowTextWeight","@headerRowHeight","@headerRowTextSize","@headerRowLetterCase","@headerRowTextColor","@headerRowBackgroundColor","@headerRowBorderStyle","@headerRowBorderColor","@bodyRowTextSize","@bodyRowBorderStyle","@bodyRowBorderColor","@bodyTopLevelRowTextWeight","@bodyTopLevelRowTextColor","@bodyTopLevelRowBackgroun
1dColor","@bodyRepeatingRowTextWeight","@bodyRepeatingRowTextColor","@bodyRepeatingRowBackgroundColor","@bodyBaseRowTextWeight","@bodyBaseRowTextColor","@bodyBaseRowBackgroundColor","@bodyRowHeight","@shouldShowSecondaryTable","@secondaryColumns","@secondaryBodyContent","@secondaryFooterContent","@secondaryColumnFormats","@secondaryColumnLabels","@registerSecondaryTableComponent"],false,["if","eq","report-html-pivot-table","report-html-table","report-html-transaction-table"]]',moduleName:"@addepar/widgets/components/widget/visualization/html-table.hbs",isStrictMode:!1});var a=i(618576);class n extends r.A{}(0,a.setComponentTemplate)(o,n)},116196(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(953623)},427850(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"WIdJtGpy",block:'[[[11,0],[24,"data-widget-chart-footer",""],[17,1],[12],[1,"\\n "],[10,0],[14,0,"footer-content flex justify-center text-vs-primary"],[12],[1,"\\n "],[10,0],[14,0,"footer-text text-core-body-metadata text-center text-vs-secondary"],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["&attrs","&text"],false,["yield"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/chart-footer.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"chart-footer"))},380920(e,t,i){i.r(t),i.d(t,{default:()=>d});var r=i(943910),o=i(765632),a=i(279564);const n=(0,i(510364).createTemplateFactory)({id:"Q10Ax1j6",block:'[[[11,0],[24,0,"flex py-0.5"],[17,1],[12],[1,"\\n "],[8,[39,0],null,[["@popoverPlacement","@filterOwner","@filterSetOwner","@startDate","@endDate","@ownershipPerspective","@onFilterSetDelete","@noFiltersPlaceholder","@isAplPopover","@useAplFilterList"],["left",[30,2,["query"]],[30,2],[30,3,["startDate"]],[30,3,["endDate"]],[30,3,["ownershipPerspective"]],[30,4],"No filters have been applied to this element",true,true]],null],[1,"\\n"],[41,[28,[37,2],null,null],[[[1," "],[11,"apl-button"],[24,"data-env-test-id","edit-widget-button"],[24,"preset","editPen"],[24,"size","compact"],[24,"icon-only",""],[24,"icon-transparent-background",""],[4,[38,3],["click",[30,5]],null],[12],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,4],[[24,"data-env-test-id","edit-widget-button"]],[["@tooltipText","@icon","@action"],["Edit","pencil",[30,5]]],null],[1,"\\n"]],[]]],[41,[28,[37,5],[[30,6],[28,[37,6],[[30,3,["isLoading"]]],null],[30,7]],null],[[[1," "],[8,[39,7],null,[["@onClick","@isLoading"],[[30,7],[30,8]]],null],[1,"\\n"]],[]],null],[41,[28,[37,5],[[30,9],[30,6]],null],[[[1," "],[8,[39,8],null,[["@queryRequest","@visualization","@chartOrderIndex","@selectedSeedColors","@portfolioVisualizationLabelHeight","@visualizationDisplayName"],[[30,3],[30,2],[30,10],[30,11],[30,12],[30,13]]],null],[1,"\\n"]],[]],null],[41,[30,14],[[[1," "],[8,[39,9],null,null,null],[1,"\\n"]],[]],null],[41,[30,15],[[[1," "],[11,"apl-button"],[24,"size","compact"],[24,"icon-only",""],[24,"icon-transparent-background",""],[4,[38,3],["click",[30,15]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","magnifying-glass"],[12],[13],[1,"\\n "],[10,1],[14,"slot","icon-alt-text"],[12],[1,"Find"],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,16],[[[41,[28,[37,2],null,null],[[[1," "],[11,"apl-popover"],[24,"data-popover-table-search",""],[24,"placement","bottom-end"],[4,[38,10],[[30,0,["grabAplPopoverRef"]]],null],[12],[1,"\\n "],[10,0],[14,"slot","popover-content"],[14,0,"flex items-center gap-1"],[12],[1,"\\n "],[11,"apl-text-input"],[24,0,"w-40"],[24,"label","Find in table"],[24,"hide-label",""],[24,"placeholder","Find in table"],[16,2,[30,0,["quickSearchInput"]]],[4,[38,3],["keydown",[30,0,["onSearchInputKeyPress"]]],null],[4,[38,3],["input",[30,0,["setQuickSearchInput"]]],null],[12],[13],[1,"\\n "],[11,"apl-button"],[24,"data-close",""],[24,"preset","close"],[24,"size","compact"],[24,"icon-only",""],[24,"icon-transparent-background",""],[4,[38,3],["click",[30,0,["clearSearchAndClosePopover"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,"apl-button"],[14,"slot","trigger"],[14,"size","compact"],[14,"icon-only",""],[14,"icon-transparent-background",""],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","magnifying-glass"],[12],[13],[1,"\\n "],[10,1],[14,"slot","icon-alt-text"],[12],[1,"Find"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,4],null,[["@icon","@tooltipText"],["search","Find"]],null],[1,"\\n\\n "],[8,[39,11],null,[["@placement","@onOpen"],["bottom-end",[30,0,["focusSearch"]]]],[["default"],[[[[1,"\\n "],[10,1],[14,0,"embedded-right-icon-input"],[12],[1,"\\n "],[8,[39,12],[[24,"placeholder","Find in table"],[24,0,"form-control input-md"]],[["@type","@value","@enter"],["search",[30,0,["quickSearchInput"]],[28,[37,13],[[30,16],[30,0,["quickSearchInput"]]],null]]],null],[1,"\\n "],[11,"i"],[24,0,"fas fa-times h-2 cursor-pointer"],[24,"data-close",""],[4,[38,3],["click",[30,0,["clearSearch"]]],null],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[1," "]],[]],null]],[]]],[1," "],[8,[39,14],null,[["@canSubmitSchwabFee","@onSchwabSelectFactor","@hasPublicApiAccess","@canGeneratePortfolioQuery","@canGenerateTransactionQuery","@onOpenAccessViaAPIModal","@onOpenApiLinkModal","@canExport","@canPaste","@onCopy","@onPaste"],[[30,17],[30,18],[30,19],[3
10,20],[30,21],[30,22],[30,23],[30,6],[30,24],[30,25],[30,26]]],null],[1,"\\n"],[13]],["&attrs","@visualization","@queryRequest","@onFilterSetDelete","@showConfigModal","@canExport","@exportToExcel","@preparingExcelDownload","@canDownloadChart","@chartOrderIndex","@selectedSeedColors","@labelHeight","@visualizationDisplayName","@enableRunVerification","@triggerFind","@quickSearch","@canSubmitSchwabFee","@onSchwabSelectFactor","@hasPublicApiAccess","@canGeneratePortfolioQuery","@canGenerateTransactionQuery","@onOpenAccessViaAPIModal","@onOpenApiLinkModal","@canPaste","@onCopy","@onPaste"],false,["filters-editor/dropdown","if","is-visual-signature","on","tooltip-onyx-button","and","not","table-download-as-excel-button","chart-data-download","run-verification-button","on-insert","adde-dropdown","input","fn","overflow-button"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/controls.hbs",isStrictMode:!1});var s,l,u=i(618576);function c(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let d=(s=class extends o.A{constructor(...e){var t;super(...e),function(e,t,i){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"aplPopoverElement",void 0),(t=l)&&Object.defineProperty(this,"quickSearchInput",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}focusSearch(e){e.querySelector("input")?.focus()}clearSearch(){this.quickSearchInput="",this.args.quickSearch?.(this.quickSearchInput)}grabAplPopoverRef(e){this.aplPopoverElement=e}onSearchInputKeyPress(e){"Enter"===e.key&&this.args.quickSearch?.(this.quickSearchInput)}setQuickSearchInput(e){this.quickSearchInput=e.target?.value}clearSearchAndClosePopover(){this.aplPopoverElement?.close(),this.clearSearch()}},l=c(s.prototype,"quickSearchInput",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),c(s.prototype,"focusSearch",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"focusSearch"),s.prototype),c(s.prototype,"clearSearch",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"clearSearch"),s.prototype),c(s.prototype,"grabAplPopoverRef",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"grabAplPopoverRef"),s.prototype),c(s.prototype,"onSearchInputKeyPress",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"onSearchInputKeyPress"),s.prototype),c(s.prototype,"setQuickSearchInput",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"setQuickSearchInput"),s.prototype),c(s.prototype,"clearSearchAndClosePopover",[r.action],Object.getOwnPropertyDescriptor(s.prototype,"clearSearchAndClosePopover"),s.prototype),s);(0,u.setComponentTemplate)(n,d)},959514(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"7UUs/8CX",block:'[[[11,0],[24,0,"flex items-center justify-center h-full"],[17,1],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"header","No configuration available"],[14,"message","The data source is currently unavailable or responding unexpectedly."],[14,"size","compact"],[12],[13],[1,"\\n"],[13]],["&attrs"],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/data-provider-config-error-state.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"data-provider-config-error-state"))},822991(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"xW7wZmhM",block:'[[[11,0],[24,0,"flex items-center justify-center h-full"],[17,1],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"header","Unable to load widget"],[14,"message","This widget is temporarily unavailable due to a system error. Refresh the page to try again, or check back later."],[14,"size","compact"],[12],[13],[1,"\\n"],[13]],["&attrs"],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/data-provider-error-state.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"data-provider-error-state"))},729950(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"usIMo4ii",block:'[[[10,0],[14,0,"drag-handle relative z-50 flex flex-col items-center cursor-pointer"],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","grip-dots_solid"],[14,0,"drag-icon"],[12],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/draghandle.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"draghandle"))},125914(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(943910),o=i(989272),a=i(765632),n=i(279564);const s=(0,i(510364).createTemplateFactory)({id:"lqZJrZOd",block:'[[[41,[28,[37,1],[[30,0,["menuActions","length"]],[28,[37,2],[[30,0,["hideEllipsis"]]],null]],null],[[[1," "],[11,"apl-floating-menu"],[24,"placement","bottom-end"],[24,"bifurcated-button-appearance","secondary"],[4,[38,3],[[30,0,["toggleEllipsis"]],[30,1]],null],[12],[1,"\\n "],[10,"apl-button"],[14,"slot","trigger"],[14,"icon-only",""],[14,"icon-transparent-background",""],[14,"apl-theme","neutral"],[14,"size","compact"],[14,0,"widget-action-button"],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","ellipsis"],[12],[13],[1,"\\n "],[10,1],[14,"slot","icon-alt-text"],[12],[1,"Open menu"],[13],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,5],[[28,[37,5],[[30,0,["menuActions"]]],null]],null],null,[[[1," "],[10,"apl-floating-menu-item"],[15,"onClick",[30,2,["action"]]],[15,"data-env-test-id",[29,["visualization-ellipsis-menu-item ",[30,2,["id"]]]]],[12],[1,"\\n "],[1,[30,2,["label"]]],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null]],["@isTemplateWidget","entry"],false,["if","and","not","on-update","each","-track-array"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/ellipsis.hbs",isStrictMode:!1});var l,u,c=i(618576);function d(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let p=(l=class extends a.A{constructor(...e){var t;super(...e),(t=u)&&Object.defineProperty(this,"hideEllipsis",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}toggleEllipsis(){this.hideEllipsis=!0,(0,o.next)(()=>this.hideEllipsis=!1)}get menuActions(){let e=[];return this.args.canDownloadWidget&&e.push({id:"download-widget",label:"Download",action:this.args.downloadWidget}),this.args.isEditing&&e.push(...this.editOnlyActions),e}get editOnlyActions(){let e=[];return this.args.displayWidgetLibraryActions&&(this.args.isTemplateWidget&&this.args.editLinkedWidget?e.push({id:"edit-linked-widget",label:"Edit linked widget",action:this.args.editLinkedWidget}):!this.args.isTemplateWidget&&this.args.canSaveWidgetToLibrary&&e.push({id:"save-to-widget-library",label:"Save to library",action:this.args.saveAsTemplate})),this.args.isTemplateWidget&&this.args.unlinkWidget&&e.push({id:"unlink-widget",label:"Unlink widget",action:this.args.unlinkWidget}),this.args.toggleAutoHeight&&this.args.enableDynamicHeight&&e.push({id:"toggle-auto-height",label:this.args.isAutoHeight?"Use fixed height":"Fit height to content",action:this.args.toggleAutoHeight}),e.push({id:"remove-widget",label:"Delete",action:this.args.removeWidget}),e}},u=d(l.prototype,"hideEllipsis",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),d(l.prototype,"toggleEllipsis",[r.action],Object.getOwnPropertyDescriptor(l.prototype,"toggleEllipsis"),l.prototype),l);(0,c.setComponentTemplate)(s,p)},11580(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"i1xxQGPz",block:'[[[10,3],[14,0,"vs:text-vs-link legacy:text-brand-link hover:theme-blue-800 no-underline cursor-pointer"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[15,6,[30,1]],[12],[1,[30,2]],[13]],["@link","@value"],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/embedded-link.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"embedded-link"))},30422(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"TW3vNFSq",block:'[[[10,"apl-badge"],[14,0,"mt-1"],[12],[1,"\\n "],[10,1],[14,"slot","content"],[12],[1,"\\n"],[41,[30,1,["isCustom"]],[[[1," Custom\\n"]],[]],[[[41,[30,1,["isSmsAttribute"]],[[[1," Market Data\\n"]],[]],[[[1," Built-in\\n "]],[]]]],[]]],[1," "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,1,["typeDisplayName"]],[[[1," "],[10,"apl-badge"],[14,0,"mt-1"],[12],[1,"\\n "],[10,1],[14,"slot","content"],[12],[1,"\\n "],[1,[30,1,["typeDisplayName"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["isMultiValue"]],[[[1," "],[10,"apl-badge"],[14,0,"mt-1"],[12],[1,"\\n "],[10,1],[14,"slot","content"],[12],[1,"\\n Multiple Values\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,1,["hidden"]],[[[1," "],[10,"apl-badge"],[14,0,"mt-1"],[12],[1,"\\n "],[10,1],[14,"slot","content"],[12],[1,"\\n Hidden\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],["@factorTemplate"],false,["if"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/factor-badges-apl.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"factor-badges-apl"))},263053(e,t,i){i.r(t),i.d(t,{default:()=>m});var r=i(804204),o=i(943910),a=i(911883);const n=(0,i(510364).createTemplateFactory)({id:"EN+Bntt5",block:'[[[10,"apl-tooltip"],[15,"placement",[30,1]],[15,"tooltipOffset",[28,[37,0],[0,-1],null]],[15,"disabled",[30,2]],[15,"trigger-display",[30,3]],[12],[1,"\\n "],[10,0],[14,"slot","trigger"],[12],[1,"\\n"],[41,[48,[30,11]],[[[1," "],[18,11,["trigger"]],[1,"\\n"]],[]],[[[1," "],[1,[30,4]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[10,0],[14,"slot","text"],[14,0,"w-44 pr-2"],[12],[1,"\\n "],[10,0],[14,0,"legacy:text-primary legacy:text-xs legacy:font-semibold vs:text-vs-primary vs:text-core-small-emphasis pb-1"],[12],[1,"\\n "],[1,[30,0,["title"]]],[1,"\\n "],[13],[1,"\\n"],[41,[30,0,["subtitle"]],[[[1," "],[10,0],[14,0,"legacy:text-gray-700 vs:text-vs-secondary text-core-legal my-1"],[12],[1,"\\n "],[1,[30,0,["subtitle"]]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["description"]],[[[1," "],[10,0],[14,0,"legacy:text-gray-700 vs:text-vs-secondary mb-1"],[12],[1,"\\n "],[1,[30,0,["description"]]],[1,"\\n"],[41,[30,0,["factorLinkId"]],[[[1," "],[8,[39,4],null,[["@topic","@text","@class"],[[30,0,["factorLinkId"]],"Learn more","legacy:text-blue-700 vs:text-vs-link no-underline"]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["showFactorBadges"]],[[[1," "],[10,0],[12],[1,"\\n "],[8,[39,5],null,[["@factorTemplate"],[[30,5]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[37,6],[[30,6],[30,5]],null],[[[1," "],[10,"apl-button"],[15,6,[30,0,["manageAttributeUrl"]]],[14,0,"my-1"],[14,"appearance","secondary"],[14,"size","compact"],[12],[1,"\\n Manage Attribute\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[37,6],[[30,0,["showFactorDetails"]],[30,0,["hasRollupOrInheritance"]]],null],[[[1," "],[10,"apl-line"],[14,0,"my-2"],[12],[13],[1,"\\n"],[41,[30,0,["rollupMethodology"]],[[[1," "],[10,0],[14,0,"text-table-header legacy:text-gray-700 vs:text-vs-secondary mt-3 mb-1 uppercase"],[12],[1,"\\n Rollup Methodology\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,4],null,[["@topic","@text","@class"],["ATTRIBUTE_ROLLUP_METHODOLOGY",[30,0,["rollupMethodology"]],"text-core-paragraph legacy:text-gray-800 vs:text-vs-primary no-underline"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["inheritanceBehavior"]],[[[1," "],[10,0],[14,0,"text-table-header legacy:text-gray-700 vs:text-vs-secondary mt-3 mb-1 uppercase"],[12],[1,"\\n Inheritance Behavior\\n "],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[8,[39,4],null,[["@topic","@text","@class"],["ATTRIBUTE_INHERITANCE_BEHAVIOR",[30,0,["inheritanceBehavior"]],"text-core-paragraph legacy:text-gray-800 vs:text-vs-primary no-underline"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[]],null],[41,[28,[37,6],[[30,0,["showFactorDetails"]],[30,0,["filterCount"]]],null],[[[1," "],[10,"apl-line"],[14,0,"mt-2 mb-1"],[12],[13],[1,"\\n "],[10,0],[12],[1,"\\n "],[10,0],[14,0,"text-core-paragraph legacy:text-gray-800 vs:text-vs-primary mt-0 mb-2"],[12],[1,"\\n Column\\n "],[1,[28,[35,7],["filter",[30,0,["filterCount"]]],null]],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,0,["filterGroups"]]],null]],null],null,[[[1," "],[10,0],[14,0,"my-2"],[12],[1,"\\n "],[1,[52,[30,8],"OR"]],[1,"\\n "],[13],[1,"\\n"],[42,[28,[37,9],[[28,[37,9],[[30,7,["filters"]]],null]],null],null,[[[1," "],[10,"apl-block"],[15,"label",[28,[37,10],[[30,9,["displayPrefix"]],[30,9,["propertyName"]],[30,9,["displaySuffix"]]],null]],[15,"description",[30,9,["displayName"]]],[14,0,"last:mb-0 my-2"],[12],[13],[1,"\\n"]],[9]],null]],[7,8]],null],[1," "],[13],[1,"\\n"]],[]],null],[41,[30,0,["shouldShowPrecomputeFooter"]],[[[1," "],[10,"apl-line"],[14,0,"mt-2 mb-1"],[12],[13],[1,"\\n "],[10,0],[14,0,"legacy:text-gray-700 vs:text-vs-secondary text-core-legal"],[12],[1,"\\n Data in this column use prec
1omputed calculations last updated on\\n "],[1,[30,10]],[1,".\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@popoverPlacement","@disablePopover","@triggerDisplay","@triggerText","@factorTemplate","@canEditFactor","filterGroup","groupIndex","filter","@formattedLastPrecomputeRefresh","&trigger"],false,["array","if","has-block","yield","widget/visualization/shared/factor-help-link","widget/visualization/shared/factor-badges-apl","and","pluralize-text","each","-track-array","concat"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/factor-description-popover-apl.hbs",isStrictMode:!1});var s,l,u,c,d=i(618576);function p(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const h=r.service??r.inject;let m=(s=(0,o.computed)("args.factorTemplate","router"),l=(0,o.computed)("args.{shouldShowPrecomputeFooter,factorTemplate.supportsPrecomputeCalculation,formattedLastPrecomputeRefresh}"),u=class extends a.A{constructor(...e){var t;super(...e),(t=c)&&Object.defineProperty(this,"router",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0})}get manageAttributeUrl(){return this.router.urlFor("app.settings.attributes.factorTemplate",this.args.factorTemplate)}get shouldShowPrecomputeFooter(){return this.args.shouldShowPrecomputeFooter&&this.args.factorTemplate?.supportsPrecomputeCalculation&&this.args.formattedLastPrecomputeRefresh}},c=p(u.prototype,"router",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p(u.prototype,"manageAttributeUrl",[s],Object.getOwnPropertyDescriptor(u.prototype,"manageAttributeUrl"),u.prototype),p(u.prototype,"shouldShowPrecomputeFooter",[l],Object.getOwnPropertyDescriptor(u.prototype,"shouldShowPrecomputeFooter"),u.prototype),u);(0,d.setComponentTemplate)(n,m)},612501(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"CIJ5npAH",block:'[[[41,[30,1],[[[1," "],[10,0],[14,"tabindex","0"],[14,"role","button"],[12],[1,"\\n "],[8,[39,1],null,[["@triggerText","@factorDisplayName","@factorTemplate","@popoverPlacement","@column","@disablePopover","@triggerDisplay","@canEditFactor","@shouldShowPrecomputeFooter","@formattedLastPrecomputeRefresh","@formattedNextPrecomputeRefresh"],[[30,2],[30,3],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12]]],[["trigger"],[[[[1,"\\n "],[18,13,null],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[18,13,null],[1,"\\n"]],[]]]],["@enableFactorDescriptionPopovers","@triggerText","@factorDisplayName","@factorTemplate","@popoverPlacement","@column","@disablePopover","@trigger","@canEditFactor","@shouldShowPrecomputeFooter","@formattedLastPrecomputeRefresh","@formattedNextPrecomputeRefresh","&default"],false,["if","widget/visualization/shared/factor-description-popover-apl","yield"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/factor-description-popover-wrapper.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"factor-description-popover-wrapper"))},32631(e,t,i){i.r(t),i.d(t,{default:()=>u});var r=i(821009),o=i(765632),a=i(116360);const n=(0,i(510364).createTemplateFactory)({id:"tDDXujbG",block:'[[[11,"apl-link"],[16,6,[30,0,["helpLinkURL"]]],[24,"new-tab",""],[17,1],[12],[1,"\\n"],[41,[30,2],[[[1," "],[1,[30,2]],[1,"\\n"]],[]],[[[1," "],[18,3,null],[1,"\\n"]],[]]],[13]],["&attrs","@text","&default"],false,["if","yield"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/factor-help-link.hbs",isStrictMode:!1});var s=i(618576);function l(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class u extends o.A{constructor(...e){super(...e),l(this,"helpDomain",a.L),l(this,"zendeskLinks",a.t)}get helpLinkURL(){let e=this.helpDomain,t=this.args.topic,i=this.zendeskLinks.get(t);if(!t||"default"===t)return(0,r.htmlSafe)(e);if(i)return(0,r.htmlSafe)(`${e}${i}`);throw new Error(`topic argument "${t}
1" did not map to any zendesk link.`)}}(0,s.setComponentTemplate)(n,u)},595021(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"VYOjuwiy",block:'[[[11,0],[24,"data-widget-footer",""],[17,1],[12],[1,"\\n "],[10,"apl-line"],[12],[13],[1,"\\n "],[10,0],[14,0,"footer-content text-vs-primary"],[12],[1,"\\n "],[10,0],[14,0,"footer-text text-vs-secondary text-core-body-metadata"],[12],[1,"\\n "],[18,4,null],[1,"\\n "],[13],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"footer-icon"],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[30,2]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,3],[[[1," "],[10,0],[14,0,"footer-icon"],[12],[1,"\\n "],[10,"img"],[15,"src",[30,3]],[14,"alt",""],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"],[13]],["&attrs","@icon","@darkLogoSrc","&text"],false,["yield","if"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/footer.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"footer"))},571972(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"GkaOspCG",block:'[[[10,0],[14,"slot","apl-table-functionality-bar-left-content"],[14,0,"flex items-center truncate"],[12],[1,"\\n "],[10,1],[14,0,"text-core-body-compact-medium lowercase text-vs-primary first-letter:uppercase"],[12],[1,[30,1]],[13],[1,"\\n"],[13],[1,"\\n"],[10,0],[14,"slot","apl-table-functionality-bar-right-content"],[14,0,"flex items-center gap-2"],[12],[1,"\\n "],[18,2,null],[1,"\\n"],[13]],["@title","&controls"],false,["yield"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/functionality-bar.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"functionality-bar"))},821959(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(553058)},90184(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(765632),o=i(943910),a=i(744415);const n=(0,i(510364).createTemplateFactory)({id:"vmFjoOLE",block:'[[[10,0],[15,0,[29,["flex flex-wrap gap-1 ",[30,1]]]],[12],[1,"\\n"],[42,[28,[37,1],[[28,[37,1],[[30,0,["series"]]],null]],null],null,[[[1," "],[10,"button"],[15,0,[29,["border-vs-action-secondary bg-vs-action-secondary hover:bg-vs-action-secondary-hover active:bg-vs-action-secondary-active\\n ",[52,[28,[37,3],[[30,0,["disabled"]],[30,3]],null],"opacity-60"],"\\n flex items-center gap-1 px-2 py-1 border border-solid rounded-full text-[10px] leading-[11px] w-fit"]]],[15,"onclick",[28,[37,4],[[30,0,["handleLegendToggleSelect"]],[30,2,["seriesName"]],[30,3]],null]],[12],[1,"\\n "],[10,"svg"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[15,"width",[30,2,["width"]]],[15,"height",[30,2,["height"]]],[15,"viewBox",[30,2,["viewBox"]]],[12],[1,"\\n "],[10,"path"],[15,"d",[30,2,["path"]]],[15,"fill",[30,2,["color"]]],[15,"stroke",[52,[30,2,["useStroke"]],[30,2,["color"]],""]],[14,"stroke-linejoin","round"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[10,0],[14,0,"text-vs-primary max-w-28 text-ellipsis whitespace-nowrap overflow-hidden"],[12],[1,"\\n "],[1,[30,2,["label"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[2,3]],null],[13]],["@legendAlignmentClass","item","index"],false,["each","-track-array","if","get","fn"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/legend.hbs",isStrictMode:!1});var s,l,u,c=i(618576);function d(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let p=(s=(0,o.computed)("args.chartComponent.{legendData,legendColors}"),l=(0,o.computed)("series.length"),d((u=class extends r.A{get series(){let e=this.args.chartComponent.legendData,t=this.args.chartComponent.legendColors;return e.map((e,i)=>{let r=t[i],{name:o}=e,n=o;return o===a.Y3&&(o=(0,a.bW)(o)),{...e,color:r,label:o,seriesName:n}})}get disabled(){return new Array(this.series.length).fill(!1)}set disabled(e){return e}handleLegendToggleSelect(e,t,i){i.stopPropagation(),this.args.chartComponent.send("toggleSeries",e),(0,o.set)(this,"disabled",this.disabled.map((e,i)=>i===t?!e:e))}}).prototype,"series",[s],Object.getOwnPropertyDescriptor(u.prototype,"series"),u.prototype),d(u.prototype,"disabled",[l],Object.getOwnPropertyDescriptor(u.prototype,"disabled"),u.prototype),d(u.prototype,"handleLegendToggleSelect",[o.action],Object.getOwnPropertyDescriptor(u.prototype,"handleLegendToggleSelect"),u.prototype),u);(0,c.setComponentTemplate)(n,p)},360727(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"jkayYPv5",block:'[[[11,"apl-button"],[24,0,"widget-action-button"],[24,"icon-only",""],[24,"icon-transparent-background",""],[24,"size","compact"],[4,[38,0],["click",[30,1]],null],[12],[1,"\\n "],[10,"apl-icon"],[14,"icon","arrow-up-right-from-square"],[12],[13],[1,"\\n "],[10,1],[14,"slot","icon-alt-text"],[12],[1,"Open source"],[13],[1,"\\n"],[13]],["@linkToSource"],false,["on"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/link-to-source.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"link-to-source"))},471768(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"1h8b6NT+",block:'[[[41,[30,1],[[[1," "],[10,"apl-link"],[15,6,[30,1]],[12],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[1,[30,2]],[1,"\\n"]],[]]]],["@href","@value"],false,["if"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/linkable-cell.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"linkable-cell"))},952546(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"wLXH9MWo",block:'[[[10,0],[14,0,"flex items-center justify-center h-full"],[12],[1,"\\n "],[10,"apl-loading-indicator"],[14,"variant","indeterminate"],[14,"height","32"],[15,"apl-theme",[52,[28,[37,1],[[30,1],"legacy"],null],"light",[30,1]]],[12],[13],[1,"\\n"],[13]],["@applicationTheme"],false,["if","eq"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/loading-animation.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"loading-animation"))},124998(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"v6Cc+Ope",block:'[[[10,0],[14,0,"flex items-center justify-center flex-1 h-full"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"icon","triangle-exclamation"],[14,"size","compact"],[14,"header","No access"],[12],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/no-access-state.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"no-access-state"))},310111(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"d8/1If19",block:'[[[11,0],[24,0,"flex items-center justify-center h-full"],[17,1],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"header","No data available"],[14,"size","compact"],[12],[13],[1,"\\n"],[13]],["&attrs"],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/no-data-empty-state.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"no-data-empty-state"))},548658(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"rOu5Eozl",block:'[[[10,0],[14,0,"flex items-center justify-center flex-1 h-full"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"icon","display-chart-up"],[14,"size","compact"],[14,"header","No portfolio selected"],[14,"message","Select a portfolio to
1see its data."],[12],[13],[1,"\\n"],[13]],[],false,[]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/no-perspective-empty-state.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"no-perspective-empty-state"))},928958(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"mwD0pxrx",block:'[[[10,0],[14,0,"flex flex-col items-center justify-center h-full"],[12],[1,"\\n "],[10,"apl-loading-indicator"],[15,"variant",[52,[28,[37,1],[[30,1],0],null],"determinate","indeterminate"]],[15,"percentage",[30,1]],[14,"role","progressbar"],[15,"aria-valuenow",[30,1]],[14,"aria-valuemin","0"],[14,"aria-valuemax","100"],[14,"height","32"],[15,"apl-theme",[52,[28,[37,2],[[30,2],"legacy"],null],"light",[30,2]]],[12],[13],[1,"\\n "],[10,0],[14,0,"mt-3"],[12],[1,"\\n"],[41,[48,[30,3]],[[[1," "],[18,3,null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[13]],["@percentDone","@applicationTheme","&default"],false,["if","gt","eq","has-block","yield"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/progress-indicator.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"progress-indicator"))},619421(e,t,i){i.r(t),i.d(t,{default:()=>R});var r=i(877012),o=i(943910),a=i(279564),n=i(416432);const s=(0,i(510364).createTemplateFactory)({id:"kX5F28ww",block:'[[[11,0],[24,0,"panel-table-view-container"],[17,1],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],[[30,0,["willDestroyEl"]]],null],[12],[1,"\\n "],[18,38,[[28,[37,3],null,[["quickSearchText","quickSearchNumMatches","quickSearch","visualizationDisplayName"],[[30,0,["quickSearchText"]],[30,0,["quickSearchNumMatches"]],[52,[30,2],[30,0,["quickSearch"]]],[30,0,["visualizationDisplayName"]]]]]]],[1,"\\n"],[41,[30,0,["showNoAccessPlaceholder"]],[[[1," "],[8,[39,5],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["showNavigatorUnsupportedPerspectivePlaceholder"]],[[[1," "],[10,0],[14,0,"flex h-full flex-1 items-center justify-center"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"size","compact"],[14,"header","No data available"],[14,"message","Navigator projections are not supported for this entity type."],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,0,["showNoPerspectivePlaceholder"]],[[[1," "],[8,[39,6],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["isDataProviderError"]],[[[1," "],[8,[39,7],null,null,null],[1,"\\n"]],[]],[[[41,[30,0,["shouldShowMaxRowsWarning"]],[[[1," "],[10,"apl-banner"],[14,0,"my-3"],[14,4,"warning"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n To optimize loading time, this table is showing\\n "],[1,[30,0,["finalRowCount"]]],[1,"\\n of\\n "],[1,[30,0,["originalRowCount"]]],[1,"\\n rows. Apply filters to refine the results or\\n "],[11,"apl-link"],[24,0,"cursor-pointer"],[4,[38,8],["click",[30,3]],null],[12],[1,"export"],[13],[1,"\\n this table to view all rows.\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["tablePQRNeedsOptimization"]],[[[1," "],[10,"apl-banner"],[14,0,"my-3"],[14,4,"warning"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n "],[10,2],[12],[1,"The current view requires optimization. Please try the following:"],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,"Filtering by ownership attributes\\n "],[10,"b"],[12],[1,"first"],[13],[1,". Ownership attributes include Security, Holding Account, Direct Owner,\\n Top Level Legal Entity, and Top Level Account Number.\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n Removing summary data from all columns.\\n "],[13],[1,"\\n "],[10,"li"],[12],[1,"\\n Removing unassigned account fees and billing attributes.\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["shouldShowFormulaTimeboxingLimitMessage"]],[[[1," "],[10,"apl-banner"],[14,0,"my-3"],[14,4,"warning"],[12],[1,"\\n "],[10,0],[14,"slot","content"],[12],[1,"\\n "],[10,2],[12],[1,"\\n This view cannot be loaded because your groupings and/or filters include a formula-based\\n attribute with too many changing inputs over time. To load the view, try one of the\\n following:\\n "],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n "],[10,"li"],[12],[1,"Deselect Group By Historical Values in View Settings"],[13],[1,"\\n "],[10,"li"],[12],[1,"Remove the formula(s) with inputs that change over time from the viewâs groupings"],[13],[1,"\\n "],[10,"li"],[12],[1,"Remove the filter(s) that use the formula-based attribute"],[13],[1,"\\n "],[10,"li"],[12],[1,"Reduce the number of positions in the view using filters"],[13],[1,"\\n "],[10,"li"],[12],[1,"Set the time periodâs end date further back in time"],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["usePortfolioTable"]],[[[1," "],[10,0],[15,0,[29,["panel-body overflow-hidden\\n ",[52,[30,0,["shouldShowMaxRowsWarning"]],"max-rows-warning-present"]]]],[12],[1,"\\n "],[10,0],[14,0,"ember-table-financial h-full"],[12],[1,"\\n"],[41,[51,[28,[37,10],[[30,0,["queryProgress"]]],null]],[[[1," "],[8,[39,11],null,[["@applicationTheme","@percentDone"],[[30,4],[3
10,0,["queryProgress"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["shouldSuggestQueryOptimization"]],[[[1," "],[10,0],[14,0,"max-w-md text-center vs:text-core-body-compact vs:text-vs-primary"],[12],[1,"\\n If the view takes a while to load, first filter by\\n "],[10,"apl-tooltip"],[14,"slot","trigger"],[14,"placement","top"],[14,"size","large"],[14,0,"legacy:-mx-2"],[14,"inline",""],[12],[1,"\\n "],[10,1],[14,"slot","trigger"],[14,0,"cursor-pointer"],[12],[1,"ownership attributes"],[13],[1,"\\n "],[10,0],[14,"slot","text"],[12],[1,"\\n Ownership attributes include Security, Holding Account, Direct Owner, Top\\n Level Legal Entity, and Top Level Account Number.\\n "],[13],[1,"\\n "],[13],[1,"\\n and remove summary data, unassigned account fees, and billing attributes.\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["queryFinished"]],[[[41,[30,0,["showPivotTable"]],[[[1," "],[8,[39,12],null,[["@sortInReadonly","@quickSearch","@quickSearchNumMatches","@isCollapsedByDefault","@class","@queryRequest","@visualization","@applicationTheme","@selectionMode","@selection","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@disableCustomSortOrdering","@visualizationEditor","@widthConstraint","@forceRerenderOnResize","@readonly","@onHeightChanged","@scrollIndicators","@enableDynamicHeight","@enableFactorDescriptionPopovers","@canEditFactor","@enableVsTableStyling","@useAgGridTable","@enableColumnLinking","@useFindShortcut","@visualizationDisplayName","@showFunctionalityBar"],[[30,5],[30,0,["quickSearchText"]],[30,0,["quickSearchNumMatches"]],[30,0,["isCollapsedByDefault"]],[29,["portfolio-table ",[52,[30,6],"vs-table-styling"]]],[30,0,["queryRequest"]],[30,0,["visualization"]],[30,4],[30,0,["selectionMode"]],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,0,["widthConstraint"]],[30,13],[30,14],[30,15],"all",[30,16],[30,17],[30,18],[30,6],[30,19],[30,20],[30,21],[30,0,["visualizationDisplayName"]],[30,22]]],[["functionalityBar"],[[[[1,"\\n "],[18,39,[[30,23]]],[1,"\\n "]],[23]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,13],null,[["@sortInReadonly","@quickSearch","@quickSearchNumMatches","@isCollapsedByDefault","@class","@queryRequest","@visualization","@applicationTheme","@selectionMode","@selection","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@disableCustomSortOrdering","@visualizationEditor","@widthConstraint","@forceRerenderOnResize","@readonly","@onHeightChanged","@scrollIndicators","@enableDynamicHeight","@openInspector","@canOpenInspectorFromHeader","@enableFactorDescriptionPopovers","@canEditFactor","@enableVsTableStyling","@useAgGridTable","@enableColumnLinking","@useCheckbox","@onRowClicked","@onRowDoubleClicked","@onSelectionChanged","@registerInstance","@useFindShortcut","@visualizationDisplayName","@showFunctionalityBar"],[[30,5],[30,0,["quickSearchText"]],[30,0,["quickSearchNumMatches"]],[30,0,["isCollapsedByDefault"]],[29,["portfolio-table ",[52,[30,6],"vs-table-styling"]]],[30,0,["queryRequest"]],[30,0,["visualization"]],[30,4],[30,0,["selectionMode"]],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,0,["widthConstraint"]],[30,13],[30,14],[30,15],"all",[30,16],[30,24],[30,25],[30,17],[30,18],[30,6],[30,19],[30,20],[30,26],[30,27],[30,28],[30,29],[30,30],[30,21],[30,0,["visualizationDisplayName"]],[30,22]]],[["functionalityBar"],[[[[1,"\\n "],[18,39,[[30,31]]],[1,"\\n "]],[31]]]]],[1,"\\n"]],[]]]],[]],[[[41,[28,[37,14],[[30,0,["queryLoading"]]],null],[[[1," "],[8,[39,15],null,null,null],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"panel-body widgets-generic-table"],[12],[1,"\\n"],[41,[30,0,["queryLoading"]],[[[1," "],[8,[39,16],null,[["@applicationTheme"],[[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,17],null,[["@sortInReadonly","@dataSource","@class","@queryRequest","@visualizationEditor","@widthConstraint","@readonly","@forceRerenderOnResize","@onHeightChanged","@scrollIndicators","@enableDynamicHeight","@enableFactorDescriptionPopovers","@canEditFactor","@enableVsTableStyling","@useAgGridTable","@enableColumnLinking","@useTableRightBorders","@isCollapsedByDefault","@disableCustomSortOrdering","@isPrint","@isRepGen","@pageStartIndex","@pageEndIndex","@registerInstance","@useFindShortcut","@visualizationDisplayName","@showFunctionalityBar"],[[30,5],[30,0,["visualization","dataSource"]],[29,["view-wrapper ",[52,[30,6],"vs-table-styling"]]],[30,0,["queryRequest"]],[30,12],[30,0,["widthConstraint"]],[30,14],[30,13],[30,15],"all",[30,16],[30,17],[30,18],[30,6],[30,19],[3
10,20],[30,32],[30,0,["isCollapsedByDefault"]],[30,11],[30,33],[30,34],[30,35],[30,36],[30,30],[30,21],[30,0,["visualizationDisplayName"]],[30,22]]],[["functionalityBar"],[[[[1,"\\n "],[18,39,[[30,37]]],[1,"\\n "]],[37]]]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n"]],[]]],[1," "]],[]]]],[]]]],[]]]],[]]],[13]],["&attrs","@isAddeparUser","@exportToExcel","@applicationTheme","@sortInReadonly","@enableVsTableStyling","@selectedRows","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@disableCustomSortOrdering","@visualizationEditor","@forceRerenderOnResize","@readonly","@onHeightChanged","@enableDynamicHeight","@enableFactorDescriptionPopovers","@canEditFactor","@useAgGridTable","@enableColumnLinking","@useFindShortcut","@showFunctionalityBar","functionalityBar","@openInspector","@canOpenInspectorFromHeader","@useCheckbox","@onRowClicked","@onRowDoubleClicked","@onSelectionChanged","@registerTableComponent","functionalityBar","@useGenericTableRightBorders","@isPrint","@isRepGen","@pageStartIndex","@pageEndIndex","functionalityBar","&header","&functionalityBar"],false,["on-insert","on-destroy","yield","hash","if","widget/visualization/shared/no-access-state","widget/visualization/shared/no-perspective-empty-state","widget/visualization/shared/data-provider-error-state","on","unless","is-empty","widget/visualization/shared/progress-indicator","widget/visualization/table/portfolio-pivot","widget/visualization/table/portfolio","not","widget/visualization/shared/no-data-empty-state","widget/visualization/shared/loading-animation","widget/visualization/table/generic"]]',moduleName:"@addepar/widgets/components/widget/visualization/table.hbs",isStrictMode:!1});var l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T=i(618576);function C(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function S(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let R=(l=(0,o.computed)("queryRequest.useWidgetEngine","visualization.dataSource"),u=(0,o.computed)("args.selectedRows"),c=(0,o.computed)("queryRequest.query.pivotFactor"),d=(0,o.computed)("visualization.collapsedByDefault"),p=(0,o.computed)("queryRequest.result"),h=(0,o.computed)("queryResult.maxRowsExceeded"),m=(0,o.computed)("queryResult.originalRowCount"),g=(0,o.computed)("queryResult.finalRowCount"),f=(0,o.computed)("veryLargeResult","queryFinished"),y=(0,o.computed)("queryRequest.isOptimizationRecommended"),b=(0,o.computed)("queryRequest.blockedByOptimizationRequirement"),v=(0,o.computed)("queryResult.formulaTimeboxingLimitExceeded"),S((w=class extends r.A{constructor(...e){super(...e),C(this,"quickSearchText",_,this),C(this,"quickSearchNumMatches",A,this)}get usePortfolioTable(){return!this.queryRequest.useWidgetEngine&&this.visualization.dataSource===n.Y.ADDEPAR_PORTFOLIO}get widthConstraint(){return this.args.widthConstraint??"eq-container"}get selectionMode(){return this.args.selectedRows?"multiple":"none"}get showPivotTable(){return this.queryRequest.query.pivotFactor}get isCollapsedByDefault(){return this.visualization.collapsedByDefault}get queryResult(){return this.queryRequest.result}get veryLargeResult(){return this.queryResult?.maxRowsExceeded}get originalRowCount(){return this.queryResult?.originalRowCount}get finalRowCount(){return this.queryResult?.finalRowCount}get shouldShowMaxRowsWarning(){return this.veryLargeResult&&this.queryFinished}get shouldSuggestQueryOptimization(){return this.queryRequest.isOptimizationRecommended}get tablePQRNeedsOptimization(){return this.queryRequest.blockedByOptimizationRequirement}get shouldShowFormulaTimeboxingLimitMessage(){return this.queryResult?.formulaTimeboxingLimitExceeded}quickSearch(e){this.quickSearchText=e}}).prototype,"usePortfolioTable",[l],Object.getOwnPropertyDescriptor(w.prototype,"usePortfolioTable"),w.prototype),S(w.prototype,"selectionMode",[u],Object.getOwnPropertyDescriptor(w.prototype,"selectionMode"),w.prototype),S(w.prototype,"showPivotTable",[c],Ob
1ject.getOwnPropertyDescriptor(w.prototype,"showPivotTable"),w.prototype),S(w.prototype,"isCollapsedByDefault",[d],Object.getOwnPropertyDescriptor(w.prototype,"isCollapsedByDefault"),w.prototype),S(w.prototype,"queryResult",[p],Object.getOwnPropertyDescriptor(w.prototype,"queryResult"),w.prototype),S(w.prototype,"veryLargeResult",[h],Object.getOwnPropertyDescriptor(w.prototype,"veryLargeResult"),w.prototype),S(w.prototype,"originalRowCount",[m],Object.getOwnPropertyDescriptor(w.prototype,"originalRowCount"),w.prototype),S(w.prototype,"finalRowCount",[g],Object.getOwnPropertyDescriptor(w.prototype,"finalRowCount"),w.prototype),S(w.prototype,"shouldShowMaxRowsWarning",[f],Object.getOwnPropertyDescriptor(w.prototype,"shouldShowMaxRowsWarning"),w.prototype),S(w.prototype,"shouldSuggestQueryOptimization",[y],Object.getOwnPropertyDescriptor(w.prototype,"shouldSuggestQueryOptimization"),w.prototype),S(w.prototype,"tablePQRNeedsOptimization",[b],Object.getOwnPropertyDescriptor(w.prototype,"tablePQRNeedsOptimization"),w.prototype),S(w.prototype,"shouldShowFormulaTimeboxingLimitMessage",[v],Object.getOwnPropertyDescriptor(w.prototype,"shouldShowFormulaTimeboxingLimitMessage"),w.prototype),_=S(w.prototype,"quickSearchText",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),A=S(w.prototype,"quickSearchNumMatches",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),S(w.prototype,"quickSearch",[o.action],Object.getOwnPropertyDescriptor(w.prototype,"quickSearch"),w.prototype),w);(0,T.setComponentTemplate)(s,R)},216485(e,t,i){i.r(t),i.d(t,{default:()=>T}),i(256267);var r=i(943910),o=i(989272),a=i(279564),n=i(250481),s=i(374799);function l(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const u=Object.fromEntries(s.Nw.map(e=>[e.numericWeight,e.fontName]));function c(e){let t=e.fontWeight&&u[e.fontWeight];return t?{...e,fontFamily:t}:e}class d{constructor(e){var t;l(this,"columns",void 0),l(this,"rowData",void 0),l(this,"container",void 0),l(this,"footerRowData",void 0),l(this,"readonly",void 0),l(this,"serverSideSorting",void 0),l(this,"sorts",void 0),l(this,"tableStyles",void 0),l(this,"useCheckbox",void 0),l(this,"useFindShortcut",void 0),l(this,"getRowClass",void 0),l(this,"onColumnMoved",void 0),l(this,"onExpandOrCollapseAll",void 0),l(this,"onGridReady",void 0),l(this,"onRowClicked",void 0),l(this,"onRowDataUpdated",void 0),l(this,"onRowDoubleClicked",void 0),l(this,"onRowGroupOpened",void 0),l(this,"onRowSelected",void 0),l(this,"onSelectionChanged",void 0),l(this,"onUpdateSorts",void 0),this.columns=e.columns,this.rowData=e.rowData,this.container=e.container,this.footerRowData=e.footerRowData,this.readonly=e.readonly,this.serverSideSorting=e.serverSideSorting,this.sorts=e.sorts,this.tableStyles=(t=e.tableStyles,t?.header_style?.fontWeight?{...t,header_style:c(t.header_style)}:t),this.useCheckbox=e.useCheckbox,this.useFindShortcut=e.useFindShortcut,this.getRowClass=e.getRowClass,this.onColumnMoved=e.onColumnMoved,this.onExpandOrCollapseAll=e.onExpandOrCollapseAll,this.onGridReady=e.onGridReady,this.onRowClicked=e.onRowClicked,this.onRowDataUpdated=e.onRowDataUpdated,this.onRowDoubleClicked=e.onRowDoubleClicked,this.onRowGroupOpened=e.onRowGroupOpened,this.onRowSelected=e.onRowSelected,this.onSelectionChanged=e.onSelectionChanged,this.onUpdateSorts=e.onUpdateSorts}buildBaseColDef(e){return{...e.children?.length&&{children:e.children.map(this.buildBaseColDef.bind(this))},cellRendererParams:e.cellRendererParams,field:e.headerName,getQuickFilterText:e.getQuickFilterText,headerName:e.headerName,minWidth:e.minWidth,sort:e.sort??null,sortIndex:"number"==typeof e.sortIndex?e.sortIndex-1:null,valueGetter:t=>e.getCellValue?.(t.data)}}get columnDefs(){return this.columns.map(e=>this.buildBaseColDef.bind(this)(e))}}class p extends d{create(){return{autoGroupColumnDef:this.autoGroupColumnDef,autoSizeStrategy:{scaleUpToFitGridWidth:!0,skipHeader:!1,type:"fitCellContents"},colResizeDefault:"shift",columnDefs:this.columnDefs,getRowId:this.useCheckbox?e=>String(e.data.id):void 0,headerHeight:this.tableStyles?.header_style?.height,loading:!1,pinnedBottomRowData:this.footerRowData,rowData:this.rowData,rowHeight:this.tableStyles?.row_style?.height,rowSelection:this.useCheckbox?{checkboxLocation:"autoGroupColumn",enableClickSelection:!0,groupSelects:"self",mode:"multiRow"}:void 0,suppressColumnVirtualisation:!0,suppressGroupRowsSticky:!0,suppressMovableColumns:this.readonly,suppressNoRowsOverlay:!0,suppressRowHoverHighlight:!0,treeData:!0,treeDataChildrenField:"children",treeDataParentIdField:void 0,useCheckbox:this.useCheckbox,useFindShortcut:this.useFindShortcut,useGrouping:"tree",getRowClass:e
1=>this.getRowClass?.(e),isGroupOpenByDefault:e=>{let{data:t}=e.rowNode;return!t.isCollapsed},onColumnMoved:this.onColumnMoved,onNewColumnsLoaded:e=>e.api.autoSizeAllColumns({skipHeader:!1}),onColumnResized:e=>{if(e.finished&&"autosizeColumns"===e.source){let{api:t}=e,i=this.container.clientWidth??0,r=this.columns[0];if(i>0&&r.pinLeft){let e=i*p.MAX_AUTOGROUP_COLUMN_WIDTH_RATIO,r=t.getAllGridColumns()[0];r.getActualWidth()>e&&t.setColumnWidths([{key:r.getColId(),newWidth:e}])}let o=t.getAllGridColumns();o.reduce((e,t)=>e+t.getActualWidth(),0)<=i&&t.sizeColumnsToFit({columnLimits:o.map(e=>({key:e.getColId(),minWidth:e.getActualWidth()}))})}},onExpandOrCollapseAll:e=>{let t="collapseAll"===e.source;this.onExpandOrCollapseAll?.(t)},onGridReady:this.onGridReady,onRowClicked:this.onRowClicked,onRowDataUpdated:this.onRowDataUpdated,onRowDoubleClicked:this.onRowDoubleClicked,onRowGroupOpened:e=>{let{data:t,expanded:i}=e;this.onRowGroupOpened?.(t,!i)},onRowSelected:this.onRowSelected,onSelectionChanged:this.onSelectionChanged?e=>{let t=e.api.getSelectedNodes();this.onSelectionChanged({...e,selectedNodes:t})}:void 0,onSortChanged:e=>{if("api"===e.source)return;let t=e.api.getColumnState().map((e,t)=>{let{sort:i,sortIndex:r}=e;if(i&&null!=r)return{columnIndex:t,isAscending:"asc"===i,sortIndex:r+1}}).filter(e=>void 0!==e);this.onUpdateSorts(t,!0)}}}get autoGroupColumnDef(){let e=super.columnDefs[0],t=this.columns[0];return{...e,cellRendererParams:{...e?.cellRendererParams,suppressCount:!0},headerComponentParams:{...e?.headerComponentParams,useGrouping:t.useGrouping},pinned:!!t.pinLeft&&"left"}}buildBaseColDef(e){let t=this.sorts.find(t=>e.valuePath?t.valuePath===e.valuePath:(0,n.qw)(t.groupingFactorId)===e.field);return{...super.buildBaseColDef(e),cellStyle:t=>{let i=this.tableStyles?.cell_style,r=e.getCellStyle?.(t,e,0);return{...i,...r}},cellClassRules:e.cellClassRules,flex:null,...this.tableStyles?.header_style&&{headerStyle:this.tableStyles.header_style},headerComponentParams:{enableSorting:e.sortable,menuItems:e.menuItems,popoverContent:e.headerPopoverContent},hide:e.hide,sortingOrder:["desc","asc",null],suppressHeaderMenuButton:this.readonly,type:e.type,...e.pinLeft&&{pinned:"left",lockPinned:!0,lockPosition:!0},...e.pinRight&&{pinned:"right",lockPinned:!0,lockPosition:!0},...e.hugContent&&{minWidth:0,suppressHeaderMenuButton:!0,suppressSizeToFit:!0,resizable:!1,valueFormatter:()=>""},comparator:(e,i,r,o)=>{if(this.serverSideSorting)return 0;let a=r.data,s=o.data;return t?(0,n.b5)(a,s,t):0}}}get columnDefs(){return this.columns.slice(1).map(this.buildBaseColDef.bind(this))}}l(p,"MAX_AUTOGROUP_COLUMN_WIDTH_RATIO",.75);class h extends p{constructor(e){super(e),l(this,"startIndex",void 0),l(this,"endIndex",void 0),l(this,"isRepGen",void 0),l(this,"getRowStyle",e=>c({...this.tableStyles?.row_style,...e.data?.row_style})),this.startIndex=e.pageStartIndex,this.endIndex=e.pageEndIndex,this.isRepGen=!!e.isRepGen,this.readonly=!0}flattenRows(e){let t=[],i=(e,r)=>{e.forEach(e=>{t.push({...e,depth:r,children:void 0,hasChildren:!!e.children?.length,isFooter:!1}),i(e.children??[],r+1)})};return i(e,0),t}buildBaseColDef(e){let t=super.buildBaseColDef(e),i=t.headerComponentParams;return{...t,cellStyle:t=>{let i=this.tableStyles?.cell_style,r=t.data?.cell_style,o=e.getCellStyle?.(t,e,0);return{...i,...r,...o}},headerComponentParams:{...i,enableSorting:!1}}}get autoGroupColumnDef(){let e=super.autoGroupColumnDef,t=e.headerStyle;return{...e,headerStyle:{...t,...this.tableStyles?.header_style}}}create(){let e=super.create(),t=this.flattenRows(this.rowData),i=Math.min(this.endIndex,t.length),r=i===t.length,o=t.slice(this.startIndex,i);if(r&&this.footerRowData){let e=this.flattenRows(this.footerRowData).map(e=>({...e,isFooter:!0}));o=[...o,...e]}return{...e,rowData:o,pinnedBottomRowData:void 0,useFindShortcut:!1,getRowHeight:e=>e.data?.row_style?.height??this.tableStyles?.row_style?.height,getRowStyle:this.getRowStyle,treeData:!0,...this.isRepGen&&{autoSizeStrategy:void 0,onNewColumnsLoaded:e=>{e.api.sizeColumnsToFit()}}}}}var m=i(200035);const g=(0,i(510364).createTemplateFactory)({id:"84kavFZL",block:'[[[11,"apl-table-wrapper"],[24,0,"widgets-apl-table h-full w-full"],[16,"isEmptyStateRendered",[30,0,["computeIsEmptyStateRendered"]]],[16,"showFunctionalityBar",[30,1]],[16,"showColumnHeadersWithEmptyState",[30,1]],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],[[30,0,["updateGridOptions"]],[30,0,["columns"]],[30,0,["rowData"]],[30,0,["container"]],[30,0,["footerRowData"]],[30,0,["headerHeight"]],[30,0,["isPrint"]],[30,0,["readonly"]],[30,0,["rowHeight"]],[30,0,["serverSideSorting"]],[30,0,["sorts"]],[30,0,["tableStyles"]],[30,0,["useCheckbox"]],[30,0,["useFindShortcut"]],[30,0,["getRowClass"]],[30,0,["getRowStyle"]],[30,0,["onColumnMoved"]],[30,0,["onExpandOrCollapseAll"]],[30,0,["onGridReady"]],[30,0,["onRowClicked"]],[30,0,["onRowDataUpdated"]],[30,0,["onRowDoubleClicked"]],[30,0,["onRowGroupOpened"]],[30,0,["onRowSelected"]],[30,0,["onSelectionChanged"]],[30,0,["onUpdateSorts"]]],null],[12],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,"slot","apl-table-functionality-bar-left-content"],[14,0,"flex items-center gap-2"],[12],[1,"\\n "],[10,"apl-table-search-button"],[15,"isExpanded",false],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[10,"apl-table"],[14,"slot","table"],[15,"options",[30,0,["options"]]],[12],[13],[1,"\\n "],[10,"apl-empty-state"],[14,"slot","apl-table-empty-state"],[14,"header","No data available"],[14,"size","compact"],[12],[13],[1,"\\n "],[18,4,[[28,[37,4],null,[["visualizationDisplayName","triggerFind"],[[30,3],[30,0,["triggerFind"]]]]]]],[1,"\\n"],[13]],["@showFunctionalityBar","@searchable","@visualizationDisplayName","&functionalityBar"],false,["on-insert","on-update","if","yield","hash"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/apl-table.hbs",isStrictMode:!1});var f,y,b,v=i(618576);function w(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function _(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function A(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let T=(f=class extends m.A{constructor(...e){super(...e),_(this,"RESIZE_DEBOUNCE_INTERVAL",200),_(this,"APL_TABLE_INITIALIZED_EVENT","apltableinitialized"),_(this,"classNames",["h-full","w-full"]),w(this,"options",y,this),w(this,"tableApi",b,this)}didInsertEl(){this.element.addEventListener(this.APL_TABLE_INITIALIZED_EVENT,this.handleTableInitialized),(0,o.next)(()=>{this.updateGridOptions()}),this.registerInstance?.(this)}handleTableInitialized(e){this.tableApi=e.detail.grid}willDestroy(){this.element?.removeEventListener(this.APL_TABLE_INITIALIZED_EVENT,this.handleTableInitialized),this.registerInstance?.(void 0),super.willDestroy()}computeIsEmptyStateRendered(){return!this.rowData?.length&&!this.footerRowData?.length}triggerFind(){this.element?.querySelector("apl-table")?.context?.openFind?.()}get isEmptyStateRendered(){return this.computeIsEmptyStateRendered()}updateGridOptions(){var e;this.isEmptyStateRendered||(this.options=(e={columns:this.columns,rowData:this.rowData,container:this.element,footerRowData:this.footerRowData,headerHeight:this.headerHeight,isPrint:this.isPrint,isRepGen:this.isRepGen,readonly:this.readonly,rowHeight:this.rowHeight,serverSideSorting:this.serverSideSorting,sorts:this.sorts,tableStyles:this.tableStyles,useCheckbox:this.useCheckbox,useFindShortcut:this.useFindShortcut,getRowClass:this.getRowClass,getRowStyle:this.getRowStyle,onColumnMoved:this.onColumnMoved,onExpandOrCollapseAll:this.onExpandOrCollapseAll,onGridReady:this.onGridReady,onRowClicked:this.onRowClicked,onRowDataUpdated:this.onRowDataUpdated,onRowDoubleClicked:this.onRowDoubleClicked,onRowGroupOpened:this.onRowGroupOpened,onRowSelected:this.onRowSelected,onSelectionChanged:this.onSelectionChanged,onUpdateSorts:this.onUpdateSorts,pageStartIndex:this.pageStartIndex,pageEndIndex:this.pageEndIndex}).isPrint?new h(e).create():new p(e).create())}onElementResized(){(0,o.debounce)(this,this._performAutoSize,this.RESIZE_DEBOUNCE_INTERVAL)}_performAutoSize(){this.isRepGen||this.tableApi&&this.tableApi.autoSizeAllColumns({skipHeader:!1})}},y=A(f.prototype,"options",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=A(f.prototype,"tableApi",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A(f.prototype,"didInsertEl",[r.action],Object.getOwnPropertyDescriptor(f.prototype,"didInsertEl"),f.prototype),A(f.prototype,"handleTableInitialized",[r.action],Object.getOwnPropertyDescriptor(f.prototype,"handleTableInitialized"),f.prototype),A(f.prototype,"computeIsEmptyStateRendered",[r.action],Object.getOwnPropertyDescriptor(f.prototype,"computeIsEmptyStateRendered"),f.prototype),A(f.prototype,"triggerFind",[r.action],Object.getOwnPropertyDescriptor(f.prototype,"triggerFind"),f.prototype),A(f.prototype,"updateGridOptions",[r.action],Object.getOwnPropertyDescriptor(f.prototype,"updateGridOptions"),f.prototype),f);(0,v.setComponentTemplate)(g,T)},126342(e,t,i){i.r(t),i.d(t,{COLUMN_MIN_WIDTH_PX:()=>80,GROUPING_COLUMN_MIN_WIDTH_PX:()=>140,VS_TABLE_COLUMN_MIN_WIDTH_PX:()=>80,VS_TABLE_GROUPING_COLUMN_MIN_WIDTH_PX:()=>140}),i(366436)},78058(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(943910),o=i(640626);const a=i(545872).A.extend({canSelect:(0,o.readOnly)("rowValue.canBeSelected"),depthClass:(0,r.computed)("rowValue.isTotalRow",function(){return this.rowValue.isTotalRow?"!w-0":"!w-6"})})},937322(e,t,i){i.r(t),i.d(t,{default:()=>v});var r=i(765632),o=i(430335),a=i(943910),n=i(713788);const s=(0,i(510364).createTemplateFactory)({id:"lkEeVxfS",block:'[[[41,[30,1],[[[42,[28,[37,2],[[28,[37,2],[[30,0,["dropdownOptions"]]],null]],null],null,[[[41,[28,[37,3],[[30,2,["type"]],"divider"],null],[[[1," "],[10,"apl-line"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,2,["type"]],"submenu"],null],[[[1," "],[10,"apl-floating-sub-menu-item"],[14,"size","compact"],[15,"text",[30,2,["label"]]],[15,"maxMenuHeight",[30,2,["maxMenuHeight"]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,2,["items"]]],null]],null],null,[[[1," "],[11,"apl-floating-menu-item"],[24,"size","compact"],[16,"selected",[30,3,["selected"]]],[4,[38,4],["click",[30,3,["callback"]]],null],[12],[1,"\\n "],[1,[30,3,["label"]]],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[]],[[[1," "],[11,"apl-floating-menu-item"],[16,"selected",[30,2,["selected"]]],[4,[38,4],["click",[30,2,["callback"]]],null],[12],[1,"\\n "],[1,[30,2,["label"]]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[2]],null]],[]],[[[1," "],[10,"ul"],[15,0,[29,["dropdown-menu open multi-level portfolio-dropdown-menu table-column-popover\\n ",[52,[30,0,["column","isLastColumn"]],"submenu-open-left"]]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,0,["dropdownOptions"]]],null]],null],null,[[[41,[28,[37,3],[[30,4,["type"]],"divider"],null],[[[1," "],[10,"li"],[14,0,"divi
1der"],[12],[13],[1,"\\n"]],[]],[[[41,[28,[37,3],[[30,4,["type"]],"submenu"],null],[[[1," "],[10,"li"],[14,0,"dropdown-submenu"],[12],[1,"\\n "],[10,3],[14,"tabindex","-1"],[12],[1,"\\n "],[1,[30,4,["label"]]],[1,"\\n "],[10,1],[14,0,"pull-right"],[12],[1,"\\n "],[10,"i"],[15,0,[29,["fa ",[52,[30,0,["column","isLastColumn"]],"fa-caret-left","fa-caret-right"]]]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "],[10,"ul"],[15,0,[29,["dropdown-menu ",[30,4,["submenuWrapperClass"]]]]],[12],[1,"\\n"],[42,[28,[37,2],[[28,[37,2],[[30,4,["items"]]],null]],null],null,[[[1," "],[11,"li"],[16,0,[29,[[52,[30,5,["selected"]],"active"]]]],[24,"data-close",""],[4,[38,4],["click",[30,5,["callback"]]],null],[12],[1,"\\n "],[10,3],[14,"tabindex","-1"],[12],[1,"\\n "],[1,[30,5,["label"]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[5]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[11,"li"],[16,0,[29,[[52,[30,4,["selected"]],"active"]]]],[24,"data-close",""],[4,[38,4],["click",[30,4,["callback"]]],null],[12],[1,"\\n "],[10,3],[12],[1,[30,4,["label"]]],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[4]],null],[1," "],[13],[1,"\\n"]],[]]]],["@useAplFloatingMenu","option","subOption","option","subOption"],false,["if","each","-track-array","eq","on"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/generic-column-dropdown.hbs",isStrictMode:!1});var l,u,c,d,p,h,m,g,f,y=i(618576);function b(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let v=(l=(0,a.computed)("args.column.isSortAscending","args.columnMeta.{isSorted,isSortedAsc}"),u=(0,a.computed)("args.column.isSortDescending","args.columnMeta.{isSorted,isSortedAsc}"),c=(0,a.computed)("args.column.isMultiSortable"),d=(0,a.computed)("args.column.isRemovable"),p=(0,a.computed)("args.column.isPivotColumn"),h=(0,a.computed)("args.column.factor.valueFormatOptions.length"),m=(0,a.computed)("args.{column.factor.associatedInspections,canOpenInspectorFromHeader}"),g=(0,a.computed)("isSortAscending","isSortDescending","associatedInspections","args.columnShortHeldAssetDisplayOptions.[]","args.column.factor.{hasValueFormatOptions,labelFormatOptions.[],valueFormatOptions.[]}","args.column.{canAddBorderRight,groupingFactors,hasBorderRight,hasLabelFormatOptions,isSortable,labelFormatOptions,isGroupingColumn}"),b((f=class extends r.A{get isSortAscending(){return this.args.column.isSortAscending??(this.args.columnMeta?.isSorted&&this.args.columnMeta?.isSortedAsc)}get isSortDescending(){return this.args.column.isSortDescending??(this.args.columnMeta?.isSorted&&!this.args.columnMeta?.isSortedAsc)}get isMultiSortable(){return this.args.column.isMultiSortable}get isRemovable(){return this.args.column.isRemovable}get isPivotColumn(){return this.args.column.isPivotColumn}get shouldHaveLongDropdownOffset(){return(this.args.column.factor?.valueFormatOptions?.length??0)>8}get associatedInspection(){return(0,n.b0)(this.args.column,this.args.canOpenInspectorFromHeader)}get dropdownOptions(){let e={canSort:this.args.canSort,canSortWithinGroupings:this.args.canSortWithinGroupings,openSortGroupingsModal:this.args.openSortGroupingsModal,multiLevelSort:this.args.multiLevelSort,sortColumn:this.args.sortColumn,isSortResettable:this.args.isSortResettable,isSortAscending:this.isSortAscending,isSortDescending:this.isSortDescending,resetSortColumn:this.args.resetSortColumn,isEditable:this.args.isEditable,insertColumnRight:this.args.insertColumnRight,insertColumnLeft:this.args.insertColumnLeft,duplicateColumnLeft:this.args.duplicateColumnLeft,duplicateColumnRight:this.args.duplicateColumnRight,toggleBorderRight:this.args.toggleBorderRight,toggleShowRowNumber:this.args.toggleShowRowNumber,showRowNumber:this.args.showRowNumber,changeLabelFormat:this.args.changeLabelFormat,changeValueFormat:this.args.changeValueFormat,editColumn:this.args.edit
1Column,canFilterColumn:this.args.canFilterColumn,openColumnFilterModal:this.args.openColumnFilterModal,removeColumn:this.args.removeColumn,setGlobalCollapse:this.args.setGlobalCollapse,canExpandCollapseRows:this.args.canExpandCollapseRows,linkColumn:this.args.linkColumn,openInspector:this.args.openInspector,associatedInspection:this.associatedInspection,canHideColumn:this.args.canHideColumn,shouldHaveLongDropdownOffset:this.shouldHaveLongDropdownOffset,columnDynamicDisplayOptions:this.args.columnDynamicDisplayOptions,changeColumnVisibility:this.args.changeColumnVisibility,columnShortHeldAssetDisplayOptions:this.args.columnShortHeldAssetDisplayOptions,changeColumnShortHeldAssetDisplay:this.args.changeColumnShortHeldAssetDisplay,fitColumnsToData:this.args.fitColumnsToData};return(0,o.d0)(this.args.column,e)}}).prototype,"isSortAscending",[l],Object.getOwnPropertyDescriptor(f.prototype,"isSortAscending"),f.prototype),b(f.prototype,"isSortDescending",[u],Object.getOwnPropertyDescriptor(f.prototype,"isSortDescending"),f.prototype),b(f.prototype,"isMultiSortable",[c],Object.getOwnPropertyDescriptor(f.prototype,"isMultiSortable"),f.prototype),b(f.prototype,"isRemovable",[d],Object.getOwnPropertyDescriptor(f.prototype,"isRemovable"),f.prototype),b(f.prototype,"isPivotColumn",[p],Object.getOwnPropertyDescriptor(f.prototype,"isPivotColumn"),f.prototype),b(f.prototype,"shouldHaveLongDropdownOffset",[h],Object.getOwnPropertyDescriptor(f.prototype,"shouldHaveLongDropdownOffset"),f.prototype),b(f.prototype,"associatedInspection",[m],Object.getOwnPropertyDescriptor(f.prototype,"associatedInspection"),f.prototype),b(f.prototype,"dropdownOptions",[g],Object.getOwnPropertyDescriptor(f.prototype,"dropdownOptions"),f.prototype),f);(0,y.setComponentTemplate)(s,v)},969947(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"ZCq9SBXq",block:'[[[41,[30,1,["displayValue"]],[[[1," "],[8,[39,1],null,[["@href","@value"],[[30,1,["links","firstObject","href"]],[30,1,["displayValue"]]]],null],[1,"\\n"]],[]],[[[1," Â \\n"]],[]]]],["@cellValue"],false,["if","widget/visualization/shared/linkable-cell"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/generic-table-cell-content.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"generic-table-cell-content"))},710709(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(943910),o=i(640626),a=i(545872),n=i(713788);const s=a.A.extend({useWidgetEngine:!1,formatNegativeNumbers:!1,classNameBindings:["getClassNames"],getClassNames:(0,r.computed)("cellContent.{numericValue,value,cell_style.fontStyle,style.italic}","useWidgetEngine","formatNegativeNumbers",function(){let e=(0,n.B_)(this.cellContent,this.useWidgetEngine,this.formatNegativeNumbers),t=this.cellContent.cell_style,i=this.cellContent.style;return("italic"===t?.fontStyle||i?.italic)&&(e+=" italic"),e}),cellContent:(0,r.computed)("column.{getCellContent,id,valuePath}","row","useWidgetEngine",{get(){return(0,n.pG)(this.column,this.row,this.useWidgetEngine)},set:(e,t)=>t}),cellValue:(0,r.computed)("cellContent.displayValue","column.{currency,getCellValue,valuePath,valueType}","row","useWidgetEngine",function(){return(0,n.hI)(this.cellContent,this.column,this.row,this.useWidgetEngine)}),column:(0,o.readOnly)("columnValue"),row:(0,o.readOnly)("rowValue")})},605274(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(765632);const o=(0,i(510364).createTemplateFactory)({id:"ikGmuqm7",block:'[[[10,0],[14,0,"header-cell-content-container"],[12],[1,"\\n "],[10,0],[14,0,"header-cell-content"],[12],[1,"\\n"],[41,[28,[37,1],[[30,1,["tableController","enableVsTableStyling"]],[30,2]],null],[[[1," "],[8,[39,2],null,[["@canSort","@isLeftAligned","@isSortAscending","@isSortDescending","@hasColumnFilters","@sortIndex"],[[30,0,["canSort"]],[30,1,["isGroupingColumn"]],[30,0,["isSortAscending"]],[30,0,["isSortDescending"]],[30,1,["hasColumnFilters"]],[30,0,["sortIndex"]]]],[["default"],[[[[1,"\\n "],[18,8,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,1,["isGroupingColumn"]],[[[41,[28,[37,1],[[30,1,["tableController","enableVsTableStyling"]],[30,3]],null],[[[1," "],[10,0],[14,0,"hover:cursor-pointer hover:bg-vs-action-secondary-hover text-core-body-small min-w-4 flex items-center justify-center h-4 my-1 mr-2 font-normal rounded-sm"],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[52,[30,4],"chevron-right","chevron-down"]],[15,"onclick",[28,[37,4],[[30,5],[28,[37,5],[[30,4]],null]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,1],[14,0,"et-toggle-collapse"],[12],[1,"\\n "],[8,[39,6],null,[["@checked","@onChange","@ariaLabel"],[[30,4],[3
10,5],"Collapse row"]],null],[1,"\\n "],[10,1],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]],null],[1," "],[10,1],[14,0,"column-name"],[15,"title",[52,[51,[30,1,["tableController","enableVsTableStyling"]]],[30,1,["headerCellName"]]]],[14,"data-heap-redact-attributes","title"],[12],[1,"\\n "],[1,[30,1,["headerCellName"]]],[1,"\\n"],[41,[28,[37,1],[[28,[37,5],[[30,1,["tableController","enableVsTableStyling"]]],null],[30,1,["hasColumnFilters"]]],null],[[[1," "],[10,"i"],[14,0,"fas fa-filter column-filter-icon"],[12],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[51,[30,6]],[[[1," "],[8,[39,8],null,[["@columnMeta"],[[30,7]]],null],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[51,[30,1,["tableController","enableVsTableStyling"]]],[[[1," "],[18,8,null],[1,"\\n"]],[]],null],[13]],["@column","@isInASortingMode","@canExpandCollapseRows","@isCollapsed","@setGlobalCollapse","@hideSortIndicator","@columnMeta","&default"],false,["if","and","widget/visualization/table/vs-header-icons","yield","fn","not","widget/visualization/table/simple-checkbox","unless","ember-th/sort-indicator"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/generic-table-header-cell-content.hbs",isStrictMode:!1});var a=i(618576);class n extends r.A{get canSort(){return this.args.canSort&&this.args.column.isSortable&&!this.args.hideSortIndicator}get isSortAscending(){return this.args.columnMeta.isSorted&&this.args.columnMeta.isSortedAsc}get isSortDescending(){return this.args.columnMeta.isSorted&&!this.args.columnMeta.isSortedAsc}get sortIndex(){return this.args.columnMeta.sortIndex}}(0,a.setComponentTemplate)(o,n)},56082(e,t,i){i.r(t),i.d(t,{default:()=>y});var r=i(765632),o=i(279564),a=i(161015),n=i(943910),s=i(989272),l=i(713788);const u=(0,i(510364).createTemplateFactory)({id:"9+8s6eHf",block:'[[[8,[39,0],[[4,[38,3],[[30,0,["didInsertEl"]]],null]],[["@api","@class","@id","@onContextMenu"],[[30,1],[29,[[30,1,["columnValue","classNames"]]," ",[52,[30,1,["columnMeta","isResizing"]],"is-resizing"]]],[30,0,["emberThId"]],[52,[51,[30,2]],[30,0,["onContextMenu"]]]]],[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@triggerText","@factorDisplayName","@factorTemplate","@popoverPlacement","@column","@disablePopover","@triggerDisplay","@canEditFactor","@enableFactorDescriptionPopovers","@shouldShowPrecomputeFooter","@formattedLastPrecomputeRefresh","@formattedNextPrecomputeRefresh"],[[30,3,["headerCellName"]],[30,0,["factorDisplayName"]],[30,0,["factorTemplate"]],[30,0,["popoverPlacement"]],[30,3],[28,[37,5],[[30,3,["isGroupingColumn"]],[30,5]],null],[52,[30,0,["column","tableController","enableVsTableStyling"]],""],[30,6],[30,7],[30,8],[30,9],[30,10]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@isInASortingMode","@column","@columnMeta","@isCollapsed","@canSort","@hideSortIndicator","@setGlobalCollapse","@readonly","@canExpandCollapseRows"],[[30,11],[30,3],[30,4],[30,12],[30,13],[30,14],[30,15],[30,2],[28,[37,7],[[30,16],[30,3,["isGroupingColumn"]]],null]]],[["default"],[[[[1,"\\n"],[41,[51,[28,[37,5],[[30,3,["isPivotParentColumn"]],[30,2]],null]],[[[1," "],[10,0],[14,0,"column-settings"],[12],[1,"\\n "],[11,"apl-floating-menu"],[16,"placement",[52,[30,3,["isGroupingColumn"]],"bottom-end","bottom-start"]],[16,"openCallback",[30,0,["headerDropdownOpenedAfterRender"]]],[16,"closeCallback",[30,0,["headerDropdownClosedAfterRender"]]],[24,"size","compact"],[4,[38,3],[[30,0,["didInsertDropdown"]]],null],[12],[1,"\\n "],[10,"button"],[14,"slot","trigger"],[15,"aria-label",[28,[37,8],[[28,[37,9],[[30,3,["headerCellName"]]," column settings"],null]],null]],[15,0,[29,["popover-link btn btn-link column-settings-btn\\n ",[52,[30,3,["hasOpenHeaderDropdown"]],"dropdown-open"]]]],[12],[1,"\\n "],[10,"apl-icon"],[14,0,"align-middle"],[15,"icon",[29,[[52,[30,0,["column","tableController","enableVsTableStyling"]],"ellipsis-vertical","gear"]]]],[12],[13],[1,"\\n "],[13],[1,"\\n "],[8,[39,10],null,[["@useAplFloatingMenu","@canSort","@canSortWithinGroupings","@column","@columnMeta","@isEditable","@isSortResettable","@openSortGroupingsModal","@multiLevelSort","@sortColumn","@resetSortColumn","@duplicateColumnLeft","@duplicateColumnRight","@insertColumnLeft","@insertColumnRight","@toggleBorderRight","@changeLabelFormat","@changeValueFormat","@columnShortHeldAssetDisplayOptions","@changeColumnShortHeldAssetDisplay","@editColumn","@removeColumn","@canFilterColumn","@openColumnFilterModal","@canExpandCollapseRows","@
1setGlobalCollapse","@linkColumn","@canOpenInspectorFromHeader","@openInspector"],[true,[30,13],[30,17],[30,3],[30,4],[30,18],[28,[37,7],[[30,13],[30,3,["isSortable"]]],null],[30,19],[30,20],[30,21],[30,22],[30,23],[30,24],[30,25],[30,26],[30,27],[30,28],[30,29],[30,0,["columnShortHeldAssetDisplayOptions"]],[30,30],[52,[30,31],[30,0,["editColumnWithTarget"]]],[30,32],[28,[37,7],[[28,[37,11],[[30,3,["isPivotColumn"]]],null],[28,[37,11],[[30,3,["isGroupingColumn"]]],null]],null],[30,33],[28,[37,7],[[30,16],[30,3,["isGroupingColumn"]]],null],[30,15],[30,34],[30,35],[30,36]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],[]]]]],[1,"\\n "]],[]]]]],[1,"\\n "],[8,[39,12],null,[["@columnMeta"],[[30,4]]],null],[1,"\\n"]],[3,4]]]]]],["@rowApi","@readonly","column","columnMeta","@hasOpenColumnHeaderDropdown","@canEditFactor","@enableFactorDescriptionPopovers","@shouldShowPrecomputeFooter","@formattedLastPrecomputeRefresh","@formattedNextPrecomputeRefresh","@isInASortingMode","@isCollapsed","@canSort","@hideSortIndicator","@setGlobalCollapse","@hasGrouping","@canSortWithinGroupings","@isEditable","@openSortGroupingsModal","@multiLevelSort","@sortColumn","@resetSortColumn","@duplicateColumnLeft","@duplicateColumnRight","@insertColumnLeft","@insertColumnRight","@toggleBorderRight","@changeLabelFormat","@changeValueFormat","@changeColumnShortHeldAssetDisplay","@editColumn","@removeColumn","@openColumnFilterModal","@linkColumn","@canOpenInspectorFromHeader","@openInspector"],false,["ember-th","if","unless","on-insert","widget/visualization/shared/factor-description-popover-wrapper","or","widget/visualization/table/generic-table-header-cell-content","and","lowercase-string","concat","widget/visualization/table/generic-column-dropdown","not","ember-th/resize-handle"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/generic-table-header-cell.hbs",isStrictMode:!1});var c,d,p,h=i(618576);function m(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function g(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let y=(c=class extends r.A{constructor(e,t){super(e,t),m(this,"popperTarget",d,this),m(this,"dropdown",p,this),g(this,"emberThId",void 0),g(this,"popoverPlacement","bottom-start"),this.emberThId=`table-header-cell-ember-th-${(0,a.guidFor)(this)}`}didInsertEl(){(0,s.schedule)("afterRender",()=>{this.popperTarget=document.getElementById(this.emberThId)})}get column(){return this.args.rowApi.columnValue}get isSortable(){return this.column.isSortable}get columnIndex(){return this.column.index}get factorDisplayName(){return this.column.factor?.displayName}get factorTemplate(){return this.column.factor?.template}get columnShortHeldAssetDisplayOptions(){return(0,l.ML)(this.column.factor,this.args.columnShortHeldDisplayOptions)}didInsertDropdown(e){this.dropdown=e}editColumnWithTarget(e){this.popperTarget&&this.args.editColumn&&this.args.editColumn(e,this.popperTarget)}onContextMenu(){this.dropdown?.openMenu()}async headerDropdownOpenedAfterRender(){let e=document.getElementById(this.emberThId),t=e?.querySelector("apl-tooltip");await(t?.hideTooltip()),(0,s.schedule)("afterRender",()=>{this.args.headerDropdownOpened&&this.args.headerDropdownOpened(this.columnIndex)})}headerDropdownClosedAfterRender(){(0,s.schedule)("afterRender",()=>{this.args.headerDropdownClosed&&this.args.headerDropdownClosed(this.columnIndex)})}},d=f(c.prototype,"popperTarget",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=f(c.prototype,"dropdown",[o.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f(c.prototype,"didInsertEl",[n.action],Object.getOwnPropertyDescriptor(c.prototype,"didInsertEl"),c.prototype),f(c.prototype,"didInsertDropdown",[n.action],Object.getOwnPropertyDescriptor(c.prototype,"didInsertDropdown"),c.prototype),f(c.prototype,"editColumnWithTarget",[n.action],Object.getOwnPropertyDescriptor(c.prototype,"editColumnWithTarget"),c.prototype),f(c.prototype,"onContextMenu",[n.action],Object.getOwnPropertyDescriptor(c.prototype,"onContextMenu"),c.prototype),f(c.prototype,"headerDropdownOpenedAfterRender",[n.action],Object.getOwnPropertyDescriptor(c.prototype,"headerDropdownOpenedAfterRender"),c.prototype),f(c.prototype,"headerDropdownClosedAfterRender",[n.action],Object.getOwnPropertyDescriptor(c.prototype,"headerDropdownClosedAfterRender"),c.prototype),c);(0,h.setComponentTemplate)(u,y)},745545(e,t,i){i.r(t),i.d(t,{default:()=>v});var r=i(989272),o=i(200035),a=i(496314),n=i(943910),s=i.n(n),l=i(305563),u=i(979295),c=i(640626),d=i(416432),p=(i(366436),i(430335)),h=i(713788),m=i(298367);const g=(0,i(510364).createTemplateFactory)({id:"5NhJZU3r",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@columns","@footerRowData","@getRowClass","@readonly","@rowData","@serverSideSorting","@sorts","@tableStyles","@onExpandOrCollapseAll","@onRowGroupOpened","@onUpdateSorts","@useFindShortcut","@isPrint","@isRepGen","@pageStartIndex","@pageEndIndex","@registerInstance","@searchable","@visualizationDisplayName","@showFunctionalityBar"],[[30,0,["agGridParams","columns"]],[30,0,["agGridParams","footerRowData"]],[30,0,["agGridParams","getRowClass"]],[30,0,["agGridParams","readonly"]],[30,0,["agGridParams","rowData"]],[30,0,["agGridParams","serverSideSorting"]],[30,0,["agGridParams","sorts"]],[30,0,["agGridParams","tableStyles"]],[30,0,["agGridParams","onExpandOrCollapseAll"]],[30,0,["agGridParams","onRowGroupOpened"]],[30,0,["agGridParams","onUpdateSorts"]],[30,2],[30,0,["isPrint"]],[30,3],[30,4],[3
10,5],[30,6],[30,0,["agGridParams","searchable"]],[30,7],[30,0,["agGridParams","showFunctionalityBar"]]]],[["functionalityBar"],[[[[1,"\\n "],[18,23,[[30,8]]],[1,"\\n "]],[8]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@api","@columns","@containerWidthAdjustment","@fillMode","@resizeMode","@widthConstraint","@scrollIndicators","@sorts","@enableReorder","@onReorder","@onUpdateSorts","@sortFunction","@onResize"],[[30,9],[30,0,["visibleColumns"]],[30,0,["containerWidthAdjustment"]],"equal-column","standard",[30,0,["widthConstraint"]],[30,0,["scrollIndicators"]],[30,0,["sorts"]],[30,0,["canReorderColumns"]],[30,10,["reorderColumns"]],[52,[30,0,["canSort"]],[30,0,["onUpdateSorts"]]],null,[52,[30,0,["canSaveColumnWidths"]],[30,0,["updateSavedWidth"]]]]],[["default"],[[[[1,"\\n "],[8,[39,5],null,[["@api","@class"],[[30,11],[52,[30,0,["hasGrouping"]],"has-grouping"]]],[["default"],[[[[1,"\\n "],[8,[39,6],null,[["@readonly","@canSort","@isEditable","@isCollapsed","@toggleBorderRight","@sortColumn","@setGlobalCollapse","@changeLabelFormat","@changeValueFormat","@enableFactorDescriptionPopovers","@canEditFactor","@editColumn","@removeColumn","@insertColumnLeft","@insertColumnRight","@duplicateColumnLeft","@duplicateColumnRight","@resetSortColumn","@openColumnFilterModal","@canSortWithinGroupings","@openSortGroupingsModal","@rowApi","@hasGrouping","@isInASortingMode","@linkColumn","@shouldShowPrecomputeFooter","@formattedLastPrecomputeRefresh","@formattedNextPrecomputeRefresh"],[[30,13],[30,0,["canSort"]],true,[30,0,["isCollapsed"]],[30,0,["toggleBorderRight"]],[30,0,["singleSort"]],[30,0,["setGlobalCollapse"]],[30,10,["changeLabelFormat"]],[30,10,["changeValueFormat"]],[30,14],[30,15],[52,[30,10,["editColumn"]],[30,0,["editColumn"]]],[52,[30,10,["removeColumn"]],[30,0,["removeColumn"]]],[52,[30,10,["insertColumnLeft"]],[30,0,["insertColumnLeft"]]],[52,[30,10,["insertColumnRight"]],[30,0,["insertColumnRight"]]],[30,10,["duplicateColumnLeft"]],[30,10,["duplicateColumnRight"]],[30,10,["resetColumnSorts"]],[30,10,["filterColumn"]],[30,10,["sortGroupings"]],[30,0,["sortGroupings"]],[30,12],[30,0,["hasGrouping"]],[30,0,["isInASortingMode"]],[52,[30,16],[30,0,["linkColumn"]]],[30,0,["shouldShowPrecomputeFooter"]],[30,0,["formattedLastPrecomputeRefresh"]],[30,0,["formattedNextPrecomputeRefresh"]]]],null],[1,"\\n "]],[12]]]]],[1,"\\n "]],[11]]]]],[1,"\\n "],[8,[39,7],null,[["@api","@rows"],[[30,9],[30,0,["rowData","bodyRows"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,8],[[30,17,["rowValue","type"]],"divider"],null],[[[1," "],[10,"tr"],[15,0,[29,[[28,[30,0,["getRowClass"]],[[30,17,["rowValue"]]],null],"\\n et-tr\\n ",[52,[30,17,["isEven"]],"is-even","is-odd"],"\\n ember-view"]]],[12],[1,"\\n "],[10,"td"],[15,"colspan",[30,0,["visibleColumns","length"]]],[14,0,"h-4"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[8,[39,5],null,[["@api","@class"],[[30,17],[29,[[28,[30,0,["getRowClass"]],[[30,17,["rowValue"]]],null]," ",[30,17,["rowValue","classNames"]]," ",[52,[30,17,["rowValue","children"]],"is-grouping-row"]," ",[52,[30,0,["hasGrouping"]],"has-grouping"]]]]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@api","@class","@formatNegativeNumbers","@onCollapse","@useWidgetEngine"],[[30,18],[29,[[30,18,["columnValue","classNames"]]," ",[52,[30,18,["columnMeta","isResizing"]],"is-resizing"]]],[30,0,["formatNegativeNumbers"]],[30,0,["onRowCollapse"]],[30,0,["useWidgetEngine"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,10],[[30,0,["enableVsTableStyling"]],[28,[37,10],[[30,17,["rowValue","children"]],[30,18,["columnValue","isGroupingColumn"]]],null]],null],[[[1," "],[10,0],[14,0,"text-core-body-small flex h-4 min-w-4 items-center justify-center rounded-sm hover:cursor-pointer hover:bg-vs-action-secondary-hover"],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[52,[30,17,["rowValue","isCollapsed"]],"chevron-right","chevron-down"]],[15,"onclick",[28,[37,11],[[30,0,["onRowCollapse"]],[30,17]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,0,["useWidgetEngine"]],[[[1," "],[8,[39,12],null,[["@cellValue","@column","@row"],[[30,19],[3
10,18,["columnValue"]],[30,17,["rowValue"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["isNavigatorProjection"]],[[[1," "],[8,[39,13],null,[["@cellValue","@column","@row"],[[30,19],[30,18,["columnValue"]],[30,17,["rowValue"]]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"overflow-hidden text-ellipsis"],[12],[1,"\\n "],[41,[30,19],[[[1,[30,19]]],[]],[[[1,"Â "]],[]]],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]],[1," "]],[19]]]]],[1,"\\n "]],[18]]]]],[1,"\\n"]],[]]],[1," "]],[17]]]]],[1,"\\n"],[41,[30,0,["hasFooter"]],[[[1," "],[8,[39,14],null,[["@api","@rows"],[[30,9],[30,0,["rowData","footerRows"]]]],[["default"],[[[[1,"\\n "],[8,[39,5],null,[["@class","@api"],[[30,20,["rowValue","classNames"]],[30,20]]],[["default"],[[[[1,"\\n "],[8,[39,9],null,[["@api","@class","@formatNegativeNumbers","@onCollapse","@useWidgetEngine"],[[30,21],[29,[[30,21,["columnValue","classNames"]]," ",[52,[30,21,["columnMeta","isResizing"]],"is-resizing"]]],[30,0,["formatNegativeNumbers"]],[30,0,["onRowCollapse"]],[30,0,["useWidgetEngine"]]]],[["default"],[[[[1,"\\n"],[41,[30,0,["useWidgetEngine"]],[[[1," "],[8,[39,12],null,[["@cellValue","@column","@row"],[[30,22],[30,21,["columnValue"]],[30,20,["rowValue"]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[30,22]],[1,"\\n"]],[]]],[1," "]],[22]]]]],[1,"\\n "]],[21]]]]],[1,"\\n "]],[20]]]]],[1,"\\n"]],[]],null],[1," "]],[9]]]]],[1,"\\n"]],[]]]],["@useAgGridTable","@useFindShortcut","@isRepGen","@pageStartIndex","@pageEndIndex","@registerInstance","@visualizationDisplayName","functionalityBar","t","@visualizationEditor","h","r","@readonly","@enableFactorDescriptionPopovers","@canEditFactor","@enableColumnLinking","b","r","cellValue","b","r","cellValue","&functionalityBar"],false,["if","widget/visualization/table/apl-table","yield","ember-table","ember-thead","ember-tr","widget/visualization/table/generic-table-header-cell","ember-tbody","eq","widget/visualization/table/generic-table-cell","and","fn","widget/visualization/table/generic-table-cell-content","widget/visualization/table/projection-table-cell-content","ember-tfoot"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/generic.hbs",isStrictMode:!1});var f=i(618576);const y=s().extend({tableController:null,index:null,headerCellName:null,isLastColumn:!1,isFirstColumn:!1,enableVsTableStyling:!1,hasOpenHeaderDropdown:!1,isValueColumn:(0,c.not)("isFirstColumn"),isRightAligned:(0,c.not)("isFirstColumn"),shouldShowBorderRight:(0,n.computed)("enableVsTableStyling","hasBorderRight","useTableRightBorders","isLastColumn",function(){return(this.enableVsTableStyling&&this.useTableRightBorders||this.hasBorderRight)&&!this.isLastColumn}),classNames:(0,n.computed)("isRightAligned","shouldShowBorderRight",function(){let e=this.isRightAligned?"text-align-right":"text-align-left";return this.shouldShowBorderRight&&(e+=" ember-table-cell-border-right"),e.trim()}),isFixed:(0,n.computed)("isGroupingColumn",function(){return this.isGroupingColumn?"left":void 0}),width:(0,c.oneWay)("_defaultWidth"),_defaultWidth:(0,n.computed)("isGroupingColumn",function(){return this.isGroupingColumn?250:void 0}),minWidth:(0,n.computed)("enableVsTableStyling","isGroupingColumn",function(){return this.enableVsTableStyling,this.isGroupingColumn?140:80})}),b=y.extend({setting:null,valuePath:null,width:(0,c.oneWay)("savedWidth"),savedWidth:(0,c.alias)("setting.width"),hasBorderRight:(0,c.alias)("setting.hasBorderRight"),shouldShowBorderRight:(0,n.computed)("hasBorderRight","isLastColumn",function(){return this.hasBorderRight&&!this.isLastColumn}),isGroupingColumn:!1,classNames:(0,n.computed)("isRightAligned","shouldShowBorderRight","enableVsTableStyling",function(){let e=this.isRightAligned?"text-align-right":"";return this.enableVsTableStyling&&this.shouldShowBorderRight&&(e+=" ember-table-cell-border-right"),e.trim()}),isNumeric:(0,c.equal)("setting.column.type","continuous"),isDate:(0,c.equal)("setting.column.type","date"),isRightAligned:(0,n.computed)("isNumeric","setting.column.id",function(){return this.isNumeric||"units_changed"===this.setting.column.id}),getCellContent(e){let t=this.valuePath.replace(".value","");return e.get(t)},getCellValue(e){let t=this.valuePath.replace("value","displayName");return e.get(t)},contentPath:(0,c.alias)("valuePath")}),v=(0,f.setComponentTemplate)(g,o.A.extend({widthConstraint:"gte-container",readonly:!0,forceRerenderOnResize:!1,editable:(0,c.not)("readonly"),useWidgetEngine:(0,c.readOnly)("queryRequest.useWidgetEngine"),query:(0,c.readOnly)("queryRequest.query"),data:(0,c.readOnly)("queryRequest.data"),tableStyles:(0,c.readOnly)("queryRequest.result.tableStyles"),sorts:(0,n.computed)("useWidgetEngine","columnsWithoutSorts","queryRequest.sorts",function(){return this.useWidgetEngine?this.columnsWithoutSorts.filter(e=>e.sort).sort((e,t)=>
1e.sortIndex-t.sortIndex).map(e=>({valuePath:e.valuePath,isAscending:"asc"===e.sort})):this.queryRequest.sorts}),showTotalRow:(0,c.readOnly)("queryRequest.showTotalRow"),formatNegativeNumbers:(0,c.readOnly)("queryRequest.formatNegativeNumbers"),dataSource:null,isTransactions:(0,c.equal)("dataSource",d.Y.ADDEPAR_TRANSACTION),isNavigatorProjection:(0,c.equal)("dataSource",d.Y.NAVIGATOR_PROJECTION),isPortfolio:(0,c.equal)("dataSource",d.Y.ADDEPAR_PORTFOLIO),isInASortingMode:(0,c.or)("editable","sortInReadonly"),canSort:(0,c.and)("queryRequest.updateSorts","isInASortingMode"),canSaveColumnWidths:(0,c.and)("isTransactions","editable"),canReorderColumns:(0,c.and)("editable","visualizationEditor.canReorderColumns"),canSortWithinGroupings:(0,c.readOnly)("visualizationEditor.sortGroupings"),disableCustomSortOrdering:!1,canSortWithCustomOrdering:(0,c.not)("disableCustomSortOrdering"),init(...e){this._super(...e),this.queryRequest.serializeCollapseState?.(this.rowData.bodyRows),this.set("isCollapsed",e.isCollapsedByDefault),this.registerInstance?.(this),this._forceRerender=()=>{this.isDestroying||(this.isTransactions?this.queryRequest.notifyPropertyChange("sorts"):this.notifyPropertyChange("rowData"))}},didReceiveAttrs(){this._super(),void 0!==this._prevCollapseState&&this._prevCollapseState!==this.isCollapsedByDefault&&this.setGlobalCollapse(this.isCollapsedByDefault),this.set("_prevCollapseState",this.isCollapsedByDefault)},onElementResized(){if(this.forceRerenderOnResize&&this.enableDynamicHeight){let e=(0,u.getOwner)(this).resolveRegistration("config:environment");(0,r.debounce)(this,this._forceRerender,e.TIMEOUTS.SHORT)}},onHeightChanged:null,didInsertElement(){if(this._super(...arguments),this.onHeightChanged&&this.enableDynamicHeight){this._overflowObserver=new ResizeObserver(()=>this.onHeightChanged());let e=this.useAgGridTable?this.element.querySelector(".widgets-apl-table"):this.element.querySelector(".ember-table-overflow");this._overflowObserver.observe(e)}},willDestroyElement(){this._overflowObserver?.disconnect(),this._super(...arguments)},classNameBindings:["isTransactions:transaction-table:portfolio-table"],containerWidthAdjustment:(0,n.computed)("widthConstraint",function(){return"eq-container"===this.widthConstraint?-12:-10}),hasFooter:(0,c.notEmpty)("rowData.footerRows"),shouldShowPrecomputeFooter:(0,c.and)("visualizationEditor.featureFlags.flags.boolean.precompute_calculation_toggle","query.enablePrecomputeCalculation"),formattedLastPrecomputeRefresh:(0,c.readOnly)("queryRequest.formattedLastPrecomputeRefresh"),columnGroupings:(0,n.computed)("queryRequest.columns",function(){return(this.queryRequest.columns??[]).filter(e=>e.grouping).map(e=>e.grouping)}),visibleColumnGroupings:(0,n.computed)("queryRequest.columns",function(){return(this.queryRequest.columns??[]).filter(e=>e.grouping&&!e.hidden).map(e=>e.grouping)}),columnsWithoutSorts:(0,n.computed)("columnGroupings","enableVsTableStyling","hasGrouping","isPortfolio","isTransactions","queryRequest.columns.[]","useTableRightBorders","useWidgetEngine","visibleColumnGroupings","visualizationEditor",function(){let e=this.queryRequest.columns;if((0,a.isEmpty)(e))return[];let t=this.isTransactions&&!this.useWidgetEngine?b:y,{columnGroupings:i,visibleColumnGroupings:r}=this,o=Array.from(new Set(i)),n=Array.from(new Set(r)),l=n.length===r.length,u=o.map((e,t)=>{let i=t===o.length-1;return s().create({headerCellName:e,isPivotParentColumn:!0,isTotalColumn:i,classNames:"text-align-right",hasSubColumnWithOpenHeader:!1,hidden:!n.includes(e),subcolumns:[]})}),c=[];for(let i=0;i<e.length;i++){let r=e[i],o=i===e.length-1,a=0===i,n=!!r.grouping,s=n?u.find(e=>e.headerCellName===r.grouping):void 0,d=!n||s.isTotalColumn,p=(this.isPortfolio||this.hasGrouping)&&a,h=!(p||n&&l),m=t.create({tableController:this,index:i,valuePath:r.contentPath??`${r.id}.value`,headerCellName:r.displayName??r.name,enableVsTableStyling:this.enableVsTableStyling,useTableRightBorders:this.useTableRightBorders,isLastColumn:o,isFirstColumn:a,isPivotColumn:n,isSortable:d,isRemovable:h,isGroupingColumn:p,canAddBorderRight:!o,hasColumnFilters:r.isFiltered,...r});m.labelFormatOptions=this.visualizationEditor?.getLabelFormatOptionsForColumn(m),m.valueFormatOptions=this.visualizationEditor?.getValueFormatOptionsForColumn(m),m.factor=this.visualizationEditor?.getFactorForColumn(m),m.hasLabelFormatOptions=!!m.labelFormatOptions?.length,s?(s.hidden&&=m.hidden,s.subcolumns.push(m)):c.push(m)}return l?c.push(...u.flatMap(e=>e.subcolumns.map(i=>t.create({...i,headerCellName:e.headerCellName,isTotalColumn:e.isTotalColumn})))):c.push(...u),c}),columns:(0,n.computed)("columnsWithoutSorts","sorts",function(){return this.columnsWithoutSorts.map(e=>{let t=(this.sorts??[]).find(t=>t.valuePath===e.valuePath);return e.setProperties({isSortAscending:t&&t.isAscending,isSortDescending:t&&!t.isAsce
1nding}),e})}),visibleColumns:(0,n.computed)("columns",function(){return this.columns.filter(e=>!e.hidden).map(e=>e.subcolumns?s().create({...e,subcolumns:e.subcolumns.filter(e=>!e.hidden)}):e)}),flattenedColumns:(0,n.computed)("columns",function(){return this.columns.flatMap(e=>e.subcolumns??e)}),_uncollapsedRowData:(0,n.computed)("data.[]","showTotalRow","useWidgetEngine","isTransactions",function(){if(this.useWidgetEngine)return this.data??{bodyRows:[],footerRows:[]};if(this.isTransactions)return{bodyRows:this.data??[],footerRows:[]};let e=(0,l.gy)(this.data);if((0,a.isEmpty)(e))return{bodyRows:[],footerRows:[]};let t=(0,u.getOwner)(this).factoryFor("controller:portfolioTableRow"),i=e.map((e,i)=>t.create({parentController:this,content:s().create({...e,groupDisplayName:e.name,groupValue:e.name}),isRoot:0===i})),r=[],o=(0,l.q7)(i)[0],n=o.get("children");return o.set("children",[]),this.showTotalRow&&(r=[o]),r.forEach(e=>e.set("isFooter",!0)),{bodyRows:n,footerRows:r}}),hasGrouping:(0,n.computed)("rowData.bodyRows",function(){return this.rowData.bodyRows.some(e=>e.children?.length)}),rowData:(0,n.computed)("_uncollapsedRowData","isCollapsed",function(){let{bodyRows:e,footerRows:t}=this._uncollapsedRowData,i=this.queryRequest.collapseTree?.isCollapsed,r=(0,a.isEmpty)(i)?this.isCollapsed:i;return this._setCollapseState(e,r),this._setCollapseState(t,r),this.queryRequest.deserializeCollapseState?.(e),{bodyRows:e,footerRows:t}}),_buildAgGridChildColumn(e){let{valuePath:t}=e,i=this.sorts?.find(e=>e.valuePath===t),r=i?i.isAscending?"asc":"desc":void 0;e.set("isSortAscending","asc"===r);let o=(0,p.d0)(e,{canExpandCollapseRows:this.hasGrouping&&e.isGroupingColumn,canFilterColumn:!e.isPivotColumn&&!e.isGroupingColumn,canSort:this.canSort,canSortWithinGroupings:this.canSort&&this.canSortWithinGroupings,isEditable:!0,isSortAscending:"asc"===r,isSortDescending:"desc"===r,isSortResettable:this.canSort&&e.isSortable,useAplTable:!0,changeLabelFormat:this.visualizationEditor?.changeLabelFormat,changeValueFormat:this.visualizationEditor?.changeValueFormat,duplicateColumnLeft:this.visualizationEditor?.duplicateColumnLeft,duplicateColumnRight:this.visualizationEditor?.duplicateColumnRight,editColumn:this.visualizationEditor?.editColumn?this.editColumn:void 0,insertColumnLeft:this.visualizationEditor?.insertColumnLeft?this.insertColumnLeft:void 0,insertColumnRight:this.visualizationEditor?.insertColumnRight?this.insertColumnRight:void 0,openColumnFilterModal:this.visualizationEditor?.filterColumn,openSortGroupingsModal:this.canSort&&this.sortGroupings,removeColumn:this.visualizationEditor?.removeColumn?this.removeColumn:void 0,resetSortColumn:this.canSort&&this.visualizationEditor?.resetColumnSorts,setGlobalCollapse:this.setGlobalCollapse,sortColumn:this.singleSort,toggleBorderRight:this.queryRequest.toggleBorderRight?this.toggleBorderRight:void 0}),a=e.factor,n=this.enableFactorDescriptionPopovers&&a?(0,m.JV)(a,this.canEditFactor,{shouldShowPrecomputeFooter:this.shouldShowPrecomputeFooter,formattedLastPrecomputeRefresh:this.formattedLastPrecomputeRefresh}):void 0,s=this.useWidgetEngine,l=(0,p.Pr)(e,{formatNegativeNumbers:this.formatNegativeNumbers,isGeneric:!0,useWidgetEngine:s});return{cellRendererParams:s?(0,p.uI)(e.id,this.isPrint):void 0,getQuickFilterText:e.searchable?void 0:()=>"",cellClassRules:l,field:e.headerCellName,headerName:e.headerCellName,hugContent:e.hugContent,headerPopoverContent:n,menuItems:o,minWidth:e.minWidth,pinLeft:e.isGroupingColumn||"left"===e.pinned,pinRight:"right"===e.pinned,sort:r,sortIndex:e.s
1ortIndex??null,sortable:e.isSortable,type:(0,p.hc)(e,this.canSort),useGrouping:e.isGroupingColumn&&this.hasGrouping,valuePath:t,getCellValue:t=>{let i=(0,h.pG)(e,t,s);return s?i.displayValue:(0,h.hI)(i,e,t)},getCellStyle:s?t=>(0,h.pG)(e,t.data,s).cell_style:void 0}},agGridParams:(0,n.computed)("canEditFactor","canSort","canSortWithinGroupings","editColumn","enableFactorDescriptionPopovers","formatNegativeNumbers","hasGrouping","insertColumnLeft","insertColumnRight","onUpdateSorts","queryRequest.toggleBorderRight","readonly","removeColumn","rowData.{bodyRows,footerRows}","setGlobalCollapse","singleSort","sortGroupings","sortInReadonly","sorts","tableStyles","toggleBorderRight","useWidgetEngine","visibleColumns.@each.{canAddBorderRight,hasBorderRight,hasColumnFilters,hugContent,isSortable,pinned,searchable}","showFunctionalityBar","visualizationEditor.{changeLabelFormat,changeValueFormat,duplicateColumnLeft,duplicateColumnRight,editColumn,filterColumn,openColumnFilterModal,removeColumn,resetColumnSorts}",function(){let e=this.visibleColumns?.some(e=>e.searchable)??!1;return{columns:this.visibleColumns.map(e=>e.subcolumns?{headerName:e.headerCellName,field:e.headerCellName,sortable:this.canSort&&e.isSortable,children:e.subcolumns.map(e=>this._buildAgGridChildColumn(e))}:this._buildAgGridChildColumn(e)),footerRowData:this.rowData.footerRows,formatNegativeNumbers:this.formatNegativeNumbers,readonly:this.readonly,rowData:this.rowData.bodyRows,searchable:e,showFunctionalityBar:this.showFunctionalityBar||e,serverSideSorting:!0,sorts:this.sorts??[],tableStyles:this.tableStyles,getRowClass:e=>this.getRowClass(e.data),onExpandOrCollapseAll:this.setGlobalCollapse,onRowGroupOpened:(e,t)=>{(0,n.set)(e,"isCollapsed",t),this.onRowCollapse({rowValue:e})},onUpdateSorts:this.onUpdateSorts}}),getRowClass(e){let t=e?.type;return"divider"===t?"row-type-divider":"header"===t?"row-type-header":"footer"===t?"row-type-footer":"row-type-body"},_setCollapseState(e,t){e.forEach(e=>{(0,n.set)(e,"isCollapsed",t),this._setCollapseState(e.children??[],t)})},toggleBorderRight:(0,n.action)(function(e){this.queryRequest.toggleBorderRight(e),this.useWidgetEngine&&(e.isPivotColumn?this.flattenedColumns.filter(({isPivotColumn:e})=>e).forEach(e=>e.toggleProperty("hasBorderRight")):e.toggleProperty("hasBorderRight"))}),addColumnsToSorts(e){let t=e;return t=this.useAgGridTable?e.map(e=>{let t=this.flattenedColumns[e.columnIndex];return{...e,valuePath:t.valuePath,column:t}}):e.map(e=>{let t=this.flattenedColumns.find(({valuePath:t})=>t===e.valuePath);return{...e,column:t}}),t},onUpdateSorts:(0,n.action)(function(e){if(!this.canSort)throw new Error("tried to updateSorts but canSort is false");let t=this.addColumnsToSorts(e);this.queryRequest.updateSorts(t,this.visualizationEditor)}),singleSort:(0,n.action)(function(e,t){this.onUpdateSorts([{valuePath:e.valuePath,isAscending:t}])}),sortGroupings:(0,n.action)(function(){this.visualizationEditor.sortGroupings({canSortWithCustomOrdering:this.canSortWithCustomOrdering})}),updateSavedWidth:(0,n.action)(function(e){e.set("savedWidth",e.width)}),setGlobalCollapse:(0,n.action)(function(e,t){t?.stopPropagation(),this.set("isCollapsed",e),this._setCollapseState(this.rowData.bodyRows,e),this.queryRequest.serializeCollapseState?.(this.rowData.bodyRows)}),headerDropdownOpened:(0,n.action)(function(e){this.columns[e].set("hasOpenHeaderDropdown",!0)}),headerDropdownClosed:(0,n.action)(function(e){this.columns[e].set("hasOpenHeaderDropdown",!1)}),tableHeaderSelector:(0,n.computed)("useAgGridTable",function(){return this.useAgGridTable?".ag-header-cell":"th"}),insertColumnLeft:(0,n.action)(function(e){let{element:t,tableHeaderSelector:i,enableVsTableStyling:r}=this;this.visualizationEditor.insertColumnLeft(e,{element:t,tableHeaderSelector:i,addRightBorderByDefault:r})}),insertColumnRight:(0,n.action)(function(e){let{element:t,tableHeaderSelector:i,enableVsTableStyling:r}=this;this.visualizationEditor.insertColumnRight(e,{element:t,tableHeaderSelector:i,addRightBorderByDefault:r})}),removeColumn:(0,n.action)(function(e){this.visualizationEditor.removeColumn(e)}),editColumn:(0,n.action)(function(e,t){this.useAgGridTable&&(t=this.element.querySelector(`.ag-header-cell[col
1-id="${e.headerCellName}"]`)),this.visualizationEditor.editColumn(e,t)}),linkColumn:(0,n.action)(function(e){this.visualizationEditor.openLinkColumnModal(e)}),onRowCollapse:(0,n.action)(function({rowValue:e,rowMeta:t}){this.enableVsTableStyling&&!this.useAgGridTable&&t.toggleCollapse();let i=e.isCollapsed;if(!1===i&&!this.isCollapsedByDefault)for(;1===e.children?.length;){let t=e.children?.[0];(0,n.set)(t,"isCollapsed",i),e=t}this.queryRequest.serializeCollapseState?.(this.rowData.bodyRows)})}))},585754(e,t,i){i.r(t),i.d(t,{buildColumnShortHeldOptions:()=>r.ML,getAssociatedInspection:()=>r.b0,getCellNumericClasses:()=>r.qh,getGenericCellNumericClasses:()=>r.B_,getGenericTableCellContent:()=>r.pG,getGenericTableCellValue:()=>r.hI,getPortfolioTableCellValue:()=>r.ie});var r=i(713788)},405757(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(287896),o=i(943910);const a=r.A.extend({cellValue:(0,o.computed)("_highlightedCellValueWithWarnings","links.[]",function(){return{value:this._highlightedCellValueWithWarnings,link:this.links[0]}})})},350554(e,t,i){i.r(t),i.d(t,{default:()=>g});var r=i(640626),o=i(496314),a=i(943910),n=i(853273),s=i(928619),l=(i(44384),i(366436));const u=(0,i(510364).createTemplateFactory)({id:"pbywwjYR",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@columns","@footerRowData","@formatNegativeNumbers","@readonly","@rowData","@sorts","@tableStyles","@onColumnMoved","@onUpdateSorts","@useFindShortcut","@visualizationDisplayName","@showFunctionalityBar"],[[30,0,["agGridParams","columns"]],[30,0,["agGridParams","footerRowData"]],[30,0,["agGridParams","formatNegativeNumbers"]],[30,0,["agGridParams","readonly"]],[30,0,["agGridParams","rowData"]],[30,0,["agGridParams","sorts"]],[30,0,["agGridParams","tableStyles"]],[30,0,["agGridParams","onColumnMoved"]],[30,0,["agGridParams","onUpdateSorts"]],[30,2],[30,3],[30,4]]],[["functionalityBar"],[[[[1,"\\n "],[18,23,[[30,5]]],[1,"\\n "]],[5]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[8,[39,4],null,[["@api","@columns","@compareFunction","@containerWidthAdjustment","@fillMode","@multiLevelSort","@onUpdateSorts","@enableReorder","@onReorder","@resizeMode","@sortFunction","@sorts","@widthConstraint","@scrollIndicators"],[[30,6],[30,0,["columns"]],[30,0,["compareFunction"]],[30,0,["containerWidthAdjustment"]],"equal-column","multiLevelSort",[52,[28,[37,5],[[30,7],[28,[37,6],[[30,8]],null]],null],[30,0,["onUpdateSorts"]]],false,[30,9,["reorderColumns"]],"fluid",[30,0,["sortFunction"]],[30,0,["sorts"]],[30,10],[30,0,["scrollIndicators"]]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@api","@class"],[[30,11],[52,[30,0,["hasGrouping"]],"has-grouping"]]],[["default"],[[[[1,"\\n "],[8,[39,8],null,[["@isInASortingMode","@readonly","@canSort","@hideSortIndicator","@canSortWithinGroupings","@isCollapsed","@isEditable","@enableFactorDescriptionPopovers","@canEditFactor","@hasOpenColumnHeaderDropdown","@duplicateColumnLeft","@duplicateColumnRight","@insertColumnLeft","@insertColumnRight","@openSortGroupingsModal","@toggleBorderRight","@multiLevelSort","@sortColumn","@resetSortColumn","@changeLabelFormat","@changeValueFormat","@changeColumnShortHeldAssetDisplay","@columnShortHeldDisplayOptions","@editColumn","@removeColumn","@setGlobalCollapse","@headerDropdownOpened","@headerDropdownClosed","@openColumnFilterModal","@rowApi","@hasGrouping","@linkColumn"],[[28,[37,5],[[30,7],[28,[37,6],[[30,8]],null]],null],[30,8],true,[30,0,["hideSortIndicator"]],[30,0,["canSortWithinGroupings"]],[30,0,["isCollapsed"]],[30,0,["isEditable"]],[30,13],[30,14],[30,0,["hasOpenColumnHeaderDropdown"]],[30,9,["duplicateColumnLeft"]],[30,9,["duplicateColumnRight"]],[30,0,["insertColumnLeft"]],[30,0,["insertColumnRight"]],[30,0,["openSortGroupingsModal"]],[30,0,["toggleBorderRight"]],[30,0,["multiLevelSort"]],[30,0,["sortColumn"]],[30,0,["resetSortColumn"]],[30,0,["changeLabelFormat"]],[30,0,["changeValueFormat"]],[30,0,["changeColumnShortHeldAssetDisplay"]],[30,0,["queryRequest","displaySetting","columnShortHeldAssetDisplayOptions"]],[30,0,["editColumn"]],[30,0,["removeColumn"]],[30,0,["setGlobalCollapse"]],[30,0,["headerDropdownOpened"]],[30,0,["headerDropdownClosed"]],[30,9,["filterColumn"]],[30,12],[30,0,["hasGrouping"]],[52,[30,15],[30,0,["linkColumn"]]]]],null],[1,"\\n "]],[12]]]]],[1,"\\n "]],[11]]]]],[1,"\\n "],[8,[39,9],null,[["@api","@rows","@onSelect","@selectingChildrenSelectsParent","@selection"],[[30,6],[30,0,["rowData","bodyRows"]],[52,[30,0,["canSelectRows"]],[30,0,["bodyRowSelected"]],null],false,[30,0,["_separatedSelection","body"]]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@api","@class","@onDoubleClick"],[[30,16],[29,["\\n ",[30,16,["rowValue","classNames"]],"\\n ",[52,[30,16,["rowValue","children"]],"is-grouping-row"],"\\n ",[52,[30,0,["hasGrouping"]],"has-grouping"],"\\n "]],[30,0,["onDoubleClickRow"]]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@api","@class","@highlightRegex","@formatNegativeNumbers","@warningSettings","@onCollapse"],[[30,17],[29,[[30,17,["columnValue","classNames"]]," ",[52,[30,17,["columnMeta","isResizing"]],"is-resizing"]]],[30,17,["rowValue","highlightRegex"]],[30,0,["formatNegativeNumbers"]],[30,0,["warningSettings"]],[30,0,["onRowCollapse"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,11],[[30,19],[28,[37,11],[[30,16,["rowValue","children"]],[30,17,["columnValue","isGroupingColumn"]]],null]],null],[[[1," "],[10,0],[14,0,"text-core-body-small flex h-4 min-w-4 items-center justify-center rounded-sm hover:cursor-pointer hover:bg-vs-action-secondary-hover"],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[52,[30,16,["rowValue","isCollapsed"]],"chevron-right","chevron-down"]],[15,"onclick",[28,[37,12],[[30,0,["onRowCollapse"]],[30,16]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,18,["link"]],[[[1," "],[8,[39,13],null,[["@link","@value","@dataTestStr"],[[30,18,["link"]],[30,18,["value"]],[29,[[30,17,["columnMeta","index"]],"-",[30,17,["rowMeta","index"]]]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[30,18,["value"]]],[1,"\\n"]],[]]],[1," "]],[18]]]]],[1,"\\n "]],[17]]]]],[1,"\\n "]],[16]]]]],[1,"\\n "],[8,[39,14],null,[["@api","@onSelect","@rows","@selection"],[[30,6],[52,[30,0,["canSelectRows"]],[30,0,["footerRowSelected"]],null],[30,0,["rowData","footerRows"]],[30,0,["_separatedSelection","footer"]]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@class","@api"],[[30,20,["rowValue","classNames"]],[30,20]]],[["default"],[[[[1,"\\n"],[41,[28,[37,15],[[30,21,["columnMeta","index"]],0],null],[[[1," "],[8,[39,16],null,[["@api","@class"],[[30,21],[29,[[30,21,["columnValue","classNames"]]," ",[52,[30,21,["columnMeta","isResizing"]],"is-resizing"]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,10],null,[["@api","@class","@formatNegativeNumbers","@warningSettings"],[[30,21],[29,[[30,21,["columnValue","classNames"]]," ",[52,[30,21,["columnMeta","isResizing"]],"is-resizing"]]],[30,0,["formatNegativeNumbers"]],[30,0,["warningSettings"]]]],[["default"],[[[[1,"\\n "],[1,[30,22,["value"]]],[1,"\\n "]],[22]]]]],[1,"\\n"]],[]]],[1," "]],[21]]]]],[1,"\\n "]],[20]]]]],[1,"\\n "]],[6]]]]],[1,"\\n"]],[]]]],["@useAgGridTable","@useFindShortcut","@visualizationDisplayName","@showFunctionalityBar","functionalityBar","t","@sortInReadonly","@readonly","@visualizationEditor","@widthConstraint","h","r","@enableFactorDescriptionPopovers","@canEditFactor","@enableColumnLinking","b","r","cellValue","@enableVsTableStyling","b","r","cellValue","&functionalityBar"],false,["if","widget/visualization/table/apl-table","yield","ember-table","ember-thead","or","not","ember-tr","widget/visualization/table/generic-table-header-cell","ember-tbody","widget/visualization/table/portfolio-pivot-table-cell","and","fn","widget/visualization/shared/embedded-link","ember-tfoot","eq","widget/visualization/table/footer-table-cell"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/portfolio-pivot.hbs",isStrictMode:!1});var c=i(618576);const d=Symbol("groupColumnIndex"),p=l.A.extend({isGroupingColumn:!1,isValueColumn:!0,isTotalColumn:!1,isLastColumn:null,isPivotColumn:!0,isResizable:(0,a.computed)("tableController.enableVsTableStyling",function(){return!!this.tableController.enableVsTableStyling}),isSortable:(0,r.readOnly)("isTotalColumn"),isReorderable:!1,defaultHeaderCellName:null,index:null,isMultiSortable:!1,isRemovable:(0,r.not)("isCollapsedPivotFactor"),visualization:null,displayNameType:(0,r.readOnly)("columnSettings.displayNameType"),isHiddenSortColumn:(0,r.readOnly)("columnSettings.isHiddenSortColumn"),hasBorderRight:(0,r.readOnly)("columnSettings.hasBorderRight"),shouldShowBorderRight:(0,a.computed)("hasBorderRight","isLastColumn",function(){return this.hasBorderRight&&!this.isLastColumn}),canAddBorderRight:(0,a.computed)("isLastColumn","isCollapsedPivotFactor",function(){return!this.isLastColumn||!this.isCollapsedPivotFactor}),pivotValueName:"",isCollapsedPivotFactor:!1,hasOpenHeaderDropdown:!1,filterGroups:(0,a.computed)("[email protected]",function(){return this.factor?.columnFilters?.slice()[0]?.filters}),hasColumnFilters:(0,a.computed)("[email protected]",function(){return this.filterGroups?.filter(e=>e.hasOrIsLeafFilter).length>0}),classNames:(0,a.computed)("tableController.enableVsTableStyling","shouldShowBorderRight",function(){let e="text-align-right";return this.tableController.enableVsTableStyling&&this.shouldShowBorderRight&&(e+=" ember-table-cell-border-right"),e.trim()}),hasLabelFormatOptions:(0,a.computed)("isCollapsedPivotFactor","factor.hasLabelFormatOptions",function(){return!this.isCollapsedPivotFactor&&this.get("factor.hasLabelFormatOptions")}),columnLabel:(0,r.readOnly)("factor.headerName"),headerCellName:(0,a.computed)("isCollapsedPivotFactor","pivotValueName","columnLabel",function(){return this.isCollapsedPivotFactor?this.pivotValueName:this.columnLabel})}),h=p.extend({isGroupingColumn:!0,isValueColumn:!1,isSortable:!0,isResizable:!0,isRemovable:!1,index:0,isFixed:"left",isLastColumn:!1,valuePath:"formattedGroupDisplayName",width:250,defaultHeaderCellName:"Grouping",columnSettings:(0,a.computed)("tableController.columnSettings.[]",function(){return this.tableController.columnSettings.slice()[0]}),valueFactorIndex:d,classNames:(0,a.computed)("hasBorderRight",function(){let e="text-align-left";return this.hasBorderRight&&(e+=" ember-table-cell-border-right"),e.trim()}),sortByGroupValueTypes:(0,a.computed)(function(){return["since_date","problem_date"]}),headerCellName:(0,a.computed)("columnSettings.displayName","defaultHeaderCellName","displayNameType","groupingFactors.{@each.displayName}",function(){switch(this.displayNameType){case"default":{let e=this.get("groupingFactors")?.slice()[0]?.displayName;return e||this.defaultHeaderCellName}case"groupings":return(this.groupingFactors||[]).map(e=>e.displayName).join(" â¶ ");
1case"custom":return this.get("columnSettings.displayName");default:return}}),getCellContent:e=>e.get("formattedGroupDisplayName"),getCellValue(e){let t=e.get("groupValueType");return(0,s.A)(this.sortByGroupValueTypes,t)?e.get("groupValue"):this.getCellContent(e)},getFactorSortOrdering(e){let t=this.groupingFactors.find(t=>t.displayName===e.get("groupName"));return this.tableController.getFactorSortOrdering(t)}}),m=n.A.extend({classNames:["portfolio-pivot-table"],pivotBuckets:(0,r.readOnly)("queryRequest.result.pivotBuckets"),valueFactorsLength:(0,r.readOnly)("query.valueFactors.length"),visibleValueFactorsLength:(0,r.readOnly)("visualization.visibleValueFactors.length"),shouldCollapseHeader:(0,r.equal)("visibleValueFactorsLength",1),hideTotalColumnAfterSortings:(0,r.readOnly)("queryRequest.hideTotalColumnAfterSortings"),showTotalColumn:(0,r.readOnly)("queryRequest.query.showTotalColumn"),hasOpenColumnHeaderDropdown:(0,a.computed)("columns.@each.{hasSubColumnWithOpenHeader,hasOpenHeaderDropdown}",function(){return this.columns.some(e=>(0,a.get)(e,"hasSubColumnWithOpenHeader")||(0,a.get)(e,"hasOpenHeaderDropdown"))}),allColumnObjects:(0,a.computed)("data.valueFactors.[]","groupingColumn","isEditable","pivotBuckets","visualization.columnSettings","shouldCollapseHeader",{get(){let e=this.data;if((0,o.isNone)(e))return[];let t=this.isEditable,i=this.get("visualization.columnSettings"),r=this.get("queryRequest.query.valueFactors"),a=this.valueFactorsLength,n=this.pivotBuckets,s=this.shouldCollapseHeader;if((0,o.isNone)(r))return[];if((0,o.isNone)(n))return[];if((0,o.isNone)(i))return[];let l=this.visualization,u=this.hideTotalColumnAfterSortings?n.length-1:n.length,c=l.hasSorts,d=u*a,h=n.map((e,o)=>{let u=(c||this.showTotalColumn)&&o===n.length-1,h=r.map((r,n)=>{let c=n+1,h=i.slice()[c],m=a*o+n;return p.create({tableController:this,index:m,factor:r,isTotalColumn:u,isHiddenTotalColumn:this.hideTotalColumnAfterSortings&&u,isLastColumn:m===d-1,pivotValueName:e,isCollapsedPivotFactor:s,columnSettings:h,defaultHeaderCellName:e,isEditable:t,valuePath:`${m}`,visualization:l,valueFactorIndex:n})}),m=h.filter(e=>!e.isHiddenSortColumn);return{headerCellName:e,isPivotParentColumn:!0,isTotalColumn:u,classNames:"text-align-right",hasSubColumnWithOpenHeader:!1,allSubColumnObjects:h,subcolumns:m,isHiddenSortColumn:this.hideTotalColumnAfterSortings&&u}});return h.unshift(this.groupingColumn),h},set:(e,t)=>t}),columns:(0,a.computed)("[email protected]","shouldCollapseHeader","groupingColumn","hideTotalColumnAfterSortings",{get(){let e=this.allColumnObjects.slice(1).filter(e=>!e.isHiddenSortColumn);return this.shouldCollapseHeader&&(e=e.flatMap(e=>e.subcolumns)),e.unshift(this.groupingColumn),e},set:(e,t)=>t}),groupingColumn:(0,a.computed)("visualization",function(){let e=this.visualization;return h.create({tableController:this,visualization:e})}),_findColumnByValuePath(e){for(let t of this.allColumnObjects){if((0,a.get)(t,"valuePath")===e)return t;for(let i of t.allSubColumnObjects||[])if((0,a.get)(i,"valuePath")===e)return i}},_buildAgGridColumn(e){if(!this.shouldCollapseHeader&&!e.isGroupingColumn)return{children:e.subcolumns?.map(e=>this._buildAgGridChildColumn(e)),field:e.headerCellName,headerName:e.headerCellName,sortable:e.isSortable};let t=e.isGroupingColumn?e:e.subcolumns[0];return this._buildAgGridChildColumn(t)},_findSortColumns(){let e=[];for(let t of this.allColumnObjects){(0,a.get)(t,"isSortColumn")&&(0,a.get)(t,"isSortable")&&e.push(t);for(let i of t.allSubColumnObjects||[])(0,a.get)(i,"isSortColumn")&&(0,a.get)(i,"isSortable")&&e.push(i)}return e},getColumnByValueFactor(e){return this.allColumnObjects.find(e=>e.isTotalColumn).allSubColumnObjects.find(t=>t.factor===e)},recomputeColumnHeadersProperty(e,t){let i=this.columns,r=this.getSubcolumnsArray();i.length&&!r.length?this.setHasOpenHeaderDropdown(i,e,t):(this.setHasOpenHeaderDropdown(r,e,t),i.forEach(e=>{let t=(0,a.get)(e,"subcolumns");if(t){let i=t.some(e=>e.get("hasOpenHeaderDropdown"));(0,a.set)(e,"hasSubColumnWithOpenHeader",i)}}))},setHasOpenHeaderDropdown(e,t,i){let r=e.find(e=>e.index===t);r&&!r.isDestroying&&r.set("hasOpenHeaderDropdown",i)},getSubcolumnsArray(){let e=[];for(let t of this.columns){let i=(0,a.get)(t,"subcolumns");
1i&&i.forEach(t=>{e.push(t)})}return e},toggleBorderRight:(0,a.action)(function(e){if(e.isGroupingColumn)e.columnSettings.toggleProperty("hasBorderRight");else{let e=this.columnSettings.slice()[1].hasBorderRight;e=!e,this.columnSettings.forEach((t,i)=>{0!==i&&t.set("hasBorderRight",e)})}}),removeColumn:(0,a.action)(function(e){this.removeValueFactorFromQuery(e.get("factor"))}),headerDropdownOpened:(0,a.action)(function(e){this.recomputeColumnHeadersProperty(e,!0)}),headerDropdownClosed:(0,a.action)(function(e){this.recomputeColumnHeadersProperty(e,!1)}),openSortGroupingsModal:(0,a.action)(function(){let{sorts:e,canSortWithCustomOrdering:t,addValueFactorsFromSorts:i,onUpdateSorts:r}=this,o=this.groupingColumn,a=this.allColumnObjects.find(e=>e.isTotalColumn),n=[o,...a.subcolumns??[a]];this.visualizationEditor.openSortGroupingsModal({sorts:e,columns:n,isPivotTable:!0,canSortWithCustomOrdering:t,addValueFactorsFromSorts:i,onUpdateSorts:r})})}),g=(0,c.setComponentTemplate)(u,m)},927382(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(287896)},196820(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(853273)},975912(e,t,i){i.r(t),i.d(t,{default:()=>d});var r=i(618576),o=i.n(r),a=i(943910),n=i(496314),s=i(845393);const l=(0,i(510364).createTemplateFactory)({id:"K++9frzt",block:'[[[41,[30,0,["targetPercentage"]],[[[1," "],[10,"img"],[14,"src","/@addepar/widgets/img/report-projection-table-target-5d843c84514490ad837e484fa8bde002.svg"],[12],[13],[1,"\\n "],[1,[30,0,["targetPercentage"]]],[1,"\\n |\\n"]],[]],null],[41,[30,0,["cellValue"]],[[[1,[30,0,["cellValue"]]]],[]],[[[1,"Â "]],[]]]],[],false,["if"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/projection-table-cell-content.hbs",isStrictMode:!1});var u,c;let d=(u=(0,a.computed)("column.valuePath","row"),c=class extends(o()){constructor(...e){super(...e),function(e,t,i){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"tagName","")}get targetPercentage(){let e=this.column.valuePath,t=this.row.get(`target_percentage.${e}`);return(0,n.isEmpty)(t)||(t=(0,s.l9)(t)),t}},p=c.prototype,h="targetPercentage",m=[u],g=Object.getOwnPropertyDescriptor(c.prototype,"targetPercentage"),f=c.prototype,y={},Object.keys(g).forEach(function(e){y[e]=g[e]}),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=m.slice().reverse().reduce(function(e,t){return t(p,h,e)||e},y),f&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(f):void 0,y.initializer=void 0),void 0===y.initializer&&Object.defineProperty(p,h,y),c);var p,h,m,g,f,y;(0,r.setComponentTemplate)(l,d)},567557(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(618576);const o=i.n(r)().extend({attributeBindings:["ariaLabel:aria-label","checked","disabled","type"],tagName:"input",ariaLabel:null,checked:!1,disabled:!1,type:"checkbox",onChange:null,onClick:null,click(e){this.onClick?.(e)},change(e){let t=this.element.checked;this.onChange?.(t,e)}})},516121(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"wibecaBM",block:'[[[10,0],[15,0,[29,["flex ",[52,[30,1],"flex-row-reverse order-3"]]]],[12],[1,"\\n "],[18,7,null],[1,"\\n"],[41,[30,2],[[[1," "],[10,0],[14,0,"my-1 w-4 text-center hover:text-vs-icon-primary text-vs-icon-secondary"],[12],[1,"\\n "],[10,"apl-icon"],[14,0,"align-middle"],[14,"icon","filter_solid"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,3],[[[41,[28,[37,2],[[30,4],1],null],[[[1," "],[10,0],[14,0,"my-1 text-vs-secondary"],[12],[1,"\\n "],[1,[30,4]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,5],[[[1," "],[10,0],[15,0,[29,["my-1 mx-0.5 w-4 text-center hover:text-vs-icon-primary text-vs-icon-secondary\\n ",[52,[30,1],"-ml-[1px]","-mr-[1px]"]]]],[12],[1,"\\n "],[10,"apl-icon"],[14,0,"align-middle"],[14,"icon","sort-ascending"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[30,6],[[[1," "],[10,0],[15,0,[29,["my-1 mx-0.5 w-4 text-center hover:text-vs-icon-primary text-vs-icon-secondary\\n ",[52,[30,1],"-ml-[1px]","-mr-[1px]"]]]],[12],[1,"\\n "],[10,"apl-icon"],[14,0,"align-middle"],[14,"icon","sort-descending"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"my-1 mx-0.5 w-4 text-center hover:text-vs-icon-secondary text-vs-icon-secondary-disabled"],[12],[1,"\\n "],[10,"apl-icon"],[14,0,"align-middle"],[14,"icon","sort-unsorted"],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]],[]]]],[]],null],[13]],["@isLeftAligned","@hasColumnFilters","@canSort","@sortIndex","@isSortAscending","@isSortDescending","&default"],false,["if","yield","gt"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/vs-header-icons.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"vs-header-icons"))},829748(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(526481)},151834(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"Vlo6XTMd",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,1]],null]],null],null,[[[41,[28,[37,3],[[30,2,["type"]],"ii_portfolio_filter_control"],null],[[[1," "],[8,[39,4],null,[["@config","@queryRequest"],[[30,2],[30,3]]],null],[1,"\\n"]],[]],null]],[2]],null]],["@headerControls","controlConfig","@queryRequest"],false,["each","-track-array","if","eq","investment-intelligence/components/ii-portfolio-filter-control"]]',moduleName:"@addepar/widgets/components/widget/widget-control
1s/header-controls.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"header-controls"))},146195(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=(0,i(827413).helper)(([e])=>e?{EMONEY:"eMoney"}[e]||e:"")},767369(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(827413),o=i(360561),a=i.n(o);const n=(0,r.helper)(([e,t])=>function(e,t){return 1===t?a().singular(e):a().plural(e)}(e,t))},785950(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(241844)},162726(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(313752)},348423(e,t,i){i.r(t),i.d(t,{default:()=>r.Ay});var r=i(524711)},12713(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(297055)},740311(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(329257)},465701(e,t,i){i.r(t),i.d(t,{FinancialEvent:()=>r.C,TRANSACTION_STATE:()=>r.R});var r=i(364519)},209126(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(378912)},718706(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(577812)},454510(e,t,i){i.r(t),i.d(t,{flattenValueObject:()=>r.r,transformPortfolioResultHelper:()=>r.Q});var r=i(394320)},205510(e,t,i){i.r(t),i.d(t,{SerializableObject:()=>r.j});var r=i(388536)},101854(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(103424)},797841(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=(0,i(960234).W)((e,[t,...i],r)=>
1()=>{t(e,i,r)})},919778(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(334812)},429238(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(340988)},319036(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(243998)},13764(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(804204),o=i.n(r);function a(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i(44384);class n extends(o()){constructor(...e){super(...e),a(this,"observer",null),a(this,"callbacks",null),this._setup()}_setup(){this.set("callbacks",new WeakMap),this.set("observer",new window.ResizeObserver(e=>{this.handleResize(e,this)}))}isEnabled(){return!!this.observer}observe(e,t){if(!this.isEnabled)return;let i=this.callbacks.get(e);i?i.add(t):(this.callbacks.set(e,new Set([t])),this.observer.observe(e))}unobserve(e,t){if(!this.isEnabled)return;let i=this.callbacks.get(e);i&&(i.delete(t),t&&i.size||(this.callbacks.delete(e),this.observer.unobserve(e)))}clear(){this.isEnabled&&(this.set("callbacks",new WeakMap),this.observer.disconnect())}willDestroy(){this.clear()}handleResize(e,t){for(let i of e){let e=t.get("callbacks").get(i.target);if(e)for(let t of e)t(i)}}}},10498(e,t,i){i.r(t),i.d(t,{DATA_SOURCES:()=>r.Y});var r=i(416432)},250918(e,t,i){i.r(t),i.d(t,{FACTOR_ZENDESK_LINKS:()=>r.t,HELP_DOMAIN:()=>r.L});var r=i(116360)},940857(e,t,i){i.r(t),i.d(t,{deserializeCKEditorHtml:()=>r.ir,getQueryRequestValues:()=>r.QH,insertVariablesIntoCKEditorHTML:()=>r.Ny,serializeCKEditorHtml:()=>r.D8});var r=i(423431)},528057(e,t,i){i.d(t,{A:()=>l});var r,o,a=i(765632),n=i(943910);const s="no-theme";let l=(r=(0,n.computed)("args.itemController.model.tableThemeId"),o=class extends a.A{get hasTableTheme(){return(this.args.itemController.model.tableThemeId||s)!==s}},u=o.prototype,c="hasTableTheme",d=[r],p=Object.getOwnPropertyDescriptor(o.prototype,"hasTableTheme"),h=o.prototype,m={},Object.keys(p).forEach(function(e){m[e]=p[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=d.slice().reverse().reduce(function(e,t){return t(u,c,e)||e},m),h&&void 0!==m.initializer&&(m.value=m.initializer?m.initializer.call(h):void 0,m.initializer=void 0),void 0===m.initializer&&Object.defineProperty(u,c,m),o);var u,c,d,p,h,m},223538(e,t,i){i.d(t,{A:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"Hl+NZiGW",block:'[[[41,[30,1,["isChart"]],[[[1," "],[8,[39,1],[[17,2]],[["@queryRequest","@visualization","@selectedSeedColors","@applicationTheme","@isPrint","@isRepGen","@registerChartComponent","@registerVisualizationComponent","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor"],[[30,3],[30,1],[30,4],[30,5],[30,6],[30,7],[30,8],[30,9],[30,10],[30,11],[30,12],[30,13]]],[["header","footer"],[[[[1,"\\n "],[18,111,[[30,14]]],[1,"\\n "]],[14]],[[[1,"\\n "],[18,112,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,1,["isTable"]],[[[41,[28,[37,3],[[30,6],[28,[37,4],[[30,3,["useWidgetEngine"]]],null]],null],[[[1," "],[8,[39,5],[[17,2]],[["@queryRequest","@visualization","@isRepGen","@useAgGridTable","@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@showRowNumber","@enableTextWrapping","@tableTheme","@itemFrame","@registerTableComponent","@resetSortColumn","@displayValueFactors","@pivotBuckets","@columnSettings","@target","@isLexicographicalSort","@headerRowTextWeight","@headerRowHeight","@headerRowTextSize","@headerRowLetterCase","@headerRowTextColor","@headerRowBackgroundColor","@headerRowBorderStyle","@headerRowBorderColor","@bodyRowTextSize","@bodyRowBorderStyle","@bodyRowBorderColor","@bodyTopLevelRowTextWeight","@bodyTopLevelRowTextColor","@bodyTopLevelRowBackgroun
1dColor","@bodyRepeatingRowTextWeight","@bodyRepeatingRowTextColor","@bodyRepeatingRowBackgroundColor","@bodyBaseRowTextWeight","@bodyBaseRowTextColor","@bodyBaseRowBackgroundColor","@bodyRowHeight","@shouldShowSecondaryTable","@secondaryColumns","@secondaryBodyContent","@secondaryFooterContent","@secondaryColumnFormats","@secondaryColumnLabels","@registerSecondaryTableComponent","@numberedFootnotes"],[[30,3],[30,1],[30,7],[30,15],[30,16],[30,17],[30,18],[30,19],[30,20],[30,21],[30,22],[30,23],[30,24],[30,25],[30,26],[30,27],[30,28],[30,29],[30,30],[30,31],[30,32],[30,33],[30,34],[30,35],[30,36],[30,37],[30,38],[30,39],[30,40],[30,41],[30,42],[30,43],[30,44],[30,45],[30,46],[30,47],[30,48],[30,49],[30,50],[30,51],[30,52],[30,53],[30,54],[30,55],[30,56],[30,57],[30,58],[30,59],[30,60],[30,61],[30,62],[30,63],[30,64]]],null],[1,"\\n"]],[]],[[[41,[28,[37,6],[[28,[37,4],[[30,7]],null],[30,16]],null],[[[1," "],[8,[39,7],[[17,2]],[["@sortInReadonly","@queryRequest","@visualization","@registerTableComponent","@registerVisualizationComponent","@applicationTheme","@isAddeparUser","@widthConstraint","@forceRerenderOnResize","@readonly","@onHeightChanged","@exportToExcel","@disableCustomSortOrdering","@selectedRows","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@openInspector","@canOpenInspectorFromHeader","@enableFactorDescriptionPopovers","@canEditFactor","@enableDynamicHeight","@enableVsTableStyling","@useAgGridTable","@useGenericTableRightBorders","@visualizationEditor","@enableColumnLinking","@useCheckbox","@useFindShortcut","@onRowClicked","@onRowDoubleClicked","@onSelectionChanged","@isPrint","@isRepGen","@pageStartIndex","@pageEndIndex","@showFunctionalityBar"],[[30,65],[30,3],[30,1],[30,29],[30,9],[30,5],[30,66],[30,67],[30,68],[30,69],[30,70],[30,71],[30,72],[30,73],[30,74],[30,75],[30,76],[30,77],[30,78],[3
10,79],[30,80],[30,81],[30,82],[30,15],[30,83],[30,13],[30,84],[30,85],[30,86],[30,87],[30,88],[30,89],[30,6],[30,7],[30,90],[30,91],[48,[30,113]]]],[["header","functionalityBar"],[[[[1,"\\n "],[18,111,[[30,92]]],[1,"\\n "]],[92]],[[[1,"\\n "],[18,113,[[30,93]]],[1,"\\n "]],[93]]]]],[1,"\\n "]],[]],null]],[]]]],[]],[[[41,[30,1,["isBigNumber"]],[[[1," "],[8,[39,9],[[17,2]],[["@visualization","@queryRequest","@registerVisualizationComponent","@applicationTheme"],[[30,1],[30,3],[30,9],[30,5]]],[["header"],[[[[1,"\\n "],[18,111,[[30,94]]],[1,"\\n "]],[94]]]]],[1,"\\n"]],[]],[[[41,[30,1,["isText"]],[[[1," "],[8,[39,10],[[17,2]],[["@readonly","@visualization","@queryRequest","@fundQueryRequest","@isFundContextAvailable","@isSelected","@isAllSelected","@applicationTheme","@registerVisualizationComponent","@updateEditorReadiness","@cssOverrideStyleSheet","@defaultFontSizePixels","@fontFormats","@fontNameOptions","@clearColorOnLoad","@focusOnInit"],[[30,69],[30,1],[30,3],[30,95],[30,96],[30,97],[30,98],[30,5],[30,9],[30,99],[30,100],[30,101],[30,102],[30,103],[30,104],[30,105]]],[["controls","editor"],[[[[1,"\\n "],[18,114,[[30,106]]],[1,"\\n "]],[106]],[[[1,"\\n "],[18,115,[[30,107]]],[1,"\\n "]],[107]]]]],[1,"\\n"]],[]],[[[41,[30,1,["isAddisonInsights"]],[[[1," "],[8,[39,11],[[17,2]],[["@visualization","@dataContext","@queryRequest","@registerVisualizationComponent","@applicationTheme","@selectedPerspective"],[[30,1],[30,108],[30,3],[30,9],[30,5],[30,109]]],[["header","footer"],[[[[1,"\\n "],[18,111,[[30,110]]],[1,"\\n "]],[110]],[[[1,"\\n "],[18,112,null],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"flex h-full flex-1 items-center justify-center"],[12],[1,"\\n "],[10,"apl-empty-state"],[14,"icon","triangle-exclamation"],[14,"size","compact"],[14,"header","Unsupported visualization"],[15,"message",[28,[37,12],["type: ",[30,1,["type"]]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]]],[]]]],[]]]],[]]]],[]]]],["@visualization","&attrs","@queryRequest","@selectedSeedColors","@applicationTheme","@isPrint","@isRepGen","@registerChartComponent","@registerVisualizationComponent","@enableVsChartStyling","@initialHeight","@portalChartHoverColor","@visualizationEditor","header","@useAgGridTable","@renderBody","@columns","@bodyContent","@footerContent","@showFooter","@headerHeight","@columnFormats","@columnLabels","@formatNegativeNumbers","@showRowNumber","@enableTextWrapping","@tableTheme","@itemFrame","@registerTableComponent","@resetSortColumn","@displayValueFactors","@pivotBuckets","@columnSettings","@target","@isLexicographicalSort","@headerRowTextWeight","@headerRowHeight","@headerRowTextSize","@headerRowLetterCase","@headerRowTextColor","@headerRowBackgroundColor","@headerRowBorderStyle","@headerRowBorderColor","@bodyRowTextSize","@bodyRowBorderStyle","@bodyRowBorderColor","@bodyTopLevelRowTextWeight","@bodyTopLevelRowTextColor","@bodyTopLevelRowBackgroundColor","@bodyRepeatingRowTextWeight","@bodyRepeatingRowTextColor","@bodyRepeatingRowBackgroundColor","@bodyBaseRowTextWeight","@bodyBaseRowTextColor","@bodyBaseRowBackgroundColor","@bodyRowHeight","@shouldShowSecondaryTable","@secondaryColumns","@secondaryBodyContent","@secondaryFooterContent","@secondaryColumnFormats","@secondaryColumnLabels","@registerSecondaryTableComponent","@numberedFootnotes","@sortInReadonly","@isAddeparUser","@widthConstraint","@forceRerenderOnResize","@readonly","@onHeightChanged","@exportToExcel","@disableCustomSortOrdering","@selectedRows","@selectionDidChange","@selectionChangeRequest","@doubleClickTable","@openInspector","@canOpenInspectorFromHeader","@enableFactorDescriptionPopovers","@canEditFactor","@enableDynamicHeight","@enableVsTableStyling","@useGenericTableRightBorders","@enableColumnLinking","@useCheckbox","@useFindShortcut","@onRowClicked","@onRowDoubleClicked","@onSelectionChanged","@pageStartIndex","@pageEndIndex","header","functionalityBar","header","@fundQueryRequest","@isFundContextAvailable","@isSelected","@isAllSelected","@updateEditorReadiness","@cssOverrideStyleSheet","@defaultFontSizePixels","@fontFormats","@fontNameOptions","@clearColorOnLoad","@focusOnInit","controls","editor","@dataContext","@selectedPerspective","header","&header","&footer","&functionalityBar","&controls","&editor"],false,["if","widget/visualization/chart","yield","and","not","widget/visualization/html-table","or","widget/visualization/table","has-block","widget/visualization/big-number","widget/visualization/text","widget/visualization/addison-insights","concat"]]',moduleName:"@addepar/widgets/components/widget/visualization.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"visualization"))},877012(e,t,i){i.d(t,{A:()=>A});var r,o,a,n,s,l,u,c,d,p,h,m=i(765632),g=i(943910),f=i(989272),y=i(124129),b=i(103424),v=i(251431),w=i(416432);function _(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let A=(r=(0,g.computed)("queryRequest.useWidgetEngine"),o=(0,g.computed)("queryRequest.isLoading","queryRequest.visualization.{type,title,query.benchmarkFactors.length,[email protected]}","queryRequest.query.valueFactors.{length,@each.displayName}","queryRequest.query.groupingFactors.{length,@each.displayName}"),a=(0,g.computed)("queryRequest.isMissingPermission"),n=(0,g.computed)("queryRequest.isMissingPerspective"),s=(0,g.computed)("queryRequest.hasNavigatorUnsupportedPerspective"),l=(0,g.computed)("queryRequest.result","visualization.{dataSource,type,widgetType}"),u=(0,g.computed)("queryRequest.isLoading"),c=(0,g.computed)("queryRequest.percentDone"),d=(0,g.computed)("queryRequest.result"),p=(0,g.computed)("visualization.title"),_((h=class extends m.A{constructor(...e){var t,i,r;super(...e),t=this,r=!1,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="readonly"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r}get useWidgetEngine(){return this.queryRequest.useWidgetEngine}get item(){return this.args.item}get queryRequest(){return this.args.queryRequest}get visualization(){return this.args.visualization}get selectedPerspective(){return this.args.selectedPerspective}get visualizationDisplayName(){return(0,b.A)(this.queryRequest)}get showNoAccessPlaceholder(){return this.queryRequest.isMissingPermission}get showNoPerspectivePlaceholder(){return this.queryRequest.isMissingPerspective}get showNavigatorUnsupportedPerspectivePlaceholder(){return this.queryRequest.hasNavigatorUnsupportedPerspective}get isDataProviderError(){return this.queryRequest.result instanceof v.tC||!this.visualization.widgetType&&this.visualization.dataSource!==w.Y.ADDEPAR_PORTFOLIO}get queryLoading(){return this.queryRequest.isLoading}get queryProgress(){return this.queryRequest.percentDone}get queryFinished(){return!!this.queryRequest.result}get title(){return this.visualization.title}didInsertEl(){(0,f.schedule)("afterRender",()=>{this.args.registerVisualizationComponent?.(this)})}willDestroyEl(){this.args.registerVisualizationComponent?.(null)}}).prototype,"useWidgetEngine",[r],Object.getOwnPropertyDescriptor(h.prototype,"useWidgetEngine"),h.prototype),_(h.prototype,"item",[y.dependentKeyCompat],Object.getOwnPropertyDescriptor(h.prototype,"item"),h.prototype),_(h.prototype,"queryRequest",[y.dependentKeyCompat],Object.getOwnPropertyDescriptor(h.prototype,"queryRequest"),h.prototype),_(h.prototype,"visualization",[y.dependentKeyCompat],Object.getOwnPropertyDescriptor(h.prototype,"visualization"),h.prototype),_(h.prototype,"selectedPerspective",[y.dependentKeyCompat],Object.getOwnPropertyDescriptor(h.prototype,"selectedPerspective"),h.prototype),_(h.prototype,"visualizationDisplayName",[o],Object.getOwnPropertyDescriptor(h.prototype,"visualizationDisplayName"),h.prototype),_(h.prototype,"showNoAccessPlaceholder",[a],Object.getOwnPropertyDescriptor(h.prototype,"showNoAccessPlaceholder"),h.prototype),_(h.prototype,"showNoPerspectivePlaceholder",[n],Object.getOwnPropertyDescriptor(h.prototype,"showNoPerspectivePlaceholder"),h.prototype),_(h.prototype,"showNavigatorUnsupportedPerspectivePlaceholder",[s],Object.getOwnPropertyDescriptor(h.prototype,"showNavigatorUnsupportedPerspectivePlaceholder"),h.prototype),_(h.prototype,"isDataProviderError",[l],Object.getOwnPropertyDescriptor(h.prototype,"isDataProviderError"),h.prototype),_(h.prototype,"queryLoading",[u],Object.getOwnPropertyDescriptor(h.prototype,"queryLoading"),h.prototype),_(h.prototype,"queryProgress",[c],Object.getOwnPropertyDescriptor(h.prototype,"queryProgress"),h.prototype),_(h.prototype,"queryFinished",[d],Object.getOwnPropertyDescriptor(h.prototype,"queryFinished"),h.prototype),_(h.prototype,"title",[p],Object.getOwnPropertyDescriptor(h.prototype,"title"),h.prototype),_(h.prototype,"didInsertEl",[g.action],Object.getOwnPropertyDescriptor(h.prototype,"didInsertEl"),h.prototype),_(h.prototype,"willDestroyEl",[g.action],Object.getOwnPropertyDescriptor(h.prototype,"willDestroyEl"),h.prototype),h)},145968(e,t,i){i.d(t,{A:()=>$});var r=i(200035),o=i(989272),a=i(582355);const n=window.requestIdleCallback??function(e,t){return setTimeout(()=>{let t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})},1)},s=(window.cancelIdleCallback??window.clearTimeout,n);i.dn(c);let l=(0,a.lQ)("@addepar/widgets:request-idle-callback"),u=new Set;function c(e,...t){let i=l.beginAsync();return u.add(i),s(()=>{try{e()}finally{l?.endAsync(i),u.delete(i)}},...t)}function d(e,...t){return c(()=>{(0,o.run)(()=>{e()})},...t)}i.dn(d);var p=i(555546),h=i(716291),m=i(364986),g=i(886783),f=i(501937),y=i(759361),b=i(672058),v=i(280914),w=i(225929),_=i(407715),A=i(46311),T=i(408463),C=i(723371),S=i(9828),R=i(185811),D=i(677214),O=i(963623),E=i(189305),F=i(933681),P=i(52045),x=i(445436),N=i(569958),z=i(34307),I=i(559784),M=i(80923),k=i(643862),L=i(536464),j=i(849025),V=i(640626),B=i(943910),q=(i(44384),i(137761)),H=i(746754);const U=(0,i(510364).createTemplateFactory)({id:"TfJH0vVw",block:'[[[41,[30,0,["isLoading"]],[[[1," "],[8,[39,1],null,[["@applicationTheme"],[[30,1]]],null],[1,"\\n"]],[]],null],[41,[30,0,["hasNoData"]],[[[41,[51,[30,0,["isLoading"]]],[[[1," "],[8,[39,3],null,null,null],[1,"\\n"]],[]],null]],[]],null],[10,0],[15,0,[29,["chart-wrapper ",[52,[28,[37,4],[[30,0,["hasNoData"]],[30,0,["isLoading"]]],null],"hide","show"]]]],[12],[13]],["@applicationTheme"],false,["if","widget/visualization/shared/loading-animation","unless","widget/visualization/shared/no-data-empty-state","or"]]',moduleName:"@addepar/widgets/components/widget/visualization/chart/base.hbs",isStrictMode:!1});var G=i(618576);(0,f.Y)([b.a,v.a,w.a,_.a,A.a,T.a,C.a,S.a,R.a,D.a,O.a,E.a,F.a,P.a,x.a,N.a,z.a,I.a,M.a,L.a,k.a,j._]);let W=r.A.extend({tagName:"div",classNames:["portfolio-graph-content"],width:0,height:0,attributeBindings:["type:data-test-widget","dataEnvTestId:data-env-test-id"],chart:null,chartOptions:null,hasNoData:!1,thumbnail:null,_widgetEngineChartOptionsDirty:!1,_latestWidgetEngineTaskID:0,legendData:(0,B.computed)("chartOptions.{legend.data,series}",function(){return function(e,t){let i=t[0].type;return"scatter"===i?e.map(e=>{let i=e.name,r=t.find(e=>e.name===i).symbol.replace("path://",""),o=p.Z8.find(e=>e.path===r);return void 0===o&&"Total"===i&&(o=p.Hq),{...o,name:i,useStroke:!1}}):e.map((e,r)=>"pie"!==i&&"boxplot"!==i&&"line"===t[r]?.type?{...p.R0.LINE_CHART_SYMBOL,...e,useStroke:!0}:{...p.R0.CIRCLE_CHART_SYMBOL,...e,useStroke:!1})}(this.chartOptions.legend.data,this.chartOptions.series)}),legendColors:(0,B.computed)("chartOptions.color","legendData.length",function(){return function(e,t){if("function"==typeof e[0]){let i=e[0];return(0,q.A)(t).map(e=>i({dataIndex:e,seriesIndex:e}))}return e}(this.chartOptions.color,this.legendData.length)}),showCustomLegend:(0,B.computed)("chartOptions.legend.showCustomLegend","isLoading",function(){return this.chartOptions?.legend?.showCustomLegend&&!this.isLoading}),async _updateOptionsFromQuery(){if(this._widgetEngineChartOptionsDirty){this._widgetEngineChartOptionsDirty=!1,this.set("isLoading",!0);let e=++this._latestWidgetEngineTaskID;if(await this.queryRequest.rerender(),e!==this._latestWidgetEngineTaskID)return;this.set("isLoading",!1)}this.renderChart()},renderChart(){this._populateChartOptions(),this.hasNoData||this._updateOptions(this.chartOptions)},didReceiveAttrs(){this._super(...arguments),d(()=>{this._updateChart()},{timeout:1})},didInsertElement(...e){this._super(...e),(0,o.schedule)("afterRender",()=>{this.isDestroying||this.registerInstance?.(this)}),d(()=>{this._updateChart()},{timeout:1})}
1,willDestroyElement(...e){this.chart&&(this.chart.dispose(),this.chart=null),this.registerInstance?.(null),this._super(...e)},onElementResized({width:e,height:t}){if(this.isDestroying||!this.chart||this.useStaticDimensions)return;let i=Math.round(e),r=Math.round(t),o=this.width,a=this.height;if(o!==i||a!==r){let e=!1;this.get("chartOptions.animationDuration")&&(e=!0),this._updateChart({shouldAnimate:e,width:i,height:r})}},resizeViewport(e,t){let i=!1;if(this.isInteractive&&this.visualization.isHorizontal){let r=this.horizontalBarChartDimensions(e,t);e=r.viewportWidth,t=r.viewportHeight,i=!0}return this.setProperties({width:e,height:t}),this.chart.resize({width:e,height:t}),i},_updateOptions(e={}){this.chart.clear();let t=Object.assign({},this.chartOptions,e);this.chart.setOption(t,{notMerge:!0,lazyUpdate:!1})},_updateDimensions(){(0,o.schedule)("afterRender",()=>this._updateChart())},_updateThumbnail(){let e=document.createElement("div"),t=(0,y.Ts)(e,null,{renderer:"svg"}),{height:i,width:r}=this;t.resize({height:i,width:r}),t.setOption(this.chartOptions),this.set("thumbnail",t.getConnectedDataURL({type:"svg"})),t.dispose()},_getFormattedResult(){return this.queryRequest.useWidgetEngine?this.queryRequest.result.content:(0,h.t$)(this.type,this.isInteractive,this.visualization,this.applicationTheme,this.selectedSeedColors,this.colorMap,this.labelAngle,this.portfolioVisualizationLabelHeight,this.labelWidthMultiplier,this.queryRequest,void 0,this.targetRow,this.useVisualizationLabelFormatting,!!this.portalChartHoverColor,this.portalChartHoverColor,this.enableVsChartStyling)},_populateChartOptions(){let e=this._getFormattedResult();if(e.hasNoData)return void this.set("hasNoData",!0);this.set("hasNoData",!1);let{chartOptions:t}=e,{height:i,width:r}=this;this.set("chartOptions",(0,m.b7)((0,g.A)(t),{height:i,width:r})),this.chartOptionGrid=this.chartOptions.grid},async getChartCsvData(e){if(this.queryRequest.useWidgetEngine){let t=await this.queryRequest.getDownloadData();return(0,H.V)(this.hasNoData,t,e)}return(0,h.EA)(this.type,this.isInteractive,this.visualization,this.selectedSeedColors,this.colorMap,this.portfolioVisualizationLabelHeight,this.queryRequest,void 0,this.targetRow,e)},_updateChart({shouldAnimate:e=!1,width:t=null,height:i=null}={}){if(this.isDestroying||!this.element)return;let r=this.element,o=t||this.width||r.clientWidth||1,a=i||this.height||r.clientHeight||1;if(a=this.normalizeHeight(a),this.setProperties({width:o,height:a}),this._populateChartOptions(),this.hasNoData)return;let n,s=this.element.querySelector(".chart-wrapper");this.chart||(n=!0,this.chart=(0,y.Ts)(s,null,{renderer:"svg"})),this.resizeViewport(o,a)&&this._populateChartOptions();let l=this.chartOptions;l.animation=e,(n||this.get("parent.isRepGen"))&&(l.animationDuration=()=>0),this.queryRequest.useWidgetEngine?this._updateOptionsFromQuery():this._updateOptions(l),this.isInteractive||this._updateThumbnail()},normalizeHeight(e){return this.initialHeight&&!this.initialHeightUsed?(this.set("initialHeightUsed",!0),this.initialHeight):e},horizontalBarChartDimensions(e,t){let i=this.get("groups.length");this.get("visualization.isStacked")||(i*=this.get("seriesNames.length"));let{top:r,bottom:o}=this.chartOptionGrid,a=p.r6.HORIZONTAL_BAR_MIN_HEIGHT*i+r+o;return t<a&&(t=a,e-=p.r6.SCROLLBAR_WIDTH),{viewportWidth:e,viewportHeight:t}},configChanged:(0,B.action)(function(){this.notifyPropertyChange("serializedQuery"),this._widgetEngineChartOptionsDirty=!0,(0,o.schedule)("afterRender",()=>{this._updateChart()})}),toggleSeries:(0,B.action)(function(e){this.chart.dispatchAction({type:"legendToggleSelect",name:e})}),useVisualizationLabelFormatting:(0,V.readOnly)("parent.useVisualizationLabelFormatting"),targetRow:(0,V.readOnly)("queryRequest.targetRow"),colorMap:(0,V.readOnly)("queryRequest.chartColorMap"),useIntlDateFormat:(0,V.readOnly)("queryRequest.useIntlDateFormat")});const $=(0,G.setComponentTemplate)(U,W)},953623(e,t,i){i.d(t,{A:()=>g});var r=i(877012),o=i(943910),a=i(423431);const n=(0,i(510364).createTemplateFactory)({id:"jHg4vHQ2",block:'[[[11,"article"],[24,0,"text-container read-only-text-container group relative h-full"],[17,1],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],[[30,0,["willDestroyEl"]]],null],[12],[1,"\\n"],[41,[30,0,["queryLoading"]],[[[1," "],[8,[39,3],null,[["@applicationTheme"],[[30,2]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"legacy:text-primary vs:text-vs-primary outline-none cursor-pointer"],[12],[1,"\\n"],[1," "],[2,[30,0,["printedHTML"]]],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["&attrs","@applicationTheme"],false,["on-insert","on-destroy","if","widget/visualization/shared/loading-animation"]]',moduleName:"@addepar/widgets/components/widget/visualization/read-only-text.hbs",isStrictMode:!1});var s,l,u,c,d,p,h=i(618576);function m(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let g=(s=(0,o.computed)("args.fundQueryRequest"),l=(0,o.computed)("visualization.html"),u=(0,o.computed)("queryRequest.result","visualization.html"),c=(0,o.computed)("fundQueryRequest.isLoading","queryRequest.isLoading"),d=(0,o.computed)("hasVariables","html","queryRequest","fundQueryRequest","useWidgetEngine"),m((p=class extends r.A{get fundQueryRequest(){return this.args.fundQueryRequest}get hasVariables(){return this.visualization.html?.includes('data-widget="factorChooser"')}get html(){return this.queryRequest.result?.html??this.visualization.html}get queryLoading(){return this.queryRequest.isLoading||this.fundQueryRequest?.isLoading}get printedHTML(){let{html:e}=this;return!this.useWidgetEngine&&this.hasVariables?(0,a.Ny)(e,this.queryRequest,this.fundQueryRequest):e}}).prototype,"fundQueryRequest",[s],Object.getOwnPropertyDescriptor(p.prototype,"fundQueryRequest"),p.prototype),m(p.prototype,"hasVariables",[l],Object.getOwnPropertyDescriptor(p.prototype,"hasVariables"),p.prototype),m(p.prototype,"html",[u],Object.getOwnPropertyDescriptor(p.prototype,"html"),p.prototype),m(p.prototype,"queryLoading",[c],Ob
1ject.getOwnPropertyDescriptor(p.prototype,"queryLoading"),p.prototype),m(p.prototype,"printedHTML",[d],Object.getOwnPropertyDescriptor(p.prototype,"printedHTML"),p.prototype),p);(0,h.setComponentTemplate)(n,g)},911883(e,t,i){i.d(t,{A:()=>f});var r,o,a,n=i(765632),s=i(979295),l=i(943910),u=i(804204),c=i(753804),d=i(298367);function p(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const m=u.service??u.inject;let g=function(e){return e.split("_").map(e=>(0,c.ZH)(e)).join(" ")},f=(r=(0,l.computed)("args.column.factor.columnFilters.[]"),o=class extends n.A{constructor(){var e;super(...arguments),(e=a)&&Object.defineProperty(this,"permissionService",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0}),p(this,"openPopoverDelay",void 0),p(this,"closePopoverDelay",void 0),p(this,"showFactorDetails",this.args.showFactorDetails??!0),p(this,"showFactorBadges",this.args.showFactorBadges??!0);let t=(0,s.getOwner)(this).resolveRegistration("config:environment");this.openPopoverDelay=t.TIMEOUTS.MEDIUM_LONG,this.closePopoverDelay=t.TIMEOUTS.MEDIUM_LONG}get title(){return this.args.factorTemplate?.displayName}get description(){return this.args.factorTemplate?.description}get canEditAnAttribute(){return this.permissionService.hasCanEditAnAttribute}get hasFirmSettings(){return this.permissionService.hasFirmSettings}get canEditFactor(){return this.canEditAnAttribute&&this.hasFirmSettings}get hasRollupOrInheritance(){return this.rollupMethodology||this.inheritanceBehavior}get rootFilterGroup(){return this.args.column?.factor?.columnFilters?.slice()[0]}get filterGroups(){return this.rootFilterGroup?.filters}get filterCount(){return this.rootFilterGroup?.filterCount}get subtitle(){return(0,d.YP)(this.args.factorDisplayName,this.title)}get rollupMethodology(){let e=this.args.factorTemplate?.rollupMethodology;return e?g(e):null}get inheritanceBehavior(){let e=this.args.factorTemplate?.inheritanceType;return e?"none"===e?"No Inheritance":g(e):null}get popperModifiers(){return{preventOverflow:{boundariesElement:"viewport"}}}get factorLinkId(){return(0,d.DH)(this.args.factorTemplate)}},a=h(o.prototype,"permissionService",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h(o.prototype,"rootFilterGroup",[r],Object.getOwnPropertyDescriptor(o.prototype,"rootFilterGroup"),o.prototype),o)},553058(e,t,i){i.d(t,{A:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"E6Z0glzX",block:'[[[11,0],[24,"data-widget-header",""],[17,1],[12],[1,"\\n "],[10,0],[14,0,"chart-heading panel-heading-sm relative h-8 items-center"],[12],[1,"\\n "],[10,"h3"],[14,0,"chart-title panel-title flex items-center"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[10,"apl-icon"],[15,"icon",[30,2]],[12],[13],[1,"\\n"]],[]],null],[1," "],[10,1],[14,0,"chart-heading-title-text truncate"],[12],[1,"\\n "],[1,[30,3]],[41,[30,4],[[[1,":\\n "],[10,1],[14,0,"quicksearch-match-info"],[12],[1,"\\n Found\\n "],[1,[30,5]],[1,"\\n matching rows\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"],[41,[28,[37,1],[[30,6],[30,7]],null],[[[1," "],[10,"apl-badge"],[15,0,[29,["min-w-fit ",[52,[28,[37,2],[[30,8],"legacy"],null],"mx-1","mx-1.5 mt-[1px]"]]]],[12],[10,1],[14,"slot","content"],[12],[1,"LINKED"],[13],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[18,10,null],[1,"\\n "],[13],[1,"\\n"],[41,[28,[37,1],[[30,9,["showDataAsOfTime"]],[30,9,["dataAsOfDisplay"]]],null],[[[1," "],[10,0],[14,0,"-mb-0.5 -mt-1 h-[22.5px]"],[12],[1,"\\n "],[8,[39,4],[[24,0,"legacy:-ml-2"]],[["@triggerClass","@dataAsOfDisplay","@dataAsOfDescription","@dataUpdateDescriptor"],["text-vs-secondary text-core-body-small truncate",[30,9,["dataAsOfDisplay"]],[30,9,["dataAsOfDescription"]],[30,9,["dataUpdateDescriptor"]]]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[13]],["&attrs","@icon","@title","@quickSearchText","@quickSearchNumMatches","@isTemplate","@isEditing","@applicationTheme","@queryRequest","&controls"],false,["if","and","eq","yield","widget/shared/timestamp"]]',moduleName:"@addepar/widgets/components/widget/visualization/shared/heading.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"heading"))},200035(e,t,i){i.d(t,{A:()=>u}),i(44384);var r,o,a=i(804204),n=i(618576),s=i.n(n);const l=a.service??a.inject;let u=(r=class extends(s()){constructor(...e){var t;super(...e),(t=o)&&Object.defineProperty(this,"resizeObserver",{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(this):void 0}),function(e,t,i){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}(this,"_onElementResized",null)}didInsertElement(){super.didInsertElement(...arguments),this.onElementResized&&(this._onElementResized=(...e)=>{this.element&&this.element.isConnected&&!this.isDestroying&&this.handleResize(...e)},this.resizeObserver.observe(this.element,this._onElementResized))}handleResize(e){let t=e.borderBoxSize&&e.borderBoxSize.length,i=t?e.borderBoxSize[0].inlineSize:e.contentRect.width,r=t?e.borderBoxSize[0].blockSize:e.contentRect.height;this.onElementResized({width:i,height:r})}willDestroyElement(){super.willDestroyElement(...arguments),this.onElementResized&&this.resizeObserver.unobserve(this.element,this._onElementResized)}},c=r.prototype,d="resizeObserver",p=[l],h={configurable:!0,enumerable:!0,writable:!0,initializer:null},m={}
1,Object.keys(h).forEach(function(e){m[e]=h[e]}),m.enumerable=!!m.enumerable,m.configurable=!!m.configurable,("value"in m||m.initializer)&&(m.writable=!0),m=p.slice().reverse().reduce(function(e,t){return t(c,d,e)||e},m),o=void 0===m.initializer?(Object.defineProperty(c,d,m),null):m,r);var c,d,p,h,m},298367(e,t,i){i.d(t,{DH:()=>n,JV:()=>l,YP:()=>a});var r=i(116360);function o(e){let t=[];return e.isCustom?t.push("Custom"):e.isSmsAttribute?t.push("Market Data"):t.push("Built-in"),e.typeDisplayName&&t.push(e.typeDisplayName),e.isMultiValue&&t.push("Multiple Values"),e.hidden&&t.push("Hidden"),t.map(e=>({theme:"neutral",content:e,border:!1}))}function a(e,t){if(!e)return;if(!(e=e.replace(t,"")).length)return;if("..."===e)return;let[i,r]=e.split("(");return i&&(i=i.trim()),r&&(r=r.replace(")","")),[i,r].filter(Boolean).join(", ")}function n(e){if(!e.isCustom){let t=e.key?.toUpperCase()??"";if(r.t.get(t))return t}}function s(e,t){let i=n(e);if(i)return{text:t,linkLabel:"Learn more",linkHref:`${r.L}${r.t.get(i)}`}}function l(e,t,i={}){let r,n=e.template,l=n.displayName,u=n.description;return i.shouldShowPrecomputeFooter&&n.supportsPrecomputeCalculation&&i.formattedLastPrecomputeRefresh&&(r=`Data in this column use precomputed calculations last updated on ${i.formattedLastPrecomputeRefresh}.`),{title:l,subtitle:a(e.displayName,l),message:s(n,u),badges:o(n),action:t?(c=e.factorTemplateSettingHref,{label:"Manage attribute",href:c}):void 0,footerText:r};var c}},430335(e,t,i){i.d(t,{Pr:()=>s,d0:()=>l,hc:()=>n,uI:()=>u});var r=i(256267),o=i(713788);const a=Object.freeze({SORT_GROUPINGS:"Sort groupings",SORT_COLUMNS:"Sort columns",SORT_ASCENDING:"Sort ascending",SORT_DESCENDING:"Sort descending",RESET_SORTING:"Reset sorting",DUPLICATE_COLUMN_LEFT:"Duplicate column left",DUPLICATE_COLUMN_RIGHT:"Duplicate column right",INSERT_COLUMN_LEFT:"Insert column left",INSERT_COLUMN_RIGHT:"Insert column right",SHOW_ROW_NUMBER:"Show row number",HIDE_ROW_NUMBER:"Hide row number",ADD_RIGHT_BORDER:"Add right border",ADD_RIGHT_BORDERS:"Add right borders",REMOVE_RIGHT_BORDER:"Remove right border",REMOVE_RIGHT_BORDERS:"Remove right borders",HEADER_LABEL:"Header label",LINK_COLUMN:"Link column",CELL_FORMAT:"Cell format",EXPAND_TABLE:"Expand table",COLLAPSE_TABLE:"Collapse table",EDIT_ATTRIBUTE:"Edit attribute",FILTER_COLUMN:"Filter column",VISIBILITY:"Visibility",SHORT_HELD_ASSETS:"Short held assets",REMOVE_COLUMN:"Remove column",INSPECT:"Inspect",FIT_ALL_COLUMNS:"Fit all columns to table"});function n(e,t){return[!t&&"readOnly",e.isRightAligned&&"alignRight",(!e.hasBorderRight||!e.canAddBorderRight)&&"hiddenRightBorder",e.hasColumnFilters&&"externalFilterApplied"].filter(Boolean)}function s(e,t){return{"text-tabular":t=>{if(e.isDate){let{value:e}=t;return!/[a-zA-Z]/.test(e)}return e.isNumeric},negative:i=>{let r,{isGeneric:a,useWidgetEngine:n,formatNegativeNumbers:s}=t;if(a){let t=(0,o.pG)(e,i.data,n);r=(0,o.B_)(t,n,s)}else r=(0,o.qh)(e,i.data,s);return r.includes("negative")}}}function l(e,t){let i=[],{canSort:o,canSortWithinGroupings:n,openSortGroupingsModal:s,multiLevelSort:l,sortColumn:u,isSortResettable:c,isSortAscending:d,isSortDescending:p,resetSortColumn:h,isEditable:m,insertColumnRight:g,insertColumnLeft:f,duplicateColumnLeft:y,duplicateColumnRight:b,toggleBorderRight:v,toggleShowRowNumber:w,showRowNumber:_,changeLabelFormat:A,changeValueFormat:T,editColumn:C,canFilterColumn:S,openColumnFilterModal:R,removeColumn:D,setGlobalCollapse:O,canExpandCollapseRows:E,linkColumn:F,associatedInspection:P,openInspector:x,canHideColumn:N,shouldHaveLongDropdownOffset:z,columnDynamicDisplayOptions:I,changeColumnVisibility:M,columnShortHeldAssetDisplayOptions:k,changeColumnShortHeldAssetDisplay:L,fitColumnsToData:j,useAplTable:V}=t,{isSortable:B,isMultiSortable:q,isGroupingColumn:H,isRemovable:U,isPivotColumn:G,canAddBorderRight:W,hasBorderRight:$,hasLabelFormatOptions:Y,labelFormatOptions:K,valueFormatOptions:Q}=e,X=()=>{i.length&&"divider"!==i[i.length-1]?.type&&i.push({type:"divider"})};if(o&&B&&(n&&s?i.push({label:a.SORT_GROUPINGS,callback:s,type:"item",testId:"sort-groupings"}):q&&l&&i.push({label:a.SORT_COLUMNS,callback:()=>l(e),type:"item",testId:"sort-columns"}),V?i.push({...r.sortAscendingMenuItem,selected:d},{...r.sortDescendingMenuItem,selected:p}):i.push({label:a.SORT_ASCENDING,callback:()=>u(e,!0),type:"item",selected:d,testId:"sort-ascending"},{label:a.SORT_DESCENDING,callback:()=>u(e,!1),type:"item",selected:p,testId:"sort-descending"}),c&&h&&(V?i.push({...r.resetSortingMenuItem,callback:t=>{r.resetSortingMenuItem.callback(t),h(e)}}):i.push({label:a.RESET_SORTING,type:"item",callback:()=>h(e),testId:"reset-sorting"})),X()),m){if(X(),H||(y&&i.push({label:a.DUPLICATE_COLUMN_LEFT,callback:()=>y(e),type:"item",testId:"duplicate-column-left"}),b&&i.push({label:a.DUPLICATE_COLUMN_RIGHT,callback:()=>b(e),type:"item",testId:"duplicate-column-right"}),f&&i.push({label:a.INSERT_COLUMN_LEFT,callback:()=>f(e),type:"item",testId:"insert-column-left"})),g&&i.push({label:a.INSERT_COLUMN_RIGHT,callback:()=>g(e),type:"item",testId:"insert-column-right"}),w&&i.push({label:_?a.HIDE_ROW_NUMBER:a.SHOW_ROW_NUMBER,callback:()=>w(),type:"item",testId:"toggle-show-row-number"}),W&&v){let t,r=G&&!H;t=$?r?a.REMOVE_RIGHT_BORDERS:a.REMOVE_RIGHT_BORDER:r?a.ADD_RIGHT_BORDERS:a.ADD_RIGHT_BORDER,i.push({label:t,callback:()=>v(e),type:"item",testId:"toggle-right-border"})}X(),(H||Y)&&A&&i.push({type:"submenu",label:a.HEADER_LABEL,testId:"label-format-dropdown",items:K.map(t=>({label:t.label,callback:()=>A(t.value||t.labelType,e,H?e.groupingFactors?.slice()[0]:e.factor),type:"item",selected:t.isActive}))}),F&&i.push({type:"item",label:a.LINK_COLUMN,callback:()=>F(e),testId:"link-column"}),!H&&Q?.length&&T&&i.push({type:"submenu",label:a.CELL_FORMAT,testId:"value-format-dropdown",max
1MenuHeight:500,submenuWrapperClass:z?"long-dropdown-offset":"",items:Q.map(t=>({label:t.display,callback:()=>T(e,t),type:"item",selected:t.isActive}))}),X(),E&&O&&i.push({label:a.EXPAND_TABLE,callback:()=>O(!1),type:"item"},{label:a.COLLAPSE_TABLE,callback:()=>O(!0),type:"item"}),H||(C&&i.push({label:a.EDIT_ATTRIBUTE,callback:()=>C(e),testId:"edit-attribute",type:"item"}),S&&R&&i.push({label:a.FILTER_COLUMN,callback:()=>R(e),testId:"apply-column-filter",type:"item"}),N&&M&&I&&i.push({type:"submenu",label:a.VISIBILITY,testId:"column-visibility-options",items:I.map(t=>({label:t.displayName,secondaryLabel:t.globalDisplayName,callback:()=>M(e,t.value),selected:t.isActive,value:t.value,type:"item",testId:`column-visibility-option-${t.value}`}))}),L&&k?.length&&i.push({type:"submenu",label:a.SHORT_HELD_ASSETS,testId:"column-short-held-options",items:k.map(t=>({label:t.displayName,callback:()=>L(e,t.value),selected:t.isActive,value:t.value,type:"item",testId:`column-short-held-option-${t.value}`}))}),U&&D&&i.push({label:a.REMOVE_COLUMN,callback:()=>D(e),type:"item",testId:"remove-column"}))}return P&&(X(),i.push({label:a.INSPECT,callback:()=>x(e.factor,P.value),testId:"header-inspect",type:"item"})),j&&(X(),i.push({label:a.FIT_ALL_COLUMNS,callback:j,testId:"fit-columns-to-data",type:"item"})),"divider"===i[i.length-1]?.type&&i.pop(),i}function u(e,t=!1){let i=t=>t.data?.[e],r=e=>i(e)?.links?.[0],o=e=>t?"":r(e)?.href??"",a=e=>r(e)?.type??"text",n=e=>i(e)?.icon,s=e=>i(e)?.displayValue??"",l=e=>"button"===a(e),u=e=>Boolean(o(e))&&"text"===a(e);return{content:{items:[{type:"link",icon:e=>r(e)?.icon,label:s,href:o,renderCondition:l,useIconButton:!0},{type:"link",icon:n,label:s,href:o,renderCondition:u},{type:"icon",icon:n,renderCondition:e=>!o(e)&&Boolean(n(e))},{type:"value",renderCondition:e=>!l(e)&&!u(e)}]}}}},366436(e,t,i){var r=i(943910),o=i.n(r),a=i(496314),n=i(640626),s=i(830819);const l=o().extend({minWidth:(0,r.computed)("tableController.enableVsTableStyling","isGroupingColumn",function(){return this.tableController.enableVsTableStyling,this.isGroupingColumn?140:80}),columnSettings:null,tableColumnSorts:(0,n.alias)("columnSettings.tableColumnSorts"),factor:null,tableController:null,groupingFactors:(0,n.alias)("tableController.queryRequest.query.groupingFactors"),isSortColumn:(0,n.and)("columnSettings","tableColumnSorts.length"),firstSort:(0,r.computed)("tableColumnSorts.[]",function(){return this.tableColumnSorts?.slice()[0]}),hasFullColumnSort:(0,n.equal)("firstSort.sortType",s.Vc.COLUMN),sortIndex:(0,r.computed)("firstSort.sortIndex","hasFullColumnSort","tableColumnSorts.[]",function(){if(this.hasFullColumnSort)return this.firstSort.sortIndex}),isAscending:(0,r.computed)("firstSort.sortDirection","hasFullColumnSort","tableColumnSorts.[]",function(){return this.hasFullColumnSort&&"ascending"===this.firstSort.sortDirection}),isSortAscending:(0,n.readOnly)("isAscending"),isSortDescending:(0,r.computed)("firstSort.sortDirection","hasFullColumnSort","tableColumnSorts.@each.{sortDirection,sortType}",function(){return this.hasFullColumnSort&&"descending"===this.firstSort.sortDirection}),labelFormatOptions:(0,r.computed)("columnSettings.displayNameType","factor.labelFormatOptions","isGroupingColumn",function(){return this.isGroupingColumn?[{label:"Default",value:"default"},{label:"Groupings",value:"groupings"},{label:"Custom",value:"custom"}].map(e=>({...e,isActive:e.value===this.columnSettings.displayNameType})):this.factor?.labelFormatOptions||[]}),valueFormatOptions:(0,n.readOnly)("factor.valueFormatOptions"),isRightAligned:(0,n.or)("factor.{isNumberFactor,isCurrencyF
1actor}"),isNumeric:(0,r.computed)("factor.{valueFormat,isDateFactor,isNumberFactor,isCurrencyFactor}",function(){let{isNumberFactor:e,isCurrencyFactor:t}=this.factor??{};return e||t}),isDate:(0,n.alias)("isDateFactor"),getFactorSortOrdering(){return this.tableController.getFactorSortOrdering(this.factor)},getCellSortKey(e,t=!1){let i=this.getCellValue(e);if(!t)return i;let r=this.getFactorSortOrdering(e);if(!r)return 0;let o=r[i];return o>=0?o:Object.keys(r).length},getCellValue(e){let t=e.get("values"),i=this.valuePath;if((0,a.isEmpty)(t)||i>=t.length)return null;let r=t[i];return r.isNoData?r.isHidden?null:NaN:r.isNotApplicable?null:r.sortKey}});i.d(t,["A",0,l])},713788(e,t,i){i.d(t,{B_:()=>c,ML:()=>l,b0:()=>g,hI:()=>m,ie:()=>p,pG:()=>h,qh:()=>d});var r=i(634512),o=i(967736),a=i(845393),n=i(506601),s=i(496314);function l(e,t){if(!e?.templateRecord?.supportsShortHeldWarning)return;let i=e.shortHeldAssetDisplayPreference??"inherit";return t?.map(e=>({displayName:e.displayName,globalDisplayName:"",value:e.value,isActive:e.value===i}))}function u(e,t,i){return["numeric-table-cell",t&&"is-numeric",i&&t&&e<0&&"negative"].filter(Boolean).join(" ")}function c(e,t,i){let r=NaN;if(t)r=e.value;else{let t=e;t.numericValue?r=Number(t.numericValue):"number"==typeof e&&(r=Number(e))}return u(r,!isNaN(r),i)}function d(e,t,i){if(!t)return u(NaN,!1,!1);if(Object.hasOwn(e,"subcolumns"))return u(NaN,!1,!1);let r=e.getCellValue(t),o=Number(r);return u(o,Boolean(!isNaN(o)||e.isNumeric),i)}function p(e,t,i,a){if("formattedGroupDisplayName"===e.valuePath)return i;let l=(0,o.j)(i);if(void 0!==l)return l;if("icon"===i.type)return i;let u=e.factor,c=t?.factor,d=u.valueFormat||u.defaultValueFormat,p=i.displayName;if("time_period"===u.templateId&&c){let e=c.valueFormat||c.defaultValueFormat;(0,s.isEmpty)(e)||(p=(0,r.GP)(i,c,e))}else d&&u&&(p=(0,r.GP)(i,u,d));(0,s.isNone)(p)&&(p="");let h={...a,warnOnShortHeldAsset:(0,n.Tk)(u,a.warnOnShortHeldAsset)};return(0,n.JX)(p,i,h)}function h(e,t,i){return i?t[e.id]??{}:e.getCellContent?e.getCellContent(t):t.get(e.valuePath)}function m(e,t,i,r){if(r)return e;if(t.getCellValue)return t.getCellValue(i);let o=e;if("name"===t.valuePath)return o;if(null!==o){if("money"===t.valueType)return(0,a.up)(o,t.currency,0);if("percent"===t.valueType)return(0,a.l9)(o)}return o}function g(e,t){if(t&&function(e){if("benchmark_return"===e.factor?.template?.id){let t=e.factor?.args?.find(e=>"pme_calculation_type"===e.templateId),i=t?.get("value")?.value;if((0,s.isNone)(i)||"none"===i)return!1}return!0}(e))return e.factor?.associatedInspections?.[0]}},287896(e,t,i){var r=i(943910),o=i(640626),a=i(545872),n=i(140376),s=i(821009),l=(i(44384),i(713788));const u=a.A.extend({cellContent:(0,r.computed)("unwrappedApi.cellValue","columnValue.valuePath","rowValue.values.[]",{get(){let e=null,t=this.get("columnValue.valuePath");return e="formattedGroupDisplayName"===t?this.get("unwrappedApi.cellValue"):this.get("rowValue.values")[t],e},set:(e,t)=>t}),isIconType:(0,o.equal)("cellContent.type","icon"),isGroupingCell:(0,o.readOnly)("columnValue.isGroupingColumn"),links:(0,r.computed)("isGroupingCell","rowValue.links.[]","cellContent.links.[]",function(){return this.isGroupingCell&&this.rowValue?.links?.length?this.rowValue.links:this.cellContent?.links||[]}),iconContent:(0,r.computed)("cellContent.{color,name}","isIconType",function(){let e=this.cellContent.name,t=this.cellContent.color;return{name:e,style:(0,s.htmlSafe)(`color: ${t.substring(0,7)}`)}}),cellValue:(0,r.computed)("isIconType","iconContent","_highlightedCellValueWithWarnings","links.[]",function(){return this.isIconType?{value:"",isIconType:!0,iconContent:this.iconContent}:{value:this._highlightedCellValueWithWarnings,debugErrorMessage:this._debugErrorMessage,link:this.links[0]}}),_debugErrorMessage:(0,r.computed)("cellContent.error_message",function(){let e=this.get("cellContent.error_message");return e?(0,s.htmlSafe)(e):null}),_highlightedCellValueWithWarnings:(0,n.A)("_unhighlightedCellValueWithWarnings","highlightRegex"),_unhighlightedCellValueWithWarnings:(0,r.computed)("cellContent","cellContent.isHidden","columnValue.{valuePath,factor.valueFormat,factor.defaultValueFormat}","rowValue.factor.{valueFormat,defaultValueFormat}
1","_unhighlightedCellValue","warningSettings.{showShortHeldAssetWarning,showDeannualizedWarning,showDerivedTxWarning,showEstimatedReturnsWarning,showBenchmarkProxyWarning,showNotionalValue}",function(){return(0,l.ie)(this.columnValue,this.rowValue,this.cellContent,this.warningSettings)}),column:(0,o.readOnly)("columnValue"),row:(0,o.readOnly)("rowValue"),classNameBindings:["column.shouldShowBorderRight:ember-table-cell-border-right","getCellClasses"],getCellClasses:(0,r.computed)("column","row","formatNegativeNumbers",function(){return(0,l.qh)(this.column,this.row,this.formatNegativeNumbers)})});i.d(t,["A",0,u])},853273(e,t,i){i.d(t,{A:()=>C});var r=i(943910),o=i(640626),a=i(989272),n=i(496314),s=(i(44384),i(959438)),l=i(928619),u=i(250481),c=i(830819),d=i(366436),p=i(200035),h=i(979295),m=i(430335),g=i(298367),f=i(713788),y=i(140376);const b=(0,i(510364).createTemplateFactory)({id:"B/+04ATh",block:'[[[41,[30,1],[[[1," "],[8,[39,1],null,[["@columns","@footerRowData","@readonly","@rowData","@sorts","@tableStyles","@useCheckbox","@useFindShortcut","@onColumnMoved","@onExpandOrCollapseAll","@onGridReady","@onRowClicked","@onRowDataUpdated","@onRowDoubleClicked","@onRowGroupOpened","@onRowSelected","@onSelectionChanged","@onUpdateSorts","@registerInstance","@visualizationDisplayName","@showFunctionalityBar"],[[30,0,["agGridParams","columns"]],[30,0,["agGridParams","footerRowData"]],[30,0,["agGridParams","readonly"]],[30,0,["agGridParams","rowData"]],[30,0,["agGridParams","sorts"]],[30,0,["agGridParams","tableStyles"]],[30,2],[30,3],[30,0,["agGridParams","onColumnMoved"]],[30,0,["agGridParams","onExpandOrCollapseAll"]],[30,0,["agGridParams","onGridReady"]],[52,[30,0,["canSelectRows"]],[30,0,["bodyRowSelected"]],null],[30,0,["agGridParams","onRowDataUpdated"]],[30,0,["onDoubleClickRow"]],[30,0,["agGridParams","onRowGroupOpened"]],[30,0,["agGridParams","onRowSelected"]],[30,0,["agGridParams","onSelectionChanged"]],[30,0,["agGridParams","onUpdateSorts"]],[30,4],[30,5],[30,6]]],[["functionalityBar"],[[[[1,"\\n "],[18,27,[[30,7]]],[1,"\\n "]],[7]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,3],null,null,[["default"],[[[[1,"\\n "],[8,[39,4],[[24,"data-env-test-id","portfolio-table-header"]],[["@api","@columns","@compareFunction","@containerWidthAdjustment","@fillMode","@multiLevelSort","@onUpdateSorts","@enableReorder","@onReorder","@resizeMode","@sortFunction","@sorts","@widthConstraint","@scrollIndicators"],[[30,8],[30,0,["columns"]],[30,0,["compareFunction"]],[30,0,["containerWidthAdjustment"]],"equal-column","multiLevelSort",[52,[28,[37,5],[[30,9],[28,[37,6],[[30,10]],null]],null],[30,0,["onUpdateSorts"]]],true,[30,11,["reorderColumns"]],"standard",[30,0,["sortFunction"]],[30,0,["sorts"]],[30,0,["widthConstraint"]],[30,12]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@api","@class"],[[30,13],[52,[30,0,["hasGrouping"]],"has-grouping"]]],[["default"],[[[[1,"\\n "],[8,[39,8],null,[["@isInASortingMode","@readonly","@canSort","@canSortWithinGroupings","@hideSortIndicator","@isCollapsed","@isEditable","@enableFactorDescriptionPopovers","@canEditFactor","@hasOpenColumnHeaderDropdown","@duplicateColumnLeft","@duplicateColumnRight","@insertColumnLeft","@insertColumnRight","@multiLevelSort","@openSortGroupingsModal","@toggleBorderRight","@sortColumn","@resetSortColumn","@changeLabelFormat","@changeValueFormat","@changeColumnShortHeldAssetDisplay","@columnShortHeldDisplayOptions","@editColumn","@removeColumn","@setGlobalCollapse","@headerDropdownOpened","@headerDropdownClosed","@openColumnFilterModal","@rowApi","@canOpenInspectorFromHeader","@openInspector","@hasGrouping","@linkColumn","@shouldShowPrecomputeFooter","@formattedLastPrecomputeRefresh","@formattedNextPrecomputeRefresh"],[[28,[37,5],[[30,9],[28,[37,6],[[30,10]],null]],null],[30,10],true,[30,0,["canSortWithinGroupings"]],[30,0,["hideSortIndicator"]],[30,0,["isCollapsed"]],[30,0,["isEditable"]],[30,15],[30,16],[30,0,["hasOpenColumnHeaderDropdown"]],[30,11,["duplicateColumnLeft"]],[30,11,["duplicateColumnRight"]],[30,0,["insertColumnLeft"]],[30,0,["insertColumnRight"]],[30,0,["multiLevelSort"]],[30,0,["openSortGroupingsModal"]],[30,0,["toggleBorderRight"]],[30,0,["sortColumn"]],[30,0,["resetSortColumn"]],[30,0,["changeLabelFormat"]],[30,0,["changeValueFormat"]],[30,0,["changeColumnShortHeldAssetDisplay"]],[30,0,["queryRequest","displaySetting","columnShortHeldAssetDisplayOptions"]],[30,0,["editColumn"]],[30,0,["removeColumn"]],[30,0,["setGlobalCollapse"]],[30,0,["headerDropdownOpened"]],[30,0,["headerDropdownClosed"]],[30,11,["filterColumn"]],[30,14],[30,17],[30,18],[30,0,["hasGrouping"]],[52,[30,19],[3
10,0,["linkColumn"]]],[30,0,["shouldShowPrecomputeFooter"]],[30,0,["formattedLastPrecomputeRefresh"]],[30,0,["formattedNextPrecomputeRefresh"]]]],null],[1,"\\n "]],[14]]]]],[1,"\\n "]],[13]]]]],[1,"\\n "],[8,[39,9],null,[["@api","@rows","@onSelect","@selectingChildrenSelectsParent","@selection"],[[30,8],[30,0,["rowData","bodyRows"]],[52,[30,0,["canSelectRows"]],[30,0,["bodyRowSelected"]],null],false,[30,0,["_separatedSelection","body"]]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@api","@class","@onDoubleClick"],[[30,20],[29,["\\n ",[30,20,["rowValue","classNames"]],"\\n ",[52,[30,20,["rowValue","children"]],"is-grouping-row"],"\\n ",[52,[30,0,["hasGrouping"]],"has-grouping"],"\\n "]],[30,0,["onDoubleClickRow"]]]],[["default"],[[[[1,"\\n "],[8,[39,10],null,[["@api","@class","@highlightRegex","@formatNegativeNumbers","@warningSettings","@onCollapse"],[[30,21],[29,[[30,21,["columnValue","classNames"]]," ",[52,[30,21,["columnMeta","isResizing"]],"is-resizing"]]],[30,21,["rowValue","highlightRegex"]],[30,0,["formatNegativeNumbers"]],[30,0,["warningSettings"]],[30,0,["onRowCollapse"]]]],[["default"],[[[[1,"\\n"],[41,[28,[37,11],[[30,23],[28,[37,11],[[30,20,["rowValue","children"]],[30,21,["columnValue","isGroupingColumn"]]],null]],null],[[[1," "],[10,0],[14,0,"text-core-body-small flex h-4 min-w-4 items-center justify-center rounded-sm hover:cursor-pointer hover:bg-vs-action-secondary-hover"],[12],[1,"\\n "],[10,"apl-icon"],[15,"icon",[52,[30,20,["rowValue","isCollapsed"]],"chevron-right","chevron-down"]],[15,"onclick",[28,[37,12],[[30,0,["onRowCollapse"]],[30,20]],null]],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,22,["isIconType"]],[[[1," "],[10,"i"],[15,0,[29,["fas fa-",[30,22,["iconContent","name"]]]]],[15,5,[30,22,["iconContent","style"]]],[12],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[14,0,"overflow-hidden text-ellipsis"],[12],[1,"\\n"],[41,[30,22,["link"]],[[[1," "],[8,[39,13],null,[["@link","@value","@dataTestStr"],[[30,22,["link"]],[30,22,["value"]],[29,[[30,21,["columnMeta","index"]],"-",[30,21,["rowMeta","index"]]]]]],null],[1,"\\n"]],[]],[[[1," "],[1,[30,22,["value"]]],[1,"\\n"]],[]]],[41,[28,[37,11],[[30,0,["debugMode"]],[30,22,["debugErrorMessage"]]],null],[[[1," "],[11,"i"],[24,0,"fas fa-exclamation-circle"],[4,[38,14],["click",[28,[37,12],[[30,0,["showPDJErrorMessage"]],[30,22,["debugErrorMessage"]]],null]],null],[12],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]]],[1," "]],[22]]]]],[1,"\\n "]],[21]]]]],[1,"\\n "]],[20]]]]],[1,"\\n"],[41,[30,0,["hasFooter"]],[[[1," "],[8,[39,15],null,[["@api","@onSelect","@rows","@selection"],[[30,8],[52,[30,0,["canSelectRows"]],[30,0,["footerRowSelected"]],null],[30,0,["rowData","footerRows"]],[30,0,["_separatedSelection","footer"]]]],[["default"],[[[[1,"\\n "],[8,[39,7],null,[["@class","@api"],[[30,24,["rowValue","classNames"]],[30,24]]],[["default"],[[[[1,"\\n"],[41,[28,[37,16],[[30,25,["columnMeta","index"]],0],null],[[[1," "],[8,[39,17],null,[["@api","@class"],[[30,25],[29,[[30,25,["columnValue","classNames"]]," ",[52,[30,25,["columnMeta","isResizing"]],"is-resizing"]]]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,10],null,[["@api","@class","@formatNegativeNumbers","@warningSettings"],[[30,25],[29,[[30,25,["columnValue","classNames"]]," ",[52,[30,25,["columnMeta","isResizing"]],"is-resizing"]]],[30,0,["formatNegativeNumbers"]],[30,0,["warningSettings"]]]],[["default"],[[[[1,"\\n "],[1,[30,26,["value"]]],[1,"\\n"],[41,[28,[37,11],[[30,0,["debugMode"]],[30,26,["debugErrorMessage"]]],null],[[[1," "],[11,"i"],[24,0,"fas fa-exclamation-circle"],[4,[38,14],["click",[28,[37,12],[[30,0,["showPDJErrorMessage"]],[30,26,["debugErrorMessage"]]],null]],null],[12],[13],[1,"\\n"]],[]],null],[1," "]],[26]]]]],[1,"\\n"]],[]]],[1," "]],[25]]]]],[1,"\\n "]],[24]]]]],[1,"\\n"]],[]],null],[1," "]],[8]]]]],[1,"\\n"]],[]]]],["@useAgGridTable","@useCheckbox","@useFindShortcut","@registerInstance","@visualizationDisplayName","@showFunctionalityBar","functionalityBar","t","@sortInReadonly","@readonly","@visualizationEditor","@scrollIndicators","h","r","@enableFactorDescriptionPopovers","@canEditFactor","@canOpenInspectorFromHeader","@openInspector","@enableColumnLinking","b","r","cellValue","@enableVsTableStyling","f","r","cellValue","&functionalityBar"],false,["if","widget/visualization/table/apl-table","yield","ember-table","ember-thead","or","not","ember-tr","widget/visualization/table/generic-table-header-cell","ember-tbody","widget/visualization/table/portfolio-table-cell","and","fn","widget/visualization/shared/embedded-link","on","ember-tfoot","eq","widget/visualization/table/footer-table-cell"]]',moduleName:"@addepar/widgets/components/widget/visualization/table/portfolio.hbs",isStrictMode:!1});var v=i(618576);const w="formattedGroupDisplayName",_=d.A.extend({defaultHeaderCellName:null,index:null,isLastColumn:null,isMultiSortable:!0,isRemovable:!0,isSortable:!0,isValueColumn:!0,isReorderable:!0,visualization:null,isHiddenSortColumn:(0,o.readOnly)("columnSettings.isHiddenSortColumn"),displayNameType:(0,o.readOnly)("columnSettings.displayNameType"),valueFormat:(0,o.readOnly)("factor.valueFormat"),hasBorderRight:(0,o.reads)("columnSettings.hasBorderRight"),filterGroups:(0,r.computed)("[email protected]",function(){return this.factor?.columnFilters?.slice()[0]?.filters}),hasColumnFilters:(0,r.computed)("[email protected]",function(){return this.filterGroups?.filter(e=>e.hasOrIsLeafFilter).length>0}),hasOpenHeaderDropdown:!1,hasLabelFormatOptions:(0,o.readOnly)("factor.hasLabelFormatOptions"),canAddBorderRight:(0,o.not)("isLastColumn"),shouldShowBorderRight:(0,r.computed)("hasBorderRight","isLastColumn",function(){return this.hasBorderRight&&!this.isLastColumn}),headerCellName:(0,o.readOnly)("factor.headerName"),_classNames:"text-align-right",classNames:(0,r.computed)("_classNames","shouldShowBorderRight",{get(){let e=this._classNames;return this.shouldShowBorderRight&&(e=`${e} ember-table-cell-border-right`),e},set(e,t){return this.set("_classNames",t),t}})}),A=_.extend({isGroupingColumn:!0,isValueColumn:!1,isReorderable:!1,defaultHeaderCellName:"Grouping",isFixed:"left",valuePath:w,width:250,index:0,isLastColumn:!1,classNames:(0,r.computed)("shouldShowBorderRight",function(){let e="text-align-left";return this.shouldShowBorderRight&&(e+=" ember-table-cell-border-right"),e.trim()}),columnSettings:(0,r.computed)("tableController.columnSettings.[]",function(){return this.tableController.columnSettings.slice()[0]}),sortByGroupValueTypes:(0,r.computed)(function(){return["since_date","problem_date"]}),headerCellName:(0,r.computed)("columnSettings.displayName","defaultHeaderCellName","displayNameType","groupingFactors.{@each.displayName,@each.headerName}",function(){switch(this.displayNameType){case"default":{let e=this.groupingFactors?.slice()[0]?.displayName;return e||this.defaultHeaderCellName}case"groupings":return(this.groupingFactors||[]).map(e=>e.displayName).join(" â¶ ");
1case"custom":{let e=this.groupingFactors?.slice()[0]?.headerName;return e||this.columnSettings?.displayName}default:return}}),getCellContent:e=>e.formattedGroupDisplayName,getCellValue(e){let t=e.groupValueType;return(0,l.A)(this.sortByGroupValueTypes,t)?e.groupValue:this.getCellContent(e)},getFactorSortOrdering(e){let t=this.groupingFactors.find(t=>t.displayName===e.get("groupName"));return this.tableController.getFactorSortOrdering(t)}}),T=p.A.extend({totalRow:(0,r.computed)("rowData.footerRows.[]",function(){return this.rowData.footerRows.slice()[0]}),readonly:!1,widthConstraint:"gte-container",selection:(0,r.computed)("_separatedSelection.{body,footer}",{get(){return[...this._separatedSelection?.body??[],...this._separatedSelection?.footer??[]]},set(e,t=[]){let i=t.reduce((e,t)=>(e[t.isFooter?"footer":"body"].push(t),e),{body:[],footer:[]});if(this.disableTotalRow)this._totalRowImplicitlyAddedToSelection=!1;else{let e=i.footer.includes(this.totalRow),t=i.body.length>0&&i.body.length===this.rowData?.bodyRows?.length&&i.body.every(e=>e.parent?.isTotalRow);(e||t)&&(i={body:this.rowData?.bodyRows,footer:[this.totalRow]}),this._totalRowImplicitlyAddedToSelection=t&&!e}return this.set("_separatedSelection",i),this._syncSelectionToAgGrid(),[...i.body,...i.footer]}}),_separatedSelection:null,_managedSelection:(0,r.computed)("selection",function(){let e=this.selection;return this._totalRowImplicitlyAddedToSelection?e.filter(e=>!e.isTotalRow):e}),isTotalRowSelected:(0,r.computed)("selection.[]","totalRow",function(){return this.selection.includes(this.totalRow)}),queryRequest:void 0,visualization:void 0,quickSearch:void 0,quickSearchNumMatches:0,hasFooter:!0,shouldShowPrecomputeFooter:(0,o.and)("visualizationEditor.featureFlags.flags.boolean.precompute_calculation_toggle","query.enablePrecomputeCalculation"),formattedLastPrecomputeRefresh:(0,o.readOnly)("queryRequest.formattedLastPrecomputeRefresh"),isCollapsedByDefault:!1,isEditable:!0,selectionMode:"multiple",showTotalRow:!0,scrollbarWidth:(0,r.computed)("applicationTheme",function(){return"legacy"===(this.applicationTheme??"legacy")?8:15}),containerWidthAdjustment:(0,r.computed)("widthConstraint","scrollbarWidth",function(){let e="eq-container"===this.widthConstraint?2:0;return-(2+this.scrollbarWidth+e)}),hasOpenColumnHeaderDropdown:(0,r.computed)("[email protected]",function(){return this.columns.some(e=>e.hasOpenHeaderDropdown)}),init(){this._super(...arguments),this._createdColumns=[],this.queryRequest.serializeCollapseState(this.rowData.bodyRows),this.updateSortQuery(),this.quickSearch&&this.scheduleQuickSearch(),this.registerInstance?.(this),this._forceRerender=()=>{this.isDestroying||this.notifyPropertyChange("data")}},forceRerenderOnResize:!1,onElementResized(){if(this.forceRerenderOnResize&&this.enableDynamicHeight){let e=(0,h.getOwner)(this).resolveRegistration("config:environment");(0,a.debounce)(this,this._forceRerender,e.TIMEOUTS.SHORT)}},onHeightChanged:null,didInsertElement(){if(this._super(...arguments),this.onHeightChanged&&this.enableDynamicHeight){this._overflowObserver=new ResizeObserver(()=>this.onHeightChanged());let e=this.useAgGridTable?this.element.querySelector(".widgets-apl-table"):this.element.querySelector(".ember-table-overflow");this._overflowObserver.observe(e)}},didReceiveAttrs(){this._super(),void 0!==this._prevCollapseState&&this._prevCollapseState!==this.isCollapsedByDefault&&this.setGlobalCollapse(this.isCollapsedByDefault),this.set("_prevCollapseState",this.isCollapsedByDefault),void 0!==this._prevQuickSearch&&this._prevQuickSearch!==this.quickSearch&&this.scheduleQuickSearch(),this.set("_prevQuickSearch",this.quickSearch)},willDestroyElement(){this._overflowObserver?.disconnect(),this._super(...arguments)},updateSortQuery(){let e=this._findSortColumns(),t=u.CD(e),i=[];this.columnSettings?.forEach((e,t)=>{e?.isHiddenSortColumn&&i.push(t)}),t.forEach(e=>delete e.column),this.set("queryRequest.sortings",t),this.set("queryRequest.hiddenColumnIndexes",i)},columnSettings:(0,o.readOnly)("visualization.columnSettings"),data:(0,o.readOnly)("queryRequest.result"),isLoading:(0,o.readOnly)("queryRequest.isLoading"),tableStyles:(0,o.readOnly)("queryRequest.result.tableStyles"),query:(0,o.readOnly)("queryRequest.query"),disableTotalRow:(0,o.readOnly)("query.disableTotalRow"),maxGroupLevel:(0,o.readOnly)("data.groupingFactors.length"),isCollapsed:(0,o.oneWay)("isCollapsedByDefault"),canSelectRows:(0,r.computed)("selectionMode",function(){return"none"!==this.selectionMode}),hideSortIndicator:(0,r.computed)("sorts.[]",function(){return this.sorts.some(e=>e.sortType===c.Vc.GROUPING)}),disableCustomSortOrdering:!1,canSortWithCustomOrdering:(0,o.not)("disableCustomSortOrdering"),canSortWithinGroupings:!0,sorts:(0,r.computed)("allColumnObjects.@each.{isAscending,isSortable,isSortColumn,sortIndex}",{get(){let e=this._findSortColumns();return u.CD(e)}
1,set(e,t){this.visualization.resetColumnSorts(),t.forEach(e=>{e.column||(e.column=this._findColumnByValuePath(e.valuePath))}),this.queryRequest.updateSorts(t,this.visualizationEditor);let i=this._findSortColumns();return u.CD(i)}}),_findColumnByValuePath(e){return this.allColumnObjects.find(t=>t.valuePath===e)},_findSortColumns(){return this.allColumnObjects.filter(e=>e.isSortColumn&&e.isSortable)},getColumnByValueFactor(e){return this.allColumnObjects.find(t=>t.factor===e)},addValueFactorsFromSorts:(0,r.action)(function(e){this.visualizationEditor.onAddValueFactorsFromSorts(e);for(let t of e)t.column=this.getColumnByValueFactor(t.factor),delete t.factor}),possiblyUniqueIdForFactor(e,t,i){let r=e.factorId||e.headerName;return t.includes(r)&&(r=`${r}_${i}`),t.push(r),r},allColumnObjects:(0,r.computed)("columnSettings","visualization","data.query.valueFactors.[]","queryRequest.query.groupingFactors.[]","groupingColumn.columnSettings",{get(){let e=this.columnSettings,t=this.visualization;if(!this.data)return[];let i=this.data?.query?.valueFactors;if((0,n.isNone)(i))return[];let r=i.map((i,r)=>{let o=null;(0,n.isNone)(e)||(o=e.slice()[r+1]);let a=_.create({columnSettings:o,factor:i,index:r+1,tableController:this,valuePath:`${r}`,visualization:t});return this._createdColumns.push(a),a});r.length>0&&r.at(-1).set("isLastColumn",!0),r.unshift(this.groupingColumn);let o=this.queryRequest?.query?.groupingFactors?.[0];if(!(0,n.isNone)(this.visualization)&&!(0,n.isNone)(o)){let e=this.groupingColumn?.columnSettings;(0,a.schedule)("afterRender",()=>e.set("displayName",o.displayNames?.custom)),"groupings"===e.displayNameType?o.set("displayNameType","default"):e.set("displayNameType",o.displayNameType)}return r},set:(e,t)=>t}),columns:(0,r.computed)("[email protected]",{get(){return this.allColumnObjects.filter(e=>!e.isHiddenSortColumn)},set:(e,t)=>t}),groupingColumn:(0,r.computed)("visualization",function(){let e=this.visualization,t=A.create({tableController:this,visualization:e});return this._createdColumns.push(t),t}),getFactorSortOrdering(e){return this.queryRequest.getFactorSortOrdering(e)},valueColumns:(0,r.computed)("columns.[]",function(){return this.columns.slice(1)}),removeValueFactorFromQuery(e){this.visualizationEditor._removeValueFactor(e)},getColumnIndex(e){return this.valueColumns.indexOf(e)},_uncollapsedRowData:(0,r.computed)("data.rows.[]",function(){let e=this.data?.rows;if((0,n.isNone)(e))return{bodyRows:[],footerRows:[]};let t=this.queryRequest?.query?.metricFactors;e.forEach(i=>{if(i.setProperties({children:i.childrenIndex.map(t=>e.at(t)),depth:i.groupLevel,maxDepth:this.maxGroupLevel}),"factor_configuration"===i.groupValueType){let e=t.slice()[i.groupIndex];e&&i.set("factor",e)}});let i=[],r=e[0],o=r.children;if(r.set("children",[]),this.showTotalRow){let e=r.metricRows,o=r.benchmarks;e.forEach((e,i)=>{e.set("factor",t.slice()[i]),e.set("nodeType","metric")}),r.set("canBeSelected",this.canSelectRows),i=[...o,...e],(!(e.length>0)||this.data.groupingFactors.length>0)&&!this.disableTotalRow&&(i=[r,...i])}return i.forEach(e=>e.set("isFooter",!0)),{bodyRows:o,footerRows:i}}),hasGrouping:(0,r.computed)("rowData.bodyRows",function(){return this.rowData.bodyRows.some(e=>e.children?.length)}),rowData:(0,r.computed)("_uncollapsedRowData","isCollapsed",function(){let{bodyRows:e,footerRows:t}=this._uncollapsedRowData,i=this.queryRequest?.collapseTree?.isCollapsed,r=(0,n.isEmpty)(i)?this.isCollapsed:i;return this._setCollapseState(e,r),this._setCollapseState(t,r),this.queryRequest.deserializeCollapseState(e),(0,a.schedule)("afterRender",()=>this.rowDataChanged?.(e.length)),{bodyRows:e,footerRows:t}}),warningSettings:(0,o.readOnly)("queryRequest.warningSettings"),formatNegativeNumbers:(0,o.readOnly)("queryRequest.formatNegativeNumbers"),_buildAgGridGroupingSortColumns(){return this.sorts.filter(({sortType:e})=>"grouping"===e).map(e=>{let{isAscending:t,groupingFactorId:i,sortIndex:r}=e;return{field:u.qw(i),hide:!0,sort:t?"asc":"desc",sortIndex:r,getCellValue:()=>null}})},_extractAgGridCellValueErrorMessage(e,t){let i=e.valuePath;return(0,n.isNone)(t)||(0,n.isEmpty)(i)||i===w?null:t.values?.[i]?.error_message},_buildAgGridChildColumn(e){let t,{valuePath:i,isSortAscending:r,isSortDescending:o}=e;r?t="asc":o&&(t="desc");let a=(0,m.d0)(e,{canExpandCollapseRows:e.isGroupingColumn,canFilterColumn:!e.isPivotColumn,canSort:!0,canSortWithinGroupings:!0,isEditable:!this.readonly,isSortAscending:e.isSortAscending,isSortDescending:e.isSortDescending,isSortResettable:!0,useAplTable:!0,changeLabelFormat:this.changeLabelFormat,changeValueFormat:this.changeValueFormat,changeColumnShortHeldAssetDisplay:this.changeColumnShortHeldAssetDisplay,columnShortHeldAssetDisplayOptions:(0,f.ML)(e.factor,this.queryRequest.displaySetting.columnShortHeldAssetDisplayOptions),duplicateColumnLeft:this.visualizationEditor?.duplicateColumnLeft,duplicateColumnRight:this.visualizationEditor?.duplicateColumnRight,editColumn:this.editColumn,insertColumnLeft:this.insertColumnLeft,insertColumnRight:this.insertColumnRight,openColumnFilterModal:this.visualizationEditor?.filterColumn,openSortGroupingsModal:this.openSortGroupingsModal,removeColumn:this.removeColumn,resetSortColumn:this.resetSortColumn,setGlobalCollapse:this.setGlobalCollapse,sortColumn:this.sortColumn,toggleBorderRight:this.toggleBorderRight,associatedInspection:(0,f.b0)(e,this.canOpenInspectorFromHeader),openInspector:this.openInspectorWithSelectionCheck}),n=e.factor,s=this.enableFactorDescriptionPopovers&&n?(0,g.JV)(n,this.canEditFactor,{shouldShowPrecomputeFooter:this.shouldShowPrecomputeFooter,formattedLastPrecomputeRefresh:this.formattedLastPrecomputeRefresh}):void 0,l=this.sortInReadonly||!this.readonly,u={content:{items:[{type:"value"},{type:"icon",icon:"triangle-exclamation_solid",color:"var(--color-icon-warning)",ariaLabel:"View error details",renderCondition:t=>this.debugMode&&this._extractAgGridCellValueErrorMessage(e,t.data),callback:t=>{this.showPDJErrorMessage(this._extractAgGridCellValueErrorMessage(e,t.data),{vsMode:!0})}}]}};return{cellClassRules:(0,m.Pr)(e,{formatNegativeNumbers:this.formatNegativeNumbers}
1),context:e,field:e.headerCellName,headerName:e.headerCellName,headerPopoverContent:s,hide:e.isHiddenSortColumn,menuItems:a,minWidth:e.minWidth,pinLeft:e.isGroupingColumn,sort:t??null,sortIndex:e.sortIndex??null,sortable:e.isSortable,type:(0,m.hc)(e,l),useGrouping:e.isGroupingColumn&&this.hasGrouping,valuePath:i,getCellValue:t=>{let i=e.valuePath||"",r=i===w?t[i]:t.values?.[i],o=(0,f.ie)(e,t,r,this.warningSettings),{highlightRegex:a}=t,n={unhighlightedCellValueWithWarnings:o,highlightRegex:a};return(0,y.O)(n,"unhighlightedCellValueWithWarnings","highlightRegex")},cellRendererParams:u}},_buildAgGridColumn(e){return this._buildAgGridChildColumn(e)},agGridParams:(0,r.computed)("rowData.{bodyRows,footerRows}","allColumnObjects","allColumnObjects.@each.{canAddBorderRight,hasColumnFilters,displayNameType,valueFormat}","[email protected]","query.valueFactors.@each.{valueFormat,shortHeldAssetDisplayPreference}","[email protected]","groupingColumn","groupingColumn.headerCellName","_buildAgGridColumn","compareFunction","formatNegativeNumbers","sortInReadonly","setGlobalCollapse","readonly","sorts","tableStyles","onUpdateSorts",function(){return{columns:[...this.allColumnObjects.map((e,t)=>this._buildAgGridColumn(e,t)),...this._buildAgGridGroupingSortColumns()],footerRowData:this.rowData.footerRows,readonly:this.readonly,rowData:this.rowData.bodyRows,sorts:this.sorts??[],tableStyles:this.tableStyles,onColumnMoved:e=>this.onColumnMoved(e),onExpandOrCollapseAll:this.setGlobalCollapse,onGridReady:e=>this._onAgGridReady(e),onRowDataUpdated:()=>this._syncSelectionToAgGrid(),onRowGroupOpened:(e,t)=>{e.set("isCollapsed",t),this.onRowCollapse({rowValue:e})},onRowSelected:e=>this._onAgGridRowSelected(e),onSelectionChanged:e=>this._onAgGridSelectionChanged(e),onUpdateSorts:this.onUpdateSorts}}),sortFunction:(e,t,i,r)=>e.shouldDisregardSorting||t.shouldDisregardSorting?0:r(e,t,i),compareFunction:(e,t,i)=>u.Xb(e,t,i),_quickSearchScheduled:0,scheduleQuickSearch(){this._quickSearchScheduled++,(0,a.schedule)("afterRender",this,this.doQuickSearch)},doQuickSearch(){if(this._quickSearchScheduled--,this._quickSearchScheduled||this.isDestroying)return;let e=this.quickSearch;(0,n.isNone)(e)||(e=e.trim());let t=e?new RegExp(e,"i"):null,i=this.rowData.bodyRows.reduce((e,i)=>e+this._recursiveSearch(i,t),0);i+=this._recursiveSearch(this.rowData?.footerRows[0],t),this.set("quickSearchNumMatches",i)},_recursiveSearch(e,t){let i=!0,r=0,o=e.children;return(0,n.isEmpty)(o)||o.forEach(e=>{let o=this._recursiveSearch(e,t);o>0&&(i=!1,r+=o)}),this._rowMatchesSearch(e,t)?(e.set("highlightRegex",t),i=!1,r+=1):e.set("highlightRegex",null),(0,n.isNone)(t)?0:((0,n.isEmpty)(o)||e.set("isCollapsed",i),r)},_rowMatchesSearch(e,t){if(!t)return!1;if(t.test(e.groupDisplayName))return!0;let i=e.values;return!(0,n.isEmpty)(i)&&i.some(e=>t.test(e.display_string))},willDestroy(){this._super(),this._createdColumns.forEach(e=>e.destroy())},_agGridApi:null,_lastUserClickedNode:null,_onAgGridReady(e){this._agGridApi=e.api},_onAgGridRowSelected(e){"api"!==e.source&&(this._lastUserClickedNode=e.node)},_onAgGridSelectionChanged(e){if("api"===e.source)return;let t=this._lastUserClickedNode;this._lastUserClickedNode=null;let i=this._resolveGroupedSelection(e,t);this._setSelection(i)},_resolveGroupedSelection(e,t){let i=e.api;if(t?.group){let e=t.allLeafChildren??[];e.length>0&&i.setNodesSelected({nodes:e,newValue:Boolean(t.isSelected()),source:"api"})}else if(t&&!t.isSelected()){let e=t.parent;e?.group&&e.isSelected()&&i.setNodesSelected({nodes:[e],newValue:!1,source:"api"})}return i.getSelectedNodes().filter(e=>!(e.parent?.group&&e.parent.isSelected())).map(e=>e.data)},_syncSelectionToAgGrid(){let e=this._agGridApi;if(!this.useAgGridTable||!e)return;let t=new Set;for(let i of this._separatedSelection?.body??[]){let r=e.getRowNode(String(i.id));if(r){t.add(r);for(let e of r.allLeafChildren??[])t.add(e)}}let i=e.getSelectedNodes().filter(e=>!t.has(e));i.length>0&&e.setNodesSelected({nodes:i,newValue:!1,source:"api"}),t.size>0&&e.setNodesSelected({nodes:Array.from(t),newValue:!0,source:"api"})},_setSelection(e){if(!this.canSelectRows)return;let t={};s.Ay.EventTarget.mixin(t),t.on("confirm",()=>{this.set("selection",e),this.selectionDidChange(this._managedSelection)}),this.selectionChangeRequest(t)},_selectAll(){return this._setSelection([...this.rowData.bodyRows,this.totalRow])},_deselectAll(){this._setSelection([])},_setCollapseState(e,t,i=!1){let r;
1e.forEach(e=>{r=i?t:t||e.collapsed,e.set("isCollapsed",r),this._setCollapseState(e.children,t,i)})},onUpdateSorts:(0,r.action)(function(e,t){let i=e;t&&(i=e.map(e=>{let t=this.columns[e.columnIndex];return{...e,valuePath:t.valuePath,column:t}})),this.set("sorts",i),this.updateSortQuery()}),onColumnMoved:(0,r.action)(function(e){if(e.column&&e.finished){let t=this.allColumnObjects.find(t=>t.headerCellName===e.column.getColId());this.visualizationEditor.updateColumnsOrderQuery(t,e.toIndex-1)}}),setGlobalCollapse:(0,r.action)(function(e,t){t?.stopPropagation(),this.set("isCollapsed",e),this._setCollapseState(this.rowData.bodyRows,e,!0),this.queryRequest.serializeCollapseState(this.rowData.bodyRows)}),linkColumn:(0,r.action)(function(e){this.visualizationEditor.openLinkColumnModal(e)}),bodyRowSelected:(0,r.action)(function(e){this.useAgGridTable?this._setSelection([e.data]):this._setSelection(e)}),footerRowSelected:(0,r.action)(function(e){let t=this.isTotalRowSelected,i=e.some(e=>e.isTotalRow);t&&i?this._deselectAll():this._setSelection(e)}),changeLabelFormat:(0,r.action)(function(e,t){this.visualizationEditor.changeLabelFormat(e,t)}),changeValueFormat:(0,r.action)(function(e,t){this.visualizationEditor.changeValueFormat(e,t)}),changeColumnShortHeldAssetDisplay:(0,r.action)(function(e,t){this.visualizationEditor.changeColumnShortHeldAssetDisplay(e,t)}),onDoubleClickRow:(0,r.action)(function({event:e}){this.canSelectRows&&"INPUT"!==e.target.tagName&&this.doubleClickTable()}),onRowCollapse:(0,r.action)(function({rowValue:e,rowMeta:t}){let i=e.isCollapsed;if(this.enableVsTableStyling&&!this.useAgGridTable&&t.toggleCollapse(),!1===i&&!this.isCollapsedByDefault)for(;1===e.children?.length;){let t=e.children?.[0];t.set("isCollapsed",i),e=t}this.queryRequest.serializeCollapseState(this.rowData.bodyRows)}),showPDJErrorMessage:(0,r.action)(function(e,{vsMode:t}={}){this.queryRequest.showPDJErrorMessage(e,{vsMode:t})}),editColumn:(0,r.action)(function(e,t){this.useAgGridTable&&(t=this.element.querySelector(`.ag-header-cell[col-id="${e.headerCellName}"]`)),this.visualizationEditor.editColumn(e,t)}),removeColumn:(0,r.action)(function(e){this.removeValueFactorFromQuery(e.factor)}),sortColumn:(0,r.action)(function({valuePath:e},t){this.set("sorts",[{isAscending:t,valuePath:e}])}),resetSortColumn:(0,r.action)(function(){this.visualization.resetColumnSorts(),this.queryRequest.execute(!0)}),openSortGroupingsModal:(0,r.action)(function(){let{sorts:e,canSortWithCustomOrdering:t,addValueFactorsFromSorts:i,onUpdateSorts:r}=this,o=this.allColumnObjects.filter(e=>e.isSortable);this.visualizationEditor.openSortGroupingsModal({sorts:e,columns:o,canSortWithCustomOrdering:t,addValueFactorsFromSorts:i,onUpdateSorts:r})}),multiLevelSort:(0,r.action)(function(e){let{sorts:t,onUpdateSorts:i}=this,r=this.columns.filter(e=>e.isSortable);this.visualizationEditor.multiLevelSort({sorts:t,column:e,columns:r,onUpdateSorts:i})}),tableHeaderSelector:(0,r.computed)("useAgGridTable",function(){return this.useAgGridTable?".ag-header-cell":"th"}),insertColumnLeft:(0,r.action)(function(e){let{element:t,tableHeaderSelector:i,enableVsTableStyling:r}=this;this.visualizationEditor.insertColumnLeft(e,{element:t,tableHeaderSelector:i,addRightBorderByDefault:r})}),insertColumnRight:(0,r.action)(function(e){let{element:t,tableHeaderSelector:i,enableVsTableStyling:r}=this;this.visualizationEditor.insertColumnRight(e,{element:t,tableHeaderSelector:i,addRightBorderByDefault:r})}),toggleBorderRight:(0,r.action)(function(e){e.columnSettings.toggleProperty("hasBorderRight")}),headerDropdownOpened:(0,r.action)(function(e){let t=this.columns.find(t=>t.index===e);t&&!t.isDestroying&&t.set("hasOpenHeaderDropdown",!0)}),headerDropdownClosed:(0,r.action)(function(e){let t=this.columns.find(t=>t.index===e);t&&!t.isDestroying&&t.set("hasOpenHeaderDropdown",!1)}),openInspectorWithSelectionCheck:(0,r.action)(async function(e,t){0===this.selection.length&&await this._selectAll(),this.openInspector(e,t)}),debugMode:(0,o.reads)("query.debugMode")}),C=(0,v.setComponentTemplate)(b,T)},526481(e,t,i){i.d(t,{A:()=>M});var r=i(953623),o=i(830819),a=i(943910),n=i(804204),s=i(279564),l=i(137761);const u=(0,i(510364).createTemplateFactory)({id:"YGj0prIY",block:'[[[11,"article"],[24,0,"text-container group relative h-full"],[17,1],[4,[38,0],[[30,0,["didInsertEl"]]],null],[4,[38,1],[[30,0,["didUpdateSelectedState"]],[30,2]],null],[4,[38,2],[[30,0,["willDestroyEl"]]],null],[12],[1,"\\n"],[41,[28,[37,4],[[28,[37,5],[[30,3]],null],[28,[37,5],[[30,0,["textEditor","isEditing"]]],null]],null],[[[1," "],[10,"aside"],[14,0,"absolute right-4 top-0 z-10 rounded vs:group-hover:apl-elevation-surface-1 legacy:group-hover:bg-white"],[12],[1,"\\n "],[18,12,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[28,[37,4],[[30,0,["hasVariables"]],[30,0,["queryLoading"]]],null],[[[1," "],[8,[39,7],null,[["@applicationTheme"],[[30,4]]],null],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["legacy:text-primary curs
1or-pointer outline-none vs:text-vs-primary\\n ",[52,[30,0,["textEditor","isEditing"]],"hidden"]]]],[12],[1,"\\n"],[1," "],[2,[30,0,["printedHTML"]]],[1,"\\n "],[13],[1,"\\n"],[41,[28,[37,8],[[30,2],[30,5]],null],[[[1," "],[8,[39,9],null,[["@registerInstance","@unregisterInstance","@startDate","@endDate","@html","@queryRequest","@fundQueryRequest","@isFundContextAvailable","@updateHTML","@updateEditorReadiness","@ckeditorBackgroundColor","@ckeditorTextColor","@ckeditorSelectedTextColor","@positionAbsolute","@focusOnInit","@cssOverrideStyleSheet","@defaultFontSizePixels","@fontFormats","@fontNameOptions","@lineSpacingOptions","@onLoad","@fontSizes","@minFontSize","@maxFontSize","@isAllSelected"],[[30,0,["registerTextEditor"]],[30,0,["unregisterTextEditor"]],[30,0,["queryRequest","startDate"]],[30,0,["queryRequest","endDate"]],[30,0,["html"]],[30,6],[30,7],[30,8],[30,0,["updateHTML"]],[30,9],[30,0,["ckeditorBackgroundColor"]],[30,0,["ckeditorTextColor"]],[30,0,["ckeditorSelectedTextColor"]],false,[30,10],[30,11],[30,0,["defaultFontSizePixels"]],[30,0,["fontFormats"]],[30,0,["fontNameOptions"]],[30,0,["lineSpacingOptions"]],[30,0,["onLoad"]],[30,0,["fontSizeOptions"]],[30,0,["minFontSize"]],[30,0,["maxFontSize"]],[30,5]]],null],[1,"\\n"]],[]],null]],[]]],[13]],["&attrs","@isSelected","@readonly","@applicationTheme","@isAllSelected","@queryRequest","@fundQueryRequest","@isFundContextAvailable","@updateEditorReadiness","@focusOnInit","@cssOverrideStyleSheet","&controls"],false,["on-insert","on-update","on-destroy","if","and","not","yield","widget/visualization/shared/loading-animation","or","text-editor"]]',moduleName:"@addepar/widgets/components/widget/visualization/text.hbs",isStrictMode:!1});var c,d,p,h,m,g,f,y,b,v,w,_,A,T,C,S,R,D,O,E,F=i(618576);function P(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function x(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}function N(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const z=n.service??n.inject;class I{constructor(){N(this,"selectAllElements",()=>{}),N(this,"set",()=>{}),N(this,"send",()=>{}),N(this,"readHTML",()=>""),N(this,"unselect",()=>{}),N(this,"focus",()=>{}),N(this,"clearFontColor",()=>{}),N(this,"selectedFontFormat",{tag:""}),N(this,"selectedLineSpacing",{value:"",size:void 0}),N(this,"selectedFontName",{fontName:""}),N(this,"selectedFontSize",{size:13}),N(this,"selectedFontColor",""),N(this,"isBold",!1),N(this,"isItalic",!1),N(this,"isUnderlined",!1),N(this,"isLeftJustified",!1),N(this,"isCenterJustified",!1),N(this,"isRightJustified",!1),N(this,"isEditing",!1)}}let M=(c=(0,a.computed)("args.applicationTheme"),d=(0,a.computed)("args.applicationTheme"),p=(0,a.computed)("args.applicationTheme"),h=(0,a.computed)("args.fontFormats"),m=(0,a.computed)("args.fontNameOptions"),g=(0,a.computed)("args.defaultFontSizePixels"),f=(0,a.computed)("minFontSize","maxFontSize"),y=(0,a.computed)("args.minFontSize"),b=(0,a.computed)("args.maxFontSize"),v=(0,a.computed)("defaultFontSizePixels","fontFormats","fontNameOptions","ckeditorTextColor"),w=(0,a.computed)("defaultOptions.textStyle","fontFormats","textEditor.selectedFontFormat.tag","args.isAllSelected"),_=(0,a.computed)("args.isAllSelected","defaultOptions.lineSpacing","textEditor.selectedLineSpacing.{size,value}"),A=(0,a.computed)("textEditor.{isBold,isItalic,isUnderlined}"),T=(0,a.computed)("defaultOptions.fontWeight","fontNameOptions","textEditor.selectedFontName.fontName","args.isAllSelected"),C=(0,a.computed)("textEditor.{isLeftJustified,isCenterJustified,isRightJustified}"),S=(0,a.computed)("defaultOptions.fontSizePixels","textEditor.selectedFontSize.size","args.isAllSelected"),R=(0,a.computed)("defaultOptions.fontColor","textEditor.selectedFontColor"),D=class extends r.A{constructor(...e){super(...e),P(this,"textEditor",O,this),P(this,"featureFlags",E,this),N(this,"lineSpacingOptions",[...o.WU])}
1get ckeditorBackgroundColor(){return"dark"===this.args.applicationTheme?"#1a1b1e":"light"===this.args.applicationTheme||"legacy"===this.args.applicationTheme?"#ffffff":void 0}get ckeditorTextColor(){return"dark"===this.args.applicationTheme?"#fafafa":"light"===this.args.applicationTheme?"#0E0F11":"#333333"}get ckeditorSelectedTextColor(){return"dark"===this.args.applicationTheme?"rgba(46, 130, 255, 0.2)":"light"===this.args.applicationTheme?"rgba(231, 238, 248, 1)":"#d7ebfa"}get fontFormats(){return this.args.fontFormats??o.JS}get fontNameOptions(){return this.args.fontNameOptions??o.qI}get defaultFontSizePixels(){return this.args.defaultFontSizePixels??13}get fontSizeOptions(){return(0,l.A)(this.minFontSize,this.maxFontSize+1).map(e=>({size:e,name:String(e)}))}get minFontSize(){return this.args.minFontSize??o.v0}get maxFontSize(){return this.args.maxFontSize??o.l6}get defaultOptions(){let e=this.fontFormats.find(({value:e})=>"p"===e)?.value;return{textStyle:e,fontWeight:this.fontNameOptions.find(({label:e})=>"Regular"===e).value,fontSizePixels:`${this.defaultFontSizePixels}px`,lineSpacing:o.WU.find(({label:e})=>"Default"===e).value,fontColor:this.ckeditorTextColor}}get textStyle(){if(!this.textEditor.selectedFontFormat&&this.args.isAllSelected)return"";let e=this.textEditor.selectedFontFormat?.tag,t=this.fontFormats.find(t=>t.value===e);return t?.value??this.defaultOptions.textStyle}get lineSpacing(){return!this.textEditor.selectedLineSpacing&&this.args.isAllSelected?"":this.textEditor.selectedLineSpacing?.size??this.defaultOptions.lineSpacing}get activeFontStyles(){let e=new Set;return this.textEditor.isBold&&e.add("bold"),this.textEditor.isItalic&&e.add("italic"),this.textEditor.isUnderlined&&e.add("underline"),e}get fontWeight(){if(!this.textEditor.selectedFontName&&this.args.isAllSelected)return"";let e=this.textEditor.selectedFontName?.fontName,t=this.fontNameOptions.find(t=>t.value===e);return t?.value??this.defaultOptions.fontWeight}get alignment(){return this.textEditor.isLeftJustified?"left":this.textEditor.isCenterJustified?"center":this.textEditor.isRightJustified?"right":void 0}get fontSize(){return!this.textEditor.selectedFontSize&&this.args.isAllSelected?"":this.textEditor.selectedFontSize?.size??this.defaultOptions.fontSizePixels}get selectedFontColor(){return this.textEditor.selectedFontColor??this.defaultOptions.fontColor}registerTextEditor(e){this.textEditor=e}unregisterTextEditor(){this.textEditor=new I}updateHTML(e){this.visualization.set("html",e)}applyAndUpdateVisualization(e,t){this.textEditor instanceof I||(this.args.isAllSelected&&(this.textEditor.set("isEditing",!0),this.textEditor.selectAllElements()),this.textEditor.send(e,t),this.args.isAllSelected&&(this.textEditor.unselect(),this.textEditor.set("isEditing",!1)),this.updateHTML(this.textEditor.readHTML()))}didUpdateSelectedState(){if(!(this.textEditor instanceof I)&&(this.textEditor.set("isEditing",this.args.isSelected),this.args.isSelected))try{this.textEditor.focus()}catch(e){console.warn("TextWidget: focus() failed during initialization",e)}}onLoad(){this.textEditor instanceof I||(this.textEditor.set("isEditing",!0),this.args.clearColorOnLoad&&(this.textEditor.selectAllElements(),this.applyAndUpdateVisualization("clearForeColor")),this.args.isAllSelected&&this.textEditor.set("isEditing",!1))}},O=x(D.prototype,"textEditor",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new I}}),E=x(D.prototype,"featureFlags",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}
1),x(D.prototype,"ckeditorBackgroundColor",[c],Object.getOwnPropertyDescriptor(D.prototype,"ckeditorBackgroundColor"),D.prototype),x(D.prototype,"ckeditorTextColor",[d],Object.getOwnPropertyDescriptor(D.prototype,"ckeditorTextColor"),D.prototype),x(D.prototype,"ckeditorSelectedTextColor",[p],Object.getOwnPropertyDescriptor(D.prototype,"ckeditorSelectedTextColor"),D.prototype),x(D.prototype,"fontFormats",[h],Object.getOwnPropertyDescriptor(D.prototype,"fontFormats"),D.prototype),x(D.prototype,"fontNameOptions",[m],Object.getOwnPropertyDescriptor(D.prototype,"fontNameOptions"),D.prototype),x(D.prototype,"defaultFontSizePixels",[g],Object.getOwnPropertyDescriptor(D.prototype,"defaultFontSizePixels"),D.prototype),x(D.prototype,"fontSizeOptions",[f],Object.getOwnPropertyDescriptor(D.prototype,"fontSizeOptions"),D.prototype),x(D.prototype,"minFontSize",[y],Object.getOwnPropertyDescriptor(D.prototype,"minFontSize"),D.prototype),x(D.prototype,"maxFontSize",[b],Object.getOwnPropertyDescriptor(D.prototype,"maxFontSize"),D.prototype),x(D.prototype,"defaultOptions",[v],Object.getOwnPropertyDescriptor(D.prototype,"defaultOptions"),D.prototype),x(D.prototype,"textStyle",[w],Object.getOwnPropertyDescriptor(D.prototype,"textStyle"),D.prototype),x(D.prototype,"lineSpacing",[_],Object.getOwnPropertyDescriptor(D.prototype,"lineSpacing"),D.prototype),x(D.prototype,"activeFontStyles",[A],Object.getOwnPropertyDescriptor(D.prototype,"activeFontStyles"),D.prototype),x(D.prototype,"fontWeight",[T],Object.getOwnPropertyDescriptor(D.prototype,"fontWeight"),D.prototype),x(D.prototype,"alignment",[C],Object.getOwnPropertyDescriptor(D.prototype,"alignment"),D.prototype),x(D.prototype,"fontSize",[S],Object.getOwnPropertyDescriptor(D.prototype,"fontSize"),D.prototype),x(D.prototype,"selectedFontColor",[R],Object.getOwnPropertyDescriptor(D.prototype,"selectedFontColor"),D.prototype),x(D.prototype,"registerTextEditor",[a.action],Object.getOwnPropertyDescriptor(D.prototype,"registerTextEditor"),D.prototype),x(D.prototype,"unregisterTextEditor",[a.action],Object.getOwnPropertyDescriptor(D.prototype,"unregisterTextEditor"),D.prototype),x(D.prototype,"updateHTML",[a.action],Object.getOwnPropertyDescriptor(D.prototype,"updateHTML"),D.prototype),x(D.prototype,"didUpdateSelectedState",[a.action],Object.getOwnPropertyDescriptor(D.prototype,"didUpdateSelectedState"),D.prototype),x(D.prototype,"onLoad",[a.action],Object.getOwnPropertyDescriptor(D.prototype,"onLoad"),D.prototype),D);(0,F.setComponentTemplate)(u,M)},91510(e,t,i){i.d(t,{l:()=>a});var r=i(943910),o=i(493055);function a(){return(0,r.computed)("applicationTheme","visualization",`visualization.{${o.XN.join(",")}}`,"visualization.type","enableVsChartStyling",function(){return(0,o.bX)(this.visualization,this.applicationTheme,this.enableVsChartStyling)})}},901240(e,t,i){i.d(t,{F:()=>a});var r=i(943910),o=i(942839);function a(){return(0,r.computed)("applicationTheme","visualization","visualization.{isHorizontal,type}",`visualization.{${o.Ei.join(",")}}`,function(){return(0,o.ZQ)(this.visualization,this.applicationTheme)})}},814498(e,t,i){i.d(t,{L:()=>a});var r=i(943910),o=i(498939);function a(){return(0,r.computed)("applicationTheme","visualization",`visualization.{${o.WF.join(",")}}`,"visualization.{type,isHorizontal}","enableVsChartStyling",function(){return(0,o.Tj)(this.visualization,this.applicationTheme,this.enableVsChartStyling)})}},385027(e,t,i){i.d(t,{E:()=>a});var r=i(943910),o=i(763566);function a(){return(0,r.computed)("applicationTheme","enableVsChartStyling","visualization",`visualization.{${o.zW.join(",")}}`,"visualization.{type,isHorizontal}",function(){return(0,o.Ab)(this.visualization,this.applicationTheme,this.enableVsChartStyling)})}},241844(e,t,i){i.d(t,{A:()=>G});var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T,C,S,R,D=i(943910),O=i.n(D),E=i(640626),F=i(987456),P=i(979295),x=i(364385),N=i(46457),z=i.n(N),I=i(567407),M=i(251431),k=i(388536),L=i(818846),j=i(250481),V=i(830819);function B(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function q(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function H(e,t,i){return i(function(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}(e,t))}function U(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let G=(r=(0,E.readOnly)("displaySetting.model.formatNegativeNumbers"),o=(0,E.equal)("displaySetting.dateFormat",F.hW.DMY),a=(0,E.readOnly)("result.columns"),n=(0,E.readOnly)("result.data"),s=(0,E.readOnly)("result.dataAsOfTime"),l=(0,E.readOnly)("result.lastPrecomputeRefresh"),u=(0,E.readOnly)("result.showDataAsOfTime"),c=(0,D.computed)("inheritedFilters.[]","perspective.serializeOwnershipPerspective","endDate","startDate"),d=(0,D.computed)("dataAsOfTime","query.enablePrecomputeCalculation","enablePrecomputeCalculation","lastPrecomputeRefresh"),p=(0,D.computed)("dataAsOfTime"),h=(0,D.computed)("lastPrecomputeRefresh"),m=(0,E.readOnly)("featureFlags.flags.boolean.enable_vs_chart_styling"),g=(0,E.readOnly)("theme.applicationTheme"),R=new WeakSet,f=class extends(O()){constructor(...e){var t,i;super(...e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,i=R),i.add(t),q(this,"result",null),q(this,"isPrint",!1),B(this,"formatNegativeNumbers",y,this),B(this,"useIntlDateFormat",b,this),q(this,"isActive",!0),q(this,"hasPendingChanges",!1),q(this,"_targets",[]),q(this,"isLoading",!0),q(this,"includeDownloadData",!1),q(this,"cac
1hedDataKey",null),B(this,"columns",v,this),B(this,"data",w,this),B(this,"dataAsOfTime",_,this),B(this,"lastPrecomputeRefresh",A,this),q(this,"dataUpdateDescriptor",null),B(this,"showDataAsOfTime",T,this),q(this,"isFirstRun",!1),B(this,"enableVsChartStyling",C,this),B(this,"applicationTheme",S,this)}get userSelectionContext(){return{startDate:this.startDate,endDate:this.endDate,inheritedFilters:(this.inheritedFilters??[]).map(e=>e.serialize()),ownershipPerspective:this.perspective?.serializeOwnershipPerspective}}get dataAsOfDisplay(){let{dataAsOfTime:e}=this;if(!e)return null;let t=`Refreshed ${F.W8(e).toLowerCase()}`;return(this.enablePrecomputeCalculation??this.query?.enablePrecomputeCalculation)&&this.lastPrecomputeRefresh&&(t+="*"),t}_formatTimestampAsOf(e){if(!e)return null;let t=(0,P.getOwner)(this).resolveRegistration("config:environment"),i=z().tz(e,t.DEFAULT_TIMEZONE);return`${i.format(F.wJ)} at ${i.format("h:mm a")} ET`}get dataAsOfDescription(){let e=this._formatTimestampAsOf(this.dataAsOfTime);return e?`Data as of ${e}`:null}get formattedLastPrecomputeRefresh(){return this._formatTimestampAsOf(this.lastPrecomputeRefresh)}get isMissingPermission(){return!1}set targets(e){for(let t of e)this.addTarget(t)}get targets(){throw new Error("Reading targets from the PQR instantiatable is not supported")}rerender({path:e,...t}={}){if(this.useWidgetEngine)return"type"===e&&this.set("isLoading",!0),this.executeWidgetEngine({...t,useCache:!0,cacheKey:this.cachedDataKey})}execute(e){return e&&(this.cachedDataKey=null),this.useWidgetEngine?this.runQuery(e)?.catch(e=>{if(e instanceof L.dM)return;if(this.autoFallback)return this.logger.error(`Failed to load from WidgetEngine: ${JSON.stringify(e)}`,{alertOnError:!1}),(0,D.set)(this,"useWidgetEngine",!1),this.resetQuery(),this.execute(!0);(0,D.set)(this,"isLoading",!1);let t=e?.message||"Failed to load widget data";(0,D.set)(this,"result",new M.tC({error:t}))}):this.runQuery(e)}onWidgetEngineResult(e){e.error?this.set("result",new M.tC(e)):(e.meta?.cache_key&&this.set("cachedDataKey",e.meta.cache_key),this.set("result",M.Ay.createFromResponse({meta:e.meta,content:e.content,download_data:e.download_data,visualization:this.visualization})),this.visualization.set("columnMappingOptions",this.result.meta.column_mapping_options),this.visualization.set("columnMapping",this.result.meta.column_mapping))}activateQuery(){this.lazyLoadChanges&&this.set("isActive",!0)}resetQuery(){this.set("isFirstRun",!0),this.lazyLoadChanges&&(this.set("isActive",!0),this.set("isLoading",!0),this.set("hasPendingChanges",!1))}addTarget(e){this._targets.push(e),(0,I.registerDestructor)(e,()=>{this.removeTarget(e)})}removeTarget(e){(0,x.A)(this._targets,t=>e===t)}sendActionToTargets(e,...t){let{_targets:i}=this;for(let r of i)r.send(e,...t)}toggleBorderRight(e){let t=this.columnSettings.slice();e.isPivotColumn?t.slice(1).forEach(e=>e.toggleProperty("hasBorderRight")):t[e.index].toggleProperty("hasBorderRight")}_findSettingsForColumn(e,t=e.index){return this.columnSettings.slice()[t]}updateSorts(e,t){this.useWidgetEngine&&this.visualization.resetColumnSorts(),j.v2(e)&&j.uU(e);for(let t of e){let e=this._findSettingsForColumn(t.column),i=this.store.createRecord("table-column-sort",{sortIndex:t.sortIndex,groupingFactorId:t.groupingFactorId,sortDirection:t.isAscending?"ascending":"descending",sortType:t.sortType??V.Vc.COLUMN,useCustomOrdering:t.useCustomOrdering??!1});e.set("tableColumnSorts",[...e.tableColumnSorts.slice(),i])}t?.onSortsUpdated?.(),this.rerender()}async getDownloadData(){let e=this.result?.downloadData;return e||(this.includeDownloadData=!0,await this.rerender(),e=this.result?.downloadData),e}getWidgetEnginePayload({cacheKey:e,useCache:t}){return{data_context:{...H(R,this,W),use_cache:t},display_settings:H(R,this,$),visualization:H(R,this,Y),include_download_data:this.includeDownloadData,supports_stacked_chips:!0,...this.enableRerenderCache?{cached_data_job_id:e,write_job_data_to_cache:!this.isRepGen}:{}}}},y=U(f.prototype,"formatNegativeNumbers",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=U(f.prototype,"useIntlDateFormat",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=U(f.prototype,"columns",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=U(f.prototype,"data",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=U(f.prototype,"dataAsOfTime",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=U(f.prototype,"lastPrecomputeRefresh",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=U(f.prototype,"showDataAsOfTime",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}
1),U(f.prototype,"userSelectionContext",[c],Object.getOwnPropertyDescriptor(f.prototype,"userSelectionContext"),f.prototype),U(f.prototype,"dataAsOfDisplay",[d],Object.getOwnPropertyDescriptor(f.prototype,"dataAsOfDisplay"),f.prototype),U(f.prototype,"dataAsOfDescription",[p],Object.getOwnPropertyDescriptor(f.prototype,"dataAsOfDescription"),f.prototype),U(f.prototype,"formattedLastPrecomputeRefresh",[h],Object.getOwnPropertyDescriptor(f.prototype,"formattedLastPrecomputeRefresh"),f.prototype),C=U(f.prototype,"enableVsChartStyling",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=U(f.prototype,"applicationTheme",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f);function W(e){let t=e.perspective.serializeOwnershipPerspective;return k.j.create({start_date:e.startDate,end_date:e.endDate,...e.useWidgetEngine?{perspective:t}:{ownership_perspective:t}}).serialize()}function $(e){return k.j.create({useIntlDateFormat:e.useIntlDateFormat,dynamicDisclosureEnabled:e.isDynamicDisclosureEnabled,...e.isPrint?{isPrint:!0}:{},applicationTheme:e.applicationTheme,enableVsChartStyling:e.enableVsChartStyling,selectedSeedColors:e.selectedSeedColors,factorSortOrderings:e.factorSortOrderings,factorDecimalDefaults:e.factorDecimalDefaults}).serialize()}function Y(e){let t=e.visualization.serialize(),i=e.target?.tableTheme;return i&&(t.table_settings=i.serialize()),t}},313752(e,t,i){var r=i(640626),o=i(804204),a=i(241844);const n=o.service??o.inject,s=a.A.extend({init(...e){this._super(...e),this.resetQuery(),this.execute()},dataService:n("widget/data"),featureFlags:n(),visualization:null,perspective:null,startDate:null,endDate:null,useWidgetEngine:!1,isMissingPerspective:(0,r.not)("perspective"),columnSettings:(0,r.readOnly)("visualization.columnSettings"),executeWidgetEngine({cacheKey:e,useCache:t}={}){let i=this.getWidgetEnginePayload({cacheKey:e,useCache:t});return this.featureFlags?.flags?.boolean?.precompute_calculation_toggle&&i.visualization?.query&&(i.visualization.query.enable_precompute_calculation=this.enablePrecomputeCalculation??i.visualization.query.enable_precompute_calculation),this.dataService.loadWidgetData(i,{useWidgetEngine:this.useWidgetEngine}).then(e=>{this.isDestroying||this.isDestroyed||(this.set("hasPendingChanges",!1),this.set("isLoading",!1),this.set("isFirstRun",!1),this.set("isActive",!0),this.onWidgetEngineResult(e))})},runQuery(){if(!this.isMissingPerspective&&this.isActive)return this.set("isLoading",!0),this.set("isActive",!1),this.executeWidgetEngine();this.set("isLoading",!1)}});i.d(t,["A",0,s])},524711(e,t,i){i.d(t,{Ay:()=>v});var r=i(959438),o=i(496314),a=i(943910),n=i.n(a),s=i(979295),l=i(989272),u=i(105020),c=i(886783),d=i(601),p=i(967736),h=i(700820),m=i(394320),g=i(640626),f=i(241844),y=i(830819),b=i(388536);const v=f.A.extend({init(...e){this._super(...e),this.resetQuery(),this.setLastUpdateAction(),this.set("sortings",[]),this.set("hiddenColumnIndexes",[])},ajax:null,featureFlags:null,pqrService:null,dataService:null,store:null,toast:null,displaySetting:null,visualization:null,theme:null,useWidgetEngine:!1,query:void 0,startDate:void 0,endDate:void 0,asOfKnowledgeDate:void 0,useViewKnowledgeDate:!1,enablePrecomputeCalculation:void 0,ownershipPerspective:void 0,reportName:void 0,localContextFactorResolvers:{reporting_context:e=>({type:"string",value:e.ownershipPerspective?.get("displayName")??"-",status:"success"}),report_name:e=>({type:"string",value:e.reportName??"-",status:"success"})},perspective:(0,g.readOnly)("ownershipPerspective"),filters:void 0,inheritedFilters:void 0,factorTemplatePromises:void 0,shouldLazyLoadFactorTemplates:!0,data:(0,g.readOnly)("result.data"),columns:(0,g.readOnly)("result.columns"),columnSettings:(0,g.readOnly)("visualization.columnSettings"),_findSettingsForColumn(e,t=e.index){if(!this.useWidgetEngine)return e.columnSettings;let i=e.grouping?(t-1)%this.query.valueFactors.length+1:t;return this.columnSettings.slice()[i]},_loadFactorTemplates(e){if(!this.shouldLazyLoadFactorTemplates)return;let t=new Set,i=new Set;for(let r of["grouping_factors","metric_factors","value_factors","benchmark_factors"]){let o=e[r];if(o)for(let e of o)if(t.add(e.template_id),e.args)for(let t of e.args)i.add(t.template_id)}let o=e.pivot_factor;if(o&&(t.add(o.template_id),o.args))for(let e of o.args)i.add(e.template_id);let a=this.store,n=[];for(let e of t)n.push(a.findRecord("factor-template",e));for(let e of i)n.push(a.findRecord("factor-argument-template",e));this.factorTemplatePromises&&n.push(this.factorTemplatePromises.c
1atch(()=>{}));let s=r.Ay.all(n);this.shouldFetchFactorOutputsForSorting&&(s=s.then(()=>{this.factorSortOrderings={};let e=[];for(let t of["query.valueFactors","query.groupingFactors","sortSplitFactors"]){let i=this.get(t);i&&i.forEach(t=>{if(t&&t.get("isCustomOrderable")){let i=this.factorOutputService.getRequest(t);e.push(i.execute().then(()=>{this.factorSortOrderings[t.templateId]=i.content?.possibleOutputs.reduce((e,t,i)=>(e[t.displayName]=i,e),{})}))}})}return r.Ay.all(e)})),this.factorTemplatePromises=s.then(()=>{})},getFactorSortOrdering(e){return this.factorSortOrderings[e?.templateId]},shouldPreserveResults:!1,isMissingPerspective:(0,g.not)("ownershipPerspective"),sortings:null,hiddenColumnIndexes:null,maxRows:void 0,lazyLoadChanges:!1,url:"/public/portfolio/query",percentDone:null,useCache:!1,enableServerCaching:null,resolvedEnableServerCaching:(0,a.computed)("enableServerCaching","featureFlags.flags.boolean.{enable_view_caching,scheduled_views}",function(){return null!==this.enableServerCaching&&void 0!==this.enableServerCaching?this.enableServerCaching:this.featureFlags?.flags.boolean.enable_view_caching||this.featureFlags?.flags.boolean.scheduled_views}),loadPersistedResults:(0,a.computed)("isFirstRun","resolvedEnableServerCaching",{get(){return this.isFirstRun&&this.resolvedEnableServerCaching},set:(e,t)=>t}),requestHash:null,sendOnFailure:!1,customSuccessCallback:null,customFailureCallback:null,unsupportedBatchJobErrorMessage:void 0,willDestroy(){this.pqrService.removePQRListener?.(this),this._lastUpdateAction&&(0,l.cancel)(this._lastUpdateAction)},strippedPreviousQueryRequest:void 0,resetQuery(){this.set("unsupportedBatchJobErrorMessage",void 0),this._super()},allFilters:(0,a.computed)("filters.[]","inheritedFilters.[]",function(){let e=(this.filters??[]).slice();return(this.inheritedFilters??[]).slice().concat(e).filter(e=>e.hasOrIsLeafFilter)}),queryParamFilters:(0,a.computed)("allFilters.[]",function(){return this.allFilters.map(e=>e.serialize())}),linkFactors:(0,a.computed)("[email protected]",function(){let e=[];for(let t of this.query.groupingFactors||[])t.linkSettings&&e.push(...t.linkSettings);return e.map(e=>e.linkFactor)}),queryParamGroupingFactors:(0,a.computed)("[email protected]","[email protected]","[email protected]","[email protected]","linkFactors.[]",function(){let e=(this.query.groupingFactors||[]).slice(),t=(this.groupingFactors||[]).slice();return e.concat(t).map(e=>e.serialize())}),chartColorMap:(0,a.computed)("type","displaySetting.model.factorColorOverrides","result.{groupingFactors.[],valueFactors.[]}","_chartColorMap",{get(){if(void 0!==this._chartColorMap)return this._chartColorMap;if(this.result?.valueFactors.length>1&&this.type!==y.$Z.BETA_SCATTER_TYPE)return{};let e=this.result?.groupingFactors??[],t=e[1]??e[0];return function(e,t){let i={};return t&&e?(e.filter(e=>!!e.factor&&h.si.configurationEquals(t,e.factor)).forEach(e=>{let t=e.factorOutput,r=e.color;void 0!==t&&void 0!==r&&(i[t]=r)}),i):i}(this.displaySetting.model.factorColorOverrides,t)},set(e,t){return this._chartColorMap=t}}),warningSettings:(0,a.computed)("deannualizedFigures","derivedTx","estimatedReturnsDisplayPreference","benchmarkProxyDisplayPreference","shortHeldAssetDisplayPreference","notionalValue",function(){return{warnOnDeannualizedFigures:"warn"===this.deannualizedFigures,warnOnDerivedTx:"warn"===this.derivedTx,warnOnShortHeldAsset:"warn"===this.shortHeldAssetDisplayPreference,warnOnEstimatedReturns:"warn"===this.estimatedReturnsDisplayPreference,warnOnBenchmarkProxy:"warn"===this.benchmarkProxyDisplayPreference,warnOnNotionalValue:"warn"===this.notionalValue}}),shortHeldAssetDisplayPreference:(0,a.computed)("query.shortHeldAssetDisplayPreference","displaySetting.model.shortHeldAsset",function(){let e=this.query.shortHeldAssetDisplayPreference;return"inherit"===e?this.displaySetting.model.shortHeldAsset:e}),estimatedReturnsDisplayPreference:(0,a.computed)("query.estimatedReturnsDisplayPreference","displaySetting.model.estimatedReturns",function(){let e=this.query.estimatedReturnsDisplayPreference;return"inherit"===e?this.displaySetting.model.estimatedReturns:e}),benchmarkProxyDisplayPreference:(0,a.computed)("query.benchmarkProxyDisplayPreference","displaySetting.model.benchmarkProxy",function(){let e=this.query.benchmarkProxyDisplayPreference;return"inherit"===e?this.displaySetting.model.benchmarkProxy:e}),deannualizedFigures:(0,g.readOnly)("displaySetting.model.deannualizedFigures"),derivedTx:(0,g.readOnly)("displaySetting.model.derivedTx"),notionalValue:(0,g.readOnly)("displaySetting.model.notionalValue"),sendContextVisId:!0,shouldMakeAsyncPQR:null,resolvedShouldMakeAsyncPQR:(0,a.computed)("shouldMakeAsyncPQR",function(){return!!this.shouldMakeAsyncPQR&&this.shouldMakeAsyncPQR}),useHighPriorityQueue:null,resolvedUseHighPriorityQueue:(0,a.computed)("useHighPriorityQueue",function(){return!!this.useHighPriorityQueue&&this.useHighPriorityQueue}),context:(0,a.computed)("asyncPQRUniqueKey","loadPersistedResults","resourceType","sendContextVisId","resolvedShouldMakeAsyncPQR","resolvedUseHighPriorityQueue","viewId","visualizationId","contactId",function(){return{view_id:this.viewId,resource_type:this.resourceType,visualization_id:this.sendContextVisId?this.visualizationId:void 0,external_pqr_id:this.resolvedShouldMakeAsyncPQR?this.asyncPQRUniqueKey:null,contact_id:this.contactId,use_high_priority:this.resolvedUseHighPriorityQueue,load_persisted_results:this.loadPersistedResults}}),hideTotalColumnAfterSortings:(0,a.computed)("query.{pivotFactor,showTotalColumn}","visualization.hasSorts",function(){return this.query?.pivotFactor&&!this.query?.showTotalColumn&&this.visualization.hasSorts}),_queryParameters:null,queryParameters:(0,a.computed)("_queryParameters","asOfKnowledgeDate","context","enablePrecomputeCalculation","endD
1ate","featureFlags.flags.boolean.precompute_calculation_toggle","hideTotalColumnAfterSortings","maxRows","ownershipPerspective.{id,perspectiveSubType}","query.benchmarkFactors.[]","query.constituentLookthrough.{threshold,type}","query.groupingFactors.[]","query.metricFactors.[]","query.valueFactors.@each.{customName,displayNameType,headerName,shortHeldAssetDisplayPreference,valueFormat,watchedColumnFilters}","query.{asOfKnowledgeDate,benchmarkProxyDisplayPreference,billingMatchingSetting,ignoreSummaryDataOnRollup,debugMode,disableTotalRow,enablePrecomputeCalculation,estimatedReturnsDisplayPreference,expandWrapperEntities,groupByWeightedValues,hidePreviousHoldings,includeInValidationDatasets,loadExecutedTrades,lookthrough,lookthroughConstituentHoldings,newScenario,pivotFactor,scenario,scenarioPathsOnly,shortHeldAssetDisplayPreference,showFees,showMultiValueRemainder,showSleeves,showTotalColumn,sleeveSetting,streamResults,summaryDataDefaultPreference,targetAllocationMode,taxLotUseSettlementDate,useMultibucketing}","queryParamFilters.[]","[email protected]","selectedSeedColors","startDate","useViewKnowledgeDate",{get(){if
1(null!==this._queryParameters)return this._queryParameters;let e=this.query,t=this.ownershipPerspective;if(!e||!t||e.get("isDeleted"))return;let i=e.serialize();return i.ownership_perspective=t.get("serializeOwnershipPerspective"),i.start_date=this.startDate||i.start_date,i.end_date=this.endDate||i.end_date,this.useViewKnowledgeDate?i.as_of_knowledge_date=this.asOfKnowledgeDate||void 0:i.as_of_knowledge_date=this.asOfKnowledgeDate||i.as_of_knowledge_date,this.featureFlags?.flags?.boolean?.precompute_calculation_toggle&&(i.enable_precompute_calculation=this.enablePrecomputeCalculation??i.enable_precompute_calculation),i.context=this.context,i.filters=this.queryParamFilters,i.grouping_factors=this.queryParamGroupingFactors,i.stream_results=!1,this.hideTotalColumnAfterSortings&&(i.show_total_column=!0,i.hide_total_column_after_sortings=!0),this.maxRows&&(i.max_rows=this.maxRows),i},set(e,t){return this._queryParameters=t}}),strippedQueryParameters:(0,a.computed)("queryParameters",function(){return this._stripServerIgnoredParamsFromQueryRequest(this.queryParameters)}),setLastUpdateAction(){this._setLastUpdateAction()},_setLastUpdateAction(){this._lastUpdateAction=(0,l.once)(this,this._updateData)},_updateData(){(0,s.getOwner)(this)?.isDestroying||(this._lastUpdateAction=null,this.execute())},createResult(e){return p.A.create({content:this.transformPortfolioResult(e),queryRequest:this,pivotBuckets:e.data.pivot_buckets,store:this.store})},showResult(e){if(this.set("queryResponse",e),(0,o.isNone)(e.data)){let t=0;(0,o.isNone)(e.progress)||(t=e.progress.at(-1).percent_done);let i="A PQR completed returning no data, percent done";throw"production"!==(0,s.getOwner)(this).resolveRegistration("config:environment").environment&&console.warn("PQR parameters",t,this.queryParameters),new Error(i)}let t=this.createResult(e);return this._copyServerProperties(t),this.set("result",t)},_copyServerProperties(e){let t=this.allFilters??[],i=e.filters??[];this._copyFilterDisplayNames(i,t),["groupingFactors","valueFactors","metricFactors"].forEach(t=>{let i=this.query?.get(t),r=e[t];i&&r&&this._copyFactorServerProperties(r,i)});let r=this.query?.pivotFactor,o=e.pivotFactor;r&&o&&this._copyFactorServerProperties([o],[r])},transformPortfolioResult:e=>(0,m.Q)(e),_copyFilterDisplayNames(e,t){for(let i=0;i<t.length;i++){let r=e.slice()[i],o=t.slice()[i];if(r.get("isCompoundFilter"))this._copyFilterDisplayNames(r.get("filters"),o.get("filters"));else{let e=r.get("displayName");e&&o.set("displayName",e)}}},_copyFactorServerProperties(e,t){for(let i=0;i<e.length;i++){let r=e[i],o=r.displayNames,a=r.factorId,n=t.slice()[i];n&&h.si.configurationEquals(r,n)&&(o&&n.setProperties({displayNames:this.store.createRecord("factor-display-names",o),isDisplayNameLoading:!1}),!n.factorId&&a&&n.set("factorId",a))}},blockedByOptimizationRequirement:!1,runQuery(e){if(!this.queryParameters)return this.set("isLoading",!1),void this.set("percentDone",null);let t=this.featureFlags?.flags.boolean.require_pqrs_are_optimizable,i=this.strippedPreviousQueryRequest,r=JSON.stringify(this.strippedQueryParameters);return e||!(0,u.A)(i,r)?this.isActive?t&&this.isFirmNonUnverifiedAccountsPerspective?void this._executeQueryIfOptimizable(r):(this.set("blockedByOptimizationRequirement",!1),this._executeQuery(r)):void(this.lazyLoadChanges&&this.set("hasPendingChanges",!0)):void 0},isFirmNonUnverifiedAccountsPerspective:(0,a.computed)("ownershipPerspective.{perspectiveType,perspectiveSubType}",function(){let{perspectiveType:e,perspectiveSubType:t}=this.ownershipPerspective;return"firm"===e&&"unverified_accounts"!==t}),groupMemberSizeThatNecessitatesGraphPowerwalkTip:1e3,isOptimizationRecommended:(0,a.computed)("isFirmNonUnverifiedAccountsPerspective","ownershipPerspective.memberIds.length","groupMemberSizeThatNecessitatesGraphPowerwalkTip",function(){return this.isFirmNonUnverifiedAccountsPerspective||this.ownershipPerspective.memberIds?.length>this.groupMemberSizeThatNecessitatesGraphPowerwalkTip}),_executeQueryIfOptimizable(e){this.ajax.ajax({url:"/public/portfolio/query/is_optimizable",type:"POST",data:this.queryParameters,success:t=>{t.optimizable?(this.set("blockedByOptimizationRequirement",!1),this._executeQuery(e)):(this.set("blockedByOptimizationRequirement",!0),this.set("isLoading",!1),this.set("result",null),this.set("strippedPreviousQueryRequest",e))}})},_executeQuery(e){if(this.lazyLoadChanges&&(this.set("isActive",!1),this.set("hasPendingChanges",!1)),this.pqrService.removePQRListener?.(this),this.set("isLoading",!0),this.set("percentDone",0),this.shouldPreserveResults||this.set("result",null),this.set("strippedPreviousQueryRequest",e),this.useLocalContextO
1nly)return this._resolveLocalContextOnlyResult();let t=JSON.stringify(this.queryParameters);this.set("requestHash",t);let i=JSON.stringify(this._getCacheKey(this.queryParameters));return this.set("cacheKey",i),this.useWidgetEngine?this.executeWidgetEngine({useCache:this.loadPersistedResults}):this.pqrService.executePQR(this)},useLocalContextOnly:(0,a.computed)("localContextFactorResolvers","visualization.isText","[email protected]","allFilters.[]",function(){return!!this.visualization?.isText&&(!this.allFilters?.length&&(this.query?.valueFactors??[]).every(e=>this.localContextFactorResolvers[e.templateId]))}),_resolveLocalContextOnlyResult(){let e=this.query?.valueFactors??[],t={startDate:this.startDate,endDate:this.endDate,ownershipPerspective:this.ownershipPerspective,reportName:this.reportName},i=e.map(e=>this.localContextFactorResolvers[e.templateId](t));this.onPQRSuccess({data:{root:{level:0,node_type:"portfolio",group_display_name:"Total",group_value:"Total",group_value_type:null,values:i,benchmarks:[]},value_factors:e.map(e=>e.serialize()),grouping_factors:[],metric_factors:[],filters:this.queryParamFilters??[],pivot_buckets:[]}})},_getCacheKey(e){if((0,o.isNone)(e))return e;let t=(0,c.A)(e);return delete t.context?.visualization_id,t},_stripServerIgnoredParamsFromQueryRequest(e){let t=(0,c.A)(e);delete t.context?.visualization_id,delete t.context?.load_persisted_results;for(let e of["grouping_factors","value_factors","metric_factors"])if((0,d.A)(t[e]))for(let i of t[e])this._stripServerIgnoredParamsFromFactor(i);if(t.pivot_factor&&this._stripServerIgnoredParamsFromFactor(t.pivot_factor),(0,d.A)(t.filters))for(let e of t.filters)this._stripServerIgnoredParamsFromFilter(e);return t},_stripServerIgnoredParamsFromFilter(e){e.filters?e.filters.forEach(e=>this._stripServerIgnoredParamsFromFilter(e)):(delete e.display_name,this._stripServerIgnoredParamsFromFactor(e.factor))},_stripServerIgnoredParamsFromFactor(e){delete e.display_name_type,delete e.display_names,delete e.factor_id,delete e.value_format},updateValues(e){e.forEach(e=>{let t=this.result.rowById[e.id];e.values.forEach(m.r),t&&t.set("rowJson.values",e.values)})},onPQRExecution(){this.set("isFirstRun",!1),this._loadFactorTemplates(this.queryParameters)},onPQRProgress(e){if("progress"===e.type){if(e.percent_done)return this.set("percentDone",e.percent_done)}else{if("groupings"===e.type)return this.showResult({data:e.grouping_result});if("values"===e.type)return this.updateValues(e.nodes)}},onPQRSuccess(e){(this.factorTemplatePromises??Promise.resolve()).then(()=>{this._onPQRSuccess(e)})},_onPQRSuccess(e){this.set("isLoading",!1),this.set("percentDone",100),this.showResult(e),this.set("percentDone",null),this.sendActionToTargets("onPortfolioRequestLoaded",e),(0,o.isNone)(this.customSuccessCallback)||(this.customSuccessCallback(this.result),this.set("customSuccessCallback",null))},get factorDecimalDefaults(){return this.query.valueFactors.reduce((e,t)=>{let i=t.templateRecord?.decimals;return"number"==typeof i&&(e[t.templateId]=i),e},{})},async executeWidgetEngine({cacheKey:e,useCache:t}){this.onPQRExecution(),await this.factorTemplatePromises;let i=this.getWidgetEnginePayload({cacheKey:e,useCache:t}),r=(this.groupingFactors??[]).slice(),o=(this.inheritedFilters??[]).slice(),a={...this.context};delete a.load_persisted_results,Object.assign(i.data_context,{request_context:a,inherited_grouping_factors:r.map(e=>e.serialize()),inherited_filters:o.map(e=>e.serialize())}),this.maxRows&&(i.data_context.max_rows=this.maxRows),this.featureFlags?.flags?.boolean?.precompute_calculation_toggle&&(i.visualization.query.enable_precompute_calculation=this.enablePrecomputeCalculation??i.visualization.query.enable_precompute_calculation),this.visualization.filterSets?.length&&(i.visualization.filter_sets=this.visualization.filterSets.map(e=>e.serialize()));let n=new Set([...i.visualization.query.grouping_factors.map(e=>e.template_id),...i.data_context.inherited_grouping_factors.map(e=>e.template_id)]),s=(this.displaySetting.model.factorColorOverrides??[]).reduce((e,t)=>
1(n.has(t.factor.templateId)&&e.push({color:t.color,factor_output:t.factorOutput,factor:{template_id:t.factor.templateId}}),e),[]);Object.assign(i.display_settings,b.j.create({factorColorOverrides:s,...this.warningSettings}).serialize());let l=await this.dataService.loadWidgetData(i,{useWidgetEngine:!0});this.onWidgetEngineSuccess(l)},onWidgetEngineSuccess(e){this.set("isLoading",!1);let t=h.$T.createFromHash(this.store,e.meta.provider_meta);this._copyServerProperties(t),this.onWidgetEngineResult(e),this.sendActionToTargets("onPortfolioRequestLoaded",e)},onPQRFailure(e,t){this.set("isLoading",!1),this.set("percentDone",null),this.sendOnFailure&&this.sendActionToTargets("onPortfolioRequestFailed"),"unsupportedBatchJob"===t.error?.error_code&&this.featureFlags?.flags.boolean.parallel_mode_console&&(t.suppressAlert(),this.set("unsupportedBatchJobErrorMessage",t.error?.user_message)),(0,o.isNone)(this.customFailureCallback)||(this.customFailureCallback(e,t),this.set("customFailureCallback",null))},registerSuccessCallback(e){this.isLoading?this.set("customSuccessCallback",e):e(this.result)},registerFailureCallback(e){this.isLoading&&this.set("customFailureCallback",e)},serializeCollapseState(e){let t={is_collapsed:!1,value:"Total",children:e.map(e=>this._serializeCollapseStateForNode(e))};this.set("collapseTree",[t])},_serializeCollapseStateForNode(e){let t=e.isCollapsed;return{value:this.useWidgetEngine?e.grouping.value:e.groupDisplayName,is_collapsed:t,children:t?[]:(e.children??[]).map(e=>this._serializeCollapseStateForNode(e))}},deserializeCollapseState(e){let t=this.collapseTree?.[0];if((0,o.isEmpty)(t))return;let i=n().create({children:e});this.deserializeCollapseStatesToNode(t,i)},deserializeCollapseStatesToNode(e,t){(0,o.isEmpty)(e)||(0,o.isEmpty)(t)||((0,a.set)(t,"isCollapsed",e.is_collapsed),e.children.forEach(e=>{let i=e.value,r=t.children.find(e=>e.groupDisplayName===i);this.deserializeCollapseStatesToNode(e,r)}))}})},297055(e,t,i){var r=i(640626);const o=i(241844).A.extend({perspective:null,startDate:null,endDate:null,visualization:null,inheritedFilters:null,customRunQueryCallback:null,init(...e){this._super(...e),this.resetQuery()},isMissingPerspective:(0,r.not)("perspective"),get isMissingPermission(){return!1},resetQuery(){this.set("isLoading",!1),this.set("isActive",!1),this.set("isFirstRun",!0),this.set("hasPendingChanges",!1)},runQuery(){return this.customRunQueryCallback?.(),Promise.resolve()},registerRunQueryCallback(e){this.customRunQueryCallback=e}});i.d(t,["A",0,o])},329257(e,t,i){var r=i(577812),o=i(640626),a=i(241844),n=i(943910),s=(i(44384),i(52771));const l=a.A.extend({init(...e){this._super(...e),this.resetQuery(),this.execute()},useWidgetEngine:!1,dataService:null,featureFlags:null,store:null,fileService:null,toast:null,displaySetting:null,lazyLoadChanges:!0,isFirstRun:!0,visualization:null,query:null,columnSettings:null,startDate:null,endDate:null,perspective:null,hasViewTransactions:null,updateFilterDisplayNames:null,isMissingPermission:(0,o.not)("hasViewTransactions"),isMissingPerspective:(0,o.not)("perspective"),columns:(0,n.computed)("columnSettings","result.columns","useWidgetEngine",function(){return this.useWidgetEngine?this.result.columns:this.columnSettings.map(e=>({setting:e,displayName:e.column.displayName,valuePath:this.columnValuePath(e.column.id)}))}),sorts:(0,n.computed)("query.sortings.@each.{ascending,column}","useWidgetEngine",function(){return this.query.sortings.map(e=>({valuePath:this.columnValuePath(e.column.id),isAscending:e.ascending}))}),updateSorts(e){let t=e.map(e=>{let t=this.columnSettings.slice()[e.column.index];return this.store.createRecord("transactionSorting",{column:t.column,ascending:e.isAscending})});this.query.sortings.setObjects(t),this.execute()},columnValuePath(e){return`columnOutputs.${this.query.columns.slice().findIndex(({id:t})=>t===e)}.value`},toggleBorderRight:(0,n.action)(function(e){this.useWidgetEngine?this.columnSettings.slice()[e.index].toggleProperty("hasBorderRight"):e.setting.toggleProperty("hasBorderRight")}),canLinkToSource:(0,o.not)("isMissingPerspective"),async getLinkToSourceArgs(){return{route:{path:"app.tools.transactionCenter.perspective",models:[this.perspective],queryParams:{linkToSourceData:await(0,s.v)({startDate:this.startDate,endD
1ate:this.endDate,visualization:this.visualization.serialize()})}}}},runQuery(){if(this.startDate&&this.endDate&&this.perspective&&this.hasViewTransactions&&this.isActive)return this.set("isLoading",!0),this.set("isActive",!1),this.useWidgetEngine?this.executeWidgetEngine():new Promise(e=>{this.query.execute(this.startDate,this.endDate,this.perspective,null,null,t=>{let i=r.A.create({content:t,store:this.store});this.isDestroying||this.isDestroyed||(this.onExecuteSuccess(),this.set("result",{data:i.get("rows")}),this.notifyPropertyChange("sorts"),this.notifyPropertyChange("columns"),this.updateFilterDisplayNames?.(t.filters),e())})})},async executeWidgetEngine({cacheKey:e,useCache:t}={}){let i=this.getWidgetEnginePayload({cacheKey:e,useCache:t});i.visualization.query.column_settings.forEach((e,t)=>{let i=this.columnSettings.slice()[t].column;e.column=i.serialize(),e.column.id=i.id});let r=await this.dataService.loadWidgetData(i,{useWidgetEngine:!0});this.onWidgetEngineResult(r),this.updateFilterDisplayNames?.(r.meta?.provider_meta?.filters),this.onExecuteSuccess(),this.sendActionToTargets("onPortfolioRequestLoaded",r)},onExecuteSuccess(){this.set("hasPendingChanges",!1),this.set("isLoading",!1),this.set("isFirstRun",!1),this.set("isActive",!0)},exportExcel(){if(!(this.startDate&&this.endDate&&this.perspective&&this.hasViewTransactions))return;let e=this.toast.queueToast("Downloading widget.",{showIcon:!0,type:"processing",persist:!0});this.query.exportExcel(this.fileService,this.startDate,this.endDate,this.perspective,null,null,()=>{e(),this.toast.queueToast("Widget downloaded.",{showIcon:!0,showClose:!0,type:"success"})})}});i.d(t,["A",0,l])},474568(e,t,i){i.d(t,{A:()=>ii});var r=i(943910),o=i.n(r),a=i(751716);class n{static standard(e){return e}}class s{static standard(e){return e}}var l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T,C,S,R,D,O,E,F,P,x,N,z,I,M,k,L,j,V,B,q,H,U,G,W,$,Y,K,Q,X,Z,J,ee,te,ie,re,oe,ae,ne,se,le,ue,ce,de,pe,he,me,ge,fe,ye,be,ve,we,_e,Ae,Te,Ce,Se,Re,De,Oe,Ee,Fe,Pe,xe,Ne,ze,Ie,Me,ke,Le,je,Ve,Be,qe,He,Ue,Ge,We,$e,Ye,Ke,Qe,Xe,Ze,Je,et,tt,it,rt,ot,at,nt,st,lt,ut,ct,dt,pt,ht,mt,gt,ft=i(150249),yt=i(922265),bt=i(165990),vt=i(903463),wt=i(76581),_t=i(830819),At=i(253082),Tt=i(279564);function Ct(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function St(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Rt(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}function Dt(e,t){return{...e,factorTemplateContext:t}}i(44384);class Ot{static data(e){return n.standard({label:"Data",...e})}static chart(e){return n.standard({label:"Chart",...e})}static format(e){return n.standard({label:"Format",...e})}static info(){return n.standard({label:"Info",sections:[s.standard({label:"Details",component:"dashboard-widget-details-section"})]})}static arrange(){return n.standard({label:"Arrange",sections:[s.standard({label:"Order",component:"widget/config-panel/reporting/arrange/order-section"}),s.standard({label:"Alignment",component:"widget/config-panel/reporting/arrange/alignment-section"}),s.standard({label:"Size and position",component:"widget/config-panel/reporting/arrange/size-position-section"})]})}static tableFormat({isReporting:e,isPivotTable:t,isAdvancedTable:i,metricFactors:r}){return e?Ot.format({sections:[...Nt(),Et.columnFormat(),t?null:Et.metrics(),t?Et.advanced():null,Et.groupingFormat()].filter(e=>Boolean(e))}):i&&r.length?Ot.format({sections:[s.standard({label:"Metric display name",fields:r.map((e,t)=>xt.customFactorDisplayName({factor:e,path:`query.metricFactors.objectAt(${t}).displayNameType`}))})]}):null}
1static numberFormat({supportsValueScale:e,hasComparisonValue:t}){return Ot.format({sections:[s.standard({label:"Numbers",fields:[e?xt.valueScale:null,xt.valueDecimals].filter(e=>Boolean(e))}),t?s.standard({label:"Change over time",fields:[xt.deltaDisplay,xt.deltaColor]}):null].filter(e=>Boolean(e))})}static pieFormat({isReporting:e,isDonut:t,showLegend:i,valueFormat:r,enableVsChartStyling:o}){return Ot.format({sections:[e?Et.chartTitle():null,s.standard({label:"Legend options",fields:[xt.showLegend,i&&o?xt.legendPosition:null].filter(e=>Boolean(e))}),o?null:s.standard({label:"Other options",fields:[xt.showOtherDisambiguation,xt.truncateOtherDisambiguation]}),s.standard({label:"Labels",fields:[xt.valueFormat,r===_t.o9.VALUE_FORMAT_VALUE?xt.valueScale:null,r!==_t.o9.VALUE_FORMAT_NONE?xt.valueDecimals:null,xt.labelFormat,xt.showAttributeNameOnSlice,xt.showLabelLine].filter(e=>Boolean(e))}),s.standard({label:"Slices",fields:[xt.maxSliceCount,xt.minSlicePercentage,xt.sliceDirection]}),o?null:s.standard({label:"Radius",fields:[xt.outsideRadius,t?xt.insideRadius:null].filter(e=>Boolean(e))})].filter(e=>Boolean(e))})}static barFormat({isReporting:e,isWaterfall:t,valueFactors:i,useDualValueAxes:r,supportsSecondXAxis:o,showBarLabels:a,supportsValueScale:n,numGroupingFactors:l,hasMultipleValueSeries:u,canSetBarMaxWidthSetting:c}){return Ot.format({sections:[e?Et.chartTitle():null,s.standard({label:e?"Bar values":"Labels",fields:[xt.showBarLabels,a&&n?xt.valueScale:null,a?xt.valueDecimals:null].filter(e=>Boolean(e))}),!t&&u?s.standard({label:"Axis options",fields:[xt.useDualValueAxes({isXAxis:o}),r?xt.valueFactorAxisAssignments:null].filter(e=>Boolean(e))}):null,e?Et.axes():null,!t&&i.length>1?e?Et.legendFormat():s.standard({label:"Legend labels",fields:i.map((e,t)=>xt.customFactorDisplayName({factor:e,path:`query.valueFactors.objectAt(${t}).displayNameType`}))}):null,t&&0===l?s.standard({label:"Metric display name",fields:i.map((e,t)=>xt.customFactorDisplayName({factor:e,path:`query.valueFactors.objectAt(${t}).displayNameType`}))}):null,c?Et.barSizing():null].filter(e=>Boolean(e))})}static lineFormat({isReporting:e,valueFactors:t,useDualValueAxes:i,hasMultipleValueSeries:r,canSetBarMaxWidthSetting:o}){return Ot.format({sections:[e?Et.chartTitle():null,s.standard({label:"Axis options",fields:[xt.scaleChartToData,r?xt.useDualValueAxes({isXAxis:!1}):null,i?xt.valueFactorAxisAssignments:null].filter(e=>Boolean(e))}),e?Et.axes():null,e?Et.lineStyles():null,t.length>1?e?Et.legendFormat():s.standard({label:"Legend labels",fields:t.map((e,t)=>xt.customFactorDisplayName({factor:e,path:`query.valueFactors.objectAt(${t}).displayNameType`}))}):null,o?Et.barSizing():null].filter(e=>Boolean(e))})}static areaFormat({isReporting:e,valueFactors:t,hasMultipleValueSeries:i,canSetBarMaxWidthSetting:r}){return Ot.format({sections:(e?[Et.chartTitle(),Et.axes(),Et.lineStyles(),i?Et.legendFormat():null]:[r?Et.barSizing():null,t.length>1?s.standard({label:"Legend labels",fields:t.map((e,t)=>xt.customFactorDisplayName({factor:e,path:`query.valueFactors.objectAt(${t}).displayNameType`}))}):null]).filter(e=>Boolean(e))})}static scatterFormat({isReporting:e}){return e?Ot.format({sections:[Et.chartTitle(),Et.axes()]}):null}}class Et{static chart(e){return s.standard({label:"Chart",...e})}static columnMapping(e){return s.standard({label:e.label,fields:e.fields.map(e=>ft.Ay.fromHash(e,"columnMapping"))})}static configuration(e){return s.standard({label:"Configuration",...e})}static filters(e){return s.standard({label:"Filters",...e})}static calculations(e){return s.standard({label:"General settings",...e})}static tableTheme(){return s.standard({label:"Table theme",component:"widget/config-panel/reporting/format/table-theme-section"})}static barSizing(){return s.standard({label:"Bar sizing",component:"widget/config-panel/reporting/format/bar-sizing-section"})}static tableTitle(){return s.standard({label:"Table title",component:"widget/config-panel/reporting/format/table-title-section"})}static headerRow(){return s.standard({label:"Header row",component:"widget/config-panel/reporting/format/header-row-section"})}static subtotalRow(){return s.standard({label:"Subtotal rows",component:"widget/config-panel/reporting/format/subtotal-row-section"})}static bodyRow(){return s.standard({label:"Body rows",component:"widget/config-panel/reporting/format/body-row-section"})}static totalRow(){return s.standard({label:"Total row",component:"widget/config-panel/reporting/format/total-row-section"})}static metrics(){return s.standard({label:"Metrics",component:"widget/config-panel/reporting/format/metrics-section"})}static groupingFormat(){return s.standard({label:"Grouping format",component:"widget/config-panel/reporting/format/grouping-format-section"})}static columnFormat(){return s.standard({label:"Column format",component:"widget/config-panel/reporting/format/column-format-section"})}static advanced(){return s.standard({label:"Advanced",component:"widget/config-panel/reporting/format/advanced-section"})}static chartTitle(){return s.standard({label:"Chart title",component:"widget/config-panel/reporting/format/chart-title-section"})}static projectionConfiguration(){return this.configuration({component:"dashboard-projection-widget-config-section"})}
1static projectionDetails(){return s.standard({label:"Configuration details",component:"dashboard-projection-widget-details-section"})}static axes(){return s.standard({label:"Axes",component:"widget/config-panel/reporting/format/axes-section"})}static lineStyles(){return s.standard({label:"Line styles",component:"widget/config-panel/reporting/format/line-styles-section"})}static legendFormat(){return s.standard({label:"Legend format",component:"widget/config-panel/reporting/format/legend-format-section"})}static lookthroughConstituent(){return s.standard({label:"Look-through settings",component:"widget/config-panel/lookthrough-constituent/container"})}}class Ft{static chartType(e,t){return ft.Ay.visualizationType({label:"Type",getValue(e){let t=(0,_t.NO)(e.type);return(0,At.A)(t,"iconURL")},get options(){return(0,_t.Mq)().filter(i=>t.supportsVisualizationType(i.type,e.flags.boolean)).map(e=>(0,At.A)(e,"iconURL"))},onChange(e,t){e.updateChartType(t.type)}})}static visType(e,t){return ft.Ay.visualizationType({label:"Type",getValue(e){let t=(0,_t.H2)(e.type);return(0,At.A)(t,"iconURL")},get options(){return(0,_t.GK)().filter(i=>t.supportsVisualizationType(i.type,e.flags.boolean)).map(e=>(0,At.A)(e,"iconURL"))},onChange(e,t){e.updateVisType(t.type)}})}static get isDonut(){return ft.Ay.switch({label:"Pie chart type",path:"isDonut",options:[{label:"Pie",value:!1},{label:"Donut",value:!0}].map(yt.hf),notifyChart:!0})}static get isStacked(){return ft.Ay.switch({label:"Bar chart type",path:"isStacked",options:[{label:"Bar",value:!1},{label:"Stacked",value:!0}].map(yt.hf),notifyChart:!0})}static get isHorizontal(){return ft.Ay.switch({label:"Orientation",path:"isHorizontal",options:[{label:"Vertical",value:!1},{label:"Horizontal",value:!0}].map(yt.hf),notifyChart:!0,onChange(e,t){e.set("isHorizontal",(0,yt.Py)(t.target.value));let i=(0,a.$)(e);e.setProperties(i)}})}static get isOneHundredPercentStacked(){return ft.Ay.switch({label:"Stack type",path:"isOneHundredPercentStacked",options:[{label:"Stacked",value:!1},{label:"100% Stacked",value:!0}].map(yt.hf),notifyChart:!0})}static chartFactorConfig(e){return ft.Ay.factorConfig({min:1,max:1,...e})}static tableFactorConfig(e){return ft.Ay.factorConfig({min:0,max:1/0,...e})}static get tableGroupings(){let e="table_grouping";return this.tableFactorConfig({label:"Groupings",path:"query.groupingFactors",onAddClick:({visualizationEditor:t},i,...r)=>t.addGroupingFactor(Dt(i,e),...r),onEditClick:({visualizationEditor:t},i,...r)=>t._editGroupingFactor(Dt(i,e),...r),onRemove:({visualizationEditor:e},t)=>e._removeGroupingFactor(t),onReorder:({itemController:e},...t)=>e.reorderGroupingFactor(...t)})}static get tableColumns(){let e="table_metric";return this.tableFactorConfig({label:"Columns",path:"query.valueFactors",getValue:e=>e.visibleValueFactors,onAddClick:(t,i,...r)=>{let{visualizationEditor:o,itemController:a}=t;a.getNewColumnWidth&&(i.columnOption={width:a.getNewColumnWidth()}),i.addRightBorderByDefault=a.enableVsTableStyling,o.addValueFactor(Dt(i,e),...r)},onEditClick:({visualizationEditor:t},i,...r)=>t._editValueFactor(Dt(i,e),...r),onRemove:({visualizationEditor:e},t)=>{e._removeValueFactor(t)},onReorder:({itemController:e},...t)=>e.reorderValueFactor(...t)})}static get tablePivot(){return this.tableFactorConfig({label:"Pivot by",path:"query.pivotFactor",getValue:e=>[e.query.pivotFactor],onEditClick:({visualizationEditor:e},t,...i)=>e.editPivotFactor(Dt(t,"table_grouping"),...i),min:1,max:1})}static get tableMetrics(){let e="metric_row";return this.tableFactorConfig({label:"Metrics",path:"query.metricFactors",onAddClick:({visualizationEditor:t},i,...r)=>t.addMetricFactor(Dt(i,e),...r),onEditClick:({visualizationEditor:t},i,...r)=>t._editMetricFactor(Dt(i,e),...r),onRemove:({visualizationEditor:e},...t)=>e._removeMetricFactor(...t)})}static get tableBenchmarks(){return this.tableFactorConfig({label:"Benchmarks",path:"query.benchmarkFactors",labelField:"benchmarkOrAssociationName",onAddClick:({visualizationEditor:e},t,...i)=>e.addBenchmarkFactor(t,...i),onEditClick:({visualizationEditor:e},t,...i)=>e._editBenchmarkFactor(t,...i),onRemove:({visualizationEditor:e},...t)=>
1e._removeBenchmarkFactor(...t)})}static get pieChartMetric(){return this.chartFactorConfig({label:"Metric",path:"query.valueFactors",onEditClick:({visualizationEditor:e},t,...i)=>e._editValueFactor(Dt(t,"chart_ratio_metric"),...i)})}static get pieChartGrouping(){return this.chartFactorConfig({label:"Grouping",path:"query.groupingFactors",sortingField:"sorting",sortingOptions:_t.s9.map(yt.hf),getValue(e){let t=e.query.groupingFactors.slice();for(let i of t)i.set("sorting",e.pieChartSorting);return e.query.groupingFactors},onEditClick:({visualizationEditor:e},t,...i)=>e._editGroupingFactor(Dt(t,"chart_grouping"),...i),onSortingChange:(e,t,i)=>{let{itemController:r,visualizationEditor:o}=e,{visualization:a}=o;a.set("pieChartSorting",i),t.set("sorting",a.pieChartSorting),r.notifyChartConfigChanged()}})}static barChartMetrics({numGroupingFactors:e},t=!1){let i="bar_metric";return this.chartFactorConfig({label:"Metrics",path:"query.valueFactors",max:e>1||e>0&&t?1:1/0,onAddClick:({visualizationEditor:e},r)=>e.addValueFactor(Dt(r,i),()=>{t||e.visualization.valueFactorAxisAssignments.push(0)}),onEditClick:({visualizationEditor:e},t,...r)=>e._editValueFactor(Dt(t,i),...r),onRemove:({visualizationEditor:e},i)=>{let{valueFactorAxisAssignments:r,query:o}=e.visualization,a=o.valueFactors.indexOf(i);e._removeValueFactor(i),t||(1===o.valueFactors.length?r.setObjects([0]):r.splice(a,1))}})}static barChartGroupings({numValueFactors:e},t=!1){let i,r="chart_grouping";return i=t?e>1?0:1:e>1?1:2,this.chartFactorConfig({label:"Grouping",path:"query.groupingFactors",max:i,min:t?0:1,onAddClick:({visualizationEditor:e},t,...i)=>e.addGroupingFactor(Dt(t,r),...i),onEditClick:({visualizationEditor:e},t,...i)=>e._editGroupingFactor(Dt(t,r),...i),onRemove:({visualizationEditor:e},t)=>e._removeGroupingFactor(t)})}static boxplotChartMetrics(){let e="table_metric";return this.chartFactorConfig({label:"Metrics",path:"query.valueFactors",max:1/0,onAddClick:({visualizationEditor:t},i)=>t.addValueFactor(Dt(i,e),()=>{t.visualization.valueFactorAxisAssignments||(t.visualization.valueFactorAxisAssignments=[]),t.visualization.valueFactorAxisAssignments.push(0)}),onEditClick:({visualizationEditor:t},i,...r)=>t._editValueFactor(Dt(i,e),...r),onRemove:({visualizationEditor:e},t)=>{let{valueFactorAxisAssignments:i,query:r}=e.visualization,o=r.valueFactors.indexOf(t);e._removeValueFactor(t),1===r.valueFactors.length?i.setObjects([0]):i.splice(o,1)}})}static boxplotChartGroupings(){let e="chart_grouping";return this.chartFactorConfig({label:"Grouping",path:"query.groupingFactors",max:1,min:1,onAddClick:({visualizationEditor:t},i,...r)=>t.addGroupingFactor(Dt(i,e),...r),onEditClick:({visualizationEditor:t},i,...r)=>t._editGroupingFactor(Dt(i,e),...r),onRemove:({visualizationEditor:e},t)=>e._removeGroupingFactor(t)})}static get proposalSelector(){return ft.Ay.custom({component:"widget/config-panel/reporting/prop
1osal-selector"})}static get footnotes(){return ft.Ay.custom({component:"widget/config-panel/reporting/footnotes"})}static timeSeriesMetrics({numGroupingFactors:e}){let t="time_series_metric";return this.chartFactorConfig({label:"Metrics",path:"query.valueFactors",max:e>0?1:1/0,subtypeField:"timeSeriesArgs.dataSeriesType",subtypeOptions:[{label:"Line",value:"line",icon:"chart-line-up_light"},{label:"Bar",value:"bar",icon:"report-bar-horizontal-dark"}],onAddClick:({visualizationEditor:e},i)=>e.addValueFactor(Dt(i,t),()=>{e.visualization.valueFactorAxisAssignments.push(0)}),onEditClick:({visualizationEditor:e},i,...r)=>e._editValueFactor(Dt(i,t),...r),onRemove:({visualizationEditor:e},t)=>{let{valueFactorAxisAssignments:i,query:r}=e.visualization,o=r.valueFactors.indexOf(t);e._removeValueFactor(t),1===r.valueFactors.length?i.setObjects([0]):i.splice(o,1)},onSubtypeChange:({visualizationEditor:e},t,i)=>{e.updatePlotStyle(t,i)}})}static timeSeriesGroupings({numValueFactors:e}){let t="chart_grouping";return this.chartFactorConfig({label:"Grouping",path:"query.groupingFactors",min:0,max:e>1?0:1,onAddClick:({visualizationEditor:e},i,...r)=>e.addGroupingFactor(Dt(i,t),...r),onEditClick:({visualizationEditor:e},i,...r)=>e._editGroupingFactor(Dt(i,t),...r),onRemove:({visualizationEditor:e},t)=>e._removeGroupingFactor(t)})}static get timeSeriesArgs(){return ft.Ay.timeSeriesArgs({label:"Time period",path:"query.timeSeriesArgs",applyTimeSettings:e=>e.applyTimeSettings()})}static get scatterChartXAxis(){return this.chartFactorConfig({label:"X Axis",path:"query.xAxisValueFactor",getValue:e=>[e.query.xAxisValueFactor],onEditClick:({visualizationEditor:e},t,...i)=>e._editValueFactor(Dt(t,"bar_metric"),...i)})}static get scatterChartYAxis(){return this.chartFactorConfig({label:"Y Axis",path:"query.yAxisValueFactor",getValue:e=>[e.query.yAxisValueFactor],onEditClick:({visualizationEditor:e},t,...i)=>e._editValueFactor(Dt(t,"bar_metric"),...i)})}static scatterChartGrouping({numBenchmarkFactors:e,showTotal:t}){let i="chart_grouping";return this.chartFactorConfig({label:"Grouping",path:"query.groupingFactors",min:e||t?0:1,onAddClick:({visualizationEditor:e},t,...r)=>e.addGroupingFactor(Dt(t,i),...r),onEditClick:({visualizationEditor:e},t,...r)=>e._editGroupingFactor(Dt(t,i),...r),onRemove:({visualizationEditor:e},t)=>e._removeGroupingFactor(t)})}static scatterChartBenchmarks({numGroupingFactors:e,showTotal:t}){return this.chartFactorConfig({label:"Benchmarks",path:"query.benchmarkFactors",labelField:"benchmarkOrAssociationName",min:e||t?0:1,max:1/0,onAddClick:({visualizationEditor:e},t,...i)=>e.addBenchmarkFactor(t,...i),onEditClick:({visualizationEditor:e},t,...i)=>e._editBenchmarkFactor(t,...i),onRemove:({visualizationEditor:e},...t)=>e._removeBenchmarkFactor(...t)})}static get bigNumberMetric(){return this.chartFactorConfig({label:"Metric",path:"query.singleValueFactor",getValue:e=>[e.query.singleValueFactor],onEditClick:({visualizationEditor:e},t)=>e._editValueFactor(Dt(t,"big_number_metric"),()=>{let{query:t}=e.visualization,{comparisonFactor:i,singleValueFactor:r}=t;if(!i)return;let o=r.comparisonTimeArg;if(o){let{comparisonTimeArg:r}=i,a=o.templateId!==r.templateId?t.getDefaultComparisonTimeValue():r.value.serialize();e.setComparisonFactor(a)}else e._removeValueFactor(i)})})}static get bigNumberComparison(){return ft.Ay.portfolioDataCheckbox({label:"Show change over time",path:"query.comparisonFactor",onChange:({visualizationEditor:e,visualization:t},i)=>{let{query:r}=t;i.target.checked?e.setComparisonFactor(r.getDefaultComparisonTimeValue()):e._removeValueFactor(r.comparisonFactor)}})}static get bigNumberComparisonTime(){return ft.Ay.timeArg({path:"query.comparisonFactor.comparisonTimeArg",onValuePropertyUpdated:({queryRequest:e})=>{e.notifyPropertyChange("queryParameters")},onTimeArgumentUpdated:({visualizationEditor:e,queryRequest:t},i)=>{e.setComparisonFactor(i),t.notifyPropertyChange("queryParameters")}})}static get isOrderByValue(){return ft.Ay.checkbox({label:"Order by value",path:"isOrderByValue",notifyChart:!0})}static get sortAscending(){return ft.Ay.checkbox({label:"Reverse order",path:"sortAscending",notifyChart:!0})}static get showTotalBar(){return ft.Ay.checkbox({label:"Include total bar",path:"showTotal",notifyChart:!0})}static get startPercentagesAtZero(){return ft.Ay.checkbox({label:"Start percentages at 0",path:"startPercentagesAtZero",tooltip:"Turn on to have percentage metric lines start at 0 at the first point in the time period.",notifyChart:!0})}static showTotalScatter({disabled:e=!1}={}){return ft.Ay.checkbox({label:"Include total",path:"showTotal",disabled:e,notifyChart:!0})}static get portfolioFilters(){return ft.Ay.custom({component:"widget/config-panel/field/portfolio-filters"})}static get hidePreviousHoldings(){return ft.Ay.checkbox({label:"Hide previous holdings",path:"query.hidePreviousHoldings"})}static get showSleeves(){return ft.Ay.checkbox({label:"Show sleeves",path:"query.showSleeves"})}static get useMultibucketing(){return ft.Ay.checkbox({label:"Group by historical values",path:"query.useMultibucketing"})}static get displayFundTotal(){return ft.Ay.checkbox({label:"Display fund total",path:"isFundContext"})}static get lookthrough(){return ft.Ay.checkbox({label:"Look through composite securities",path:"query.lookthrough"})}static get lookthroughConstituentHoldings(){return ft.Ay.checkbox({label:"Look through constituent holdings",path:"query.lookthroughConstituentHoldings"})}
1static get expandWrapperEntities(){return ft.Ay.checkbox({label:"Display wrapped entities",path:"query.expandWrapperEntities"})}static get taxLotUseSettlementDate(){return ft.Ay.checkbox({label:"Use settlement date for tax lots",path:"query.taxLotUseSettlementDate"})}static get showFees(){return ft.Ay.checkbox({label:"Display account fees",path:"query.showFees"})}static get matchBillingFeesToPath(){return ft.Ay.checkbox({label:"Assign billing fees to security<br/>level",path:"query.matchBillingFeesToPath",tooltip:"Allows security and class-level fee analysis, but may increase run time. Not recommended for analysis at account level or higher."})}static showTotalRow(e){return e?ft.Ay.portfolioDataCheckbox({label:"Show total row",onChange(e,t){let{itemController:i}=e;i.toggleShowTotalRow(t.target.checked)},path:"query.showTotalRow"}):ft.Ay.checkbox({label:"Show total row",path:"query.showTotalRow"})}static get collapseAllRows(){return ft.Ay.checkbox({label:"Collapse all rows",path:"collapsedByDefault"})}static get ignoreSummaryDataOnRollup(){return ft.Ay.checkbox({label:"Calculate totals from underlying data",path:"query.ignoreSummaryDataOnRollup"})}static get showTotalColumn(){return ft.Ay.checkbox({label:"Show total column",path:"query.showTotalColumn"})}static get multiValueGroupSetting(){return ft.Ay.dropdown({label:"Multiple-value attributes",path:"query.multiValueGroupSetting",options:(0,bt.$o)().map(bt.bh).map(yt.hf),onChange:(e,t)=>
1{let{option:i}=t.detail;e.query.set("groupByWeightedValues",i.groupByWeightedValues),e.query.set("showMultiValueRemainder",i.showMultiValueRemainder)}})}static shortHeldAssetDisplayPreference(e){return ft.Ay.dropdown({label:"Short held assets",path:"query.shortHeldAssetDisplayPreference",tooltip:'An asset is considered "short held" when it has not been owned for the entire period of a configured metric.',options:e})}static estimatedReturnsDisplayPreference(e){return ft.Ay.dropdown({label:"Estimated returns",path:"query.estimatedReturnsDisplayPreference",options:e})}static benchmarkProxyDisplayPreference(e){return ft.Ay.dropdown({label:"Benchmark proxies",path:"query.benchmarkProxyDisplayPreference",options:e})}static get sleeveSetting(){return ft.Ay.dropdown({label:"Sleeve setting",path:"query.sleeveSetting",options:vt.Ay.map(yt.hf)})}static get targetAllocationMode(){return ft.Ay.dropdown({label:"Target allocation reference level",path:"query.targetAllocationMode",options:wt.Ay.map(yt.hf)})}static get textVariables(){return ft.Ay.textVariable({onAddVariable:e=>{e.itemController.notifyTextConfigChanged("addFactor")}})}}class Pt{static columns(e){return{component:"widget/config-panel/transactions-data-field",type:"stacked-chips",path:"query.columnSettings",labelField:"displayName",valueField:"column.id",options:e,getValue:e=>e.query.columnSettings,onAdd(e,t){e.itemController.visualizationEditor.addColumn(t)},onSwap(e,t,i){e.itemController.visualizationEditor.swapColumn(t,i)},onRemove(e,t){e.itemController.visualizationEditor.removeColumn(t)},onReorder(e,t,i){e.itemController.visualizationEditor.reorderColumns(t,i)}}}static get filters(){return ft.Ay.custom({component:"widget/config-panel/field/transaction-filters"})}static get limit(){return ft.Ay.number({label:"Max number of rows",path:"query.query.limit",onChange:(e,t)=>
1{let i=parseInt(t.target.value);if(isNaN(i)||i<_t.B3.MIN||i>_t.B3.MAX)return{error:"Enter a number between 1 and 10,000."};e.query.query.set("limit",i)}})}}class xt{static get showLegend(){return ft.Ay.checkbox({label:"Show legend",path:"showLegend",notifyChart:!0})}static get legendPosition(){return ft.Ay.switch({label:"Position",path:"legendPosition",options:[{label:"bottom",icon:"arrow-down",value:"bottom",hideLabel:!0},{label:"right",icon:"arrow-right",value:"right",hideLabel:!0}].map(yt.hf),appearance:"inline",size:"comfortable",notifyChart:!0})}static get showOtherDisambiguation(){return ft.Ay.checkbox({label:"Other breakdown",path:"showOtherDisambiguation",notifyChart:!0})}static get truncateOtherDisambiguation(){return ft.Ay.checkbox({label:'Truncate "Other" breakdown',path:"truncateOtherDisambiguation",notifyChart:!0})}static get valueFormat(){return ft.Ay.dropdown({label:"Numerical format",path:"valueFormat",options:_t.nt.map(yt.hf),notifyChart:!0})}static get valueScale(){return ft.Ay.dropdown({label:"Value scale",path:"valueScale",options:_t.gU.map(yt.hf),notifyChart:!0})}static get valueDecimals(){return ft.Ay.dropdown({label:"Decimal places",path:"valueDecimals",options:_t.ow.map(yt.hf),notifyChart:!0})}static get showBarLabels(){return ft.Ay.checkbox({label:"Bar values",path:"showBarLabels",notifyChart:!0})}static get showAttributeNameOnSlice(){return ft.Ay.checkbox({label:"Grouping names",path:"showAttributeNameOnSlice",notifyChart:!0})}static get showLabelLine(){return ft.Ay.checkbox({label:"Leader lines",path:"showLabelLine",notifyChart:!0})}static get labelFormat(){return ft.Ay.switch({label:"Text wrapping",path:"labelFormat",options:_t.Aj.map(yt.hf),notifyChart:!0})}static get deltaDisplay(){return ft.Ay.radio({label:"Options",path:"deltaDisplay",options:[{label:"Show absolute change",value:_t.ls.ABSOLUTE},{label:"Show relative change",value:_t.ls.RELATIVE},{label:"Show both",value:_t.ls.BOTH}],notifyChart:!0})}static get deltaColor(){return ft.Ay.radio({label:"Colors",path:"deltaColor",options:[{label:"Green for increase, red for decrease",value:_t.AT.DEFAULT},{label:"Red for increase, green for decrease",value:_t.AT.INVERT}]})}static get maxSliceCount(){return ft.Ay.range({label:"Maximum number of slices",path:"maxSliceCount",min:2,max:20,step:1,notifyChart:!0})}static get minSlicePercentage(){return ft.Ay.range({label:"Minimum slice percentage",path:"minSlicePercentage",min:0,max:10,step:1,isPercent:!0,notifyChart:!0})}static get sliceDirection(){return ft.Ay.switch({label:"Direction",path:"sliceDirection",options:_t.Y8.map(yt.hf),notifyChart:!0})}static get outsideRadius(){return ft.Ay.range({label:"Pie",path:"outsideRadius",min:10,max:100,step:5,isPercent:!0,notifyChart:!0,onChange:(e,t)=>
1{let{value:i}=t.target;e.set("outsideRadius",i),i<=e.insideRadius&&e.set("insideRadius",i-5)}})}static get insideRadius(){return ft.Ay.range({label:"Donut hole",path:"insideRadius",min:5,max:95,step:5,isPercent:!0,notifyChart:!0,onChange:(e,t)=>{let{value:i}=t.target;e.set("insideRadius",i),i>=e.outsideRadius&&e.set("outsideRadius",i+5)}})}static customFactorDisplayName(e){return ft.Ay.customFactorDisplayName(e)}static get scaleChartToData(){return ft.Ay.checkbox({label:"Scale chart to data",path:"scaleChartToData",tooltip:"If checked, the minimum and maximum values of the vertical axis will be resized to fit the data set.",notifyChart:!0})}static useDualValueAxes({isXAxis:e}){return ft.Ay.checkbox({label:`Add secondary ${e?"x":"y"}-axis`,path:"useDualValueAxes"})}static get valueFactorAxisAssignments(){return ft.Ay.custom({component:"widget/config-panel/field/axis-assignment"})}static get textStyle(){return ft.Ay.custom({component:"widget/config-panel/field/text-style"})}static get lineSpacing(){return ft.Ay.custom({component:"widget/config-panel/field/line-spacing"})}static get fontSize(){return ft.Ay.custom({component:"widget/config-panel/field/font-size"})}static get fontWeight(){return ft.Ay.custom({component:"widget/config-panel/field/font-weight"})}static get fontStyle(){return ft.Ay.custom({component:"widget/config-panel/field/font-style"})}static get fontColor(){return ft.Ay.custom({component:"widget/config-panel/field/font-color"})}static get alignment(){return ft.Ay.custom({component:"widget/config-panel/field/alignment"})}static get indent(){return ft.Ay.custom({component:"widget/config-panel/field/indent"})}static get listType(){return ft.Ay.custom({component:"widget/config-panel/field/list-type"})}}function Nt(){return[Et.tableTheme(),Et.tableTitle(),Et.headerRow(),Et.bodyRow(),Et.subtotalRow(),Et.totalRow()]}class zt extends(o()){}let It=(l=(0,r.computed)("visualization.type"),u=(0,r.computed)("visualization.dataSet"),c=(0,r.computed)("resourceType"),d=(0,r.computed)("visualization.granularType"),p=(0,r.computed)("resourceMeta.resourceType"),h=(0,r.computed)("visualization.resourceMeta"),m=(0,r.computed)("visualization.columnMappingOptions"),g=(0,r.computed)("canSetBarMaxWidthSetting","enableVsChartStyling","granularType","hasComparisonValue","hasMultipleValueSeries","isAdvancedTable","isDonut","isPivotTable","isReporting","isWaterfall","metricFactors","numGroupingFactors","showBarLabels","showLegend","supportsSecondXAxis","supportsValueScale","useDualValueAxes","valueFactors","valueFormat"),f=(0,r.computed)("featureFlags.flags.boolean.enable_vs_chart_styling","isReporting","theme.isLegacy"),y=(0,r.computed)("visualization.isPivotTable"),b=(0,r.computed)("visualization.isAdvancedTable"),v=(0,r.computed)("visualization.query.metricFactors"),w=(0,r.computed)("visualization.showLegend"),_=(0,r.computed)("visualization.isFundContextAvailable"),A=(0,r.computed)("visualization.valueFormat"),T=(0,r.computed)("visualization.query.valueFactors.[]"),C=(0,r.computed)("type"),S=(0,r.computed)("enableVsChartStyling","featureFlags.flags.boolean.use_widget_engine_portfolio_charts","isBarChart","isReporting"),R=(0,r.computed)("visualization.isDonut"),D=(0,r.computed)("visualization.isStacked"),O=(0,r.computed)("visualization.showBarLabels"),E=(0,r.computed)("visualization.isPercentMetric"),F=(0,r.computed)("visualization.useDualValueAxes"),P=(0,r.computed)("visualization.supportsSecondXAxis"),x=(0,r.computed)("visualization.numGroupingFactors"),N=(0,r.computed)("visualization.numValueFactors"),z=(0,r.computed)("visualization.numBenchmarkFactors"),I=(0,r.computed)("visualization.numMetricFactors"),M=(0,r.computed)("disableScatterTotal","granularType","supportsBarTotal"),L=Rt((k=class extends zt{constructor(e){super(),Ct(this,"featureFlags",L,this),Ct(this,"visualization",j,this),Ct(this,"displaySetting",V,this),Ct(this,"theme",B,this),St(this,"isWaterfall",!1),this.featureFlags=e.featureFlags,this.visualization=e.visualization,this.displaySetting=e.displaySetting,this.theme=e.theme}get type(){return this.visualization.type}get dataSet(){return this.visualization.dataSet}get isReporting(){return"report"===this.resourceType}get granularType(){return this.visualization.granularType}get resourceType(){return this.resourceMeta.resourceType}get resourceMeta(){return this.visualization.resourceMeta}get columnMappingOptions(){return this.visualization.columnMappingOptions}get formatTab(){switch(this.granularType){case _t.HF.TABLE:case _t.HF.ASSET:case _t.HF.PIVOT:case _t.HF.ADVANCED:return Ot.tableFormat({isReporting:this.isReporting,isPivotTable:this.isPivotTable,isAdvancedTable:this.isAdvancedTable,metricFactors:this.metricFactors});
1case _t.qL.NUMBER:return Ot.numberFormat({supportsValueScale:this.supportsValueScale,hasComparisonValue:this.hasComparisonValue});case _t.$Z.BETA_PIE_TYPE:return Ot.pieFormat({isReporting:this.isReporting,isDonut:this.isDonut,showLegend:this.showLegend,valueFormat:this.valueFormat,enableVsChartStyling:this.enableVsChartStyling});case _t.$Z.BETA_BAR_TYPE:case _t.$Z.BETA_WATERFALL_TYPE:return Ot.barFormat({isReporting:this.isReporting,isWaterfall:this.isWaterfall,useDualValueAxes:this.useDualValueAxes,supportsSecondXAxis:this.supportsSecondXAxis,showBarLabels:this.showBarLabels,supportsValueScale:this.supportsValueScale,numGroupingFactors:this.numGroupingFactors,hasMultipleValueSeries:this.hasMultipleValueSeries,valueFactors:this.valueFactors,enableVsChartStyling:this.enableVsChartStyling,canSetBarMaxWidthSetting:this.canSetBarMaxWidthSetting});case _t.$Z.BETA_LINE_TYPE:return Ot.lineFormat({isReporting:this.isReporting,valueFactors:this.valueFactors,useDualValueAxes:this.useDualValueAxes,hasMultipleValueSeries:this.hasMultipleValueSeries,canSetBarMaxWidthSetting:this.canSetBarMaxWidthSetting});case _t.$Z.BETA_AREA_TYPE:return Ot.areaFormat({isReporting:this.isReporting,valueFactors:this.valueFactors,hasMultipleValueSeries:this.hasMultipleValueSeries,canSetBarMaxWidthSetting:this.canSetBarMaxWidthSetting});case _t.$Z.BETA_SCATTER_TYPE:return Ot.scatterFormat({isReporting:this.isReporting});case _t.$Z.GAUGE_TYPE:return null;default:throw new Error(`Unsupported chart type: ${this.granularType}`)}}get enableVsChartStyling(){return!!this.featureFlags.flags.boolean.enable_vs_chart_styling&&!this.theme.isLegacy&&!this.isReporting}get isPivotTable(){return this.visualization.isPivotTable}get isAdvancedTable(){return this.visualization.isAdvancedTable}get metricFactors(){return this.visualization.query?.metricFactors||[]}get showLegend(){return this.visualization.showLegend}get isFundContextAvailable(){return this.visualization.isFundContextAvailable}get valueFormat(){return this.visualization.valueFormat}get valueFactors(){return this.visualization.query?.valueFactors?.slice()??[]}get isBarChart(){return[_t.$Z.BETA_BAR_TYPE,_t.$Z.BETA_WATERFALL_TYPE].includes(this.type)}get canSetBarMaxWidthSetting(){return this.isReporting?this.isBarChart&&!!this.featureFlags.flags.boolean.use_widget_engine_portfolio_charts:this.enableVsChartStyling&&this.isBarChart}get isDonut(){return this.visualization.isDonut}get isStacked(){return this.visualization.isStacked}get showBarLabels(){return this.visualization.showBarLabels}get isPercentMetric(){return this.visualization.isPercentMetric}get useDualValueAxes(){return this.visualization.useDualValueAxes}get supportsSecondXAxis(){return this.visualization.supportsSecondXAxis}get numGroupingFactors(){return this.visualization.numGroupingFactors}get numValueFactors(){return this.visualization.numValueFactors}get numBenchmarkFactors(){return this.visualization.numBenchmarkFactors}get numMetricFactors(){return this.visualization.numMetricFactors}get hasMultipleValueSeries(){return!1}get hasComparisonValue(){return!1}get supportsValueScale(){return!0}get supportsBarTotal(){return!1}get disableScatterTotal(){return!1}get dataTabFormatFields(){switch(this.granularType){case _t.HF.TABLE:case _t.HF.ASSET:case _t.HF.PIVOT:case _t.HF.ADVANCED:case _t.qL.NUMBER:return[];case _t.$Z.BETA_PIE_TYPE:return[Ft.isDonut];case _t.$Z.BETA_BAR_TYPE:return[Ft.isStacked,Ft.isHorizontal,Ft.isOrderByValue,Ft.sortAscending,...this.supportsBarTotal?[Ft.showTotalBar]:[]];case _t.$Z.BETA_WATERFALL_TYPE:return[Ft.isOrderByValue,Ft.sortAscending,Ft.showTotalBar];case _t.$Z.BETA_LINE_TYPE:return[Ft.startPercentagesAtZero];case _t.$Z.BETA_AREA_TYPE:return[Ft.isOneHundredPercentStacked];case _t.$Z.BETA_SCATTER_TYPE:return[Ft.showTotalScatter({disabled:this.disableScatterTotal})];case _t.$Z.BETA_BOXPLOT_TYPE:case _t.$Z.GAUGE_TYPE:return[];default:throw new Error(`Unsupported chart type for dataTabFormatFields: ${this.granularType}`)}}}).prototype,"featureFlags",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=Rt(k.prototype,"visualization",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=Rt(k.prototype,"displaySetting",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=Rt(k.prototype,"theme",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt(k.prototype,"type",[l],Object.getOwnPropertyDescriptor(k.prototype,"type"),k.prototype),Rt(k.prototype,"dataSet",[u],Object.getOwnPropertyDescriptor(k.prototype,"dataSet"),k.prototype),Rt(k.prototype,"isReporting",[c],Ob
1ject.getOwnPropertyDescriptor(k.prototype,"isReporting"),k.prototype),Rt(k.prototype,"granularType",[d],Object.getOwnPropertyDescriptor(k.prototype,"granularType"),k.prototype),Rt(k.prototype,"resourceType",[p],Object.getOwnPropertyDescriptor(k.prototype,"resourceType"),k.prototype),Rt(k.prototype,"resourceMeta",[h],Object.getOwnPropertyDescriptor(k.prototype,"resourceMeta"),k.prototype),Rt(k.prototype,"columnMappingOptions",[m],Object.getOwnPropertyDescriptor(k.prototype,"columnMappingOptions"),k.prototype),Rt(k.prototype,"formatTab",[g],Object.getOwnPropertyDescriptor(k.prototype,"formatTab"),k.prototype),Rt(k.prototype,"enableVsChartStyling",[f],Object.getOwnPropertyDescriptor(k.prototype,"enableVsChartStyling"),k.prototype),Rt(k.prototype,"isPivotTable",[y],Object.getOwnPropertyDescriptor(k.prototype,"isPivotTable"),k.prototype),Rt(k.prototype,"isAdvancedTable",[b],Object.getOwnPropertyDescriptor(k.prototype,"isAdvancedTable"),k.prototype),Rt(k.prototype,"metricFactors",[v],Object.getOwnPropertyDescriptor(k.prototype,"metricFactors"),k.prototype),Rt(k.prototype,"showLegend",[w],Object.getOwnPropertyDescriptor(k.prototype,"showLegend"),k.prototype),Rt(k.prototype,"isFundContextAvailable",[_],Object.getOwnPropertyDescriptor(k.prototype,"isFundContextAvailable"),k.prototype),Rt(k.prototype,"valueFormat",[A],Object.getOwnPropertyDescriptor(k.prototype,"valueFormat"),k.prototype),Rt(k.prototype,"valueFactors",[T],Object.getOwnPropertyDescriptor(k.prototype,"valueFactors"),k.prototype),Rt(k.prototype,"isBarChart",[C],Object.getOwnPropertyDescriptor(k.prototype,"isBarChart"),k.prototype),Rt(k.prototype,"canSetBarMaxWidthSetting",[S],Object.getOwnPropertyDescriptor(k.prototype,"canSetBarMaxWidthSetting"),k.prototype),Rt(k.prototype,"isDonut",[R],Object.getOwnPropertyDescriptor(k.prototype,"isDonut"),k.prototype),Rt(k.prototype,"isStacked",[D],Object.getOwnPropertyDescriptor(k.prototype,"isStacked"),k.prototype),Rt(k.prototype,"showBarLabels",[O],Object.getOwnPropertyDescriptor(k.prototype,"showBarLabels"),k.prototype),Rt(k.prototype,"isPercentMetric",[E],Object.getOwnPropertyDescriptor(k.prototype,"isPercentMetric"),k.prototype),Rt(k.prototype,"useDualValueAxes",[F],Object.getOwnPropertyDescriptor(k.prototype,"useDualValueAxes"),k.prototype),Rt(k.prototype,"supportsSecondXAxis",[P],Object.getOwnPropertyDescriptor(k.prototype,"supportsSecondXAxis"),k.prototype),Rt(k.prototype,"numGroupingFactors",[x],Object.getOwnPropertyDescriptor(k.prototype,"numGroupingFactors"),k.prototype),Rt(k.prototype,"numValueFactors",[N],Object.getOwnPropertyDescriptor(k.prototype,"numValueFactors"),k.prototype),Rt(k.prototype,"numBenchmarkFactors",[z],Object.getOwnPropertyDescriptor(k.prototype,"numBenchmarkFactors"),k.prototype),Rt(k.prototype,"numMetricFactors",[I],Object.getOwnPropertyDescriptor(k.prototype,"numMetricFactors"),k.prototype),Rt(k.prototype,"dataTabFormatFields",[M],Object.getOwnPropertyDescriptor(k.prototype,"dataTabFormatFields"),k.prototype),k),Mt=(q=(0,r.computed)("numValueFactors"),H=(0,r.computed)("numValueFactors"),U=(0,r.computed)("isPercentMetric"),G=(0,r.computed)("numGroupingFactors"),W=(0,r.computed)("numBenchmarkFactors","numGroupingFactors"),$=(0,r.computed)("displaySetting.shortHeldAssetDisplayPreferences"),Y=(0,r.computed)("displaySetting.estimatedReturnsDisplayPreferences"),K=(0,r.computed)("displaySetting.benchmarkProxyDisplayPreferences"),Q=(0,r.computed)("featureFlags.flags.boolean.enable_benchmark_proxies"),X=(0,r.computed)("displaySetting.isSleeveModelTypeEnabled","featureFlags.flags.boolean.sleeve_linking"),Z=(0,r.computed)("canSetSleeveSetting","featureFlags.flags.boolean.sleeve_model_type"),J=(0,r.computed)("featureFlags.flags.boolean.new_billing_account_matching"),ee=(0,r.computed)("featureFlags.flags.boolean.tax_lot_settlement_date"),te=(0,r.computed)("featureFlags.flags.boolean.ignore_summary_data_on_rollup"),ie=(0,r.computed)("featureFlags.flags.boolean.new_constituent_settings"),re=(0,r.computed)("[email protected]"),oe=(0,r.computed)("[email protected]"),ae=(0,r.computed)("enableVsChartStyling","featureFlags.flags.boolean.use_widget_engine_portfolio_charts","isBarChart","isReporting","type","valueFactorsDataSeriesTypes.[]"),Rt((ne=class extends It{get hasMultipleValueSeries(){return this.numValueFactors>1}get hasComparisonValue(){return this.numValueFactors>1}get supportsValueScale(){return!this.isPercentMetric}get supportsBarTotal(){return this.numGroupingFactors<=1}get disableScatterTotal(){return this.numBenchmarkFactors+this.numGroupingFactors<1}get shortHeldAssetDisplayPreferences(){return this.displaySetting.shortHeldAssetDisplayPreferences.map(yt.hf)}get estimatedReturnsDisplayPreferences(){return this.displaySetting.estimatedReturnsDisplayPreferences.map(yt.hf)}get benchmarkProxyDisplayPreferences(){return this.displaySetting.benchmarkProxyDisplayPreferences.map(yt.hf)}get canSetBenchmarkProxyDisplayPreference(){return this.featureFlags.flags.boolean.enable_benchmark_proxies}get canSetSleeveSetting(){return this.displaySetting.isSleeveModelTypeEnabled||this.featureFlags.flags.boolean.sleeve_linking}get canSetShowSleeves(){return this.featureFlags.flags.boolean.sleeve_model_type&&!this.canSetSleeveSetting}get canSetMatchBillingFeesToPath(){return this.featureFlags.flags.boolean.new_billing_account_matching}get canSetTaxLotUseSettlementDate(){return this.featureFlags.flags.boolean.tax_lot_settlement_date}get canSetIgnoreSummaryDataOnRollup(){return this.featureFlags.flags.boolean.ignore_summary_data_on_rollup}get canSetNewConstituentSettings(){return this.featureFlags.flags.boolean.new_constituent_settings}get valueFactorsTimeSeriesArgs(){return this.visualization.query.valueFactors.map(e=>e.timeSeriesArgs)}get valueFactorsDataSeriesTypes(){return this.valueFactorsTimeSeriesArgs.map(e=>e.dataSeriesType)}
1get canSetBarMaxWidthSetting(){let e=[_t.$Z.BETA_LINE_TYPE,_t.$Z.BETA_AREA_TYPE].includes(this.type)&&this.valueFactorsDataSeriesTypes.some(e=>"bar"===e);return this.isReporting?(this.isBarChart||e)&&!!this.featureFlags.flags.boolean.use_widget_engine_portfolio_charts:this.enableVsChartStyling&&(this.isBarChart||e)}}).prototype,"hasMultipleValueSeries",[q],Object.getOwnPropertyDescriptor(ne.prototype,"hasMultipleValueSeries"),ne.prototype),Rt(ne.prototype,"hasComparisonValue",[H],Object.getOwnPropertyDescriptor(ne.prototype,"hasComparisonValue"),ne.prototype),Rt(ne.prototype,"supportsValueScale",[U],Object.getOwnPropertyDescriptor(ne.prototype,"supportsValueScale"),ne.prototype),Rt(ne.prototype,"supportsBarTotal",[G],Object.getOwnPropertyDescriptor(ne.prototype,"supportsBarTotal"),ne.prototype),Rt(ne.prototype,"disableScatterTotal",[W],Object.getOwnPropertyDescriptor(ne.prototype,"disableScatterTotal"),ne.prototype),Rt(ne.prototype,"shortHeldAssetDisplayPreferences",[$],Object.getOwnPropertyDescriptor(ne.prototype,"shortHeldAssetDisplayPreferences"),ne.prototype),Rt(ne.prototype,"estimatedReturnsDisplayPreferences",[Y],Object.getOwnPropertyDescriptor(ne.prototype,"estimatedReturnsDisplayPreferences"),ne.prototype),Rt(ne.prototype,"benchmarkProxyDisplayPreferences",[K],Object.getOwnPropertyDescriptor(ne.prototype,"benchmarkProxyDisplayPreferences"),ne.prototype),Rt(ne.prototype,"canSetBenchmarkProxyDisplayPreference",[Q],Object.getOwnPropertyDescriptor(ne.prototype,"canSetBenchmarkProxyDisplayPreference"),ne.prototype),Rt(ne.prototype,"canSetSleeveSetting",[X],Object.getOwnPropertyDescriptor(ne.prototype,"canSetSleeveSetting"),ne.prototype),Rt(ne.prototype,"canSetShowSleeves",[Z],Object.getOwnPropertyDescriptor(ne.prototype,"canSetShowSleeves"),ne.prototype),Rt(ne.prototype,"canSetMatchBillingFeesToPath",[J],Object.getOwnPropertyDescriptor(ne.prototype,"canSetMatchBillingFeesToPath"),ne.prototype),Rt(ne.prototype,"canSetTaxLotUseSettlementDate",[ee],Object.getOwnPropertyDescriptor(ne.prototype,"canSetTaxLotUseSettlementDate"),ne.prototype),Rt(ne.prototype,"canSetIgnoreSummaryDataOnRollup",[te],Object.getOwnPropertyDescriptor(ne.prototype,"canSetIgnoreSummaryDataOnRollup"),ne.prototype),Rt(ne.prototype,"canSetNewConstituentSettings",[ie],Object.getOwnPropertyDescriptor(ne.prototype,"canSetNewConstituentSettings"),ne.prototype),Rt(ne.prototype,"valueFactorsTimeSeriesArgs",[re],Object.getOwnPropertyDescriptor(ne.prototype,"valueFactorsTimeSeriesArgs"),ne.prototype),Rt(ne.prototype,"valueFactorsDataSeriesTypes",[oe],Object.getOwnPropertyDescriptor(ne.prototype,"valueFactorsDataSeriesTypes"),ne.prototype),Rt(ne.prototype,"canSetBarMaxWidthSetting",[ae],Object.getOwnPropertyDescriptor(ne.prototype,"canSetBarMaxWidthSetting"),ne.prototype),ne),kt=(se=(0,r.computed)("featureFlags.flags.boolean.reporting_table_footnotes","isReporting"),le=(0,r.computed)("featureFlags.flags.boolean.proposal-generation","visualization.query.hasProposalFactor","isReporting","isPivotTable"),ue=(0,r.computed)("benchmarkProxyDisplayPreferences","canSetBenchmarkProxyDisplayPreference","canSetIgnoreSummaryDataOnRollup","canSetMatchBillingFeesToPath","canSetNewConstituentSettings","canSetShowSleeves","canSetSleeveSetting","canSetTaxLotUseSettlementDate","enableVsChartStyling","estimatedReturnsDisplayPreferences","formatTab","isAdvancedTable","isFundContextAvailable","isPivotTable","isReporting","metricFactors","numMetricFactors","shortHeldAssetDisplayPreferences","showFootnotes","showLegend","showProposalSelector"),Rt((ce=class extends Mt{constructor(...e){super(...e),St(this,"valueFactorTemplateContext","table_metric"),St(this,"groupingFactorTemplateContext","table_grouping")}get showFootnotes(){return this.featureFlags.flags.boolean.reporting_table_footnotes&&this.isReporting}get showProposalSelector(){return this.featureFlags.flags.boolean["proposal-generation"]&&this.visualization.query.hasProposalFactor&&this.isReporting&&!this.isPivotTable}get tabs(){return[Ot.data({sections:[Et.configuration({fields:[Ft.tableGroupings,Ft.tableColumns,this.isPivotTable?Ft.tablePivot:null,this.isAdvancedTable?Ft.tableMetrics:null,Ft.tableBenchmarks,this.showProposalSelector?Ft.proposalSelector:null,this.show
1Footnotes?Ft.footnotes:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:[Ft.hidePreviousHoldings,this.canSetShowSleeves?Ft.showSleeves:null,Ft.useMultibucketing,this.isFundContextAvailable?Ft.displayFundTotal:null,this.canSetNewConstituentSettings?null:Ft.lookthrough,this.canSetNewConstituentSettings?null:Ft.lookthroughConstituentHoldings,Ft.expandWrapperEntities,this.canSetTaxLotUseSettlementDate?Ft.taxLotUseSettlementDate:null,Ft.showFees,this.canSetMatchBillingFeesToPath?Ft.matchBillingFeesToPath:null,Ft.showTotalRow(this.isReporting),Ft.collapseAllRows,this.canSetIgnoreSummaryDataOnRollup?Ft.ignoreSummaryDataOnRollup:null,this.isPivotTable?Ft.showTotalColumn:null,Ft.multiValueGroupSetting,Ft.shortHeldAssetDisplayPreference(this.shortHeldAssetDisplayPreferences),Ft.estimatedReturnsDisplayPreference(this.estimatedReturnsDisplayPreferences),this.canSetBenchmarkProxyDisplayPreference?Ft.benchmarkProxyDisplayPreference(this.benchmarkProxyDisplayPreferences):null,this.canSetSleeveSetting?Ft.sleeveSetting:null,Ft.targetAllocationMode].filter(e=>Boolean(e))}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()].filter(e=>Boolean(e))}}).prototype,"showFootnotes",[se],Object.getOwnPropertyDescriptor(ce.prototype,"showFootnotes"),ce.prototype),Rt(ce.prototype,"showProposalSelector",[le],Object.getOwnPropertyDescriptor(ce.prototype,"showProposalSelector"),ce.prototype),Rt(ce.prototype,"tabs",[ue],Object.getOwnPropertyDescriptor(ce.prototype,"tabs"),ce.prototype),ce),Lt=(de=(0,r.computed)("canSetShowSleeves","canSetMatchBillingFeesToPath","canSetSleeveSetting","canSetTaxLotUseSettlementDate","canSetNewConstituentSettings"),Rt((pe=class extends Mt{get calculationFields(){return[Ft.hidePreviousHoldings,this.canSetShowSleeves?Ft.showSleeves:null,Ft.useMultibucketing,this.canSetNewConstituentSettings?null:Ft.lookthrough,this.canSetNewConstituentSettings?null:Ft.lookthroughConstituentHoldings,Ft.expandWrapperEntities,this.canSetTaxLotUseSettlementDate?Ft.taxLotUseSettlementDate:null,this.canSetMatchBillingFeesToPath?Ft.matchBillingFeesToPath:null,Ft.multiValueGroupSetting,this.canSetSleeveSetting?Ft.sleeveSetting:null,Ft.targetAllocationMode].filter(e=>Boolean(e))}}).prototype,"calculationFields",[de],Object.getOwnPropertyDescriptor(pe.prototype,"calculationFields"),pe.prototype),pe),jt=(he=(0,r.computed)("featureFlags.flags.boolean.proposal-generation","visualization.query.hasProposalFactor"),me=(0,r.computed)("calculationFields","canSetNewConstituentSettings","dataTabFormatFields","enableVsChartStyling","featureFlags","formatTab","isFundContextAvailable","isReporting","resourceMeta","showLegend","showProposalSelector","valueFormat"),Rt((ge=class extends Lt{get showProposalSelector(){return this.featureFlags.flags.boolean["proposal-generation"]&&this.visualization.query.hasProposalFactor}get tabs(){return[Ot.data({sections:[Et.chart({fields:[Ft.chartType(this.featureFlags,this.resourceMeta),...this.dataTabFormatFields]}),Et.configuration({fields:[Ft.pieChartMetric,Ft.pieChartGrouping,this.isFundContextAvailable?Ft.displayFundTotal:null,this.showProposalSelector?Ft.proposalSelector:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:this.calculationFields}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()]}}).prototype,"showProposalSelector",[he],Object.getOwnPropertyDescriptor(ge.prototype,"showProposalSelector"),ge.prototype),Rt(ge.prototype,"tabs",[me],Object.getOwnPropertyDescriptor(ge.prototype,"tabs"),ge.prototype),ge),Vt=(fe=(0,r.computed)("featureFlags.flags.boolean.proposal-generation","visualization.query.hasProposalFactor"),ye=(0,r.computed)("calculationFields","canSetBarMaxWidthSetting","canSetNewConstituentSettings","dataTabFormatFields","enableVsChartStyling","featureFlags","formatTab","isFundContextAvailable","isPercentMetric","isReporting","isStacked","isWaterfall","numGroupingFactors","numValueFactors","resourceMeta","showBarLabels","showProposalSelector","supportsSecondXAxis","useDualValueAxes","valueFactors"),Rt((be=class extends Lt{constructor(...e){super(...e),St(this,"isWaterfall",!1)}get showProposalSelector(){return this.featureFlags.flags.boolean["proposal-generation"]&&this.visualization.query.hasProposalFactor}get tabs(){let{numGroupingFactors:e,numValueFactors:t}=this;return[Ot.data({sections:[Et.chart({fields:[Ft.chartType(this.featureFlags,this.resourceMeta),...this.dataTabFormatFields]}),Et.configuration({fields:[Ft.barChartMetrics({numGroupingFactors:e},this.isWaterfall),Ft.barChartGroupings({numValueFactors:t},this.isWaterfall),this.showProposalSelector?Ft.proposalSelector:null,this.isFundContextAvailable?Ft.displayFundTotal:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:this.calculationFields}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()].filter(e=>e.sections.length>0)}}).prototype,"showProposalSelector",[fe],Object.getOwnPropertyDescriptor(be.prototype,"showProposalSelector"),be.prototype),Rt(be.prototype,"tabs",[ye],Object.getOwnPropertyDescriptor(be.prototype,"tabs"),be.prototype),be);class Bt extends Vt{constructor(...e){super(...e),St(this,"isWaterfall",!0)}}let qt=(ve=(0,r.computed)("calculationFields","canSetBarMaxWidthSetting","canSetNewConstituentSettings","dataTabFormatFields","featureFlags","formatTab","isFundContextAvailable","isReporting","numGroupingFactors","numValueFactors","resourceMeta","useDualValueAxes","valueFactors"),Rt((we=class extends Lt{get tabs(){let{numGroupingFactors:e,numValueFactors:t}=this;return[Ot.data({sections:[Et.chart({fields:[Ft.chartType(this.featureFlags,this.resourceMeta),...this.dataTabFormatFields]}),Et.configuration({fields:[Ft.timeSeriesMetrics({numGroupingFactors:e}),Ft.timeSeriesGroupings({numValueFactors:t}),Ft.timeSeriesArgs,this.isFundContextAvailable?Ft.displayFundTotal:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:this.calculationFields}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()]}}).prototype,"tabs",[ve],Object.getOwnPropertyDescriptor(we.prototype,"tabs"),we.prototype),we),Ht=(_e=(0,r.computed)("dataTabFormatFields","featureFlags","resourceMeta"),Rt((Ae=class extends Lt{get tabs(){return[Ot.data({sections:[Et.chart({fields:[Ft.chartType(this.featureFlags,this.resourceMeta),...this.dataTabFormatFields]}),Et.configuration({fields:[Ft.boxplotChartMetrics(),Ft.boxplotChartGroupings()].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]})].filter(e=>Boolean(e))}),Ot.info()].filter(e=>e.sections.length>0)}}).prototype,"tabs",[_e],Object.getOwnPropertyDescriptor(Ae.prototype,"tabs"),Ae.prototype),Ae),Ut=(Te=(0,r.computed)("calculationFields","canSetBarMaxWidthSetting","canSetNewConstituentSettings","dataTabFormatFields","featureFlags","formatTab","isFundContextAvailable","isReporting","numGroupingFactors","numValueFactors","resourceMeta","valueFactors"),Rt((Ce=class extends Lt{get tabs(){let{numGroupingFactors:e,numValueFactors:t}=this;return[Ot.data({sections:[Et.chart({fields:[Ft.chartType(this.featureFlags,this.resourceMeta),...this.dataTabFormatFields]}),Et.configuration({fields:[Ft.timeSeriesMetrics({numGroupingFactors:e}),Ft.timeSeriesGroupings({numValueFactors:t}),Ft.timeSeriesArgs,this.isFundContextAvailable?Ft.displayFundTotal:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:this.calculationFields}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()].filter(e=>Boolean(e)).filter(e=>e.sections.length>0)}}).prototype,"tabs",[Te],Object.getOwnPropertyDescriptor(Ce.prototype,"tabs"),Ce.prototype),Ce),Gt=(Se=(0,r.computed)("visualization.showTotal"),Re=(0,r.computed)("calculationFields","canSetNewConstituentSettings","dataTabFormatFields","featureFlags","formatTab","isFundContextAvailable","isReporting","numBenchmarkFactors","numGroupingFactors","resourceMeta","showTotal"),Rt((De=class extends Lt{get showTotal(){return this.visualization.showTotal}get tabs(){let{numBenchmarkFactors:e,numGroupingFactors:t,showTotal:i}=this;return[Ot.data({sections:[Et.chart({fields:[Ft.chartType(this.featureFlags,this.resourceMeta),...this.dataTabFormatFields]}),Et.configuration({fields:[Ft.scatterChartXAxis,Ft.scatterChartYAxis,Ft.scatterChartGrouping({numBenchmarkFactors:e,showTotal:i}),Ft.scatterChartBenchmarks({numGroupingFactors:t,showTotal:i}),this.isFundContextAvailable?Ft.displayFundTotal:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:this.calculationFields}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()].filter(e=>Boolean(e))}}).prototype,"showTotal",[Se],Object.getOwnPropertyDescriptor(De.prototype,"showTotal"),De.prototype),Rt(De.prototype,"tabs",[Re],Object.getOwnPropertyDescriptor(De.prototype,"tabs"),De.prototype),De),Wt=(Oe=(0,r.computed)("visualization.query.singleValueFactor.comparisonTimeArg"),Ee=(0,r.computed)("visualization.query.comparisonFactor"),Fe=(0,r.computed)("benchmarkProxyDisplayPreferences","canSetBenchmarkProxyDisplayPreference","canSetNewConstituentSettings","canSetTaxLotUseSettlementDate","comparisonFactor","estimatedReturnsDisplayPreferences","formatTab","isPercentMetric","numValueFactors","shortHeldAssetDisplayPreferences","timeArg"),Rt((Pe=class extends Mt{get timeArg(){return this.visualization.query.singleValueFactor.comparisonTimeArg}get comparisonFactor(){return this.visualization.query.comparisonFactor}get tabs(){let{timeArg:e,comparisonFactor:t}=this;return[Ot.data({sections:[Et.configuration({fields:[Ft.bigNumberMetric,e?Ft.bigNumberComparison:null,t?Ft.bigNumberComparisonTime:null].filter(e=>Boolean(e))}),Et.filters({fields:[Ft.portfolioFilters]}),Et.calculations({fields:[Ft.lookthrough,Ft.lookthroughConstituentHoldings,Ft.expandWra
1pperEntities,this.canSetTaxLotUseSettlementDate?Ft.taxLotUseSettlementDate:null,Ft.shortHeldAssetDisplayPreference(this.shortHeldAssetDisplayPreferences),Ft.estimatedReturnsDisplayPreference(this.estimatedReturnsDisplayPreferences),this.canSetBenchmarkProxyDisplayPreference?Ft.benchmarkProxyDisplayPreference(this.benchmarkProxyDisplayPreferences):null].filter(e=>Boolean(e))}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),...this.formatTab?[this.formatTab]:[],Ot.info()]}}).prototype,"timeArg",[Oe],Object.getOwnPropertyDescriptor(Pe.prototype,"timeArg"),Pe.prototype),Rt(Pe.prototype,"comparisonFactor",[Ee],Object.getOwnPropertyDescriptor(Pe.prototype,"comparisonFactor"),Pe.prototype),Rt(Pe.prototype,"tabs",[Fe],Object.getOwnPropertyDescriptor(Pe.prototype,"tabs"),Pe.prototype),Pe),$t=(xe=(0,r.computed)("canAddFilter","canSetMatchBillingFeesToPath","canSetNewConstituentSettings","canSetShowSleeves","canSetSleeveSetting","canSetTaxLotUseSettlementDate","isReporting"),Ne=(0,r.computed)("displaySetting.model.enableDynamicDisclosure","isReporting"),ze=(0,r.computed)("isDynamicDisclosureEnabled","visualization.isInHeaderOrFooter"),Rt((Ie=class extends Mt{get tabs(){return[Ot.data({sections:[s.standard({label:"Variables",fields:[Ft.textVariables]}),this.canAddFilter?Et.filters({fields:[Ft.portfolioFilters]}):null,Et.calculations({fields:[this.canSetShowSleeves?Ft.showSleeves:null,Ft.useMultibucketing,this.canSetTaxLotUseSettlementDate?Ft.taxLotUseSettlementDate:null,this.canSetMatchBillingFeesToPath?Ft.matchBillingFeesToPath:null,Ft.multiValueGroupSetting,this.canSetSleeveSetting?Ft.sleeveSetting:null,Ft.targetAllocationMode].filter(e=>Boolean(e))}),this.canSetNewConstituentSettings?Et.lookthroughConstituent():null].filter(e=>Boolean(e))}),Ot.format({sections:[s.standard({label:"Font",fields:[ft.Ay.composite({fields:[xt.textStyle,xt.lineSpacing]}),ft.Ay.composite({fields:[xt.fontSize,xt.fontWeight]}),this.isReporting?ft.Ay.composite({fields:[xt.fontStyle,xt.fontColor]}):xt.fontStyle]}),s.standard({label:"Alignment",fields:[ft.Ay.composite({fields:[xt.alignment,xt.indent]})]}),s.standard({label:"Lists",fields:[xt.listType]})].filter(e=>Boolean(e))}),this.isReporting?Ot.arrange():null].filter(e=>Boolean(e))}get isDynamicDisclosureEnabled(){return this.isReporting&&this.displaySetting.model.enableDynamicDisclosure}get canAddFilter(){return!this.isDynamicDisclosureEnabled||!this.visualization.isInHeaderOrFooter}}).prototype,"tabs",[xe],Object.getOwnPropertyDescriptor(Ie.prototype,"tabs"),Ie.prototype),Rt(Ie.prototype,"isDynamicDisclosureEnabled",[Ne],Object.getOwnPropertyDescriptor(Ie.prototype,"isDynamicDisclosureEnabled"),Ie.prototype),Rt(Ie.prototype,"canAddFilter",[ze],Object.getOwnPropertyDescriptor(Ie.prototype,"canAddFilter"),Ie.prototype),Ie),Yt=(Me=(0,r.computed)("isReporting","visualization.transactionColumnOptions"),Rt((ke=class extends It{get tabs(){let e=this.visualization.transactionColumnOptions.map(({id:e,displayName:t})=>({value:e,label:t}));return[Ot.data({sections:[s.standard({label:"Columns",fields:[Pt.columns(e)]}),s.standard({label:"Filters",fields:[Pt.filters]}),s.standard({label:"Rows",fields:[Pt.limit]})]}),this.isReporting?Ot.format({sections:[Et.tableTheme(),Et.tableTitle(),Et.headerRow(),Et.bodyRow()]}):null,this.isReporting?Ot.arrange():Ot.info()].filter(e=>Boolean(e))}}).prototype,"tabs",[Me],Object.getOwnPropertyDescriptor(ke.prototype,"tabs"),ke.prototype),ke),Kt=(Le=(0,r.computed)("formatTab","isReporting"),Rt((je=class extends It{get tabs(){return[Ot.data({sections:[Et.projectionConfiguration(),Et.projectionDetails()]}),...this.formatTab?[this.formatTab]:[],this.isReporting?Ot.arrange():Ot.info()].filter(e=>Boolean(e))}}).prototype,"tabs",[Le],Object.getOwnPropertyDescriptor(je.prototype,"tabs"),je.prototype),je);class Qt extends It{get tabs(){return[Ot.data({sections:[]}),Ot.info()]}}let Xt=(Ve=(0,r.computed)("isReporting"),Rt((Be=class extends Kt{get formatTab(){return this.isReporting?Ot.format({sections:Nt()}):null}}).prototype,"formatTab",[Ve],Object.getOwnPropertyDescriptor(Be.prototype,"formatTab"),Be.prototype),Be),Zt=(qe=(0,r.computed)("isReporting"),Rt((He=class extends Kt{get formatTab(){return this.isReporting?Ot.format({sections:[Et.chartTitle(),Et.axes()]}):null}}).prototype,"formatTab",[qe],Object.getOwnPropertyDescriptor(He.prototype,"formatTab"),He.prototype),He),Jt=(Ue=(0,r.computed)("key","condition","visualization.externalSourceRequestData"),Ge=class extends(o()){constructor(e){super(e),Ct(this,"key",We,this),Ct(this,"condition",$e,this),Ct(this,"visualization",Ye,this),this.key=e.key,this.condition=e.condition,this.visualization=e.visualization}get isMet(){let{key:e,condition:t,visualization:i}=this,{operator:r,value:o}=t,{externalSourceQuery:a}=i,n=a[e];switch(r){case"eq":return n===o;case"not-eq":return n!==o;default:throw new Error(`Unsupported operator: ${r}`)}}},We=Rt(Ge.prototype,"key",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$e=Rt(Ge.prototype,"condition",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ye=Rt(Ge.prototype,"visualization",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt(Ge.prototype,"isMet",[Ue],Object.getOwnPropertyDescriptor(Ge.prototype,"isMet"),Ge.prototype),Ge);function ei(e,t){return`${e}:${t}`}let ti=(Ke=(0,r.computed)("configOptions.{data_fields,data_sections}"),Qe=(0,r.computed)("columnMappingOptions.{fields,label}","conditionsMap","dataSetFields.length","dataTabFormatFields","featureFlags","formatTab","[email protected]","visualization.{dataSet,resourceMeta}"),Xe=(0,r.computed)("visualization.columnMapping"),Ze=(0,r.computed)("visualization.columnMapping"),et=Rt((Je=class extends It{constructor({featureFlags:e,visualization:t,displaySetting:i,theme:r}){super({featureFlags:e,visualization:t,displaySetting:i,theme:r}),Ct(this,"configOptions",et,this),Ct(this,"conditionsMap",tt,this),Ct(this,"resolvedConditions",it,this),St(this,"configVisibility",void 0),this.configOptions=t.widgetType.configOptions,this.configVisibility=t.widgetType.configVisibility,this.conditionsMap={};for(let e of this.dataSetFields)if(e.conditions)for(let[i,r]of Object.entries(e.conditions)){let o=new Jt({key:i,condition:r,visualization:t});this.conditionsMap[ei(e.id,i)]=o}this.resolvedConditions=Object.values(this.conditionsMap)}get dataSetFields(){return this.configOptions.data_sections?this.configOptions.data_sections.flatMap(e=>e.fields):this.configOptions.data_fields??[]}get tabs(){return[...this.tabIsVisible("data")?[Ot.data({sections:[...this.visualization.dataSet?[Et.chart({label:"Visualization",fields:[Ft.visType(this.featureFlags,this.visualization.resourceMeta),...this.dataTabFormatFields]}),...this.columnMappingOptions?[Et.columnMapping({label:"Configuration",fields:this.columnMappingOptions.fields})]:[]]:[],...this.dataSetFields.length?[s.standard({label:"General settings",fields:this.dataSetFields.filter(e=>this.fieldIsVisible(e)).map(e=>ft.Ay.fromHash(e,"externalSourceQuery"))})]:[]]})]:[],...this.tabIsVisible("format")&&this.formatTab?[this.formatTab]:[],...this.tabIsVisible("info")?[Ot.info()]:[]].filter(e=>e.sections.length>0)}get hasMultipleValueSeries(){let e=this.visualization.columnMapping;return(e?.values?.length??0)>1}get hasComparisonValue(){let e=this.visualization.columnMapping;return Boolean(e?.original_value)}get supportsBarTotal(){return!0}
1tabIsVisible(e){let{configVisibility:t}=this;return void 0===t||t&&!1!==t[e]}fieldIsVisible(e){for(let t of Object.keys(e.conditions??{}))if(!this.conditionsMap[ei(e.id,t)].isMet)return!1;return!0}}).prototype,"configOptions",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tt=Rt(Je.prototype,"conditionsMap",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it=Rt(Je.prototype,"resolvedConditions",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt(Je.prototype,"dataSetFields",[Ke],Object.getOwnPropertyDescriptor(Je.prototype,"dataSetFields"),Je.prototype),Rt(Je.prototype,"tabs",[Qe],Object.getOwnPropertyDescriptor(Je.prototype,"tabs"),Je.prototype),Rt(Je.prototype,"hasMultipleValueSeries",[Xe],Object.getOwnPropertyDescriptor(Je.prototype,"hasMultipleValueSeries"),Je.prototype),Rt(Je.prototype,"hasComparisonValue",[Ze],Object.getOwnPropertyDescriptor(Je.prototype,"hasComparisonValue"),Je.prototype),Je),ii=(rt=(0,r.computed)("visualization.type"),ot=(0,r.computed)("visualization.granularType"),at=(0,r.computed)("visualization.dataSource"),nt=(0,r.computed)("visualization.isExternalSource"),st=(0,r.computed)("granularType","isExternalSource","visualization.widgetType"),lt=(0,r.computed)("ConfigOptionsClass","displaySetting.model","featureFlags","theme","visualization"),ut=(0,r.computed)("configOptionsObject.tabs"),ct=(0,r.computed)("visualization.widgetType"),dt=class extends(o()){constructor(e){super(),Ct(this,"featureFlags",pt,this),Ct(this,"visualization",ht,this),Ct(this,"displaySetting",mt,this),Ct(this,"theme",gt,this),this.featureFlags=e.featureFlags,this.visualization=e.visualization,this.displaySetting=e.displaySetting,this.theme=e.theme}get type(){return this.visualization.type}get granularType(){return this.visualization.granularType}get dataSource(){return this.visualization.dataSource}get isExternalSource(){return this.visualization.isExternalSource}get ConfigOptionsClass(){if(this.isExternalSource)return ti;switch(this.granularType){case _t.$Z.BETA_PIE_TYPE:return jt;case _t.$Z.BETA_BAR_TYPE:return Vt;case _t.$Z.BETA_WATERFALL_TYPE:return Bt;case _t.$Z.BETA_LINE_TYPE:return qt;case _t.$Z.BETA_AREA_TYPE:return Ut;case _t.$Z.BETA_SCATTER_TYPE:return Gt;case _t.$Z.BETA_BOXPLOT_TYPE:return Ht;case _t.$Z.PROJECTION_CHART_TYPE:return Zt;case _t.qL.NUMBER:return Wt;case _t.qL.TEXT:return $t;case _t.HF.TRANSACTION:return Yt;case _t.HF.PROJECTION:return Xt;case _t.sX.ADDISON_COMPONENT:return Qt;case _t.HF.ASSET:case _t.HF.PIVOT:case _t.HF.ADVANCED:return kt;default:throw new Error(`Invalid type: ${this.granularType}`)}}get configOptionsObject(){return new this.ConfigOptionsClass({visualization:this.visualization,featureFlags:this.featureFlags,displaySetting:this.displaySetting,theme:this.theme})}get tabs(){return this.configOptionsObject.tabs}get isError(){return!this.visualization.widgetType}},pt=Rt(dt.prototype,"featureFlags",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ht=Rt(dt.prototype,"visualization",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),mt=Rt(dt.prototype,"displaySetting",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gt=Rt(dt.prototype,"theme",[Tt.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rt(dt.prototype,"type",[rt],Object.getOwnPropertyDescriptor(dt.prototype,"type"),dt.prototype),Rt(dt.prototype,"granularType",[ot],Object.getOwnPropertyDescriptor(dt.prototype,"granularType"),dt.prototype),Rt(dt.prototype,"dataSource",[at],Object.getOwnPropertyDescriptor(dt.prototype,"dataSource"),dt.prototype),Rt(dt.prototype,"isExternalSource",[nt],Object.getOwnPropertyDescriptor(dt.prototype,"isExternalSource"),dt.prototype),Rt(dt.prototype,"ConfigOptionsClass",[st],Object.getOwnPropertyDescriptor(dt.prototype,"ConfigOptionsClass"),dt.prototype),Rt(dt.prototype,"configOptionsObject",[lt],Object.getOwnPropertyDescriptor(dt.prototype,"configOptionsObject"),dt.prototype),Rt(dt.prototype,"tabs",[ut],Object.getOwnPropertyDescriptor(dt.prototype,"tabs"),dt.prototype),Rt(dt.prototype,"isError",[ct],Object.getOwnPropertyDescriptor(dt.prototype,"isError"),dt.prototype),dt)}
1,751716(e,t,i){i.d(t,{$:()=>o});const r=Object.freeze({xAxisGridLineColor:"yAxisGridLineColor",yAxisGridLineColor:"xAxisGridLineColor",xAxisGridLineType:"yAxisGridLineType",yAxisGridLineType:"xAxisGridLineType",xAxisLabelColor:"yAxisLabelColor",yAxisLabelColor:"xAxisLabelColor",xAxisLabelFontSize:"yAxisLabelFontSize",yAxisLabelFontSize:"xAxisLabelFontSize",xAxisLabelShow:"yAxisLabelShow",yAxisLabelShow:"xAxisLabelShow",xAxisLineColor:"yAxisLineColor",yAxisLineColor:"xAxisLineColor",xAxisLineType:"yAxisLineType",yAxisLineType:"xAxisLineType",xAxisTitle:"yAxisTitle",yAxisTitle:"xAxisTitle",xAxisTitleColor:"yAxisTitleColor",yAxisTitleColor:"xAxisTitleColor",xAxisTitleFontSize:"yAxisTitleFontSize",yAxisTitleFontSize:"xAxisTitleFontSize",xAxisTitleShow:"yAxisTitleShow",yAxisTitleShow:"xAxisTitleShow"});function o(e){return Object.keys(r).reduce((t,i)=>{let o=r[i];return{...t,[i]:e.get(o)}},{})}},150249(e,t,i){i.d(t,{Ay:()=>a});var r=i(922265);function o(e,t,i){t.includes("externalSourceQuery.")?e.set("externalSourceQuery",{...e.externalSourceQuery,[t.replace("externalSourceQuery.","")]:i}):e.set(t,i)}i(44384);class a{static fromHash(e,t){let i={type:e.type,path:`${t}.${e.id}`,label:e.label,notifyChart:"columnMapping"===t,...e.options?{options:e.options}:{},...e.multi_select?{multiSelect:e.multi_select}:{},...e.multi_select_rows?{multiSelectRows:e.multi_select_rows}:{}},{type:r}=i;switch(r){case"checkbox":return this.checkbox(i);case"dropdown":return this.dropdown(i);case"radio":return this.radio(i);case"switch":return this.switch(i);case"range":return this.range(i);case"text-input":return this.textInput(i);case"stacked-chips":return this.stackedChips({label:e.label,path:`${t}.${e.id}`,options:e.options??[],min:e.min,max:e.max,notifyChart:"columnMapping"===t});default:throw new Error(`Unsupported field type: ${r}`)}}static checkbox(e){return{type:"checkbox",getValue:t=>Boolean(t.get(e.path)),onChange(t,i){o(t,e.path,i.target.checked)},...e}}static dropdown(e){return{type:"dropdown",getValue:t=>(0,r.OA)(t.get(e.path)),onChange(t,i){o(t,e.path,(0,r.Py)(i.target.value))},multiSelectRows:1/0,...e}}static radio(e){return{type:"radio",getValue(t){let i=t.get(e.path);return(0,r.OA)(i)},onChange(t,i){o(t,e.path,(0,r.Py)(i.target.value))},...e}}static switch(e){return{type:"switch",getValue(t){let i=t.get(e.path);return(0,r.OA)(i)},onChange(t,i){o(t,e.path,(0,r.Py)(i.target.value))},appearance:"stretch",size:"",...e}}static range(e){return{type:"range",min:0,max:100,step:5,isPercent:!1,getValue:t=>Number(t.get(e.path)),onChange(t,i){o(t,e.path,i.target.value)},...e}}static textInput(e){return{type:"text-input",getValue:t=>String(t.get(e.path)),onChange(t,i){o(t,e.path,i.target.value)},...e}}static stackedChips(e){return{type:"stacked-chips",label:e.label,path:e.path,min:e.min??0,max:e.max??1/0,notifyChart:e.notifyChart,enableSorting:e.enableSorting??!0,hideAdd:e.hideAdd,options:e.options,getValue(t){let i=t.get(e.path);return(Array.isArray(i)?i:i?[i]:[]).map(t=>{let i=String(t),r=e.options.find(e=>e.value===i);return{value:i,label:r?.label??i}})},onAdd(t,i){let r=t.get(e.path),a=Array.isArray(r)?r:r?[r]:[];o(t,e.path,[...a,i])},onRemove(t,i){let r=t.get(e.path),a=Array.isArray(r)?r:r?[r]:[],n=i.value;o(t,e.path,a.filter(e=>String(e)!==n))},onReorder(t,i){let r=i.map(e=>e.value);o(t,e.path,r)},onSwap(t,i,r){let a=t.get(e.path),n=Array.isArray(a)?a.map(e=>String(e)===i.value?r:e):r;o(t,e.path,n)}}}static number(e){return this.textInput({inputType:"number",...e})}static custom(e){return e}static composite(e){return{type:"composite",ratio:[1,0],...e}}static visualizationType(e){return{component:"widget/config-panel/field/visualization-type",path:"type",...e}}static factorConfig(e){return{component:"widget/config-panel/portfolio-data-field",type:"factor-config",labelField:"displayName",getValue:t=>t.get(e.path),...e}}static timeSeriesArgs(e){return{component:"widget/config-panel/portfolio-data-field",type:"time-series-args",getValue:t=>t.get(e.path).displayValue,...e}}static timeArg(e){return{component:"widget/config-panel/portfolio-data-field",type:"time-arg",getValue:t=>t.get(e.path),...e}}static portfolioDataCheckbox(e){let{onChange:t,...i}=e;return{...this.checkbox(i),component:"widget/config-panel/portfolio-data-field",...i,onChange:t}}static textVariable(e){return{type:"text-variable",component:"widget/config-panel/portfolio-data-field",...e}}static customFactorDisplayName(e){let{factor:t}=e;return{type:"custom-factor-display-name",component:"widget/config-panel/portfolio-data-field",label:t.displayNames.default,getValue:()=>t.displayNameType,options:[{label:t.displayNames.default,value:"default"},{label:"Custom...",value:"custom"}],onChange:(e,i)=>{let{itemController:r}=e,{visualizationEditor:o}=r;"custom"===i.detail.option.value?o.setCustomLabel({factor:t,onConfirm:()=>r.notifyChartConfigChanged?.()}):(t.set("displayNameType","default"),r.notifyChartConfigChanged?.())},...e}}}},364519(e,t,i){var r=i(640626),o=i(943910),a=i.n(o),n=i(767981);const s={DELETED:"deleted",DERIVED:"derived",MODIFIED:"modified"},l=a().extend({content:null,store:null,_columnOutputs:null,columnOutputs:(0,o.computed)("_columnOutputs","content.column_outputs",{get(){if
1(null!==this._columnOutputs)return this._columnOutputs;let e={money:{decimals:2}};return this.content.column_outputs.map(t=>(0,n.NV)(t,void 0,e))},set(e,t){return(0,o.set)(this,"_columnOutputs",t),t}}),type:(0,r.readOnly)("content.model_type.value"),id:(0,o.computed)("content","content.{adm_snapshot_id,adm_transaction_id,model_id}","isSnapshot","isTransaction","rootFundId",function(){return this.rootFundId?this.isSnapshot&&this.content.adm_snapshot_id||this.isTransaction&&this.content.adm_transaction_id:this.content?.model_id}).readOnly(),rootFundId:(0,r.and)("content","content.root_fund_id").readOnly(),isAmpRow:(0,r.not)("rootFundId").readOnly(),ignored:(0,r.equal)("content.transaction_state.value",s.DELETED),groupId:(0,r.alias)("content.group_id"),isTransaction:(0,r.equal)("type","transaction"),isSnapshot:(0,r.equal)("type","valuation"),isAllocation:(0,r.equal)("type","allocation"),isSummaryData:(0,r.equal)("type","summary_data"),positionId:(0,r.readOnly)("content.position_id"),_transaction:null,transaction:(0,o.computed)("_transaction","id","isTransaction","rootFundId","store",{get(){if
1(null!==this._transaction)return this._transaction;if(!this.isTransaction)return null;let e={rootFundId:this.rootFundId};return this.store.findRecord("transaction",this.id,{adapterOptions:e})},set(e,t){return(0,o.set)(this,"_transaction",t),t}}),snapshot:(0,o.computed)("id","isSnapshot","rootFundId","store",function(){if(!this.isSnapshot)return null;let e={rootFundId:this.rootFundId};return this.store.findRecord("snapshot",this.id,{adapterOptions:e})}),allocation:(0,o.computed)("id","isAllocation","store",function(){return this.isAllocation?this.store.findRecord("transactionAllocation",this.id):null}),summaryDataType:(0,r.readOnly)("content.summary_data_type.value"),summaryDataFactorId:(0,r.readOnly)("content.summary_data_factor_id"),modelDisplayName:(0,r.readOnly)("content.model_display_name"),summaryData:(0,o.computed)("id","isSummaryData","store","summaryDataType",function(){if(!this.isSummaryData)return null;let e=`${this.summaryDataType}_${this.id}`;return this.store.findRecord("summaryData",e)})});i.d(t,["C",0,l,"R",0,s])},251431(e,t,i){i.d(t,{Ay:()=>L,tC:()=>H});var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T,C,S,R,D,O,E,F,P,x,N=i(943910),z=i(279564),I=i(830819);function M(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function k(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let L=(D=(0,N.computed)("meta.data_as_of_time"),O=(0,N.computed)("meta.show_data_as_of_time"),E=(0,N.computed)("meta.last_precompute_refresh"),P=k((F=class{constructor(e){M(this,"meta",P,this),M(this,"content",x,this),this.meta=e.meta,this.content=e.content}get dataAsOfTime(){return this.meta.data_as_of_time}get showDataAsOfTime(){return this.meta.show_data_as_of_time}get lastPrecomputeRefresh(){return this.meta.last_precompute_refresh}static createFromResponse(e){let{meta:t,content:i,visualization:r,download_data:o}=e;switch(r.type){case I.qL.TEXT:return new j({meta:t,content:i});case I.qL.NUMBER:return new V({meta:t,content:i});case I.HF.TABLE:case I.HF.ASSET:case I.HF.PIVOT:case I.HF.ADVANCED:case I.HF.TRANSACTION:return new B({meta:t,content:i});case I.$Z.BETA_PIE_TYPE:case I.$Z.BETA_LINE_TYPE:case I.$Z.BETA_BAR_TYPE:case I.$Z.BETA_AREA_TYPE:case I.$Z.BETA_SCATTER_TYPE:case I.$Z.BETA_WATERFALL_TYPE:case I.$Z.BETA_BOXPLOT_TYPE:case I.$Z.GAUGE_TYPE:return new q({meta:t,content:i,download_data:o});default:throw new Error(`Unsupported visualization type: ${r.type}`)}}}).prototype,"meta",[z.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=k(F.prototype,"content",[z.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k(F.prototype,"dataAsOfTime",[D],Object.getOwnPropertyDescriptor(F.prototype,"dataAsOfTime"),F.prototype),k(F.prototype,"showDataAsOfTime",[O],Object.getOwnPropertyDescriptor(F.prototype,"showDataAsOfTime"),F.prototype),k(F.prototype,"lastPrecomputeRefresh",[E],Object.getOwnPropertyDescriptor(F.prototype,"lastPrecomputeRefresh"),F.prototype),F),j=(r=(0,N.computed)("content.html"),k((o=class extends L{get html(){return this.content.html}}).prototype,"html",[r],Object.getOwnPropertyDescriptor(o.prototype,"html"),o.prototype),o),V=(a=(0,N.computed)("content.current_value"),n=(0,N.computed)("content.total_value"),s=(0,N.computed)("content.current_value_link"),l=(0,N.computed)("content.total_value_link"),u=(0,N.computed)("content.total_value_percent"),c=(0,N.computed)("content.delta_value"),d=(0,N.computed)("content.delta_value_date"),p=(0,N.computed)("content.absolute_delta"),h=(0,N.computed)("content.relative_delta"),k((m=class extends L{get currentValue(){return this.content.current_value}get totalValue(){return this.content.total_value}get currentValueLink(){return this.content.current_value_link}get totalValueLink(){return this.content.total_value_link}get totalValuePercent(){return this.content.total_value_percent}get deltaValue(){return this.content.delta_value}get deltaValueDate(){return this.content.delta_value_date}get absoluteDelta(){return this.content.absolute_delta}get relativeDelta(){return this.content.relative_delta}}).prototype,"currentValue",[a],Object.getOwnPropertyDescriptor(m.prototype,"currentValue"),m.prototype),k(m.prototype,"totalValue",[n],Object.getOwnPropertyDescriptor(m.prototype,"totalValue"),m.prototype),k(m.prototype,"currentValueLink",[s],Object.getOwnPropertyDescriptor(m.prototype,"currentValueLink"),m.prototype),k(m.prototype,"totalValueLink",[l],Object.getOwnPropertyDescriptor(m.prototype,"totalValueLink"),m.prototype),k(m.prototype,"totalValuePercent",[u],Object.getOwnPropertyDescriptor(m.prototype,"totalValuePercent"),m.prototype),k(m.prototype,"deltaValue",[c],Ob
1ject.getOwnPropertyDescriptor(m.prototype,"deltaValue"),m.prototype),k(m.prototype,"deltaValueDate",[d],Object.getOwnPropertyDescriptor(m.prototype,"deltaValueDate"),m.prototype),k(m.prototype,"absoluteDelta",[p],Object.getOwnPropertyDescriptor(m.prototype,"absoluteDelta"),m.prototype),k(m.prototype,"relativeDelta",[h],Object.getOwnPropertyDescriptor(m.prototype,"relativeDelta"),m.prototype),m),B=(g=(0,N.computed)("content.data"),f=(0,N.computed)("content.columns"),y=(0,N.computed)("content.table_styles"),b=(0,N.computed)("meta.provider_meta.max_rows_exceeded"),v=(0,N.computed)("meta.provider_meta.original_row_count"),w=(0,N.computed)("meta.provider_meta.final_row_count"),_=(0,N.computed)("meta.provider_meta.formula_timeboxing_limit_exceeded"),k((A=class extends L{get data(){return this.content.data}get columns(){return this.content.columns}get tableStyles(){return this.content.table_styles}get maxRowsExceeded(){return this.meta.provider_meta?.max_rows_exceeded}get originalRowCount(){return this.meta.provider_meta?.original_row_count}get finalRowCount(){return this.meta.provider_meta?.final_row_count}get formulaTimeboxingLimitExceeded(){return this.meta.provider_meta?.formula_timeboxing_limit_exceeded}}).prototype,"data",[g],Object.getOwnPropertyDescriptor(A.prototype,"data"),A.prototype),k(A.prototype,"columns",[f],Object.getOwnPropertyDescriptor(A.prototype,"columns"),A.prototype),k(A.prototype,"tableStyles",[y],Object.getOwnPropertyDescriptor(A.prototype,"tableStyles"),A.prototype),k(A.prototype,"maxRowsExceeded",[b],Object.getOwnPropertyDescriptor(A.prototype,"maxRowsExceeded"),A.prototype),k(A.prototype,"originalRowCount",[v],Object.getOwnPropertyDescriptor(A.prototype,"originalRowCount"),A.prototype),k(A.prototype,"finalRowCount",[w],Object.getOwnPropertyDescriptor(A.prototype,"finalRowCount"),A.prototype),k(A.prototype,"formulaTimeboxingLimitExceeded",[_],Object.getOwnPropertyDescriptor(A.prototype,"formulaTimeboxingLimitExceeded"),A.prototype),A),q=(T=(0,N.computed)("content.chartOptions"),C=(0,N.computed)("content.hasNoData"),R=k((S=class extends L{constructor(e){super(e),M(this,"downloadData",R,this),this.downloadData=e.download_data}get chartOptions(){return this.content.chartOptions}get hasNoData(){return this.content.hasNoData}}).prototype,"downloadData",[z.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k(S.prototype,"chartOptions",[T],Object.getOwnPropertyDescriptor(S.prototype,"chartOptions"),S.prototype),k(S.prototype,"hasNoData",[C],Object.getOwnPropertyDescriptor(S.prototype,"hasNoData"),S.prototype),S);class H{constructor(e){var t,i,r;t=this,r=void 0,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="error"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,this.error=e.error}}},967736(e,t,i){i.d(t,{j:()=>d});var r=i(496314),o=i(943910),a=i.n(o),n=i(378912),s=i(640626),l=i(666035),u=i(700820);let c=()=>({value:null});function d(e){return void 0===e||e.isHidden||e.isNotApplicable||e.isPending?"":e.isNoData||!e.isValid?"-":void 0}function p(e,t,i){let r=e.at(t);e.splice(t,1),e.splice(i,0,r)}const h=a().extend({content:null,queryRequest:null,pivotBuckets:null,store:null,query:(0,s.alias)("queryRequest.query"),totalValues:(0,o.computed)("rows.[]",function(){return this.rows[0].values}),deltaResult:(0,o.computed)("totalValues.[]",function(){let e=this.totalValues.at(0),t=this.totalValues.at(1);return null===t?.value&&(t=null),new l.Ay(e,t)}),rowById:(0,o.computed)("rows.[]",function(){let e={};return this.rows.forEach(t=>e[t.rowJson.id]=t),e}),rows:(0,o.computed)("content.rows.[]","metricFactors.[]","store","valueFactors.[]",function(){let e=this.valueFactors,t=this.metricFactors,i=this.store,r=this.content.rows.map(r=>n.A.createFromJSON(r,{store:i,valueFactors:e,metricFactors:t}));return r.forEach(function(e){return e.childrenIndex.forEach(t=>r[t].set("parent",e)),e.set("children",e.childrenIndex.map(e=>r[e]))}),r}),groupingFactors:(0,o.computed)("content.grouping_factors.[]","store",function(){return this.content.grouping_factors.map(e=>u.si.createFromHash(this.store,e))}),valueFactors:(0,o.computed)("content.value_factors.[]","store",function(){return this.content.value_factors.map(e=>u.si.createFromHash(this.store,e))}),metricFactors:(0,o.computed)("content.metric_factors.[]","store",function(){return this.content.metric_factors.map(e=>u.si.createFromHash(this.store,e))}),filters:(0,o.computed)("content.filters.[]","store",function(){return this.content.filters.map(e=>u.dJ.createFromHash(this.store,e))}),maxRowsExceeded:(0,s.readOnly)("content.max_rows_exceeded"),originalRowCount:(0,s.readOnly)("content.original_row_count"),finalRowCount:(0,s.readOnly)("content.final_row_count"),formulaTimeboxingLimitExceeded:(0,s.readOnly)("content.formula_t
1imeboxing_limit_exceeded"),dataAsOfTime:(0,s.readOnly)("content.data_as_of_time"),resultType:(0,s.readOnly)("content.result_type"),lastPrecomputeRefresh:(0,s.readOnly)("content.last_precompute_refresh"),_backup:null,addValueFactor(e,t){let i=this.pivotBuckets;if((0,r.isEmpty)(i))this.content.rows.forEach(e=>e.values.splice(t,0,{value:null}));else{let e=this.valueFactors.length,r=t%(e+1);for(let t of this.content.rows)for(let o=0;o<i.length;o++){let i=o*(e+1)+r;t.values.splice(i,0,c())}}this.content.value_factors.splice(t,0,e.serialize()),this.notifyPropertyChange("valueFactors")},removeValueFactor(e){let t=this.pivotBuckets;if((0,r.isEmpty)(t))this.content.rows.forEach(t=>t.values.splice(e,1));else{let i=this.valueFactors.length,r=e%i;for(let e of this.content.rows)for(let o=0;o<t.length;o++){let t=o*(i-1)+r;e.values.splice(t,1)}}this.content.value_factors.splice(e,1),this.notifyPropertyChange("valueFactors")},reorderValueFactor(e,t){let i=this.pivotBuckets;if((0,r.isEmpty)(i))this.content.rows.forEach(i=>p(i.values,e,t));else{let r=this.valueFactors.length,o=e%r,a=t-e;for(let e of this.content.rows)for(let t=0;t<i.length;t++){let i=t*r+o,n=i+a;p(e.values,i,n)}}p(this.content.value_factors,e,t),this.notifyPropertyChange("valueFactors")},cloneResult(){return this.constructor.create({content:JSON.parse(JSON.stringify(this.content)),pivotBuckets:JSON.parse(JSON.stringify(this.pivotBuckets)),queryRequest:this.queryRequest,store:this.store})},beginQueryChanges(){this._backup={value_factors:this.content.value_factors.slice(),rows:this.content.rows.map(e=>({...e,values:e.values.slice()}))}},cancelQueryChanges(){this._backup&&(this.set("content.rows",this._backup.rows),this.set("content.value_factors",this._backup.value_factors)),this._backup=null},endQueryChanges(){this._backup=null}});i.d(t,["A",0,h])},378912(e,t,i){var r=i(943910),o=i.n(r),a=i(640626),n=i(496314),s=i(422787),l=i(88372),u=i(767981),c=i(615093),d=i.n(c),p=i(120245),h=i.n(p),m=i(56801),g=i.n(m),f=i(256267);const y=h().extend(d()),b=g().extend(d()),v=o().extend({init(...e){this._super(...e),(0,r.set)(this,"isCollapsed",void 0),(0,r.set)(this,"children",[])},classNames:(0,r.computed)("groupId","hasHiddenWarning","isBenchmark","isCollapsed","isLeaf","isMaxDepth","isMetric","isTopLevel","isTotalRow",function(){let e=[];return this.isBenchmark?e.push("ember-table-benchmark-row"):this.isMetric&&e.push("footer-metric-row"),this.groupId&&e.push("ember-table-rollup-row"),this.isTopLevel?e.push("ember-table-top-level-row js-ember-table-top-level-row"):this.isLeaf||this.hasOnlyBenchmarksAsDescendants()?e.push("ember-table-leaf-row js-ember-table-leaf-row"):e.push("ember-table-parent-row js-ember-table-parent-row"),this.isMaxDepth&&e.push("ember-table-max-depth-row js-ember-table-max-depth-row"),this.hasHiddenWarning&&e.push("hidden-warning"),this.isCollapsed&&e.push("js-is-collapsed"),this.isTotalRow&&e.push("ember-table-total-row"),e.join(" ")}),hasOnlyBenchmarksAsDescendants(){let e=t=>t.get("isLeaf")||(0,l.A)(t.get("children"),t=>t.get("isBenchmark")&&e(t));return e(this)},tableRow:null,rowJson:null,store:null,valueFactors:null,metricFactors:null,parent:null,children:null,isLeaf:(0,a.equal)("children.length",0),isMaxDepth:(0,r.computed)("depth","maxDepth",function(){return this.depth===this.maxDepth}),isTopLevel:(0,r.computed)("parent.depth","isLeaf",function(){let e=!1;return 0===this.get("parent.depth")&&(e=!this.isLeaf),e}),rowType:(0,r.computed)("isBenchmark","isTotalRow",function(){return this.isBenchmark?f.AplRowType.BENCHMARK:this.isTotalRow?f.AplRowType.TOTAL:void 0}),nodeType:null,collapsed:!1,groupId:null,groupFactorId:null,groupName:null,groupLevel:null,groupValue:null,groupValueDetails:null,groupDisplayName:null,formattedGroupDisplayName:(0,a.or)("factor.headerName","groupDisplayName"),groupValueType:null,childrenIndex:null,selectionFilterId:null,level:null,links:null,benchmarks:(0,r.computed)("rowJson.benchmarks.[]",function(){return(this.get("rowJson.benchmarks")??[]).map(e=>v.createFromJSON(e,{store:this.store}))}),metricRows:(0,r.computed)("rowJson.metric_factors.[]",function(){return(this.get("rowJson.metric_factors")??[]).map(e=>v.createFromJSON(e,{store:this.store}))}),values:null,pathToRoot:(0,r.computed)("parent.pathToRoot",function(){return(0,n.isNone)(this.parent)?[this]:this.get("parent.pathToRoot").concat(this)}),isEntity:(0,a.equal)("groupValueType","financial_entity"),isVirtualNode:(0,r.computed)("entityId","groupValue","groupValue.is_gsm_shell_entity",function(){return!0===this.groupValue?.is_gsm_shell_entity&&void 0===this.entity
1Id}),isPosition:(0,a.equal)("groupValueType","position_grouping"),isTaxLot:(0,a.equal)("groupValueType","ui_lot"),isTransaction:(0,r.computed)("groupValueType","rootFundId","transactionId",function(){return"transaction"===this.groupValueType&&(!!this.rootFundId||this.transactionId<1e12)}),isBenchmark:(0,a.equal)("nodeType","benchmark"),isMetric:(0,a.equal)("nodeType","metric"),hasHiddenWarning:(0,a.equal)("nodeType","hidden_row_warning"),isDataProblem:(0,a.equal)("groupValueType","data_problem"),isTargetAllocation:(0,a.equal)("groupValueType","target_allocation"),isTotalRow:(0,r.computed)("level","parent","isBenchmark","isMetric",function(){return 0===this.level&&(0,n.isNone)(this.parent)&&!this.isBenchmark&&!this.isMetric}),isAccountFeeRow:(0,a.equal)("groupId","account_fees"),isNotAccountFeeRow:(0,a.not)("isAccountFeeRow"),hasDetailPanel:(0,a.or)("isEntity","isVirtualNode","isPosition","isBenchmark","isTaxLot","isTransaction","isDataProblem","isTargetAllocation"),typeDisplayName:(0,r.computed)("entity.typeDisplayName","isBenchmark","isEntity","isTaxLot",function(){return this.isEntity?this.entity.get("typeDisplayName"):this.isBenchmark?"benchmark":this.isTaxLot?"tax lot":void 0}),entity:(0,r.computed)("entityId","isEntity","isVirtualNode","rootFundId","store",{get(){if
1(this.isVirtualNode)return;if(!this.isEntity)return;let e={rootFundId:this.rootFundId};return this.store.findRecord("entityDetail",this.entityId,{adapterOptions:e}).then(e=>this.set("entity",e))},set(e,t){if(this.isEntity)return t}}),entityId:(0,r.computed)("groupValue","groupValue.{adm_node_id,id}","isAmpRow","isEntity",function(){return this.isEntity?this.isAmpRow?this.groupValue?.id:this.groupValue?.adm_node_id:void 0}).readOnly(),transactionId:(0,r.computed)("groupValue","groupValue.id","groupValueType",function(){return"transaction"===this.groupValueType?this.groupValue?.id:void 0}).readOnly(),isAmpRow:(0,a.not)("rootFundId").readOnly(),benchmark:(0,r.computed)("groupValue.id","isBenchmark","store",{get(){if(this.isBenchmark)return this.store.findRecord("benchmark",this.get("groupValue.id")).then(e=>this.set("benchmark",e))},set(e,t){if(this.isBenchmark)return t}}),positions:(0,r.computed)("asmPositionIds","isVirtualNode","positionIds","rootFundId","store",function(){if(this.isVirtualNode)return;let e=this.positionIds,t=this.asmPositionIds;if(!e&&!t)return;let i=[];if(e&&i.push(this.store.findByIds("position",e)),t){let e={rootFundId:this.rootFundId},r=t.map(t=>this.store.findRecord("position",t,{adapterOptions:e}));i.push(Promise.all(r))}let r=Promise.all(i).then(e=>e.flat());return b.create({promise:r})}),transaction:(0,r.computed)("isTransaction","rootFundId","store","transactionId",{get(){if(!this.isTransaction)return;let e={rootFundId:this.rootFundId};return y.create({promise:this.store.findRecord("transaction",this.transactionId,{adapterOptions:e})})},set(e,t){if(this.isTransaction)return t}}),_scenarioPositions:null,scenarioPositions:(0,r.computed)("_scenarioPositions","scenarioSpecs.@each.{from_entity_id,to_entity_id}
1","store",{get(){if(null!==this._scenarioPositions)return this._scenarioPositions;let e=this.scenarioSpecs;if((0,n.isEmpty)(e))return null;let t=this.store;return e.map(function(e){return t.createRecord("scenarioPosition",{fromEntityId:e.from_entity_id,toEntityId:e.to_entity_id})})},set(e,t){return(0,r.set)(this,"_scenarioPositions",t),t}}),issuer:(0,a.readOnly)("entity.issuer"),isValid:(0,r.computed)("[email protected]",function(){return this.values[0].isValid}),isHidden:(0,r.computed)("[email protected]",function(){return this.values[0].isHidden}),isHeldforShortPeriod:(0,r.computed)("[email protected]",function(){return this.values[0].isHeldForShortPeriod}),isDeannualizedFigure:(0,r.computed)("[email protected]",function(){return this.values[0].isDeannualizedFigure}),hasDerivedTx:(0,r.computed)("[email protected]",function(){return this.values[0].hasDerivedTx}),usesEstimatedReturns:(0,r.computed)("[email protected]",function(){return this.values[0].usesEstimatedReturns}),isHiddenFromCharts:(0,r.computed)("isHidden","isHeldforShortPeriod","isDeannualizedFigure","hasDerivedTx",function(){return this.isHidden&&!this.isHeldforShortPeriod&&!this.isDeannualizedFigure&&!this.hasDerivedTx}),isFooter:!1,shouldDisregardSorting:(0,a.readOnly)("isFooter")});v.reopenClass({createFromJSON(e,t){let{valueFactors:i}=t;i&&i.length&&e.values.forEach((e,t)=>e.factor=i.at(t));let r=(e.values||[]).map(function(e){let t=(0,u.NV)(e),i=e?.factor?.decimals;return i&&(t.decimals=i),t});return(0,s.A)(t,{id:e.id,rowJson:e,values:r,nodeType:e.node_type,collapsed:e.collapsed,groupId:e.group_id,groupFactorId:e.group_factor_id,groupName:e.group_name,groupLevel:e.group_level,groupIndex:e.group_index,groupValue:e.group_value,groupValueDetails:e.group_value_details,groupDisplayName:e.group_display_name,groupValueType:e.group_value_type,childrenIndex:e.children_index,selectionFilterId:e.selection_filter_id,level:e.level,links:e.links,positionIds:e.position_ids,asmPositionIds:e.asm_position_ids,rootFundId:e.root_fund_id,scenarioSpecs:e.scenario_positions}),v.create(t)}});const w=v;i.d(t,["A",0,w])},577812(e,t,i){var r,o,a,n,s,l,u,c,d=i(943910),p=i.n(d),h=i(364519);function m(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const g=(r=(0,d.computed)("content.transaction_data","store"),o=class extends(p()){constructor(...e){super(...e),m(this,"content",null),m(this,"store",null)}get rows(){return this.get("content.transaction_data").map(e=>h.C.create({content:e,store:this.store}))}},a=o.prototype,n="rows",s=[r],l=Object.getOwnPropertyDescriptor(o.prototype,"rows"),u=o.prototype,c={},Object.keys(l).forEach(function(e){c[e]=l[e]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=s.slice().reverse().reduce(function(e,t){return t(a,n,e)||e},c),u&&void 0!==c.initializer&&(c.value=c.initializer?c.initializer.call(u):void 0,c.initializer=void 0),void 0===c.initializer&&Object.defineProperty(a,n,c),o);i.d(t,["A",0,g])},870375(e,t,i){i.d(t,{A:()=>T});var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y=i(943910),b=i.n(y),v=i(830819),w=i(416432);function _(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function A(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let T=(r=(0,y.computed)("item.uuid"),o=(0,y.computed)("item.visualization"),a=(0,y.computed)("item.layout"),n=(0,y.computed)("visualization.type"),s=(0,y.computed)("visualization.dataSource"),l=(0,y.computed)("visualization.isTemplate"),u=(0,y.computed)("layout.row"),c=(0,y.computed)("layout.col"),d=(0,y.computed)("layout.width"),p=(0,y.computed)("layout.height"),h=(0,y.computed)("layout.autoHeight"),m=(0,y.computed)("autoHeight","itemController.{targetHeight,maxWidgetHe
1ight}"),g=(0,y.computed)("type","dataSource"),A((f=class extends(b()){constructor(...e){super(...e),_(this,"item",void 0),_(this,"queryRequest",void 0),_(this,"isSelected",!1),_(this,"itemController",void 0),_(this,"visualizationComponent",void 0),_(this,"chartComponent",void 0)}get uuid(){return this.item.uuid}get visualization(){return this.item.visualization}get layout(){return this.item.layout}get type(){return this.visualization.type}get dataSource(){return this.visualization.dataSource}get isTemplate(){return this.visualization.isTemplate}get row(){return this.layout.row}get col(){return this.layout.col}get width(){return this.layout.width}get height(){return this.layout.height}get autoHeight(){return this.layout.autoHeight}get targetHeight(){return this.autoHeight&&this.itemController?.targetHeight?Math.min(this.itemController.targetHeight+4,this.itemController.maxWidgetHeight):null}setSelected(e){this.set("isSelected",e)}get component(){let{type:e,dataSource:t}=this;switch(e){case v.sX.ADDISON_COMPONENT:return"dashboards/editor/grid/addison-insights-widget";case v.qL.NUMBER:return"dashboards/editor/grid/big-number-widget";case v.qL.TEXT:return"dashboards/editor/grid/text-widget";case v.qL.HOME_EDIT_BUTTON:return"home-edit-button-widget";case v.HF.TABLE:case v.HF.TRANSACTION:case v.HF.ASSET:case v.HF.PIVOT:case v.HF.ADVANCED:return t===w.Y.ADDEPAR_PORTFOLIO?"dashboards/editor/grid/portfolio-table-widget":"dashboards/editor/grid/generic-table-widget";case v.$Z.BETA_PIE_TYPE:case v.$Z.BETA_BAR_TYPE:case v.$Z.BETA_WATERFALL_TYPE:case v.$Z.BETA_AREA_TYPE:case v.$Z.BETA_LINE_TYPE:case v.$Z.BETA_SCATTER_TYPE:case v.$Z.BETA_BOXPLOT_TYPE:case v.$Z.GAUGE_TYPE:case v.$Z.PROJECTION_CHART_TYPE:return"dashboards/editor/grid/portfolio-chart-widget";default:throw new Error(`unsupported visualization type: ${e}`)}}}).prototype,"uuid",[r],Object.getOwnPropertyDescriptor(f.prototype,"uuid"),f.prototype),A(f.prototype,"visualization",[o],Object.getOwnPropertyDescriptor(f.prototype,"visualization"),f.prototype),A(f.prototype,"layout",[a],Object.getOwnPropertyDescriptor(f.prototype,"layout"),f.prototype),A(f.prototype,"type",[n],Object.getOwnPropertyDescriptor(f.prototype,"type"),f.prototype),A(f.prototype,"dataSource",[s],Object.getOwnPropertyDescriptor(f.prototype,"dataSource"),f.prototype),A(f.prototype,"isTemplate",[l],Object.getOwnPropertyDescriptor(f.prototype,"isTemplate"),f.prototype),A(f.prototype,"row",[u],Object.getOwnPropertyDescriptor(f.prototype,"row"),f.prototype),A(f.prototype,"col",[c],Object.getOwnPropertyDescriptor(f.prototype,"col"),f.prototype),A(f.prototype,"width",[d],Object.getOwnPropertyDescriptor(f.prototype,"width"),f.prototype),A(f.prototype,"height",[p],Object.getOwnPropertyDescriptor(f.prototype,"height"),f.prototype),A(f.prototype,"autoHeight",[h],Object.getOwnPropertyDescriptor(f.prototype,"autoHeight"),f.prototype),A(f.prototype,"targetHeight",[m],Object.getOwnPropertyDescriptor(f.prototype,"targetHeight"),f.prototype),A(f.prototype,"component",[g],Object.getOwnPropertyDescriptor(f.prototype,"component"),f.prototype),f)},394320(e,t,i){i.d(t,{Q:()=>c,r:()=>d});var r=i(62320),o=i(726984),a=i(601),n=i(873771),s=i(320955),l=i(716770),u=i(125575);function c(e){let{data:t}=e,{root:i}=e.data;if((0,n.A)(i))return t;let r=[];if(i.children&&(r=i.children.filter(e=>"factor_configuration"===e.group_value_type),r.forEach(e=>e.values.forEach(d)),r.forEach(e=>(0,l.A)(i.children,(0,o.A)(i.children,e)))),"factor_configuration"===i.group_value_type){i.values.forEach(d);let e=Object.assign({},i,{id:`${i.id}-metric`});r.unshift(e)}i.metric_factors=r;let a=[];return(0,u.F)(i,{getChildren:e=>e.children||[],visitNode:e=>{a.push(e),e.values.forEach(d),(e.children||[]).filter(e=>"factor_configuration"===e.group_value_type).forEach((e,t)=>e.group_index=t)}}),i.benchmarks.forEach(e=>{e.values.forEach(d)}),a.forEach((e,t)=>e.rowIndex=t),a[0].group_level=0,a.forEach(function(e){let t=e.children||[];return t.forEach(function(t){if(t.group_level=e.group_level,e.group_name!==t.group_name)return t.group_level+=1}),e.children_index=t.map(e=>e.rowIndex),delete e.children,delete e.rowIndex}),delete t.root,t.rows=a,t}function d(e){let t=(0,s.A)(e.value),i=e.type;if(t&&!(0,a.A)(e.value))return(0,r.A)(e,e.value),e.type=i}},700820(e,t,i){i.d(t,{$T:()=>_,dJ:()=>w,si:()=>v});var r,o,a,n,s,l,u,c=i(943910),d=i(465103),p=i(886783),h=i(105020),m=i(388536),g=i(634512);function f(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function y(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const b=Object.freeze(["benchmark_return","benchmark_index_level"]);let v=(r=(0,c.computed)("_displayName","displayNames.default"),o=(0,c.computed)("templateId","[email protected]"),a=(0,c.computed)("_headerName","displayNames.{default,custom,date,interval}","displayNameType"),n=(0,c.computed)("valueFormat","template"),s=class e extends m.j{constructor(...e){super(...e),f(this,"_displayName",null),f(this,"_headerName",null)}get displayName(){return null!==this._displayName?this._displayName:this.displayNames?.default}set displayName(e){(0,c.set)(this,"_displayName",e)}
1get benchmarkOrAssociationName(){return e.getBenchmarkOrAssociationName(this)}get headerName(){return null!==this._headerName?this._headerName:e.getHeaderName(this)}set headerName(e){(0,c.set)(this,"_headerName",e)}get templateRecord(){return this.template}get defaultValueFormat(){return this.template?(0,g.n6)(this):void 0}serialize(){let e=super.serialize();return delete e.template,delete e.currency,delete e._header_name,delete e._display_name,e}static createFromHash(t,i){let r=function(e,t){return e.peekRecord("factor-template",t.template_id)}(t,i),o=function(e,t){if("money"===t){let t=e.args?.find(e=>"currency"===e.template_id),i=t?.value.value.toUpperCase();if(i)return i}return""}(i,r?.get("outputType"));return e.create({...(0,d.A)(i),template:r,currency:o,args:(i.args??[]).map(e=>m.j.createFromHash(e)),timeSeriesArgs:i.time_series_args?m.j.createFromHash(i.time_series_args):null})}static configurationEquals(e,t){let i=m.j.ensureSerializable(e),r=m.j.ensureSerializable(t),o=(0,p.A)(i.serialize()),a=(0,p.A)(r.serialize());function n({template_id:e,args:t,time_series_args:i}){return{templateId:e,args:t??[],timeSeriesArgs:i??null}}let s=n(o),l=n(a);return(0,h.A)(s,l)}static getBenchmarkOrAssociationName(e){if(!b.includes(e.templateId))return null;let t=e.args.find(e=>"optionally_specified_benchmark"===e.templateId)?.value?.displayName,i=e.args.find(e=>"annualized_default_false"===e.templateId)?.value;return i?`Annualized ${t}`:t}static getHeaderName(e){let{displayNames:t,displayNameType:i}=e;switch(i){case"default":default:return t.default;case"custom":return t.custom;case"date":return t.date;case"interval":return t.interval}}},y(s.prototype,"displayName",[r],Object.getOwnPropertyDescriptor(s.prototype,"displayName"),s.prototype),y(s.prototype,"benchmarkOrAssociationName",[o],Object.getOwnPropertyDescriptor(s.prototype,"benchmarkOrAssociationName"),s.prototype),y(s.prototype,"headerName",[a],Object.getOwnPropertyDescriptor(s.prototype,"headerName"),s.prototype),y(s.prototype,"defaultValueFormat",[n],Object.getOwnPropertyDescriptor(s.prototype,"defaultValueFormat"),s.prototype),s),w=(l=(0,c.computed)("[email protected]"),u=class e extends m.j{get hasOrIsLeafFilter(){return!this.filters||!!this.filters.filter(e=>e.hasOrIsLeafFilter).length}static createFromHash(t,i){let r=(0,d.A)(i);return e.create({...r,...i.factor?{factor:v.createFromHash(t,i.factor)}:{},...i.grouping_factor?{groupingFactor:v.createFromHash(t,i.grouping_factor)}:{},...i.holding_status?{holdingStatus:v.createFromHash(t,i.holding_status)}:{},...i.filters?{filters:i.filters.map(i=>e.createFromHash(t,i))}:{}})}},y(u.prototype,"hasOrIsLeafFilter",[l],Object.getOwnPropertyDescriptor(u.prototype,"hasOrIsLeafFilter"),u.prototype),u);class _ extends m.j{static createFromHash(e,t){let i=(0,d.A)(t);return _.create({...i,valueFactors:t.value_factors.map(t=>v.createFromHash(e,t)),groupingFactors:t.grouping_factors.map(t=>v.createFromHash(e,t)),metricFactors:t.metric_factors?.map(t=>v.createFromHash(e,t))??[],benchmarkFactors:t.benchmark_factors?.map(t=>v.createFromHash(e,t))??[],pivotFactor:t.pivot_factor?v.createFromHash(e,t.pivot_factor):null,summaryDataDefaultPreference:m.j.create(i.summaryDataDefaultPreference),filters:t.filters?.map(t=>w.createFromHash(e,t))??[]})}}},388536(e,t,i){i.d(t,{j:()=>s});var r=i(943910),o=i.n(r),a=i(753804),n=i(465103);class s extends(o()){serialize(){return this.constructor.serialize(this)}static serialize(e){if("object"!=typeof e)return e;let t={};for(let i in e)if(Object.hasOwn(e,i)){let r=e[i];switch(typeof r){case"function":continue;case"object":Array.isArray(r)?r=r.map(e=>e.serialize?.()??this.serialize(e)):r&&(r=r.serialize?.()??this.serialize(r))}t[(0,a.z9)(i)]=r}return t}static createFromHash(e){return this.create((0,n.A)(e))}static ensureSerializable(e){return"function"==typeof e.serialize?e:this.createFromHash(e)}}},250481(e,t,i){i.d(t,{CD:()=>d,J6:()=>p,XD:()=>u,Xb:()=>l,ZN:()=>f,b5:()=>s,qw:()=>n,uU:()=>g,uZ:()=>h,v2:()=>m});var r=i(496314),o=i(14949),a=i(830819);function n(e){return`hiddenGroupingFactor-${e}`}function s(e,t,i){let r=0;return function(e,t){return t&&(t.sortType===a.Vc.COLUMN||t.groupingFactorId===e.groupFactorId)}(e,i)&&(r=u(i.column.getCellSortKey(e,i.useCustomOrdering),i.column.getCellSortKey(t,i.useCustomOrdering))),r}function l(e,t,i){for(let r of i){let i=s(e,t,r);if(i)return r.isAscending?i:-i}return 0}function u(e,t){let i=0,a=c(e),n=c(t);return i=a&&n?function(e,t){return(0,o.A)(e)&&(0,r.isNone)(t)?1:(0,r.isNone)(e)&&(0,o.A)(t)?-1:0}(e,t):a?-1:n?1:(0,r.compare)(e,t),i}function c(e){return(0,r.isNone)(e)||(0,o.A)(e)}function d(e){let t=[];
1for(let i of e)i.tableColumnSorts.forEach(e=>{t.push({column:i,valuePath:i.valuePath,isAscending:"ascending"===e.sortDirection,groupingFactorId:e.groupingFactorId,sortIndex:e.sortIndex,sortType:e.sortType,useCustomOrdering:e.useCustomOrdering})});return t.sort((e,t)=>e.sortIndex-t.sortIndex)}function p(e,t){let i=[];return e.forEach(e=>{let r={column:e.column,isAscending:e.isAscending,sortIndex:e.sortIndex,sortType:a.Vc.GROUPING,useCustomOrdering:e.useCustomOrdering};e.sortType===a.Vc.COLUMN?i.push(...t.map(e=>({...r,groupingFactorId:e.factorId}))):i.push({...r,groupingFactorId:e.groupingFactorId})}),g(i.sort((e,t)=>e.sortIndex-t.sortIndex)),i}function h(e,t){let i=function(e){let t=[];return e.forEach(e=>{t.push({...e})}),t}(e);return new Set(i.map(e=>e.column.index)).forEach(e=>{let r=i.filter(t=>t.column?.index===e);(function(e,t){if(!e.length)return!1;let i=t.map(e=>e.factorId),{sortIndex:r,isAscending:o,useCustomOrdering:a}=e[0],n=e.every(e=>e.sortIndex===r&&e.isAscending===o&&e.useCustomOrdering===a),s=e.map(e=>e.groupingFactorId),l=i.every(e=>s.includes(e));return n&&l})(r,t)&&function(e,t){let{sortIndex:i,isAscending:r,column:o,useCustomOrdering:n}=t[0];e.splice(0,e.length,...e.filter(e=>!t.includes(e))),e.push({column:o,sortIndex:i,isAscending:r,sortType:a.Vc.COLUMN,useCustomOrdering:n})}(i,r)}),i}function m(e){return e.every(e=>!e.sortType||e.sortType===a.Vc.COLUMN)}function g(e){let t={};for(let i of e){let e=i.groupingFactorId||"";t[e]||(t[e]=[]),t[e].push(i)}Object.values(t).forEach(e=>{let t=1;for(let i of e)i.sortIndex=t,t++})}function f(e,t=r.compare){return function e(i){if(i.length<=1)return i;let r=Math.floor(i.length/2);return function(e,i){let r=[],o=0,a=0;function n(){return r.push(e[o]),++o}function s(){return r.push(i[a]),++a}for(;o<e.length||a<i.length;){let r=o<e.length,l=a<i.length;r?l?t(e[o],i[a])<=0?n():s():n():s()}return r}(e(i.slice(0,r)),e(i.slice(r)))}(e)}i(44384)},103424(e,t,i){i.d(t,{A:()=>a}),i.dn(a);var r=i(416432),o=i(830819);function a(e){let t=e.visualization,{title:i,type:a,widgetType:n}=t??{};if(i)return i;if(!n)return"Unknown Widget";let s=n.configDefaults?.info?.title;if(s)return s;let l=function(e){return e.query?.valueFactors?.slice()[0]?.displayName}(e);switch(a){case o.qL.NUMBER:return l;case o.HF.TRANSACTION:return"Transaction Table";case o.HF.PIVOT:return"Pivot Table";case o.HF.ADVANCED:return"Advanced Table";case o.HF.ASSET:case o.HF.TABLE:return t.dataSource===r.Y.ADDEPAR_TRANSACTION?"Transaction Table":t.dataSource===r.Y.NAVIGATOR_PROJECTION?"Projection Table":"Asset Table";case o.$Z.GAUGE_TYPE:return"Probability of Success";default:{let t=e.query?.valueFactors?.length>1?"Multiple Metrics":l,i=function(e){return e.query?.groupingFactors?.slice()[0]?.displayName}(e);return i&&(t=`${t} grouped by ${i}`),t}}}},334812(e,t,i){var r=i(960234),o=i(989272);const a=(0,r.W)((e,[t,...i],r)=>
1{(0,o.scheduleOnce)("afterRender",()=>t(e,i,r))});i.d(t,["A",0,a])},340988(e,t,i){i.d(t,{A:()=>o});var r=i(960234);class o extends r.A{constructor(...e){var t,i,r;super(...e),t=this,r=!1,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="hasRun"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r}modify(e,[t,...i],r){this.hasRun?t(e,i,r):this.hasRun=!0}}},818846(e,t,i){i.d(t,{hD:()=>c,dM:()=>p,Ay:()=>g});var r=i(959438),o=i(804204),a=i.n(o),n=i(582355);class s{constructor(){var e,t,i;e=this,i=void 0,(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t="map"))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,this.map=new Map}add(e,t){this.map.has(e)||this.map.set(e,[]),this.map.get(e).push(t)}get(e){return this.map.get(e)??[]}has(e){return this.map.has(e)}remove(e,t){if(!this.map.has(e))return!1;let i=this.map.get(e)??[],r=i.indexOf(t);return-1!==r&&(i.splice(r,1),0===i.length&&this.map.delete(e),!0)}delete(e){return this.map.delete(e)}clear(){this.map.clear()}keys(){return Array.from(this.map.keys())}entries(){return Array.from(this.map.entries())}size(){return this.map.size}}function l(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function u(e){return new Promise(t=>setTimeout(t,e))}class c extends Error{constructor(e,t,i){super(t??`API Error: ${e}`,{cause:i}),l(this,"status",void 0),this.name="ApiError",this.status=e}}class d extends Error{constructor(e,t){super(t??`Async Error: ${e}`),l(this,"status",void 0),this.name="AsyncError",this.status=e}}
1class p extends Error{constructor(){super("Query cancelled by client"),this.name="ClientCancelledError"}}const h=new Map([["Default",550],["Cancelled",551],["Error",552],["Timed Out",553],["Failed",554],["Rejected",555]]),m=new Map([[400,80],[401,81],[403,82],[500,84]]);class g extends(a()){constructor(...e){super(...e),l(this,"config",void 0),l(this,"idExecutorMultiMap",new s),l(this,"executorPollingSet",new Set),l(this,"executorWaitQueue",[]),l(this,"executorDownloadQueue",[]),l(this,"inFlightCount",0),l(this,"submitWaitTaskRunning",!1),l(this,"pollTaskRunning",!1),l(this,"downloadTaskRunning",!1)}sendOpData(e,t){}logInfo(e,t){}getAlertOnError(){return!0}isInternalAbort(e){return!1}getConfig(){return this.config}get submitWaitTime(){return this.getConfig().submitWaitTime}get submitMaxBucketSize(){return Math.min(this.getConfig().submitMaxBucketSize,10)}get downloadWaitTime(){return this.getConfig().downloadWaitTime}get downloadMaxBucketSize(){return Math.min(this.getConfig().downloadMaxBucketSize,10)}get maxInFlight(){return this.getConfig().maxInFlight}get pollInitialWaitTime(){return this.getConfig().pollInitialWaitTime}get pollMaxWaitTime(){return this.getConfig().pollMaxWaitTime}get pollBackoffFactor(){return this.getConfig().pollBackoffFactor}get maxServerInternalErrorCount(){return this.getConfig().maxServerInternalErrorCount}submit(e){return this.executorWaitQueue.push(e),(0,n.YZ)(this.runSubmitWaitTask()),e.deferred=r.Ay.defer(),e.deferred.promise}get _waitQueueSize(){return this.executorWaitQueue.length}get _pollingQueueSize(){return this.executorPollingSet.size}get _downloadQueueSize(){return this.executorDownloadQueue.length}neutralizeExecutor(e){e.cancelled=!0,e.onSuccess=()=>{},e.onFailure=()=>{},e.onProgress=()=>{}}cancelAllQueries(){let e=new p,t=[...this.executorWaitQueue];this.executorWaitQueue.length=0,t.forEach(t=>{t.onFailure({error:e}),this.neutralizeExecutor(t)}),Array.from(this.executorPollingSet).forEach(t=>{this.removeFromPolling(t),t.onFailure({error:e}),this.neutralizeExecutor(t)});let i=[...this.executorDownloadQueue];this.executorDownloadQueue.length=0,i.forEach(t=>{this.inFlightCount--,t.onFailure({error:e}),this.neutralizeExecutor(t)})}remove(e){if(this.executorPollingSet.has(e))this.removeFromPolling(e);else{let t=this.executorWaitQueue.findIndex(t=>t===e);t>-1&&(this.executorWaitQueue.splice(t,1),e.deferred.resolve())}}async runSubmitWaitTask(){if(!this.submitWaitTaskRunning){this.submitWaitTaskRunning=!0;try{for(;this.executorWaitQueue.length>0;)await u(this.submitWaitTime),this.batchSubmit()}finally{this.submitWaitTaskRunning=!1}}}batchSubmit(){let{maxInFlight:e,submitMaxBucketSize:t}=this;for(;this.executorWaitQueue.length>0;){let i=e-this.inFlightCount;if(i<=0)break;let r=Math.min(i,t),o=this.executorWaitQueue.splice(0,r),a=this.sendRequest(o);o.forEach(e=>e.deferred.resolve(a))}}async sendRequest(e){let t=new Set(e);try{let i=new Map,r=new Map;e.forEach(e=>{let t=crypto.randomUUID();r.set(t,e),i.set(t,e.getPayload())}),this.inFlightCount+=e.length;let o=this.constructBulkQueueRequest(i),a=await this.makeRequest(o),s=new Map(Object.entries(a.data)),l=new Map,u=[];s.forEach((e,i)=>{let o=r.get(i);if("error"in e)l.set(i,e.error);else if("job_id"in e)t.delete(o),o.requestId=e.job_id,u.push(e.job_id),this.addToPolling(o);else{let i=e;t.delete(o),this.inFlightCount--,o.onSuccess({data:i,progress:{type:"progress",percent_done:100}})}}),this.sendOpData("PQRSubmission",{ids:u});let c=l.size;if(c>0)throw this.logInfo(`Batch submission failed for ${c} queries: ${JSON.stringify(Object.fromEntries(l))}`),this.constructError(c);(0,n.YZ)(this.runPollForJobStatusesTask())}catch(e){if(this.inFlightCount-=t.size,console.log(e),this.isInternalAbort(e))return;let i=this.mapToApiError(e);if(i||e instanceof d){let r=i??e;return void t.forEach(e=>e.onFailure({status:r.status,error:r}))}throw e}}async runPollForJobStatusesTask(){if(this.pollTaskRunning)return;this.pollTaskRunning=!0;let e=[502,503,504],t=this.pollInitialWaitTime,i=0;try{for(await u(t);this.executorPollingSet.size>0;){try{let e=this.executorPollingSet.size,i=Array.from(this.executorPollingSet).map(e=>e.requestId),r=this.constructBulkRetrieveRequest(i),o=await this.makeRequest
1(r);this.processPollResponse(o.data.jobs),t=e-this.executorPollingSet.size>0?this.pollInitialWaitTime:this.pollBackoffFactor*t,t=Math.min(t,this.pollMaxWaitTime)}catch(t){if(this.isInternalAbort(t))return;let r=this.mapToApiError(t);if(r)if(e.includes(r.status));else{let e=r.status;r.suppress?.(),(500!==e||i++>=this.maxServerInternalErrorCount)&&(this.executorPollingSet.forEach(t=>t.onFailure({status:e,error:r})),this.executorPollingSet.clear())}}await u(t)}}finally{this.pollTaskRunning=!1}}async batchDownload(e){let t=[...e];try{let i=this.constructBulkDownloadRequest(e),r=await this.makeRequest(i),o=new Map(Object.entries(r.data)),a=Array.from(o.keys());if(this.sendOpData("PQRDownload",{ids:a,metadata:Object.fromEntries(a.map(e=>[e,{pathCount:o.get(e)?.meta?.provider_meta?.path_count??0}]))}),t=t.filter(e=>!o.has(e.requestId)||"error"in o.get(e.requestId)),e.forEach(e=>{if(!t.includes(e)){let t=o.get(e.requestId);e.onSuccess({data:t,progress:{type:"progress",percent_done:100}})}}),t.length>0){let e=t.map(e=>e.requestId);throw this.logInfo(`Batch download failed for ${t.length} queries: ${e.join()}`),this.constructError(e.length,!1)}}catch(e){if(console.log(e),this.isInternalAbort(e))return;let i=this.mapToApiError(e);if(i||e instanceof d){let r=i??e;t.forEach(e=>e.onFailure({status:r.status,error:r}))}}}async runDownloadWaitTask(){if(!this.downloadTaskRunning){this.downloadTaskRunning=!0;try{for(await u(this.downloadWaitTime);this.executorDownloadQueue.length>0;){let e=this.executorDownloadQueue.splice(0,this.downloadMaxBucketSize);(0,n.YZ)(this.batchDownload(e))}}finally{this.downloadTaskRunning=!1}}}addToPolling(e){e.cancelled||(this.idExecutorMultiMap.add(e.requestId,e),this.executorPollingSet.add(e))}removeFromPolling(e){this.idExecutorMultiMap.remove(e.requestId,e),this.executorPollingSet.delete(e),this.inFlightCount--}processPollResponse(e){e.forEach(e=>{let{id:t,status:i,detailedStatus:r,errors:o}=e,a=100*e.percentComplete;this.idExecutorMultiMap.get(t).forEach(e=>{if("completed"===i)this.removeFromPolling(e),this.executorDownloadQueue.push(e),(0,n.YZ)(this.runDownloadWaitTask());else if("processing"===i)e.onProgress?.({type:"progress",percent_done:a});else{let a,n=+o?.[0]?.status??void 0;this.removeFromPolling(e),a=void 0!==n&&m.has(n)?m.get(n):h.has(r)?h.get(r):h.get("Default"),e.onFailure({status:a,error:o?.[0]}),console.error(`Async query job failed for job id ${t} with status ${i}`)}})})}constructBulkQueueRequest(e){return{...this.constructBaseRequestOptions(),url:"/widgets/v0/render/bulk",method:"POST",data:{requests:Object.fromEntries(e)}}}constructBulkRetrieveRequest(e){return{...this.constructBaseRequestOptions(),url:"/widgets/v0/render/bulk_retrieve",method:"POST",data:e}}constructBulkDownloadRequest(e){return{...this.constructBaseRequestOptions(),url:"/widgets/v0/render/bulk_download",method:"POST",data:e.map(e=>e.requestId)}}constructBaseRequestOptions(){return{alertOnError:this.getAlertOnError()}}constructError(e,t=!0){let i=this.getConfig(),r=t?i.batchSubmissionErrorCode??500:i.batchDownloadErrorCode??500;return new d(r,`${e} Queries failed to be batch ${t?"submitted.":"downloaded."}`)}}},243998(e,t,i){var r=i(640626),o=i(804204),a=i.n(o),n=i(709182);const s=a().extend({supportedCurrencies:null,currencyMap:null,currencyCodes:(0,r.mapBy)("supportedCurrencies","id"),defaultCurrency:"USD",getCurrency(e){return e=e?e.toUpperCase():this.get("defaultCurrency"),this.get("currencyMap").get(e)},getSymbol(e){return this.getCurrency(e).symbol},registerSupportedCurrencies(e){this.set("supportedCurrencies",e),this.set("currencyMap",new Map(e.map(e=>[e.id,e]))),e.forEach(n.r)}});i.d(t,["A",0,s])},353082(e,t,i){i.d(t,{Ay:()=>n});var r=i(804204),o=i.n(r),a=i(416432);class n extends(o()){loadWidgetData(e,{useWidgetEngine:t=!1}={}){let i=function(e){let t=new Set([a.Y.ADDEPAR_PORTFOLIO]);return e&&t.add(a.Y.ADDEPAR_TRANSACTION),t}(t);return i.has(e.visualization.data_source)?this.loadWidgetDataAsync(e):this.loadWidgetDataSync(e,{useWidgetEngine:t})}loadWidgetDataAsync(e){return new Promise((t,i)=>{this.asyncQuery.submit({onSuccess({data:e}){t(e)},onFailure({error:e}){i(e)},getPayload:()=>e})})}}i.d(t,["Mx",0,"/widgets/v0/render"])},922265(e,t,i){function r({displayName:e,globalDisplayName:t,value:i,...r}){return{label:e,value:o(i),...r,...t?{tag:t}:{}}}function o(e){return"number"==typeof e||"boolean"==typeof e||null==e?`${e}`:Array.isArray(e)?e.map(o):e}function a(e){return"null"===e?null:"undefined"!==e?"true"===e||"false"!==e&&(Number(e).toString()===e?Number(e):Array.isArray(e)?e.map(a):e):void 0}i.d(t,{OA:()=>o,Py:()=>a,hf:()=>r}),i(44384)},140376(e,t,i){i.d(t,{A:()=>n,O:()=>s});var r=i(821009),o=i(943910),a=i(447803);function n(e,t){return(0,o.computed)(e,t,function(){return s(this,e,t)})}function s(e,t,i){let o=e.get?.(i)??e[i],n=e.get?.(t)??e[t];return o&&n&&o.test(n)?function(e,t){let i=e.match(function(e){let t=e.flags;return t.includes("g")||(t+="g"),new RegExp(e.source,t)}(t)).map(e=>`<mark class="highlight">${(0,a.A)(e)}</mark>`),o=e.split(t).map(a.A),n="";for(let e=0;e<i.length;e++)n+=o[e]+i[e];return n+=o[i.length],(0,r.htmlSafe)(n)}(n,o):n}},471061(e,t,i){i.d(t,{Lc:()=>h});var r,o,a,n=i(279564),s=i(873771),l=i(78474);function u(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function c(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}const d=Object.freeze([{label:"Show underlying investments",value:!0},{label:"Hide underlying investments",value:!1}]),p=Object.freeze([{label:"Show all constituents",value:"all"},{label:"Hide all constituents",value:"none"},{label:"Show top constituents",value:"top"},{label:"Show constituents weighted greater than or equal to",value:"weighted"}]);let h=(o=c((r=class{constructor(e,t){u(this,"type",o,this),u(this,"threshold",a,this),this.type=e,this.threshold=t}
1serialize(){return(0,l.A)({type:this.type,threshold:this.threshold},s.A)}}).prototype,"type",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=c(r.prototype,"threshold",[n.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["MV",0,d,"Te",0,p])},165990(e,t,i){i.d(t,{$o:()=>l,JJ:()=>u,bh:()=>s});const r={displayName:"Don't group by multiple values",groupByWeightedValues:!1,showMultiValueRemainder:!1},o={displayName:"Group by multiple values",groupByWeightedValues:!0,showMultiValueRemainder:!1},a={displayName:"Group by multi-value with remainder",groupByWeightedValues:!0,showMultiValueRemainder:!0},n=[r,o,a];function s({groupByWeightedValues:e,showMultiValueRemainder:t,...i}){return{value:`${e}${t}`,groupByWeightedValues:e,showMultiValueRemainder:t,...i}}function l(){return n}function u(e,t){return e?t?a:o:r}},599901(e,t,i){const r="Enabled",o="true",a="Disabled",n="false",s=[{label:r,value:o},{label:a,value:n}],l=[{displayName:r,value:o},{displayName:a,value:n}];i.d(t,["Ay",0,l,"Ok",0,r,"Oq",0,s,"VL",0,a])},903463(e,t,i){const r="hide_sleeves",o="show_sleeves",a=[{displayName:"Exclude sleeve assets",value:r},{displayName:"Include sleeve assets",value:o},{displayName:"Link sleeve & non-sleeve assets",value:"link_sleeves"}];i.d(t,["Ay",0,a,"mM",0,o,"xE",0,r])},76581(e,t,i){const r="Lowest ownership",o="lowest_ownership",a="Selected entity",n="selected_entity",s="Respect groupings",l="respect_groupings",u=[{label:r,value:o},{label:a,value:n},{label:s,value:l}],c=[{displayName:r,value:o},{displayName:a,value:n},{displayName:s,value:l}];i.d(t,["Ay",0,c,"hI",0,u])},416432(e,t,i){const r=Object.freeze({ADDEPAR_PORTFOLIO:"ADDEPAR_PORTFOLIO",ADDEPAR_TRANSACTION:"ADDEPAR_TRANSACTION",NAVIGATOR_PROJECTION:"NAVIGATOR_PROJECTION",BILLING_RATE_TIER:"BILLING_RATE_TIER",SELF_MANAGED:"SELF_MANAGED"}),o=Object.freeze({ADL:"ADL",TRADING:"TRADING",EMONEY:"EMONEY"});i.d(t,["Y",0,r,"w",0,o])},116360(e,t,i){const r=new Map(Object.entries({_MD_ISIN:"hc/en-us/articles/22275773804951-Global-Security-Master-CUSIP-and-ISIN-attributes",_MD_CUSIP:"hc/en-us/articles/22275773804951-Global-Security-Master-CUSIP-and-ISIN-attributes",_MD_SEDOL:"hc/en-us/articles/22275844049175-Global-Security-Master-SEDOL-and-Ticker-attributes",_MD_TICKER:"hc/en-us/articles/22275844049175-Global-Security-Master-SEDOL-and-Ticker-attributes",ACCOUNT_FEES:"hc/articles/360044530013",ACCOUNT_NUMBER:"hc/articles/360044530953",ACCRUAL_EXCLUSIONS:"hc/articles/360044395954",ACCRUAL_START_DATE:"hc/articles/360044922053",ACCRUED_INCOME:"hc/articles/360044924013",ACERVUS_BEST_BID:"hc/articles/8876357792791",ACERVUS_BEST_OFFER:"hc/articles/8876433849879",ACERVUS_POST_VALUATION:"hc/articles/9612352570775",ACERVUS_LAST_FUNDING_ROUND_DATE:"hc/articles/8876456929559",ACERVUS_LAST_FUNDING_ROUND_PRICE:"hc/articles/8876474908311",ACERVUS_PREMIUM_DISCOUNT_BID:"hc/articles/8876515563415",ACERVUS_PREMIUM_DISCOUNT_OFFER:"hc/articles/8876532377495",ACERVUS_INDUSTRY:"hc/articles/8876575898135",ACERVUS_VERTICAL:"hc/articles/8876617333143",ACTIVE:"hc/articles/360044768274",ACTIVE_RETURN:"hc/articles/360044925093",ACTUAL_SECURITY_TYPE:"hc/articles/360062805473",ADDEBILL_EXEMPT_ASSET:"hc/articles/1500002388861",ADDEBILL_EXEMPT_ASSET_REASON:"hc/articles/360062805513",ADDEPAR_ASSET_CLASS:"hc/en-us/articles/11631868085015",ADDEPAR_CLASSIFICATION_CODE:"hc/en-us/articles/11631868085015",ADDITIONAL_STATE_CODE:"hc/articles/360045062514",ADDITIONAL_STATE_CODE_TWO:"hc/articles/360045606073",ADJUSTED_R_SQUARED:"hc/articles/360056400593",ADVISOR:"hc/articles/360044925533",AIR_POLLUTION_PERCENTILE:"hc/en-us/articles/5604233054231",AIR_POLLUTION_SCORE:"hc/en-us/articles/5604233054231",ALLOCATION_DEVIATION:"hc/articles/360044400054",ALLOCATION_DEVIATION_PERCENT:"hc/articles/360044400334",ALPHA:"hc/articles/360044926813",APPRECIATION:"hc/articles/360044933333",ASSET_CLASS:"hc/articles/360044942013",ATTRIBUTE_INHERITANCE_BEHAVIOR:"hc/en-us/articles/360042342693-Attribute-Inheritance-Behaviors",ATTRIBUTE_ROLLUP_METHODOLOGY:"hc/en-us/articles/360041865254-Attribute-Rollup-Methodologies",AVERAGE_DAILY_BALANCE:"hc/articles/360044412734",AVERAGE_NEGATIVE_BENCHMARK_RETURN:"hc/articles/360056400633",AVERAGE_NEGATIVE_RETURN:"hc/articles/360054575274",AVERAGE_POSITIVE_BENCHMARK_RETURN:"hc/articles/360056400113",AVERAGE_POSITIVE_RETURN:"hc/articles/360054575494",BASIC_EXPOSURE:"hc/articles/360044762674",BBGID:"hc/articles/360045281413",BENCHMARK:"hc/articles/360045281613",BENCHMARK_RETURN:"hc/articles/360044763134",BENCHMARK_ROLLUP:"hc/articles/360044762994",BEST_BENCHMARK_PERIOD_RETURN:"hc/articles/360056399913",BEST_PERIOD_RETURN:"hc/articles/360054575514",BETA:"hc/articles/360044763194",BILLING_AUM:"hc/articles/360044936013",BILLING_BILL_TO:"hc/articles/360044763874",BILLING_BILL_TO_ACCOUNT_NUMBER:"hc/articles/360044763894",BILLING_EFFECTIVE_DATE:"hc/articles/360045283253",BILLING_FEES:"hc/articles/360044764374",BILLING_FEE_ADJUSTMENT:"hc/articles/360062805833",BILLING_SCHEDULE:"hc/articles/360045296493",BIODIVERSITY_LOSS_PERCENTILE:"hc/en-us/articles/5604233054231",BIODIVERSITY_LOSS_SCORE:"hc/en-us/articles/5604233054231",BOND_FREQUENCY:"hc/articles/360044777574",BOND_TYPE:"hc/articles/360044764494",BUSINESS_COUNTRY_ID:"hc/articles/360045505953",CALENDAR_PERIOD_GROUPING:"hc/articles/360052241314",CALLABLE_DATE:"hc/articles/360045003734",CALL_INFO:"hc/articles/360062805533",CALL_PRICE:"hc/articles/360045003754",CAPITAL_CALL:"hc/articles/360045283473",CAPTURE_RATIO:"hc/articles/360056400693",CASHFLOW_INSPECTION:"hc/articles/1500002388941",CASH_ACCRUALS_PAYMENT_WINDOW:"hc/en-us/articles/360045283573",CFI:"hc/articles/360045283613",CFI_ASSETS:"hc/articles/360044764834",CFI_CLOSE_OPEN_END:"hc/articles/360045283653",CFI_DELIVERY:"hc/articles/360045283693",CFI_DISTRIBUTION_POLICY:"hc/articles/360045283993",CFI_ENTITLEMENT_CALL_PUT_TYPE:"hc/articles/360044765114",CFI_ENTITLEMENT_WARRANT_TYPE:"hc/articles/360045284253",CFI_FORM:"hc/articles/360044765434",CFI_FURTHER_GROUPING:"hc/articles/360045284393",CFI_GROUP:"hc/articles/360045284433",CFI_GUARANTEE:"hc/articles/360045284533",CFI_INCOME_TYPE:"hc/articles/360045284573",CFI_OWNERSHIP_TRANSFER_RESTRICTION:"hc/articles/360044765774",CFI_PAYMENT_STATUS:"hc/articles/360044766114",CFI_REDEMPTION:"hc/articles/360045284893",CFI_REDEMPTION_REIMBURSEMENT:"hc/articles/360045284913",CFI_SECURITY_CATEGORY:"hc/articles/360044766194",CFI_STANDARDIZATION:"hc/articles/360045284953",CFI_TYPE_OF_INTEREST:"hc/articles/360045285073",CFI_TYPE_OF_SCHEME:"hc/articles/360045285133",CFI_
1UNDERLYING_ASSET:"hc/articles/360044766534",CFI_VOTING_RIGHT:"hc/articles/360044766554",CHANGE_IN_ACCRUED_INCOME:"hc/articles/360044766694",CHANGE_IN_COST_BASIS:"hc/articles/360044766794",CHANGE_IN_UNIT_COST_BASIS:"hc/articles/360044766834",CHANGE_IN_UNREALIZED_GAIN:"hc/articles/360045285493",CHANGE_IN_VALUE:"hc/articles/360045285433",CIK:"hc/articles/360044766974",CLARITY_AI_ENVIRONMENTAL_PERCENTILE:"hc/en-us/articles/5604233054231",CLARITY_AI_ENVIRONMENTAL_SCORE:"hc/en-us/articles/5604233054231",CLARITY_AI_ESG_PERCENTILE:"hc/en-us/articles/5604233054231",CLARITY_AI_ESG_TOTAL_SCORE:"hc/en-us/articles/5604233054231",CLARITY_AI_GOVERNANCE_PERCENTILE:"hc/en-us/articles/5604233054231",CLARITY_AI_GOVERNANCE_SCORE:"hc/en-us/articles/5604233054231",CLARITY_AI_SOCIAL_PERCENTILE:"hc/en-us/articles/5604233054231",CLARITY_AI_SOCIAL_SCORE:"hc/en-us/articles/5604233054231",CLIMATE_CHANGE_PERCENTILE:"hc/en-us/articles/5604233054231",CLIMATE_CHANGE_SCORE:"hc/en-us/articles/5604233054231",CLOSED_TAX_LOTS:"hc/articles/360045285573",CONVERSION_MINIMUM:"hc/articles/360044413754",CONVEXITY:"hc/articles/360044767074",CORRELATION_COEFFICIENT:"hc/articles/360054576414",COST_BASIS:"hc/articles/360045285893",COST_BASIS_ADJUSTMENT:"hc/articles/360045286073",COUNTRY:"hc/articles/360045285593",COUNTRY_ID:"hc/articles/360044976834",COUPON_CAP:"hc/articles/360044767234",COUPON_FLOOR:"hc/articles/360045285673",COUPON_RATE:"hc/articles/360044767314",COUPON_TYPE:"hc/articles/360044767394",COVARIANCE:"hc/articles/360054576454",CREDENTIALS:"hc/articles/360045286153",CURRENCY_FACTOR:"hc/articles/360045286273",CURRENT_DATE:"hc/articles/360062805613",CUSIP:"hc/articles/360045286293",DATA_PROBLEM:"hc/articles/360044709374",DATED_DATE:"hc/articles/360044768014",DAY_COUNT:"hc/articles/360044768534",DAY_COUNT_CONVENTION:"hc/articles/360045287433",DEBT_TYPE:"hc/en-us/articles/4404417720471",DEFAULT_END_DATE:"hc/en-us/articles/9044123243031",DEFAULT_INDICATOR:"hc/en-us/articles/9043992114327",DEFAULT_START_DATE:"hc/en-us/articles/9044083249687",DELIVERY_PRICE:"hc/articles/360045288113",DEPOSITS:"hc/articles/360045538193",DIRECT_OWNER:"hc/articles/360044769014",DIRECT_OWNER_ID:"hc/articles/360045288933",DISPLAY_NAME:"hc/articles/360045293353",DISPOSED_COST:"hc/articles/360045292913",DISPOSED_UNITS:"hc/articles/1500002389101",DIVIDENDS_PER_YEAR:"hc/articles/360045293853",DIVIDEND_RATE:"hc/articles/360044774034",DOMICILE:"hc/articles/360044774254",DOWNSIDE_CAPTURE:"hc/articles/360054576334",EMPLOYEE_FATALITIES_PERCENTILE:"hc/en-us/articles/5604233054231",EMPLOYEE_FATALITIES_SCORE:"hc/en-us/articles/5604233054231",EMPLOYEE_TRAINING_PERCENTILE:"hc/en-us/articles/5604233054231",EMPLOYEE_TRAINING_SCORE:"hc/en-us/articles/5604233054231",END_DATE:"hc/articles/360044774974",EXCHANGE:"hc/articles/360044775034",EXIT_DATE:"hc/articles/360044775054",EXPIRATION_DATE:"hc/articles/360044775074",FEES:"hc/articles/360045296813",FINANCIAL_SERVICE:"hc/articles/360044776574",FINANCIAL_SERVICE_NAME:"hc/articles/360044776774",FIRM:"hc/articles/360044776954",FIRST_PAYMENT_DATE:"hc/articles/360044777174",FIRST_VARIABLE_COUPON_DATE:"hc/articles/360045297173",FITCH_RATING:"hc/articles/360062805993",FLOATING_INDEX:"hc/articles/360044777354",FLOATING_SPREAD:"hc/articles/360044777394",FUND_CONTRIBUTIONS:"hc/articles/360045123574",FUND_DISTRIBUTIONS:"hc/articles/360045297753",GENDER_INEQUALITY_PERCENTILE:"hc/en-us/articles/5604233054231",GENDER_INEQUALITY_SCORE:"hc/en-us/articles/5604233054231",GICS_COMPANY_NAME:"hc/en-us/articles/9334688234519",GICS_COUNTRY_OF_DOMICILE_CODE:"hc/en-us/articles/9334688234519",GICS_COUNTRY_OF_DOMICILE_NAME:"hc/en-us/articles/9334688234519",GICS_COUNTRY_OF_INCORPORATION_CODE:"hc/en-us/articles/9334688234519",GICS_COUNTRY_OF_INCORPORATION_NAME:"hc/en-us/articles/9334688234519",GICS_INDUSTRY_DESCRIPTION:"hc/en-us/articles/9334688234519",GICS_INDUSTRY_GROUP_DESCRIPTION:"hc/en-us/articles/9334688234519",GICS_ISSUE_TYPE_DESCRIPTION:"hc/en-us/articles/9334688234519",GICS_SECTOR_DESCRIPTION:"hc/en-us/articles/9334688234519",GICS_SUB_INDUSTRY_DESCRIPTION:"hc/en-us/articles/9334688234519",GLOBAL_ASSET_CLASS:"hc/articles/360045506133",GLOBAL_CATEGORY_NAME:"hc/articles/360045506173",GROUPING_FACTOR_DISPLAY_NAME:"hc/articles/360062806513",GSM_ENTITY_NAME:"hc/en-us/articles/13314798278167-Global-Security-Master-Entity-Name-attribute",HIGH_WATER_MARK:"hc/articles/360044778094",HOLDING_ACCOUNT:"hc/articles/360044778154",HOLDING_DATES:"hc/articles/360045298073",HOLDING_END_DATE:"hc/articles/360045298373",HOLDING_PERIOD:"hc/articles/360045298493",HOLDING_START_DATE:"hc/articles/360044778734",HOLDING_STATUS:"hc/articles/360044778814",IGNORE_CUSTODIAN_TAX_LOTS:"hc/articles/360045286473",INCEPTION_DATE:"hc/articles/360045219953",INCEPTION_PRICE:"hc/articles/360044767794",INCOME:"hc/articles/360045286673",INDEX_RATIO:"hc/articles/360044767834",INDICATED_ANNUAL_DIVIDEND:"hc/articles/360045286693",INDICATED_ANNUAL_DIVIDEND_METHODOLOGY:"hc/en-us/articles/21348502896791",INDUSTRY:"hc/articles/360044768114",INFORMATION_RATIO:"hc/articles/360045287133",INSTITUTION_SUB_CLASS:"hc/articles/360045061134",INSTITUTION_SUB_TYPE:"hc/articles/360045060554",INTEREST_RATE:"hc/articles/360045287153",INVESTMENT_TYPE:"hc/articles/360044768234",IRR:"hc/articles/360038595013",ISIN:"hc/articles/360044768414",ISSUER:"hc/articles/360044768554",ISSUER_COUNTRY:"hc/articles/360045604693",ISSUER_STATE_CODE:"hc/articles/360045061754",ISSUER_TYPE:"hc/articles/360045061314",ISSUE_DATE:"hc/articles/360045287693",IS_CALLABLE:"hc/articles/360044764634",IS_CUMULATIVE:"hc/articles/360045286193",IS_DIRECTLY_OWNED:"hc/articles/360044768314",IS_PREREFUNDED:"hc/articles/360045538953",IS_ROLLED_UP:"hc/articles/360045005174",JOB_CREATION_PERCENTILE:"hc/en-us/articles/5604233054231",JOB_CREATION_SCORE:"hc/en-us/articles/5604233054231",KURTOSIS:"hc/articles/360044973434",KURTOSIS_IN_EXCESS:"hc/articles/360044973494",LAST_ACTIVITY_DATE:"hc/articles/360044530633",LAST_VERIFIED_DATE:"hc/articles/360044044114",LEGAL_ENTITY:"hc/articles/360060984194",LIFETIME_VALUE:"hc/articles/360045501793",LIMITED_PARTNER:"hc/articles/360045502493",LIQUIDATION_RETURN:"hc/articles/360045503433",LIQUIDITY:"hc/articles/360045120074",LIQUIDITY_FREQUENCY:"hc/articles/360045504113",LIQUIDITY_HARD_LOCK_P
1ERIOD:"hc/articles/360044975954",LIQUIDITY_HOLD_BACK:"hc/articles/360045505393",LIQUIDITY_INVESTOR_GATE:"hc/articles/360045505453",LIQUIDITY_NOTICE_PERIOD:"hc/articles/360044976354",LIQUIDITY_ROLLING_LOCK_PERIOD:"hc/articles/360045505513",LIQUIDITY_SOFT_LOCK_FEE:"hc/articles/360045505553",LIQUIDITY_SOFT_LOCK_PERIOD:"hc/articles/360045505613",MACAULAY_DURATION:"hc/articles/360044976594",MATURITY_DATE:"hc/articles/360044976654",MIC:"hc/articles/360044976634",MINIMUM_INVESTMENT_AMOUNT:"hc/articles/1500002541982",MODEL_TYPE:"hc/articles/360045963554",MODIFIED_DURATION:"hc/articles/360044976714",MOODY_RATING:"hc/articles/360062806613",MORNINGSTAR_ASSET_ALLOCATION_NET:"hc/articles/360045505873",MORNINGSTAR_ASSET_CLASS:"hc/articles/360060984234",MORNINGSTAR_AVERAGE_CREDIT_QUALITY:"hc/en-us/articles/1500003536022",MORNINGSTAR_BOND_PRIMARY_SECTOR_NET:"hc/en-us/articles/1500003982721",MORNINGSTAR_BOND_REGION_NET:"hc/en-us/articles/1500004102482",MORNINGSTAR_BOND_STYLE_BOX:"hc/en-us/articles/360063845773",MORNINGSTAR_BOND_SUPER_SECTOR_NET:"hc/articles/360045505893",MORNINGSTAR_CAPITAL_NET:"hc/articles/360044977034",MORNINGSTAR_CATEGORY_NAME:"hc/articles/360044976814",MORNINGSTAR_COUNTRY_NET:"hc/en-us/articles/1500004102582",MORNINGSTAR_CREDIT_QUALITY_NET:"hc/articles/360045506033",MORNINGSTAR_ECONOMY_SPHERE_CODE:"hc/articles/360045506073",MORNINGSTAR_EFFECTIVE_DURATION_LONG:"hc/en-us/articles/1500003983881",MORNINGSTAR_EQUITY_STYLE_BOX:"hc/en-us/articles/1500003575162",MORNINGSTAR_INDUSTRY_CODE:"hc/articles/360045506273",MORNINGSTAR_IS_TAXABLE_BOND:"hc/en-us/articles/1500003983581",MORNINGSTAR_MONEY_MARKET_FUND:"hc/en-us/articles/1500004104662",MORNINGSTAR_REGION_NET:"hc/articles/360045506613",MORNINGSTAR_SECTOR_CODE:"hc/articles/360045530893",MORNINGSTAR_SEC_YIELD:"hc/en-us/articles/1500003983021",MORNINGSTAR_SEC_YIELD_END_DATE:"hc/en-us/articles/1500004102002",MORNINGSTAR_SHARE_CLASS:"hc/en-us/articles/20526921642263-Morningstar-Share-Class-attribute",MORNINGSTAR_STOCK_SECTOR_NET:"hc/articles/360045506253",MORNINGSTAR_STOCK_TYPE_NET:"hc/articles/360045531093",MORNINGSTAR_STYLE_BOX_NET:"hc/articles/360044998174",MS_MOODY_RATING:"hc/articles/360062806613",MS_SHORT_NAME:"hc/articles/360045132774",MS_SP_RATING:"hc/articles/360062807253",MULTIPLE_OF_COST:"hc/articles/360045531313",MULTIPLIER:"hc/articles/360045531353",MULTI_PERIOD_TWR_PERFORMANCE_CONTRIBUTION_INSPECTION:"hc/articles/1500002389581",MUNI_LOC_TYPE:"hc/en-us/articles/4404417926423",NAVIGATOR_HYPOTHETICAL_INVESTMENT:"hc/en-us/articles/41178091768855",NAVIGATOR_PROJECTION_CASH_FLOW:"hc/en-us/articles/42254988145047/",NAVIGATOR_PROJECTION_VALUE:"hc/en-us/articles/40483760752407",NET_CASHFLOW_INSPECTION:"hc/articles/360038602473",NET_GAIN:"hc/articles/360045003714",NEXT_EX_DIV_DATE:"hc/articles/360060101014",NEXT_PAY_DATE:"hc/articles/1500001493941",NODE_GROUPS:"hc/articles/360062806313",NODE_ID:"hc/articles/360045295533",NODE_OWNERSHIP:"hc/articles/360044529573",NODE_YIELD:"hc/articles/360045285813",NOTE_DISCOUNT:"hc/articles/360045538273",NOTIONAL_VALUE:"hc/articles/360045538293",NO_LOOKTHROUGH:"hc/articles/360044772234",NUMBER_OF_DOWN_BENCHMARK_PERIODS:"hc/articles/360056399813",NUMBER_OF_DOWN_PERIODS:"hc/articles/360056399093",NUMBER_OF_HOLDINGS:"hc/articles/360045003794",NUMBER_OF_UP_BENCHMARK_PERIODS:"hc/articles/360056399853",NUMBER_OF_UP_PERIODS:"hc/articles/360056399273",ONLINE_STATUS:"hc/articles/360045003854",OPEN_TAX_LOTS:"hc/articles/360045003874",OPTION_STATUS:"hc/articles/360045538453",OPTION_TYPE:"hc/articles/360045538473",ORIGINAL_NAME:"hc/articles/360046568053",ORIGINAL_PRINCIPAL_PER_SHARE:"hc/articles/1500002542102",OUTSTANDING_SHARE_OWNERSHIP:"hc/articles/360044527613",OWNERSHIP:"hc/articles/360045538593",OWNERSHIP_EXCLUDING_ACCOUNTS:"hc/articles/360045538573",OWNERSHIP_TYPE:"hc/articles/360043377353",PAID_IN_CAPITAL:"hc/articles/360045004054",PERCENT_CHANGE_IN_VALUE:"hc/articles/360045285473",PERCENT_OF_PORTFOLIO:"hc/articles/360044529413",PERCENT_PAID_IN_CAPITAL:"hc/articles/360045004094",PERFORMANCE_CONTRIBUTION:"hc/articles/360045004134",PERIODIC_AMORTIZED_ACCRETED:"hc/articles/360045004174",PE_RATIO:"hc/articles/360045501373",PORTAL_DATE:"hc/articles/360045004194",POSITION:"hc/articles/360045004294",POSITION_ID:"hc/articles/360045004354",POSTED_DATE:"hc/articles/360045004434",PRICE_FACTOR:"hc/articles/360045539093",PRICE_PER_SHARE:"hc/articles/360045538993",PRINCIPAL_PER_SHARE:"hc/articles/360045539133",PROBLEM_COUNT:"hc/articles/360045004674",PROBLEM_DATE:"hc/articles/360045539173",PROBLEM_TYPE:"hc/articles/360045539233",PROBLEM_UNITS:"hc/articles/360045539273",PROCEEDS:"hc/articles/360045539293",PROJECT
1ED_ANNUAL_INCOME:"hc/articles/360045004794",PROJECTED_CASHFLOW:"hc/articles/360045004854",PROJECTED_EXPOSURE:"hc/articles/360045004894",PROPOSAL_PERCENT_OF_PORTFOLIO:"hc/articles/360060984334",PROPOSAL_SHARES_TO_TRADE:"hc/articles/1500002542382",PROPOSAL_VALUE_CHANGE:"hc/articles/360062806993",PROPOSAL_VALUE_CHANGE_PERCENT:"hc/articles/360060984394",PROPOSAL_VALUE_FINAL:"hc/articles/360062807173",PROSPECTUS_NET_EXPENSE_RATIO:"hc/articles/360045506513",PROSPECTUS_OBJECTIVE_NAME:"hc/articles/360044977094",PROSPECTUS_PRIMARY_BENCHMARK:"hc/articles/360045506553",PURCHASE_DATE:"hc/articles/360045004994",REALIZED_GAIN:"hc/articles/360045005054",REALIZED_PERCENT_GAIN:"hc/articles/360045005074",RECALLABLE_AMOUNT:"hc/articles/360045005094",RECON_STATUS:"hc/articles/1500002541502",REFERENCE_CURRENCY:"hc/articles/360062807233",REPORTING_CONTEXT:"hc/articles/360045538733",RESET_FREQUENCY:"hc/articles/360060984974",RETURNS_INSPECTION:"hc/articles/360060984614",REVERSE_OWNERSHIP:"hc/articles/360045005134",ROLL_UP:"hc/articles/360045539613",R_SQUARED:"hc/articles/360054576114",SECTOR:"hc/articles/360045063634",SECURITY:"hc/articles/360045607913",SECURITY_TYPE:"hc/articles/360044997914",SEDOL:"hc/articles/360045104814",SETTLEMENT_DATE:"hc/articles/360045608253",SETTLEMENT_TYPE:"hc/articles/360045064554",SEVERITY:"hc/articles/1500002389861",SHARES:"hc/articles/360045539553",SHARES_OUTSTANDING:"hc/articles/360045538553",SHARE_CLASS:"hc/articles/360045609593",SHARPE_RATIO:"hc/articles/360045105594",SHORT_NAME:"hc/articles/360045132774",SINCE_DATE:"hc/articles/360045661753",SIX_INSTRUMENT_TYPE:"hc/articles/360045114054",SKEWNESS:"hc/articles/360045662313",SORTINO_RATIO:"hc/articles/360045662533",SP_RATING:"hc/articles/360062807253",START_DATE:"hc/articles/360045114814",STATE_TAX_INDICATOR:"hc/articles/360045063334",STOCK_TYPE:"hc/articles/360044997994",STRIKE_PRICE:"hc/articles/360045114974",STYLE_BOX:"hc/articles/360044998094",SUBSECTOR:"hc/articles/360045663313",TAGGED_TRANSACTIONS:"hc/articles/360045115834",TARGET_ALLOCATION:"hc/articles/360045664753",TARGET_ALLOCATION_PERCENT:"hc/articles/360045118494",TARGET_ALLOCATION_RANGE:"hc/articles/360045665213",TAXABLE_STATUS:"hc/articles/360045605093",TAX_LOT_TIMELINE:"hc/articles/360060984714",TAX_PROGRAM:"hc/articles/360045063494",TICKER_SYMBOL:"hc/articles/360045665493",TIME_PERIOD:"hc/articles/360045666213",TIME_PERIOD_GROUPING:"hc/articles/360052241274",TIME_TO_EXPIRATION:"hc/articles/360045120014",TIME_TO_MATURITY:"hc/articles/360045120354",TIME_TO_WORST:"hc/articles/1500002389921",TIME_WEIGHTED_RETURN:"hc/articles/360038062174",TOP_LEVEL_ACCOUNT_NUMBER:"hc/articles/360045120534",TOP_LEVEL_HOLDING_ACCOUNT:"hc/articles/360045666913",TOP_LEVEL_LEGAL_ENTITY:"hc/articles/360045667053",TOP_LEVEL_OWNER:"hc/articles/360045120834",TOTAL_CAPITAL_BALANCE:"hc/articles/360045667253",TOTAL_COMMITMENTS:"hc/articles/360045121434",TOTAL_COST:"hc/articles/360045668373",TOTAL_INCOMING_COMMITMENTS:"hc/articles/360045668573",TOTAL_OUTGOING_DISTRIBUTIONS:"hc/articles/360045668833",TOTAL_PAID_IN:"hc/articles/360045669033",TOTAL_PERCENT_PAID_IN:"hc/articles/360045669353",TOTAL_RETURN:"hc/articles/360045123914",TOTAL_UNFUNDED_COMMITMENTS:"hc/articles/360045669493",TRADE_DATE:"hc/articles/360045669633",TRAILING_D7_YIELD:"hc/articles/1500002542022",TRAILING_D7_YIELD_END_DATE:"hc/en-us/articles/1500003986481",TRAILING_Y1_YIELD:"hc/articles/1500002389521",TRANSACTIONS:"hc/articles/360060984834",TRANSACTION_COMMENTS:"hc/articles/360045669693",TRANSACTION_COUNT:"hc/articles/1500002389941",TRANSACTION_ID:"hc/articles/360045124194",TRANSACTION_SUMMARY:"hc/articles/360062807633",TRANSACTION_TAGS:"hc/articles/360045124314",TRANSACTION_TYPE:"hc/articles/360045124474",TRANSACTION_UNITS:"hc/articles/360045670093",TRANSACTION_VALUE:"hc/articles/360044369713",TRANSFER_GAIN:"hc/articles/360045670293",TRANSPARENCY_PERCENTILE:"hc/en-us/articles/5604233054231",TRANSPARENCY_SCORE:"hc/en-us/articles/5604233054231",TWR_BUCKET_INSPECTION:"hc/articles/1500002542682",UNDERLYING_PRICE:"hc/articles/360045670573",UNDERLYING_SECURITY:"hc/articles/360045125174",UNFUNDED_COMMITMENT:"hc/articles/360045670653",UNIT_COST_BASIS:"hc/articles/360045286113",UNREALIZED_GAIN:"hc/articles/360045125494",UNREALIZED_PERCENT_GAIN:"hc/articles/360045125574",UPSIDE_CAPTURE:"hc/articles/360045670933",USE_CASH_ACCRUALS:"hc/articles/360045671033",US_ASSET_CLASS:"hc/articles/360044998374",VALOREN:"hc/articles/360045674513",VALUATION:"hc/articles/360045674573",VALUATION_CAP:"hc/articles/360045674713",VALUATION_DATE:"hc/articles/360045674833",VALUATION_SOURCE:"hc/articles/360045130514",VALUE:"hc/articles/360045132334",VERIFICATION_HISTORY_INSPECTION:"hc/articles/1500002388741",VINTAGE_YEAR:"hc/articles/360045132534",VOLATILITY:"hc/articles/360045114694",VOLUME:"hc/articles/360044973634",WASH_SALE_LOSS:"hc/articles/1500002541562",WASTE_MANAGEMENT_PERCENTILE:"hc/en-us/articles/5604233054231",WASTE_MANAGEMENT_SCORE:"hc/en-us/articles/5604233054231",WATER_SCARCITY_PERCENTILE:"hc/en-us/articles/5604233054231",WATER_SCARCITY_SCORE:"hc/en-us/articles/5604233054231",WORST_BENCHMARK_PERIOD_RETURN:"hc/articles/360054575974",WORST_PERIOD_RETURN:"hc/articles/360054575594",YIELD:"hc/articles/360045285813",YIELD_TO_CALL:"hc/articles/360045132634",YIELD_TO_MATURITY:"hc/articles/360045132694",YIELD_TO_WORST:"hc/articles/360045132734"}));i.d(t,["L",0,"https://help.addepar.com/","t",0,r])},874837(e,t,i){const r={value:"show_in_grouping_row",label:"Show in grouping row"},o={value:"show_in_separate_row",label:"Show in separate row"},a={value:"hide_in_grouping_row",label:"Do not display"},n=Object.freeze([{value:"inherit",label:"Use table setting"},r,o,a]),s=Object.freeze([r,o]);i.d(t,["Tp",0,n,"U8",0,s,"fB",0,o,"iW",0,a,"lc",0,r,"q",0,{value:"inherit",label:"Inherit"}])},374799(e,t,i){var r=i(874837);const o={value:"bold",label:"Bold",fontName:"report-univers-next-bold",numericWeight:700},a={value:"light",label:"Light",fontName:"report-univers-next-light",numericWeight:300},n={value:"thin",label:"Thin",fontName:"report-univers-next-thin",numericWeight:200},s={value:"ultralight",label:"Ultra Light",fontName:"report-univers-next-ultra-light",numericWeight:100},l={value:"regular",label:"Regular",fontName:"report-univers-next-normal",numericWeight:400},u={value:"medium",label:"Medium",fontName:"report-univers-next-medium",numericWeight:500},c={value:"uppercase",label:"UPPERCASE"},d={value:"capitalize",label:"Capitalize"},p={value:"lowercase",label:"lowercase"},h=Object.freeze({BOLD:o,MEDIUM:u,REGULAR:l}),m=Object.freeze({ULTRA_LIGHT:s,THIN:n,LIGHT:a,REGULAR:l,MEDIUM:u,BOLD:o}),g=Object.freeze({UPPERCASE:c,CAPITALIZE:d,LOWERCASE:p}),f={value:0,label:"Custom ..."},y=Object([{value:1,label:"1"},{value:1.15,label:"1.15"},{value:1.5,label:"1.5"},{value:2,label:"2"},{value:2.5,label:"2.5"},{value:3,label:"3"},f]),b=Object.freeze([l,u,o]),v=Object.freeze([a,l,u,o]),w=Object.freeze([s,n,a,l,u,o]),_=Object.freeze([l,u,o]),A=Object.freeze([l,u,o,a]),T=Object.freeze([c,d,p]),C=Object.freeze({DEFAULT_ROW_TEXT_COLOR:"#333333",DEFAULT_ROW_BACKGROUND_COLOR:"#ffffff",DEFAULT_TOP_LEVEL_ROW_BACKGROUND_COLOR:"#f4f4f4",DEFAULT_BORDER_WIDTH:1,DEFAULT_BORDER_COLOR:"#b3b3b3",DEFAULT_TITLE_BORDER_COLOR:"#e9e9e9",DEFAULT_ROW_TEXT_WEIGHT:l.value}),S={value:"solid",label:"Solid",width:1},R={value:"double",label:"Double",width:3},D={value:"none",label:"No border",width:null},O={value:"none",label:"No borders",width:null},E={value:"top",label:"Solid top",width:null},F={value:"bottom",label:"Solid bottom",width:null},P={value:"top_and_bottom",label:"Solid top and bottom",width:null},x={value:"solid",label:"Solid top"},N=Object.freeze([x,D]),z=Object.freeze({NONE:D,NONE_PLURAL:O,SOLID:S,DOUBLE:R,TOP:E,BOTTOM:F,TOP_AND_BOTTOM:P}),I=Object.freeze([D,O,S,R,E,F,P]),M=(Object.freeze({header_row_height:11.5,header_row_font_name:l.value,header_row_font_size:10,header_row_text_case:c.value,header_row_background_color:"white",header_row_text_color:"black",header_row_border_style:z.BOTTOM.value,header_row_border_color:"#d0d0d0",body_row_text_size:8,body_row_height_multiple:2,body_row_border_style:z.SOLID.value,body_row_border_color:"#e9e9e9",enable_text_wrapping:!1,body_top_level_row_text_weight:h.BOL
1D.value,body_top_level_row_text_color:C.DEFAULT_ROW_TEXT_COLOR,body_top_level_row_background_color:C.DEFAULT_TOP_LEVEL_ROW_BACKGROUND_COLOR,body_repeating_row_text_weight:h.BOLD.value,body_repeating_row_text_color:C.DEFAULT_ROW_TEXT_COLOR,body_repeating_row_background_color:C.DEFAULT_ROW_BACKGROUND_COLOR,body_base_row_text_weight:h.REGULAR.value,body_base_row_text_color:C.DEFAULT_ROW_TEXT_COLOR,body_base_row_background_color:C.DEFAULT_ROW_BACKGROUND_COLOR,subtotal_display_type:r.lc.value,subtotal_row_text_color:C.DEFAULT_ROW_TEXT_COLOR,subtotal_row_background_color:C.DEFAULT_ROW_BACKGROUND_COLOR,subtotal_row_text_weight:h.BOLD.value,subtotal_row_top_border_style:z.SOLID.value,subtotal_row_top_border_color:C.DEFAULT_BORDER_COLOR,subtotal_row_bottom_border_style:z.NONE.value,subtotal_row_bottom_border_color:C.DEFAULT_BORDER_COLOR,subtotal_mid_level_display_type:r.lc.value,subtotal_mid_level_row_background_color:C.DEFAULT_ROW_BACKGROUND_COLOR,subtotal_mid_level_row_text_color:C.DEFAULT_ROW_TEXT_COLOR,subtotal_mid_level_row_text_weight:h.BOLD.value,subtotal_mid_level_row_top_border_style:z.SOLID.value,subtotal_mid_level_row_top_border_color:C.DEFAULT_BORDER_COLOR,subtotal_mid_level_row_bottom_border_style:z.NONE.value,subtotal_mid_level_row_bottom_border_color:C.DEFAULT_BORDER_COLOR,total_row_text_color:C.DEFAULT_ROW_TEXT_COLOR,total_row_background_color:C.DEFAULT_ROW_BACKGROUND_COLOR,total_row_text_weight:h.BOLD.value,total_row_top_border_style:z.SOLID.value,total_row_top_border_color:C.DEFAULT_BORDER_COLOR,total_row_bottom_border_style:z.SOLID.value,total_row_bottom_border_color:C.DEFAULT_BORDER_COLOR}),(e,t)=>`top-${e.value}-bottom-${t.value}`),k={value:M(S,D),label:"Solid top",group:"solids"},L={value:M(R,D),label:"Double top",group:"doubles"},j={value:M(D,S),label:"Solid bottom",group:"solids"},V={value:M(D,R),label:"Double bottom",group:"doubles"},B={value:M(S,S),label:"Solid top and bottom",group:"solids"},q={value:M(R,R),label:"Double top and bottom",group:"doubles"},H={value:M(S,R),label:"Solid top and double bottom",group:"different_top_and_bottom"},U={value:M(R,S),label:"Double top and solid bottom",group:"different_top_and_bottom"},G={value:M(D,D),label:"No borders",group:"none"},W=Object.freeze({SOLID_TOP:k,SOLID_BOTTOM:j,SOLID_TOP_AND_BOTTOM:B,DOUBLE_TOP:L,DOUBLE_BOTTOM:V,DOUBLE_TOP_AND_BOTTOM:q,SOLID_TOP_AND_DOUBLE_BOTTOM:H,DOUBLE_TOP_AND_SOLID_BOTTOM:U,NO_BORDER:G}),$=e=>({displayName:e[1].label,borderStyle:e[1].value,group:e[1].group}),Y=["solids","doubles","different_top_and_bottom","none"],K=Object.freeze(["headerRowTextWeight","headerRowBackgroundColor","headerRowTextSize","headerRowTextColor","headerRowLetterCase","headerRowHeightMultiple","headerRowHeightMultipleCache","headerRowBorderStyle","headerRowBorderColor","bodyRowTextSize","bodyRowHeightMultiple","bodyRowBorderStyle","bodyRowBorderColor","enableTextWrapping","bodyTopLevelRowTextWeight","bodyTopLevelRowTextColor","bodyTopLevelRowBackgroundColor","bodyRepeatingRowTextWeight","bodyRepeatingRowTextColor","bodyRepeatingRowBackgroundColor","bodyBaseRowTextWeight","bodyBaseRowTextColor","bodyBaseRowBackgroundColor","subtotalDisplayType","subtotalRowTextWeight","subtotalRowTextColor","subtotalRowBackgroundColor","subtotalRowTopBorderStyle","subtotalRowTopBorderColor","subtotalRowBottomBorderStyle","subtotalRowBottomBorderColor","subtotalMidLevelDisplayType","subtotalMidLevelRowTextWeight","subtotalMidLevelRowTextColor","subtotalMidLevelRowBackgroundColor","subtotalMidLevelRowTopBorderStyle","subtotalMidLevelRowTopBorderColor","subtotalMidLevelRowBottomBorderStyle","subtotalMidLevelRowBottomBorderColor","totalRowTopBorderStyle","totalRowBottomBorderStyle","totalRowTopBorderColor","totalRowBottomBorderColor","totalRowTextColor","totalRowTextWeight","totalRowBackgroundColor","titleTextWeight","titleFontSize","titleAlignment","titleBorderStyle","titleBorderColor","titleTextColor"]);i.d(t,["Cw",0,A,"Ex",0,z,"Hk",0,C,"K1",0,N,"Ne",0,g,"Nw",0,w,"P5",0,I,"TH",0,(e,t)=>{let i=Y.indexOf(e.group),r=Y.indexOf(t.group);return i<r?1:i===r?0:-1},"VA",0,()=>Object.entries(W).map($),"Wg",0,K,"aA",0,m,"g0",0,f,"gH",0,v,"ps",0,y,"q_",0,x,"yA",0,h,"yk",0,_,"ym",0,T,"zN",0,b])},830819(e,t,i){i.d(t,{$Z:()=>o.$Z,GK:()=>j,H2:()=>M,Mq:()=>L,NO:()=>I,o9:()=>o.o9,u0:()=>k}
1);var r=i(753804),o=i(555546),a=i(943910),n=i.n(a);function s(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const l=Object.freeze({ADDISON_COMPONENT:"addison_component"}),u=Object.freeze({TEXT:"text",NUMBER:"big_number",HOME_EDIT_BUTTON:"home_edit_button"}),c=Object.freeze({TABLE:"table",ASSET:"asset_table",PIVOT:"pivot_table",ADVANCED:"advanced_table",PROJECTION:"projection_table",TRANSACTION:"transaction_table",BILLING_RATE:"billing_rate_table"}),d=Object.freeze({MIN:1,MAX:1e4}),p=Object.freeze([{label:"Clockwise",value:"clockwise"},{label:"Counterclockwise",value:"counterclockwise"}]),h=(Object.freeze([{label:"small",value:`${o.QZ.SMALL}`},{label:"medium",value:`${o.QZ.MEDIUM}`},{label:"large",value:`${o.QZ.LARGE}`},{label:"fill",value:`${o.QZ.FILL}`}]),Object.freeze([{displayName:"Percentage",value:o.o9.VALUE_FORMAT_PERCENTAGE},{displayName:"Value",value:o.o9.VALUE_FORMAT_VALUE},{displayName:"None",value:o.o9.VALUE_FORMAT_NONE}])),m=Object.freeze([{displayName:"None",label:"None",value:o.o9.LABEL_FORMAT_NONE},{displayName:"Wrap",label:"Wrap",value:o.o9.LABEL_FORMAT_BREAK},{displayName:"Truncate",label:"Truncate",value:o.o9.LABEL_FORMAT_TRUNCATE}]),g=Object.freeze(Object.entries(o.o9.VALUE_SCALES).map(([e,t])=>{let i=` (${t.symbol})`,o=e;return"default"===e?i="":"ones"===e&&(i="",o="no scale"),{displayName:`${(0,r.ZH)(o)}${i}`,value:e}})),f=Object.freeze([{displayName:"Default",value:void 0},{displayName:"0",value:0},{displayName:"1",value:1},{displayName:"2",value:2},{displayName:"3",value:3},{displayName:"4",value:4}]),y={ASCENDING:{displayName:"Ascending",value:"asc",icon:"arrow-up-wide-short"},DESCENDING:{displayName:"Descending",value:"desc",icon:"arrow-down-wide-short"},FIRM_WIDE:{displayName:"Default",value:"firm-wide",icon:"gear"}},b=Object.freeze([y.ASCENDING,y.DESCENDING,y.FIRM_WIDE]),v=Object.freeze({BOTH:"both",ABSOLUTE:"absolute",RELATIVE:"relative"}),w=Object.freeze({DEFAULT:"default",INVERT:"invert"}),_=Object.freeze({RED:"legacy:text-red-700 vs:text-[color:var(--color-text-negative)]",GREEN:"legacy:text-green-700 vs:text-[color:var(--color-text-positive)]"}),A=Object.freeze({RED:"semantic-error",GREEN:"semantic-positive"}),T=Object.freeze([{label:"Title",tag:"h1",fontSize:"33px",fontName:"Inter",value:"h1"},{label:"Title 2",tag:"h2",fontSize:"27px",fontName:"Inter",value:"h2"},{label:"Subtitle",tag:"h3",fontSize:"23px",fontName:"Inter",value:"h3"},{label:"Heading",tag:"h4",fontSize:"17px",fontName:"Inter",value:"h4"},{label:"Heading 2",tag:"h5",fontSize:"13px",fontName:"Inter",value:"h5"},{label:"Subheading",tag:"h6",fontSize:"12px",fontName:"Inter",value:"h6"},{label:"Body",tag:"p",fontSize:"13px",fontName:"Inter",value:"p"}]),C=Object.freeze([{label:"Default",name:"Default",value:"1.67969",size:1.67969},{label:"1",name:"1",value:"1",size:1},{label:"1.5",name:"1.5",value:"1.5",size:1.5},{label:"2",name:"2",value:"2",size:2}]),S=C.find(({name:e})=>"Default"===e).value,R=Object.freeze([{label:"Thin",fontName:"Inter-Thin",value:"Inter-Thin"},{label:"Extra Light",fontName:"Inter-ExtraLight",value:"Inter-ExtraLight"},{label:"Light",fontName:"Inter-Light",value:"Inter-Light"},{label:"Regular",fontName:"Inter",value:"Inter"},{label:"Medium",fontName:"Inter-Medium",value:"Inter-Medium"},{label:"Bold",fontName:"Inter-Bold",value:"Inter-Bold"}]),D=Object.freeze([{label:"bold",icon:"bold",value:"bold",hideLabel:!0},{label:"italic",icon:"italic",value:"italic",hideLabel:!0},{label:"underline",icon:"underline",value:"underline",hideLabel:!0}]),O=Object.freeze([{label:"6",value:"6"},{label:"8",value:"8"},{label:"10",value:"10"},{label:"12",value:"12"},{label:"14",value:"14"},{label:"16",value:"16"},{label:"18",value:"18"},{label:"24",value:"24"},{label:"36",value:"36"},{label:"48",value:"48"},{label:"64",value:"64"},{label:"72",value:"72"}]),E=Number(O.at(0).value),F=Number(O.at(-1).value),P=Object.freeze([{label:"left",icon:"align-left",value:"left",hideLabel:!0},{label:"center",icon:"align-center",value:"center",hideLabel:!0},{label:"right",icon:"align-right",value:"right",hideLabel:!0}]),x=Object.freeze([{type:o.$Z.BETA_BAR_TYPE,displayName:"Bar",ariaLabel:"Configure bar chart",iconURL:"/@addepar/widgets/img/report-bar-beta-7451f0ac48777095c8f32fab5dad03fc.svg",componentName:"report-chart-config/beta-bar",valueFactorContext:"bar_metric",listItemClass:"chart-title-beta-bar"},{type:o.$Z.BETA_PIE_TYPE,displayName:"Pie/donut",ariaLabel:"Configure pie or donut chart",iconURL:"/@addepar/widgets/img/report-donut-c365bf21cbacff3964f408e3d028d11f.svg",componentName:"report-chart-config/beta-pie",valueFactorContext:"chart_ratio_metric",listItemClass:"chart-title-beta-pie"},{type:o.$Z.BETA_SCATTER_TYPE,displayName:"Scatter",ariaLabel:"Configure scatter plot",iconURL:"/@addepar/widgets/img/report-scatter-a0ef02b7c7391385a6a40b51890d1bf5.svg",componentName:"report-chart-config/beta-scatter",valueFactorContext:"bar_metric",minValueFactors:2,maxValueFactors:2,listItemClass:"chart-title-beta-scatter"}
1,{type:o.$Z.BETA_LINE_TYPE,displayName:"Time series",ariaLabel:"Configure time series chart",iconURL:"/@addepar/widgets/img/report-line-chart-ec1f1cc4d96ba0f30d4ddc1b84a8f748.svg",componentName:"report-chart-config/beta-time-series",valueFactorContext:"time_series_metric",maxValueFactors:null,minGroupingFactors:0,maxGroupingFactors:1,listItemClass:"chart-title-beta-line"},{type:o.$Z.BETA_AREA_TYPE,displayName:"Area",ariaLabel:"Configure area chart",iconURL:"/@addepar/widgets/img/report-area-chart-4da51d506678d8b19cdb974cc0ed1024.svg",componentName:"report-chart-config/beta-time-series",valueFactorContext:"time_series_metric",maxValueFactors:null,minGroupingFactors:0,maxGroupingFactors:1,listItemClass:"chart-title-beta-area"},{type:o.$Z.BETA_WATERFALL_TYPE,displayName:"Waterfall",ariaLabel:"Configure waterfall chart",iconURL:"",componentName:"",valueFactorContext:"waterfall_metric",listItemClass:"chart-title-beta-waterfall"},{type:o.$Z.BETA_BOXPLOT_TYPE,displayName:"Boxplot",ariaLabel:"Configure Boxplot chart",iconURL:"/@addepar/widgets/img/report-bar-beta-7451f0ac48777095c8f32fab5dad03fc.svg",componentName:"report-chart-config/beta-boxplot",valueFactorContext:"bar_metric",listItemClass:"chart-title-beta-boxplot",minGroupingFactors:1,maxGroupingFactors:1,minValueFactors:2,maxValueFactors:5}]);class N extends(n()){constructor(...e){super(...e),s(this,"type",void 0),s(this,"displayName",void 0),s(this,"ariaLabel",void 0),s(this,"iconURL",void 0),s(this,"componentName",void 0),s(this,"listItemClass",void 0),s(this,"valueFactorContext",void 0),s(this,"minValueFactors",1),s(this,"maxValueFactors",1),s(this,"minGroupingFactors",1),s(this,"maxGroupingFactors",1)}}const z=Object.freeze(x.map(e=>N.create(e)));function I(e){return z.find(t=>t.type===e)}function M(e){return j().find(t=>t.type===e)}function k(){return L().filter(({type:e})=>e!==o.$Z.BETA_WATERFALL_TYPE)}function L(){return z.filter(({type:e})=>e!==o.$Z.BETA_BOXPLOT_TYPE)}function j(){return[{type:u.NUMBER,displayName:"Number"},{type:c.TABLE,displayName:"Table"},...L()]}i.d(t,["AT",0,w,"Aj",0,m,"B3",0,d,"Bq",0,O,"Cb",0,"portalDashboardView","HF",0,c,"J$",0,S,"JS",0,T,"L4",0,P,"Lv",0,"homeDashboardView","PE",0,z,"Vc",0,{GROUPING:"grouping",COLUMN:"column"},"WU",0,C,"Y8",0,p,"gU",0,g,"kO",0,"dashboardView","l6",0,F,"l9",0,A,"ls",0,v,"nt",0,h,"ow",0,f,"qI",0,R,"qL",0,u,"r2",0,D,"s9",0,b,"sX",0,l,"v0",0,E,"vy",0,y,"xT",0,"For the latest data, first refresh the portfolio in Navigator, then refresh your browser.","xy",0,_])},363590(e,t,i){i.d(t,{xO:()=>n});var r=i(830819),o=i(416432);function a(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class n{constructor(e){a(this,"value",void 0),a(this,"dataSource",void 0),a(this,"dataSourceLabel",void 0),a(this,"dataSet",void 0),a(this,"categories",void 0),a(this,"label",void 0),a(this,"icon",void 0),a(this,"img",void 0),a(this,"lightIcon",void 0),a(this,"darkIcon",void 0),a(this,"disabled",void 0),a(this,"requiredPermissions",void 0),a(this,"configDefaults",void 0),a(this,"configOptions",void 0),a(this,"configVisibility",void 0),a(this,"hidden",void 0),a(this,"tooltip",void 0),this.value=e.value,this.dataSource=e.dataSource,this.dataSourceLabel=e.dataSourceLabel,this.dataSet=e.dataSet,this.categories=e.categories,this.label=e.label,this.icon=e.icon,this.img=e.img,this.lightIcon=e.lightIcon,this.darkIcon=e.darkIcon,this.disabled=e.disabled,this.requiredPermissions=e.requiredPermissions,this.configDefaults=e.configDefaults,this.configOptions=e.configOptions,this.configVisibility=e.configVisibility,this.hidden=e.hidden??!1,this.tooltip=e.tooltip}}const s=new Set([r.$Z.BETA_AREA_TYPE,r.$Z.BETA_BAR_TYPE,r.$Z.BETA_LINE_TYPE,r.$Z.BETA_PIE_TYPE,r.$Z.BETA_SCATTER_TYPE,r.$Z.BETA_WATERFALL_TYPE,r.$Z.GAUGE_TYPE,r.$Z.PROJECTION_CHART_TYPE,r.qL.NUMBER]),l=new Set([r.HF.ADVANCED,r.HF.ASSET,r.HF.PIVOT,r.HF.PROJECTION,r.HF.TABLE,r.HF.TRANSACTION]),u=Object.freeze({[r.HF.TABLE]:new n({value:r.HF.TABLE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Table",icon:"table",img:"/@addepar/widgets/img/widget-library-icons/asset-table-fc51fb5fa0afa2558cbfab8bf0a0ec19.svg",lightIcon:"widget-icon-asset-table-themeLight",darkIcon:"widget-icon-asset-table-themeDark",hidden:!0}),[r.HF.ADVANCED]:new n({value:r.HF.ADVANCED,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Advanced",icon:"table-rows",img:"/@addepar/widgets/img/widget-library-icons/advanced-table-7e152790ac3cef26cfa4a9f075d98d2e.svg",lightIcon:"widget-icon-advanced-table-themeLight",darkIcon:"widget-icon-advanced-table-themeDark"}),[r.HF.ASSET]:new n({value:r.HF.ASSET,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Asset",icon:"table",img:"/@addepar/widgets/img/widget-library-icons/asset-table-fc51fb5fa0afa2558cbfab8bf0a0ec19.svg",lightIcon:"widget-icon-asset-table-themeLight",darkIcon:"widget-icon-asset-table-themeDark"}),[r.HF.PIVOT]:new n({value:r.HF.PIVOT,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Pivot",icon:"table-pivot",img:"/@addepar/widgets/img/widget-library-icons/pivot-table-9549465a6022d5465fa121c81cd4d43c.svg",lightIcon:"widget-icon-pivot-table-themeLight",darkIcon:"widget-icon-pivot-table-themeDark"}),[r.HF.PROJECTION]:new n({value:r.HF.PROJECTION,dataSource:o.Y.NAVIGATOR_PROJECTION,label:"Projection",icon:"table-columns",img:"/@addepar/widgets/img/widget-library-icons/projection-table-25161f53b89837c47646f54cd1001e39.svg",lightIcon:"widget-icon-projection-table-themeLight",darkIcon:"widget-icon-projection-table-themeDark",requiredPermissions:["hasNavigator"]}),[r.HF.TRANSACTION]:new n({value:r.HF.TRANSACTION,dataSource:o.Y.ADDEPAR_TRANSACTION,label:"Transaction",icon:"table-cells",img:"/@addepar/widgets/img/widget-library-icons/transaction-table-36552ad51096dd1360b4e5874df0448a.svg",lightIcon:"widget-icon-transaction-table-themeLight",darkIcon:"widget-icon-transaction-table-themeDark",disabled:!1,requiredPermissions:["hasViewTransactions"]}),[r.$Z.BETA_WATERFALL_TYPE]:new n({value:r.$Z.BETA_WATERFALL_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Waterfall",icon:"chart-waterfall",img:"/@addepar/widgets/img/widget-library-icons/waterfall-chart-85ce6220938432b16b23b7518f25eaa3.svg",lightIcon:"widget-icon-waterfall-chart-themeLight",darkIcon:"widget-icon-waterfall-chart-themeDark"}),[r.qL.TEXT]:new n({value:r.qL.TEXT,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Text",icon:"text",img:"/@addepar/widgets/img/widget-library-icons/text-b3d84e47577855ce4afd3863c29b3e78.svg",lightIcon:"text",darkIcon:"text"}),[r.qL.NUMBER]:new n({value:r.qL.NUMBER,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Number",icon:"chart-number-regular",img:"/@addepar/widgets/img/widget-library-icons/number-3fb0356423dd230e8ca6eea44005fe8b.svg",lightIcon:"widget-icon-number-themeLight",darkIcon:"widget-icon-number-themeDark"}),[r.$Z.GAUGE_TYPE]:new n({value:r.$Z.GAUGE_TYPE,dataSource:o.w.EMONEY,label:"Gauge",icon:"chart-gauge",img:"",lightIcon:"chart-gauge",darkIcon:"chart-gauge",hidden:!0}),[r.$Z.BETA_PIE_TYPE]:new n({value:r.$Z.BETA_PIE_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Pie/donut",icon:"chart-pie-simple",img:"/@addepar/widgets/img/widget-library-icons/pie-chart-7033e5331bb194fc0debe61c87c3c88f.svg",lightIcon:"widget-icon-pie-donut-chart-themeLight",darkIcon:"widget-icon-pie-donut-chart-themeDark"}),[r.$Z.BETA_BAR_TYPE]:new n({value:r.$Z.BETA_BAR_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Bar",icon:"chart-column",img:"/@addepar/widgets/img/widget-library-icons/bar-chart-8a8bd85901eab59c447769941e64f7e8.svg",lightIcon:"widget-icon-bar-chart-themeLight",darkIcon:"widget-icon-bar-chart-themeDark"}
1),[r.$Z.BETA_LINE_TYPE]:new n({value:r.$Z.BETA_LINE_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Time series",icon:"chart-line",img:"/@addepar/widgets/img/widget-library-icons/line-chart-07e05bec3a452115fc6cfe1076514aa7.svg",lightIcon:"widget-icon-time-series-chart-themeLight",darkIcon:"widget-icon-time-series-chart-themeDark"}),[r.$Z.BETA_AREA_TYPE]:new n({value:r.$Z.BETA_AREA_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Area",icon:"chart-area",img:"/@addepar/widgets/img/widget-library-icons/area-chart-e379a771b4ce6dcdaa4447649c5f7580.svg",lightIcon:"widget-icon-area-chart-themeLight",darkIcon:"widget-icon-area-chart-themeDark"}),[r.$Z.BETA_SCATTER_TYPE]:new n({value:r.$Z.BETA_SCATTER_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Scatter",icon:"chart-scatter",img:"/@addepar/widgets/img/widget-library-icons/scatter-chart-37ba92acb2f0226b0e49549dace252b9.svg",lightIcon:"widget-icon-scatter-chart-themeLight",darkIcon:"widget-icon-scatter-chart-themeDark"}),[r.$Z.BETA_BOXPLOT_TYPE]:new n({value:r.$Z.BETA_BOXPLOT_TYPE,dataSource:o.Y.ADDEPAR_PORTFOLIO,label:"Boxplot",icon:"chart-line",img:"/@addepar/widgets/img/widget-library-icons/line-chart-07e05bec3a452115fc6cfe1076514aa7.svg",lightIcon:"widget-icon-boxplot-chart-themeLight",darkIcon:"widget-icon-boxplot-chart-themeDark"}),[r.$Z.PROJECTION_CHART_TYPE]:new n({value:r.$Z.PROJECTION_CHART_TYPE,dataSource:o.Y.NAVIGATOR_PROJECTION,label:"Projection",icon:"chart-line-up",img:"/@addepar/widgets/img/widget-library-icons/projection-chart-43fb7983aa4298bebbe8709f70bd56e3.svg",lightIcon:"widget-icon-projection-chart-themeLight",darkIcon:"widget-icon-projection-chart-themeDark",requiredPermissions:["hasNavigator"]}),[r.HF.BILLING_RATE]:new n({value:r.HF.BILLING_RATE,dataSource:o.Y.BILLING_RATE_TIER,label:"Billing Rate",icon:"table",img:"",lightIcon:"",darkIcon:"",hidden:!0,configDefaults:{data:{period:{type:"current_time_period"},fee_rule_filter_ids:[],filters:[]}}}),[r.sX.ADDISON_COMPONENT]:new n({value:r.sX.ADDISON_COMPONENT,dataSource:o.Y.SELF_MANAGED,label:"Addison Insights",icon:"addison-logo_solid",img:"",lightIcon:"memo",darkIcon:"memo",tooltip:"Get timely, automated insights with a daily brief from Addison."})}),c=Object.freeze(Object.values(u).filter(e=>s.has(e.value))),d=Object.freeze(Object.values(u).filter(e=>l.has(e.value)));i.d(t,["Jl",0,u,"kY",0,c,"yx",0,d])},305563(e,t,i){i.d(t,{Ss:()=>l,gy:()=>n,q7:()=>s});var r=i(873771),o=i(125575),a=i(496314);function n(e){if((0,r.A)(e))return[];let t=[];return(0,o.F)(e,{getChildren:e=>e.children||[],visitNode:e=>{t.push(e)}}),t.forEach((e,t)=>e.rowIndex=t),t[0].groupLevel=0,t.forEach(e=>{let t=e.children||[];t.forEach(t=>{t.groupLevel=e.groupLevel+1}),e.childrenIndex=t.map(e=>e.rowIndex),delete e.children,delete e.rowIndex}),t}function s(e){return(0,a.isEmpty)(e)?[]:(e.forEach(t=>{let i=t.get("childrenIndex").map(t=>e.at(t)),r=t.get("depth")+1;i.forEach(e=>{e.setProperties({parent:t,depth:r})}),t.set("children",i)}),e)}function l(e,t){if((0,a.isEmpty)(e))return[];let i=[];return(0,o.F)(t,{getChildren:e=>e.get("isCollapsed")?[]:e.get("children")||[],visitNode:e=>{i.push(e)}}),i.shift(),i}},52771(e,t,i){i.d(t,{T:()=>a,v:()=>o});var r=i(582355);async function o(e){let t=JSON.stringify(e),i=new Blob([t]).stream().pipeThrough(new CompressionStream("gzip")),o=await(0,r.YZ)(n(i)),a="";for(let e of o)a+=String.fromCharCode(e);return btoa(a)}async function a(e){try{return await async function(e){try{let t=atob(e),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);let o=new Blob([i]).stream().pipeThrough(new DecompressionStream("gzip")),a=await(0,r.YZ)(n(o)),s=(new TextDecoder).decode(a);return JSON.parse(s)}catch(e){let t=e instanceof Error?e.message:String(e);throw new Error(`Failed to decompress link-to-source data: ${t}`)}}(e)}catch{return JSON.parse(atob(e))}}async function n(e){let t=[],i=0,r=e.getReader();try{let e=await r.read();for(;!e.done;)e.value&&(t.push(e.value),i+=e.value.length),e=await r.read()}finally{r.releaseLock()}let o=new Uint8Array(i),a=0;for(let e of t)o.set(e,a),a+=e.length;return o}},33182(e,t,i){i.d(t,{A:()=>d});var r,o,a,n,s=i(279564),l=i(943910);function u(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function c(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let d=(r=class e{constructor(e){u(this,"date",o,this),u(this,"value",a,this),u(this,"weight",n,this),this.date=e.date??null,this.value=e.value,this.weight=e.weight}get(e){return(0,l.get)(this,e)}serialize(){return{date:this.date,value:this.value,weight:this.weight}}static create(t){return new e(t)}},o=c(r.prototype,"date",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=c(r.prototype,"value",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=c(r.prototype,"weight",[s.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},666035(e,t,i){i.d(t,{Ay:()=>s}),i(44384);var r=i(767981);function o(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let a=function(e){return e.Percent="percent",e.Number="number",e.Money="money",e}({}),n=function(e){return e.Hundreds="hundreds",e.Thousands="thousands",e.Millions="millions",e.Billions="billions",e.Trillions="trillions",e}({});class s{constructor(e,t){o(this,"_currVal",void 0),o(this,"_origVal",void 0),e.type,this._currVal=e,this._origVal=t}get currentValue(){return this._currVal}get originalValue(){return this._origVal}get absoluteDelta(){if(this.currentValue&&this.originalValue){let e=this.computeAbsoluteDelta(this.currentValue.value,this.originalValue.value),t=this.currentValue.currency,i=t?{value:e,currency:t}:{value:e};return new(this.currentValue.constructor??r.Po)(i)}return null}get relativeDelta(){if(this.currentValue&&this.originalValue){let e=this.computeRelativeDelta(this.currentValue.value,this.originalValue.value);if("number"==typeof e)return r.t.create({value:e})}return null}computeAbsoluteDelta(e,t){return e-t}computeRelativeDelta(e,t){return 0===e&&0===t?0:0!==t?(e-t)/Math.abs(t):null}static buildFormat(e){let t=e.type,i=e.valueScale,r=e.valueDecimals,o="0,0";if(r&&(o=`${o}.${"0".repeat(r)}`),t===a.Percent)return o=`${o}%`,o;
1if(t===a.Money&&(o=`$${o}`),i)switch(i){case n.Hundreds:o=`${o} aC`;break;case n.Thousands:o=`${o} aK`;break;case n.Millions:o=`${o} aM`;break;case n.Billions:o=`${o} aB`;break;case n.Trillions:o=`${o} aT`}return o}}},361857(e,t,i){i.d(t,{$R:()=>n,SN:()=>p,Vj:()=>d,dW:()=>u,nl:()=>l,nt:()=>a,nx:()=>c,s2:()=>h,wc:()=>m});var r=i(734138),o=i(496314);let a=function(e){return e[e.NONE=0]="NONE",e[e.ARRAYS_NONE_AND_EMPTY_ARE_THE_SAME=1]="ARRAYS_NONE_AND_EMPTY_ARE_THE_SAME",e[e.ARRAYS_COMPARE_FIRST_ITEM_ONLY_NO_SORT=2]="ARRAYS_COMPARE_FIRST_ITEM_ONLY_NO_SORT",e}({});function n(e){return!(0,o.isNone)(e)&&"object"==typeof e&&"equals"in e&&"function"==typeof e.equals}function s(e){return(0,r.isArray)(e)&&e.length<1}function l(e,t){return(0,o.isNone)(e)?(0,o.isNone)(t):!(0,o.isNone)(t)&&null}function u(e,t,i){let r=(0,o.isNone)(e),n=(0,o.isNone)(t);return i&a.ARRAYS_NONE_AND_EMPTY_ARE_THE_SAME&&(r||(r=s(e)),n||(n=s(t))),r?n:!n&&null}function c(e,t){return l(e,t)??e===t}function d(e,t){let i=(0,o.isNone)(e)||(0,o.isNone)(e.currency)&&(0,o.isNone)(e.value),r=(0,o.isNone)(t)||(0,o.isNone)(t.currency)&&(0,o.isNone)(t.value);return i?r:!(r||!c(e.value,t.value)||0!==e.value&&((0,o.isNone)(e.currency)||(0,o.isNone)(t.currency)||e.currency!==t.currency))}function p(e,t){return l(e,t)??(c(e.comment,t.comment)&&d(e.amount,t.amount))}function h(e,t){return l(e,t)??(c(e.color,t.color)&&c(e.name,t.name))}function m(e,t){return l(e,t)??c(e.id,t.id)}const g=Object.freeze({money_value:d,fee_adjustment:p,icon:h,financial_entity_value:m,derivative_underlying_asset:m,billing_schedule:m});i.d(t,["PU",0,g])},767981(e,t,i){i.d(t,{Iu:()=>ge.A,NV:()=>Ye,Po:()=>De,S8:()=>xe,T3:()=>He,Tk:()=>Me,WF:()=>Ce,c_:()=>Ge,py:()=>Te,sj:()=>Ke,t:()=>Pe});var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T,C,S,R,D,O,E,F,P,x,N,z,I,M,k,L,j,V,B,q,H,U,G,W,$,Y,K,Q,X,Z=i(46457),J=i.n(Z),ee=i(279564),te=i(943910),ie=i(640626),re=i(734138),oe=i(496314),ae=(i(44384),i(716497)),ne=i(105020),se=i(253082),le=i(299562),ue=i.n(le),ce=i(845393),de=i(634512),pe=i(987456),he=i(18290),me=i(29934),ge=i(33182),fe=i(555546),ye=i(465103),be=i(361857),ve=i(753804);function we(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function _e(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ae(e,t,i,r,o){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),o&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(o):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(e,t,a),null):a}let Te=(r=(0,ie.readOnly)("params.display_string"),o=(0,ie.readOnly)("params.held_for_short_period"),a=(0,ie.readOnly)("params.deannualized_figure"),n=(0,ie.readOnly)("params.derived_tx"),s=(0,ie.readOnly)("params.estimated_returns"),l=(0,ie.readOnly)("params.benchmark_proxy"),u=(0,ie.readOnly)("params.notional_value"),c=(0,ie.readOnly)("params.hidden"),d=(0,ie.readOnly)("params.primitiveId"),p=(0,ie.readOnly)("params.factor"),h=(0,ie.readOnly)("params.is_time_series"),m=(0,ie.readOnly)("params.error_message"),g=(0,ie.readOnly)("params.links"),f=class e{constructor(e){we(this,"_value",y,this),we(this,"_type",b,this),we(this,"_cachedValue",v,this),we(this,"_status",w,this),we(this,"display_string",_,this),we(this,"isHeldForShortPeriod",A,this),we(this,"isDeannualizedFigure",T,this),we(this,"hasDerivedTx",C,this),we(this,"usesEstimatedReturns",S,this),we(this,"usesBenchmarkProxy",R,this),we(this,"usesNotionalValue",D,this),we(this,"isHidden",O,this),we(this,"primitiveId",E,this),we(this,"factor",F,this),we(this,"_isTimeSeries",P,this),we(this,"error_message",x,this),we(this,"links",N,this),this.params=e,this._type=e?.type??null,this.initializeValue(),this._cachedValue=this._value,this._status=e?.
1status??"success"}get defaultValue(){return null}get nullValue(){return null}get isValid(){return"success"===this._status}get isNoData(){return"no_data"===this._status}get isNotApplicable(){return"not_applicable"===this._status}get isPending(){return"pending"===this._status}get value(){return this._value}set value(e){this._value=e}get cachedValue(){return this._cachedValue}get status(){return this._status}set status(e){this._status=e}get type(){return this._type}set type(e){this._type=e}get displayName(){return this.isValid&&"-"!==this._value?this.toDisplayString(this._value):"-"}set displayName(e){this._value=this.fromDisplayString(e)}get sortKey(){return this.value}get isTimeSeries(){return!0===this._isTimeSeries}get hasValueChanged(){return!(0,ne.A)(this._cachedValue,this._value)}get(e){return(0,te.get)(this,e)}set(e,t){(0,te.set)(this,e,t)}initializeValue(){this._value=void 0===this.params?.value?this.defaultValue:this.params.value}resetCachedValue(){this._cachedValue=this._value}rollbackValue(){this._value=this._cachedValue}equals(e,t){return(0,be.dW)(this.value,e.value,t)??this.equalsExistingValue(e,t)}equalsExistingValue(e,t){return(0,re.isArray)(this.value)?this.equalsExistingArrayValue(e,t):this.equalsExistingSingleValue(e,t)}equalsExistingSingleValue(e,t){return this.value===e.value}equalsExistingArrayValue(e,t){let i=this.value;if(!(0,re.isArray)(e.value))return!1;let r=e.value;if(t&be.nt.ARRAYS_COMPARE_FIRST_ITEM_ONLY_NO_SORT)return(0,be.nx)(i[0],r[0]);if(i.length!==r.length)return!1;for(let e=0;e<i.length;++e)if(!(0,be.nx)(i[e],r[e]))return!1;return!0}fromDisplayString(e){return e}toDisplayString(e){let t=this.display_string||e;return(0,oe.isNone)(t)?"":String(t)}serialize(){return{value:this.value,type:this.type}}static create(t){return new e(t)}},y=Ae(f.prototype,"_value",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=Ae(f.prototype,"_type",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=Ae(f.prototype,"_cachedValue",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=Ae(f.prototype,"_status",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=Ae(f.prototype,"display_string",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=Ae(f.prototype,"isHeldForShortPeriod",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=Ae(f.prototype,"isDeannualizedFigure",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=Ae(f.prototype,"hasDerivedTx",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=Ae(f.prototype,"usesEstimatedReturns",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=Ae(f.prototype,"usesBenchmarkProxy",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=Ae(f.prototype,"usesNotionalValue",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=Ae(f.prototype,"isHidden",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=Ae(f.prototype,"primitiveId",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=Ae(f.prototype,"factor",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=Ae(f.prototype,"_isTimeSeries",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=Ae(f.prototype,"error_message",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=Ae(f.prototype,"links",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f);function Ce(e,t,i=be.nt.NONE){return e.type===t.type&&e.equals(t,i)}class Se extends Te{constructor(e){super(e),_e(this,"_type","icon"),_e(this,"name",void 0),_e(this,"color",void 0),this.params=e,this.name=e.name,this.color=e.color}equals(e){return(0,be.s2)(this.value,e.value)}}class Re extends Te{constructor(...e){super(...e),_e(this,"_type","period")}get defaultValue(){return"P1Y"}toDisplayString(e){if(!e)return"";let t=(0,he.P1)(e);if(null===t)throw new TypeError(`[${this.constructor.name}] The given value is not a valid interval`);let i=he.pH.find(({value:e})=>e===t[2]?.toUpperCase()),r=i.displayName;return`${t[1]} ${r}`}static create(e){return new Re(e)}}let De=(z=class e extends Te{constructor(e){super(e),we(this,"_value",I,this),this.params=e}get defaultValue(){return 0}get value(){return this._value}set value(e){this._value=e}get decimals(){return this.params?.decimals}get isValid(){return(null===this.status||"success"===this.status)&&((0,re.isArray)(this.value)?this.value.every(e=>isFinite(e)):isFinite(this.value))}get numericValue(){return this.isValid?this.value:0}fromDisplayString(e){return Number(e)}formatSingleNumber(e){return(0,ce.go)((0,ce.HY)(e,Object.prototype.hasOwnProperty.call(this.params,"decimals")?this.params?.decimals:2))}toDisplayString(e){return(0,oe.isNone)(e)?"":(0,re.isArray)(e)?this.value.map(e=>this.formatSingleNumber(e)).join(", "):this.formatSingleNumber(e)}static create(t){return new e(t)}},I=Ae(z.prototype,"_value",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z);class Oe extends Te{constructor(e){super(e),_e(this,"isEffectiveDate",!1),this.params=e}get defaultValue(){return J()().format(pe.g$)}equalsExistingSingleValue(e){return J()(this.value).isSame(e.value)}get dateDisplayFormat(){let e=this.params?.date_format;return e?pe.m2[e]??pe.jq:pe.jq}fromDisplayString(e){return this.isEffectiveDate&&e===fe.FD?e:J()(e).isValid()?pe.Yq(e,pe.g$):null}toDisplayString(e){if(this.isEffectiveDate&&e===fe.FD)return e;if(!e||!J()(e).isValid())return"";let t=this.dateDisplayFormat;return pe.Yq(e,t)}static create(e){return new Oe(e)}}class Ee extends Oe{constructor(...e){super(...e),_e(this,"_type","effective_date"),_e(this,"isEffectiveDate",!0)}get defaultValue(){return null}equalsExistingSingleValue(e){let t=this.isEffectiveDate&&(0,be.nx)(this.value,fe.FD),i=e.isEffectiveDate&&(0,be.nx)(e.value,fe.FD);return t?i:!i&&super.equalsExistingSingleValue(e)}static create(e){return new Ee(e)}}class Fe extends Te{constructor(...e){super(...e),_e(this,"_type","year")}static create(e){return new Fe(e)}}class Pe extends De{constructor(...e){super(...e),_e(this,"_type","percent")}get defaultValue(){return null}get isNegative(){return this.value<0}get isValid(){return isFinite(Number(this.value))}fromDisplayString(e){let t=e.replace(/%/g,"").replace(")","").replace("(","-");return.01*Number(t)}toDisplayString(e){return(0,ce.go)((0,ce.l9)(e,this.params?.decimals))}static create(e){return new Pe(e)}}let xe=(M=class e extends De{constructor(e){super(e),_e(this,"_type","money"),we(this,"_currency",k,this),this.params=e,this._currency=(0,oe.isNone)(e.currency)?"USD":e.currency.toUpperCase()}get defaultValue(){return{value:0,currency:"USD"}}
1get nullValue(){return{value:null,currency:null}}equals(){throw new Error('"money" is a legacy type and has no support for Equatable')}get currency(){return this._currency}set currency(e){this._currency=e}get isValid(){return(null===this.status||"success"===this.status)&&("number"!=typeof this._value||isFinite(this._value))}get numericValue(){let e=Number(this._value);return isNaN(e)?this.defaultValue.value:e}fromDisplayString(e){return ue()(e).value()}toDisplayString(e){return(0,ce.up)(e,this.currency,Object.prototype.hasOwnProperty.call(this.params,"decimals")?this.params?.decimals:0)}serialize(){return{...super.serialize(),currency:this.currency}}static create(t){return new e(t)}},k=Ae(M.prototype,"_currency",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M),Ne=(L=class e extends De{constructor(e){super(e),_e(this,"_type","underlying_value"),we(this,"_currency",j,this),we(this,"_quoteCurrency",V,this),this.params=e,this._currency=e.currency?.toUpperCase(),this._quoteCurrency=e.quote_currency?.toUpperCase()}get defaultValue(){return{value:0,currency:void 0,quote_currency:void 0}}get nullValue(){return{value:null,currency:null,quote_currency:null}}get currency(){return this._currency}set currency(e){this._currency=e?.toUpperCase()}get quoteCurrency(){return this._quoteCurrency}set quoteCurrency(e){this._quoteCurrency=e?.toUpperCase()}get isValid(){return(null===this.status||"success"===this.status)&&("number"!=typeof this._value||isFinite(this._value))}get numericValue(){return"number"==typeof this._value?isNaN(this._value)?this.defaultValue.value:this._value:this._value&&"number"==typeof this._value.value?isNaN(this._value.value)?this.defaultValue.value:this._value.value:this.defaultValue.value}fromDisplayString(e){return ue()(e).value()}toDisplayString(e){let t="number"==typeof e?e:e?.value??0,i=this.currency,r=this.quoteCurrency,o=Object.prototype.hasOwnProperty.call(this.params,"decimals")?this.params?.decimals??2:2,a=`(0,0.${Array(o+1).join("0")})`;return(0,de.Fl)(t,"underlying_value",a,i,r)}serialize(){return{...super.serialize(),currency:this.currency,quote_currency:this.quoteCurrency}}static create(t){return new e(t)}},j=Ae(L.prototype,"_currency",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=Ae(L.prototype,"_quoteCurrency",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L);class ze extends De{constructor(...e){super(...e),_e(this,"_type","money_value")}get defaultValue(){return{value:100,currency:"USD"}}get isValid(){return!0}get currency(){return this.value.currency.toUpperCase()}set currency(e){let t=this.value.value;this._value={currency:e.toUpperCase(),value:t}}equals(e){return(0,be.Vj)(this.value,e.value)}fromDisplayString(e){return{value:ue()(e).value(),currency:this.currency}}toDisplayString(e){return(0,ce.up)(e.value,this.currency,Object.prototype.hasOwnProperty.call(this.params,"decimals")?this.params?.decimals:0)}static create(e){return new ze(e)}}class Ie extends Te{constructor(e){super(e),_e(this,"currency",void 0),_e(this,"_type","daily_time_series"),this.currency=e.currency??"USD"}get isTimeSeries(){return!0}equalsExistingSingleValue(e){return(0,be.nx)(this.currency,e.currency)&&(0,be.nx)(this.value,e.value)}fromDisplayString(e){return Number(e.slice(1))}toDisplayString(e){return(0,ce.up)(e,this.currency,0)}static create(e){return new Ie(e)}}let Me=(B=(0,te.computed)("_value.[]"),q=class e extends Te{constructor(e){super(e),we(this,"_value",H,this),_e(this,"_type","benchmark_list"),_e(this,"currency","USD"),this.params=e,this.resetCachedValue()}get defaultValue(){return new e({value:[],type:"benchmark_list"})}get nullValue(){return this.defaultValue}get isValueError(){return(0,oe.isEmpty)(this._value)}get hasValueChanged(){let e=this._cachedValue.map(e=>e.id).map(String).sort(),t=this._value.map(e=>e.id).map(String).sort();return!(0,ne.A)(e,t)}initializeValue(){this._value=this.params.value??[]}equalsExistingArrayValue(e,t){if(this.currency===e.currency){if(t&be.nt.ARRAYS_COMPARE_FIRST_ITEM_ONLY_NO_SORT)return(0,be.nx)(this.value[0]?.id,e.value[0]?.id);if(this.value.length!==e.value.length)return!1;let i=this.value.map(e=>e.id);i.sort();let r=e.value.map(e=>e.id);return r.sort(),i.every((e,t)=>(0,be.nx)(e,r[t]))}return!1}toDisplayString(e){return(0,oe.isNone)(e)?"":e.map(e=>e.displayName||e.display_name).join(", ")}resetCachedValue(){this._cachedValue=Array.isArray(this.value)?[...this.value]:[]}serialize(){if(!(0,re.isArray)(this.value))throw new TypeError("`this.value` is not an array, meaning changes on UI have not been saved yet");
1return{type:this.type,value:this.value.map(e=>"function"==typeof e.serialize?e.serialize({includeId:!0}):(0,ye.H)(e))}}static create(t){return new e(t)}},H=Ae(q.prototype,"_value",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae(q.prototype,"isValueError",[B],Object.getOwnPropertyDescriptor(q.prototype,"isValueError"),q.prototype),q);class ke extends Te{constructor(...e){super(...e),_e(this,"currency","USD")}get sortKey(){return this.displayName}equalsExistingSingleValue(e){return(0,be.nx)(this.currency,e.currency)&&(0,be.nx)(this.value.display_name,e.value.display_name)}toDisplayString(e){return e.display_name}static create(e){return new ke(e)}}class Le extends Te{equals(e){return(0,be.wc)(this.value,e.value)}toDisplayString(e){return"string"==typeof e?.displayName?e.displayName:"string"==typeof e?.display_name?e.display_name:""}static create(e){return new Le(e)}}class je extends Te{constructor(e){super(e),_e(this,"possibleValues",void 0),this.params=e,this.possibleValues=e.possibleValues}equalsExistingSingleValue(e,t){return(0,be.$R)(this.value)?this.value.equals(e.value,t):(0,ne.A)(this.value,e.value)}fromDisplayString(e){if("array"===(0,oe.typeOf)(this.possibleValues)&&this.possibleValues.length>0){let t=this.possibleValues,i=t[0];if("object"===(0,oe.typeOf)(i)&&"value"in i)return t.find(({value:t})=>t===e)??null}return null}toDisplayString(e){return"object"===(0,oe.typeOf)(e)&&"displayName"in e?e.displayName:this.params.display_name??String(e)}static create(e){return new je(e)}}class Ve extends Te{constructor(...e){super(...e),_e(this,"_type","boolean")}get defaultValue(){return!1}get nullValue(){return null}toDisplayString(e){return e?"Yes":"No"}static create(e){return new Ve(e)}}function Be(e){return(0,oe.isNone)(e)||(0,oe.isNone)(e.id)&&(0,oe.isNone)(e.callableType)&&(0,oe.isNone)(e.redemptionSchedule)}let qe=(U=(0,te.computed)("_value.{callableType.value,redemptionSchedule}","today"),G=class e extends Te{constructor(e){super(e),_e(this,"_type","redemption_call_info"),this.params=e}get value(){return this._value}set value(e){this._value=e}get today(){return J()(this.params?.today)??J()().startOf("day")}get redemptionScheduleDisplayName(){switch(this._value.callableType?.value){case fe.V.CALLABLE:return function(e,t){if((0,oe.isNone)(e)||(0,oe.isEmpty)(e.records))return"No schedule entered";let i=J()(t);(0,oe.isEmpty)(e.notificationMinDays)?i.add(1,"day"):i.add(e.notificationMinDays,"days");let r=e.records,o=(0,ae.A)(r,function(e){return i<=J()(e.endDate)});if(o<0)return"Final call date has passed";let a=r[o],n=J().max(i,J()(a.startDate)),s=a.price;return`Next callable at ${(0,ce.l9)(s,0,2)} of par on ${pe.Yq(n)}`}(this._value.redemptionSchedule,this.today);case fe.V.NOT_CALLABLE:default:return""}}get defaultValue(){return{id:null,callableType:null}}get nullValue(){return this.defaultValue}get hasValueChanged(){if(!(0,ne.A)((0,se.A)(this._cachedValue,"redemptionSchedule"),(0,se.A)(this._value,"redemptionSchedule")))return!0;if((0,oe.isNone)(this._cachedValue.redemptionSchedule)||(0,oe.isNone)(this._value.redemptionSchedule))return this._cachedValue.redemptionSchedule!==this._value.redemptionSchedule;if(!(0,ne.A)((0,se.A)(this._cachedValue.redemptionSchedule,"records"),(0,se.A)(this._value.redemptionSchedule,"records")))return!0;let e=[...this._cachedValue.redemptionSchedule.records].sort((e,t)=>e.startDate.localeCompare(t.startDate)),t=[...this._value.redemptionSchedule.records].sort((e,t)=>e.startDate.localeCompare(t.startDate));return!(0,ne.A)(e,t)}static convertRecordDates(e){return{startDate:J()(e.startDate),endDate:J()(e.endDate),price:e.price}}equals(e,t){let i=this.value,r=e.value,o=Be(i),a=Be(r);return o?a:!a&&(0,be.nx)(i.id,r.id)&&(0,be.nx)(i.callableType?.value,r.callableType?.value)&&this.equalSchedules(i.redemptionSchedule,r.redemptionSchedule,t)}equalSchedules(t,i,r){if((0,oe.isNone)(t))return(0,oe.isNone)(i);if((0,oe.isNone)(i))return!1;if(t.id===i.id&&(0,be.nx)(t.notificationMaxDays,i.notificationMaxDays)&&(0,be.nx)(t.notificationMinDays,i.notificationMinDays)){let o=(0,be.dW)(t.records,i.records,r);if(null!==o)return o;let a=!!(r&be.nt.ARRAYS_COMPARE_FIRST_ITEM_ONLY_NO_SORT);if(!a&&t.records.length!==i.records.length)return!1;let n=t.records.map(e.convertRecordDates),s=i.records.map(e.convertRecordDates);return a?this.equalScheduleRecords(n[0],s[0]):(n.sort((e,t)=>
1e.startDate.diff(t.startDate)),s.sort((e,t)=>e.startDate.diff(t.startDate)),n.every((e,t)=>this.equalScheduleRecords(e,s[t])))}return!1}equalScheduleRecords(e,t){return e.price===t.price&&e.startDate.isSame(t.startDate)&&e.endDate.isSame(t.endDate)}toDisplayString(e){if((0,oe.isNone)(e)||(0,oe.isNone)(e.callableType))return"";let t=e.callableType.displayName,i=this.redemptionScheduleDisplayName;if(new RegExp(t,"i").test(i))return i;switch(e.callableType.value){case fe.V.CALLABLE:return`${t}, ${i.charAt(0).toLowerCase()+i.slice(1)}`;case fe.V.NOT_CALLABLE:return t;default:return""}}static create(t){return new e(t)}},Ae(G.prototype,"redemptionScheduleDisplayName",[U],Object.getOwnPropertyDescriptor(G.prototype,"redemptionScheduleDisplayName"),G.prototype),G),He=(W=(0,te.computed)("value.isValueError"),Ae(($=class extends ge.A{get isError(){return this.value.isValueError}serialize(){return{date:this.date,value:this.value.serialize().value,weight:this.weight}}}).prototype,"isError",[W],Object.getOwnPropertyDescriptor($.prototype,"isError"),$.prototype),$);class Ue{constructor(e,t,i,r){this.date=e,this.value=t,this.weight=i,this.customValueEqualityFn=r}equals(e,t){return((0,be.nl)(this.date,e.date)??this.date.isSame(e.date))&&(0,be.nx)(this.weight,e.weight)&&this.equalValues(this.value,e.value,t)}equalValues(e,t,i){if(this.customValueEqualityFn)return this.customValueEqualityFn(e,t,i);let r=(0,be.nl)(e,t);return null!==r?r:(0,be.$R)(e)?e.equals(t,i):(0,ne.A)(e,t)}}let Ge=(Y=(0,te.computed)("_value.@each.{value,date,weight}"),K=(0,te.computed)("[email protected]"),Q=class e extends Te{constructor(e){super(e),_e(this,"_type","timebox"),_e(this,"inner",void 0),we(this,"_value",X,this),_e(this,"cloneBenchmarkDateValueWeight",e=>e.map(e=>{let{value:t}=e.value,i={date:e.date,weight:e.weight,value:new Me({value:Array.isArray(t)?[...t]:[]})};return new He(i)})),this.params=e,this.inner=e.inner,this._value=e.value?.map(t=>{if("benchmark_list"===e.inner){let e=t instanceof He?t.serialize():t;return new He({...e,value:new Me({value:e.value.map(e=>(Object.keys(e).forEach(t=>{let i=(0,ve.PT)(t);i!==t&&(e[i]=e[t],delete e[t])}),e))})})}return t instanceof ge.A?t:new ge.A(t)})??Array(),this.resetCachedValue()}get value(){return this._value}set value(e){this._value=e}get decimals(){return this.params.decimals}get displayName(){return this.isTimeSeries?this.value.filter(({date:e})=>null!==e).map(e=>[pe.Yq(e.date,pe.jq),Ye({value:e.value,type:this.inner},this.inner).displayName].join(" ")).join(", "):this.hasWeightedValue?(e=this.latestDateValueWeightPairs,t=this.inner,e.map(e=>`${Ye({value:e.value,type:t},t,void 0,void 0).displayName} ${me.A.standardize(100*e.weight)}%`).join(", ")):function(e,t,i){let r;r=1===e.length?"":` as of ${Ye({value:e.at(-1)?.date,type:"date"},"date").displayName}`;let o={};return(0,oe.isNone)(i)||(o[t]={decimals:i}),Ye({value:e.at(-1)?.value,type:t},t,o).displayName+r}(this.value,this.inner,this.decimals);var e,t}get defaultValue(){let e=Ye({type:t=this.params.inner},t,void 0,void 0).defaultValue;var t;return["benchmark_list"===this.params.inner?new He({value:e,date:null,weight:1}):new ge.A({value:e,date:null,weight:1})]}get nullValue(){let e=Ke(this.params.inner);return["benchmark_list"===this.params.inner?new He({value:e,date:null,weight:1}):new ge.A({value:e,date:null,weight:1})]}get isTimeSeries(){return"fee_adjustment"===this.params.inner}get latestDateValueWeightPairs(){let{latestDate:e,_value:t}=this;return(0,oe.isNone)(e)?t:t.filter(t=>t.date===e)}get latestDate(){return this._value.reduce((e,t)=>(0,oe.isNone)(t.date)?e:(0,oe.isNone)(e)||J()(t.date).isAfter(e)?t.date:e,null)}get hasMultipleValuesOnSameDay(){let e=this.value.reduce((e,t)=>{let i=e.get(t.date);return(0,oe.isNone)(i)?e.set(t.date,1):e.set(t.date,i+1),e},new Map);return Array.from(e.values()).some(e=>e>1)}get hasWeightsThatAreNotOne(){return this.value.some(e=>!(0,oe.isNone)(e.weight)&&1!==e.weight)}get hasWeightedValue(){return this.hasMultipleValuesOnSameDay||this.hasWeightsThatAreNotOne}get hasValueChanged(){let e=[...this._cachedValue].map(e=>e.serialize()).sort((e,t)=>
1(e.date??"").localeCompare(t.date??"")),t=[...this._value].map(e=>e.serialize()).sort((e,t)=>(e.date??"").localeCompare(t.date??""));if(!(0,ne.A)(e.map(e=>(0,se.A)(e,"value")),t.map(e=>(0,se.A)(e,"value"))))return!0;if("benchmark_list"===this.params.inner)return this._value.some(({value:e})=>e.hasValueChanged);{let e=this._cachedValue.map(e=>e.value),t=this._value.map(e=>e.value);return e.some((e,i)=>{let r=t[i];return!(0,ne.A)(e,r)})}}convertTimeboxItem(e,t){let i=(0,oe.isNone)(e.date)?null:J()(e.date);return new Ue(i,e.value,e.weight,t)}equals(e,t){let i=e;if(this.inner!==i.inner)return!1;let r=(0,be.dW)(this.value,i.value,t);if(null!==r)return r;let o=!!(t&be.nt.ARRAYS_COMPARE_FIRST_ITEM_ONLY_NO_SORT);if(!o&&this.value.length!==i.value.length)return!1;let a=be.PU[this.inner],n=this.value.map(e=>this.convertTimeboxItem(e,a)),s=i.value.map(e=>this.convertTimeboxItem(e,a));if(o)return n[0].equals(s[0],t);let l=J()({year:1,month:1,day:1});return n.sort((e,t)=>(e.date??l).diff(t.date??l)),s.sort((e,t)=>(e.date??l).diff(t.date??l)),n.every((e,i)=>e.equals(s[i],t))}resetCachedValue(){"benchmark_list"===this.params.inner?(this._value.forEach(e=>{e.value.resetCachedValue()}),this._cachedValue=this.cloneBenchmarkDateValueWeight(this._value)):this._cachedValue=this._value.map(e=>new ge.A(e.serialize()))}rollbackValue(){"benchmark_list"===this.params.inner?this._value=this.cloneBenchmarkDateValueWeight(this._cachedValue):super.rollbackValue()}serialize(){return{type:this.type,value:this.value.map(e=>{let{value:t}=e,i=[];return t&&"benchmark_list"===this.params.inner&&(i=t.serialize().value),{value:(0,oe.isEmpty)(i)?t:i,date:e.date,weight:e.weight}})}}static create(t){return new e(t)}},X=Ae(Q.prototype,"_value",[ee.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae(Q.prototype,"latestDateValueWeightPairs",[Y],Object.getOwnPropertyDescriptor(Q.prototype,"latestDateValueWeightPairs"),Q.prototype),Ae(Q.prototype,"latestDate",[K],Object.getOwnPropertyDescriptor(Q.prototype,"latestDate"),Q.prototype),Q);class We extends Te{constructor(...e){super(...e),_e(this,"_type","fee_adjustment")}get value(){return this._value}set value(e){this._value=e}get nullValue(){return{amount:new ze({}).nullValue,comment:""}}get defaultValue(){return{amount:new ze({}).defaultValue,comment:""}}equals(e){return(0,be.SN)(this.value,e.value)}get displayName(){let{value:e,currency:t}=this.value.amount,{comment:i}=this.value,r=(0,ce.up)(e,t,2);return i?`${r} ${i}`:r}static create(e){return new We(e)}}class $e extends Ge{constructor(e){super({inner:"boolean"}),_e(this,"_dateArray",void 0),_e(this,"_type","date_list"),_e(this,"inner","boolean"),this._dateArray=e.value??[],this._value=this._dateArray.map(e=>new ge.A({date:e,value:!0,weight:1}))}get value(){return this._value}set value(e){this._value=e}get displayName(){if(0===this._dateArray.length)return"None";let e=[...this._dateArray].sort();switch(e.length){case 1:return e[0];case 2:return`${e[0]}, ${e[1]}`;default:return`${e.length} dates in the range ${e[0]} to ${e.slice(-1)[0]}`}}static create(e){return new $e(e)}}function Ye(e,t,i,r){let o=(0,oe.isNone)(e)?{}:{...e};return(0,oe.isNone)(t)||(o={...o,type:t}),(0,oe.isNone)(r)||(o={...o,inner:r}),(0,oe.isNone)(i)||(0,oe.isNone)(o.type)||(0,oe.isNone)(i[o.type])||(o={...o,...i[o.type]}),function(e,t){let i={...e};switch(t){case"string":default:return new Te(i);case"year":return new Fe(i);case"boolean":return new Ve(i);case"double":case"integer":case"number":return new De(i);case"date_time":case"date":return new Oe(i);case"effective_date":return new Ee(i);case"money":{let{currency:e}=i;return(0,oe.isNone)(e)||(i={...i,currency:e.toUpperCase()}),new xe(i)}case"percent":return new Pe(i);case"underlying_value":{let{currency:e,quote_currency:t}=i;return(0,oe.isNone)(e)||(i={...i,currency:e.toUpperCase()}),(0,oe.isNone)(t)||(i={...i,quote_currency:t.toUpperCase()}),new Ne(i)}case"daily_time_series":return new Ie(i);case"timebox":if((0,oe.isNone)(e.value)){let{inner:t}=e,{nullValue:i}=new Ge({inner:t});return new Ge({inner:t,value:i})}{let t=e.value.map(function(e){let t;return"benchmark_list"===i.inner?(t=new Me({value:e.value}),new He({value:t,date:e.date,weight:e.weight})):new ge.A({value:e.value,date:e.date,weight:e.weight})});return new Ge({...i,value:t})}case"benchmark":return new Me(i);case"benchmark_list":return new Me(i.value||{});case"date_list":return new $e(i);case"discrete":case"currency":case"fixed_income_benchmark":return new je(i);case"money_value":return new ze(i);case"period":return new Re(i);case"financial_entity_value":case"derivative_underlying_asset":case"billing_schedule":return new Le(i);case"financial_graph_node":case"valuable_entity":case"financial_entity":return new ke(i);case"fee_adjustment":return new We(i);case"redemption_call_info":return new qe(i);case"icon":return new Se(i)}}(o,o.type)}function Ke(e,t){return Ye({type:e}
1,e,void 0,t).nullValue}},423431(e,t,i){function r(e){let t=e.result?.rows?.[0];return t?t.children?.[0]?.values?t.children[0].values:t.values?t.values:[]:[]}function o(e,t,i){if(t.isLoading||i?.isLoading)return e;let o=!t.ownershipPerspective,a=r(t),n=i?r(i):[],s=(new DOMParser).parseFromString(`<p>${e}</p>`,"text/html");return s.querySelectorAll("span.cke_widget_element:not(.cke_tabulation)").forEach(e=>{let t,i=JSON.parse(decodeURIComponent(e.getAttribute("data-cke-widget-data")||"{}")),r=i.isFundContext?n:a,{queryIndex:s}=i;t=o||r.length<=s?"-":r[s].displayName,e.textContent=t}),s.body.innerHTML}function a(e){let t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll("factor-widget").forEach(function(e){let t=e.getAttribute("widget-id"),i=e.getAttribute("is-fund-context"),r=e.getAttribute("query-index"),o={isFundContext:"true"===i,queryIndex:Number(r)},a=JSON.stringify(o),n=encodeURIComponent(a),s=document.createElement("div"),l=`<span tabindex='-1' contenteditable='false' data-cke-widget-wrapper='1' data-cke-filter='off' class='cke_widget_wrapper cke_widget_inline' data-cke-display-name='factorChooser' data-cke-widget-id='${t}'><span class='cke_placeholder cke_widget_element' data-cke-widget-keep-attr='0' data-widget='factorChooser' data-cke-widget-data='${n}'>-</span></span>`;s.innerHTML=l,s.firstChild&&e.replaceWith(s.firstChild)}),t.querySelectorAll("tabulation-widget").forEach(function(e){let t=e.getAttribute("widget-id"),i=document.createElement("div"),r=`<span tabindex='-1' contenteditable='false' data-cke-widget-wrapper='1' data-cke-filter='off' class='cke_widget_wrapper cke_widget_inline' data-cke-display-name='factorChooser' data-cke-widget-id='${t}'><span class='cke_tabulation cke_widget_element' data-cke-widget-keep-attr='0' data-widget='tabulation' data-cke-widget-data=''> </span></span>`;i.innerHTML=r,i.firstChild&&e.replaceWith(i.firstChild)}),t.body.innerHTML}function n(e){let t=(new DOMParser).parseFromString(e,"text/html");return t.querySelectorAll("div[data-cke-hidden-sel]").forEach(function(e){e.remove()}),t.querySelector("#cke_copybin")?.remove(),t.querySelectorAll("span[data-cke-display-name]").forEach(function(e){let t=e.getAttribute("data-cke-widget-id"),i=e.children[0];if("factorChooser"===i.getAttribute("data-widget")){let r=i.getAttribute("data-cke-widget-data"),o=decodeURIComponent(r),a=JSON.parse(o),{queryIndex:n}=a,{isFundContext:s}=a,l=document.createElement("factor-widget");l.setAttribute("widget-id",t),l.setAttribute("query-index",n),l.setAttribute("is-fund-context",s),e.replaceWith(l)}else{let i=document.createElement("tabulation-widget");i.setAttribute("widget-id",t),e.replaceWith(i)}}),t.body.innerHTML}i.d(t,{D8:()=>n,Ny:()=>o,QH:()=>r,ir:()=>a}),i(44384)},125575(e,t,i){function r(e,{getChildren:t,visitNode:i}){t||(t=e=>e.children);let r=[e];for(;r.length;){let e=r.shift();i(e),r.unshift(...t(e))}}i.d(t,{F:()=>r}),i(44384)},904505(e,t,i){i.d(t,{Bw:()=>b,Hy:()=>a,hd:()=>p,tn:()=>o,HU:()=>v,dk:()=>s});var r=/\r?\n/;function o(e){var t=Object.create(null);if(!e)return t;for(var i=e.split(r),o=0;o<i.length;o++){for(var a=i[o],n=0,s=!1;n<a.length;n++)if(58===a.charCodeAt(n)){s=!0;break}if(!1!==s){var l=a.substring(0,n).trim(),u=a.substring(n+1,a.length).trim();u&&(t[l.toLowerCase()]=u,t[l]=u)}}return t}function a(e,t){return e.text().then(function(i){var r=i;try{r=JSON.parse(i)}catch(a){if(!(a instanceof SyntaxError))throw a;var o=e.status;!e.ok||204!==o&&205!==o&&"HEAD"!==t.method?console.warn("This response was unable to be parsed as json.",i):r=void 0}return r})}var n=/\[\]$/;function s(e){var t=[];return function e(i,r){var o,a,s;if(i)if(Array.isArray(r))for(o=0,a=r.length;o<a;o++)n.test(i)?l(t,i,r[o]):e(i+"["+("object"==typeof r[o]?o:"")+"]",r[o]);else if(function(e){return"[object Object]"===Object.prototype.toString.call(e)}(r))for(s in r)e(i+"["+s+"]",r[s]);else l(t,i,r);else if(Array.isArray(r))for(o=0,a=r.length;o<a;o++)l(t,r[o].name,r[o].value);else for(s in r)e(s,r[s]);return t}("",e).join("&").replace(/%20/g,"+")}function l(e,t,i){void 0!==i&&(null===i&&(i=""),i="function"==typeof i?i():i,e[e.length]=`${encodeURIComponent(t)}=${encodeURIComponent(i)}`)}var u=i(412365),c=i.n(u),d=null;function p(){if(null!==d)return d();if((0,u.has)("fetch")){var e=c()("fetch").default;d=()=>e}else{if("function"!=typeof fetch)throw new Error("cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?");d=()=>fetch}return d()}var h=i(18206),m=i(757034),g=i.n(m),f=i(943910),y=i(470310);const b=g().create({buildURL(e,t,i,r,o){switch(r){case"findRecord":return this.urlForFindRecord(t,e,i);case"findAll":return this.urlForFindAll(e,i);case"query":return this.urlForQuery(o,e);case"queryRecord":return this.urlForQueryRecord(o,e);case"findMany":return this.urlForFindMany(t,e,i);case"findHasMany":return this.urlForFindHasMany(t,e,i);case"findBelongsTo":return this.urlForFindBelongsTo(t,e,i);case"createRecord":return this.urlForCreateRecord(e,i);case"updateRecord":return this.urlForUpdateRecord(t,e,i);case"deleteRecord":return this.urlForDeleteRecord(t,e,i);default:return this._buildURL(e,t)}},_buildURL(e,t){var i,r=[],o=(0,f.get)(this,"host"),a=this.urlPrefix();return e&&(i=this.pathForType(e))&&r.push(i),t&&r.push(encodeURIComponent(t)),a&&r.unshift(a),r=r.join("/"),!o&&r&&"/"!==r.charAt(0)&&(r="/"+r),r},urlForFindRecord(e,t,i){return this._buildURL(t,e)},urlForFindAll(e,t){return this._buildURL(e)},urlForQuery(e,t){return this._buildURL(t)},urlForQueryRecord(e,t){return this._buildURL(t)},urlForFindMany(e,t,i){return this._buildURL(t)},urlForFindHasMany(e,t,i){return this._buildURL(t,e)},urlForFindBelongsTo(e,t,i){return this._buildURL(t,e)},urlForCreateRecord(e,t){return this._buildURL(e)},urlForUpdateRecord(e,t,i){return this._buildURL(t,e)},urlForDeleteRecord(e,t,i){return this._buildURL(t,e)},urlPrefix(e,t){var i=(0,f.get)(this,"host"),r=(0,f.get)(this,"namespace");if(i&&"/"!==i||(i=""),e)return/^\/\//.test(e)||/http(s)?:\/\//.test(e)?e:"/"===e.charAt(0)?`${i}${e}`:`${t}/${e}`;var o=[];return i&&o.push(i),r&&o.push(r),o.join("/")},pathForType(e){var t=(0,h.PT)(e);return(0,y.td)(t)}});function v(e,t,i,r={includeId:!0}){var o=e.serializerFor(t.modelName);if("function"==typeof o.serializeIntoHash){var a={};return o.serializeIntoHash(a,t,i,r),a}return o.serialize(i,r)}},186730(e,t,i){i.d(t,{Ay:()=>s,D_:()=>h,MU:()=>d,W2:()=>a.W2,aB:()=>c,fK:()=>f,gP:()=>y,lc:()=>p,m_:()=>g,qQ:()=>m,w_:()=>a.w_});var r=i(683619),o=i.n(r),a=(i(44384),i(962085));function n(e,t="Adapter operation failed"){this.isAdapterError=!0;var i=o().call(this,t);i&&(this.stack=i.stack,this.description=i.description,this.fileName=i.fileName,this.lineNumber=i.lineNumber,this.message=i.message,this.name=i.name,this.number=i.number,this.co
1de=i.code),this.errors=e||[{title:"Adapter Error",detail:t}]}const s=n;function l(e){return function({message:t}={}){return u(e,t)}}function u(e,t){var i=function(i,r){e.call(this,i,r||t)};return i.prototype=Object.create(e.prototype),i.extend=l(i),i}n.prototype=Object.create(o().prototype),n.extend=l(n);var c=u(n,"The adapter rejected the commit because it was invalid"),d=u(n,"The adapter operation timed out"),p=u(n,"The adapter operation was aborted"),h=u(n,"The adapter operation is unauthorized"),m=u(n,"The adapter operation is forbidden"),g=u(n,"The adapter could not find the resource"),f=u(n,"The adapter operation failed due to a conflict"),y=u(n,"The adapter operation failed due to a server error")},135576(e,t,i){i.d(t,{B:()=>a.Bw});var r=i(943910),o=i.n(r),a=i(904505);const n=o().extend({defaultSerializer:"-default",findRecord:null,findAll:null,query:null,queryRecord:null,generateIdForRecord:null,serialize:(e,t)=>e.serialize(t),createRecord:null,updateRecord:null,deleteRecord:null,coalesceFindRequests:!0,findMany:null,groupRecordsForFindMany:(e,t)=>[t],shouldReloadRecord:(e,t)=>!1,shouldReloadAll:(e,t)=>!t.length,shouldBackgroundReloadRecord:(e,t)=>!0,shouldBackgroundReloadAll:(e,t)=>!0,destroy:null});i.d(t,["A",0,n])},426809(e,t,i){var r=i(18206),o=i(476620),a=i(470310),n=i(904505);const s=o.A.extend({defaultSerializer:"-json-api",ajaxOptions(e,t,i={}){i.contentType=i.contentType||"application/vnd.api+json";var r=this._super(e,t,i);return r.headers.Accept=r.headers.Accept||"application/vnd.api+json",r},coalesceFindRequests:!1,findMany(e,t,i,r){var o=this.buildURL(t.modelName,i,r,"findMany");return this.ajax(o,"GET",{data:{filter:{id:i.join(",")}}})},pathForType(e){var t=(0,r._k)(e);return(0,a.td)(t)},updateRecord(e,t,i){var r=(0,n.HU)(e,t,i),o=this.buildURL(t.modelName,i.id,i,"updateRecord");return this.ajax(o,"PATCH",{data:r})}});i.d(t,["A",0,s])},476620(e,t,i){var r=i(701627),o=i.n(r),a=i(943910),n=i(979295),s=i(989272),l=i(135576),u=i(316325),c=i(904505),d=i(186730),p=(i(44384),r.Promise),h="undefined"!=typeof jQuery,m="undefined"!=typeof najax;function g(e,t,i,r){var o;try{o=e.handleResponse(r.status,r.headers,t,i)}catch(e){return p.reject(e)}return o&&o.isAdapterError?p.reject(o):o}function f(e,t,i,r){var o;if(r.errorThrown instanceof Error)o=r.errorThrown;else if("timeout"===r.textStatus)o=new d.MU;else if("abort"===r.textStatus||0===r.status)o=function(e,t){var{method:i,url:r,errorThrown:o}=e,{status:a}=t,n=[{title:"Adapter Error",detail:`Request failed: ${i} ${r} ${o||""}`.trim(),status:a}];return new d.lc(n)}(i,r);else try{o=e.handleResponse(r.status,r.headers,t||r.errorThrown,i)}catch(e){o=e}return o}function y(e){return{status:e.status,textStatus:e.textStatus,headers:(t=e.headers,i={},t&&t.forEach((e,t)=>i[t]=e),i)};var t,i}function b(e){return{status:e.status,textStatus:e.statusText,headers:(0,c.tn)(e.getAllResponseHeaders())}}const v=l.A.extend(l.B,{defaultSerializer:"-rest",fastboot:(0,a.computed)(function(){return(0,n.getOwner)(this).lookup("service:fastboot")}),useFetch:(0,a.computed)(function(){var e=(0,n.getOwner)(this).resolveRegistration("config:environment");return!(!e||!e.EmberENV||!1!==e.EmberENV._JQUERY_INTEGRATION)||!m&&!h}),sortQueryParams(e){var t=Object.keys(e),i=t.length;if(i<2)return e;for(var r={},o=t.sort(),a=0;a<i;a++)r[o[a]]=e[o[a]];return r},coalesceFindRequests:!1,findRecord(e,t,i,r){var o=this.buildURL(t.modelName,i,r,"findRecord"),a=this.buildQuery(r);return this.ajax(o,"GET",{data:a})},findAll(e,t,i,r){var o=this.buildQuery(r),a=this.buildURL(t.modelName,null,r,"findAll");return i&&(o.since=i),this.ajax(a,"GET",{data:o})},query(e,t,i){var r=this.buildURL(t.modelName,null,null,"query",i);return this.sortQueryParams&&(i=this.sortQueryParams(i)),this.ajax(r,"GET",{data:i})},queryRecord(e,t,i){var r=this.buildURL(t.modelName,null,null,"queryRecord",i);return this.sortQueryParams&&(i=this.sortQueryParams(i)),this.ajax(r,"GET",{data:i})},findMany(e,t,i,r){var o=this.buildURL(t.modelName,i,r,"findMany");return this.ajax(o,"GET",{data:{ids:i}})},findHasMany(e,t,i,r){var o=t.id,a=t.modelName;return i=this.urlPrefix(i,this.buildURL(a,o,t,"findHasMany")),this.ajax(i,"GET")},findBelongsTo(e,t,i,r){var o=t.id,a=t.modelName;return i=this.urlPrefix(i,this.buildURL(a,o,t,"findBelongsTo")),this.ajax(i,"GET")},createRecord(e,t,i){var r=this.buildURL(t.modelName,null,i,"createRecord"),o=(0,c.HU)(e,t,i);return this.ajax(r,"POST",{data:o})},updateRecord(e,t,i){var r=(0,c.HU)(e,t,i,{}),o=i.id,a=this.buildURL(t.modelName,o,i,"updateRecord");return this.ajax(a,"PUT",{data:r})},deleteRecord(e,t,i){var r=i.id;return this.ajax(this.buildURL(t.modelName,r,i,"deleteRecord"),"DELETE")},_stripIDFromURL(e,t){var i,r,o=this.buildURL(t.modelName,t.id,t).split("/"),a=o[o.length-1],n=t.id;return decodeURIComponent(a)===n?o[o.length-1]="":(i=a,r="?id="+n,("function"!=typeof String.prototype.endsWith?-1!==i.indexOf(r,i.length-r.length):i.endsWith(r))&&(o[o.length-1]=a.substring(0,a.length-n.length-1))),o.join("/")},maxURLLength:2048,groupRecordsForFindMany(e,t){var i=new Map,r=this,o=this.maxURLLength;t.forEach(t=>{var o=r._stripIDFromURL(e,t);i.has(o)||i.set(o,[]),i.get(o).push(t)});var a=[];
1return i.forEach((t,i)=>{var n=function(t,i){var o=0,a=r._stripIDFromURL(e,t[0]),n=[[]];return t.forEach(e=>{var t=encodeURIComponent(e.id).length+11;a.length+o+t>=i&&(o=0,n.push([])),o+=t;var r=n.length-1;n[r].push(e)}),n}(t,o);n.forEach(e=>a.push(e))}),a},handleResponse(e,t,i,r){if(this.isSuccess(e,t,i))return i;if(this.isInvalid(e,t,i))return new d.aB(i.errors);var o=this.normalizeErrorResponse(e,t,i),a=this.generatedDetailedMessage(e,t,i,r);switch(e){case 401:return new d.D_(o,a);case 403:return new d.qQ(o,a);case 404:return new d.m_(o,a);case 409:return new d.fK(o,a);default:if(e>=500)return new d.gP(o,a)}return new d.Ay(o,a)},isSuccess:(e,t,i)=>e>=200&&e<300||304===e,isInvalid:(e,t,i)=>422===e,ajax(e,t,i){var r=this,n=(0,a.get)(this,"useFetch"),l={url:e,method:t},u=r.ajaxOptions(e,t,i);return n?this._fetchRequest(u).then(e=>o().hash({response:e,payload:(0,c.Hy)(e,l)})).then(({response:e,payload:t})=>{if(e.ok)return function(e,t,i,r){return g(e,t,r,y(i))}(r,t,e,l);throw function(e,t,i,r,o){var a=y(i);return a.errorThrown=null,f(e,t,o,a)}(r,t,e,0,l)}):new p(function(e,t){u.success=function(t,i,o){var a=function(e,t,i,r){return g(e,t,r,b(i))}(r,t,o,l);s.run.join(null,e,a)},u.error=function(e,i,o){var a=function(e,t,i,r){var o=b(t);o.errorThrown=i;var a=e.parseErrorResponse(t.responseText);return f(e,a,r,o)}(r,e,o,l);s.run.join(null,t,a)},r._ajax(u)},"DS: RESTAdapter#ajax "+t+" to "+e)},_ajaxRequest(e){jQuery.ajax(e)},_najaxRequest(e){if(!m)throw new Error("najax does not seem to be defined in your app. Did you override it via `addOrOverrideSandboxGlobals` in the fastboot server?");najax(e)},_fetchRequest(e){var t=(0,c.hd)();if(t)return t(e.url,e);throw new Error("cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?")},_ajax(e){(0,a.get)(this,"useFetch")?this._fetchRequest(e):(0,a.get)(this,"fastboot.isFastBoot")?this._najaxRequest(e):this._ajaxRequest(e)},ajaxOptions(e,t,i){i=(0,u.assign)({url:e,method:t,type:t},i);var r=(0,a.get)(this,"headers");if(r?i.headers=(0,u.assign)({},i.headers,r):i.headers||(i.headers={}),i.data&&"GET"!==i.type){var o=i.contentType||"application/json; charset=utf-8";i.headers["content-type"]=o}return(i=(0,a.get)(this,"useFetch")?function(e){if(e.credentials="same-origin",e.data)if("GET"===e.method||"HEAD"===e.method){if(Object.keys(e.data).length){var t=e.url.indexOf("?")>-1?"&":"?";e.url+=`${t}${(0,c.dk)(e.data)}`}}else e.body=JSON.stringify(e.data);return e}(i):function(e,t){return e.dataType="json",e.context=t,e.data&&"GET"!==e.type&&(e.data=JSON.stringify(e.data),e.contentType="application/json; charset=utf-8"),e.beforeSend=function(t){Object.keys(e.headers).forEach(i=>t.setRequestHeader(i,e.headers[i]))},e}(i,this)).url=this._ajaxURL(i.url),i},_ajaxURL(e){if((0,a.get)(this,"fastboot.isFastBoot")){var t=(0,a.get)(this,"fastboot.request.protocol"),i=(0,a.get)(this,"fastboot.request.host");if(/^\/\//.test(e))return`${t}${e}`;if(!/^https?:\/\//.test(e))try{return`${t}//${i}${e}`}catch(e){throw new Error("You are using Ember Data with no host defined in your adapter. This will attempt to use the host of the FastBoot request, which is not configured for the current host of this request. Please set the hostWhitelist property for in your environment.js. FastBoot Error: "+e.message)}}return e},parseErrorResponse(e){var t=e;try{t=JSON.parse(e)}catch(e){}return t},normalizeErrorResponse:(e,t,i)=>i&&"object"==typeof i&&i.errors?i.errors:[{status:`${e}`,title:"The backend responded with an error",detail:`${i}`}],generatedDetailedMessage:function(e,t,i,r){var o,a=t["content-type"]||"Empty Content-Type";return o="text/html"===a&&i.length>250?"[Omitted Lengthy HTML]":i,["Ember Data Request "+r.method+" "+r.url+" returned a "+e,"Payload ("+a+")",o].join("\n")},buildQuery(e){var t={};if(e){var{include:i}=e;i&&(t.include=i)}return t}});i.d(t,["A",0,v])},745440(e,t,i){i.r(t),i.d(t,{attr:()=>a,belongsTo:()=>s,hasMany:()=>l});var r=i(943910),o=(i(44384),i(962085));function a(e,t){"object"==typeof e?(t=e,e=void 0):t=t||{};var i={type:e,isAttribute:!0,kind:"attribute",options:t};return(0,r.computed)({get(e){var i=this._internalModel;return function(e,t){return(0,o.Dg)(e).hasAttr(t)}(i,e)?i.getAttributeValue(e):function(e,t,i){return"function"==typeof t.defaultValue?t.defaultValue.apply(null,arguments):t.defaultValue}(this,t,e)},set(e,t){return this._internalModel.setDirtyAttribute(e,t)}}).meta(i)}var n=i(994078);function s(e,t){var i,o;"object"==typeof e?(i=e,o=void 0):(i=t,o=e),"string"==typeof o&&(o=(0,n.normalizeModelName)(o));var a={type:o,isRelationship:!0,options:i=i||{},kind:"belongsTo",name:"Belongs To",key:null};return(0,r.computed)({get(e){return this._internalModel.getBelongsTo(e)},set(e,t){return this._internalModel.setDirtyBelongsTo(e,t),this._internalModel.getBelongsTo(e)}}).meta(a)}function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{},"string"==typeof e&&(e=(0,n.normalizeModelName)(e));var i={type:e,options:t,isRelationship:!0,kind:"hasMany",name:"Has Many",key:null};return(0,r.computed)({get(e){return this._internalModel.getHasMany(e)},set(e,t){var i=this._internalModel;return i.setDirtyHasMany(e,t),i.getHasMany(e)}}).meta(i)}},236853(e,t,i){i.d(t,{Ay:()=>o.Kx,CF:()=>r.attr,g4:()=>r.belongsTo,iQ:()=>r.hasMany});var r=i(745440),o=i(962085)},796431(e,t,i){i.d(t,{le:()=>h,Z$:()=>m,iM:()=>c,Go:()=>f,sF:()=>y,dL:()=>p,ss:()=>d});var r=i(496314),o=i(734138),a=i(757034),n=i.n(a),s=i(18206),l=i(943910),u=i.n(l);i(44384);const c=n().create({normalize(e,t,i){var r=this._super(e,t,i);return this._extractEmbeddedRecords(this,this.store,e,r)}
1,keyForRelationship(e,t,i){return"serialize"===i&&this.hasSerializeRecordsOption(e)||"deserialize"===i&&this.hasDeserializeRecordsOption(e)?this.keyForAttribute(e,i):this._super(e,t,i)||e},serializeBelongsTo(e,t,i){var r=i.key;if(this.noSerializeOptionSpecified(r))this._super(e,t,i);else{var o=this.hasSerializeIdsOption(r),a=this.hasSerializeRecordsOption(r),n=e.belongsTo(r);if(o){var s=this._getMappedKey(i.key,e.type);s===i.key&&this.keyForRelationship&&(s=this.keyForRelationship(i.key,i.kind,"serialize")),n?(t[s]=n.id,i.options.polymorphic&&this.serializePolymorphicType(e,t,i)):t[s]=null}else a&&this._serializeEmbeddedBelongsTo(e,t,i)}},_serializeEmbeddedBelongsTo(e,t,i){var r=e.belongsTo(i.key),o=this._getMappedKey(i.key,e.type);o===i.key&&this.keyForRelationship&&(o=this.keyForRelationship(i.key,i.kind,"serialize")),r?(t[o]=r.serialize({includeId:!0}),this.removeEmbeddedForeignKey(e,r,i,t[o]),i.options.polymorphic&&this.serializePolymorphicType(e,t,i)):t[o]=null},serializeHasMany(e,t,i){var r=i.key;if(this.noSerializeOptionSpecified(r))this._super(e,t,i);else if(this.hasSerializeIdsOption(r)){var o=this._getMappedKey(i.key,e.type);o===i.key&&this.keyForRelationship&&(o=this.keyForRelationship(i.key,i.kind,"serialize")),t[o]=e.hasMany(r,{ids:!0})}else this.hasSerializeRecordsOption(r)?this._serializeEmbeddedHasMany(e,t,i):this.hasSerializeIdsAndTypesOption(r)&&this._serializeHasManyAsIdsAndTypes(e,t,i)},_serializeHasManyAsIdsAndTypes(e,t,i){var r=this.keyForAttribute(i.key,"serialize"),a=e.hasMany(i.key);t[r]=(0,o.A)(a).map(function(e){return{id:e.id,type:e.modelName}})},_serializeEmbeddedHasMany(e,t,i){var r=this._getMappedKey(i.key,e.type);r===i.key&&this.keyForRelationship&&(r=this.keyForRelationship(i.key,i.kind,"serialize")),t[r]=this._generateSerializedHasMany(e,i)},_generateSerializedHasMany(e,t){for(var i=e.hasMany(t.key),r=(0,o.A)(i),a=new Array(r.length),n=0;n<r.length;n++){var s=r[n],l=s.serialize({includeId:!0});this.removeEmbeddedForeignKey(e,s,t,l),a[n]=l}return a},removeEmbeddedForeignKey(e,t,i,r){if("belongsTo"===i.kind){var o=e.type.inverseFor(i.key,this.store);if(o){var a=o.name,n=this.store.serializerFor(t.modelName).keyForRelationship(a,o.kind,"deserialize");n&&delete r[n]}}},hasEmbeddedAlwaysOption(e){var t=this.attrsOption(e);return t&&"always"===t.embedded},hasSerializeRecordsOption(e){var t=this.hasEmbeddedAlwaysOption(e),i=this.attrsOption(e);return t||i&&"records"===i.serialize},hasSerializeIdsOption(e){var t=this.attrsOption(e);return t&&("ids"===t.serialize||"id"===t.serialize)},hasSerializeIdsAndTypesOption(e){var t=this.attrsOption(e);return t&&("ids-and-types"===t.serialize||"id-and-type"===t.serialize)},noSerializeOptionSpecified(e){var t=this.attrsOption(e);return!(t&&(t.serialize||t.embedded))},hasDeserializeRecordsOption(e){var t=this.hasEmbeddedAlwaysOption(e),i=this.attrsOption(e);return t||i&&"records"===i.deserialize},attrsOption(e){var t=this.get("attrs");return t&&(t[(0,s.PT)(e)]||t[e])},_extractEmbeddedRecords(e,t,i,r){return i.eachRelationship((i,o)=>{e.hasDeserializeRecordsOption(i)&&("hasMany"===o.kind&&this._extractEmbeddedHasMany(t,i,r,o),"belongsTo"===o.kind&&this._extractEmbeddedBelongsTo(t,i,r,o))}),r},_extractEmbeddedHasMany(e,t,i,r){var o=(0,l.get)(i,`data.relationships.${t}.data`);if(o){for(var a=new Array(o.length),n=0;n<o.length;n++){var s=o[n],{data:u,included:c}=this._normalizeEmbeddedRelationship(e,r,s);i.included=i.included||[],i.included.push(u),c&&(i.included=i.included.concat(c)),a[n]={id:u.id,type:u.type}}var d={data:a};(0,l.set)(i,`data.relationships.${t}`,d)}},_extractEmbeddedBelongsTo(e,t,i,r){var o=(0,l.get)(i,`data.relationships.${t}.data`);if(o){var{data:a,included:n}=this._normalizeEmbeddedRelationship(e,r,o);i.included=i.included||[],i.included.push(a),n&&(i.included=i.included.concat(n));var s={data:{id:a.id,type:a.type}};(0,l.set)(i,`data.relationships.${t}`,s)}},_normalizeEmbeddedRelationship(e,t,i){var r=t.type;t.options.polymorphic&&(r=i.type);var o=e.modelFor(r);return e.serializerFor(r).normalize(o,i,null)},isEmbeddedRecordsMixin:!0});function d(e){return(0,l.get)(e,"attributes").has("type")||(0,l.get)(e,"relationshipsByName").has("type")}const p=u().extend({serialize:null,deserialize:null}),h=p.extend({deserialize(e,t){if((0,r.isNone)(e)&&!0===t.allowNull)return null;var i=typeof e;return"boolean"===i?e:"string"===i?/^(true|t|1)$/i.test(e):"number"===i&&1===e},serialize:(e,t)=>
1(0,r.isNone)(e)&&!0===t.allowNull?null:Boolean(e)}),m=p.extend({deserialize(e){var t=typeof e;if("string"===t){var i=e.indexOf("+");return-1!==i&&e.length-5===i?(i+=3,new Date(e.slice(0,i)+":"+e.slice(i))):new Date(e)}return"number"===t?new Date(e):null==e?e:null},serialize:e=>e instanceof Date&&!isNaN(e)?e.toISOString():null});function g(e){return e==e&&e!==1/0&&e!==-1/0}const f=p.extend({deserialize(e){var t;return""===e||null==e?null:g(t=Number(e))?t:null},serialize(e){var t;return""===e||null==e?null:g(t=Number(e))?t:null}}),y=p.extend({deserialize:e=>(0,r.isNone)(e)?null:String(e),serialize:e=>(0,r.isNone)(e)?null:String(e)})},705578(e,t,i){var r=i(943910);const o=i.n(r)().extend({normalizeResponse:null,serialize:null,normalize:(e,t)=>t});i.d(t,["A",0,o])},574403(e,t,i){var r=i(496314),o=i(18206),a=i(470310),n=(i(44384),i(119762)),s=i(994078),l=n.A.extend({_normalizeDocumentHelper(e){if("object"===(0,r.typeOf)(e.data))e.data=this._normalizeResourceHelper(e.data);else if(Array.isArray(e.data)){for(var t=new Array(e.data.length),i=0;i<e.data.length;i++){var o=e.data[i];t[i]=this._normalizeResourceHelper(o)}e.data=t}if(Array.isArray(e.included)){for(var a=new Array,n=0;n<e.included.length;n++){var s=e.included[n],l=this._normalizeResourceHelper(s);null!==l&&a.push(l)}e.included=a}return e}
1,_normalizeRelationshipDataHelper(e){return e.type=this.modelNameFromPayloadKey(e.type),e},_normalizeResourceHelper(e){var t;if(t=this.modelNameFromPayloadKey(e.type),!this.store._hasModelFor(t))return null;var i=this.store.modelFor(t),r=this.store.serializerFor(t),{data:o}=r.normalize(i,e);return o},pushPayload(e,t){var i=this._normalizeDocumentHelper(t);e.push(i)},_normalizeResponse(e,t,i,r,o,a){return this._normalizeDocumentHelper(i)},normalizeQueryRecordResponse(){return this._super(...arguments)},extractAttributes(e,t){var i={};return t.attributes&&e.eachAttribute(e=>{var r=this.keyForAttribute(e,"deserialize");void 0!==t.attributes[r]&&(i[e]=t.attributes[r])}),i},extractRelationship(e){if("object"===(0,r.typeOf)(e.data)&&(e.data=this._normalizeRelationshipDataHelper(e.data)),Array.isArray(e.data)){for(var t=new Array(e.data.length),i=0;i<e.data.length;i++){var o=e.data[i];t[i]=this._normalizeRelationshipDataHelper(o)}e.data=t}return e},extractRelationships(e,t){var i={};return t.relationships&&e.eachRelationship((e,r)=>{var o=this.keyForRelationship(e,r.kind,"deserialize");if(void 0!==t.relationships[o]){var a=t.relationships[o];i[e]=this.extractRelationship(a)}}),i},_extractType(e,t){return this.modelNameFromPayloadKey(t.type)},modelNameFromPayloadKey:e=>(0,a.ES)((0,s.normalizeModelName)(e)),payloadKeyFromModelName:e=>(0,a.td)(e),normalize(e,t){t.attributes&&this.normalizeUsingDeclaredMapping(e,t.attributes),t.relationships&&this.normalizeUsingDeclaredMapping(e,t.relationships);var i={id:this.extractId(e,t),type:this._extractType(e,t),attributes:this.extractAttributes(e,t),relationships:this.extractRelationships(e,t)};return this.applyTransforms(e,i.attributes),{data:i}},keyForAttribute:(e,t)=>(0,o._k)(e),keyForRelationship:(e,t,i)=>(0,o._k)(e),serialize(e,t){var i=this._super(...arguments);return i.type=this.payloadKeyFromModelName(e.modelName),{data:i}},serializeAttribute(e,t,i,r){var o=r.type;if(this._canSerialize(i)){t.attributes=t.attributes||{};var a=e.attr(i);o&&(a=this.transformFor(o).serialize(a,r.options));var n=this._getMappedKey(i,e.type);n===i&&(n=this.keyForAttribute(i,"serialize")),t.attributes[n]=a}},serializeBelongsTo(e,t,i){var r=i.key;if(this._canSerialize(r)){var o=e.belongsTo(r),a=o&&o.record&&!o.record.get("isNew");if(null===o||a){t.relationships=t.relationships||{};var n=this._getMappedKey(r,e.type);n===r&&(n=this.keyForRelationship(r,"belongsTo","serialize"));var s=null;o&&(s={type:this.payloadKeyFromModelName(o.modelName),id:o.id}),t.relationships[n]={data:s}}}},serializeHasMany(e,t,i){var r=i.key;if(this.shouldSerializeHasMany(e,r,i)){var o=e.hasMany(r);if(void 0!==o){t.relationships=t.relationships||{};var a=this._getMappedKey(r,e.type);a===r&&this.keyForRelationship&&(a=this.keyForRelationship(r,"hasMany","serialize"));for(var n=o.filter(e=>e.record&&!e.record.get("isNew")),s=new Array(n.length),l=0;l<n.length;l++){var u=o[l],c=this.payloadKeyFromModelName(u.modelName);s[l]={type:c,id:u.id}}t.relationships[a]={data:s}}}}});const u=l;i.d(t,["A",0,u])},119762(e,t,i){var r=i(316325),o=i(496314),a=i(943910),n=(i(44384),i(979295)),s=i(705578),l=i(186730),u=i(796431),c=i(994078),d=i(962085),p=r.assign||r.merge,h=s.A.extend({primaryKey:"id",mergedProperties:["attrs"],applyTransforms(e,t){var i=(0,a.get)(e,"attributes");return e.eachTransformedAttribute((e,r)=>{if(void 0!==t[e]){var o=this.transformFor(r),a=i.get(e);t[e]=o.deserialize(t[e],a.options)}}),t},normalizeResponse(e,t,i,r,o){switch(o){case"findRecord":return this.normalizeFindRecordResponse(...arguments);case"queryRecord":return this.normalizeQueryRecordResponse(...arguments);case"findAll":return this.normalizeFindAllResponse(...arguments);case"findBelongsTo":return this.normalizeFindBelongsToResponse(...arguments);case"findHasMany":return this.normalizeFindHasManyResponse(...arguments);case"findMany":return this.normalizeFindManyResponse(...arguments);case"query":return this.normalizeQueryResponse(...arguments);case"createRecord":return this.normalizeCreateRecordResponse(...arguments);case"deleteRecord":return this.normalizeDeleteRecordResponse(...arguments);case"updateRecord":return this.normalizeUpdateRecordResponse(...arguments)}},normalizeFindRecordResponse(e,t,i,r,o){return this.normalizeSingleResponse(...arguments)},normalizeQueryRecordResponse(e,t,i,r,o){return this.normalizeSingleResponse(...arguments)},normalizeFindAllResponse(e,t,i,r,o){return this.normalizeArrayResponse(...arguments)},normalizeFindBelongsToResponse(e,t,i,r,o){return this.normalizeSingleResponse(...arguments)},normalizeFindHasManyResponse(e,t,i,r,o){return this.normalizeArrayResponse(...arguments)},normalizeFindManyResponse(e,t,i,r,o){return this.normalizeArrayResponse(...arguments)},normalizeQueryResponse(e,t,i,r,o){return this.normalizeArrayResponse(...arguments)},normalizeCreateRecordResponse(e,t,i,r,o){return this.normalizeSaveResponse(...arguments)},normalizeDeleteRecordResponse(e,t,i,r,o){return this.normalizeSaveResponse(...arguments)},normalizeUpdateRecordResponse(e,t,i,r,o){return this.normalizeSaveResponse(...arguments)},normalizeSaveResponse(e,t,i,r,o){return this.normalizeSingleResponse(...arguments)},normalizeSingleResponse(e,t,i,r,o){return this._normalizeResponse(e,t,i,r,o,!0)},normalizeArrayResponse(e,t,i,r,o){return this._normalizeResponse(e,t,i,r,o,!1)},_normalizeResponse(e,t,i,r,o,a){var n={data:null,included:[]},s=this.extractMeta(e,t,i);if(s&&(n.meta=s),a){var{data:l,included:u}=this.normalize(t,i);n.data=l,u&&(n.included=u)}else{for(var c=new Array(i.length),d=0,p=i.length;d<p;d++){var h=i[d],{data:m,included:g}=this.normalize(t,h);g&&(n.included=n.included.concat(g)),c[d]=m}n.data=c}return n},normalize(e,t){var i=null;return t&&(this.normalizeUsingDeclaredMapping(e,t),"object"===(0,o.typeOf)(t.links)&&this.normalizeUsingDeclaredMapping(e,t.links),i={id:this.extractId(e,t),type:e.modelName,attributes:this.extractAttributes(e,t),relationships:this.extractRelationships(e,t)},this.applyTransforms(e,i.attributes)),{data:i}},extractId(e,t){var i=t[(0,a.get)(this,"primaryKey")];return(0,d.pG)(i)},extractAttributes(e,t){var i,r={};return e.eachAttribute(e=>{i=this.keyForAttribute(e,"deserialize"),void 0!==t[i]&&(r[e]=t[i])}),r},extractRelationship(e,t){if((0,o.isNone)(t))return null;
1if("object"===(0,o.typeOf)(t)){t.id&&(t.id=(0,d.pG)(t.id));var i=this.store.modelFor(e);return t.type&&!(0,u.ss)(i)&&(t.type=this.modelNameFromPayloadKey(t.type)),t}return{id:(0,d.pG)(t),type:e}},extractPolymorphicRelationship(e,t,i){return this.extractRelationship(e,t)},extractRelationships(e,t){var i={};return e.eachRelationship((e,r)=>{var a=null,n=this.keyForRelationship(e,r.kind,"deserialize");if(void 0!==t[n]){var s=null,l=t[n];if("belongsTo"===r.kind)s=r.options.polymorphic?this.extractPolymorphicRelationship(r.type,l,{key:e,resourceHash:t,relationshipMeta:r}):this.extractRelationship(r.type,l);else if("hasMany"===r.kind&&!(0,o.isNone)(l))if(s=new Array(l.length),r.options.polymorphic)for(var u=0,c=l.length;u<c;u++){var d=l[u];s[u]=this.extractPolymorphicRelationship(r.type,d,{key:e,resourceHash:t,relationshipMeta:r})}else for(var p=0,h=l.length;p<h;p++){var m=l[p];s[p]=this.extractRelationship(r.type,m)}a={data:s}}var g=this.keyForLink(e,r.kind);if(t.links&&void 0!==t.links[g]){var f=t.links[g];(a=a||{}).links={related:f}}a&&(i[e]=a)}),i},modelNameFromPayloadKey:e=>(0,c.normalizeModelName)(e),normalizeRelationships(e,t){var i;this.keyForRelationship&&e.eachRelationship((e,r)=>{e!==(i=this.keyForRelationship(e,r.kind,"deserialize"))&&void 0!==t[i]&&(t[e]=t[i],delete t[i])})},normalizeUsingDeclaredMapping(e,t){var i,r,o=(0,a.get)(this,"attrs");if(o)for(var n in o)i=r=this._getMappedKey(n,e),void 0!==t[r]&&((0,a.get)(e,"attributes").has(n)&&(i=this.keyForAttribute(n)),(0,a.get)(e,"relationshipsByName").has(n)&&(i=this.keyForRelationship(n)),r!==i&&(t[i]=t[r],delete t[r]))},_getMappedKey(e,t){var i,r=(0,a.get)(this,"attrs");return r&&r[e]&&((i=r[e]).key&&(i=i.key),"string"==typeof i&&(e=i)),e},_canSerialize(e){var t=(0,a.get)(this,"attrs");return!t||!t[e]||!1!==t[e].serialize},_mustSerialize(e){var t=(0,a.get)(this,"attrs");return t&&t[e]&&!0===t[e].serialize},shouldSerializeHasMany(e,t,i){var r=e.type.determineRelationshipType(i,this.store);return!!this._mustSerialize(t)||this._canSerialize(t)&&("manyToNone"===r||"manyToMany"===r)},serialize(e,t){var i={};if(t&&t.includeId){var r=e.id;r&&(i[(0,a.get)(this,"primaryKey")]=r)}return e.eachAttribute((t,r)=>{this.serializeAttribute(e,i,t,r)}),e.eachRelationship((t,r)=>{"belongsTo"===r.kind?this.serializeBelongsTo(e,i,r):"hasMany"===r.kind&&this.serializeHasMany(e,i,r)}),i},serializeIntoHash(e,t,i,r){p(e,this.serialize(i,r))},serializeAttribute(e,t,i,r){if(this._canSerialize(i)){var o=r.type,a=e.attr(i);o&&(a=this.transformFor(o).serialize(a,r.options));var n=this._getMappedKey(i,e.type);n===i&&this.keyForAttribute&&(n=this.keyForAttribute(i,"serialize")),t[n]=a}},serializeBelongsTo(e,t,i){var r=i.key;if(this._canSerialize(r)){var a=e.belongsTo(r,{id:!0}),n=this._getMappedKey(r,e.type);n===r&&this.keyForRelationship&&(n=this.keyForRelationship(r,"belongsTo","serialize")),(0,o.isNone)(a)?t[n]=null:t[n]=a,i.options.polymorphic&&this.serializePolymorphicType(e,t,i)}},serializeHasMany(e,t,i){var r=i.key;if(this.shouldSerializeHasMany(e,r,i)){var o=e.hasMany(r,{ids:!0});if(void 0!==o){var a=this._getMappedKey(r,e.type);a===r&&this.keyForRelationship&&(a=this.keyForRelationship(r,"hasMany","serialize")),t[a]=o}}},serializePolymorphicType(){},extractMeta(e,t,i){if(i&&void 0!==i.meta){var r=i.meta;return delete i.meta,r}},extractErrors(e,t,i,r){return i&&"object"==typeof i&&i.errors&&(i=(0,l.w_)(i.errors),this.normalizeUsingDeclaredMapping(t,i),t.eachAttribute(e=>{var t=this.keyForAttribute(e,"deserialize");t!==e&&void 0!==i[t]&&(i[e]=i[t],delete i[t])}),t.eachRelationship(e=>{var t=this.keyForRelationship(e,"deserialize");t!==e&&void 0!==i[t]&&(i[e]=i[t],delete i[t])})),i},keyForAttribute:(e,t)=>e,keyForRelationship:(e,t,i)=>e,keyForLink:(e,t)=>e,transformFor(e,t){return(0,n.getOwner)(this).lookup("transform:"+e)}});const m=h;i.d(t,["A",0,m])},249934(e,t,i){i.d(t,{i:()=>u.iM});var r=i(496314),o=i(734138),a=i(18206),n=i(470310),s=(i(44384),i(119762)),l=i(962085),u=i(796431),c=i(994078),d=s.A.extend({keyForPolymorphicType(e,t,i){return`${this.keyForRelationship(e)}Type`},_normalizeArray(e,t,i,r){var a={data:[],included:[]},n=e.modelFor(t),s=e.serializerFor(t);
1return(0,o.makeArray)(i).forEach(t=>{var{data:i,included:o}=this._normalizePolymorphicRecord(e,t,r,n,s);a.data.push(i),o&&(a.included=a.included.concat(o))}),a},_normalizePolymorphicRecord(e,t,i,r,o){var a=o,n=r;if(!(0,u.ss)(r)&&t.type){var s=this.modelNameFromPayloadKey(t.type);e._hasModelFor(s)&&(a=e.serializerFor(s),n=e.modelFor(s))}return a.normalize(n,t,i)},_normalizeResponse(e,t,i,r,o,a){var n={data:null,included:[]},s=this.extractMeta(e,t,i);s&&(n.meta=s);for(var u=Object.keys(i),c=0,d=u.length;c<d;c++){var p=u[c],h=p,m=!1;"_"===p.charAt(0)&&(m=!0,h=p.substr(1));var g=this.modelNameFromPayloadKey(h);if(e._hasModelFor(g)){var f=!m&&this.isPrimaryType(e,g,t),y=i[p];if(null!==y)if(!f||Array.isArray(y)){var{data:b,included:v}=this._normalizeArray(e,g,y,p);v&&(n.included=n.included.concat(v)),a?b.forEach(e=>{var t=f&&(0,l.pG)(e.id)===r;f&&!r&&!n.data||t?n.data=e:n.included.push(e)}):f?n.data=b:b&&(n.included=n.included.concat(b))}else{var{data:w,included:_}=this._normalizePolymorphicRecord(e,y,p,t,this);n.data=w,_&&(n.included=n.included.concat(_))}}}return n},isPrimaryType:(e,t,i)=>e.modelFor(t)===i,pushPayload(e,t){var i={data:[],included:[]};for(var r in t){var a=this.modelNameFromPayloadKey(r);if(e._hasModelFor(a)){var n=e.modelFor(a),s=e.serializerFor(n.modelName);(0,o.makeArray)(t[r]).forEach(e=>{var{data:t,included:o}=s.normalize(n,e,r);i.data.push(t),o&&(i.included=i.included.concat(o))})}}e.push(i)},modelNameFromPayloadKey:e=>(0,n.ES)((0,c.normalizeModelName)(e)),serialize(e,t){return this._super(...arguments)},serializeIntoHash(e,t,i,r){e[this.payloadKeyFromModelName(t.modelName)]=this.serialize(i,r)},payloadKeyFromModelName:e=>(0,a.PT)(e),serializePolymorphicType(e,t,i){var o=i.key,n=this.keyForPolymorphicType(o,i.type,"serialize"),s=e.belongsTo(o);(0,r.isNone)(s)?t[n]=null:t[n]=(0,a.PT)(s.modelName)},extractPolymorphicRelationship(e,t,i){var{key:r,resourceHash:o,relationshipMeta:a}=i,n=a.options.polymorphic,s=this.keyForPolymorphicType(r,e,"deserialize");return n&&void 0!==o[s]&&"object"!=typeof t?{id:t,type:this.modelNameFromPayloadKey(o[s])}:this._super(...arguments)}});const p=d;i.d(t,["A",0,p])},458622(e,t,i){const r=i(796431).dL;i.d(t,["A",0,r])},962085(e,t,i){i.d(t,{qu:()=>dt,I:()=>z,LZ:()=>Le,hZ:()=>ve,Kx:()=>Qe,Nt:()=>_,gs:()=>D,BO:()=>A,Bm:()=>ct,G:()=>ht,bO:()=>ft,y3:()=>se,Fm:()=>le,il:()=>xt,pG:()=>Se,w_:()=>N,W2:()=>x,gW:()=>k,Dg:()=>G});var r=i(496314),o=i(683619),a=i.n(o),n=i(434158),s=i.n(n),l=(i(757034),i(44384));const u=s();var c=i(943910),d=i.n(c),p=i(120245),h=i.n(p),m=i(615093),g=i.n(m),f=i(56801),y=i.n(f),b=i(640626),v=i(701627),w=i.n(v),_=y().extend(g(),{meta:(0,b.reads)("content.meta")}),A=h().extend(g());function T(e,t){return A.create({promise:v.Promise.resolve(e,t)})}function C(e,t){return _.create({promise:v.Promise.resolve(e,t)})}var S=A.extend({meta:(0,c.computed)(function(){}),reload(e){var{key:t,store:i,originatingInternalModel:r}=this._belongsToState;return i.reloadBelongsTo(this,r,t,e).then(()=>this)}});function R(e){return function(){return(0,c.get)(this,"content")[e](...arguments)}}var D=_.extend({reload(e){return this.set("promise",this.get("content").reload(e)),this},createRecord:R("createRecord"),on:R("on"),one:R("one"),trigger:R("trigger"),off:R("off"),has:R("has")}),O=i(734138),E=/^\/?data\/(attributes|relationships)\/(.*)/,F=/^\/?data/,P="base";function x(e){var t=[];return(0,r.isPresent)(e)&&Object.keys(e).forEach(i=>{for(var r=(0,O.makeArray)(e[i]),o=0;o<r.length;o++){var a="Invalid Attribute",n=`/data/attributes/${i}`;i===P&&(a="Invalid Document",n="/data"),t.push({title:a,detail:r[o],source:{pointer:n}})}}),t}function N(e){var t={};return(0,r.isPresent)(e)&&e.forEach(e=>{if(e.source&&e.source.pointer){var i=e.source.pointer.match(E);i?i=i[2]:-1!==e.source.pointer.search(F)&&(i=P),i&&(t[i]=t[i]||[],t[i].push(e.detail||e.title))}}),t}const z=y().extend(u,{_registerHandlers(e,t){this._registeredHandlers={becameInvalid:e,becameValid:t}},errorsByAttributeName:(0,c.computed)(function(){return new Map}),errorsFor(e){var t=(0,c.get)(this,"errorsByAttributeName");return t.has(e)||t.set(e,(0,O.A)()),t.get(e)},messages:(0,b.mapBy)("content","message"),content:(0,c.computed)(function(){return(0,O.A)()}),unknownProperty(e){var t=this.errorsFor(e);if(0!==t.length)return t},isEmpty:(0,b.not)("length").readOnly(),add(e,t){var i=(0,c.get)(this,"isEmpty");this._add(e,t),i&&!(0,c.get)(this,"isEmpty")&&this._registeredHandlers&&this._registeredHandlers.becameInvalid()}
1,_add(e,t){t=this._findOrCreateMessages(e,t),this.addObjects(t),this.errorsFor(e).addObjects(t),this.notifyPropertyChange(e)},_findOrCreateMessages(e,t){for(var i=this.errorsFor(e),r=(0,O.makeArray)(t),o=new Array(r.length),a=0;a<r.length;a++){var n=r[a],s=i.findBy("message",n);o[a]=s||{attribute:e,message:n}}return o},remove(e){(0,c.get)(this,"isEmpty")||(this._remove(e),(0,c.get)(this,"isEmpty")&&this._registeredHandlers&&this._registeredHandlers.becameValid())},_remove(e){if(!(0,c.get)(this,"isEmpty")){var t=this.rejectBy("attribute",e);(0,c.get)(this,"content").setObjects(t),(0,c.get)(this,"errorsByAttributeName").delete(e),this.notifyPropertyChange(e),this.notifyPropertyChange("length")}},clear(){(0,c.get)(this,"isEmpty")||(this._clear(),this._registeredHandlers&&this._registeredHandlers.becameValid())},_clear(){if(!(0,c.get)(this,"isEmpty")){var e=(0,c.get)(this,"errorsByAttributeName"),t=[];e.forEach(function(e,i){t.push(i)}),e.clear(),t.forEach(e=>{this.notifyPropertyChange(e)}),y().prototype.clear.call(this)}},has(e){return this.errorsFor(e).length>0}});var I=i(470310),M=i(18206);function k(e){return(0,M._k)(e)}var L=("undefined"!=typeof Symbol?Symbol:e=>`__${e}${Math.floor(Math.random()*Date.now())}__`)("DEBUG-ts-brand");function j(e){var t;return t=k(t=e.type||e.key),"hasMany"===e.kind&&(t=(0,I.ES)(t)),t}class V{constructor(e){this.meta=e,this[L]=void 0,this._type="",this.__inverseKey="",this.__inverseIsAsync=!0,this.__hasCalculatedInverse=!1,this.parentModelName=void 0,this.parentModelName=e.parentModelName}get key(){return this.meta.key}get kind(){return this.meta.kind}get type(){return this._type||(this._type=j(this.meta)),this._type}get options(){return this.meta.options}get name(){return this.meta.name}_inverseKey(e,t){return!1===this.__hasCalculatedInverse&&this._calculateInverse(e,t),this.__inverseKey}_inverseIsAsync(e,t){return!1===this.__hasCalculatedInverse&&this._calculateInverse(e,t),this.__inverseIsAsync}_calculateInverse(e,t){var i,r;this.__hasCalculatedInverse=!0;var o,a,n,s=null;(o=this.meta.options)&&null===o.inverse||(s=t.inverseFor(this.key,e)),s?(i=s.name,r=void 0===(n=(a=s).options&&a.options.async)||n):(i=null,r=!1),this.__inverseKey=i,this.__inverseIsAsync=r}}var B=(0,c.computed)(function(){var e=new Map;return(0,c.get)(this,"relationshipsByName").forEach(t=>{var{type:i}=t;e.has(i)||e.set(i,[]),e.get(i).push(t)}),e}).readOnly(),q=(0,c.computed)(function(){this.modelName;var e=(0,O.A)();return this.eachComputedProperty((t,i)=>{if(i.isRelationship){i.key=t;var r=j(i);e.includes(r)||e.push(r)}}),e}).readOnly(),H=(0,c.computed)(function(){var e=Object.create(null),t=this.modelName;return this.eachComputedProperty((i,r)=>{r.isRelationship&&(r.key=i,r.name=i,r.parentModelName=t,e[i]=function(e){return new V(e)}(r))}),e}),U=(0,c.computed)(function(){for(var e=new Map,t=(0,c.get)(this,"relationshipsObject"),i=Object.keys(t),r=0;r<i.length;r++){var o=t[i[r]];e.set(o.key,o)}return e}).readOnly();function G(e){return(e._internalModel||e.internalModel||e)._recordData||null}function W(e,t){return function(e){return(G(e)||e)._relationships}(e).get(t)}var $=i(296537),Y=i.n($),K=i(979295),Q=i(989272),X=i(316325);function Z(e,t){t.isDirty?e.send("becomeDirty"):e.send("propertyWasReset"),e.updateRecordArrays()}i(461029);var J={initialState:"uncommitted",isDirty:!0,uncommitted:{didSetProperty:Z,loadingData(){},propertyWasReset(e,t){e.hasChangedAttributes()||e.send("rolledBack")},pushedData(e){e.hasChangedAttributes()||e.transitionTo("loaded.saved")},becomeDirty(){},willCommit(e){e.transitionTo("inFlight")},reloadRecord(e,{resolve:t,options:i}){t(e.store._reloadRecord(e,i))},rolledBack(e){e.transitionTo("loaded.saved"),e.triggerLater("rolledBack")},becameInvalid(e){e.transitionTo("invalid")},rollback(e){e.rollbackAttributes(),e.triggerLater("ready")}},inFlight:{isSaving:!0,didSetProperty:Z,becomeDirty(){},pushedData(){},unloadRecord:ne,willCommit(){},didCommit(e){e.transitionTo("saved"),e.send("invokeLifecycleCallbacks",this.dirtyType)},rolledBack(e){e.triggerLater("rolledBack")},becameInvalid(e){e.transitionTo("invalid"),e.send("invokeLifecycleCallbacks")},becameError(e){e.transitionTo("uncommitted"),e.triggerLater("becameError",e)}},invalid:{isValid:!1,deleteRecord(e){e.transitionTo("deleted.uncommitted")},didSetProperty(e,t){e.removeErrorMessageFromAttribute(t.name),Z(e,t),e.hasErrors()||this.becameValid(e)},becameInvalid(){},becomeDirty(){},pushedData(){},willCommit(e){e.clearErrorMessages(),e.transitionTo("inFlight")},rolledBack(e){e.clearErrorMessages(),e.transitionTo("loaded.saved"),e.triggerLater("ready")},becameValid(e){e.transitionTo("uncommitted")},invokeLifecycleCallbacks(e){e.triggerLater("becameInvalid",e)}}};function ee(e){var t,i={};for(var r in e)t=e[r],i[r]=t&&"object"==typeof t?ee(t):t;return i}function te(e,t){for(var i in t)e[i]=t[i];return e}function ie(e){return te(ee(J),e)}var re=ie({dirtyType:"created",isNew:!0});
1re.invalid.rolledBack=function(e){e.transitionTo("deleted.saved"),e.triggerLater("rolledBack")},re.uncommitted.rolledBack=function(e){e.transitionTo("deleted.saved"),e.triggerLater("rolledBack")};var oe=ie({dirtyType:"updated"});function ae(e){e.transitionTo("deleted.saved"),e.send("invokeLifecycleCallbacks")}function ne(e){}re.uncommitted.deleteRecord=ae,re.invalid.deleteRecord=ae,re.uncommitted.rollback=function(e){J.uncommitted.rollback.apply(this,arguments),e.transitionTo("deleted.saved")},re.uncommitted.pushedData=function(e){e.transitionTo("loaded.updated.uncommitted"),e.triggerLater("didLoad")},re.uncommitted.propertyWasReset=function(){},oe.invalid.becameValid=function(e){e.transitionTo("loaded.saved")},oe.inFlight.unloadRecord=ne,oe.uncommitted.deleteRecord=function(e){e.transitionTo("deleted.uncommitted")},oe.invalid.rolledBack=function(e){e.clearErrorMessages(),e.transitionTo("loaded.saved"),e.triggerLater("rolledBack")};const se=function e(t,i,r){for(var o in(t=te(i?Object.create(i):{},t)).parentState=i,t.stateName=r,t)t.hasOwnProperty(o)&&"parentState"!==o&&"stateName"!==o&&"object"==typeof t[o]&&(t[o]=e(t[o],t,r+"."+o));return t}({isEmpty:!1,isLoading:!1,isLoaded:!1,isDirty:!1,isSaving:!1,isDeleted:!1,isNew:!1,isValid:!0,rolledBack(){},unloadRecord(e){},propertyWasReset(){},empty:{isEmpty:!0,loadingData(e,t){e._promiseProxy=t,e.transitionTo("loading")},loadedData(e){e.transitionTo("loaded.created.uncommitted"),e.triggerLater("ready")},pushedData(e){e.transitionTo("loaded.saved"),e.triggerLater("didLoad"),e.triggerLater("ready")}},loading:{isLoading:!0,exit(e){e._promiseProxy=null},pushedData(e){e.transitionTo("loaded.saved"),e.triggerLater("didLoad"),e.triggerLater("ready"),e.didCleanError()},becameError(e){e.triggerLater("becameError",e)},notFound(e){e.transitionTo("empty")}},loaded:{initialState:"saved",isLoaded:!0,loadingData(){},saved:{setup(e){e.hasChangedAttributes()&&e.adapterDidDirty()},didSetProperty:Z,pushedData(){},becomeDirty(e){e.transitionTo("updated.uncommitted")},willCommit(e){e.transitionTo("updated.inFlight")},reloadRecord(e,{resolve:t,options:i}){t(e.store._reloadRecord(e,i))},deleteRecord(e){e.transitionTo("deleted.uncommitted")},unloadRecord(e){},didCommit(){},notFound(){}},created:re,updated:oe},deleted:{initialState:"uncommitted",dirtyType:"deleted",isDeleted:!0,isLoaded:!0,isDirty:!0,setup(e){e.updateRecordArrays()},uncommitted:{willCommit(e){e.transitionTo("inFlight")},rollback(e){e.rollbackAttributes(),e.triggerLater("ready")},pushedData(){},becomeDirty(){},deleteRecord(){},rolledBack(e){e.transitionTo("loaded.saved"),e.triggerLater("ready"),e.triggerLater("rolledBack")}},inFlight:{isSaving:!0,unloadRecord:ne,willCommit(){},didCommit(e){e.transitionTo("saved"),e.send("invokeLifecycleCallbacks")},becameError(e){e.transitionTo("uncommitted"),e.triggerLater("becameError",e)},becameInvalid(e){e.transitionTo("invalid"),e.triggerLater("becameInvalid",e)}},saved:{isDirty:!1,setup(e){e.removeFromInverseRelationships()},invokeLifecycleCallbacks(e){e.triggerLater("didDelete",e),e.triggerLater("didCommit",e)},willCommit(){},didCommit(){},pushedData(){}},invalid:{isValid:!1,didSetProperty(e,t){e.removeErrorMessageFromAttribute(t.name),Z(e,t),e.hasErrors()||this.becameValid(e)},becameInvalid(){},becomeDirty(){},deleteRecord(){},willCommit(){},rolledBack(e){e.clearErrorMessages(),e.transitionTo("loaded.saved"),e.triggerLater("ready")},becameValid(e){e.transitionTo("uncommitted")}}},invokeLifecycleCallbacks(e,t){"created"===t?e.triggerLater("didCreate",e):e.triggerLater("didUpdate",e),e.triggerLater("didCommit",e)}},null,"root");class le{constructor(e,t={}){this.__attributes=null,this._belongsToRelationships=Object.create(null),this._belongsToIds=Object.create(null),this._hasManyRelationships=Object.create(null),this._hasManyIds=Object.create(null),this._internalModel=e,e.hasRecord&&this._attributes,this.id=e.id,this.adapterOptions=t.adapterOptions,this.include=t.include,this.modelName=e.modelName,this._changedAttributes=e.changedAttributes()}get record(){return this._internalModel.getRecord()}get _attributes(){var e=this.__attributes;if(null===e){var t=this.record;e=this.__attributes=Object.create(null),t.eachAttribute(i=>e[i]=(0,c.get)(t,i))}return e}get type(){return this._internalModel.modelClass}attr(e){if(e in this._attributes)return this._attributes[e];throw new(a())("Model '"+(0,l.inspect)(this.record)+"' has no attribute named '"+e+"' defined.")}attributes(){return(0,X.assign)({},this._attributes)}changedAttributes(){for(var e=Object.create(null),t=Object.keys(this._changedAttributes),i=0,r=t.length;i<r;i++){var o=t[i];e[o]=this._changedAttributes[o].slice()}return e}belongsTo(e,t){var i,r,o=t&&t.id,n=this._internalModel.store;if(o&&e in this._belongsToIds)return this._belongsToIds[e];if(!o&&e in this._belongsToRelationships)return this._belongsToRelationships[e];var s=n._relationshipMetaFor(this.modelName,null,e);if(!s||"belongsTo"!==s.kind)throw new(a())("Model '"+(0,l.inspect)(this.record)+"' has no belongsTo relationship named '"+e+"' defined.");var u=W(this,e).getData(),d=u&&u.data;return i=d&&n._internalModelForResource(d),u&&void 0!==u.data&&(r=i&&!i.isDeleted()?o?(0,c.get)(i,"id"):i.createSnapshot():null),o?this._belongsToIds[e]=r:this._belongsToRelationships[e]=r,r}hasMany(e,t){var i,r=t&&t.ids;if(r&&e in this._hasManyIds)return this._hasManyIds[e];if(!r&&e in this._hasManyRelationships)return this._hasManyRelationships[e];var o=this._internalModel.store,n=o._relationshipMetaFor(this.modelName,null,e);if(!n||"hasMany"!==n.kind)throw new(a())("Model '"+(0,l.inspect)(this.record)+"' has no hasMany relationship named '"+e+"' defined.");var s=W(this,e).getData();
1return s.data&&(i=[],s.data.forEach(e=>{var t=o._internalModelForResource(e);t.isDeleted()||(r?i.push(e.id):i.push(t.createSnapshot()))})),r?this._hasManyIds[e]=i:this._hasManyRelationships[e]=i,i}eachAttribute(e,t){this.record.eachAttribute(e,t)}eachRelationship(e,t){this.record.eachRelationship(e,t)}serialize(e){return this.record.store.serializerFor(this.modelName).serialize(this,e)}}var ue=i(161015);let ce;ce=class{constructor(){this.clear()}static create(){return new this}clear(){this.presenceSet=Object.create(null),this.list=[],this.size=0}add(e,t){let i=t||(0,ue.guidFor)(e),r=this.presenceSet,o=this.list;return!0!==r[i]&&(r[i]=!0,this.size=o.push(e)),this}delete(e,t){let i=t||(0,ue.guidFor)(e),r=this.presenceSet,o=this.list;if(!0===r[i]){delete r[i];let t=o.indexOf(e);return t>-1&&o.splice(t,1),this.size=o.length,!0}return!1}isEmpty(){return 0===this.size}has(e){if(0===this.size)return!1;let t=(0,ue.guidFor)(e);return!0===this.presenceSet[t]}forEach(e){if(0===this.size)return;let t=this.list;if(2===arguments.length)for(let i=0;i<t.length;i++)e.call(arguments[1],t[i]);else for(let i=0;i<t.length;i++)e(t[i])}toArray(){return this.list.slice()}copy(){let e=new(0,this.constructor);e.presenceSet=Object.create(null);for(let t in this.presenceSet)e.presenceSet[t]=this.presenceSet[t];return e.list=this.toArray(),e.size=this.size,e}};const de=ce;class pe extends de{static create(){return new this}addWithIndex(e,t){var i=(0,ue.guidFor)(e),r=this.presenceSet,o=this.list;if(!0!==r[i])return r[i]=!0,null==t?o.push(e):o.splice(t,0,e),this.size+=1,this}}var he=i(405891),me=i.n(he);function ge(e,...t){return function(){return e.apply(void 0,t)}}function fe(e,t){var i=e.finally(()=>{t()||(i._subscribers.length=0)});return i}function ye(e){return!((0,c.get)(e,"isDestroyed")||(0,c.get)(e,"isDestroying"))}function be(e,t,i){return fe((0,v.resolve)(e,i).then(t=>e),()=>ye(t))}const ve=d().extend(me(),u,{_inverseIsAsync:!1,isLoaded:!1,init(){this._super(...arguments),this.isLoaded=this.isLoaded||!1,this.length=0,this.promise=null,this.meta=this.meta||null,this.isPolymorphic=this.isPolymorphic||!1,this.currentState=[],this.flushCanonical(this.initialState,!1)},anyUnloaded(){return!!this.currentState.filter(e=>e._isDematerializing||!e.isLoaded())[0]},removeUnloadedInternalModel(){for(var e=0;e<this.currentState.length;++e){var t=this.currentState[e];if(t._isDematerializing||!t.isLoaded())return this.arrayContentWillChange(e,1,0),this.currentState.splice(e,1),this.set("length",this.currentState.length),this.arrayContentDidChange(e,1,0),!0}return!1},objectAt(e){var t=this.currentState[e];if(void 0!==t)return t.getRecord()},flushCanonical(e,t=!0){if(ye(this)){var i=function(e,t){for(var i=e.length,r=t.length,o=Math.min(i,r),a=null,n=0;n<o;n++)if(e[n]!==t[n]){a=n;break}null===a&&r!==i&&(a=o);var s=0,l=0;if(null!==a){for(var u=o-a,c=1;c<=o;c++)if(e[i-c]!==t[r-c]){u=c-1;break}s=r-u-a,l=i-u-a}return{firstChangeIndex:a,addedCount:s,removedCount:l}}(this.currentState,e);null!==i.firstChangeIndex&&(this.arrayContentWillChange(i.firstChangeIndex,i.removedCount,i.addedCount),this.set("length",e.length),this.currentState=e.slice(),this.arrayContentDidChange(i.firstChangeIndex,i.removedCount,i.addedCount),t&&i.addedCount>0&&this.internalModel.manyArrayRecordAdded(this.get("key")))}},replace(e,t,i){var r;t>0&&(r=this.currentState.slice(e,e+t),this.get("recordData").removeFromHasMany(this.get("key"),r.map(e=>G(e)))),i&&this.get("recordData").addToHasMany(this.get("key"),i.map(e=>G(e)),e),this.retrieveLatest()},retrieveLatest(){var e=this.get("recordData").getHasMany(this.get("key")),t=this.store._getHasManyByJsonApiResource(e);e.meta&&this.set("meta",e.meta),this.flushCanonical(t,!0)},reload(e){return this.get("store").reloadManyArray(this,this.get("internalModel"),this.get("key"),e)},save(){var e=this,t="DS: ManyArray#save "+(0,c.get)(this,"type"),i=(0,v.all)(this.invoke("save"),t).then(()=>e,null,"DS: ManyArray#save return ManyArray");return _.create({promise:i})},createRecord(e){var t=(0,c.get)(this,"store"),i=(0,c.get)(this,"type"),r=t.createRecord(i.modelName,e);return this.pushObject(r),r}});function we(e){return e&&e.links&&e.links.related}class _e{constructor(e,t){this.store=e,this.internalModel=t,this.recordData=void 0,this.recordData=G(this)}_resource(){}remoteType(){return we(this._resource())?"link":"id"}link(){var e=null,t=this._resource();return we(t)&&t.links&&(e=t.links.related),e}meta(){var e=null,t=this._resource();return t&&t.meta&&"object"==typeof t.meta&&(e=t.meta),e}}
1class Ae extends _e{constructor(...e){super(...e),this.type=this.internalModel.modelName}get _id(){return this.internalModel.id}id(){return this._id}remoteType(){return"identity"}push(e){return(0,v.resolve)(e).then(e=>this.store.push(e))}value(){return this.internalModel.hasRecord?this.internalModel.getRecord():null}load(){if(null!==this._id)return this.store.findRecord(this.type,this._id);throw new Error(`Unable to fetch record of type ${this.type} without an id`)}reload(){var e=this.value();return e?e.reload():this.load()}}class Te extends _e{constructor(e,t,i,r){super(e,t),this.key=r,this.belongsToRelationship=i,this.type=i.relationshipMeta.type,this.parent=t.recordReference,this.parentInternalModel=t}id(){var e=null,t=this._resource();return t&&t.data&&t.data.id&&(e=t.data.id),e}_resource(){return this.recordData.getBelongsTo(this.key)}push(e){return(0,v.resolve)(e).then(e=>{var t;return t=e instanceof Qe?e:this.store.push(e),this.belongsToRelationship.setCanonicalRecordData(G(t)),t})}value(){var e=this.parentInternalModel.store,t=this._resource();if(t&&t.data){var i=e._internalModelForResource(t.data);if(i&&i.isLoaded())return i.getRecord()}return null}load(e){return this.parentInternalModel.getBelongsTo(this.key,e)}reload(e){return this.parentInternalModel.reloadBelongsTo(this.key,e).then(e=>this.value())}}class Ce extends _e{constructor(e,t,i,r){super(e,t),this.key=r,this.hasManyRelationship=i,this.type=i.relationshipMeta.type,this.parent=t.recordReference,this.parentInternalModel=t}_resource(){return this.recordData.getHasMany(this.key)}remoteType(){var e=this._resource();return e&&e.links&&e.links.related?"link":"ids"}ids(){var e=this._resource(),t=[];return e.data&&(t=e.data.map(e=>e.id)),t}push(e){return(0,v.resolve)(e).then(e=>{var t=e;"object"==typeof e&&e.data&&(t=e.data);var i=t.map(e=>G(this.store.push(e)));return this.hasManyRelationship.computeChanges(i),this.internalModel.getHasMany(this.hasManyRelationship.key)})}_isLoaded(){return!!(0,c.get)(this.hasManyRelationship,"hasAnyRelationshipD
1ata")&&this.hasManyRelationship.members.toArray().every(e=>!0===this.parentInternalModel.store._internalModelForResource(e.getResourceIdentifier()).isLoaded())}value(){return this._isLoaded()?this.internalModel.getManyArray(this.key):null}load(e){return this.internalModel.getHasMany(this.key,e)}reload(e){return this.internalModel.reloadHasMany(this.key,e)}}const Se=function(e){return null==e||""===e?null:"string"==typeof e?e:"symbol"==typeof e?e.toString():""+e};class Re{constructor(e){this.modelName=e,this._idToModel=Object.create(null),this._models=[],this._metadata=null}get(e){return this._idToModel[e]||null}has(e){return!!this._idToModel[e]}get length(){return this._models.length}set(e,t){this._idToModel[e]=t}add(e,t){t&&(this._idToModel[t]=e),this._models.push(e)}remove(e,t){delete this._idToModel[t];var i=this._models.indexOf(e);-1!==i&&this._models.splice(i,1)}contains(e){return-1!==this._models.indexOf(e)}get models(){return this._models}get metadata(){return this._metadata||(this._metadata=Object.create(null))}clear(){var e=this._models;this._models=[];for(var t=0;t<e.length;t++)e[t].unloadRecord();this._metadata=null}}class De{constructor(){this._map=Object.create(null)}retrieve(e){var t=this._map[e];return void 0===t&&(t=this._map[e]=new Re(e)),t}clear(){for(var e=this._map,t=Object.keys(e),i=0;i<t.length;i++)e[t[i]].clear()}}var Oe=new WeakMap,Ee=1;function Fe(e){var t=Oe.get(e);return void 0===t&&(t=new Pe(e),Oe.set(e,t)),t}class Pe{constructor(e){this.store=e,this._identityMap=void 0,this._newlyCreated=void 0,this._identityMap=new De,this._newlyCreated=new De}lookup(e,t,i){var r=null===t?null:Se(t),o=this.peekId(e,r,i);return o?(o.hasScheduledDestroy()&&o.cancelDestroy(),o):this.build(e,r,null,i)}peekId(e,t,i){var r=null;return i&&(r=this._newlyCreatedModelsFor(e).get(i)),!r&&t&&(r=this.modelMapFor(e).get(t)),r}getByResource(e){var t=null;return e.clientId&&(t=this._newlyCreatedModelsFor(e.type).get(e.clientId)),null===t&&(t=this.lookup(e.type,e.id,e.clientId)),t}setRecordId(e,t,i){var r=this.peekId(e,t,i);if(null===r)throw new Error(`Cannot set the id ${t} on the record ${e}:${i} as there is no such record in the cache.`);var o=r.id,a=r.modelName;null!==o&&null===t||(this.peekIdOnly(a,t),this.modelMapFor(r.modelName).set(t,r),this._newlyCreatedModelsFor(r.modelName).remove(r,i),r.setId(t))}peekIdOnly(e,t){var i=this.modelMapFor(e).get(t);return i&&i.hasScheduledDestroy()&&(i.destroySync(),i=null),i}build(e,t,i,r){t&&this.peekIdOnly(e,t),null!==t||r||(r=`client-id:${this.newClientId()}`);var o=new Le(e,t,this.store,r);return r&&this._newlyCreatedModelsFor(e).add(o,r),this.modelMapFor(e).add(o,t),o}newClientId(){return Ee++}remove(e){var t=this.modelMapFor(e.modelName),i=e.id,r=e.clientId;i&&t.remove(e,i),r&&this._newlyCreatedModelsFor(e.modelName).remove(e,r)}modelMapFor(e){return this._identityMap.retrieve(e)}_newlyCreatedModelsFor(e){return this._newlyCreated.retrieve(e)}clear(e){void 0===e?this._identityMap.clear():this.modelMapFor(e).clear()}}var xe=i(96978);window.define("@ember-data/model/-private",function(){return(0,xe.A)(i(745440))});var Ne=Object.create(null),ze=Object.create(null),Ie=Object.create(null);function Me(e){return Ie[e]||(Ie[e]=e.split("."))}var ke=1;class Le{constructor(e,t,i,r){this.modelName=e,this.id=t,this.store=i,this.clientId=r,this.__recordData=void 0,this._isDestroyed=void 0,this.isError=void 0,this._pendingRecordArrayManagerFlush=void 0,this._isDematerializing=void 0,this.isReloading=void 0,this._doNotDestroy=void 0,this.isDestroying=void 0,this._promiseProxy=void 0,this._record=void 0,this._scheduledDestroy=void 0,this._modelClass=void 0,this.__deferredTriggers=void 0,this.__recordArrays=void 0,this._references=void 0,this._recordReference=void 0,this._manyArrayCache=Object.create(null),this._retainedManyArrayCache=Object.create(null),this._relationshipPromisesCache=Object.create(null),this._relationshipProxyCache=Object.create(null),this.currentState=void 0,this.error=void 0,this.__recordData=null,this[Y().GUID_KEY]=ke+++"internal-model",this._promiseProxy=null,this._record=null,this._isDestroyed=!1,this.isError=!1,this._pendingRecordArrayManagerFlush=!1,this._isDematerializing=!1,this._scheduledDestroy=null,this.resetRecord(),this._modelClass=null,this.__deferredTriggers=null,this.__recordArrays=null,this._references=null,this._recordReference=null}get modelClass(){return this._modelClass||(this._modelClass=this.store.modelFor(this.modelName))}get type(){return this.modelClass}get recordReference(){return null===this._recordReference&&(this._recordReference=new Ae(this.store,this)),this._recordReference}get _recordData(){if(null===this.__recordData){var e=this.store._createRecordData(this.modelName,this.id,this.clientId);return this._recordData=e,e}return this.__recordData}set _recordData(e){this.__recordData=e}get _recordArrays(){return null===this.__recordArrays&&(this.__recordArrays=new pe),this.__recordArrays}get references(){return null===this._references&&(this._references=Object.create(null)),this._references}get _deferredTriggers(){return null===this.__deferredTriggers&&(this.__deferredTriggers=[]),this.__deferredTriggers}isHiddenFromRecordArrays(){return!!this.isEmpty()||(e="root.deleted.saved"===this.currentState.stateName,this._isDematerializing||this.hasScheduledDestroy()||this.isDestroyed||e);var e}_isRecordFullyDeleted(){return!1}isRecordInUse(){var e=this._record;return e&&!(e.get("isDestroyed")||e.get("isDestroying"))}isEmpty(){return this.currentState.isEmpty}isLoading(){return this.currentState.isLoading}isLoaded(){return this.currentState.isLoaded}hasDirtyAttributes(){return this.currentState.hasDirtyAttributes}isSaving(){return this.currentState.isSaving}isDeleted(){return this.currentState.isDeleted}isNew(){return this.currentState.isNew}isValid(){return this.currentState.isValid}dirtyType(){return this.currentState.dirtyType}getRecord(e){if(!this._record&&!this._isDematerializing){var{store:t}=this,i={store:t,_internalModel:this,currentState:this.currentState,isError:this.isError,adapterError:this.error};if(void 0!==e){if("id"in e){var r=Se(e.id);null!==r&&this.setId(r)}var o=t._relationshipsDefinitionFor(this.modelName);if(null!==o)for(var a,n=Object.keys(e),s=0;s<n.length;s++){var l=n[s],u=o[l];void 0!==u&&(a="hasMany"===u.kind?Ve(e[l]):Be(e[l]),e[l]=a)}}var c=this._recordData._initRecordCreateOptions(e);(0,X.assign)(i,c),(0,K.setOwner)(i,(0,K.getOwner)(t)),this._record=t._modelFactoryFor(this.modelName).create(i),this._triggerDeferredTriggers()}return this._record}resetRecord(){this._record=null,this.isReloading=!1,this.error=null,this.currentState=se.empty}dematerializeRecord(){this._isDematerializing=!0,this._doNotDestroy=!1,this._record&&(this._record.destroy(),Object.keys(this._relationshipProxyCache).forEach(e
1=>{this._relationshipProxyCache[e].destroy&&this._relationshipProxyCache[e].destroy(),delete this._relationshipProxyCache[e]}),Object.keys(this._manyArrayCache).forEach(e=>{var t=this._retainedManyArrayCache[e]=this._manyArrayCache[e];delete this._manyArrayCache[e],t&&!t._inverseIsAsync&&t.clear()})),this._recordData.unloadRecord(),this.resetRecord(),this.updateRecordArrays()}deleteRecord(){this.send("deleteRecord")}save(e){var t="DS: Model#save "+this,i=w().defer(t);return this.store.scheduleSave(this,i,e),i.promise}startedReloading(){this.isReloading=!0,this.hasRecord&&(0,c.set)(this._record,"isReloading",!0)}linkWasLoadedForRelationship(e,t){var i={};i[e]=t,this._recordData.pushData({id:this.id,type:this.modelName,relationships:i})}finishedReloading(){this.isReloading=!1,this.hasRecord&&(0,c.set)(this._record,"isReloading",!1)}reload(e){this.startedReloading();var t=this,i="DS: Model#reload of "+this;return new v.Promise(function(i){t.send("reloadRecord",{resolve:i,options:e})},i).then(function(){return t.didCleanError(),t},function(e){throw t.didError(e),e},"DS: Model#reload complete, update flags").finally(function(){t.finishedReloading(),t.updateRecordArrays()})}unloadRecord(){this.isDestroyed||(this.send("unloadRecord"),this.dematerializeRecord(),null===this._scheduledDestroy&&(this._scheduledDestroy=Q.run.backburner.schedule("destroy",this,"_checkForOrphanedInternalModels")))}hasScheduledDestroy(){return!!this._scheduledDestroy}cancelDestroy(){this._doNotDestroy=!0,this._isDematerializing=!1,Q.run.cancel(this._scheduledDestroy),this._scheduledDestroy=null}destroySync(){this._isDematerializing&&this.cancelDestroy(),this._checkForOrphanedInternalModels(),this.isDestroyed||this.isDestroying||this.destroy()}_checkForOrphanedInternalModels(){this._isDematerializing=!1,this._scheduledDestroy=null,this.isDestroyed}eachRelationship(e,t){return this.modelClass.eachRelationship(e,t)}_findBelongsTo(e,t,i,r){return this.store._findBelongsToByJsonApiResource(t,this,i,r).then(i=>je(this,e,t._relationship,i,null),i=>je(this,e,t._relationship,null,i))}getBelongsTo(e,t){var i=this._recordData.getBelongsTo(e),r=this.store._relationshipMetaFor(this.modelName,null,e),o=this.store,a=r.options.async,n=void 0===a||a,s={key:e,store:o,originatingInternalModel:this,modelName:r.type};if(n){var l=i&&i.data?o._internalModelForResource(i.data):null;if(i._relationship.hasFailedLoadAttempt)return this._relationshipProxyCache[e];var u=this._findBelongsTo(e,i,r,t);return this._updatePromiseProxyFor("belongsTo",e,{promise:u,content:l?l.getRecord():null,_belongsToState:s})}return i&&i.data?o._internalModelForResource(i.data).getRecord():null}getManyArray(e,t=!1){var i=this.store._relationshipMetaFor(this.modelName,null,e),r=this._recordData.getHasMany(e),o=this._manyArrayCache[e];if(!o){var a=this.store._getHasManyByJsonApiResource(r),n=!!r._relationship&&r._relationship._inverseIsAsync();o=ve.create({store:this.store,type:this.store.modelFor(i.type),recordData:this._recordData,meta:r.meta,key:e,isPolymorphic:i.options.polymorphic,initialState:a.slice(),_inverseIsAsync:n,internalModel:this,isLoaded:!t}),this._manyArrayCache[e]=o}return this._retainedManyArrayCache[e]&&(this._retainedManyArrayCache[e].destroy(),delete this._retainedManyArrayCache[e]),o}fetchAsyncHasMany(e,t,i,r,o){var a=this._relationshipPromisesCache[e];return a||(a=this.store._findHasManyByJsonApiResource(i,this,t,o).then(e=>(r.retrieveLatest(),r.set("isLoaded",!0),r)).then(t=>je(this,e,i._relationship,t,null),t=>je(this,e,i._relationship,null,t)),this._relationshipPromisesCache[e]=a,a)}getHasMany(e,t){var i=this._recordData.getHasMany(e),r=this.store._relationshipMetaFor(this.modelName,null,e),o=r.options.async,a=void 0===o||o,n=this.getManyArray(e,a);if(a){if(i._relationship.hasFailedLoadAttempt)return this._relationshipProxyCache[e];var s=this.fetchAsyncHasMany(e,r,i,n,t);return this._updatePromiseProxyFor("hasMany",e,{promise:s,content:n})}return n}_updatePromiseProxyFor(e,t,i){var r=this._relationshipProxyCache[t];if(r)void 0!==i.content&&r.set("content",i.content),r.set("promise",i.promise);else{var o="hasMany"===e?D:S;this._relationshipProxyCache[t]=o.create(i)}return this._relationshipProxyCache[t]}
1reloadHasMany(e,t){var i=this._relationshipPromisesCache[e];if(i)return i;var r=this._recordData.getHasMany(e);r._relationship&&(r._relationship.setHasFailedLoadAttempt(!1),r._relationship.setShouldForceReload(!0));var o=this.store._relationshipMetaFor(this.modelName,null,e),a=this.getManyArray(e),n=this.fetchAsyncHasMany(e,o,r,a,t);return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("hasMany",e,{promise:n}):n}reloadBelongsTo(e,t){var i=this._relationshipPromisesCache[e];if(i)return i;var r=this._recordData.getBelongsTo(e);r._relationship&&(r._relationship.setHasFailedLoadAttempt(!1),r._relationship.setShouldForceReload(!0));var o=this.store._relationshipMetaFor(this.modelName,null,e),a=this._findBelongsTo(e,r,o,t);return this._relationshipProxyCache[e]?this._updatePromiseProxyFor("belongsTo",e,{promise:a}):a}destroyFromRecordData(){this._doNotDestroy?this._doNotDestroy=!1:this.destroy()}destroy(){this.isDestroying=!0,Object.keys(this._retainedManyArrayCache).forEach(e=>{this._retainedManyArrayCache[e].destroy(),delete this._retainedManyArrayCache[e]}),Fe(this.store).remove(this),this._isDestroyed=!0}eachAttribute(e,t){return this.modelClass.eachAttribute(e,t)}inverseFor(e){return this.modelClass.inverseFor(e)}setupData(e){var t=this._recordData.pushData(e,this.hasRecord);this.hasRecord&&this._record._notifyProperties(t),this.pushedData()}getAttributeValue(e){return this._recordData.getAttr(e)}setDirtyHasMany(e,t){return this._recordData.setDirtyHasMany(e,Ve(t))}setDirtyBelongsTo(e,t){return this._recordData.setDirtyBelongsTo(e,Be(t))}setDirtyAttribute(e,t){if(this.isDeleted())throw new(a())(`Attempted to set '${e}' to '${t}' on the deleted record ${this}`);if(this.getAttributeValue(e)!==t){this._recordData.setDirtyAttribute(e,t);var i=this._recordData.isAttrDirty(e);this.send("didSetProperty",{name:e,isDirty:i})}return t}get isDestroyed(){return this._isDestroyed}get hasRecord(){return!!this._record}createSnapshot(e){return new le(this,e)}loadingData(e){this.send("loadingData",e)}loadedData(){this.send("loadedData")}notFound(){this.send("notFound")}pushedData(){this.send("pushedData")}hasChangedAttributes(){return!(this.isLoading()&&!this.isReloading)&&this._recordData.hasChangedAttributes()}changedAttributes(){return this.isLoading()&&!this.isReloading?{}:this._recordData.changedAttributes()}adapterWillCommit(){this._recordData.willCommit(),this.send("willCommit")}adapterDidDirty(){this.send("becomeDirty"),this.updateRecordArrays()}send(e,t){var i=this.currentState;return i[e]||this._unhandledEvent(i,e,t),i[e](this,t)}manyArrayRecordAdded(e){this.hasRecord&&this._record.notifyHasManyAdded(e)}notifyHasManyChange(e){if(this.hasRecord){var t=this._manyArrayCache[e];t&&t.retrieveLatest(),this.updateRecordArrays()}}notifyBelongsToChange(e){this.hasRecord&&(this._record.notifyBelongsToChange(e,this._record),this.updateRecordArrays())}notifyPropertyChange(e){this.hasRecord&&(this._record.notifyPropertyChange(e),this.updateRecordArrays());var t=this._manyArrayCache[e]||this._retainedManyArrayCache[e];if(t){var i=t.removeUnloadedInternalModel();this._manyArrayCache[e]&&i&&(this._retainedManyArrayCache[e]=this._manyArrayCache[e],delete this._manyArrayCache[e])}}notifyStateChange(e){this.hasRecord&&(e&&"isNew"!==e||this.getRecord().notifyPropertyChange("isNew"),e&&"isDeleted"!==e||this.getRecord().notifyPropertyChange("isDeleted")),e&&"isDeletionCommitted"!==e||this.updateRecordArrays()}didCreateRecord(){this._recordData.clientDidCreate()}rollbackAttributes(){var e=this._recordData.rollbackAttributes();(0,c.get)(this,"isError")&&this.didCleanError(),this.send("rolledBack"),this._record&&e&&e.length>0&&this._record._notifyProperties(e)}transitionTo(e){var t,i,r,o,a=function(e){return ze[e]||(ze[e]=Me(e)[0])}(e),n=this.currentState,s=`${n.stateName}->${e}`;do{n.exit&&n.exit(this),n=n.parentState}while(!n[a]);var l=Ne[s];if(l)t=l.setups,i=l.enters,n=l.state;else{t=[],i=[];var u=Me(e);for(r=0,o=u.length;r<o;r++)(n=n[u[r]]).enter&&i.push(n),n.setup&&t.push(n);Ne[s]={setups:t,enters:i,state:n}}for(r=0,o=i.length;r<o;r++)i[r].enter(this);for(this.currentState=n,this.hasRecord&&(0,c.set)(this._record,"currentState",n),r=0,o=t.length;r<o;r++)t[r].setup(this);this.updateRecordArrays()}_unhandledEvent(e,t,i){var r="Attempted to handle event `"+t+"` ";throw r+="on "+String(this)+" while in state ",r+=e.stateName+". ",void 0!==i&&(r+="Called with "+(0,l.inspect)(i)+"."),new(a())(r)}triggerLater(...e){1===this._deferredTriggers.push(e)&&this.store._updateInternalModel(this)}_triggerDeferredTriggers(){if(this.hasRecord){for(var e=this._deferredTriggers,t=this._record,i=t.trigger,r=0,o=e.length;r<o;r++){var a=e[r];i.apply(t,a)}e.length=0}}removeFromInverseRelationships(e=!1){this._recordData.removeFromInverseRelationships(e)}
1preloadData(e){var t={};Object.keys(e).forEach(i=>{var r=(0,c.get)(e,i);this.modelClass.metaForProperty(i).isRelationship?(t.relationships||(t.relationships={}),t.relationships[i]=this._preloadRelationship(i,r)):(t.attributes||(t.attributes={}),t.attributes[i]=r)}),this._recordData.pushData(t)}_preloadRelationship(e,t){var i=this.modelClass.metaForProperty(e),r=i.type;return{data:"hasMany"===i.kind?t.map(e=>this._convertPreloadRelationshipToJSON(e,r)):this._convertPreloadRelationshipToJSON(t,r)}}_convertPreloadRelationshipToJSON(e,t){return"string"==typeof e||"number"==typeof e?{type:t,id:e}:{type:(i=e._internalModel?e._internalModel:e).modelName,id:i.id};var i}updateRecordArrays(){this.store.recordArrayManager.recordDidChange(this)}setId(e){var t=e!==this.id,i=this.id;if(this.id=e,t&&null!==e){if(null===i)this.store.setRecordId(this.modelName,e,this.clientId);else{var r=Fe(this.store).modelMapFor(this.modelName);r._idToModel[e]=r._idToModel[i],delete r._idToModel[i]}this._recordData.__setId&&this._recordData.__setId(e)}t&&this.hasRecord&&this._record.notifyPropertyChange("id")}didError(e){this.error=e,this.isError=!0,this.hasRecord&&this._record.setProperties({isError:!0,adapterError:e})}didCleanError(){this.error=null,this.isError=!1,this.hasRecord&&this._record.setProperties({isError:!1,adapterError:null})}adapterDidCommit(e){this.didCleanError();var t=this._recordData.didCommit(e);this.send("didCommit"),this.updateRecordArrays(),e&&this._record._notifyProperties(t)}addErrorMessageToAttribute(e,t){(0,c.get)(this.getRecord(),"errors")._add(e,t)}removeErrorMessageFromAttribute(e){(0,c.get)(this.getRecord(),"errors")._remove(e)}clearErrorMessages(){(0,c.get)(this.getRecord(),"errors")._clear()}hasErrors(){return(0,c.get)(this.getRecord(),"errors").get("length")>0}adapterDidInvalidate(e,t){var i;for(i in e)e.hasOwnProperty(i)&&this.addErrorMessageToAttribute(i,e[i]);this.send("becameInvalid"),this._recordData.commitWasRejected()}notifyErrorsChange(){var e;this._recordData.getErrors&&(e=this._recordData.getErrors({})||[],this.notifyInvalidErrorsChange(e))}notifyInvalidErrorsChange(e){this.getRecord().invalidErrorsChanged(e)}adapterDidError(e){this.send("becameError"),this.didError(e),this._recordData.commitWasRejected()}toString(){return`<${this.modelName}:${this.id}>`}referenceFor(e,t){var i=this.references[t];if(!i){var r=W(this,t);"belongsTo"===e?i=new Te(this.store,this,r,t):"hasMany"===e&&(i=new Ce(this.store,this,r,t)),this.references[t]=i}return i}}function je(e,t,i,r,o){if(delete e._relationshipPromisesCache[t],i.setShouldForceReload(!1),o){i.setHasFailedLoadAttempt(!0);var a=e._relationshipProxyCache[t];throw a&&"belongsTo"===i.kind&&(a.content.isDestroying&&a.set("content",null),a.set("promise",(0,v.resolve)(null))),o}return i.setHasFailedLoadAttempt(!1),i.setRelationshipIsStale(!1),r}function Ve(e){return e.map(Be)}function Be(e){if(!e)return null;if(e.then){var t=e.get&&e.get("content");return t?G(t):null}return G(e)}var{changeProperties:qe}=Y();function He(e,t,i,r){var o=r||[],a=(0,c.get)(t,"relationships");if(!a)return o;var n=a.get(e.modelName),s=Array.isArray(n)?n.filter(e=>{var r=t.metaForProperty(e.name).options;return!r.inverse&&null!==r.inverse||i===r.inverse}):null;return s&&o.push.apply(o,s),e.superclass&&He(e.superclass,t,i,o),o}var Ue,Ge,We=(0,c.computed)("currentState",function(e){return(0,c.get)(this._internalModel.currentState,e)}).readOnly(),$e=((0,c.computed)("errors.length",function(e){return!(this.get("errors.length")>0)}).readOnly(),We);Ue=We,Ge=We;var Ye=d().extend(u,{init(){this._super(...arguments)},_notifyNetworkChanges:function(){this.notifyPropertyChange("isValid")},isEmpty:We,isLoading:We,isLoaded:We,hasDirtyAttributes:(0,c.computed)("currentState.isDirty",function(){return this.get("currentState.isDirty")}),isSaving:We,isDeleted:Ue,isNew:Ge,isValid:$e,_markInvalidRequestAsClean(){},dirtyType:We,isError:!1,isReloading:!1,currentState:se.empty,_internalModel:null,store:null,errors:(0,c.computed)(function(){var e=z.create();return e._registerHandlers(()=>{this.send("becameInvalid")},()=>{this.send("becameValid")}),e}).readOnly(),invalidErrorsChanged(e){},_addErrorMessageToAttribute(e,t){this.get("errors")._add(e,t)},_clearErrorMessages(){this.get("errors")._clear()},adapterError:null,serialize(e){return this._internalModel.createSnapshot().serialize(e)},toJSON(e){var t=this._internalModel.store.serializerFor("-default"),i=this._internalModel.createSnapshot();return t.serialize(i,e)},ready:null,didLoad:null,didUpdate:null,didCreate:null,didDelete:null,becameInvalid:null,becameError:null,rolledBack:null,send(e,t){return this._internalModel.send(e,t)},transitionTo(e){return this._internalModel.transitionTo(e)},deleteRecord(){this._internalModel.deleteRecord()},destroyRecord(e){return this.deleteRecord(),this.save(e)},unloadRecord(){this.isDestroyed||this._internalModel.unloadRecord()},_notifyProperties(e){qe(()=>{for(var t,i=0,r=e.length;i<r;i++)t=e[i],this.notifyPropertyChange(t)}
1)},changedAttributes(){return this._internalModel.changedAttributes()},rollbackAttributes(){this._internalModel.rollbackAttributes()},_createSnapshot(){return this._internalModel.createSnapshot()},toStringExtension(){return this._internalModel&&this._internalModel.id},save(e){return A.create({promise:this._internalModel.save(e).then(()=>this)})},reload(e){var t;return"object"==typeof e&&null!==e&&e.adapterOptions&&(t={adapterOptions:e.adapterOptions}),A.create({promise:this._internalModel.reload(t).then(()=>this)})},trigger(e){var t=this[e];if("function"==typeof t){for(var i=arguments.length,r=new Array(i-1),o=1;o<i;o++)r[o-1]=arguments[o];t.apply(this,r)}this.has(e)&&this._super(...arguments)},attr(){},belongsTo(e){return this._internalModel.referenceFor("belongsTo",e)},hasMany(e){return this._internalModel.referenceFor("hasMany",e)},_debugInfo(){var e=["id"],t={},i=[];this.eachAttribute((t,i)=>e.push(t));var r=[{name:"Attributes",properties:e,expand:!0}];return this.eachRelationship((e,o)=>{var a=t[o.kind];void 0===a&&(a=t[o.kind]=[],r.push({name:o.name,properties:a,expand:!0})),a.push(e),i.push(e)}),r.push({name:"Flags",properties:["isLoaded","hasDirtyAttributes","isSaving","isDeleted","isError","isNew","isValid"]}),{propertyInfo:{includeOtherProperties:!0,groups:r,expensiveProperties:i}}},notifyBelongsToChange(e){this.notifyPropertyChange(e)},eachRelationship(e,t){this.constructor.eachRelationship(e,t)},relationshipFor(e){return(0,c.get)(this.constructor,"relationshipsByName").get(e)},inverseFor(e){return this.constructor.inverseFor(e,this._internalModel.store)},notifyHasManyAdded(e){this.notifyPropertyChange(`${e}.[]`)},eachAttribute(e,t){this.constructor.eachAttribute(e,t)}});Object.defineProperty(Ye.prototype,"data",{configurable:!1,get(){return G(this)._data}});var Ke={configurable:!1,set(e){var t=Se(e);null!==t&&this._internalModel.setId(t)},get(){return this._internalModel&&this._internalModel.id}};Object.defineProperty(Ye.prototype,"id",Ke),Ye.reopenClass({isModel:!0,modelName:null,typeForRelationship(e,t){var i=(0,c.get)(this,"relationshipsByName").get(e);return i&&t.modelFor(i.type)},inverseMap:(0,c.computed)(function(){return Object.create(null)}),inverseFor(e,t){var i=(0,c.get)(this,"inverseMap");if(i[e])return i[e];var r=this._findInverseFor(e,t);return i[e]=r,r},_findInverseFor(e,t){var i=this.typeForRelationship(e,t);if(!i)return null;var r,o,a,n,s=this.metaForProperty(e),l=s.options;if(null===l.inverse)return null;if(l.inverse)r=l.inverse,o=(a=(0,c.get)(i,"relationshipsByName").get(r)).kind,n=a.options;else{s.type,s.parentModelName;var u=He(this,i,e);if(0===u.length)return null;var d=u.filter(t=>{var r=i.metaForProperty(t.name).options;return e===r.inverse});1===d.length&&(u=d),r=u[0].name,o=u[0].kind,n=u[0].options}return{type:i,name:r,kind:o,options:n}},relationships:B,relationshipNames:(0,c.computed)(function(){var e={hasMany:[],belongsTo:[]};return this.eachComputedProperty((t,i)=>{i.isRelationship&&e[i.kind].push(t)}),e}),relatedTypes:q,relationshipsByName:U,relationshipsObject:H,fields:(0,c.computed)(function(){var e=new Map;return this.eachComputedProperty((t,i)=>{i.isRelationship?e.set(t,i.kind):i.isAttribute&&e.set(t,"attribute")}),e}).readOnly(),eachRelationship(e,t){(0,c.get)(this,"relationshipsByName").forEach((i,r)=>{e.call(t,r,i)})},eachRelatedType(e,t){for(var i=(0,c.get)(this,"relatedTypes"),r=0;r<i.length;r++){var o=i[r];e.call(t,o)}},determineRelationshipType(e,t){var i=e.key,r=e.kind,o=this.inverseFor(i,t);return o?"belongsTo"===o.kind?"belongsTo"===r?"oneToOne":"manyToOne":"belongsTo"===r?"oneToMany":"manyToMany":"belongsTo"===r?"oneToNone":"manyToNone"},attributes:(0,c.computed)(function(){var e=new Map;return this.eachComputedProperty((t,i)=>{i.isAttribute&&(i.name=t,e.set(t,i))}),e}).readOnly(),transformedAttributes:(0,c.computed)(function(){var e=new Map;return this.eachAttribute((t,i)=>{i.type&&e.set(t,i.type)}),e}).readOnly(),eachAttribute(e,t){(0,c.get)(this,"attributes").forEach((i,r)=>{e.call(t,r,i)})},eachTransformedAttribute(e,t){(0,c.get)(this,"transformedAttributes").forEach((i,r)=>{e.call(t,r,i)})},toString(){return`model:${(0,c.get)(this,"modelName")}`}});const Qe=Ye;i(55567);var Xe=i(804204),Ze=i.n(Xe),Je=i(186730),et="Either an id or a clientId is required as an argument.";class tt{constructor(e){this[L]=void 0,this._store=void 0,this._willUpdateManyArrays=void 0,this._pendingManyArrayUpdates=void 0,this._store=e,this._willUpdateManyArrays=!1,this._pendingManyArrayUpdates=[]}_hasModelFor(e){return this._store._hasModelFor(e)}
1_scheduleManyArrayUpdate(e,t,i,r){if((this._pendingManyArrayUpdates=this._pendingManyArrayUpdates||[]).push(e,t,i,r),!0!==this._willUpdateManyArrays){this._willUpdateManyArrays=!0;var o=this._store._backburner;o.join(()=>{o.schedule("syncRelationships",this,this._flushPendingManyArrayUpdates)})}}notifyErrorsChange(e,t,i){var r=Fe(this._store).peekId(e,t,i);r&&r.notifyErrorsChange()}_flushPendingManyArrayUpdates(){if(!1!==this._willUpdateManyArrays){var e=this._pendingManyArrayUpdates;this._pendingManyArrayUpdates=[],this._willUpdateManyArrays=!1;for(var t=Fe(this._store),i=0;i<e.length;i+=4){var r=e[i],o=e[i+1]||null,a=e[i+2],n=e[i+3],s=t.peekId(r,o,a);s&&s.notifyHasManyChange(n)}}}attributesDefinitionFor(e){return this._store._attributesDefinitionFor(e)}relationshipsDefinitionFor(e){return this._store._relationshipsDefinitionFor(e)}inverseForRelationship(e,t){var i=this._store.modelFor(e);return this.relationshipsDefinitionFor(e)[t]._inverseKey(this._store,i)}inverseIsAsyncForRelationship(e,t){var i=this._store.modelFor(e);return this.relationshipsDefinitionFor(e)[t]._inverseIsAsync(this._store,i)}notifyPropertyChange(e,t,i,r){if(!it(t,i))throw new Error(et);var o=Fe(this._store).peekId(e,t,i);o&&o.notifyPropertyChange(r)}notifyHasManyChange(e,t,i,r){if(!it(t,i))throw new Error(et);this._scheduleManyArrayUpdate(e,t,i,r)}notifyBelongsToChange(e,t,i,r){if(!it(t,i))throw new Error(et);var o=Fe(this._store).peekId(e,t,i);o&&o.notifyBelongsToChange(r)}notifyStateChange(e,t,i,r){var o=Fe(this._store).peekId(e,t,i);o&&o.notifyStateChange(r)}recordDataFor(e,t,i){if(!it(t,i))throw new Error(et);return this._store.recordDataFor(e,t,i)}setRecordId(e,t,i){this._store.setRecordId(e,t,i)}isRecordInUse(e,t,i){if(!it(t,i))throw new Error(et);var r=Fe(this._store).peekId(e,t,i);return!!r&&r.isRecordInUse()}disconnectRecord(e,t,i){if(!it(t,i))throw new Error(et);var r=Fe(this._store).peekId(e,t,i);r&&r.destroyFromRecordData()}}function it(e,t){return!(!e&&!t)}function rt(e,t,i,r,o,a){return e.normalizeResponse(t,i,r,o,a)}function ot(e,t,i){var r=t.serializer;return void 0===r&&(r=e.serializerFor(i)),null==r&&(r={extract:(e,t,i)=>i}),r}function at(e,t,i,r,o,a){var n=(0,O.A)(o.map(e=>e.createSnapshot(a.get(e)))),s=t.modelFor(i),l=e.findMany(t,s,r,n),u=`DS: Handle Adapter#findMany of '${i}'`;if(void 0===l)throw new Error("adapter.findMany returned undefined, this was very likely a mistake");return(l=be(l,t,u)).then(r=>{var o=rt(ot(t,e,i),t,s,r,null,"findMany");return t._push(o)},null,`DS: Extract payload of ${i}`)}function nt(e,t,i,r){var o,a,n=(o=t.data,a=(t,o)=>{var{id:a,type:n}=t;return function(e,t,i,r){var{id:o,type:a}=e;e.relationships||(e.relationships={});var{relationships:n}=e,s=function(e,t,i,r){return function({storeWrapper:e},t,i,r){var{name:o}=i,{modelName:a}=t,n=e.inverseForRelationship(a,o);if(n){var{meta:{kind:s}}=e.relationshipsDefinitionFor(r)[n];return{inverseKey:n,kind:s}}}(e,t,i,r)}(i,t,r,a);if(s){var{inverseKey:l,kind:u}=s,c=n[l]&&n[l].data;"hasMany"===u&&void 0===c||(n[l]=n[l]||{},n[l].data=function(e,t,{id:i,modelName:r}){var o,a={id:i,type:r};return"hasMany"===t?(o=e||[]).push(a):(o=e||{},(0,X.assign)(o,a)),o}(c,u,t))}}(t,i,e,r),{id:a,type:n}},Array.isArray(o)?o.map(a):a(o));e.push({data:{id:i.id,type:i.modelName,relationships:{[r.key]:{data:n}}}})}function st(e,t,i,r){var o=t.modelFor(i),a=t.peekAll(i),n=a._createSnapshot(r),s=v.Promise.resolve().then(()=>e.findAll(t,o,null,n));return(s=be(s,t,"DS: Handle Adapter#findAll of "+o)).then(r=>{var n=rt(ot(t,e,i),t,o,r,null,"findAll");return t._push(n),t._didUpdateAll(i),a},null,"DS: Extract payload of findAll ${modelName}")}function lt(e){var t=Object.create(null);for(var i in e)t[i]=e[i];return t}class ut{constructor(e,t,i={}){this._snapshots=null,this._recordArray=e,this.length=e.get("length"),this._type=null,this.meta=t,this.adapterOptions=i.adapterOptions,this.include=i.include}get type(){return this._type||(this._type=this._recordArray.get("type"))}snapshots(){return null!==this._snapshots||(this._snapshots=this._recordArray._takeSnapshot()),this._snapshots}}const ct=y().extend(u,{init(){this._super(...arguments),this.set("content",this.content||null),this.isLoaded=this.isLoaded||!1,this.isUpdating=!1,this.store=this.store||null,this._updatingPromise=null},replace(){throw new Error(`The result of a server query (for all ${this.modelName} types) is immutable. To modify contents, use toArray()`)},type:(0,c.computed)("modelName",function(){return this.modelName?this.store.modelFor(this.modelName):null}).readOnly(),objectAtContent(e){var t=(0,c.get)(this,"content").objectAt(e);return t&&t.getRecord()},update(){if((0,c.get)(this,"isUpdating"))return this._updatingPromise;this.set("isUpdating",!0);var e=this._update().finally(()=>{this._updatingPromise=null,this.get("isDestroying")||this.get("isDestroyed")||this.set("isUpdating",!1)});return this._updatingPromise=e,e},_update(){return this.store.findAll(this.modelName,{reload:!0})},_pushInternalModels(e){(0,c.get)(this,"content").pushObjects(e)},_removeInternalModels(e){(0,c.get)(this,"content").removeObjects(e)},save(){var e=`DS: RecordArray#save ${this.modelName}`,t=v.Promise.all(this.invoke("save"),e).then(()=>this,null,"DS: RecordArray#save return RecordArray");return _.create({promise:t})}
1,_dissociateFromOwnRecords(){this.get("content").forEach(e=>{var t=e.__recordArrays;t&&t.delete(this)})},_unregisterFromManager(){this.manager.unregisterRecordArray(this)},willDestroy(){this._unregisterFromManager(),this._dissociateFromOwnRecords(),(0,c.set)(this,"content",null),(0,c.set)(this,"length",0),this._super(...arguments)},_createSnapshot(e){return new ut(this,this.get("meta"),e)},_takeSnapshot(){return(0,c.get)(this,"content").map(e=>e.createSnapshot())}}),dt=ct.extend({init(){this.set("content",this.get("content")||(0,O.A)()),this._super(...arguments),this.query=this.query||null,this.links=this.links||null},replace(){throw new Error(`The result of a server query (on ${this.modelName}) is immutable.`)},_update(){var e=(0,c.get)(this,"store"),t=(0,c.get)(this,"query");return e._query(this.modelName,t,this)},_setInternalModels(e,t){this.get("content").setObjects(e),this.setProperties({isLoaded:!0,isUpdating:!1,meta:lt(t.meta),links:lt(t.links)}),this.manager._associateWithRecordArray(e,this),this.has("didLoad")&&(0,Q.once)(this,"trigger","didLoad")}});var pt=Q.run.backburner;class ht{constructor(e){this.store=e.store,this.isDestroying=!1,this.isDestroyed=!1,this._liveRecordArrays=Object.create(null),this._pending=Object.create(null),this._adapterPopulatedRecordArrays=[]}recordDidChange(e){this.internalModelDidChange(e)}recordWasLoaded(e){this.internalModelDidChange(e)}internalModelDidChange(e){var t=e.modelName;if(!e._pendingRecordArrayManagerFlush){e._pendingRecordArrayManagerFlush=!0;var i=this._pending;1===(i[t]=i[t]||[]).push(e)&&pt.schedule("actions",this,this._flush)}}_flushPendingInternalModelsForModelName(e,t){for(var i=[],r=0;r<t.length;r++){var o=t[r];o._pendingRecordArrayManagerFlush=!1,o.isHiddenFromRecordArrays()&&i.push(o)}var a=this._liveRecordArrays[e];a&&this.updateLiveRecordArray(a,t),i.length>0&&function(e){for(var t=0;t<e.length;t++){for(var i=e[t],r=i._recordArrays.list,o=0;o<r.length;o++)r[o]._removeInternalModels([i]);i._recordArrays.clear()}}(i)}
1_flush(){var e=this._pending;for(var t in this._pending=Object.create(null),e)this._flushPendingInternalModelsForModelName(t,e[t])}updateLiveRecordArray(e,t){return function(e,t){for(var i=[],r=[],o=0;o<t.length;o++){var a=t[o],n=a.isHiddenFromRecordArrays(),s=a._recordArrays;n||a.isEmpty()||s.has(e)||(i.push(a),s.add(e)),n&&(r.push(a),s.delete(e))}return i.length>0&&e._pushInternalModels(i),r.length>0&&e._removeInternalModels(r),(i.length||r.length)>0}(e,t)}_syncLiveRecordArray(e,t){var i=this._pending[t],r=Array.isArray(i),o=!r||0===i.length,a=Fe(this.store).modelMapFor(t),n=(0,c.get)(a,"length")===(0,c.get)(e,"length");if(!o||!n){r&&(this._flushPendingInternalModelsForModelName(t,i),delete this._pending[t]);for(var s=this._visibleInternalModelsByType(t),l=[],u=0;u<s.length;u++){var d=s[u],p=d._recordArrays;!1===p.has(e)&&(p.add(e),l.push(d))}l.length&&e._pushInternalModels(l)}}_didUpdateAll(e){var t=this._liveRecordArrays[e];t&&(0,c.set)(t,"isUpdating",!1)}liveRecordArrayFor(e){var t=this._liveRecordArrays[e];if(t)this._syncLiveRecordArray(t,e);else{var i=this._visibleInternalModelsByType(e);t=this.createRecordArray(e,i),this._liveRecordArrays[e]=t}return t}_visibleInternalModelsByType(e){for(var t=Fe(this.store).modelMapFor(e)._models,i=[],r=0;r<t.length;r++){var o=t[r];!1===o.isHiddenFromRecordArrays()&&i.push(o)}return i}createRecordArray(e,t){var i=ct.create({modelName:e,content:(0,O.A)(t||[]),store:this.store,isLoaded:!0,manager:this});return Array.isArray(t)&>(t,i),i}createAdapterPopulatedRecordArray(e,t,i,r){var o;return Array.isArray(i)?gt(i,o=dt.create({modelName:e,query:t,content:(0,O.A)(i),store:this.store,manager:this,isLoaded:!0,isUpdating:!1,meta:lt(r.meta),links:lt(r.links)})):o=dt.create({modelName:e,query:t,content:(0,O.A)(),store:this.store,manager:this}),this._adapterPopulatedRecordArrays.push(o),o}unregisterRecordArray(e){var t=e.modelName,i=function(e,t){var i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}(this._adapterPopulatedRecordArrays,e);if(!i){var r=this._liveRecordArrays[t];r&&e===r&&delete this._liveRecordArrays[t]}}_associateWithRecordArray(e,t){gt(e,t)}willDestroy(){Object.keys(this._liveRecordArrays).forEach(e=>this._liveRecordArrays[e].destroy()),this._adapterPopulatedRecordArrays.forEach(mt),this.isDestroyed=!0}destroy(){this.isDestroying=!0,pt.schedule("actions",this,this.willDestroy)}}function mt(e){e.destroy()}function gt(e,t){for(var i=0,r=e.length;i<r;i++)e[i]._recordArrays.add(t)}class ft{constructor(e,t,i,r,o){this.inverseIsAsync=void 0,this.kind=void 0,this.recordData=void 0,this.members=void 0,this.canonicalMembers=void 0,this.store=void 0,this.key=void 0,this.inverseKey=void 0,this.isAsync=void 0,this.isPolymorphic=void 0,this.relationshipMeta=void 0,this.inverseKeyForImplicit=void 0,this.meta=void 0,this.__inverseMeta=void 0,this._tempModelName=void 0,this.shouldForceReload=!1,this.relationshipIsStale=void 0,this.hasDematerializedInverse=void 0,this.hasAnyRelationshipD
1ata=void 0,this.relationshipIsEmpty=void 0,this.hasFailedLoadAttempt=!1,this.link=void 0,this.willSync=void 0,this.inverseIsAsync=o,this.kind=i.kind;var a=i.options.async,n=i.options.polymorphic;this.recordData=r,this.members=new pe,this.canonicalMembers=new pe,this.store=e,this.key=i.key||null,this.inverseKey=t,this.isAsync=void 0===a||a,this.isPolymorphic=void 0!==n&&n,this.relationshipMeta=i,this.inverseKeyForImplicit=this._tempModelName+this.key,this.meta=null,this.__inverseMeta=void 0,this.relationshipIsStale=!1,this.hasDematerializedInverse=!1,this.hasAnyRelationshipData=!1,this.relationshipIsEmpty=!0}get isNew(){return this.recordData.isNew()}_inverseIsAsync(){return!!this.inverseIsAsync}_inverseIsSync(){return!(!this.inverseKey||this.inverseIsAsync)}_hasSupportForImplicitRelationships(e){return void 0!==e._implicitRelationships&&null!==e._implicitRelationships}_hasSupportForRelationships(e){return void 0!==e._relationships&&null!==e._relationships}get _inverseMeta(){if(void 0===this.__inverseMeta){var e=null;if(this.inverseKey){var t=this.relationshipMeta.type,i=this.store.modelFor(t);e=(0,c.get)(i,"relationshipsByName").get(this.inverseKey)}this.__inverseMeta=e}return this.__inverseMeta}recordDataDidDematerialize(){var e=this.inverseKey;e&&this.forAllMembers(t=>{if(this._hasSupportForRelationships(t)){var i=W(t,e),r=t.getBelongsTo(e)._relationship;r&&r.inverseRecordData&&this.recordData!==r.inverseRecordData||i.inverseDidDematerialize(this.recordData)}})}forAllMembers(e){for(var t=Object.create(null),i=0;i<this.members.list.length;i++){var r=this.members.list[i],o=(0,ue.guidFor)(r);t[o]||(t[o]=!0,e(r))}for(var a=0;a<this.canonicalMembers.list.length;a++){var n=this.canonicalMembers.list[a],s=(0,ue.guidFor)(n);t[s]||(t[s]=!0,e(n))}}inverseDidDematerialize(e){!this.isAsync||e&&e.isNew()?(this.removeRecordDataFromOwn(e),this.removeCanonicalRecordDataFromOwn(e),this.setRelationshipIsEmpty(!0)):this.setHasDematerializedInverse(!0)}updateMeta(e){this.meta=e}clear(){for(var e=this.members.list;e.length>0;){var t=e[0];this.removeRecordData(t)}for(var i=this.canonicalMembers.list;i.length>0;){var r=i[0];this.removeCanonicalRecordData(r)}}removeAllRecordDatasFromOwn(){this.setRelationshipIsStale(!0),this.members.clear()}removeAllCanonicalRecordDatasFromOwn(){this.canonicalMembers.clear(),this.flushCanonicalLater()}removeRecordDatas(e){e.forEach(e=>this.removeRecordData(e))}addRecordDatas(e,t){e.forEach(e=>{this.addRecordData(e,t),void 0!==t&&t++})}addCanonicalRecordDatas(e,t){for(var i=0;i<e.length;i++)void 0!==t?this.addCanonicalRecordData(e[i],i+t):this.addCanonicalRecordData(e[i])}addCanonicalRecordData(e,t){this.canonicalMembers.has(e)||(this.canonicalMembers.add(e),this.setupInverseRelationship(e)),this.flushCanonicalLater(),this.setHasAnyRelationshipD
1ata(!0)}setupInverseRelationship(e){if(this.inverseKey){if(!this._hasSupportForRelationships(e))return;W(e,this.inverseKey).addCanonicalRecordData(this.recordData)}else{if(!this._hasSupportForImplicitRelationships(e))return;var t=e._implicitRelationships,i=t[this.inverseKeyForImplicit];i||(i=t[this.inverseKeyForImplicit]=new ft(this.store,this.key,{options:{async:this.isAsync}},e)),i.addCanonicalRecordData(this.recordData)}}removeCanonicalRecordDatas(e,t){for(var i=0;i<e.length;i++)void 0!==t?this.removeCanonicalRecordData(e[i],i+t):this.removeCanonicalRecordData(e[i])}removeCanonicalRecordData(e,t){this.canonicalMembers.has(e)&&(this.removeCanonicalRecordDataFromOwn(e),this.inverseKey?this.removeCanonicalRecordDataFromInverse(e):this._hasSupportForImplicitRelationships(e)&&e._implicitRelationships[this.inverseKeyForImplicit]&&e._implicitRelationships[this.inverseKeyForImplicit].removeCanonicalRecordData(this.recordData)),this.flushCanonicalLater()}addRecordData(e,t){this.members.has(e)||(this.members.addWithIndex(e,t),this.notifyRecordRelationshipAdded(e,t),this._hasSupportForRelationships(e)&&this.inverseKey?W(e,this.inverseKey).addRecordData(this.recordData):this._hasSupportForImplicitRelationships(e)&&(e._implicitRelationships[this.inverseKeyForImplicit]||(e._implicitRelationships[this.inverseKeyForImplicit]=new ft(this.store,this.key,{options:{async:this.isAsync}},e,this.isAsync)),e._implicitRelationships[this.inverseKeyForImplicit].addRecordData(this.recordData))),this.setHasAnyRelationshipD
1ata(!0)}removeRecordData(e){this.members.has(e)&&(this.removeRecordDataFromOwn(e),this.inverseKey?this.removeRecordDataFromInverse(e):this._hasSupportForImplicitRelationships(e)&&e._implicitRelationships[this.inverseKeyForImplicit]&&e._implicitRelationships[this.inverseKeyForImplicit].removeRecordData(this.recordData))}removeRecordDataFromInverse(e){if(this._hasSupportForRelationships(e)){var t=W(e,this.inverseKey);t&&t.removeRecordDataFromOwn(this.recordData)}}removeRecordDataFromOwn(e,t){this.members.delete(e)}removeCanonicalRecordDataFromInverse(e){if(this._hasSupportForRelationships(e)){var t=W(e,this.inverseKey);t&&t.removeCanonicalRecordDataFromOwn(this.recordData)}}removeCanonicalRecordDataFromOwn(e,t){this.canonicalMembers.delete(e),this.flushCanonicalLater()}removeCompletelyFromInverse(){if(this.inverseKey){var e=Object.create(null),t=this.recordData,i=i=>{var r=(0,ue.guidFor)(i);this._hasSupportForRelationships(i)&&void 0===e[r]&&(W(i,this.inverseKey).removeCompletelyFromOwn(t),e[r]=!0)};this.members.forEach(i),this.canonicalMembers.forEach(i),this.isAsync||this.clear()}}
1removeCompletelyFromOwn(e){this.canonicalMembers.delete(e),this.members.delete(e)}flushCanonical(){this.members.list,this.willSync=!1,this.members=this.canonicalMembers.copy()}flushCanonicalLater(){this.willSync||(this.willSync=!0,this.store._updateRelationshipState(this))}updateLink(e){this.link=e}updateRecordDatasFromAdapter(e){this.setHasAnyRelationshipData(!0),this.computeChanges(e)}computeChanges(e){}notifyRecordRelationshipAdded(e,t){}setHasAnyRelationshipData(e){this.hasAnyRelationshipData=e}setHasDematerializedInverse(e){this.hasDematerializedInverse=e}setRelationshipIsStale(e){this.relationshipIsStale=e}setRelationshipIsEmpty(e){this.relationshipIsEmpty=e}setShouldForceReload(e){this.shouldForceReload=e}setHasFailedLoadAttempt(e){this.hasFailedLoadAttempt=e}push(e,t){var i=!1,r=!1;if(e.meta&&this.updateMeta(e.meta),void 0!==e.data)i=!0,this.updateData(e.data,t);else if(!1===this.isAsync&&!this.hasAnyRelationshipData){i=!0;var o="hasMany"===this.kind?[]:null;this.updateData(o,t)}if(e.links&&e.links.related){var a=function(e){switch(typeof e){case"object":return e;case"string":return{href:e}}return null}(e.links.related);a&&a.href&&a.href!==this.link&&(r=!0,this.updateLink(a.href))}if(this.setHasFailedLoadAttempt(!1),i){var n=null===e.data||Array.isArray(e.data)&&0===e.data.length;
1this.setHasAnyRelationshipData(!0),this.setRelationshipIsStale(!1),this.setHasDematerializedInverse(!1),this.setRelationshipIsEmpty(n)}else if(r&&(this.setRelationshipIsStale(!0),!t)){var s=this.recordData;this.recordData.storeWrapper.notifyPropertyChange(s.modelName,s.id,s.clientId,this.key)}}localStateIsEmpty(){}updateData(e,t){}destroy(){}}class yt extends ft{constructor(e,t,i,r,o){super(e,t,i,r,o),this.canonicalState=void 0,this.currentState=void 0,this._willUpdateManyArray=void 0,this._pendingManyArrayUpdates=void 0,this.key=void 0,this.canonicalState=[],this.currentState=[],this._willUpdateManyArray=!1,this._pendingManyArrayUpdates=null,this.key=i.key}addCanonicalRecordData(e,t){this.canonicalMembers.has(e)||(void 0!==t?this.canonicalState.splice(t,0,e):this.canonicalState.push(e),super.addCanonicalRecordData(e,t))}inverseDidDematerialize(e){super.inverseDidDematerialize(e),this.isAsync&&this.notifyManyArrayIsStale()}addRecordData(e,t){this.members.has(e)||(super.addRecordData(e,t),void 0===t&&(t=this.currentState.length),this.currentState.splice(t,0,e),this.notifyHasManyChange())}removeCanonicalRecordDataFromOwn(e,t){var i=t;this.canonicalMembers.has(e)&&(void 0===i&&(i=this.canonicalState.indexOf(e)),i>-1&&this.canonicalState.splice(i,1),super.removeCanonicalRecordDataFromOwn(e,t))}removeAllCanonicalRecordDatasFromOwn(){super.removeAllCanonicalRecordDatasFromOwn(),this.canonicalMembers.clear(),this.canonicalState.splice(0,this.canonicalState.length),super.removeAllCanonicalRecordDatasFromOwn()}removeCompletelyFromOwn(e){super.removeCompletelyFromOwn(e);var t=this.canonicalState.indexOf(e);-1!==t&&this.canonicalState.splice(t,1),this.removeRecordDataFromOwn(e)}flushCanonical(){var e=this.canonicalState.filter(e=>!e.isDeleted());this.currentState=e,super.flushCanonical(),this.notifyHasManyChange()}removeRecordDataFromOwn(e,t){super.removeRecordDataFromOwn(e,t);var i=t||this.currentState.indexOf(e);-1!==i&&(this.currentState.splice(i,1),this.notifyHasManyChange())}notifyRecordRelationshipAdded(){this.notifyHasManyChange()}computeChanges(e=[]){var t=this.canonicalMembers,i=[],r=function(e){var t=new pe;if(e)for(var i=0,r=e.length;i<r;i++)t.add(e[i]);return t}(e);t.forEach(e=>{r.has(e)||i.push(e)}),this.removeCanonicalRecordDatas(i);for(var o=0,a=e.length;o<a;o++){var n=e[o];this.removeCanonicalRecordData(n),this.addCanonicalRecordData(n,o)}}setInitialRecordDatas(e){if(!1!==Array.isArray(e)&&e&&0!==e.length){for(var t=0;t<e.length;t++){var i=e[t];this.canonicalMembers.has(i)||(this.canonicalMembers.add(i),this.members.add(i),this.setupInverseRelationship(i))}this.canonicalState=this.canonicalMembers.toArray()}}notifyManyArrayIsStale(){var e=this.recordData;e.storeWrapper.notifyPropertyChange(e.modelName,e.id,e.clientId,this.key)}notifyHasManyChange(){var e=this.recordData;e.storeWrapper.notifyHasManyChange(e.modelName,e.id,e.clientId,this.key)}getData(){var e={};
1return this.hasAnyRelationshipData&&(e.data=this.currentState.map(e=>e.getResourceIdentifier())),this.link&&(e.links={related:this.link}),this.meta&&(e.meta=this.meta),e._relationship=this,e}updateData(e,t){var i;if((0,r.isNone)(e))i=void 0;else{i=new Array(e.length);for(var o=0;o<e.length;o++)i[o]=this.recordData.storeWrapper.recordDataFor(e[o].type,e[o].id)}t?this.setInitialRecordDatas(i):this.updateRecordDatasFromAdapter(i)}get allInverseRecordsAreLoaded(){var e=this.currentState.reduce((e,t)=>e||t.isEmpty(),!1);return!e&&this.willSync&&(e=this.canonicalState.reduce((e,t)=>e||!t.isEmpty(),!1)),!e}}class bt extends ft{constructor(e,t,i,r,o){super(e,t,i,r,o),this.inverseRecordData=void 0,this.canonicalState=void 0,this.key=void 0,this.key=i.key,this.inverseRecordData=null,this.canonicalState=null,this.key=i.key}setRecordData(e){e?this.addRecordData(e):this.inverseRecordData&&this.removeRecordData(this.inverseRecordData),this.setHasAnyRelationshipData(!0),this.setRelationshipIsStale(!1),this.setRelationshipIsEmpty(!1)}setCanonicalRecordData(e){e?this.addCanonicalRecordData(e):this.canonicalState&&this.removeCanonicalRecordData(this.canonicalState),this.flushCanonicalLater()}setInitialCanonicalRecordData(e){e&&(this.canonicalMembers.add(e),this.members.add(e),this.inverseRecordData=this.canonicalState=e,this.setupInverseRelationship(e))}addCanonicalRecordData(e){this.canonicalMembers.has(e)||(this.canonicalState&&this.removeCanonicalRecordData(this.canonicalState),this.canonicalState=e,super.addCanonicalRecordData(e),this.setHasAnyRelationshipD
1ata(!0),this.setRelationshipIsEmpty(!1))}inverseDidDematerialize(){super.inverseDidDematerialize(this.inverseRecordData),this.notifyBelongsToChange()}removeCompletelyFromOwn(e){super.removeCompletelyFromOwn(e),this.canonicalState===e&&(this.canonicalState=null),this.inverseRecordData===e&&(this.inverseRecordData=null,this.notifyBelongsToChange())}removeCompletelyFromInverse(){super.removeCompletelyFromInverse(),this.inverseRecordData=null}flushCanonical(){this.inverseRecordData&&this.inverseRecordData.isNew()&&!this.canonicalState?this.willSync=!1:(this.inverseRecordData!==this.canonicalState&&(this.inverseRecordData=this.canonicalState,this.notifyBelongsToChange()),super.flushCanonical())}addRecordData(e){this.members.has(e)||(this.inverseRecordData&&this.removeRecordData(this.inverseRecordData),this.inverseRecordData=e,super.addRecordData(e),this.notifyBelongsToChange())}removeRecordDataFromOwn(e){this.members.has(e)&&(this.inverseRecordData=null,super.removeRecordDataFromOwn(e),this.notifyBelongsToChange())}removeAllRecordDatasFromOwn(){super.removeAllRecordDatasFromOwn(),this.inverseRecordData=null,this.notifyBelongsToChange()}notifyBelongsToChange(){var e=this.recordData;this.recordData.storeWrapper.notifyBelongsToChange(e.modelName,e.id,e.clientId,this.key)}removeCanonicalRecordDataFromOwn(e){this.canonicalMembers.has(e)&&(this.canonicalState=null,this.setHasAnyRelationshipD
1ata(!0),this.setRelationshipIsEmpty(!0),super.removeCanonicalRecordDataFromOwn(e))}removeAllCanonicalRecordDatasFromOwn(){super.removeAllCanonicalRecordDatasFromOwn(),this.canonicalState=null}getData(){var e,t={};return this.inverseRecordData&&(e=this.inverseRecordData.getResourceIdentifier()),null===this.inverseRecordData&&this.hasAnyRelationshipData&&(e=null),this.link&&(t.links={related:this.link}),void 0!==e&&(t.data=e),this.meta&&(t.meta=this.meta),t._relationship=this,t}get allInverseRecordsAreLoaded(){var e=this.inverseRecordData;return!(null!==e&&e.isEmpty())}updateData(e,t){var i;(0,r.isNone)(e)&&(i=null),null!==i&&(i=this.recordData.storeWrapper.recordDataFor(e.type,e.id)),t?this.setInitialCanonicalRecordData(i):this.setCanonicalRecordData(i)}}class vt{constructor(e){this.recordData=e,this._store=void 0,this._storeWrapper=void 0,this.initializedRelationships=void 0,this.initializedRelationships=Object.create(null),this._storeWrapper=e.storeWrapper,this._store=this._storeWrapper._store}has(e){return!!this.initializedRelationships[e]}forEach(e){var t=this.initializedRelationships;Object.keys(t).forEach(i=>{e(i,t[i])})}get(e){var t=this.initializedRelationships,i=t[e];if(!i){var r=this.recordData,o=this.recordData.storeWrapper.relationshipsDefinitionFor(this.recordData.modelName)[e];o&&(i=t[e]=function(e,t,i,r){var o=i.storeWrapper.inverseForRelationship(i.modelName,r),a=i.storeWrapper.inverseIsAsyncForRelationship(i.modelName,r);return"hasMany"===e.kind?new yt(t,o,e,i,a):new bt(t,o,e,i,a)}(o,this._store,r,e))}return i}}var wt=1;class _t{constructor(e,t,i,r){this.modelName=e,this.id=t,this.clientId=i,this.storeWrapper=r,this._errors=void 0,this.__relationships=void 0,this.__implicitRelationships=void 0,this.isDestroyed=void 0,this._isNew=void 0,this._bfsId=void 0,this.__attributes=void 0,this.__inFlightAttributes=void 0,this.__data=void 0,this._scheduledDestroy=void 0,this._isDeleted=void 0,this._isDeletionCommited=void 0,this.__relationships=null,this.__implicitRelationships=null,this.storeWrapper=r,this.isDestroyed=!1,this._isNew=!1,this._bfsId=0,this.reset()}getResourceIdentifier(){return{id:this.id,type:this.modelName,clientId:this.clientId}}pushData(e,t){var i;return this._isNew&&(this._isNew=!1,this.notifyStateChange()),t&&(i=this._changedKeys(e.attributes)),(0,X.assign)(this._data,e.attributes),this.__attributes&&this._updateChangedAttributes(),e.relationships&&this._setupRelationships(e),e.id&&(this.id=Se(e.id)),i}willCommit(){this._inFlightAttributes=this._attributes,this._attributes=null}hasChangedAttributes(){return null!==this.__attributes&&Object.keys(this.__attributes).length>0}_clearErrors(){}getErrors(){return[]}isEmpty(){return null===this.__attributes&&null===this.__inFlightAttributes&&null===this.__data}deleteRecord(){this._isDeleted=!0,this.notifyStateChange()}isDeleted(){return this._isDeleted}setIsDeleted(e){this._isDeleted=e,this._isNew&&this._deletionConfirmed(),this.notifyStateChange()}isDeletionCommitted(){return this._isDeletionCommited}reset(){this.__attributes=null,this.__inFlightAttributes=null,this.__data=null,this._errors=void 0}_setupRelationships(e){for(var t=this.storeWrapper.relationshipsDefinitionFor(this.modelName),i=Object.keys(t),r=0;r<i.length;r++){var o=i[r];if(e.relationships[o]){var a=e.relationships[o];this._relationships.get(o).push(a)}}}_updateChangedAttributes(){for(var e=this.changedAttributes(),t=Object.keys(e),i=this._attributes,r=0,o=t.length;r<o;r++){var a=t[r],n=e[a];n[0]===n[1]&&delete i[a]}}changedAttributes(){for(var e=this._data,t=this._attributes,i=this._inFlightAttributes,r=(0,X.assign)({},i,t),o=Object.create(null),a=Object.keys(r),n=0,s=a.length;n<s;n++){var l=a[n];o[l]=[e[l],r[l]]}return o}isNew(){return this._isNew}rollbackAttributes(){var e;return this._isDeleted=!1,this.hasChangedAttributes()&&(e=Object.keys(this._attributes),this._attributes=null),this.isNew()&&(this.removeFromInverseRelationships(!0),this._isDeleted=!0,this._isNew=!1),this._inFlightAttributes=null,this._clearErrors(),this.notifyStateChange(),e}_deletionConfirmed(){this.removeFromInverseRelationships()}
1didCommit(e){this._isDeleted&&(this._deletionConfirmed(),this._isDeletionCommited=!0),this._isNew=!1;var t=null;e&&(e.relationships&&this._setupRelationships(e),e.id&&(this.storeWrapper.setRecordId(this.modelName,e.id,this.clientId),this.id=Se(e.id)),t=e.attributes||null);var i=this._changedKeys(t);return(0,X.assign)(this._data,this.__inFlightAttributes,t),this._inFlightAttributes=null,this._updateChangedAttributes(),this._clearErrors(),this.notifyStateChange(),i}notifyStateChange(){}getHasMany(e){return this._relationships.get(e).getData()}setDirtyHasMany(e,t){var i=this._relationships.get(e);i.clear(),i.addRecordDatas(t)}addToHasMany(e,t,i){this._relationships.get(e).addRecordDatas(t,i)}removeFromHasMany(e,t){this._relationships.get(e).removeRecordDatas(t)}commitWasRejected(e,t){var i=Object.keys(this._inFlightAttributes);if(i.length>0)for(var r=this._attributes,o=0;o<i.length;o++)void 0===r[i[o]]&&(r[i[o]]=this._inFlightAttributes[i[o]]);this._inFlightAttributes=null}getBelongsTo(e){return this._relationships.get(e).getData()}setDirtyBelongsTo(e,t){this._relationships.get(e).setRecordData(t)}setDirtyAttribute(e,t){this._attributes[e]=t,t===(e in this._inFlightAttributes?this._inFlightAttributes[e]:this._data[e])&&delete this._attributes[e]}__setId(e){this.id!==e&&(this.id=e)}getAttr(e){return e in this._attributes?this._attributes[e]:e in this._inFlightAttributes?this._inFlightAttributes[e]:this._data[e]}hasAttr(e){return e in this._attributes||e in this._inFlightAttributes||e in this._data}unloadRecord(){this.isDestroyed||(this._destroyRelationships(),this.reset(),this._scheduledDestroy||(this._scheduledDestroy=Q.run.backburner.schedule("destroy",this,"_cleanupOrphanedRecordDatas")))}_cleanupOrphanedRecordDatas(){var e=this._allRelatedRecordDatas();if(function(e){for(var t=0;t<e.length;++t)if(e[t].isRecordInUse())return!1;return!0}(e))for(var t=0;t<e.length;++t){var i=e[t];i.isDestroyed||i.destroy()}this._scheduledDestroy=null}destroy(){this._relationships.forEach((e,t)=>t.destroy()),this.isDestroyed=!0,this.storeWrapper.disconnectRecord(this.modelName,this.id,this.clientId)}isRecordInUse(){return this.storeWrapper.isRecordInUse(this.modelName,this.id,this.clientId)}_directlyRelatedRecordDatas(){var e=[];return this._relationships.forEach((t,i)=>{var r=i.members.list,o=i.canonicalMembers.list;e=e.concat(r,o)}),e}_allRelatedRecordDatas(){var e=[],t=[],i=wt++;for(t.push(this),this._bfsId=i;t.length>0;){var r=t.shift();e.push(r);for(var o=r._directlyRelatedRecordDatas(),a=0;a<o.length;++a){var n=o[a];n instanceof _t&&n._bfsId<i&&(t.push(n),n._bfsId=i)}}return e}isAttrDirty(e){return void 0!==this._attributes[e]&&(void 0!==this._inFlightAttributes[e]?this._inFlightAttributes[e]:this._data[e])!==this._attributes[e]}get _attributes(){return null===this.__attributes&&(this.__attributes=Object.create(null)),this.__attributes}set _attributes(e){this.__attributes=e}get _relationships(){return null===this.__relationships&&(this.__relationships=new vt(this)),this.__relationships}get _data(){return null===this.__data&&(this.__data=Object.create(null)),this.__data}set _data(e){this.__data=e}get _implicitRelationships(){if(null===this.__implicitRelationships){var e=Object.create(null);return this.__implicitRelationships=e,e}return this.__implicitRelationships}get _inFlightAttributes(){return null===this.__inFlightAttributes&&(this.__inFlightAttributes=Object.create(null)),this.__inFlightAttributes}set _inFlightAttributes(e){this.__inFlightAttributes=e}_initRecordCreateOptions(e){var t={};if(void 0!==e)for(var{modelName:i,storeWrapper:r}=this,o=r.attributesDefinitionFor(i),a=r.relationshipsDefinitionFor(i),n=this._relationships,s=Object.keys(e),l=0;l<s.length;l++){var u=s[l],c=e[u];if("id"!==u){var d=a[u]||o[u],p=void 0;switch(void 0!==d?d.kind:null){case"attribute":this.setDirtyAttribute(u,c);break;case"belongsTo":this.setDirtyBelongsTo(u,c),(p=n.get(u)).setHasAnyRelationshipD
1ata(!0),p.setRelationshipIsEmpty(!1);break;case"hasMany":this.setDirtyHasMany(u,c),(p=n.get(u)).setHasAnyRelationshipData(!0),p.setRelationshipIsEmpty(!1);break;default:t[u]=c}}else this.id=c}return t}removeFromInverseRelationships(e=!1){this._relationships.forEach((t,i)=>{i.removeCompletelyFromInverse(),!0===e&&i.clear()});var t=this._implicitRelationships;this.__implicitRelationships=null,Object.keys(t).forEach(i=>{var r=t[i];r.removeCompletelyFromInverse(),!0===e&&r.clear()})}_destroyRelationships(){this._relationships.forEach((e,t)=>At(t));var e=this._implicitRelationships;this.__implicitRelationships=null,Object.keys(e).forEach(t=>{At(e[t])})}clientDidCreate(){this._isNew=!0}_changedKeys(e){var t=[];if(e){var i,o,a,n,s,l=Object.keys(e),u=l.length,c=this.hasChangedAttributes();for(c&&(s=this._attributes),i=(0,X.assign)(Object.create(null),this._data,this.__inFlightAttributes),o=0;o<u;o++)a=e[n=l[o]],!0===c&&void 0!==s[n]||(0,r.isEqual)(i[n],a)||t.push(n)}return t}toString(){return`<${this.modelName}:${this.id}>`}}function At(e){e.recordDataDidDematerialize(),e._inverseIsSync()&&(e.removeAllRecordDatasFromOwn(),e.removeAllCanonicalRecordDatasFromOwn())}const Tt=new(Y()._Backburner)(["normalizeRelationships","syncRelationships","finished"]);function Ct(e,t){return T(e.then(e=>e.getRecord()),t)}var St=Q.run.backburner,{ENV:Rt}=Y(),Dt=1,Ot=Ze().extend({init(){this._super(...arguments),this._backburner=Tt,this.recordArrayManager=new ht({store:this}),this._pendingSave=[],this._modelFactoryCache=Object.create(null),this._relationshipsDefCache=Object.create(null),this._attributesDefCache=Object.create(null),this._pendingSave=[],this._updatedRelationships=[],this._pushedInternalModels=[],this._updatedInternalModels=[],this._pendingFetch=new Map,this._adapterCache=Object.create(null),this._serializerCache=Object.create(null),this.storeWrapper=new tt(this)},_backburner:null,adapter:"-json-api",defaultAdapter:(0,c.computed)("adapter",function(){var e=(0,c.get)(this,"adapter");return this.adapterFor(e)}),createRecord(e,t){return St.join(()=>this._backburner.join(()=>{var i=k(e),o=(0,X.assign)({},t);(0,r.isNone)(o.id)&&(o.id=this._generateId(i,o)),o.id=Se(o.id);var a=Fe(this).build(i,o.id);return a.loadedData(),a.didCreateRecord(),a.getRecord(o)}))},_generateId(e,t){var i=this.adapterFor(e);return i&&i.generateIdForRecord?i.generateIdForRecord(this,e,t):null},deleteRecord(e){e.deleteRecord()},unloadRecord(e){e.unloadRecord()},find(e,t,i){return this.findRecord(e,t)},findRecord(e,t,i){var r=k(e),o=Se(t),a=Fe(this).lookup(r,o,null);return i=i||{},this.hasRecordForId(r,o)?Ct(this._findRecord(a,i),`DS: Store#findRecord ${r} with id: ${t}`):this._findByInternalModel(a,i)},_findRecord(e,t){if(t.reload)return this._scheduleFetch(e,t);var i=e.createSnapshot(t),r=this.adapterFor(e.modelName);return r.shouldReloadRecord(this,i)?this._scheduleFetch(e,t):(!1===t.backgroundReload||(t.backgroundReload||r.shouldBackgroundReloadRecord(this,i))&&this._scheduleFetch(e,t),v.Promise.resolve(e))},_findByInternalModel(e,t={}){return t.preload&&e.preloadData(t.preload),Ct(this._findEmptyInternalModel(e,t),`DS: Store#findRecord ${e.modelName} with id: ${e.id}`)},_findEmptyInternalModel(e,t){return e.isEmpty()?this._scheduleFetch(e,t):e.isLoading()?e._promiseProxy:v.Promise.resolve(e)},findByIds(e,t){for(var i=new Array(t.length),r=k(e),o=0;o<t.length;o++)i[o]=this.findRecord(r,t[o]);return C((0,v.all)(i).then(O.A,null,`DS: Store#findByIds of ${r} complete`))},_fetchRecord(e,t){var i=e.modelName;return function(e,t,i,r,o,a){var n=o.createSnapshot(a),{modelName:s}=o,l=v.Promise.resolve().then(()=>e.findRecord(t,i,r,n));return(l=be(l,t,`DS: Handle Adapter#findRecord of '${s}' with id: '${r}'`)).then(o=>{var a=rt(ot(t,e,s),t,i,o,r,"findRecord");return t._push(a)},e=>{throw o.notFound(),o.isEmpty()&&o.unloadRecord(),e},`DS: Extract payload of '${s}'`)}(this.adapterFor(i),this,e.type,e.id,e,t)},_scheduleFetchMany(e,t){for(var i=new Array(e.length),r=0;r<e.length;r++)i[r]=this._scheduleFetch(e[r],t);return v.Promise.all(i)},_scheduleFetch(e,t){if(e._promiseProxy)return e._promiseProxy;var{id:i,modelName:r}=e,o=(0,v.defer)(`Fetching ${r}' with id: ${i}`),a={internalModel:e,resolver:o,options:t},n=o.promise;
1e.loadingData(n),0===this._pendingFetch.size&&St.schedule("actions",this,this.flushAllPendingFetches);var s=this._pendingFetch;return s.has(r)||s.set(r,[]),s.get(r).push(a),n},flushAllPendingFetches(){this.isDestroyed||this.isDestroying||(this._pendingFetch.forEach(this._flushPendingFetchForType,this),this._pendingFetch.clear())},_flushPendingFetchForType(e,t){for(var i=this,r=i.adapterFor(t),o=!!r.findMany&&r.coalesceFindRequests,a=e.length,n=new Array(a),s=Object.create(null),l=new WeakMap,u=0;u<a;u++){var c=e[u],d=c.internalModel;n[u]=d,l.set(d,c.options),s[d.id]=c}function p(e){var t=i._fetchRecord(e.internalModel,e.options);e.resolver.resolve(t)}function h(e,t){for(var i=Object.create(null),r=0,o=e.length;r<o;r++){var a=e[r],n=s[a.id];i[a.id]=a,n&&n.resolver.resolve(a)}for(var l=[],u=0,c=t.length;u<c;u++){var d=t[u];i[d.id]||l.push(d)}l.length&&m(l)}function m(e,t){for(var i=0,r=e.length;i<r;i++){var o=e[i],a=s[o.id];a&&a.resolver.reject(t||new Error(`Expected: '${o}' to be present in the adapter provided payload, but it was not found.`))}}if(o){for(var g=new Array(a),f=0;f<a;f++)g[f]=n[f].createSnapshot(l.get(S));for(var y=r.groupRecordsForFindMany(this,g),b=0,v=y.length;b<v;b++){for(var w=y[b],_=y[b].length,A=new Array(_),T=new Array(_),C=0;C<_;C++){var S=w[C]._internalModel;T[C]=S,A[C]=S.id}_>1?function(e){at(r,i,t,A,e,l).then(function(t){h(t,e)}).catch(function(t){m(e,t)})}(T):1===A.length&&p(s[T[0].id])}}else for(var R=0;R<a;R++)p(e[R])},getReference(e,t){var i=k(e),r=Se(t);return Fe(this).lookup(i,r,null).recordReference},peekRecord(e,t){var i=k(e),r=Se(t);return this.hasRecordForId(i,r)?Fe(this).lookup(i,r,null).getRecord():null},_reloadRecord(e,t){var{id:i,modelName:r}=e;return this.adapterFor(r),this._scheduleFetch(e,t)},hasRecordForId(e,t){var i=k(e),r=Se(t),o=Fe(this).peekId(i,r,null);return!!o&&o.isLoaded()},recordForId(e,t){return Fe(this).lookup(e,Se(t),null).getRecord()},findMany(e,t){for(var i=new Array(e.length),r=0;r<e.length;r++)i[r]=this._findEmptyInternalModel(e[r],t);return v.Promise.all(i)},findHasMany(e,t,i,r){return function(e,t,i,r,o,a){var n=i.createSnapshot(a),s=t.modelFor(o.type),l=e.findHasMany(t,n,r,o),u=`DS: Handle Adapter#findHasMany of '${i.modelName}' : '${o.type}'`;return(l=fe(l=be(l,t,u),ge(ye,i))).then(r=>{var a=rt(ot(t,e,o.type),t,s,r,null,"findHasMany");nt(t,a,i,o);var n=t._push(a);return n.meta=a.meta,n},null,`DS: Extract payload of '${i.modelName}' : hasMany '${o.type}'`)}(this.adapterFor(e.modelName),this,e,t,i,r)},_findHasManyByJsonApiResource(e,t,i,r){if(!e)return(0,v.resolve)([]);var{relationshipIsStale:o,allInverseRecordsAreLoaded:a,hasDematerializedInverse:n,hasAnyRelationshipD
1ata:s,relationshipIsEmpty:l,shouldForceReload:u}=e._relationship;if(e.links&&e.links.related&&(u||n||o||!a&&!l))return this.findHasMany(t,e.links.related,i,r).then(e=>{var r={data:e.map(e=>G(e).getResourceIdentifier())};return void 0!==e.meta&&(r.meta=e.meta),t.linkWasLoadedForRelationship(i.key,r),e});var c=s&&!l,d=n||l&&Array.isArray(e.data)&&e.data.length>0;if(!u&&!o&&(c||d)){var p=e.data.map(e=>this._internalModelForResource(e));return this.findMany(p,r)}if(s&&!l||d){var h=e.data.map(e=>this._internalModelForResource(e));return this._scheduleFetchMany(h,r)}return(0,v.resolve)([])},_getHasManyByJsonApiResource(e){var t=[];return e&&e.data&&(t=e.data.map(e=>this._internalModelForResource(e))),t},findBelongsTo(e,t,i,r){return function(e,t,i,r,o,a){var n=i.createSnapshot(a),s=t.modelFor(o.type),l=e.findBelongsTo(t,n,r,o),u=`DS: Handle Adapter#findBelongsTo of ${i.modelName} : ${o.type}`;return(l=fe(l=be(l,t,u),ge(ye,i))).then(r=>{var a=rt(ot(t,e,o.type),t,s,r,null,"findBelongsTo");return a.data?(nt(t,a,i,o),t._push(a)):null},null,`DS: Extract payload of ${i.modelName} : ${o.type}`)}(this.adapterFor(e.modelName),this,e,t,i,r)},_fetchBelongsToLinkFromResource(e,t,i,r){return e&&e.links&&e.links.related?this.findBelongsTo(t,e.links.related,i,r).then(e=>{var r=e&&G(e).getResourceIdentifier();return t.linkWasLoadedForRelationship(i.key,{data:r}),null===e?null:e.getRecord()}):(0,v.resolve)(null)},_findBelongsToByJsonApiResource(e,t,i,r){if(!e)return(0,v.resolve)(null);var o=e.data?this._internalModelForResource(e.data):null,{relationshipIsStale:a,allInverseRecordsAreLoaded:n,hasDematerializedInverse:s,hasAnyRelationshipD
1ata:l,relationshipIsEmpty:u,shouldForceReload:c}=e._relationship,d=e.links&&e.links.related&&(c||s||a||!n&&!u);if(o&&o.isLoading())return o._promiseProxy.then(()=>o.getRecord());if(d)return this._fetchBelongsToLinkFromResource(e,t,i,r);var p=l&&n&&!u,h=s||u&&e.data,m=void 0===e.data||null===e.data;return c||a||!p&&!h?m||null!==e.data.id?m?(0,v.resolve)(null):this._scheduleFetch(o,r).then(()=>o.getRecord()):(0,v.resolve)(o.getRecord()):m?(0,v.resolve)(null):this._findByInternalModel(o,r)},query(e,t,i){var r={};i&&i.adapterOptions&&(r.adapterOptions=i.adapterOptions);var o=k(e);return this._query(o,t,null,r)},_query(e,t,i,r){return C(function(e,t,i,r,o,a){var n=t.modelFor(i);o=o||t.recordArrayManager.createAdapterPopulatedRecordArray(i,r);var s=v.Promise.resolve().then(()=>e.query(t,n,r,o,a));return(s=be(s,t,`DS: Handle Adapter#query of ${i}`)).then(a=>{var s=rt(ot(t,e,i),t,n,a,null,"query"),l=t._push(s);return o?o._setInternalModels(l,s):o=t.recordArrayManager.createAdapterPopulatedRecordArray(i,r,l,s),o},null,`DS: Extract payload of query ${i}`)}(this.adapterFor(e),this,e,t,i,r))},queryRecord(e,t,i){var r=k(e),o=this.adapterFor(r),a={};return i&&i.adapterOptions&&(a.adapterOptions=i.adapterOptions),T(function(e,t,i,r,o){var a=t.modelFor(i),n=v.Promise.resolve().then(()=>e.queryRecord(t,a,r,o));return(n=be(n,t,`DS: Handle Adapter#queryRecord of ${i}`)).then(r=>{var o=rt(ot(t,e,i),t,a,r,null,"queryRecord");return t._push(o)},null,`DS: Extract payload of queryRecord ${i}`)}(o,this,r,t,a).then(e=>e?e.getRecord():null))},findAll(e,t){var i=k(e);return this._fetchAll(i,this.peekAll(i),t)},_fetchAll(e,t,i={}){var r=this.adapterFor(e);if(i.reload)return(0,c.set)(t,"isUpdating",!0),C(st(r,this,e,i));var o=t._createSnapshot(i);return r.shouldReloadAll(this,o)?((0,c.set)(t,"isUpdating",!0),C(st(r,this,e,i))):(!1===i.backgroundReload||(i.backgroundReload||r.shouldBackgroundReloadAll(this,o))&&((0,c.set)(t,"isUpdating",!0),st(r,this,e,i)),C(v.Promise.resolve(t)))},_didUpdateAll(e){this.recordArrayManager._didUpdateAll(e)},peekAll(e){var t=k(e);return this.recordArrayManager.liveRecordArrayFor(t)},unloadAll(e){var t=Fe(this);if(void 0===e)t.clear();else{var i=k(e);t.clear(i)}},filter(){},scheduleSave(e,t,i){var r=e.createSnapshot(i);if(e._isRecordFullyDeleted())return t.resolve(),t.promise;e.adapterWillCommit(),this._pendingSave.push({snapshot:r,resolver:t}),St.scheduleOnce("actions",this,this.flushPendingSave)}
1,flushPendingSave(){var e=this._pendingSave.slice();this._pendingSave=[];for(var t=0,i=e.length;t<i;t++){var r=e[t],o=r.snapshot,a=r.resolver,n=o._internalModel,s=this.adapterFor(n.modelName),l=void 0;"root.deleted.saved"!==n.currentState.stateName?(l=n.isNew()?"createRecord":n.isDeleted()?"deleteRecord":"updateRecord",a.resolve(Et(s,this,l,o))):a.resolve()}},didSaveRecord(e,t){var i;t&&(i=t.data),e.adapterDidCommit(i)},recordWasInvalid(e,t,i){e.adapterDidInvalidate(t)},recordWasError(e,t){e.adapterDidError(t)},setRecordId(e,t,i){Fe(this).setRecordId(e,t,i)},_load(e){var t=k(e.type),i=Se(e.id),r=Fe(this).lookup(t,i),o=!1===r.currentState.isEmpty;return r.setupData(e),o?this.recordArrayManager.recordDidChange(r):this.recordArrayManager.recordWasLoaded(r),r},modelFor(e){var t=this._modelFactoryFor(e);return t.class?t.class:t},_modelFactoryFor(e){var t=k(e),i=Ft(this,this._modelFactoryCache,t);if(null===i)throw new(a())(`No model was found for '${t}'`);return i},_hasModelFor(e){var t=k(e);return null!==Ft(this,this._modelFactoryCache,t)},push(e){var t=this._push(e);return Array.isArray(t)?t.map(e=>e.getRecord()):null===t?null:t.getRecord()},_push(e){return this._backburner.join(()=>{var t,i,r=e.included;if(r)for(t=0,i=r.length;t<i;t++)this._pushInternalModel(r[t]);if(Array.isArray(e.data)){i=e.data.length;var o=new Array(i);for(t=0;t<i;t++)o[t]=this._pushInternalModel(e.data[t]);return o}return null===e.data?null:this._pushInternalModel(e.data)})},_pushInternalModel(e){return e.type,this._load(e)},pushPayload(e,t){var i,r;if(t){r=t;var o=k(e);i=this.serializerFor(o)}else r=e,i=this.serializerFor("application");i.pushPayload(this,r)},reloadManyArray:(e,t,i,r)=>t.reloadHasMany(i,r),reloadBelongsTo:(e,t,i,r)=>t.reloadBelongsTo(i,r),_relationshipMetaFor(e,t,i){var r=this.modelFor(e);return(0,c.get)(r,"relationshipsByName").get(i)},_attributesDefinitionFor(e){var t=this._attributesDefCache[e];if(void 0===t){var i=this.modelFor(e),r=(0,c.get)(i,"attributes");t=Object.create(null),r.forEach((e,i)=>t[i]=e),this._attributesDefCache[e]=t}return t},_relationshipsDefinitionFor(e){var t=this._relationshipsDefCache[e];if(void 0===t){var i=this.modelFor(e);t=(0,c.get)(i,"relationshipsObject")||null,this._relationshipsDefCache[e]=t}return t},_internalModelForResource(e){return Fe(this).getByResource(e)},_internalModelForId(e,t,i){return Fe(this).lookup(e,t,i)},_createRecordData(e,t,i){return this.createRecordDataFor(e,t,i,this.storeWrapper)},createRecordDataFor:(e,t,i,r)=>new _t(e,t,i,r),recordDataFor(e,t,i){return G(Fe(this).lookup(e,t,i))},normalize(e,t){var i=k(e),r=this.serializerFor(i),o=this.modelFor(i);return r.normalize(o,t)},newClientId:()=>Dt++,recordWasLoaded(e){this.recordArrayManager.recordWasLoaded(e)},_internalModelsFor(e){return Fe(this).modelMapFor(e)},adapterFor(e){var t=k(e),{_adapterCache:i}=this,r=i[t];if(r)return r;var o=(0,K.getOwner)(this);if(void 0!==(r=o.lookup(`adapter:${t}`)))return(0,c.set)(r,"store",this),i[t]=r,r;if(void 0!==(r=i.application||o.lookup("adapter:application")))return(0,c.set)(r,"store",this),i[t]=r,i.application=r,r;var a=this.get("adapter");return void 0!==(r=a?i[a]||o.lookup(`adapter:${a}`):void 0)?((0,c.set)(r,"store",this),i[t]=r,i[a]=r,r):(r=i["-json-api"]||o.lookup("adapter:-json-api"),(0,c.set)(r,"store",this),i[t]=r,i["-json-api"]=r,r)},serializerFor(e){var t=k(e),{_serializerCache:i}=this,r=i[t];if(r)return r;var o=(0,K.getOwner)(this);if(void 0!==(r=o.lookup(`serializer:${t}`)))return(0,c.set)(r,"store",this),i[t]=r,r;if(void 0!==(r=i.application||o.lookup("serializer:application")))return(0,c.set)(r,"store",this),i[t]=r,i.application=r,r;var a=this.adapterFor(e),n=(0,c.get)(a,"defaultSerializer");return void 0!==(r=n?i[n]||o.lookup(`serializer:${n}`):void 0)?((0,c.set)(r,"store",this),i[t]=r,i[n]=r,r):(r=i["-default"]||o.lookup("serializer:-default"),(0,c.set)(r,"store",this),i[t]=r,i["-default"]=r,r)},destroy(){for(var e in this._adapterCache){var t=this._adapterCache[e];"function"==typeof t.destroy&&t.destroy()}for(var i in this._serializerCache){var r=this._serializerCache[i];"function"==typeof r.destroy&&r.destroy()}return this._super()},willDestroy(){this._super(...arguments),this._pushedInternalModels=null,this.recordArrayManager.destroy(),this.unloadAll()},_updateRelationshipState(e){1===this._updatedRelationships.push(e)&&this._backburner.join(()=>{this._backburner.schedule("syncRelationships",this,this._flushUpdatedRelationships)})},_flushUpdatedRelationships(){for(var e=this._updatedRelationships,t=0,i=e.length;t<i;t++)e[t].flushCanonical();e.length=0},_updateInternalModel(e){1===this._updatedInternalModels.push(e)&&St.schedule("actions",this,this._flushUpdatedInternalModels)},_flushUpdatedInternalModels(){for(var e=this._updatedInternalModels,t=0,i=e.length;t<i;t++)e[t]._triggerDeferredTriggers();e.length=0}});function Et(e,t,i,r){var o=r._internalModel,a=r.modelName,n=t.modelFor(a),s=v.Promise.resolve().then(()=>e[i](t,n,r)),l=ot(t,e,a),u=`DS: Extract and notify about ${i} completion of ${o}`;
1return(s=fe(s=be(s,t,u),ge(ye,o))).then(e=>(t._backburner.join(()=>{var a,s,u;e&&((a=rt(l,t,n,e,r.id,i)).included&&(u=a.included),s=a.data),t.didSaveRecord(o,{data:s}),u&&t._push({data:null,included:u})}),o),function(e){var i;throw e instanceof Je.aB?(i="function"==typeof l.extractErrors?l.extractErrors(t,n,e,r.id):errorsArrayToHash(e.errors),t.recordWasInvalid(o,i,e)):t.recordWasError(o,e),e},u)}function Ft(e,t,i){var r=t[i];if(!r){if((r=Pt(e,i))||(r=function(e,t){var i=(0,K.getOwner)(e),r=i.factoryFor(`mixin:${t}`),o=r&&r.class;if(o){var a=Qe.extend(o);a.reopenClass({__isMixin:!0,__mixin:o}),i.register("model:"+t,a)}return Pt(e,t)}(e,i)),!r)return null;var o=r.class;o.modelName&&o.hasOwnProperty("modelName")||Object.defineProperty(o,"modelName",{value:i}),t[i]=r}return r}function Pt(e,t){return(0,K.getOwner)(e).factoryFor(`model:${t}`)}const xt=Ot},994078(e,t,i){i.r(t),i.d(t,{default:()=>r.il,normalizeModelName:()=>r.gW});var r=i(962085)},603057(e,t,i){i.d(t,{A_:()=>l,fs:()=>s});var r=i(296537),o=i.n(r);let a,n,s,l;a=o()._LegacyCheckbox.extend(),n=o()._LegacyLinkComponent.extend(),s=o()._LegacyTextArea.extend(),l=o()._LegacyTextField.extend()},753804(e,t,i){i.d(t,{PT:()=>v,ZH:()=>_,z9:()=>w});var r=i(401104);class o{constructor(e,t,i){(0,r.A)(this,"size",0),(0,r.A)(this,"misses",0),(0,r.A)(this,"hits",0),this.limit=e,this.func=t,this.store=i,this.store=i||new Map}get(e){let t=this.store.get(e);return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,t=this.set(e,this.func(e)),t)}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}const a=/[ _]/g,n=(new o(1e3,e=>{return(t=e,b.get(t)).replace(a,"-");var t}),/(\-|\_|\.|\s)+(.)?/g),s=/(^|\/)([A-Z])/g,l=new o(1e3,e=>e.replace(n,(e,t,i)=>i?i.toUpperCase():"").replace(s,e=>e.toLowerCase())),u=/^(\-|_)+(.)?/,c=/(.)(\-|\_|\.|\s)+(.)?/g,d=/(^|\/|\.)([a-z])/g,p=(new o(1e3,e=>{const t=(e,t,i)=>i?`_${i.toUpperCase()}`:"",i=(e,t,i,r)=>t+(r?r.toUpperCase():""),r=e.split("/");for(let e=0;e<r.length;e++)r[e]=r[e].replace(u,t).replace(c,i);return r.join("/").replace(d,e=>e.toUpperCase())}),/([a-z\d])([A-Z]+)/g),h=/\-|\s+/g,m=new o(1e3,e=>e.replace(p,"$1_$2").replace(h,"_").toLowerCase()),g=/(^|\/)([a-z\u00C0-\u024F])/g,f=new o(1e3,e=>e.replace(g,e=>e.toUpperCase())),y=/([a-z\d])([A-Z])/g,b=new o(1e3,e=>e.replace(y,"$1_$2").toLowerCase());function v(e){return l.get(e)}function w(e){return m.get(e)}function _(e){return f.get(e)}},978378(e,t,i){i.r(t),i.d(t,{default:()=>p}),i(44384);var r=i(979295);let o;o=(0,i(96978).A)(i(982865));let{isCurriedComponentDefinition:a,CurriedComponentDefinition:n,curry:s,CurriedValue:l}=o;a||(a=function(e){return e instanceof l});var u=i(827413),c=i.n(u);function d(e,t){return"string"==typeof e?function(e,t){return function(e,t){let i=function(e){let t=e.lookup("renderer:-dom")._runtimeResolver;if(t)return t;let i=Object.entries(e.__container__.cache).find(e=>e[0].startsWith("template-compiler:main-"));if(i)return i[1].resolver.resolver;throw new Error("@embroider/util couldn't locate the runtime resolver on this ember version")}(t);if("function"==typeof i.lookupComponentHandle){let r=i.lookupComponentHandle(e,t);if(null!=r)return new n(i.resolve(r),null)}if(!i.lookupComponent(e,t))throw new Error(`Attempted to resolve \`${e}\` via ensureSafeComponent, but nothing was found.`);return s(0,e,t,{named:{},positional:[]})}(e,(0,r.getOwner)(t))}(e,t):(a(e),e)}class p extends(c()){compute([e]){return d(e,this)}}},739461(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(804204),o=i.n(r),a=i(979295);function n(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class s extends(o()){constructor(...e){super(...e),n(this,"classNonces",new WeakMap),n(this,"nonceCounter",0)}register(e,t=(0,a.getOwner)(this)){let i=this.classNonces.get(e);return null==i&&(i="-ensure"+this.nonceCounter++,this.classNonces.set(e,i),t.register(`component:${i}`,e)),i}}},775797(e,t,i){i.d(t,{A:()=>a});var r=i(979295),o=i(606864);class a{constructor(e,t){var i,o,a;i=this,a=void 0,(o=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o="args"))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,this.args=t,(0,r.setOwner)(this,e)}get isDestroying(){return(0,o.Z)(this)}get isDestroyed(){return(0,o.E)(this)}willDestroy(){}}},606864(e,t,i){var r=i(296537),o=i.n(r);const a=o()._isDestroying,n=o()._isDestroyed;i.d(t,["E",0,n,"Z",0,a])},569807(e,t,i){i.d(t,{A:()=>m});var r=i(296537),o=i.n(r),a=(i(943910),i(979295)),n=i(618576);i(989272),i(775797);var s=i(606864);const{setDestroyed:l,setDestroying:u}=s,c=(0,n.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),d=o().destroy,p=o()._registerDestructor;class h extends(function(e,t,i){return class{static create(e){return new this(t(e))}constructor(t){var r,o,a;r=this,a=i,(o=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(o="capabilities"))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,e(this,t)}createComponent(e,i){return new e(t(this),i.named)}getContext(e){return e}}}(a.setOwner,a.getOwner,c)){createComponent(e,t){const i=super.createComponent(e,t);return p(i,()=>{i.willDestroy()}),i}destroyComponent(e){d(e)}}const m=h},301266(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(569807)}
1,765632(e,t,i){var r=i(618576),o=i(569807);let a=i(775797).A;(0,r.setComponentManager)(e=>new o.A(e),a);const n=a;i.d(t,["A",0,n])},162824(e,t,i){var r=i(958860);const{cached:o,tracked:a}=r;i.d(t,["r",0,a])},115165(e,t,i){i.r(t),i.d(t,{default:()=>k}),i(44384);var r=i(640626),o=i(618576),a=i.n(o),n=i(943910),s=i(989272);const l=(0,i(510364).createTemplateFactory)({id:"JB7xZdFl",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["virtualComponents"]]],null]],null],"id",[[[1,[28,[35,2],[[30,1,["upperBound"]]],null]],[41,[30,1,["isOccludedContent"]],[[[2,[28,[37,2],[[30,1,["element"]]],null]]],[]],[[[18,2,[[30,1,["content"]],[30,1,["index"]]]]],[]]],[1,[28,[35,2],[[30,1,["lowerBound"]]],null]]],[1]],null],[1,"\\n"],[41,[30,0,["shouldYieldToInverse"]],[[[1," "],[18,3,null],[1,"\\n"]],[]],null]],["virtualComponent","&default","&else"],false,["each","-track-array","unbound","if","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/@html-next/vertical-collection.3a8d8a6a/node_modules/@html-next/vertical-collection/components/vertical-collection/template.hbs",isStrictMode:!1});var u=i(161015);function c(e,t,i){let r;switch(t){case"@index":r=i;break;case"@identity":r=function(e){let t;const i=typeof e;return t="string"===i||"number"===i?e:(0,u.guidFor)(e),t}(e);break;default:r=(0,n.get)(e,t)}return"number"==typeof r&&(r=String(r)),r}var d=i(734138),p=i(387569);const h=window?window.document:void 0;let m=0;class g{constructor(e=null,t=null){this.id="VC-"+m++,this.content=e,this.index=t,this.upperBound=void 0!==h?h.createTextNode(""):null,this.lowerBound=void 0!==h?h.createTextNode(""):null,this.rendered=!1}
1get realUpperBound(){return this.upperBound}get realLowerBound(){return this.lowerBound}getBoundingClientRect(){let{upperBound:e,lowerBound:t}=this,i=1/0,r=-1/0;for(;e!==t;)e=e.nextSibling,e instanceof Element&&(i=Math.min(i,e.getBoundingClientRect().top),r=Math.max(r,e.getBoundingClientRect().bottom));return{top:i,bottom:r,height:r-i}}recycle(e,t){this.index!==t&&(0,n.set)(this,"index",t),this.content!==e&&(0,n.set)(this,"content",e)}destroy(){(0,n.set)(this,"upperBound",null),(0,n.set)(this,"lowerBound",null),(0,n.set)(this,"content",null),(0,n.set)(this,"index",null)}}let f=0;class y{constructor(e){this.id="OC-"+f++,this.isOccludedContent=!0,void 0!==h?(this.element=h.createElement(e),this.element.className+="occluded-content",this.upperBound=h.createTextNode(""),this.lowerBound=h.createTextNode("")):this.element=null,this.isOccludedContent=!0,this.rendered=!1}getBoundingClientRect(){if(null!==this.element)return this.element.getBoundingClientRect()}addEventListener(e,t){null!==this.element&&this.element.addEventListener(e,t)}removeEventListener(e,t){null!==this.element&&this.element.removeEventListener(e,t)}
1get realUpperBound(){return this.upperBound}get realLowerBound(){return this.lowerBound}get parentNode(){return null!==this.element?this.element.parentNode:null}get style(){return null!==this.element?this.element.style:{}}set innerHTML(e){null!==this.element&&(this.element.innerHTML=e)}destroy(){(0,n.set)(this,"element",null)}}function b(e,t,i,r){let o;for(;i&&(o=i.nextSibling,e.insertBefore(i,t),i!==r);)i=o}function v(e,t){return e.objectAt?e.objectAt(t):e[t]}function w(e,t=2){const i=Math.pow(10,t);return Math.round(e*i)/i}let _=!1;try{let e=Object.defineProperty({},"passive",{get:()=>(_=!0,_)});window.addEventListener("test",null,e)}catch(e){}const A=_,T=Object.create(null);class C{constructor(){this.elements=new Array(10),this.maxLength=10,this.length=0,this.handlers=new Array(10),this.isPolling=!1,this.isUsingPassive=A}addScrollHandler(e,t){let i,r,o=this.elements.indexOf(e);-1===o?(o=this.length++,o===this.maxLength&&(this.maxLength*=2,this.elements.length=this.maxLength,this.handlers.length=this.maxLength),i=[t],this.elements[o]=e,r=this.handlers[o]={top:e.scrollTop,left:e.scrollLeft,handlers:i},r.passiveHandler=A?function(){C.triggerElementHandlers(e,r)}:T):(r=this.handlers[o],i=r.handlers,i.push(t)),this.isUsingPassive&&1===i.length?e.addEventListener("scroll",r.passiveHandler,{capture:!0,passive:!0}):this.isPolling||this.poll()}removeScrollHandler(e,t){let i=this.elements.indexOf(e),r=this.handlers[i];if(!r||!r.handlers)throw new Error("Attempted to remove a handler from an unknown element or an element with no handlers");{let i=r.handlers.indexOf(t);if(-1===i)throw new Error("Attempted to remove an unknown handler");r.handlers.splice(i,1),r.handlers.length||(i=this.elements.indexOf(e),this.handlers.splice(i,1),this.elements.splice(i,1),this.length--,this.maxLength--,0===this.length&&(this.isPolling=!1),this.isUsingPassive&&e.removeEventListener("scroll",r.passiveHandler,{capture:!0,passive:!0}))}}static triggerElementHandlers(e,t){let i=e.scrollTop,r=e.scrollLeft,o=i!==t.top,a=r!==t.left;t.top=i,t.left=r;let n={top:i,left:r};if(o||a){(0,s.begin)();for(let e=0;e<t.handlers.length;e++)t.handlers[e](n);(0,s.end)()}}poll(){this.isPolling=!0,p.ck.schedule("sync",()=>{if(this.isPolling){for(let e=0;e<this.length;e++){let t=this.elements[e],i=this.handlers[e];C.triggerElementHandlers(t,i)}this.isPolling=this.length>0,this.isPolling&&this.poll()}})}}const S=new C;function R(){Object.defineProperty(this,"scrollTop",{get:()=>document.body.scrollTop||document.documentElement.scrollTop,set(e){document.body.scrollTop=document.documentElement.scrollTop=e}}),Object.defineProperty(this,"scrollLeft",{get:()=>window.scrollX||window.pageXOffset||document.body.scrollLeft||document.documentElement.scrollLeft,set(e){window.scrollX=window.pageXOffset=document.body.scrollLeft=document.documentElement.scrollLeft=e}}),Object.defineProperty(this,"offsetHeight",{get:()=>window.innerHeight})}R.prototype.addEventListener=function(e,t,i){return window.addEventListener(e,t,i)},R.prototype.removeEventListener=function(e,t,i){return window.removeEventListener(e,t,i)},R.prototype.getBoundingClientRect=function(){return{height:window.innerHeight,width:window.innerWidth,top:0,left:0,right:window.innerWidth,bottom:window.innerHeight}};const D=new R,O=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];let E;function F(e,t){return-1!==t.indexOf("%")?function(e,t){let i=e.offsetHeight;return parseFloat(t)*i/100}(e,t):-1!==t.indexOf("em")?function(e,t){const i=-1!==t.indexOf("rem")?document.documentElement:e,r=window.getComputedStyle(i).getPropertyValue("font-size");return parseFloat(t)*parseFloat(r)}(e,t):parseInt(t,10)}function P(e,t){const i=e.getBoundingClientRect();if(1===t)return i;const r={};for(let e in i)r[e]=i[e]*t;return r}class x{constructor(e,{bufferSize:t,containerSelector:i,estimateHeight:r,initialRenderCount:o,items:a,key:n,renderAll:s,renderFromLast:l,shouldRecycle:u,startingIndex:c,occlusionTagName:m}){this.token=new p.ou(e),this.bufferSize=t,this.containerSelector=i,this.estimateHeight=r,this.initialRenderCount=o,this.items=a,this.key=n,this.renderAll=s,this.renderFromLast=l,this.shouldRecycle=u,this.startingIndex=c,this.sendAction=()=>{},this._itemContainer=null,this._scrollContainer=null,this._prependOffset=0,this._calculatedEstimateHeight=0,this._collectionOffset=0,this._calculatedScrollContainerHeight=0,this._transformScale=1,this._scrollHandler=({top:e})=>{this._didEarthquake(Math.abs(this._scrollTop-e))&&this.scheduleUpdate()},this._resizeHandler=this.scheduleUpdate.bind(this),this._nextUpdate=null,this._nextLayout=null,this._started=!1,this._didReset=!0,this._didUpdateItems=!1,this._scrollTop=0,this._prevFirstItemIndex=1/0,this._prevLastItemIndex=-1/0,this._prevFirstVisibleIndex=0,this._prevLastVisibleIndex=0,this._firstReached=!1,this._lastReached=!1,this._prevTotalItems=0,this._prevFirstKey=0,this._prevLastKey=0,this._componentPool=[],this._prependComponentPool=[],this._appendComponentPool=[],this._occludedContentBefore=new y(m),this._occludedContentAfter=new y(m),this._pageUpHandler=this.pageUp.bind(this),this._occludedContentBefore.addEventListener("click",this._pageUpHandler),this._pageDownHandler=this.pageDown.bind(this),this._occludedContentAfter.addEventListener("click",this._pageDownHandler),h&&(this._domPool=h.createDocumentFragment()),this.virtualComponents=(0,d.A)([this._occludedContentBefore,this._occludedContentAfter]),this.orderedComponents=[],this._updateVirtualComponents(),this.__ember_meta__=null}
1destroy(){this.token.cancel();for(let e=0;e<this.orderedComponents.length;e++)this.orderedComponents[e].destroy();var e,t;this._occludedContentBefore.removeEventListener("click",this._pageUpHandler),this._occludedContentAfter.removeEventListener("click",this._pageDownHandler),this._occludedContentBefore.destroy(),this._occludedContentAfter.destroy(),this.orderedComponents=null,(0,n.set)(this,"virtualComponents",null),this._started&&(e=this._scrollContainer,t=this._scrollHandler,S.removeScrollHandler(e,t),D.removeEventListener("resize",this._resizeHandler))}schedule(e,t){return p.ck.schedule(e,t,this.token)}start(){const{startingIndex:e,containerSelector:t,_occludedContentBefore:i}=this;if(this._itemContainer=i.element.parentNode,this._scrollContainer="body"===t?D:function(e,t){for(void 0===E&&function(e){O.forEach(t=>{void 0===E&&"function"==typeof e[t]&&(E=t)})}(e);e;){if(e[E](t))return e;e=e.parentElement}return null}(this._itemContainer,t),this._updateConstants(),0!==e){const{renderFromLast:t,_calculatedEstimateHeight:i,_collectionOffset:r,_calculatedScrollContainerHeight:o}=this;let a=e*i;t&&(a-=o-i),this._scrollTop=a+r,this._prevFirstVisibleIndex=e}else this._scrollTop=this._scrollContainer.scrollTop;var r,o;this._started=!0,this.update(),r=this._scrollContainer,o=this._scrollHandler,S.addScrollHandler(r,o),D.addEventListener("resize",this._resizeHandler)}scheduleUpdate(e,t){!0===e&&(this._didUpdateItems=!0),null===this._nextUpdate&&!1!==this._started&&(this._nextUpdate=this.schedule("sync",()=>{this._nextUpdate=null,this._scrollTop=this._scrollContainer.scrollTop,this.update(t)}))}update(e){!0===this._didUpdateItems&&(this._determineUpdateType(),this._didUpdateItems=!1),this._updateConstants(),this._updateIndexes(),this._updateVirtualComponents(),this.schedule("measure",()=>{e&&e(),this.afterUpdate()})}afterUpdate(){const{_prevTotalItems:e}=this,t=this._calculateScrollDiff();0!==t&&(this._scrollContainer.scrollTop+=t),this._scrollTop=this._scrollContainer.scrollTop,this._prependOffset=0,0!==e&&this._sendActions(),this._prevFirstItemIndex=this.firstItemIndex,this._prevLastItemIndex=this.lastItemIndex,this._prevFirstVisibleIndex=this.firstVisibleIndex,this._prevLastVisibleIndex=this.lastVisibleIndex,this._didReset=!1}_calculateScrollDiff(){return this._prependOffset+this._scrollTop-this._scrollContainer.scrollTop}_determineUpdateType(){const{items:e,key:t,totalItems:i,_prevTotalItems:r,_prevFirstKey:o,_prevLastKey:a}=this,s=i-r;!0===function(e,t,i,r,o){const a=(0,n.get)(t,"length");if(e<=0||e>=a||0===a)return!1;const s=c(v(t,e),i,e),l=c(v(t,a-1),i,a-1);return r===s&&o===l}(s,e,t,o,a)?this.prepend(s):!0===function(e,t,i,r,o){const a=(0,n.get)(t,"length");if(e<=0||e>=a||0===a)return!1;const s=c(v(t,0),i,0),l=c(v(t,a-e-1),i,a-e-1);return r===s&&o===l}(s,e,t,o,a)?this.append(s):this.reset();const l=v(this.items,0),u=v(this.items,this.totalItems-1);this._prevTotalItems=i,this._prevFirstKey=i>0?c(l,t,0):0,this._prevLastKey=i>0?c(u,t,i-1):0}_updateConstants(){const{estimateHeight:e,_occludedContentBefore:t,_itemContainer:i,_scrollContainer:r}=this,o=r.offsetHeight,{height:a}=r.getBoundingClientRect();let n;n=o===a||0===a?1:o/a;const{top:s}=P(t,n),{top:l}=P(r,n);let u=0;if(r instanceof Element){const e=window.getComputedStyle(r).maxHeight;"none"!==e&&(u=F(r.parentElement,e))}const c="string"==typeof e?F(i,e):e;this._transformScale=n,this._calculatedEstimateHeight=c,this._calculatedScrollContainerHeight=w(Math.max(o,u)),this._collectionOffset=w(r.scrollTop+s-l)}_updateVirtualComponents(){const{items:e,orderedComponents:t,virtualComponents:i,_componentPool:r,shouldRecycle:o,renderAll:a,_started:n,_didReset:l,_occludedContentBefore:u,_occludedContentAfter:c,totalItems:d}=this;let p,h,m,f;for(!0===a?(p=0,h=d-1,m=0,f=0):!1===n?(p=this.startingIndex,h=this.startingIndex+this.initialRenderCount-1,m=0,f=0):(p=this.firstItemIndex,h=this.lastItemIndex,m=this.totalBefore,f=this.totalAfter),h=Math.min(h,d-1);t.length>0&&t[0].index<p;)r.push(t.shift());for(;t.length>0&&t[t.length-1].index>h;)r.unshift(t.pop());if(l)if(!0===o)for(let i=0;i<t.length;i++){const r=t[i];r.recycle(v(e,r.index),r.index)}else for(;t.length>0;)r.push(t.shift());let y=t.length>0?t[0].index:p,w=t.length>0?t[t.length-1].index:p-1;for(;w<h;){let i;i=!0===o&&r.pop()||new g;const a=++w;i.recycle(v(e,a),a),this._appendComponent(i),t.push(i)}for(;y>p;){let i;i=!0===o&&r.pop()||new g;const a=--y;i.recycle(v(e,a),a),this._prependComponent(i),t.unshift(i)}if(r.length>0)if(!0===o)for(let t=r.length-1;t>=0;t--){const o=r[t];v(e,o.index)?b(this._domPool,null,o.realUpperBound,o.realLowerBound):(b(this._itemContainer,null,o.realUpperBound,o.realLowerBound),(0,s.run)(()=>{i.removeObject(o)}
1),r.splice(t,1))}else i.removeObjects(r),r.length=0;const _=p,A=d-h-1,T=1===_?"item":"items",C=1===A?"item":"items";u.style.height=`${Math.max(m,0)}px`,u.innerHTML=_>0?`And ${_} ${T} before`:"",c.style.height=`${Math.max(f,0)}px`,c.innerHTML=A>0?`And ${A} ${C} after`:""}_appendComponent(e){const{virtualComponents:t,_occludedContentAfter:i,_appendComponentPool:r,shouldRecycle:o,_itemContainer:a}=this,n=i.realUpperBound;!0===e.rendered?b(a,n,e.realUpperBound,e.realLowerBound):(t.insertAt(t.length-1,e),e.rendered=!0,o||(r.unshift(e),null===this._nextLayout&&(this._nextLayout=this.schedule("layout",()=>{for(this._nextLayout=null;r.length>0;){const e=r.pop(),t=i.realUpperBound;b(this._itemContainer,t,e.realUpperBound,e.realLowerBound)}}))))}_prependComponent(e){const{virtualComponents:t,_occludedContentBefore:i,_prependComponentPool:r,_itemContainer:o}=this,a=i.realLowerBound.nextSibling;!0===e.rendered?b(o,a,e.realUpperBound,e.realLowerBound):(t.insertAt(t.length-1,e),e.rendered=!0,r.unshift(e),null===this._nextLayout&&(this._nextLayout=this.schedule("layout",()=>{for(this._nextLayout=null;r.length>0;){const e=r.pop(),t=i.realLowerBound.nextSibling;b(o,t,e.realUpperBound,e.realLowerBound)}})))}_sendActions(){const{firstItemIndex:e,lastItemIndex:t,firstVisibleIndex:i,lastVisibleIndex:r,_prevFirstVisibleIndex:o,_prevLastVisibleIndex:a,totalItems:n,_firstReached:s,_lastReached:l,_didReset:u}=this;(u||i!==o)&&this.sendAction("firstVisibleChanged",i),(u||r!==a)&&this.sendAction("lastVisibleChanged",r),!1===s&&0===e&&(this.sendAction("firstReached",e),this._firstReached=!0),!1===l&&t===n-1&&(this.sendAction("lastReached",t),this._lastReached=!0)}prepend(e){this._prevFirstItemIndex+=e,this._prevLastItemIndex+=e,this.orderedComponents.forEach(t=>(0,n.set)(t,"index",(0,n.get)(t,"index")+e)),this._firstReached=!1,this._prependOffset=e*this._calculatedEstimateHeight}append(){this._lastReached=!1}reset(){this._firstReached=!1,this._lastReached=!1,this._didReset=!0}pageUp(){if(this.renderAll)return;const{bufferSize:e,firstItemIndex:t,totalComponents:i}=this;if(0!==t){const r=Math.max(t-i+e,0),o=this.getOffsetForIndex(r);this._scrollContainer.scrollTop=o+this._collectionOffset,this.scheduleUpdate()}}pageDown(){if(this.renderAll)return;const{bufferSize:e,lastItemIndex:t,totalComponents:i,totalItems:r}=this;if(t!==r-1){const o=Math.min(t+e+1,r-i),a=this.getOffsetForIndex(o);this._scrollContainer.scrollTop=a+this._collectionOffset,this.scheduleUpdate()}}get totalComponents(){return Math.min(this.totalItems,this.lastItemIndex-this.firstItemIndex+1)}get visibleTop(){return Math.max(this._scrollTop-this._collectionOffset+this._prependOffset,0)}get visibleMiddle(){return this.visibleTop+this._calculatedScrollContainerHeight/2}get visibleBottom(){return Math.max(this.visibleTop+this._calculatedScrollContainerHeight-1,0)}get totalItems(){return this.items?(0,n.get)(this.items,"length"):0}}function N(e,t,i=0,r=e.length){if("function"!=typeof e.fill){for(;i<r;i++)e[i]=t;return e}e.fill(t,i,r)}class z{constructor(e,t){const i=new Float32Array(new ArrayBuffer(4*e));N(i,t),this.length=e,this.defaultValue=t,this._initializeLayers(i,t)}_initializeLayers(e,t){const i=[e];let r,o,a,n,s,l;for(n=a=e,o=e.length;o>2;){if(o=Math.ceil(o/2),a=new Float32Array(new ArrayBuffer(4*o)),void 0!==t)N(a,t*=2),s=n[2*(o-1)]||0,l=n[2*(o-1)+1]||0,a[o-1]=s+l;else for(r=0;r<o;r++)s=n[2*r],l=n[2*r+1],a[r]=l?s+l:s;i.unshift(a),n=a}this.total=a.length>0?a.length>1?a[0]+a[1]:a[0]:0,this.layers=i,this.values=e}find(e){const{layers:t,total:i,length:r,values:o}=this,a=t.length;if(0===r)return{index:0,totalBefore:0,totalAfter:0};let n,s,l,u,c,d=0,p=0,h=0;for(e=Math.min(i-1,e),n=0;n<a;n++)s=t[n],u=d,c=d+1,l=s[u],e>=p+l?(p+=l,d=2*c):d=2*u;return d/=2,h=i-(p+o[d]),{index:d,totalBefore:p,totalAfter:h}}getOffset(e){const{layers:t,length:i,values:r}=this,o=t.length;if(0===i)return 0;let a=0,n=0;for(let i=0;i<o-1;i++){const r=t[i],s=a,l=a+1;e>=l*Math.pow(2,o-i-1)?(n+=r[s],a=2*l):a=2*s}return a+1===e&&(n+=r[a]),n}set(e,t){const{layers:i}=this,r=w(t-i[i.length-1][e]);if(0===r)return r;let o,a;for(o=i.length-1;o>=0;o--)a=i[o],a[e]+=r,e=Math.floor(e/2);return this.total+=r,r}prepend(e){const{values:t,length:i,defaultValue:r}=this,o=e+i,a=new Float32Array(new ArrayBuffer(4*o));a.set(t,e),N(a,r,0,e),this.length=o,this._initializeLayers(a)}append(e){const{values:t,length:i,defaultValue:r}=this,o=e+i,a=new Float32Array(new ArrayBuffer(4*o));a.set(t),N(a,r,i),this.length=o,this._initializeLayers(a)}reset(e){const{values:t,length:i,defaultValue:r}=this;if(i===e)return;const o=new Float32Array(new ArrayBuffer(4*e));var a,n;i<e?(o.set(t),N(o,r,i)):o.set((n=e,"function"==typeof(a=t).subarray?a.subarray(0,n):a.slice(0,n))),this.length=e,0===i?this._initializeLayers(o,r):this._initializeLayers(o)}}class I extends x{constructor(e,t){super(e,t),this._firstItemIndex=0,this._lastItemIndex=0,this._totalBefore=0,this._totalAfter=0,this._minHeight=1/0,this._nextIncrementalRender=null,this.skipList=null}destroy(){super.destroy(),this.skipList=null}scheduleUpdate(e,t){null!==this._nextIncrementalRender&&(this._nextIncrementalRender.cancel(),this._nextIncrementalRender=null),super.scheduleUpdate(e,t)}afterUpdate(){null===this._nextIncrementalRender&&null===this._nextUpdate&&(this._nextIncrementalRender=this.schedule("sync",()=>{this._nextIncrementalRender=null,this._shouldScheduleRerender()&&this.update()})),super.afterUpdate()}_updateConstants(){super._updateConstants(),this._calculatedEstimateHeight<this._minHeight&&(this._minHeight=this._calculatedEstimateHeight),null===this.skipList?this.skipList=new z(this.totalItems,this._calculatedEstimateHeight):this.skipList.defaultValue=this._calculatedEstimateHeight}
1_updateIndexes(){const{bufferSize:e,skipList:t,visibleTop:i,visibleBottom:r,totalItems:o,_didReset:a}=this;if(0===o)return this._firstItemIndex=0,this._lastItemIndex=-1,this._totalBefore=0,void(this._totalAfter=0);!1===a&&this._measure();const{values:n}=t;let{totalBefore:s,index:l}=this.skipList.find(i),{totalAfter:u,index:c}=this.skipList.find(r);const d=o-1;let p=l,h=c;for(let t=e;t>0&&p>0;t--)p--,s-=n[p];for(let t=e;t>0&&h<d;t--)h++,u-=n[h];this._firstItemIndex=p,this._lastItemIndex=h,this._totalBefore=s,this._totalAfter=u}_calculateScrollDiff(){const{firstItemIndex:e,_prevFirstVisibleIndex:t,_prevFirstItemIndex:i}=this;let r=0;if(e<i){const o=Math.min(Math.abs(e-i),t-e);r=Math.round(this._measure(o))}return r+super._calculateScrollDiff()}_shouldScheduleRerender(){const{firstItemIndex:e,lastItemIndex:t}=this;this._updateConstants(),this._measure();const{firstVisibleIndex:i,lastVisibleIndex:r}=this;return i<e||r>t}_measure(e=null){const{orderedComponents:t,skipList:i,_occludedContentBefore:r,_transformScale:o}=this,a=null!==e?Math.min(e,t.length):t.length;let n=0;for(let e=0;e<a;e++){const a=t[e],s=t[e-1],l=a.index,{top:u,height:c}=P(a,o);let d;d=void 0!==s?u-P(s,o).bottom:u-P(r,o).bottom;const p=w(c+d),h=i.set(l,p);p<this._minHeight&&(this._minHeight=p),0!==h&&(n+=h)}return n}_didEarthquake(e){return e>this._minHeight/2}get total(){return this.skipList.total}get totalBefore(){return this._totalBefore}get totalAfter(){return this._totalAfter}get firstItemIndex(){return this._firstItemIndex}get lastItemIndex(){return this._lastItemIndex}get firstVisibleIndex(){const{visibleTop:e}=this,{index:t}=this.skipList.find(e);return t}get lastVisibleIndex(){const{visibleBottom:e,totalItems:t}=this,{index:i}=this.skipList.find(e);return Math.min(i,t-1)}prepend(e){super.prepend(e),this.skipList.prepend(e)}append(e){super.append(e),this.skipList.append(e)}reset(){super.reset(),this.skipList.reset(this.totalItems)}getOffsetForIndex(e){return this._measure(),this.skipList.getOffset(e)}}class M extends x{constructor(e,t){super(e,t),this._firstItemIndex=0,this._lastItemIndex=0}_updateIndexes(){const{bufferSize:e,totalItems:t,visibleMiddle:i,_calculatedEstimateHeight:r,_calculatedScrollContainerHeight:o}=this;if(0===t)return this._firstItemIndex=0,void(this._lastItemIndex=-1);const a=t-1,n=Math.floor(i/r),s=Math.min(Math.ceil(o/r),t);let l=n-Math.floor(s/2),u=n+Math.ceil(s/2)-1;l<0&&(l=0,u=s-1),u>a&&(u=a,l=a-(s-1)),l=Math.max(l-e,0),u=Math.min(u+e,a),this._firstItemIndex=l,this._lastItemIndex=u}_didEarthquake(e){return e>this._calculatedEstimateHeight/2}get total(){return this.totalItems*this._calculatedEstimateHeight}get totalBefore(){return this.firstItemIndex*this._calculatedEstimateHeight}get totalAfter(){return this.total-(this.lastItemIndex+1)*this._calculatedEstimateHeight}get firstItemIndex(){return this._firstItemIndex}get lastItemIndex(){return this._lastItemIndex}get firstVisibleIndex(){return Math.ceil(this.visibleTop/this._calculatedEstimateHeight)}get lastVisibleIndex(){return Math.min(Math.ceil(this.visibleBottom/this._calculatedEstimateHeight),this.totalItems)-1}getOffsetForIndex(e){return e*this._calculatedEstimateHeight+1}}
1const k=a().extend({layout:l,tagName:"",key:"@identity",estimateHeight:null,items:null,staticHeight:!1,shouldRecycle:!0,containerSelector:"*",bufferSize:1,idForFirstItem:null,renderFromLast:!1,renderAll:!1,occlusionTagName:"occluded-content",isEmpty:(0,r.empty)("items"),shouldYieldToInverse:(0,r.readOnly)("isEmpty"),virtualComponents:(0,n.computed)("items.[]","renderAll","estimateHeight","bufferSize",function(){const{_radar:e}=this,t=this.items;return e.items=t??[],e.estimateHeight=this.estimateHeight,e.renderAll=this.renderAll,e.bufferSize=this.bufferSize,e.scheduleUpdate(!0),this._clearScheduledActions(),e.virtualComponents}),schedule(e,t){return p.ck.schedule(e,t,this.token)},_clearScheduledActions(){clearTimeout(this._nextSendActions),this._nextSendActions=null,this._scheduledActions.length=0},_scheduleSendAction(e,t){this._scheduledActions.push([e,t]),null===this._nextSendActions&&(this._nextSendActions=setTimeout(()=>{this._nextSendActions=null,(0,s.run)(()=>{const e=this.items,t=this.key;this._scheduledActions.forEach(([i,r])=>{const o=v(e,r),a=c(o,t,r),s=(0,n.get)(this,i);"function"==typeof s?s(o,r,a):"string"==typeof s&&this.sendAction(i,o,r,a)}),this._scheduledActions.length=0})}))},scrollToItem(e){const{_radar:t}=this;let i=t.getOffsetForIndex(e);return t._scrollContainer.scrollTop=i,t._prevFirstVisibleIndex=t._prevFirstItemIndex=e,new Promise(e=>{t.scheduleUpdate(!1,e)})},didInsertElement(){this.schedule("sync",()=>{this._radar.start()})},willDestroy(){this.token.cancel(),this._radar.destroy();let e=this.registerAPI;e&&e(null),clearTimeout(this._nextSendActions)},init(){this._super(),this.token=new p.ou;const e=this.staticHeight?M:I,t=this.items||[],{bufferSize:i,containerSelector:r,estimateHeight:o,initialRenderCount:a,renderAll:s,renderFromLast:l,shouldRecycle:u,occlusionTagName:d,idForFirstItem:h,key:m}=this,g=function(e,t,i,r){const o=(0,n.get)(e,"length");let a=0;if(null!=t){for(let r=0;r<o;r++)if(c(v(e,r),i,r)===t){a=r;break}}else!0===r&&(a=o-1);return a}(t,h,m,l);this._radar=new e(this.token,{bufferSize:i,containerSelector:r,estimateHeight:o,initialRenderCount:a,items:t,key:m,renderAll:s,renderFromLast:l,shouldRecycle:u,startingIndex:g,occlusionTagName:d}),this._prevItemsLength=0,this._prevFirstKey=null,this._prevLastKey=null,this._hasAction=null,this._scheduledActions=[],this._nextSendActions=null;let f=!!this.lastReached,y=!!this.firstReached,b=!!this.lastVisibleChanged,w=!!this.firstVisibleChanged;(f||y||b||w)&&(this._hasAction={lastReached:f,firstReached:y,lastVisibleChanged:b,firstVisibleChanged:w},this._radar.sendAction=(e,t)=>{this._hasAction[e]&&this._scheduleSendAction(e,t)});let _=(0,n.get)(this,"registerAPI");_&&_({scrollToItem:this.scrollToItem.bind(this)})}})},46911(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(701627),o=i(989272),a=i(943910),n=i.n(a),s=i(450926);if((0,s.registerSystem)({run:o.run,defer:r.defer}),requirejs.has("ember-concurrency")){const e=(requirejs.has("ember-concurrency/-private/external/task-instance/executor")?requirejs("ember-concurrency/-private/external/task-instance/executor"):requirejs("ember-concurrency/-task-instance")).getRunningInstance,t=requirejs("ember-concurrency").task;class i extends(n().extend({started:!1,realPromise:null,milestoneTask:t(function(e){return{next:()=>this.started?{value:this.realPromise,done:!0}:(this.started=!0,{value:e,done:!1})}})})){}(0,s.registerSystem)({defer(){let{resolve:t,promise:o}=(0,r.defer)(),a=i.create(),n=a.get("milestoneTask"),s={promise:(e()?n.linked():n).perform(o),cancel(e){t(),s.promise.cancel(e)},resolve(e){a.realPromise=e,t()},reject(e){a.realPromise=(0,r.reject)(e),t()}};return s}})}const l={name:"milestones",initialize:()=>{}}},643507(e,t,i){i.d(t,{xF:()=>F,xR:()=>T,yb:()=>R,CJ:()=>A});var r=i(943910);i(44384);const o=window.require("iverson/config/environment").default;var a=i(734138),n=i(496314);const s={_regex:/\{(\w+)\}/g,defaultDescription:"This field",getDescriptionFor(e,t={}){return t.description||this.defaultDescription},getMessageFor(e,t={}){return this.formatMessage((0,r.get)(this,e),t)},formatMessage(e,t={}){let i=e;return((0,n.isNone)(i)||"string"!=typeof i)&&(i=this.invalid),i.replace(this._regex,(e,i)=>(0,r.get)(t,i))},accepted:"{description} must be accepted",after:"{description} must be after {after}",before:"{description} must be before {before}",blank:"{description} can't be blank",collection:"{description} must be a collection",confirmation:"{description} doesn't match {on}",date:"{description} must be a valid date",email:"{description} must be a valid email address",empty:"{description} can't be empty",equalTo:"{description} must be equal to {is}",even:"{description} must be even",exclusion:"{description} is reserved",greaterThan:"{description} must be greater than {gt}",greaterThanOrEqualTo:"{description} must be greater than or equal to {gte}",inclusion:"{description} is not included in the list",invalid:"{description}
1 is invalid",lessThan:"{description} must be less than {lt}",lessThanOrEqualTo:"{description} must be less than or equal to {lte}",notAnInteger:"{description} must be an integer",notANumber:"{description} must be a number",odd:"{description} must be odd",onOrAfter:"{description} must be on or after {onOrAfter}",onOrBefore:"{description} must be on or before {onOrBefore}",otherThan:"{description} must be other than {value}",phone:"{description} must be a valid phone number",positive:"{description} must be positive",multipleOf:"{description} must be a multiple of {multipleOf}",present:"{description} must be blank",singular:"{description} can't be a collection",tooLong:"{description} is too long (maximum is {max} characters)",tooShort:"{description} is too short (minimum is {min} characters)",between:"{description} must be between {min} and {max} characters",url:"{description} must be a valid url",wrongLength:"{description} is the wrong length (should be {is} characters)"};var l=i(18206);const u=Object.assign({},s),c=Object.assign(u,{blank:s.present,present:s.blank,getDescriptionFor:(e="")=>(0,l.ZH)((0,l._k)(e).split(/[._-]/g).join(" "))});function d(e={},t={}){return Object.assign(Object.assign({},t),e)}const{keys:p}=Object,h=`${o.modulePrefix}/validations/messages`;let m=null;function g(e,t){let i=o["changeset-validations"]?.rawOutput||!1,s=function(e=requirejs.entries,t=!0){let i=c;if(t&&(0,n.isPresent)(m))return m;let r=(0,a.A)(p(e)).find(e=>e===h);return(0,n.isPresent)(r)&&(i=d(requireModule(r).default,i)),m=i,i}(),l=s.getDescriptionFor(e);if(t.message)return t.message;let{type:u,value:g,context:f={}}=t,y=(0,r.get)(s,u);if(i)return f=Object.assign({},f,{description:l}),{value:g,type:u,message:y,context:f};if(f.message){let t=f.message;return"function"==typeof t?t(e,u,g,f):s.formatMessage(t,Object.assign({description:l},f))}return s.formatMessage(y,Object.assign({description:l},f))}function f(e,t,i,r){return{type:e,value:t,context:i,message:r}}var y=i(56801),b=i.n(y),v=i(120245),w=i.n(v);function _(e){return function(e){return!(!e||!(e instanceof w()||e instanceof b()))}(e)?_(e.content):e}function A(e){let t;return"boolean"==typeof e?e={presence:e}:e&&void 0!==e.on&&("string"==typeof e.on?t=[e.on]:Array.isArray(e.on)&&(t=e.on),delete e.on),(i,o,a,s,l)=>{if(t&&!t.some(e=>{const t=(0,r.get)(s,e);return t||void 0===t&&(0,r.get)(l,e)}))return!0;let u=function(e,t){let{presence:i,ignoreBlank:r}=t,o=_(e),a=r?(0,n.isPresent)(o):!(0,n.isEmpty)(o);return!0!==i||a?!1!==i||!a||f("present",e,t):f("blank",e,t)}(o,e);return"boolean"==typeof u||"string"==typeof u?u:("present"===u.type?u.type="blank":"blank"===u.type&&(u.type="present"),g(i,u))}}function T(e={}){return e=d(e,{useBetweenMessage:!0}),(t,i)=>{let r=function(e,t){let{allowNone:i=!0,allowBlank:r,useBetweenMessage:o,is:a,min:s,max:l}=t;if((0,n.isNone)(e))return!!i||f("invalid",e,t);if(r&&(0,n.isEmpty)(e))return!0;let u=e.length;return(0,n.isNone)(a)||a===u?o&&!(0,n.isNone)(s)&&!(0,n.isNone)(l)&&(u<s||u>l)?f("between",e,t):!(0,n.isNone)(s)&&s>u?f("tooShort",e,t):!(!(0,n.isNone)(l)&&l<u)||f("tooLong",e,t):f("wrongLength",e,t)}(i,e);return!0===r||g(t,r)}}function C(e,t,i){let r=t[e],o=i;return"is"===e&&o!==r?f("equalTo",i,t):"lt"===e&&o>=r?f("lessThan",i,t):"lte"===e&&o>r?f("lessThanOrEqualTo",i,t):"gt"===e&&o<=r?f("greaterThan",i,t):"gte"===e&&o<r?f("greaterThanOrEqualTo",i,t):"positive"===e&&o<0?f("positive",i,t):"odd"!==e||S(o)&&o%2!=0?"even"!==e||S(o)&&o%2==0?!("multipleOf"===e&&!S(o/r))||f("multipleOf",i,t):f("even",i,t):f("odd",i,t)}function S(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function R(e={}){return(e=d(e,{allowString:!0,allowNone:!1})).allowBlank&&(e.allowNone=!0),(t,i)=>{let r=function(e,t){let i=Number(e),r=Object.keys(t),{allowBlank:o,allowNone:a=!0,allowString:s,integer:l}=t;if(a&&(0,n.isNone)(e))return!0;if(o&&(0,n.isEmpty)(e))return!0;if((0,n.isEmpty)(e))return f("notANumber",e,t);if("string"==typeof e&&!s)return f("notANumber",e,t);if(!function(e){return"number"==typeof e&&!isNaN(e)}(i))return f("notANumber",e,t);if(l&&!S(i))return f("notAnInteger",e,t);for(let e=0;e<r.length;e++){let o=C(r[e],t,i);if("boolean"!=typeof o)return o}return!0}(i,e);return!0===r||g(t,r)}}var D=i(296537),O=i.n(D);const{canInvoke:E}=O();function F(e={}){return e.list&&(e.in=e.list),(t,i)=>{let r=function(e,t){let i=t.in,{range:r,allowBlank:o}=t;if(o&&(0,n.isEmpty)(e))return!0;
1if(i&&-1===i.indexOf(e))return f("inclusion",e,t);if(r&&2===r.length){let[i,o]=r,a=(0,n.typeOf)(e)===(0,n.typeOf)(i)&&(0,n.typeOf)(e)===(0,n.typeOf)(o),s="number"===(0,n.typeOf)(e)&&isNaN(e);if(!a||s||i>e||e>o)return f("inclusion",e,t)}return!0}(i,e);return!0===r||g(t,r)}}},520606(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(827413),o=i.n(r),a=i(943910);class n extends(o().extend({invalidate:(0,a.observer)("changeset._content","changeset._changes",function(){this.recompute()})})){constructor(){super(...arguments),this.changeset=null}compute([e,t]){if(null===this.changeset&&this.set("changeset",e),this.changeset)return this.changeset.get(t)}}},709678(e,t,i){i.r(t),i.d(t,{changesetSet:()=>a,default:()=>n});var r=i(827413),o=i(861204);function a([e,t]){if((0,o.A)(e))return i=>e.set(t,i)}const n=(0,r.helper)(a)},811318(e,t,i){i.r(t),i.d(t,{changeset:()=>h,default:()=>m});var r=i(827413),o=i(757586),a=i(496314),n=i(734138);function s(e){return Array.isArray(e)?e:[e]}var l=i(187561);async function u(e){try{const t=(await Promise.all(e)).filter(e=>"boolean"!=typeof e&&e);return 0===t.length||t}catch(e){return e}}function c(e){return({key:t,newValue:i,oldValue:r,changes:o,content:c})=>{let d=e[t];if((0,a.isEmpty)(d))return!0;if((0,n.isArray)(d))return function(e,{key:t,newValue:i,oldValue:r,changes:o,content:a}){let n=Array.from(e.map(e=>e(t,i,r,o,a)));return n.some(l.A)?Promise.all(n).then(u):function(e){const t=e.filter(e=>"boolean"!=typeof e&&e);return 0===t.length||t}(n)}(d,{key:t,newValue:i,oldValue:r,changes:o,content:c});let p=d(t,i,r,o,c);return(0,l.A)(p)?p.then(s):[p]}}var d=i(861204),p=i(807265);function h([e,t],i={}){return(0,d.A)(e)?e:(0,p.A)(t)?(0,l.A)(e)?e.then(e=>new o.A(e,c(t),t,i)):new o.A(e,c(t),t,i):(0,l.A)(e)?Promise.resolve(e).then(e=>new o.A(e,t,{},i)):new o.A(e,t,{},i)}const m=(0,r.helper)(h)},757586(e,t,i){i.d(t,{A:()=>U}),i(44384);var r=i(943910),o=i.n(r),a=i(640626),n=i(434158),s=i.n(n),l=i(496314);class u{constructor(e){this.value=e}}class c{constructor(e,t){this.value=e,this.validation=t}}function d(...e){return e.reduce((e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),{})}var p=i(807265);function h(e){return"object"===(0,l.typeOf)(e)||"instance"===(0,l.typeOf)(e)}function m(e,t,i){return t.split(".").reduce((e,t,o,a)=>{let n=(0,r.get)(e,t)??{},s=a[o+1]&&h(n)?n:a[o+1]&&!h(n)?{}:i;return void 0===s?(e.hasOwnProperty(t)||"function"!=typeof e.setUnknownProperty?(e[t]=s,"function"==typeof e.notifyPropertyChange&&e.notifyPropertyChange(t)):e.setUnknownProperty(t,s),s):(0,r.set)(e,t,s)},e),i}const{keys:g}=Object;function f(e,t=e=>e){return(0,r.computed)(e,function(){let i=(0,r.get)(this,e);return g(i).sort().reduce((e,r)=>(m(e,r,t(i[r])),e),{})}).readOnly()}const{keys:y}=Object;function b(e){return(0,r.computed)(e,function(){return 0===y((0,r.get)(this,e)).length}).readOnly()}var v=i(316325);const{keys:w}=Object;function _(e,t=e=>e,i=!1){return(0,r.computed)(e,function(){let o=(0,r.get)(this,e);return w(o).map(e=>{let r=t(o[e]);return i&&(0,p.A)(r)?(0,v.assign)({key:e},r):{key:e,value:r}})}).readOnly()}const{keys:A}=Object;function T(e,t){return(0,r.computed)(e,function(){let i=(0,r.get)(this,e);return A(i).reduce((e,r)=>(e[r]=t(i[r]),e),Object.create(null))})}var C=i(861204),S=i(187561);const{keys:R}=Object;function D(e,t,i){return R(e).filter(e=>0===e.indexOf(`${t}.`)).forEach(t=>delete e[t]),t.split(".").slice(0,-1).forEach((t,i,r)=>{let o=r.slice(0,i+1).join(".");delete e[o]}),e[t]=i,i}const{keys:O}=Object;function E(...e){let t={};return e.forEach(e=>O(e).forEach(i=>D(t,i,e[i]))),t}const{keys:F}=Object;function P(e,...t){return t.reduce((t,i)=>(F(i).filter(t=>-1===e.indexOf(t)||!i.hasOwnProperty(t)).forEach(e=>t[e]=i[e]),t),{})}const{keys:x}=Object;function N(e,t){x(t).forEach(e=>{e.split(".").forEach((e,t,i)=>{t<i.length-1&&i.slice(0,t+1).join(".")})})}const{keys:z}=Object,I="_content",M="_changes",k="_errors",L="_validator",j="_options",V="_runningValidations",B="afterValidation",q=()=>!0,H={skipValidate:!1};class U{constructor(e,t=q,i={},n={}){return function(e,t=q,i={},n={}){let h={__changeset__:C.N,_content:{},_changes:{},_errors:{}
1,_validator:q,_options:H,_runningValidations:{},_bareChanges:T(M,e=>e.value),changes:_(M,e=>e.value,!1),errors:_(k,e=>({value:e.value,validation:e.validation}),!0),change:f(M,e=>e.value),error:f(k,e=>({value:e.value,validation:e.validation})),data:(0,a.readOnly)(I),isValid:b(k),isPristine:b(M),isInvalid:(0,a.not)("isValid").readOnly(),isDirty:(0,a.not)("isPristine").readOnly(),init(){let i=this;i._super(...arguments),i[I]=e,i[M]={},i[k]={},i[L]=t,i[j]=d(H,n),i[V]={}},unknownProperty(e){return this._valueFor(e)},setUnknownProperty(e,t){let i=(0,r.get)(this,j);if((0,r.get)(i,"skipValidate")){let i=(0,r.get)(this,I),o=(0,r.get)(i,e);return this._setProperty({key:e,value:t,oldValue:o}),this._handleValidation(!0,{key:e,value:t})}let o=(0,r.get)(this,I),a=(0,r.get)(o,e);return this._setProperty({key:e,value:t,oldValue:a}),this._validateKey(e,t)},toString(){return`changeset:${d((0,r.get)(this,I),{}).toString()}`},prepare(e){let t=e((0,r.get)(this,"_bareChanges"));N(0,t);let i=z(t).reduce((e,i)=>(e[i]=new u(t[i]),e),{});return(0,r.set)(this,M,i),this},execute(){if((0,r.get)(this,"isValid")&&(0,r.get)(this,"isDirty")){let e=(0,r.get)(this,I),t=(0,r.get)(this,M);z(t).forEach(i=>m(e,i,t[i].value))}return this},save(e){let t=(0,r.get)(this,I),i=Promise.resolve(this);if(this.execute(),"function"==typeof t.save)i=t.save(e);else if("function"==typeof(0,r.get)(t,"save")){let o=(0,r.get)(t,"save");o&&(i=o(e))}return Promise.resolve(i).then(e=>(this.rollback(),e))},merge(e){let t=(0,r.get)(this,I);if((0,r.get)(this,"isPristine")&&(0,r.get)(e,"isPristine"))return this;let i=(0,r.get)(this,M),o=(0,r.get)(e,M),a=(0,r.get)(this,k),n=(0,r.get)(e,k),s=new U(t,(0,r.get)(this,L)),l=P(z(o),a),u=P(z(n),i),c=E(l,n),d=E(u,o);return s[k]=c,s[M]=d,s._notifyVirtualProperties(),s},rollback(){let e=this,t=e._rollbackKeys();return(0,r.set)(this,M,{}),(0,r.set)(this,k,{}),e._notifyVirtualProperties(t),e.trigger("afterRollback"),this},rollbackInvalid(e){let t=z((0,r.get)(this,k));return e?(this._notifyVirtualProperties([e]),this._deleteKey(k,e),t.indexOf(e)>-1&&this._deleteKey(M,e)):(this._notifyVirtualProperties(),(0,r.set)(this,k,{}),t.forEach(e=>{this._deleteKey(M,e)})),this},rollbackProperty(e){return this._deleteKey(M,e),this._deleteKey(k,e),this},validate(e){if(0===z(i).length)return Promise.resolve(null);if(!Boolean(e)){let e=z(i).map(e=>this._validateKey(e,this._valueFor(e)));return Promise.all(e)}return Promise.resolve(this._validateKey(e,this._valueFor(e)))},addError(e,t){let i;return i=(0,p.A)(t)&&!Array.isArray(t)?new c(t.value,t.validation):new c((0,r.get)(this,e),t),D((0,r.get)(this,k),e,i),this.notifyPropertyChange(k),this.notifyPropertyChange(e),t},pushErrors(e,...t){let i=(0,r.get)(this,k),o=i[e]||new c(null,[]),a=o.validation,n=(0,r.get)(this,e);return!Array.isArray(a)&&Boolean(a)&&(o.validation=[a]),a=[...o.validation,...t],D(i,e,new c(n,a)),this.notifyPropertyChange(k),this.notifyPropertyChange(e),{value:n,validation:a}},snapshot(){let e=(0,r.get)(this,M),t=(0,r.get)(this,k);return{changes:z(e).reduce((t,i)=>(t[i]=e[i].value,t),{}),errors:z(t).reduce((e,i)=>{let r=t[i];return e[i]={value:r.value,validation:r.validation},e},{})}},restore({changes:e,errors:t}){N(0,e),N(0,t);let i=z(e).reduce((t,i)=>(t[i]=new u(e[i]),t),{}),o=z(t).reduce((e,i)=>{let r=t[i];return e[i]=new c(r.value,r.validation),e},{});return(0,r.set)(this,M,i),(0,r.set)(this,k,o),this._notifyVirtualProperties(),this},cast(e=[]){let t=(0,r.get)(this,M);if(Array.isArray(e)&&0===e.length)return this;let i=function(e={},t=[]){let i={};for(let r in e)-1!==t.indexOf(r)&&(i[r]=e[r]);return i}(t,z(t).filter(t=>e.includes(t)));return(0,r.set)(this,M,i),this},isValidating(e){let t=(0,r.get)(this,V),i=z(t);return e?i.includes(e):i.length>0},_validateKey(e,t){let i=(0,r.get)(this,I),o=(0,r.get)(i,e),a=this._validate(e,t,o);if(this.trigger("beforeValidation",e),(0,S.A)(a))return this._setIsValidating(e,!0),a.then(i=>(this._setIsValidating(e,!1),this.trigger(B,e),this._handleValidation(i,{key:e,value:t})));let n=this._handleValidation(a,{key:e,value:t});return this.trigger(B,e),n},_handleValidation(e,{key:t,value:i}){let r=!0===e||Array.isArray(e)&&1===e.length&&!0===e[0];return this._deleteKey(k,t),r?i:this.addError(t,{value:i,validation:e})},_validate(e,t,i){let o=(0,r.get)(this,L),a=(0,r.get)(this,I);if("function"==typeof o){let n=o({key:e,newValue:t,oldValue:i,changes:(0,r.get)(this,"change"),content:a});return"boolean"!=typeof n&&!Boolean(n)||n}return!0},_setProperty({key:e,value:t,oldValue:i}){let o=(0,r.get)(this,M);(0,l.isEqual)(i,t)?e in o&&this._deleteKey(M,e):D(o,e,new u(t)),this.notifyPropertyChange(M),this.notifyPropertyChange(e)},_setIsValidating(e,t){let i=(0,r.get)(this,V),o=(0,r.get)(i,e)||0;t||1!==o?m(i,e,t?o+1:o-1):delete i[e]},_valueFor(e){let t=(0,r.get)(this,M),i=(0,r.get)(this,k),o=(0,r.get)(this,I);if(i.hasOwnProperty(e))return i[e].value;let a=(0,r.get)(o,e);if(t.hasOwnProperty(e))return t[e].value;if(-1!==e.indexOf(".")){let[i,...o]=e.split(".");if(t.hasOwnProperty(i)){let{value:e}=t[i];return e?(0,r.get)(e,o.join(".")):e}}return a},_notifyVirtualProperties(e){e||(e=this._rollbackKeys()),(e||[]).forEac
1h(e=>this.notifyPropertyChange(e))},_rollbackKeys(){let e=(0,r.get)(this,M),t=(0,r.get)(this,k);return[...new Set([...z(e),...z(t)])]},_deleteKey(e,t=""){let i=(0,r.get)(this,e);i.hasOwnProperty(t)&&delete i[t],this.notifyPropertyChange(`${e}.${t}`),this.notifyPropertyChange(e)},get(e){return e.indexOf(".")>-1?this.unknownProperty(e):this._super(...arguments)},set(e,t){return e.indexOf(".")>-1?this.setUnknownProperty(e,t):this._super(...arguments)}};return o().extend(s(),h)}(e,t,i,n).create()}}},861204(e,t,i){i.d(t,{A:()=>a});var r=i(943910);const o="__CHANGESET__";function a(e){return(0,r.get)(e,"__changeset__")===o}i.d(t,["N",0,o])},807265(e,t,i){i.d(t,{A:()=>o});var r=i(496314);function o(e){return"object"==typeof e||"instance"===(0,r.typeOf)(e)}},187561(e,t,i){i.d(t,{A:()=>o});var r=i(807265);function o(e){return(0,r.A)(e)&&function(e){return!!(e&&e.then&&e.catch&&e.finally&&"function"==typeof e.then&&"function"==typeof e.catch&&"function"==typeof e.finally)}(e)}},411775(e,t,i){i.r(t),i.d(t,{appVersion:()=>l,default:()=>u});var r=i(827413),o=i(204011);const a=/\d+[.]\d+[.]\d+/,n=/\d+[.]\d+[.]\d+-[a-z]*([.]\d+)?/,s=/[a-z\d]{8}$/;function l(e,t={}){const i=o.default.APP.version;let r=t.versionOnly||t.hideSha,l=t.shaOnly||t.hideVersion,u=null;return r&&(t.showExtended&&(u=i.match(n)),u||(u=i.match(a))),l&&(u=i.match(s)),u?u[0]:i}const u=(0,r.helper)(l)},448291(e,t,i){i.d(t,{Ay:()=>o});var r=i(44384);function o(e){self.deprecationWorkflow=self.deprecationWorkflow||{},self.deprecationWorkflow.deprecationLog={messages:new Set},(0,r.registerDeprecationHandler)((t,i,r)=>function(e,t,i,r){let o=function(e,t,i){if(!e||!e.workflow)return;let r,o,n,s;for(r=0;r<e.workflow.length;r++)if(o=e.workflow[r],n=o.matchMessage,s=o.matchId,a(s,i?.id)||a(n,t))return o}(e,t,i);if(o)switch(o.handler){case"silence":break;case"log":{let e=i&&i.id||t;self.deprecationWorkflow.logCounts||(self.deprecationWorkflow.logCounts={});let r=self.deprecationWorkflow.logCounts[e]||0;self.deprecationWorkflow.logCounts[e]=++r,r<=100&&(console.warn("DEPRECATION: "+t),100===r&&console.warn("To avoid console overflow, this deprecation will not be logged any more in this run."));break}case"throw":throw new Error(t+` (id: ${i?.id||"unknown"})`);default:r(t,i)}else{if(e&&e.throwOnUnhandled)throw new Error(t);r(t,i)}}(e,t,i,r)),(0,r.registerDeprecationHandler)(n),self.deprecationWorkflow.flushDeprecations=t=>function({handler:e="silence",config:t={}}={}){let i=self.deprecationWorkflow.deprecationLog.messages,r=t.workflow??[],o=i.values().filter(e=>!r.some(t=>t.matchId===e)).map(t=>({handler:e,matchId:t})),a={...t,workflow:[...r,...o]};return`import setupDeprecationWorkflow from 'ember-cli-deprecation-workflow';\n\nsetupDeprecationWorkflow(${JSON.stringify(a,void 0,2)});`}({config:e,...t})}function a(e,t){return"string"==typeof e&&e===t||e instanceof RegExp&&e.exec(t)}function n(e,t,i){self.deprecationWorkflow.deprecationLog.messages.add(t.id),i(e,t)}},984673(e,t,i){i.r(t),i.d(t,{default:()=>z});var r=i(962085),o=i(994078),a=i(973029),n=i.n(a),s=i(296537),l=i.n(s),u=n().create({VERSION:"3.12.6",name:"DS"});l().libraries&&l().libraries.registerCoreLibrary("Ember Data","3.12.6");const c=u;i(744817);var d=i(458504),p=i(734138),h=i(403139),m=i.n(h),g=i(18206),f=(i(44384),i(943910)),y=i(236853);const b=m().extend({getFilters:()=>[{name:"isNew",desc:"New"},{name:"isModified",desc:"Modified"},{name:"isClean",desc:"Clean"}],detect:e=>e!==y.Ay&&y.Ay.detect(e),columnNameToDesc:e=>(0,g.ZH)((0,g.z9)(e).replace(/_/g," ").trim()),columnsForType(e){var t=[{name:"id",desc:"Id"}],i=0,r=this;return(0,f.get)(e,"attributes").forEach((e,o)=>{if(i++>r.attributeLimit)return!1;var a=this.columnNameToDesc(o);t.push({name:o,desc:a})}),t},getRecords(e,t){if(arguments.length<2){var i=e._debugContainerKey;if(i){var r=i.match(/model:(.*)/);null!==r&&(t=r[1])}}return this.get("store").peekAll(t)},getRecordColumnValues(e){var t=0,i={id:(0,f.get)(e,"id")};return e.eachAttribute(r=>{if(t++>this.attributeLimit)return!1;i[r]=(0,f.get)(e,r)}),i},getRecordKeywords(e){var t=[],i=(0,p.A)(["id"]);return e.eachAttribute(e=>
1i.push(e)),i.forEach(i=>t.push((0,f.get)(e,i))),t},getRecordFilterValues:e=>({isNew:e.get("isNew"),isModified:e.get("hasDirtyAttributes")&&!e.get("isNew"),isClean:!e.get("hasDirtyAttributes")}),getRecordColor(e){var t="black";return e.get("isNew")?t="green":e.get("hasDirtyAttributes")&&(t="blue"),t},observeRecord(e,t){var i=(0,p.A)(),r=(0,p.A)(["id","isNew","hasDirtyAttributes"]);e.eachAttribute(e=>r.push(e));var o=this;return r.forEach(function(r){var a=function(){t(o.wrapRecord(e))};(0,d.addObserver)(e,r,a),i.push(function(){(0,d.removeObserver)(e,r,a)})}),function(){i.forEach(e=>e())}}});var v=i(574403),w=i(119762),_=i(249934),A=i(426809),T=i(476620),C=i(796431);function S(e){var t;e.register("data-adapter:main",b),(t=e).register("transform:boolean",C.le),t.register("transform:date",C.Z$),t.register("transform:number",C.Go),t.register("transform:string",C.sF),function(e){var t=e.inject||e.injection;t.call(e,"controller","store","service:store"),t.call(e,"route","store","service:store"),t.call(e,"data-adapter","store","service:store")}(e),function(e){var t,i,r=e.registerOptionsForType||e.optionsForType;r.call(e,"serializer",{singleton:!1}),r.call(e,"adapter",{singleton:!1}),e.register("serializer:-default",w.A),e.register("serializer:-rest",_.A),e.register("adapter:-rest",T.A),e.register("adapter:-json-api",A.A),e.register("serializer:-json-api",v.A),i="service:store",((t=e).has?t.has(i):t.hasRegistration(i))||e.register("service:store",o.default)}(e)}var R=i(960765),D=i(683619),O=i.n(D),E=(i(470310),i(220829)),F=i(458622),P=i(135576),x=i(186730),N=i(705578);if(R.VERSION.match(/^1\.([0-9]|1[0-2])\./))throw new(O())("Ember Data requires at least Ember 1.13.0, but you have "+R.VERSION+". Please upgrade your version of Ember, then upgrade Ember Data.");c.Store=o.default,c.PromiseArray=r.Nt,c.PromiseObject=r.BO,c.PromiseManyArray=r.gs,c.Model=y.Ay,c.RootState=r.y3,c.attr=y.CF,c.Errors=r.I,c.InternalModel=r.LZ,c.Snapshot=r.Fm,c.Adapter=P.A,c.AdapterError=x.Ay,c.InvalidError=x.aB,c.TimeoutError=x.MU,c.AbortError=x.lc,c.UnauthorizedError=x.D_,c.ForbiddenError=x.qQ,c.NotFoundError=x.m_,c.ConflictError=x.fK,c.ServerError=x.gP,c.errorsHashToArray=x.W2,c.errorsArrayToHash=x.w_,c.Serializer=N.A,c.DebugAdapter=b,c.RecordArray=r.Bm,c.AdapterPo
1pulatedRecordArray=r.qu,c.ManyArray=r.hZ,c.RecordArrayManager=r.G,c.RESTAdapter=T.A,c.BuildURLMixin=P.B,c.RESTSerializer=_.A,c.JSONSerializer=w.A,c.JSONAPIAdapter=A.A,c.JSONAPISerializer=v.A,c.Transform=F.A,c.DateTransform=C.Z$,c.StringTransform=C.sF,c.NumberTransform=C.Go,c.BooleanTransform=C.le,c.EmbeddedRecordsMixin=_.i,c.belongsTo=y.g4,c.hasMany=y.iQ,c.Relationship=r.bO,c._setupContainer=S,c._initializeStoreService=E.A,Object.defineProperty(c,"normalizeModelName",{enumerable:!0,writable:!1,configurable:!1,value:o.normalizeModelName});const z={name:"ember-data",initialize:S}},170117(e,t,i){i.r(t);const r={name:"ember-data",initialize:i(220829).A};i.d(t,["default",0,r])},220829(e,t,i){function r(e){(e.lookup?e:e.container).lookup("service:store")}i.d(t,{A:()=>r})},602830(e,t,i){i.r(t),i.d(t,{default:()=>a,initialize:()=>o});var r=i(839127);function o(){}const a={initialize:o},n=new class{constructor(){var e,t,i;e=this,t="capabilities",i=(0,r.capabilities)("3.23",{hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}),(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i}createHelper(e,t){return{fn:e,args:t}}getValue({fn:e,args:t}){return Object.keys(t.named).length>0?e(...t.positional,t.named):e(...t.positional)}getDebugName(e){return e.name?`(helper function ${e.name})`:"(anonymous helper function)"}};(0,r.setHelperManager)(()=>n,Function.prototype)},155441(e,t,i){function r(){}i.r(t),i.d(t,{default:()=>o,initialize:()=>r});const o={initialize:r}},972292(e,t,i){i.d(t,{A:()=>s});var r=i(412365),o=i.n(r);function a(e){var t=o()(e,null,null,!0);if(!t)throw new Error(e+" must export an initializer.");var i=t.default;if(!i)throw new Error(e+" must have a default export");return i.name||(i.name=e.slice(e.lastIndexOf("/")+1)),i}function n(e,t){return-1!==e.indexOf(t,e.length-t.length)}function s(e,t){for(var i=t+"/initializers/",r=t+"/instance-initializers/",o=[],s=[],l=Object.keys(requirejs._eak_seen),u=0;u<l.length;u++){var c=l[u];0===c.lastIndexOf(i,0)?n(c,"-test")||o.push(c):0===c.lastIndexOf(r,0)&&(n(c,"-test")||s.push(c))}!function(e,t){for(var i=0;i<t.length;i++)e.initializer(a(t[i]))}(e,o),function(e,t){for(var i=0;i<t.length;i++)e.instanceInitializer(a(t[i]))}(e,s)}},402973(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(345444),o=i(636415),a=i(161015);const n=r.A.extend({layout:o.A,init(){this.id=this.id||`${(0,a.guidFor)(this)}-popper`,this._parentFinder=self.document?self.document.createTextNode(""):"",this._super(...arguments)},didInsertElement(){this._super(...arguments),this._initialParentNode=this._parentFinder.parentNode},_getPopperTarget(){return this._initialParentNode}})},985853(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(345444),o=i(161015);const a=r.A.extend({popperTarget:null,init(){this.id=this.id||`${(0,o.guidFor)(this)}-popper`,this._super(...arguments)}})},265305(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(636415)},925806(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(978662)},345444(e,t,i){var r=i(618576),o=i.n(r),a=i(943910),n=(i(44384),i(978662)),s=i(387569);const l=o().extend({layout:n.A,tagName:"",eventsEnabled:!0,hidden:!1,modifiers:null,onCreate:null,onUpdate:null,placement:"bottom",popperContainer:".ember-
1application",registerAPI:null,renderInPlace:!1,_didRenderInPlace:!1,_eventsEnabled:null,_initialParentNode:null,_modifiers:null,_onCreate:null,_onUpdate:null,_placement:null,_popper:null,_popperElement:null,_popperTarget:null,_publicAPI:null,_updateRAF:null,willDestroyElement(){this._super(...arguments),null!==this._popper&&this._popper.destroy(),s.ck.forget(this._updateRAF)},update(){this._popper.update()},scheduleUpdate(){null===this._updateRAF&&(this._updateRAF=s.ck.schedule("affect",()=>{this._updateRAF=null,this._popper.update()}))},enableEventListeners(){this._popper.enableEventListeners()},disableEventListeners(){this._popper.disableEventListeners()},actions:{update(){this.update()},scheduleUpdate(){this.scheduleUpdate()},enableEventListeners(){this.enableEventListeners()},disableEventListeners(){this.disableEventListeners()},didInsertPopperElement(e){this._popperElement=e,this._updatePopper()},willDestroyPopperElement(){this._popperElement=null},didUpdatePopperSettings(){this._updatePopper()}},_updatePopper(){if(this.isDestroying||this.isDestroyed||!this._popperElement)return;const e=this.get("eventsEnabled"),t=this.get("modifiers"),i=this.get("onCreate"),r=this.get("onUpdate"),o=this.get("placement"),a=this._getPopperTarget(),n=this.get("_renderInPlace");if(!0==(n!==this._didRenderInPlace||a!==this._popperTarget||e!==this._eventsEnabled||t!==this._modifiers||o!==this._placement||i!==this._onCreate||r!==this._onUpdate)){null!==this._popper&&this._popper.destroy(),this._didRenderInPlace=n,this._eventsEnabled=e,this._modifiers=t,this._onCreate=i,this._onUpdate=r,this._placement=o,this._popperTarget=a;const s={eventsEnabled:e,modifiers:t,placement:o};i&&(s.onCreate=i),r&&(s.onUpdate=r),this._popper=new Popper(a,this._popperElement,s),null!==this.get("registerAPI")&&this.get("registerAPI")(this._getPublicAPI())}},_getPopperTarget(){return this.get("popperTarget")},_getPublicAPI(){return null===this._publicAPI&&(this._publicAPI={disableEventListeners:this.disableEventListeners.bind(this),enableEventListeners:this.enableEventListeners.bind(this),scheduleUpdate:this.scheduleUpdate.bind(this),update:this.update.bind(this)}),this._publicAPI.popperElement=this._popperElement,this._publicAPI.popperTarget=this._popperTarget,this._publicAPI},_popperContainer:(0,a.computed)("_renderInPlace","popperContainer",function(){const e=this.get("_renderInPlace"),t=this.get("popperContainer");let i;if(e)i=this._initialParentNode;else if(t instanceof Element)i=t;else if("string"==typeof t){const e=t;i=self.document.querySelectorAll(e)[0]}return i}),_renderInPlace:(0,a.computed)("renderInPlace",function(){return!self.document||!!this.get("renderInPlace")})});i.d(t,["A",0,l])},264086(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(906320)},440576(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(906320);const o=class extends r.A{compute(e){const t=e[0];return this.ensureLatestPromise(t,async e=>{try{await e,this.setValue(!0,t)}catch(e){this.setValue(!1,t)}})}};i.dn(o)},384996(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(906320);const o=class extends r.A{constructor(...e){super(...e),this.valueBeforeSettled=!0}compute(e){const t=e[0];return this.ensureLatestPromise(t,async e=>{try{await e}catch(e){}finally{this.setValue(!1,t)}})}};i.dn(o)},825061(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(906320);const o=class extends r.A{compute(e){const t=e[0];return this.ensureLatestPromise(t,async e=>{try{await e,this.setValue(!1,t)}catch(e){this.setValue(!0,t)}})}};i.dn(o)},75202(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(827413),o=i.n(r),a=i(701627),n=i.n(a);const s=class extends(o()){compute(e){const t=Array.isArray(e[0])?e[0]:e;return n().all(t)}};i.dn(s)},542663(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(827413),o=i.n(r),a=i(701627),n=i.n(a);const s=class extends(o()){compute(e,t){return n().hash(t)}};i.dn(s)},35455(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(906320);const o=class extends r.A{compute(e){const t=e[0];return this.ensureLatestPromise(t,async e=>{try{await e,this.setValue(null,t)}catch(e){this.setValue(e,t)}})}};i.dn(o)},906320(e,t,i){var r=i(827413),o=i.n(r),a=i(701627);const n=class extends(o()){constructor(...e){super(...e),this.valueBeforeSettled=null}compute([e]){return e&&"function"==typeof e.then?this.ensureLatestPromise(e,async t=>{try{const i=await t;this.setValue(i,e)}catch(t){this.setValue(null,e)}}):e}ensureLatestPromise(e,t){return this._wasSettled&&e===this._promise?this._value:(this._unsettle(),this._promise=e,t.call(this,a.Promise.resolve(e)),this.valueBeforeSettled)}_settle(e){this.allowUpdates(e)&&(this._wasSettled=!0,this.recompute())}_unsettle(){this._wasSettled=!1,this._promise=null}setValue(e,t){this.allowUpdates(t)&&(this._value=e,this._settle(t))}allowUpdates(e){return this._promise===e}};i.dn(n),i.d(t,["A",0,n])},215536(e,t,i){i.r(t),i.d(t,{default:()=>u});var r=i(765632),o=i(989272),a=i(943910);const n=(0,i(510364).createTemplateFactory)({id:"9Gos5DuV",block:'[[[11,"input"],[17,1],[24,4,"radio"],[16,"checked",[30,2]],[16,"aria-checked",[30,0,["checkedStr"]]],[16,2,[30,3]],[4,[38,0],["change",[30,0,["change"]]],null],[12],[13],[1,"\\n"]],["&attrs","@checked","@value"],false,["on"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-radio-button.fb3aa7e7/node_modules/ember-radio-button/components/radio-button-input.hbs",isStrictMode:!1});var s,l=i(618576);let u=(s=class extends r.A{get checkedStr(){const e=this.args.checked;return"boolean"==typeof e?e.toString():null}change(){this.args.groupValue!==this.args.value&&(0,o.once)(this.args,"changed",this.args.value)}},c=s.prototype,d="change",p=[a.action],h=Object.getOwnPropertyDescriptor(s.prototype,"change"),m=s.prototype,g={}
1,Object.keys(h).forEach(function(e){g[e]=h[e]}),g.enumerable=!!g.enumerable,g.configurable=!!g.configurable,("value"in g||g.initializer)&&(g.writable=!0),g=p.slice().reverse().reduce(function(e,t){return t(c,d,e)||e},g),m&&void 0!==g.initializer&&(g.value=g.initializer?g.initializer.call(m):void 0,g.initializer=void 0),void 0===g.initializer&&Object.defineProperty(c,d,g),s);var c,d,p,h,m,g;(0,l.setComponentTemplate)(n,u)},502182(e,t,i){i.r(t),i.d(t,{default:()=>l,refTo:()=>l});var r=i(827413),o=i.n(r),a=i(465213),n=i(567407),s=i(979295);class l extends(o()){constructor(...e){var t,i,r;super(...e),t=this,r=null,(i=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(i="_watcher"))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r}compute([e],{bucket:t,tracked:i}){const r=t||(0,s.getOwner)(this);return this._name!==e&&(this._watcher&&(0,n.unregisterDestructor)(this,this._watcher),this._watcher=(0,a.Hg)(e,r,()=>{this.recompute()}),(0,n.registerDestructor)(this,this._watcher),this._name=e),i?(0,a._d)(r).getTracked(e):(0,a._d)(r).get(e)}}},780937(e,t,i){i.r(t),i.d(t,{default:()=>n,initialize:()=>a});var r=i(567407),o=i(465213);function a(e){(0,r.registerDestructor)(e,()=>{(0,o.mn)()})}const n={initialize:a}},358901(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(309131)},288966(e,t,i){i.d(t,{KR:()=>n,e3:()=>s});var r=i(465213),o=(i(979295),i(419010));function a(e,t,i,r){return null==e?null:"function"==typeof i?(t.has(e)||t.set(e,i.call(r,e)),t.get(e)):e}function n(e,t){return function(i,n){const s=new WeakMap;return"function"==typeof t&&(0,o.P)(i,n,e),{get(){return a((0,r._d)(this).get(e),s,t,this)},configurable:!0}}}function s(e,t){return function(i,n){const s=new WeakMap;return"function"==typeof t&&(0,o.P)(i,n,e),{get(){return a((0,r._d)(this).getTracked(e),s,t,this)},configurable:!0}}}},309131(e,t,i){i.d(t,{A:()=>d});var r,o=i(960234),a=i(979295),n=i(943910),s=(i(44384),i(465213)),l=i(419010),u=i(567407);function c(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}let d=(r=class extends o.A{constructor(){super(...arguments),c(this,"_key",void 0),c(this,"_ctx",void 0),c(this,"_element",void 0),c(this,"defaultMutationObserverOptions",{attributes:!1,characterData:!1,childList:!1,subtree:!1}),(0,s.jz)((0,a.getOwner)(this)),(0,u.registerDestructor)(this,()=>{const e=this._element;this.cleanMutationObservers(),this.cleanResizeObservers(),(0,s.f$)(e).forEach(e=>e()),e===(0,s._d)(this._ctx).get(this._key)&&(0,s._d)(this._ctx).add(this._key,null),delete this._element})}markDirty(){(0,s._d)(this._ctx).dirtyTrackedCell(this._key)}cleanMutationObservers(){this._mutationsObserver&&this._mutationsObserver.disconnect()}cleanResizeObservers(){this._resizeObserver&&this._resizeObserver.unobserve(this._element)}installMutationObservers(e={}){this._mutationsObserver=new MutationObserver(this.markDirty);const t=this.getObserverOptions(e);delete t.resize,(t.attributes||t.characterData||t.childList||t.subtree)&&this._mutationsObserver.observe(this._element,t)}validateTrackedOptions(e={}){["subtree","attributes","children","resize","character"].some(t=>t in e)}getObserverOptions(e={}){let t=!1,i=this.defaultMutationObserverOptions.subtree,r=this.defaultMutationObserverOptions.attributes,o=this.defaultMutationObserverOptions.characterData,a=this.defaultMutationObserverOptions.childList;return"subtree"in e&&(i=e.subtree),"attributes"in e&&(r=e.attributes),"children"in e&&(a=e.children),"resize"in e&&(t=e.resize),"character"in e&&(o=e.character),{subtree:i,attributes:r,childList:a,resize:t,characterData:o}}installResizeObservers(e){this._resizeObserver=new ResizeObserver(this.markDirty),this._resizeObserver.observe(e)}modify(e,t,i){const r=this.name(t),o=this.ctx(i,t);this._key=r,this._ctx=o,this._element=e,this.validateTrackedOptions(i),this.cleanMutationObservers(),this.cleanResizeObservers(),r===this._key&&this._ctx===o||(0,s._d)(this._ctx).add(this._key,null),(0,s.Hg)(r,o,()=>
1{(0,l._)(o,r).forEach(e=>{o[e]})}),(0,s._d)(o).add(r,e),this.isTracked(i)&&(this.installMutationObservers(i),this.getObserverOptions(i).resize&&this.installResizeObservers(e))}ctx(e={},t=[void 0]){return e.bucket||(0,a.getOwner)(this)}isTracked(e={}){return e.tracked||!1}name(e){return e[0]}},p=r.prototype,h="markDirty",m=[n.action],g=Object.getOwnPropertyDescriptor(r.prototype,"markDirty"),f=r.prototype,y={},Object.keys(g).forEach(function(e){y[e]=g[e]}),y.enumerable=!!y.enumerable,y.configurable=!!y.configurable,("value"in y||y.initializer)&&(y.writable=!0),y=m.slice().reverse().reduce(function(e,t){return t(p,h,e)||e},y),f&&void 0!==y.initializer&&(y.value=y.initializer?y.initializer.call(f):void 0,y.initializer=void 0),void 0===y.initializer&&Object.defineProperty(p,h,y),r);var p,h,m,g,f,y},419010(e,t,i){i.d(t,{P:()=>o,_:()=>a});const r=new WeakMap;function o(e,t,i){r.has(e)||r.set(e,{});let o=r.get(e);i in o||(o[i]=new Set),o[i].add(t)}function a(e,t){let i=e;for(;i.__proto__;)if(i=i.__proto__,r.has(i)){let e=r.get(i);if(t in e)return Array.from(e[t])}return[]}},465213(e,t,i){i.d(t,{Hg:()=>T,_d:()=>A,f$:()=>_,jz:()=>v,mn:()=>w});var r,o,a=i(567407),n=i(279564);let s=null;const l=new WeakMap,u=new WeakMap,c="undefined"!=typeof WeakRef;function d(e){return c&&e instanceof WeakRef?e.deref()??null:e}function p(e){return null==e?null:c?e instanceof WeakRef?e:new WeakRef(e):e}let h=(r=class{constructor(){var e;(e=o)&&Object.defineProperty(this,"_element",{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(this):void 0})}get value(){return this._element?d(this._element):null}set value(e){this._element=e?p(e):null}},m=r.prototype,g="_element",f=[n.tracked],y={configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}},b={},Object.keys(y).forEach(function(e){b[e]=y[e]}),b.enumerable=!!b.enumerable,b.configurable=!!b.configurable,("value"in b||b.initializer)&&(b.writable=!0),b=f.slice().reverse().reduce(function(e,t){return t(m,g,e)||e},b),o=void 0===b.initializer?(Object.defineProperty(m,g,b),null):b,r);var m,g,f,y,b;function v(e){s=e}function w(){s=null}function _(e){return u.get(e)||[]}function A(e){const t=e;if(!l.has(t)){if(l.set(t,{bucket:{},keys:{},createTrackedCell(e){e in this.keys||(this.keys[e]=new h)},get(e){return this.createTrackedCell(e),d(this.bucket[e])||null},dirtyTrackedCell(e){this.createTrackedCell(e);const t=this.keys[e].value;this.keys[e].value=t},getTracked(e){return this.createTrackedCell(e),this.keys[e].value},add(e,t){this.createTrackedCell(e),this.keys[e].value=t,this.bucket[e]=p(t),e in this.notificationsFor||(this.notificationsFor[e]=[]),this.notificationsFor[e].forEach(e=>e())},addNotificationFor(e,t){return e in this.notificationsFor||(this.notificationsFor[e]=[]),this.notificationsFor[e].push(t),()=>{this.notificationsFor[e]=this.notificationsFor[e].filter(e=>e!=e)}},notificationsFor:{}}),(0,a.isDestroyed)(t)||(0,a.isDestroying)(t))try{return l.get(t)}finally{l.delete(t)}(0,a.registerDestructor)(t,()=>{l.delete(t)})}return l.get(t)}function T(e,t,i){const r=A(t);return r?.addNotificationFor(e,i)}},540551(e,t,i){i.r(t),i.d(t,{default:()=>l,register:()=>u});var r=i(979295),o=i(827413),a=i.n(o),n=i(161015);let s=new WeakMap;const l=a().extend({compute([e]){return u((0,r.getOwner)(this),e)}});function u(e,t){if(t){if("string"==typeof t)return t;{let i=s.get(e);void 0===i&&(i=new WeakMap,s.set(e,i));let r=i.get(t);return void 0===r&&(r=function(e){return`ember-register-helper-${(0,n.guidFor)(e)}`}(t),i.set(t,r),e.register(`component:${r}`,t)),r}}return null}},833271(e,t,i){i.r(t),i.d(t,{default:()=>c});var r=i(734138),o=i(92390),a=i.n(o),n=i(94980),s=i(979295);function l(e,t,i){let r=t.match(new RegExp("^/?"+i+"/(.+)/"+e+"$"));if(null!==r)return r[1]}const u=a().extend({_moduleRegistry:null,init(){this._super(...arguments),this.namespace=(0,s.getOwner)(this).lookup("application:main"),this._moduleRegistry||(this._moduleRegistry=new n.s)},canCatalogEntriesByType(e){return"model"===e||this._super(...arguments)},catalogEntriesByType(e){let t=this._moduleRegistry.moduleNames(),i=(0,r.A)(),o=this.namespace.modulePrefix;for(let r=0,a=t.length;r<a;r++){let a=t[r];if(-1!==a.indexOf(e)){let t=l(e,a,this.namespace.podModulePrefix||o);t||(t=a.split(e+"s/").pop()),i.addObject(t)}}return i}}),c={name:"container-debug-adapter",initialize(){(arguments[1]||arguments[0]).register("container-debug-adapter:main",u)}}},94980(e,t,i){i.d(t,{s:()=>l,A:()=>c});var r=i(296537),o=i.n(r),a=(i(44384),i(943910)),n=i.n(a),s=i(18206);void 0===requirejs.entries&&(requirejs.entries=requirejs._eak_seen);class l{constructor(e){this._entries=e||requirejs.entries}moduleNames(){return Object.keys(this._entries)}has(e){return e in this._entries}get(...e){return window.require(...e)}}const u=n().extend({resolveOther:function(e){let t=this.findModuleName(e);
1if(t){let r=this._extractDefaultExport(t,e);if(void 0===r)throw new Error(` Expected to find: '${e.fullName}' within '${t}' but got 'undefined'. Did you forget to 'export default' within '${t}'?`);return this.shouldWrapInClassFactory(r,e)&&(i=r,r={create:e=>"function"==typeof i.extend?i.extend(e):i}),r}var i},parseName:function(e){if(!0===e.parsedName)return e;let t,i,r,o=e.split("@");if(3===o.length){if(0===o[0].length){t=`@${o[1]}`;let e=o[2].split(":");i=e[0],r=e[1]}else t=`@${o[1]}`,i=o[0].slice(0,-1),r=o[2];"template:components"===i&&(r=`components/${r}`,i="template")}else if(2===o.length){let e=o[0].split(":");if(2===e.length)0===e[1].length?(i=e[0],r=`@${o[1]}`):(t=e[1],i=e[0],r=o[1]);else{let e=o[1].split(":");t=o[0],i=e[0],r=e[1]}"template"===i&&0===t.lastIndexOf("components/",0)&&(r=`components/${r}`,t=t.slice(11))}else o=e.split(":"),i=o[0],r=o[1];let n=r,l=(0,a.get)(this,"namespace");return{parsedName:!0,fullName:e,prefix:t||this.prefix({type:i}),type:i,fullNameWithoutType:n,name:r,root:l,resolveMethodName:"resolve"+(0,s.L8)(i)}},pluralizedTypes:null,moduleRegistry:null,makeToString(e,t){return this.namespace.modulePrefix+"@"+t+":"},shouldWrapInClassFactory:()=>!1,init(){this._super(),this.moduleBasedResolver=!0,this._moduleRegistry||(this._moduleRegistry=new l),this._normalizeCache=Object.create(null),this.pluralizedTypes=this.pluralizedTypes||Object.create(null),this.pluralizedTypes.config||(this.pluralizedTypes.config="config"),this._deprecatedPodModulePrefix=!1},normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this._normalize(e))},resolve(e){let t,i=this.parseName(e),r=i.resolveMethodName;return"function"==typeof this[r]&&(t=this[r](i)),null==t&&(t=this.resolveOther(i)),t},_normalize(e){let t=e.split(":");if(t.length>1){let e=t[0];return"component"===e||"helper"===e||"modifier"===e||"template"===e&&0===t[1].indexOf("components/")?e+":"+t[1].replace(/_/g,"-"):e+":"+(0,s._k)(t[1].replace(/\./g,"/"))}return e},pluralize(e){return this.pluralizedTypes[e]||(this.pluralizedTypes[e]=e+"s")},podBasedLookupWithPrefix(e,t){let i=t.fullNameWithoutType;return"template"===t.type&&(i=i.replace(/^components\//,"")),e+"/"+i+"/"+t.type},podBasedModuleName(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix;return this.podBasedLookupWithPrefix(t,e)},podBasedComponentsInSubdir(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix;if(t+="/components","component"===e.type||/^components/.test(e.fullNameWithoutType))return this.podBasedLookupWithPrefix(t,e)},resolveEngine(e){let t=e.fullNameWithoutType+"/engine";if(this._moduleRegistry.has(t))return this._extractDefaultExport(t)},resolveRouteMap(e){let t=e.fullNameWithoutType+"/routes";if(this._moduleRegistry.has(t))return this._extractDefaultExport(t)},resolveTemplate(e){let t=this.resolveOther(e);return null==t&&(t=o().TEMPLATES[e.fullNameWithoutType]),t},mainModuleName(e){if("main"===e.fullNameWithoutType)return e.prefix+"/"+e.type},defaultModuleName(e){return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType},nestedColocationComponentModuleName(e){if("component"===e.type)return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType+"/index"},prefix(e){let t=this.namespace.modulePrefix;return this.namespace[e.type+"Prefix"]&&(t=this.namespace[e.type+"Prefix"]),t},moduleNameLookupPatterns:(0,a.computed)(function(){return[this.podBasedModuleName,this.podBasedComponentsInSubdir,this.mainModuleName,this.defaultModuleName,this.nestedColocationComponentModuleName]}).readOnly(),findModuleName(e,t){let i,r=this.get("moduleNameLookupPatterns");for(let o=0,a=r.length;o<a;o++){let a=r[o].call(this,e);if(a&&(a=this.chooseModuleName(a,e)),a&&this._moduleRegistry.has(a)&&(i=a),t||this._logLookup(i,e,a),i)return i}},chooseModuleName(e,t){let i=(0,s.z9)(e);if(e!==i&&this._moduleRegistry.has(e)&&this._moduleRegistry.has(i))throw new TypeError(`Ambiguous module names: '${e}' and '${i}'`);if(this._moduleRegistry.has(e))return e;if(this._moduleRegistry.has(i))return i;let r=e.replace(/\/-([^/]*)$/,"/_$1");return this._moduleRegistry.has(r)?r:void 0},lookupDescription(e){let t=this.parseName(e);return this.findModuleName(t,!0)},_logLookup(e,t,i){if(!o().ENV.LOG_MODULE_RESOLVER&&!t.root.LOG_RESOLVER)return;let r,a=e?"[â]":"[ ]";r=t.fullName.length>60?".":new Array(60-t.fullName.length).join("."),i||(i=this.lookupDescription(t)),console&&console.info&&console.info(a,t.fullName,r,i)},knownForType(e){let t=this._moduleRegistry.moduleNames(),i=Object.create(null);for(let r=0,o=t.length;r<o;r++){let o=t[r],a=this.translateToContainerFullname(e,o);a&&(i[a]=!0)}return i},translateToContainerFullname(e,t){let i=this.prefix({type:e}),r=i+"/",o="/"+e,a=t.indexOf(r),n=t.indexOf(o);if(0===a&&n===t.length-o.length&&t.length>r.length+o.length)return e+":"+t.slice(a+r.length,n);let s=i+"/"+this.pluralize(e)+"/";return 0===t.indexOf(s)&&t.length>s.length?e+":"+t.slice(s.length):void 0},_extractDefaultExport(e){let t=this._moduleRegistry.get(e,null,null,!0);return t&&t.default&&(t=t.default),t}});u.reopenClass({moduleBasedResolver:!0});const c=u},716844(e,t,i){i.d(t,{A:()=>h});var r=i(496314),o=(i(44384),i(640626)),a=i(943910),n=i(683619),s=i.n(n),l=i(711692);class u{constructor(e){this.enterStates=e.enterStates.slice(),this.exitStates=e.exitStates.slice(),this.resolveState=e.resolveState,this.finalState=e.enterStates[e.enterStates.length-1]||e.resolveState,this.addInitialStates()}addInitialStates(){let e=this.finalState;for(;;){let t=e.get("initialState")||"start";if(e=e.get(`states.${t}`),!e)break;this.finalState=e,this.enterStates.push(e)}for(;this.enterStates.length>0&&this.enterStates[0]===this.exitStates[0];)this.resolveState=this.enterStates.shift(),this.exitStates.shift()}}function c(e,t,i){for(let r=0;r<e.length;r++)t.call(i,e[r],r)}function d(e,t,i){let r,o,n,s=this.enableLogging,l=t[i?"unhandledEvent":e];if(r=[].slice.call(arguments,3),"function"==typeof l)return s&&(i?console.log(`STATEMANAGER: Unhandled event '${e}' being sent to state ${t.get("path")}.`):console.log(`STATEMANAGER: Sending event '${e}' to state ${t.get("path")}.`)),n=r,i&&n.unshift(e),n.unshift(this),l.apply(t,n);{let n=(0,a.get)(t,"parentState");if(n)return o=r,o.unshift(e,n,i),d.apply(this,o);if(!i)return p.call(this,e,r,!0)}}function p(e,t,i){return t.unshift(e,this.get("currentState"),i),d.apply(this,t)}const h=l.A.extend({init(){this._super();let e=this.get("initialState");!e&&this.get("states.start")&&(e="start"),e&&this.transitionTo(e)},currentState:null,currentPath:(0,o.alias)("currentState.path"),transitionEvent:"setup",errorOnUnhandledEvent:!0,send(e){let t=[].slice.call(arguments,1
1);return p.call(this,e,t,!1)},unhandledEvent(e,t){if((0,a.get)(this,"errorOnUnhandledEvent"))throw new(s())(`${this.toString()} could not respond to event ${t} in state ${(0,a.get)(this,"currentState.path")}.`)},getStateByPath(e,t){let i=t.split("."),r=e;for(let e=0,t=i.length;e<t&&(r=(0,a.get)((0,a.get)(r,"states"),i[e]),r);e++);return r},findStateByPath(e,t){let i;for(;!i&&e;)i=this.getStateByPath(e,t),e=(0,a.get)(e,"parentState");return i},getStatesInPath(e,t){if(!t||""===t)return;let i=t.split("."),r=[];for(let t=0,o=i.length;t<o;t++){let o=(0,a.get)(e,"states");if(!o)return;let n=(0,a.get)(o,i[t]);if(!n)return;e=n,r.push(n)}return r},transitionTo(e){if((0,r.isEmpty)(e))return;let t=(0,a.get)(this,"currentState")||this,i=this.contextFreeTransition(t,e),o=new u(i);this.enterState(o),this.triggerSetupContext(o)},contextFreeTransition(e,t){let i=e.getPathsCache(this,t);if(i)return i;let r=this.getStatesInPath(e,t),o=[],n=e;for(;n&&!r;){if(o.unshift(n),n=(0,a.get)(n,"parentState"),!n&&(r=this.getStatesInPath(this,t),!r))return;r=this.getStatesInPath(n,t)}for(;r.length>0&&r[0]===o[0];)n=r.shift(),o.shift();let s={exitStates:o,enterStates:r,resolveState:n};return e.setPathsCache(this,t,s),s},triggerSetupContext(e){let t=e.enterStates,i=(0,a.get)(this,"transitionEvent");c(t,function(e){e.trigger(i,this)},this)},getState(e){let t=(0,a.get)(this,e),i=(0,a.get)(this,"parentState");return t||(i?i.getState(e):void 0)},enterState(e){let t=this.enableLogging;c(e.exitStates.slice(0).reverse(),function(e){e.trigger("exit",this)},this),c(e.enterStates,function(e){t&&console.log(`STATEMANAGER: Entering ${(0,a.get)(e,"path")}`),e.trigger("enter",this)},this),this.set("currentState",e.finalState)}})},711692(e,t,i){var r=i(979295),o=i(943910),a=i.n(o),n=i(434158),s=i.n(n),l=i(734138),u=i(161015),c=i(296537),d=i.n(c),p=i(771598),h=i.n(p);const{peekMeta:m}=d().__loader.require("@ember/-internals/meta");function g(e,t){let i=m(e);if(i)return i.peekDescriptors(t)}const f=a().extend(s(),{parentState:null,name:null,path:(0,o.computed)(function(){let e=(0,o.get)(this,"parentState.path"),t=(0,o.get)(this,"name");return e&&(t=`${e}.${t}`),t}),trigger(e,...t){this[e]&&this[e](...t),this._super(e,...t)},init(){let e,t,i=(0,o.get)(this,"states");if((0,o.set)(this,"childStates",(0,l.A)()),i)for(e in i)this.setupChild(i,e,i[e]);else{for(e in i={},this)"constructor"===e||g(this,e)||(t=this[e])&&this.setupChild(i,e,t);(0,o.set)(this,"states",i)}(0,o.set)(this,"pathsCaches",{})},setPathsCache(e,t,i){let r=(0,u.guidFor)(e.constructor),a=(0,o.get)(this,"pathsCaches"),n=a[r]||{};n[t]=i,a[r]=n},getPathsCache(e,t){let i=(0,u.guidFor)(e.constructor);return(this.get("pathsCaches")[i]||{})[t]},setupChild(e,t,i){if(!i)return!1;let a,n=(0,r.getOwner)(this);if(i instanceof f)(0,o.set)(i,"name",t),a=i,n&&(0,r.setOwner)(a,n);else if(f.detect(i)){let e;n&&(e={},(0,r.setOwner)(e,n)),a=e?i.create(e,{name:t}):i.create({name:t})}return a instanceof f?((0,o.set)(a,"parentState",this),(0,o.get)(this,"childStates").pushObject(a),e[t]=a,a):void 0},isLeaf:(0,o.computed)(function(){return!this.get("childStates").length})});f.reopenClass({transitionTo(e){let t=function(t,i){let r=[],o=h()&&h().Event;i&&o&&i instanceof o?Object.prototype.hasOwnProperty.call(i,"contexts")&&(r=i.contexts.slice()):r=[].slice.call(arguments,1),r.unshift(e),t.transitionTo(...r)};return t.transitionTarget=e,t}});const y=f;i.d(t,["A",0,y])},420064(e,t,i){var r=i(943910),o=i.n(r),a=i(734138),n=i.n(a),s=(i(44384),i(414352)),l=i(294573),u=i(914279),c=i(572538),d=i(736646);const p=o().extend({_rowValue:null,_isCollapsed:!1,isCollapsed:(0,r.computed)("_rowValue.isCollapsed",{get(){let e=(0,r.get)(this,"_rowValue");return e.hasOwnProperty("isCollapsed")?(0,r.get)(e,"isCollapsed"):this._isCollapsed},set(e,t){let i=(0,r.get)(this,"_rowValue");return i.hasOwnProperty("isCollapsed")?(0,r.set)(i,"isCollapsed",t):this._isCollapsed=t,t}}),isSelected:(0,r.computed)("_tree.{selection.[],selectionMatchFunction}","_parentMeta.isSelected",function(){let e=(0,r.get)(this,"_rowValue"),t=(0,r.get)(this,"_tree.selection"),i=(0,r.get)(this,"_tree.selectionMatchFunction");return(0,a.isArray)(t)?this.get("isGroupSelected"):(i?i(t,e):t===e)||(0,r.get)(this,"_parentMeta.isSelected")}),isGroupSelected:(0,r.computed)("_tree.{selection.[],selectionMatchFunction}","_parentMeta.isSelected",function(){let e=(0,r.get)(this,"_rowValue"),t=(0,r.get)(this,"_tree.selection"),i=(0,r.get)(this,"_tree.selectionMatchFunction");return!(!t||!(0,a.isArray)(t))&&((i?t.filter(t=>i(t,e)).length>0:t.includes(e))||(0,r.get)(this,"_parentMeta.isGroupSelected"))}),canCollapse:(0,r.computed)("_tree.{enableTree,enableCollapse}","_rowValue.{children.[],disableCollapse}",function(){if(!(0,r.get)(this,"_tree.enableTree")||!(0,r.get)(this,"_tree.enableCollapse"))return!1;let e=(0,r.get)(this,"_rowValue.children");return!(0,r.get)(this,"_rowValue.disableCollapse")&&(0,a.isArray)(e)&&(0,r.get)(e,"length")>0}),depth:(0,r.computed)("_parentMeta.depth",function(){let e=(0,r.get)(this,"_parentMeta");return e?(0,r.get)(e,"depth")+1:0}),first:(0,r.computed)("_tree.length",function(){return 0===(0,r.get)(this,"_tree.length")?null:(0,r.get)(this,"_tree").objectAt(0)}),last:(0,r.computed)("_tree.length",function(){let e=(0,r.get)(this,"_tree");return e.objectAt((0,r.get)(e,"length")-1)}),next:(0,r.computed)("_tree.length",function(){let e=(0,r.get)(this,"_tree");return(0,r.get)(this,"index")+1>=(0,r.get)(e,"length")?null:e.objectAt((0,r.get)(this,"index")+1)}),prev:(0,r.computed)("_tree.length",function(){return 0===(0,r.get)(this,"index")?null:(0,r.get)(this,"_tree").objectAt((0,r.get)(this,"index")-1)}),init(){this._super(...arguments),this._cellMetaCache=new Map},toggleCollapse(){(0,r.get)(this,"canCollapse")&&(0,r.set)(this,"isCollapsed",!(0,r.get)(this,"isCollapsed"))},select({single:e,toggle:t,range:i}={}){var o;if((0,r.get)(this,"isDestroying")||(0,r.get)(this,"isDestroyed"))return;let n=(0,r.get)(this,"_tree"),s=(0,r.get)(this,"_rowValue"),l=(0,r.get)(this,"index"),u=(0,r.get)(this,"isGroupSelected"),c=(0,r.get)(n,"selectingChildrenSelectsParent"),d=(0,r.get)(n,"rowMetaCache"),p=!1,m=function(){p=!0};var f;if(e)return n._lastSelectedIndex=null,void(null===(f=n.onSelect)||void 0===f||f.call(n,s,{abort:m}));let y=(0,r.get)(n,"selection"),b=(0,a.isArray)(y)?new Set(y):new Set;if(i){let{_lastSelectedIndex:e}=n,t="number"==typeof e,i=t?Math.min(e,l):l,r=t?Math.max(e,l):l;for(let e=i;e<=r;e++)b.add(n.objectAt(e))}else if(t)if(u){let e=this,t=s;for(;(0,r.get)(e,"_parentMeta.isSelected");){e=(0,r.get)(e,"_parentMeta");let i,o=(0,r.get)(e,"depth")+1,a=(0,r.get)(e,"index");for(;i=n.objectAt(++a);){if(i===t)continue;let e=d.get(i),a=(0,r.get)(e,"depth");if(a<o)break;a>o||b.add(i)}b.delete(t),t=(0,r.get)(e,"_rowValue")}b.delete(t)}else b.add(s);else b.clear(),b.add(s);let v=function(e,t){let i=e.get("rowMetaCache"),r=[],o=!1;for(let a of Array.from(t)){let t=i.get(a);t||o||(g(e,e.get("rows")),o=!0,t=i.get(a)),!t&&o||r.push(t)}return r}(this.get("_tree"),b);
1if(c){let e=new Map;for(let t of v){let i=(0,r.get)(t,"_parentMeta._rowValue");if(i){let t=e.has(i)?e.get(i):0;e.set(i,t+1)}}h(b,e,d)}for(let e of v){let t=(0,r.get)(e,"_rowValue"),i=(0,r.get)(e,"_parentMeta");for(;i;){if(b.has((0,r.get)(i,"_rowValue"))){b.delete(t);break}i=(0,r.get)(i,"_parentMeta")}}b=(0,a.A)(Array.from(b)),null===(o=n.onSelect)||void 0===o||o.call(n,b,{abort:m}),p||(n._lastSelectedIndex=l)},destroy(){this._super(),this._cellMetaCache.clear()}});function h(e,t,i){let o=new Map;for(let[a,n]of t.entries())if((0,r.get)(a,"children.length")===n){e.add(a);let r=i.get(a).get("_parentMeta._rowValue");if(r){let e=o.get(r)||t.get(r)||0;o.set(r,e+1)}}o.size>0&&h(e,o,i)}function m(e,t,i,o){let a=(0,r.get)(e,"rowMetaCache"),n=(0,c.I)(t,a,p),s=i?a.get(i):null;(0,r.set)(n,"_tree",e),(0,r.set)(n,"_rowValue",t),(0,r.set)(n,"_parentMeta",s),o&&(0,r.set)(o,"rowMeta",n)}function g(e,t,i=null){for(let r of t)m(e,r,i),r.children&&r.children.length&&g(e,r.children,r)}const f=o().extend({_childNodes:null,init(){this._super(...arguments);let e=(0,r.get)(this,"value"),t=(0,r.get)(this,"parent.value"),i=(0,r.get)(this,"parent"),o=(0,r.get)(this,"tree");i?m(o,e,t,this):(0,r.set)(this,"isRoot",!0),i&&(0,s.MM)(this,"length",()=>{(0,u.h)(i,"length")})},destroy(){this.cleanChildNodes(),this._super(...arguments)},cleanChildNodes(){if(this._childNodes){for(let e of this._childNodes)e instanceof f&&e.destroy();this._childNodes=null}},isLeaf:(0,r.computed)("[email protected]","isRoot","tree.enableTree",function(){return!(!(0,r.get)(this,"isRoot")||(0,r.get)(this,"tree.enableTree"))||!(0,r.get)(this,"value.children").some(e=>(0,a.isArray)((0,r.get)(e,"children")))}),sortedChildren:(0,r.computed)("value.children.[]","tree.{sorts.[],sortFunction,compareFunction,sortEmptyLast}",function(){let e=(0,r.get)(this,"value.children"),t=(0,r.get)(this,"tree.sorts"),i=(0,r.get)(this,"tree.sortFunction"),o=(0,r.get)(this,"tree.compareFunction"),a=(0,r.get)(this,"tree.sortEmptyLast");return i&&o&&t&&(0,r.get)(t,"length")>0&&(e=(0,d.ZN)(e,(e,r)=>i(e,r,t,o,a))),e}),childNodes:(0,r.computed)("sortedChildren.[]","isLeaf",function(){if(this.cleanChildNodes(),(0,r.get)(this,"isLeaf"))return null;let e=(0,r.get)(this,"sortedChildren"),t=(0,r.get)(this,"tree"),i=[],o=!1;return e.forEach((n,s)=>{let l=(0,r.get)(n,"children");(0,a.isArray)(l)?(!1!==o&&(i.push(e.slice(o,s)),o=!1),i.push(f.create({value:n,parent:this,tree:t}))):!1===o&&(o=s)}),!1!==o&&i.push(e.slice(o)),this._childNodes=i,i}),length:(0,r.computed)("childNodes.[]","sortedChildren.[]","isLeaf","rowMeta.isCollapsed","tree.enableTree",function(){return!0===(0,r.get)(this,"rowMeta.isCollapsed")?1:(0,r.get)(this,"isLeaf")?1+(0,r.get)(this,"sortedChildren.length"):1+(0,r.get)(this,"childNodes").reduce((e,t)=>e+(0,r.get)(t,"length"),0)}),offsetList:(0,r.computed)("length","isLeaf",function(){if((0,r.get)(this,"isLeaf"))return null;let e=0,t=[];for(let i of(0,r.get)(this,"childNodes"))t.push(e),e+=(0,r.get)(i,"length");return t}),objectAt(e){if(0===e)return(0,r.get)(this,"value");let t=e-1,i=(0,r.get)(this,"tree");if((0,r.get)(this,"isLeaf")){let e=(0,l.lJ)((0,r.get)(this,"sortedChildren"),t);return m(i,e,(0,r.get)(this,"value")),e}let o=(0,r.get)(this,"childNodes"),a=(0,r.get)(this,"offsetList"),n=function(e,t){let i=0,r=e.length-1;for(;i<=r;){let o=Math.floor((r+i)/2);if(t<e[o])r=o-1;else{if(!(t>e[o]))return o;i=o+1}}return r}(a,t);t-=a[n];let s=o[n];if(Array.isArray(s)){let e=s[t];return m(i,e,(0,r.get)(this,"value")),e}return s.objectAt(t)}}),y=o().extend(n(),{init(){this._super(...arguments),(0,s.MM)(this,"root.length",()=>(0,u.h)(this,"[]"))},destroy(){this._root&&this._root.destroy(),this._super(...arguments)},root:(0,r.computed)("rows",function(){this._root&&this._root.destroy();let e=(0,r.get)(this,"rows");return this._root=f.create({value:{children:e},tree:this}),this._root}),objectAt(e){if(e>=(0,r.get)(this,"length")||e<0)return;let t=e+1,i=(0,r.get)(this,"root").objectAt(t),o=this.get("rowMetaCache").get(i);return(0,r.set)(o,"index",e),i},forEach(e){let t=(0,r.get)(this,"length");for(let i=0;i<t;i++)e(this.objectAt(i),i)},length:(0,r.computed)("root.length",function(){return(0,r.get)(this,"root.length")-1})});i.d(t,["Ay",0,y,"Ny",0,{NONE:"none",SINGLE:"single",MULTIPLE:"multiple"}])},572538(e,t,i){i.d(t,{A:()=>a,I:()=>o});var r=i(943910);function o(e,t,i){return!1===t.has(e)&&t.set(e,i.create?i.create():new i),t.get(e)}class a{constructor({keyPath:e}={}){this.keyPath=e,this._map=new Map}get(e){let t=this._keyFor(e),i=this._map.get(t);return i?i[1]:i}getOrCreate(e,t){return o(e,this,t)}set(e,t){let i=this._keyFor(e);this._map.set(i,[e,t])}has(e){let t=this._keyFor(e);return this._map.has(t)}
1delete(e){let t=this._keyFor(e);this._map.delete(t)}entries(){return this._map.values()}_keyFor(e){if(!e||!this.keyPath)return e;return(0,r.get)(e,this.keyPath)||e}}},294573(e,t,i){function r(e,t){return"function"==typeof e.objectAt?e.objectAt(t):e[t]}function o(e,t,i,...r){return"function"==typeof e.replace&&"function"==typeof e.objectAt?e.replace(t,i,r):e.splice(t,i,...r)}function a(e,t,i){let a=r(e,t);o(e,t,1),o(e,i,0,a)}i.d(t,{Cy:()=>a,V4:()=>o,lJ:()=>r}),i(734138),i(44384)},910307(e,t,i){i.d(t,{A:()=>n});var r=i(943910);let o=new WeakMap;function a(e){return o.has(e)||o.set(e,Object.create(null)),o.get(e)}function n(e){return(0,r.computed)({get(t){let i=a(this);return t in i||(i[t]="function"==typeof e?e():e),i[t]},set(t,i){let r=a(this);return r[t]=void 0===i?"function"==typeof e?e():e:i,r[t]}})}},801712(e,t,i){i.d(t,{AD:()=>s,X_:()=>n,kp:()=>a,l1:()=>l});const r=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];let o;function a(e,t){for(void 0===o&&function(e){r.forEach(t=>{void 0===o&&"function"==typeof e[t]&&(o=t)})}(e);e;){if(e[o](t))return e;e=e.parentElement}return null}function n(e){let t=e.getBoundingClientRect().height;if(0===t)return 1;let i=(o=window.getComputedStyle(e).height,Number(o.substring(0,o.length-2))),r=e.offsetHeight;var o;if(isNaN(i))i=r;else{let[e,t]=[i,r].sort();if(t<=1e5&&t-e>=1||t>1e5&&(t-e)/t>1e-5)throw new Error("EmberTable's getScale() utility can only work on elements where height as derived from getComputedStyle is reliable. This error flags that offsetHeight and getComputedStyle disagree on the target element dimensions. This can be caused by padding, thead elements, and other cases.")}if(i===t)return 1;{let e=i/t,r=Math.round(e);return Math.abs(r-e)<1e-5?r:e}}function s(e,t){let i=e.getBoundingClientRect(),r=window.getComputedStyle(e),o=parseFloat(r.getPropertyValue("border-top-width"))/t,a=parseFloat(r.getPropertyValue("border-bottom-width"))/t,n=parseFloat(r.getPropertyValue("border-left-width"))/t,s=parseFloat(r.getPropertyValue("border-right-width"))/t;return{top:i.top+o,bottom:i.bottom-a,left:i.left+n,right:i.right-s,height:i.height-o-a,width:i.width-n-s}}function l(e){return e.getBoundingClientRect()}},914279(e,t,i){const r=i(943910).notifyPropertyChange;i.d(t,["h",0,r])},414352(e,t,i){i(44384);var r=i(943910),o=i(458504);const a=o.removeObserver?function(...e){let t,i,r,a;return t=e[0],i=e[1],3===e.length?(r=null,a=e[2]):(r=e[2],a=e[3]),(0,o.removeObserver)(t,i,r,a,!1)}:o.removeObserver;i.d(t,["MM",0,function(...e){let t,i,r,a;return t=e[0],i=e[1],3===e.length?(r=null,a=e[2]):4===e.length&&(r=e[2],a=e[3]),(0,o.addObserver)(t,i,r,a,!1)},"PA",0,function(...e){let t=e.pop(),i=e;return(0,r.observer)({dependentKeys:i,fn:t,sync:!1})},"ll",0,a])},736646(e,t,i){i.d(t,{Vu:()=>n,ZN:()=>a,ck:()=>u});var r=i(496314),o=i(943910);function a(e,t=r.compare){if(e.length<=1)return e;let i=Math.floor(e.length/2);return function(e,t,i){let r=[],o=0,a=0;for(;o<e.length&&a<t.length;)i(e[o],t[a])<=0?(r.push(e[o]),o++):(r.push(t[a]),a++);return o<e.length&&r.splice(r.length,0,...e.slice(o)),a<t.length&&r.splice(r.length,0,...t.slice(a)),r}(a(e.slice(0,i),t),a(e.slice(i),t),t)}function n(e,t,i,r,a){let n;for(let{valuePath:s,isAscending:l}of i){let i=(0,o.get)(e,s),u=(0,o.get)(t,s);if(a&&(a=l),n=l?r(i,u,a):-r(i,u,a),0!==n)break}return n}function s(e){return"number"==typeof e&&isNaN(e)}function l(e){return(0,r.isNone)(e)||s(e)||function(e){return"string"==typeof e&&""===e}(e)}function u(e,t,i){return l(e)||l(t)?function(e,t,i){let o=l(e),a=l(t),n=-1,u=1;return i&&(n=1,u=-1),o&&!a?n:a&&!o?u:(0,r.isNone)(e)&&s(t)?n:s(e)&&(0,r.isNone)(t)?u:0}(e,t,i):(0,r.compare)(e,t)}},725303(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r),a=i(640626),n=i(989272);const s=o().extend({classNames:["ember-table-loading-more"],attributeBindings:["dataTestEmberTableLoadingMore:data-test-ember-table-loading-more"],dataTestEmberTableLoadingMore:!0,unwrappedApi:(0,a.or)("api.api","api"),scrollElement:(0,a.readOnly)("unwrappedApi.columnTree.container"),isLoading:!1,canLoadMore:!0,center:!0,init(){this._super(...arguments),this._updateTransform=()=>(0,n.scheduleOnce)("afterRender",this,"updateTransform")},didReceiveAttrs(){if(this._super(...arguments),!this.element)return;let e=this.get("canLoadMore");e!==this._canLoadMore&&((0,n.scheduleOnce)("afterRender",this,"canLoadMoreChanged"),this._canLoadMore=e);let t=this.get("isLoading");t!==this._isLoading&&((0,n.scheduleOnce)("afterRender",this,"isLoadingChanged"),this._isLoading=t);let i=this.get("center");i!==this._center&&((0,n.scheduleOnce)("afterRender",this,"centerChanged"),this._center=i)}
1,didInsertElement(){this._super(...arguments),this.canLoadMoreChanged(),this.isLoadingChanged(),this.centerChanged()},willDestroyElement(){this.get("center")&&this.removeListeners(),this._super(...arguments)},canLoadMoreChanged(){this.get("canLoadMore")?this.setIncludedInLayout(!0):(0,n.next)(()=>(0,n.schedule)("afterRender",this,"setIncludedInLayout",!1))},isLoadingChanged(){this.setVisible(this.get("isLoading"))},centerChanged(){this.updateTransform(),this.get("center")?this.addListeners():this.removeListeners()},addListeners(){let e=this.get("scrollElement");e.addEventListener("scroll",this._updateTransform),this._scrollElementResizeSensor=new ResizeSensor(e,this._updateTransform)},removeListeners(){this.get("scrollElement").removeEventListener("scroll",this._updateTransform),this._scrollElementResizeSensor&&this._scrollElementResizeSensor.detach()},updateTransform(){let e=this.get("scrollElement");if(!e)return;let t=0;this.get("center")&&(t=Math.round(e.scrollLeft+(e.clientWidth-this.element.clientWidth)/2)),this.setTranslateX(t)},setIncludedInLayout(e){this.element.style.display=e?"":"none"},setVisible(e){this.element.style.visibility=e?"":"hidden"},setTranslateX(e){this.element.style.transform=0===e?"":`translateX(${e}px)`}})},103189(e,t,i){i.r(t),i.d(t,{default:()=>g});var r=i(618576),o=i.n(r),a=i(943910),n=i.n(a),s=i(640626),l=i(734138),u=i(914279),c=i(294573),d=i(414352),p=i(510364);const h=n().extend({columnValueValuePathDidChange:(0,d.PA)("columnValue.valuePath",function(){let e=(0,a.get)(this,"columnValue.valuePath"),t=e?(0,s.alias)(`rowValue.${e}`):null;(0,a.defineProperty)(this,"cellValue",t),(0,u.h)(this,"cellValue")}),cellMeta:(0,a.computed)("rowMeta","columnValue",function(){let e=(0,a.get)(this,"rowMeta"),t=(0,a.get)(this,"columnValue");return e._cellMetaCache.has(t)||e._cellMetaCache.set(t,n().create()),e._cellMetaCache.get(t)})}),m=(0,p.createTemplateFactory)({id:"JfojpJB/",block:'[[[18,1,[[30,0,["api"]]]]],["&default"],false,["yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-table.76937ae0/node_modules/ember-table/components/-private/row-wrapper.js",isStrictMode:!1}),g=o().extend({layout:m,tagName:"",canSelect:void 0,checkboxSelectionMode:void 0,columnMetaCache:void 0,columns:void 0,rowMetaCache:void 0,rowSelectionMode:void 0,rowToggleMode:void 0,rowValue:void 0,rowsCount:void 0,init(){this._super(...arguments),this._cells=(0,l.A)([])},destroy(){this._cells.forEach(e=>e.destroy()),this._super(...arguments)},api:(0,a.computed)("rowValue","rowMeta","cells","canSelect","rowSelectionMode","rowToggleMode","rowsCount",function(){return{rowValue:this.get("rowValue"),rowMeta:this.get("rowMeta"),cells:this.get("cells"),rowSelectionMode:this.get("canSelect")?this.get("rowSelectionMode"):"none",rowToggleMode:this.get("rowToggleMode"),rowsCount:this.get("rowsCount")}}),rowMeta:(0,a.computed)("rowValue",function(){let e=this.get("rowValue");return this.get("rowMetaCache").get(e)}),cells:(0,a.computed)("rowValue","rowMeta","columns.[]","canSelect","checkboxSelectionMode","rowSelectionMode",function(){let e=this.get("columns"),t=(0,a.get)(e,"length"),i=this.get("rowValue"),r=this.get("rowMeta"),o=this.get("rowsCount"),n=this.get("canSelect"),s=n?this.get("checkboxSelectionMode"):"none",l=n?this.get("rowSelectionMode"):"none",{_cells:u}=this;if(t!==u.length){for(;u.length<t;)u.pushObject(h.create());for(;u.length>t;)u.popObject().destroy()}return u.forEach((t,n)=>{let u=(0,c.lJ)(e,n),d=this.get("columnMetaCache").get(u);(0,a.setProperties)(t,{checkboxSelectionMode:s,columnMeta:d,columnValue:u,rowMeta:r,rowSelectionMode:l,rowValue:i,rowsCount:o})}),u})})},36440(e,t,i){i.r(t),i.d(t,{default:()=>g});var r=i(618576),o=i.n(r),a=i(943910),n=i(640626),s=i(989272),l=i(821009),u=i(496314),c=i(414352);const d=(0,i(510364).createTemplateFactory)({id:"2LLq9Te0",block:'[[[41,[30,0,["showLeft"]],[[[1," "],[10,0],[14,0,"scroll-indicator scroll-indicator__left"],[15,5,[30,0,["leftStyle"]]],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["showRight"]],[[[1," "],[10,0],[14,0,"scroll-indicator scroll-indicator__right"],[15,5,[30,0,["rightStyle"]]],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["showTop"]],[[[1," "],[10,0],[14,0,"scroll-indicator scroll-indicator__top"],[15,5,[30,0,["topStyle"]]],[12],[13],[1,"\\n"]],[]],null],[41,[30,0,["showBottom"]],[[[1," "],[10,0],[14,0,"scroll-indicator scroll-indicator__bottom"],[15,5,[30,0,["bottomStyle"]]],[12],[13],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"ember-table/components/-private/scroll-indicators/template.hbs",isStrictMode:!1}),p=e=>(0,a.computed)(`columnTree.${e}[email protected]`,"overflowHeight","scrollbarWidth","tableHeight",function(){let t=[],i=0,r=this.get(`columnTree.${e}FixedNodes`);(0,u.isEmpty)(r)||(i+=r.reduce((e,t)=>
1e+t.get("width"),0)),"right"===e&&(i+=this.get("scrollbarWidth")||0),t.push(`${e}:${i}px;`);let o=this.get("overflowHeight");if(!(0,u.isNone)(o)){let e=this.get("tableHeight"),i=(0,u.isNone)(e)?o:Math.min(o,e);t.push(`height:${i}px;`)}return(0,l.htmlSafe)(t.join(""))}),h=e=>(0,a.computed)(`columnTree.${e}[email protected]`,"overflowHeight","overflowWidth","tableWidth","headerHeight","scrollbarHeight","visibleFooterHeight","footerRatio",function(){let t=[],i=0;if("top"===e&&(i+=this.get("headerHeight")||0),"bottom"===e){let e=this.get("visibleFooterHeight")||0,t=this.get("scrollbarHeight")||0;this.get("footerRatio")<=.5&&(i+=e),i+=t}t.push(`${e}:${i}px;`);let r=this.get("tableWidth");if(!(0,u.isNone)(r)){let e=this.get("overflowWidth"),i=Math.min(r,e);t.push(`width:${i}px;`)}return(0,l.htmlSafe)(t.join(""))}),m=e=>{let t=`scroll${i=e,i.charAt(0).toUpperCase()+i.slice(1)}`;var i;return(0,a.computed)("enabledIndicators",t,function(){return this.get("enabledIndicators").includes(e)&&this.get(t)>0})},g=o().extend({layout:d,tagName:"",api:null,scrollLeft:null,scrollRight:null,scrollTop:null,scrollBottom:null,scrollbarWidth:null,scrollbarHeight:null,overflowHeight:null,overflowWidth:null,tableHeight:null,tableWidth:null,headerHeight:null,visibleFooterHeight:null,footerRatio:null,columnTree:(0,n.readOnly)("api.columnTree"),containerWidthAdjustment:(0,n.readOnly)("api.columnTree.containerWidthAdjustment"),scrollIndicators:(0,n.readOnly)("api.scrollIndicators"),tableScrollId:(0,n.readOnly)("api.tableId"),showLeft:m("left"),showRight:m("right"),showTop:m("top"),showBottom:m("bottom"),leftStyle:p("left"),rightStyle:p("right"),topStyle:h("top"),bottomStyle:h("bottom"),enabledIndicators:(0,a.computed)("scrollIndicators",function(){switch(this.get("scrollIndicators")){case!0:case"all":return["left","right","top","bottom"];case"horizontal":return["left","right"];case"vertical":return["top","bottom"];default:return[]}}),init(){this._super(...arguments),this._updateIndicators=(0,s.bind)(this,()=>{(0,s.scheduleOnce)("actions",this,this.updateIndicators)})},_addListeners(){this._isListening=!0,this._scrollElement=document.getElementById(this.get("tableScrollId")),this._tableElement=this._scrollElement.querySelector("table"),this._headerElement=this._tableElement.querySelector("thead"),this._scrollElement.addEventListener("scroll",this._updateIndicators),this._tableResizeSensor=new ResizeSensor(this._tableElement,this._updateIndicators),this._addFooterListeners()},_removeListeners(){this._isListening=!1,this._scrollElement.removeEventListener("scroll",this._updateIndicators),this._tableResizeSensor.detach(),this._removeFooterListeners()},_addFooterListeners(){let e=this._tableElement.querySelector("tfoot");e&&(this._footerResizeSensor||(this._footerResizeSensor=new ResizeSensor(e,this._updateIndicators)),this._footerMutationObserver||(this._footerMutationObserver=new MutationObserver(this._updateIndicators),this._footerMutationObserver.observe(e,{subtree:!0,attributes:!0,attributesFilter:["style"],childList:!0})))},_removeFooterListeners(){this._footerResizeSensor&&(this._footerResizeSensor.detach(),this._footerResizeSensor=null),this._footerMutationObserver&&(this._footerMutationObserver.disconnect(),this._footerMutationObserver=null)},updateIndicators(){let e,t=this._scrollElement,i=this._tableElement,r=this._headerElement,o=t.scrollLeft,a=t.scrollWidth-t.clientWidth-o,n=t.scrollTop,s=t.scrollHeight-t.clientHeight-n,l=t.offsetWidth-t.clientWidth,u=t.offsetHeight-t.clientHeight,c=t.clientHeight,d=t.clientWidth,p=i?i.offsetWidth:null,h=i?i.offsetHeight:null,m=r?r.offsetHeight:null,g=0,f=i.querySelector("tfoot td");if(f){this._addFooterListeners();let e=f.getBoundingClientRect().y,i=t.getBoundingClientRect(),r=t.offsetHeight/i.height;g=Math.min(t.clientHeight-r*(e-i.y),t.clientHeight),g=Math.max(g,0)}else this._removeFooterListeners();c>0&&(e=g/t.offsetHeight),this.setProperties({scrollLeft:o,scrollRight:a,scrollTop:n,scrollBottom:s,scrollbarHeight:u,scrollbarWidth:l,overflowHeight:c,overflowWidth:d,tableHeight:h,tableWidth:p,headerHeight:m,visibleFooterHeight:g,footerRatio:e})},_updateListeners(){let e=!(0,u.isEmpty)(this.get("enabledIndicators"));e&&!this._isListening?(this._addListeners(),this._updateIndicators()):!e&&this._isListening&&this._removeListeners()},didInsertElement(){this._super(...arguments),this._updateListeners(),(0,c.MM)(this,"enabledIndicators",this._updateListeners)},willDestroy(){this._isListening&&this._removeListeners()}})},716346(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r),a=i(910307);const n=o().extend({tagName:"input",attributeBindings:["ariaLabel:aria-label","checked","disabled","indeterminate","type","value","dataTestSelectRow:data-test-select-row","dataTestCollapseRow:data-test-collapse-row"],ariaLabel:void 0,checked:(0,a.A)(!1),disabled:(0,a.A)(!1),indeterminate:(0,a.A)(!1),onChange:null,onClick:null,type:"checkbox",value:null,click(e){var t;null===(t=this.onClick)||void 0===t||t.call(this,e)},change(e){var t;let i=this.element.checked,r=this.element.indeterminate,o=this.get("value");this.element.checked=this.get("checked"),this.element.indeterminate=this.get("indeterminate"),null===(t=this.onChange)||void 0===t||t.call(this,i,{value:o,indeterminate:r},e)}})},307620(e,t,i){i.r(t),i.d(t,{default:()=>m});var r=i(618576),o=i.n(r),a=i(943910),n=i(821009),s=i(801712);function l(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const u=new WeakMap;class c{constructor(e){l(this,"setupRowMutationObservers",()=>{let e=Array.from(this.element.children);this.rowMutationObservers=e.map(e=>{let t=new MutationObserver(this.repositionStickyElements);return t.observe(e,{childList:!0}),t})}),l(this,"teardownRowMutationObservers",()=>
1{this.rowMutationObservers.forEach(e=>e.disconnect())}),l(this,"setupResizeSensors",()=>{let e=Array.from(this.element.children).map(e=>e.firstElementChild);this.resizeSensors=e.map(e=>[e,new ResizeSensor(e,this.repositionStickyElements)])}),l(this,"teardownResizeSensors",()=>{this.resizeSensors.forEach(([e,t])=>t.detach(e))}),l(this,"repositionStickyElements",()=>{let e=this.element.parentNode,t=(0,s.X_)(e),i=e.parentNode.offsetHeight,r=Array.from(this.element.querySelectorAll("tr")),o=0,a=r.map(e=>e.getBoundingClientRect().height*t),n=a.reduce((e,t)=>e+t,0),l=i*this.maxStickyProportion;n>l&&(o=l-n);for(let e=0;e<r.length;e++){let t="top"===this.side?e:r.length-1-e,i=r[t],n=a[t];for(let e of i.children)e.style.position="-webkit-sticky",e.style.position="sticky",e.style[this.side]=`${o}px`;o+=n}}),this.element=e,this.maxStickyProportion=.5,this.element.style.position="static",this.side="THEAD"===e.tagName?"top":"bottom",this.setupRaf=requestAnimationFrame(this.repositionStickyElements),this.setupResizeSensors(),this.setupRowMutationObservers(),this.mutationObserver=new MutationObserver(()=>{this.teardownResizeSensors(),this.teardownRowMutationObservers(),this.setupResizeSensors(),this.setupRowMutationObservers(),this.repositionStickyElements()}),this.mutationObserver.observe(this.element,{childList:!0})}destroy(){this.element.style.position="sticky",cancelAnimationFrame(this.setupRaf),this.teardownResizeSensors(),this.teardownRowMutationObservers(),this.mutationObserver.disconnect()}}function d(e){u.set(e,new c(e))}function p(e){var t;null===(t=u.get(e))||void 0===t||t.destroy(),u.delete(e)}const h=(0,i(510364).createTemplateFactory)({id:"jHG8Nr3t",block:'[[[10,0],[14,0,"ember-table-overflow"],[15,1,[29,[[30,0,["elementId"]],"-overflow"]]],[12],[1,"\\n "],[10,"table"],[12],[1,"\\n "],[18,1,[[28,[37,1],null,[["api","head","body","foot","loadingMore"],[[30,0,["api"]],[50,"ember-thead",0,null,[["api"],[[30,0,["api"]]]]],[50,"ember-tbody",0,null,[["api"],[[30,0,["api"]]]]],[50,"ember-tfoot",0,null,[["api"],[[30,0,["api"]]]]],[50,"ember-table-loading-more",0,null,[["api"],[[30,0,["api"]]]]]]]]]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n"],[8,[39,3],null,[["@api"],[[30,0,["api"]]]],null],[1,"\\n"]],["&default"],false,["yield","hash","component","ember-table-private/scroll-indicators"]]',moduleName:"ember-table/components/ember-table/template.hbs",isStrictMode:!1}),m=o().extend({layout:h,classNames:["ember-table"],attributeBindings:["dataTestEmberTable:data-test-ember-table"],dataTestEmberTable:!0,didInsertElement(){this._super(...arguments);let e=this.element.querySelector("thead"),t=this.element.querySelector("tfoot");e&&d(e),t&&d(t)},willDestroyElement(){let e=this.element.querySelector("thead"),t=this.element.querySelector("tfoot");e&&p(this.element.querySelector("thead")),t&&p(this.element.querySelector("tfoot")),this._super(...arguments)},tableStyle:(0,a.computed)("tableWidth",function(){return(0,n.htmlSafe)(`width: ${this.get("tableWidth")}px;`)}),api:(0,a.computed)(function(){return{columns:null,registerColumnTree:this.registerColumnTree.bind(this),tableId:`${this.elementId}-overflow`}}),registerColumnTree(e){this.set("api.columnTree",e)}})},894096(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(120618)},886710(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(545872)},716097(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(120618),o=i(734138),a=i(943910);const n=(0,i(510364).createTemplateFactory)({id:"/IEu90BH",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["wrappedRowArray"]]],null]],null],null,[[[1," "],[8,[39,2],null,[["@rowValue","@columns","@columnMetaCache","@rowMetaCache","@canSelect","@rowSelectionMode","@checkboxSelectionMode","@rowsCount"],[[30,1],[30,0,["columns"]],[30,0,["columnMetaCache"]],[30,0,["rowMetaCache"]],[30,0,["canSelect"]],[30,0,["rowSelectionMode"]],[30,0,["checkboxSelectionMode"]],[30,0,["wrappedRowArray","length"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,3]],[[[1," "],[18,3,[[28,[37,6],null,[["rowValue","rowMeta","cells","rowSelectionMode","rowsCount","row"],[[30,2,["rowValue"]],[30,2,["rowMeta"]],[30,2,["cells"]],[30,2,["rowSelectionMode"]],[30,2,["rowsCount"]],[50,"ember-tr",0,null,[["api"],[[30,2]]]]]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@api"],[[30,2]]],null],[1,"\\n"]],[]]],[1," "]],[2]]]]],[1,"\\n"]],[1]],null]],["rowValue","api","&default"],false,["each","-track-array","ember-table-private/row-wrapper","if","has-block","yield","hash","component","ember-tr"]]',moduleName:"ember-table/components/ember-tfoot/template.hbs",isStrictMode:!1}),s=r.A.extend({layout:n,tagName:"tfoot",wrappedRowArray:(0,a.computed)("wrappedRows.[]",function(){let e=this.get("wrappedRows"),t=e.get("length"),i=[];for(let r=0;r<t;r++)i.push(e.objectAt(r));return(0,o.A)(i)})})},831116(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"XaaNUL5a",block:'[[[41,[30,0,["isResizable"]],[[[1," "],[10,0],[14,0,"et-header-resize-area"],[12],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],false,["if"]]',moduleName:"ember-table/components/ember-th/resize-handle/template.hbs",isStrictMode:!1});var n=i(640626);const s=o().extend({layout:a,tagName:"",columnMeta:null,isResizable:(0,n.readOnly)("columnMeta.isResizable")})},742513(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"twMbx4Sl",block:'[[[41,[30,0,["isSorted"]],[[[1," "],[10,1],[15,0,[29,["et-sort-indicator ",[52,[30,0,["isSortedAsc"]],"is-ascending","is-descending"]]]],[12],[1,"\\n"],[41,[48,[30,1]],[[[1," "],[18,1,[[30,0,["columnMeta"]]]],[1,"\\n"]],[]],[[[41,[30,0,["isMultiSorted"]],[[[1," "],[1,[30,0,["sortIndex"]]],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["isSortable"]],[[[1," "],[10,"button"],[14,0,"et-sort-toggle et-speech-only"],[12],[1,"Toggle Sort"],[13],[1,"\\n"]],[]],null]],["&default"],false,["if","has-block","yield"]]',moduleName:"ember-table/components/ember-th/sort-indicator/template.hbs",isStrictMode:!1});var n=i(640626);const s=o().extend({layout:a,tagName:"",columnMeta:null,isSortable:(0,n.readOnly)("columnMeta.isSortable"),isSorted:(0,n.readOnly)("columnMeta.isSorted"),isSortedAsc:(0,n.readOnly)("columnMeta.isSortedAsc"),isMultiSorted:(0,n.readOnly)("columnMeta.isMultiSorted"),sortIndex:(0,n.readOnly)("columnMeta.sortIndex")})},82560(e,t,i){var r=i(618576),o=i.n(r),a=i(640626),n=i(414352),s=i(989272),l=i(943910);const u=o().extend({columnMeta:null,columnValue:null,attributeBindings:["slackAttribute:data-test-ember-table-slack"],classNameBindings:["isFirstColumn","isLastColumn","isFixedLeft","isFixedRight","textAlign","isSlack"],isFirstColumn:(0,a.equal)("columnMeta.index",0),isLastColumn:(0,a.readOnly)("columnMeta.isLastRendered"),isFixedLeft:(0,a.equal)("columnMeta.isFixed","left"),isFixedRight:(0,a.equal)("columnMeta.isFixed","right"),isSlack:(0,a.readOnly)("columnMeta.isSlack"),slackAttribute:(0,l.computed)("isSlack",function(){return!!this.get("isSlack")||null}),textAlign:(0,l.computed)("columnValue.textAlign",function(){let e=this.get("columnValue.textAlign");return["left","center","right"].includes(e)?`ember-table__text-align-${e}
1`:null}),scheduleUpdateStyles:(0,n.PA)("columnMeta.{width,offsetLeft,offsetRight}","isFixedLeft","isFixedRight",function(){(0,s.scheduleOnce)("actions",this,"updateStyles")}),updateStyles(){if("undefined"==typeof FastBoot&&this.element){let e=`${this.get("columnMeta.width")}px`;this.element.style.width=e,this.element.style.minWidth=e,this.element.style.maxWidth=e,this.element.style.left=this.get("isFixedLeft")?`${Math.round(this.get("columnMeta.offsetLeft"))}px`:null,this.element.style.right=this.get("isFixedRight")?`${Math.round(this.get("columnMeta.offsetRight"))}px`:null,this.get("isSlack")&&(this.element.style.paddingLeft=0,this.element.style.paddingRight=0,this.element.style.display="0px"===e?"none":"table-cell")}},didInsertElement(){this._super(...arguments),this.updateStyles()}});i.d(t,["A",0,u])},120618(e,t,i){i.d(t,{A:()=>d});var r=i(618576),o=i.n(r),a=(i(989272),i(943910)),n=i(414352),s=i(640626),l=i(420064),u=i(910307);const c=(0,i(510364).createTemplateFactory)({id:"xaecTcZC",block:'[[[6,[39,0],null,[["items","containerSelector","estimateHeight","key","staticHeight","bufferSize","renderAll","firstReached","lastReached","firstVisibleChanged","lastVisibleChanged","idForFirstItem"],[[30,0,["wrappedRows"]],[30,0,["_containerSelector"]],[30,0,["estimateRowHeight"]],[30,0,["key"]],[30,0,["staticHeight"]],[30,0,["bufferSize"]],[30,0,["renderAll"]],[30,0,["firstReached"]],[30,0,["lastReached"]],[30,0,["firstVisibleChanged"]],[30,0,["lastVisibleChanged"]],[30,0,["idForFirstItem"]]]],[["default","else"],[[[[1," "],[8,[39,1],null,[["@rowValue","@columns","@columnMetaCache","@rowMetaCache","@canSelect","@checkboxSelectionMode","@rowSelectionMode","@rowToggleMode","@rowsCount"],[[30,1],[30,0,["columns"]],[30,0,["columnMetaCache"]],[30,0,["rowMetaCache"]],[30,0,["canSelect"]],[30,0,["checkboxSelectionMode"]],[30,0,["rowSelectionMode"]],[30,0,["rowToggleMode"]],[30,0,["wrappedRows","length"]]]],[["default"],[[[[1,"\\n"],[41,[48,[30,3]],[[[1," "],[18,3,[[28,[37,5],null,[["rowValue","rowMeta","cells","rowSelectionMode","rowToggleMode","rowsCount","row"],[[30,2,["rowValue"]],[30,2,["rowMeta"]],[30,2,["cells"]],[30,2,["rowSelectionMode"]],[30,2,["rowToggleMode"]],[30,2,["rowsCount"]],[50,"ember-tr",0,null,[["api"],[[30,2]]]]]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@api"],[[30,2]]],null],[1,"\\n"]],[]]],[1," "]],[2]]]]],[1,"\\n\\n"]],[1]],[[[1," "],[18,4,null],[1,"\\n"]],[]]]]]],["rowValue","api","&default","&else"],false,["vertical-collection","ember-table-private/row-wrapper","if","has-block","yield","hash","component","ember-tr"]]',moduleName:"ember-table/components/ember-tbody/template.hbs",isStrictMode:!1});i(44384);const d=o().extend({layout:c,tagName:"tbody",api:null,unwrappedApi:(0,s.or)("api.api","api"),columns:(0,s.readOnly)("unwrappedApi.columnTree.leaves"),columnMetaCache:(0,s.readOnly)("unwrappedApi.columnTree.columnMetaCache"),checkboxSelectionMode:(0,u.A)(l.Ny.MULTIPLE),rowSelectionMode:(0,u.A)(l.Ny.MULTIPLE),rowToggleMode:(0,u.A)(!1),selectingChildrenSelectsParent:(0,u.A)(!0),selection:null,selectionMatchFunction:null,onSelect:null,estimateRowHeight:(0,u.A)(30),staticHeight:(0,u.A)(!1),bufferSize:(0,u.A)(1),renderAll:(0,u.A)(!1),firstReached:null,lastReached:null,firstVisibleChanged:null,lastVisibleChanged:null,enableTree:(0,u.A)(!0),enableCollapse:(0,u.A)(!0),rows:(0,u.A)(()=>[]),key:(0,u.A)("@identity"),idForFirstItem:null,containerSelector:(0,u.A)(""),canSelect:(0,s.bool)("onSelect"),dataTestRowCount:null,attributeBindings:["dataTestRowCount:data-test-row-count"],init(){var e;this._super(...arguments),this.rowMetaCache=new Map,this.collapseTree=l.Ay.create({onSelect:null===(e=this.onSelect)||void 0===e?void 0:e.bind(this)}),this._updateCollapseTree()},_updateDataTestRowCount(){this.set("dataTestRowCount",this.get("collapseTree.length"))},_updateCollapseTree:(0,n.PA)("unwrappedApi.{sorts,sortFunction,compareFunction,sortEmptyLast}","enableCollapse","enableTree","selection","selectionMatchFunction","selectingChildrenSelectsParent","onSelect",function(){this.collapseTree.set("sorts",this.get("unwrappedApi.sorts")),this.collapseTree.set("sortFunction",this.get("unwrappedApi.sortFunction")),this.collapseTree.set("compareFunction",this.get("unwrappedApi.compareFunction")),this.collapseTree.set("sortEmptyLast",this.get("unwrappedApi.sortEmptyLast")),this.collapseTree.set("enableCollapse",this.get("enableCollapse")),this.collapseTree.set("enableTree",this.get("enableTree")),this.collapseTree.set("selection",this.get("selection")),this.collapseTree.set("selectionMatchFunction",this.get("selectionMatchFunction")),this.collapseTree.set("selectingChildrenSelectsParent",this.get("selectingChildrenSelectsParent"))}
1),willDestroy(){for(let[e,t]of this.rowMetaCache.entries())t.destroy(),this.rowMetaCache.delete(e);this._isObservingDebugRowCount&&(this.collapseTree.removeObserver("rows",this._scheduleUpdate),this.collapseTree.removeObserver("[]",this._scheduleUpdate)),this.collapseTree.destroy()},wrappedRows:(0,a.computed)("rows",function(){let e=this.get("rows");return this.collapseTree.set("rowMetaCache",this.rowMetaCache),this.collapseTree.set("rows",e),this.collapseTree}),_containerSelector:(0,a.computed)("containerSelector","unwrappedApi.tableId",function(){return this.get("containerSelector")||`#${this.get("unwrappedApi.tableId")}`})})},545872(e,t,i){i.d(t,{A:()=>l});var r=i(82560),o=i(943910),a=i(640626);const n=(0,i(510364).createTemplateFactory)({id:"zjLD9N1r",block:'[[[41,[30,0,["isFirstColumn"]],[[[1," "],[10,0],[14,0,"et-cell-container"],[12],[1,"\\n"],[41,[30,0,["canSelect"]],[[[1," "],[10,1],[15,0,[29,["et-toggle-select ",[52,[51,[30,0,["shouldShowCheckbox"]]],"et-speech-only"]]]],[12],[1,"\\n "],[8,[39,2],null,[["@checked","@onClick","@ariaLabel","@dataTestSelectRow"],[[30,0,["rowMeta","isGroupSelected"]],[30,0,["onSelectionToggled"]],"Select row",[30,0,["isTesting"]]]],null],[1,"\\n "],[10,1],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[30,0,["canCollapse"]],[[[1," "],[10,1],[15,0,[29,["et-toggle-collapse et-depth-indent ",[30,0,["depthClass"]]]]],[12],[1,"\\n "],[8,[39,2],null,[["@checked","@onChange","@ariaLabel","@dataTestCollapseRow"],[[30,0,["rowMeta","isCollapsed"]],[30,0,["onCollapseToggled"]],"Collapse row",[30,0,["isTesting"]]]],null],[1,"\\n "],[10,1],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,0],[15,0,[29,["et-depth-indent et-depth-placeholder ",[30,0,["depthClass"]]]]],[12],[13],[1,"\\n"]],[]]],[1,"\\n "],[10,0],[14,0,"et-cell-content"],[12],[1,"\\n"],[41,[48,[30,1]],[[[1," "],[18,1,[[30,0,["cellValue"]],[30,0,["columnValue"]],[30,0,["rowValue"]],[30,0,["cellMeta"]],[30,0,["columnMeta"]],[30,0,["rowMeta"]],[30,0,["rowsCount"]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["cellValue"]]],[1,"\\n"]],[]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[41,[48,[30,1]],[[[1," "],[18,1,[[30,0,["cellValue"]],[30,0,["columnValue"]],[30,0,["rowValue"]],[30,0,["cellMeta"]],[30,0,["columnMeta"]],[30,0,["rowMeta"]],[30,0,["rowsCount"]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["cellValue"]]],[1,"\\n"]],[]]]],[]]]],["&default"],false,["if","unless","ember-table-simple-checkbox","has-block","yield"]]',moduleName:"ember-table/components/ember-td/template.hbs",isStrictMode:!1});var s=i(420064);const l=r.A.extend({layout:n,tagName:"td",init(){this._super(...arguments)},api:null,onClick:null,onDoubleClick:null,unwrappedApi:(0,o.computed)("api",function(){return this.get("api.api")||this.get("api")}),cellValue:(0,a.alias)("unwrappedApi.cellValue"),cellMeta:(0,a.readOnly)("unwrappedApi.cellMeta"),columnValue:(0,a.readOnly)("unwrappedApi.columnValue"),columnMeta:(0,a.readOnly)("unwrappedApi.columnMeta"),rowValue:(0,a.readOnly)("unwrappedApi.rowValue"),rowMeta:(0,a.readOnly)("unwrappedApi.rowMeta"),rowsCount:(0,a.readOnly)("unwrappedApi.rowsCount"),rowSelectionMode:(0,a.readOnly)("unwrappedApi.rowSelectionMode"),checkboxSelectionMode:(0,a.readOnly)("unwrappedApi.checkboxSelectionMode"),canCollapse:(0,a.readOnly)("rowMeta.canCollapse"),depthClass:(0,o.computed)("rowMeta.depth",function(){return`depth-${this.get("rowMeta.depth")}`}),canSelect:(0,o.computed)("shouldShowCheckbox","rowSelectionMode",function(){let e=this.get("rowSelectionMode");return this.get("shouldShowCheckbox")||e===s.Ny.MULTIPLE||e===s.Ny.SINGLE}),shouldShowCheckbox:(0,o.computed)("checkboxSelectionMode",function(){let e=this.get("checkboxSelectionMode");return e===s.Ny.MULTIPLE||e===s.Ny.SINGLE}),onSelectionToggled:(0,o.action)(function(e){let t=this.get("rowMeta"),i=this.get("checkboxSelectionMode")||this.get("rowSelectionMode");if(t&&i===s.Ny.MULTIPLE){let i=!0,r=e.shiftKey;t.select({toggle:i,range:r})}else t&&i===s.Ny.SINGLE&&t.select();this.sendFullAction("onSelect")}),onCollapseToggled:(0,o.action)(function(){this.get("rowMeta").toggleCollapse(),this.sendFullAction("onCollapse")}),click(e){this.sendFullAction("onClick",{event:e})},doubleClick(e){this.sendFullAction("onDoubleClick",{event:e})},sendFullAction(e,t={}){if(!this.get(e))return;let i=this.get("cellValue"),r=this.get("cellMeta"),o=this.get("columnValue"),a=this.get("columnMeta"),n=this.get("rowValue"),s=this.get("rowMeta");
1Object.assign(t,{cellValue:i,cellMeta:r,columnValue:o,columnMeta:a,rowValue:n,rowMeta:s});let l=this[e];null==l||l(t)}})},532844(e,t,i){i.d(t,{A:()=>u});var r=i(82560),o=i(989272),a=i(640626),n=i(801712);const s=(0,i(510364).createTemplateFactory)({id:"1BVFpXqk",block:'[[[41,[48,[30,1]],[[[1," "],[18,1,[[30,0,["columnValue"]],[30,0,["columnMeta"]],[30,0,["rowMeta"]]]],[1,"\\n"]],[]],[[[1," "],[1,[30,0,["columnValue","name"]]],[1,"\\n\\n "],[8,[39,3],null,[["@columnMeta"],[[30,0,["columnMeta"]]]],null],[1,"\\n\\n "],[8,[39,4],null,[["@columnMeta"],[[30,0,["columnMeta"]]]],null],[1,"\\n"]],[]]]],["&default"],false,["if","has-block","yield","ember-th/sort-indicator","ember-th/resize-handle"]]',moduleName:"ember-table/components/ember-th/template.hbs",isStrictMode:!1});var l=i(943910);const u=r.A.extend({layout:s,tagName:"th",attributeBindings:["columnSpan:colspan","rowSpan:rowspan"],classNameBindings:["isSortable","isResizable","isReorderable"],api:null,onContextMenu:null,columnValue:(0,a.readOnly)("api.columnValue"),columnMeta:(0,a.readOnly)("api.columnMeta"),rowMeta:(0,a.readOnly)("api.rowMeta"),sorts:(0,a.readOnly)("api.sorts"),isSortable:(0,a.readOnly)("columnMeta.isSortable"),isResizable:(0,a.readOnly)("columnMeta.isResizable"),isReorderable:(0,a.readOnly)("columnMeta.isReorderable"),columnSpan:(0,a.readOnly)("columnMeta.columnSpan"),rowSpan:(0,a.readOnly)("columnMeta.rowSpan"),_columnState:0,_hammer:null,didInsertElement(){this._super(...arguments),this.get("columnMeta").registerElement(this.element);let e=new Hammer(this.element);e.add(new Hammer.Press({time:0})),e.on("press",this.pressHandler.bind(this)),e.on("panstart",this.panStartHandler.bind(this)),e.on("panmove",this.panMoveHandler.bind(this)),e.on("panend",this.panEndHandler.bind(this)),this._hammer=e},willDestroyElement(){let e=this._hammer;e.off("press"),e.off("panstart"),e.off("panmove"),e.off("panend"),e.destroy(),this._super(...arguments)},sendDropdownAction:(0,l.action)(function(...e){var t;null===(t=this.onDropdownAction)||void 0===t||t.call(this,...e)}),click(e){let t=this.get("isSortable"),i=(0,n.kp)(e.target,"button:not(.et-sort-toggle), input, label, a, select");if(0===this._columnState&&!i&&t){let t=e.ctrlKey||e.metaKey;this.updateSort({toggle:t})}},contextMenu(e){var t;return null===(t=this.onContextMenu)||void 0===t||t.call(this,e),!1},keyUp(e){let t=this.get("isSortable"),i=(0,n.kp)(e.target,"button:not(.et-sort-toggle), input, label, a, select");0===this._columnState&&!i&&"Enter"===e.key&&t&&this.updateSort({toggle:!1})},updateSort({toggle:e}){let t=this.get("columnValue.valuePath"),i=this.get("sorts"),r=i.find(e=>(0,l.get)(e,"valuePath")===t),o=e?i.filter(e=>(0,l.get)(e,"valuePath")!==t):[];r?!1===r.isAscending&&o.push({valuePath:t,isAscending:!0}):o.push({valuePath:t,isAscending:!1}),this.get("api").sendUpdateSort(o)},pressHandler(e){let[{clientX:t,target:i}]=e.pointers;this._originalClientX=t,this._originalTargetWasResize=i.classList.contains("et-header-resize-area")},panStartHandler(e){let t=this.get("isResizable"),i=this.get("isReorderable"),[{clientX:r}]=e.pointers;t&&this._originalTargetWasResize?(this._columnState=1,this.get("columnMeta").startResize(this._originalClientX)):i&&(this._columnState=2,this.get("columnMeta").startReorder(r))},panMoveHandler(e){let[{clientX:t}]=e.pointers;1===this._columnState?(this.get("columnMeta").updateResize(t),this._prevClientX=t):2===this._columnState&&(this.get("columnMeta").updateReorder(t),this._columnState=2)},panEndHandler(){1===this._columnState?this.get("columnMeta").endResize():2===this._columnState&&this.get("columnMeta").endReorder(),(0,o.next)(()=>this._columnState=0)}})},79488(e,t,i){i.d(t,{A:()=>P});var r=i(618576),o=i.n(r),a=i(989272),n=i(734138),s=(i(44384),i(910307)),l=i(414352),u=i(943910),c=i.n(u),d=i(640626),p=i(496314),h=i(801712),m=i(572538),g=i(736646),f=i(387569),y=i(294573);class b{constructor(e,t,i,r,o,a){this.container=e,this.element=i,this.bounds=r,this.child=a;let n=this.container.scrollTop,s=this.container.scrollLeft,{top:l,left:u}=(0,h.AD)(this.container,t),{top:c,left:d,width:p}=(0,h.l1)(this.element),m=(c-l)*t+n,g=(d-u)*t+s,f=p*t;this.originLeft=g,this.indicatorElement=function(e,t){let i=document.createElement("div");i.classList.add(e);for(let e in t)i.style[e]=`${t[e]}px`;return i}(o,{top:m,left:g,width:f}),a&&this.indicatorElement.appendChild(a),this.container.appendChild(this.indicatorElement),this._left=g}destroy(){this.container.removeChild(this.indicatorElement)}set width(e){this.indicatorElement.style.width=`${e}px`}get left(){return this._left}set left(e){let{leftBound:t,rightBound:i}=this.bounds,r=this.indicatorElement.offsetWidth;e<t?e=t:e+r>i&&(e=i-r),e<this.originLeft?(this.indicatorElement.classList.remove("et-reorder-direction-right"),this.indicatorElement.classList.add("et-reorder-direction-left")):(this.indicatorElement.classList.remove("et-reorder-direction-left"),this.indicatorElement.classList.add("et-reorder-direction-right")),this.indicatorElement.style.left=`${e}px`,this._left=e}}class v extends b{constructor(e,t,i,r){let o=i.cloneNode(!0);super(e,t,i,r,"et-reorder-main-indicator",o)}}class w extends b{constructor(e,t,i,r){super(e,t,i,r,"et-reorder-drop-indicator")}}var _=i(914279);const A=1/0,T={EQUAL_COLUMN:"equal-column",FIRST_COLUMN:"first-column",LAST_COLUMN:"last-column",NTH_COLUMN:"nth-column"},C="eq-container-slack",S="gte-container-slack";function R(e,t){let i=e<0==t<0?1:-1;t=Math.abs(t),e=Math.abs(e);let r=Math.floor(e/t),o=e-t*r,a=Array(t);return a.fill(i*(r+1),0,o),a.fill(i*r,o),a}const D=c().extend({_width:100,isLeaf:(0,d.readOnly)("_node.isLeaf"),isFixed:(0,d.readOnly)("_node.isFixed"),isSortable:(0,d.readOnly)("_node.isSortable"),isResizable:(0,d.readOnly)("_node.isResizable"),isResizing:(0,d.readOnly)("_node.isResizing"),isReorderable:(0,d.readOnly)("_node.isReorderable"),isSlack:(0,d.readOnly)("_node.isSlack"),width:(0,d.readOnly)("_node.width"),offsetLeft:(0,d.readOnly)("_node.offsetLeft"),offsetRight:(0,d.readOnly)("_node.offsetRight"),rowSpan:(0,u.computed)("isLeaf","_node.{depth,tree.root.maxChildDepth}",function(){return this.get("isLeaf")?this.get("_node.tree.root.maxChildDepth")-(this.get("_node.depth")-1):1}),columnSpan:(0,u.computed)("isLeaf","_node.leaves.length",function(){return this.get("isLeaf")?1:this.get("_node.leaves.length")}),index:(0,u.computed)("isLeaf","_node.offsetIndex",function(){if(this.get("isLeaf"))return this.get("_node.offsetIndex")}),isLastRendered:(0,d.readOnly)("_node.isLastRendered"),sortIndex:(0,u.computed)("_node.{tree.sorts.[],column.valuePath}",function(){let e=this.get("_node.column.valuePath"),t=this.get("_node.tree.sorts"),i=0;for(let r=0;r<(0,u.get)(t,"length");r++){let o=(0,y.lJ)(t,r);if((0,u.get)(o,"valuePath")===e){i=r+1;break}}return i}),isSorted:(0,d.gt)("sortIndex",0),isMultiSorted:(0,d.gt)("_node.tree.sorts.length",1),isSortedAsc:(0,u.computed)("_node.tree.sorts.[]","sortIndex",function(){let e=this.get("sortIndex"),t=this.get("_node.tree.sorts");return(0,u.get)((0,y.lJ)(t,e-1),"isAscending")})}),O=c().extend({_subcolumnNodes:null,isSlack:!1,isResizing:!1,init(){this._super(...arguments);let e=(0,u.get)(this,"tree"),t=(0,u.get)(this,"parent"),i=(0,u.get)(this,"column");if(t){let r=(0,u.get)(e,"columnMetaCache").getOrCreate(i,D);(0,u.set)(r,"_node",this),r.registerElement=(...e)=>this.registerElement(...e),r.startResize=(...t)=>e.startResize(this,...t),r.updateResize=(...t)=>e.updateResize(this,...t),r.endResize=(...t)=>e.endResize(this,...t),r.startReorder=(...t)=>e.startReorder(this,...t),r.updateReorder=(...t)=>e.updateReorder(this,...t),r.endReorder=(...t)=>e.endReorder(this,...t),this._notifyMaxChildDepth=()=>(0,_.h)(t,"maxChildDepth"),this._notifyLeaves=()=>(0,_.h)(t,"leaves"),(0,l.MM)(this,"maxChildDepth",this._notifyMaxChildDepth),(0,l.MM)(this,"leaves.[]",this._notifyLeaves)}else this.isRoot=!0},destroy(){this.cleanSubcolumnNodes(),this._super(...arguments)},cleanSubcolumnNodes(){null!==this._subcolumnNodes&&(this._subcolumnNodes.forEac
1h(e=>e.destroy()),this._subcolumnNodes=null)},subcolumnNodes:(0,u.computed)("column.subcolumns.[]","tree.widthConstraint",function(){if(this.cleanSubcolumnNodes(),(0,u.get)(this,"isLeaf"))return;let e=(0,u.get)(this,"tree"),t=this;this._subcolumnNodes=(0,n.A)((0,u.get)(this,"column.subcolumns").map(i=>O.create({column:i,tree:e,parent:t})));let i=(0,u.get)(this,"isRoot"),r=(0,u.get)(e,"isSlackModeEnabled");if(i&&r){let i=O.create({column:{isResizable:!1,isReorderable:!1,minWidth:0,width:0},tree:e,parent:t,isSlack:!0});this._subcolumnNodes.push(i)}return this._subcolumnNodes}),isLeaf:(0,u.computed)("column.subcolumns.[]","isRoot",function(){let e=(0,u.get)(this,"column.subcolumns");return!((0,u.get)(this,"isRoot")||e&&0!==(0,u.get)(e,"length"))}),isSortable:(0,u.computed)("column.isSortable","tree.enableSort",function(){let e=(0,u.get)(this,"tree.enableSort"),t=(0,u.get)(this,"column.valuePath"),i=(0,u.get)(this,"column.isSortable");return!0===(0,u.get)(this,"isLeaf")&&!1!==e&&!1!==i&&"string"==typeof t}),isReorderable:(0,u.computed)("column.isReorderable","tree.enableReorder",function(){let e=(0,u.get)(this,"tree.enableReorder"),t=(0,u.get)(this,"column.isReorderable");return!1!==e&&!1!==t}),isResizable:(0,u.computed)("column.isResizable","tree.enableResize",function(){if((0,u.get)(this,"isLeaf")){let e=(0,u.get)(this,"tree.enableResize"),t=(0,u.get)(this,"column.isResizable");return!1!==e&&!1!==t}return(0,u.get)(this,"subcolumnNodes").some(e=>(0,u.get)(e,"isResizable"))}),isFixed:(0,u.computed)("parent.{isFixed,isRoot}","column.isFixed",function(){return(0,u.get)(this,"parent.isRoot")?(0,u.get)(this,"column.isFixed"):(0,u.get)(this,"parent.isFixed")}),depth:(0,u.computed)("parent.depth",function(){return(0,u.get)(this,"parent")?(0,u.get)(this,"parent.depth")+1:0}),maxChildDepth:(0,u.computed)("isLeaf","[email protected]",function(){return(0,u.get)(this,"isLeaf")?(0,u.get)(this,"depth"):Math.max(...(0,u.get)(this,"subcolumnNodes").map(e=>(0,u.get)(e,"maxChildDepth")))}),leaves:(0,u.computed)("isLeaf","subcolumnNodes.{[],@each.leaves}",function(){return(0,u.get)(this,"isLeaf")?[this]:(0,u.get)(this,"subcolumnNodes").reduce((e,t)=>(e.push(...(0,u.get)(t,"leaves")),e),(0,n.A)())}),minWidth:(0,u.computed)("column.minWidth",function(){if((0,u.get)(this,"isLeaf")){let e=(0,u.get)(this,"column.minWidth");return"number"==typeof e?e:50}return(0,u.get)(this,"subcolumnNodes").reduce((e,t)=>e+(0,u.get)(t,"minWidth"),0)}),maxWidth:(0,u.computed)("column.maxWidth",function(){if((0,u.get)(this,"isLeaf")){let e=(0,u.get)(this,"column.maxWidth");return"number"==typeof e?e:A}return(0,u.get)(this,"subcolumnNodes").reduce((e,t)=>e+(0,u.get)(t,"maxWidth"),0)}),width:(0,u.computed)("isLeaf","[email protected]","column.width",{get(){if((0,u.get)(this,"isLeaf")){let e=(0,u.get)(this,"column"),t=(0,u.get)(e,"width");if("number"==typeof t)return t;{let t=(0,u.get)(this,"tree.columnMetaCache").get(e);return(0,u.get)(t,"_width")}}return(0,u.get)(this,"subcolumnNodes").reduce((e,t)=>e+(0,u.get)(t,"width"),0)},set(e,t){let i=(0,u.get)(this,"width"),r=(0,u.get)(this,"isResizable"),o=(0,u.get)(this,"isSlack");if(!r&&!o)return i;let a=t-i,n=(0,u.get)(this,"minWidth"),s=(0,u.get)(this,"maxWidth");if(a=Math.max(Math.min(i+a,s),n)-i,0===a)return i;if((0,u.get)(this,"isLeaf")){let e=(0,u.get)(this,"column"),t=i+a;if("number"==typeof(0,u.get)(e,"width"))(0,u.set)(e,"width",t);else{let i=(0,u.get)(this,"tree.columnMetaCache").get(e);(0,u.set)(i,"_width",t)}return t}{let e=(0,u.get)(this,"subcolumnNodes").sortBy("width").filter(e=>(0,u.get)(e,"isResizable")).reverse(),t=0,i=0;for(a=a>0?Math.floor(a):Math.ceil(a);0!==a;){let r=R(a,e.length);for(let t=0;t<r.length;t++){let i=e[t],o=r[t],n=(0,u.get)(i,"width"),s=n+o;if((0,u.set)(i,"width",s),a-=(0,u.get)(i,"width")-n,0===a)break}if(a=a>0?Math.floor(a):Math.ceil(a),i===a)break;if(i=a,t++,t>500)throw new Error("loop count exceeded guard while distributing width")}return(0,u.get)(this,"width")}}}),contentWidth:(0,u.computed)("subcolumnNodes.@each.{isSlack,width}",function(){return this.get("subcolumnNodes").reduce((e,t)=>
1t.get("isSlack")?e:e+t.get("width"),0)}),offsetIndex:(0,u.computed)("parent.{offsetIndex,subcolumnNodes.[]}",function(){let e=(0,u.get)(this,"parent");if(!e)return 0;let t=(0,u.get)(e,"subcolumnNodes"),i=(0,u.get)(e,"offsetIndex");for(let e of t){if(e===this)break;i+=1}return i}),offsetLeft:(0,u.computed)("parent.{offsetLeft,width}",function(){let e=(0,u.get)(this,"parent");if(!e)return 0;let t=(0,u.get)(e,"subcolumnNodes"),i=(0,u.get)(e,"offsetLeft");for(let e of t){if(e===this)break;i+=(0,u.get)(e,"width")}return i}),offsetRight:(0,u.computed)("parent.{offsetRight,width}",function(){let e=(0,u.get)(this,"parent");if(!e)return 0;let t=(0,u.get)(e,"subcolumnNodes").slice().reverse(),i=(0,u.get)(e,"offsetRight");for(let e of t){if(e===this)break;i+=(0,u.get)(e,"width")}return i}),isLastRendered:(0,u.computed)("tree.root.leaves.length","tree.root.leaves.lastObject.{isSlack,width}","offsetIndex","isLeaf","isSlack","width",function(){if(!(0,u.get)(this,"isLeaf"))return!1;let e=(0,u.get)(this,"tree"),t=(0,u.get)(e,"root.leaves"),i=(0,u.get)(t,"lastObject"),r=(0,u.get)(this,"offsetIndex"),o=t.length-r-1;if(0===o){let e=(0,u.get)(this,"isSlack"),t=(0,u.get)(this,"width");return!e||t>0}return!(1!==o||!(0,u.get)(i,"isSlack"))&&0===(0,u.get)(i,"width")}),registerElement(e){this.element=e}}),E=c().extend({init(){this._super(...arguments),this.token=new f.ou,this._root=null,this._sortColumnsByFixed=this.sortColumnsByFixed.bind(this),this._ensureWidthConstraint=this.ensureWidthConstraint.bind(this),(0,l.MM)(this,"[email protected]",this._sortColumnsByFixed),(0,l.MM)(this,"widthConstraint",this._ensureWidthConstraint)},destroy(){this.token.cancel(),this._root&&this._root.destroy(),(0,l.ll)(this,"[email protected]",this._sortColumnsByFixed),(0,l.ll)(this,"widthConstraint",this._ensureWidthConstraint),this._super(...arguments)},root:(0,u.computed)("columns",function(){this._root&&this._root.destroy();let e=(0,u.get)(this,"columns");return this._root=O.create({column:{subcolumns:e},tree:this}),this._root}),rows:(0,u.computed)("root.{maxChildDepth,leaves.[]}",function(){let e=(0,n.A)(),t=(0,u.get)(this,"root"),i=(0,u.get)(t,"maxChildDepth"),r=[t];for(let t=0;t<i;t++){let t=r.reduce((e,t)=>((0,u.get)(t,"isLeaf")||e.push(...(0,u.get)(t,"subcolumnNodes")),e),[]),i=t.map(e=>(0,u.get)(e,"column"));e.pushObject((0,n.A)(i)),r=t}return e}),leaves:(0,u.computed)("root.leaves.[]",function(){return(0,n.A)((0,u.get)(this,"root.leaves").map(e=>e.column))}),leftFixedNodes:(0,u.computed)("[email protected]",function(){return(0,u.get)(this,"root.subcolumnNodes").filterBy("isFixed","left")}),rightFixedNodes:(0,u.computed)("[email protected]",function(){return(0,u.get)(this,"root.subcolumnNodes").filterBy("isFixed","right")}),unfixedNodes:(0,u.computed)("[email protected]",function(){return(0,u.get)(this,"root.subcolumnNodes").filter(e=>!(0,u.get)(e,"isFixed"))}),scrollBounds:(0,u.computed)("[email protected]","[email protected]",function(){let{left:e,right:t}=(0,h.AD)(this.container,this.scale);return e+=(0,u.get)(this,"leftFixedNodes").reduce((e,t)=>e+(0,u.get)(t,"width"),0),t-=(0,u.get)(this,"rightFixedNodes").reduce((e,t)=>e+(0,u.get)(t,"width"),0),{containerLeft:e,containerRight:t}}),isSlackModeEnabled:(0,u.computed)("widthConstraint",function(){let e=(0,u.get)(this,"widthConstraint");return e===C||e===S}),sortColumnsByFixed(){if(this._isSorting)return;this._isSorting=!0;let e=(0,u.get)(this,"columns"),t=(0,g.ZN)(e,(e,t)=>{let i=(0,u.get)(e,"isFixed"),r=(0,u.get)(t,"isFixed");return("left"===i?-1:"right"===i?1:0)-("left"===r?-1:"right"===r?1:0)}),i=!0;for(let r=0;r<e.length;r++)if(t[r]!==e[r]){i=!1;break}i||(0,y.V4)(e,0,t.length,...t),this._isSorting=!1},performInitialLayout(){if(!this.container)return;(0,u.get)(this,"root.leaves").forEach(e=>{let t=(0,u.get)(e,"width"),i=(0,u.get)(e,"minWidth"),r=(0,u.get)(e,"maxWidth"),o=Math.min(Math.max(t,i),r);(0,u.set)(e,"width",o)});let e=(0,u.get)(this,"isSlackModeEnabled"),t=(0,u.get)(this,"initialFillMode");e&&t&&this.applyFillMode(t),this.ensureWidthConstraint()},ensureWidthConstraint(){this.container&&((0,u.get)(this,"isSlackModeEnabled")&&this.updateSlackColumn(),this.applyFillMode())},updateSlackColumn(){let e=(0,u.get)(this,"root.subcolumnNodes").findBy("isSlack");if(e){let t=this.getContainerWidth(),i=(0,u.get)(this,"root.contentWidth"),r=Math.max(t-i,0);e.set("width",r)}},applyFillMode(e){e=e||(0,u.get)(this,"fillMode");let t=(0,u.get)(this,"widthConstraint"),i=this.getContainerWidth(),r=i-(0,u.get)(this,"root.contentWidth");if("eq-container"===t&&0!==r||t===C&&0!==r||"lte-container"===t&&r<0||"gte-container"===t&&r>0||t===S&&r>0)if(e===T.EQUAL_COLUMN)(0,u.set)(this,"root.width",i);else if(e===T.FIRST_COLUMN)this.resizeColumn(0,r);
1else if(e===T.LAST_COLUMN){let e=(0,u.get)(this,"isSlackModeEnabled"),t=(0,u.get)(this,"root.subcolumnNodes"),i=e?t.length-2:t.length-1;this.resizeColumn(i,r)}else if(e===T.NTH_COLUMN){let e=(0,u.get)(this,"fillColumnIndex");this.resizeColumn(e,r)}},resizeColumn(e,t){let i=(0,u.get)(this,"root.subcolumnNodes")[e],r=(0,u.get)(i,"width");(0,u.set)(i,"width",r+t)},getContainerWidth(){let e=(0,u.get)(this,"containerWidthAdjustment")||0;return(0,h.AD)(this.container,this.scale).width*this.scale+e},getReorderBounds(e){let t,i,r,o=(0,u.get)(e,"parent"),{scale:a}=this,{scrollLeft:n}=this.container,{left:s}=(0,h.AD)(this.container,this.scale);if((0,u.get)(o,"isRoot")){let t=(0,u.get)(e,"isFixed");r="left"===t?(0,u.get)(this,"leftFixedNodes"):"right"===t?(0,u.get)(this,"rightFixedNodes"):(0,u.get)(this,"unfixedNodes")}else r=(0,u.get)(e,"parent.subcolumnNodes");let l=r.filter(e=>(0,u.get)(e,"isReorderable"));return t=((0,h.l1)(l[0].element).left-s)*a+n,i=((0,h.l1)(l[l.length-1].element).right-s)*a+n,{leftBound:t,rightBound:i}},registerContainer(e){this.container=e,this.scale=(0,h.X_)(e.querySelector("table")),(0,u.get)(this,"root").registerElement(e),f.ck.schedule("sync",this.ensureWidthConstraint.bind(this),this.token)},getClosestColumn(e,t,i){"left"===i?t-=this.container.scrollLeft:"right"===i&&(t+=this.container.scrollWidth,t-=this.container.scrollLeft,t-=(0,h.AD)(this.container,this.scale).width*this.scale);let r=(0,u.get)(e.parent,"subcolumnNodes");for(let e of r)if(t<(0,u.get)(e,"offsetLeft")+(0,u.get)(e,"width"))return e;return r[r.length-1]},getClosestColumnOffset(e,t,i){let r=this.getClosestColumn(e,t,i),o=(0,u.get)(r,"offsetLeft");return"left"===i?o+=this.container.scrollLeft:"right"===i&&(o-=this.container.scrollWidth,o+=this.container.scrollLeft,o+=(0,h.AD)(this.container,this.scale).width*this.scale),o},insertAfterColumn(e,t,i){if(i===t)return;let r=(0,u.get)(e,"column.subcolumns"),o=(0,u.get)(t,"column"),a=(0,u.get)(i,"column"),n=r.indexOf(o),s=r.indexOf(a);(0,y.Cy)(r,s,n),(0,_.h)(r,"[]")},startReorder(e,t){this.clientX=t;let i=this.getReorderBounds(e);this._reorderMainIndicator=new v(this.container,this.scale,e.element,i),this._reorderDropIndicator=new w(this.container,this.scale,e.element,i),this.container.classList.add("is-reordering")},updateReorder(e,t){this.clientX=t,this._updateReorder(e),(0,u.get)(e,"isFixed")||this.updateScroll(e,!0,!0,this._updateReorder.bind(this))},_updateReorder(e){let{scrollLeft:t}=this.container,i=(0,h.AD)(this.container,this.scale).left*this.scale,r=this.clientX*this.scale-i+t,o=r-(0,u.get)(e,"width")/2;this._reorderMainIndicator.left=o,this._reorderDropIndicator.left=this.getClosestColumnOffset(e,r,(0,u.get)(e,"isFixed")),this._reorderDropIndicator.width=(0,u.get)(this.getClosestColumn(e,this._reorderDropIndicator.left,(0,u.get)(e,"isFixed")),"width")},endReorder(e){var t;let{scrollLeft:i}=this.container,r=(0,h.AD)(this.container,this.scale).left*this.scale,o=this.clientX*this.scale-r+i,{leftBound:a,rightBound:n}=this.getReorderBounds(e);o=Math.max(a,o),o=Math.min(n-1,o);let s=this.getClosestColumn(e,o,(0,u.get)(e,"isFixed"));this.insertAfterColumn(e.parent,s,e),this._reorderMainIndicator.destroy(),this._reorderDropIndicator.destroy(),this._reorderMainIndicator=null,this._reorderDropIndicator=null,this._nextUpdateScroll&&(this._nextUpdateScroll.cancel(),this._nextUpdateScroll=null),this.container.classList.remove("is-reordering"),null===(t=this.onReorder)||void 0===t||t.call(this,(0,u.get)(e,"column"),(0,u.get)(s,"column"))},startResize(e,t){this.clientX=t},updateResize(e,t){let i=Math.floor("right"===(0,u.get)(e,"isFixed")?(this.clientX-t)*this.scale:(t-this.clientX)*this.scale);this.clientX=t,Math.abs(i)<1||(this.container.classList.add("is-resizing"),e.set("isResizing",!0),this._updateResize(e,i))},_updateResize(e,t){let i=(0,u.get)(this,"resizeMode"),r=(0,u.get)(e,"width"),o=(0,u.get)(e,"minWidth");if(t=Math.max(r+t,o)-r,"fluid"===i){let i,r=(0,u.get)(e,"parent"),o=e;for(;r&&!i;){let e=(0,u.get)(r,"subcolumnNodes");i=e[e.indexOf(o)+1],o=r,r=(0,u.get)(o,"parent")}if(i){let e=(0,u.get)(i,"width"),r=(0,u.get)(i,"minWidth");t=-(Math.max(e-t,r)-e),(0,u.set)(i,"width",e-t)}else t=0}let a=r+t;(0,u.set)(e,"width",a),this.ensureWidthConstraint.call(this)},endResize(e){var t;this._nextUpdateScroll&&(this._nextUpdateScroll.cancel(),this._nextUpdateScroll=null),this.container.classList.remove("is-resizing"),e.set("isResizing",!1),null===(t=this.onResize)||void 0===t||t.call(this,(0,u.get)(e,"column"))},updateScroll(e,t,i,r){this._nextUpdateScroll||(this._nextUpdateScroll=f.ck.schedule("sync",()=>{this._nextUpdateScroll=null;let o=this.container,a=this.clientX,{scrollLeft:n,scrollWidth:s}=this.container,{containerLeft:l,containerRight:c}=(0,u.get)(this,"scrollBounds"),d=(0,h.l1)(this.container).width*this.scale,p=Math.max(a-l,2),m=Math.max(c-a,2);if(p<=50&&(!t||0!==n)||m<=50&&(!i||n<s-d)){let a;a=p<=50?-50/p:50/m,a=Math.round(a),o.scrollLeft+=a,this.updateScroll(e,t,i,r),r(e,a)}},this.token))}}),F=(0,i(510364).createTemplateFactory)({id:"Vxj6Y/Zb",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["wrappedRows"]]],null]],null],null,[[[41,[48,[30,2]],[[[1," "],[18,2,[[28,[37,5],null,[["cells","isHeader","rowsCount","row"],[[30,1,["cells"]],[30,1,["isHeader"]],[30,1,["rowsCount"]],[50,"ember-tr",0,null,[["api"],[[30,1]]]]]]]]],[1,"\\n"]],[]],[[[1," "],[8,[39,7],null,[["@api"],[[30,1]]],null],[1,"\\n"]],[]]]],[1]],null]],["api","&default"],false,["each","-track-array","if","has-block","yield","hash","component","ember-tr"]]',moduleName:"ember-table/components/ember-thead/template.hbs",isStrictMode:!1});const P=o().extend({layout:F,tagName:"thead",api:null,unwrappedApi:(0,d.or)("api.api","api"),columns:(0,s.A)(()=>[]),columnKeyPath:null,sorts:(0,s.A)(()=>[]),sortFunction:(0,s.A)(()=>g.Vu),compareFunction:(0,s.A)(()=>g.ck),sortEmptyLast:(0,s.A)(!1),enableReorder:(0,s.A)(!0),enableResize:(0,s.A)(!0),scrollIndicators:(0,s.A)(!1),resizeMode:(0,s.A)("standard"),fillMode:(0,s.A)(T.EQUAL_COLUMN),initialFillMode:(0,s.A)(T.NONE),fillColumnIndex:null,widthConstraint:(0,s.A)("none"),containerWidthAdjustment:null,onUpdateSorts:null,onReorder:null,onResize:null,attributeBindings:["wrappedRowsCount:data-test-row-count"],wrappedRowsCount:(0,d.and)("isTesting","wrappedRows.length"),init(){var e,t;this._super(...arguments),this._tableResizeSensor=null;let i=this.get("columnKeyPath");this.columnMetaCache=new m.A({keyPath:i}),this.columnTree=E.create({onReorder:null===(e=this.onReorder)||void 0===e?void 0:e.b
1ind(this),onResize:null===(t=this.onResize)||void 0===t?void 0:t.bind(this),columnMetaCache:this.columnMetaCache,containerWidthAdjustment:this.containerWidthAdjustment}),this.rowMetaCache=new Map,this._updateApi(),this._validateUniqueColumnKeys(),this._updateColumnTree(),(0,a.scheduleOnce)("actions",this.columnTree,"performInitialLayout"),(0,l.MM)(this,"scrollIndicators",this._updateApi),(0,l.MM)(this,"reorderFunction",this._updateApi),(0,l.MM)(this,"sorts",this._updateApi),(0,l.MM)(this,"sortFunction",this._updateApi),(0,l.MM)(this,"sorts",this._updateColumnTree),(0,l.MM)(this,"columns.[]",this._onColumnsChange),(0,l.MM)(this,"columnKeyPath",this._updateColumnMetaCache),(0,l.MM)(this,"fillMode",this._updateColumnTree),(0,l.MM)(this,"initialFillMode",this._updateColumnTree),(0,l.MM)(this,"fillColumnIndex",this._updateColumnTree),(0,l.MM)(this,"resizeMode",this._updateColumnTree),(0,l.MM)(this,"widthConstraint",this._updateColumnTree),(0,l.MM)(this,"enableSort",this._updateColumnTree),(0,l.MM)(this,"enableResize",this._updateColumnTree),(0,l.MM)(this,"enableReorder",this._updateColumnTree)},_updateApi(){this.set("unwrappedApi.columnTree",this.columnTree),this.set("unwrappedApi.compareFunction",this.get("compareFunction")),this.set("unwrappedApi.scrollIndicators",this.get("scrollIndicators")),this.set("unwrappedApi.sorts",this.get("sorts")),this.set("unwrappedApi.sortEmptyLast",this.get("sortEmptyLast")),this.set("unwrappedApi.sortFunction",this.get("sortFunction"))},_updateColumnTree(){this.columnTree.set("sorts",this.get("sorts")),this.columnTree.set("columns",this.get("columns")),this.columnTree.set("fillMode",this.get("fillMode")),this.columnTree.set("initialFillMode",this.get("initialFillMode")),this.columnTree.set("fillColumnIndex",this.get("fillColumnIndex")),this.columnTree.set("resizeMode",this.get("resizeMode")),this.columnTree.set("widthConstraint",this.get("widthConstraint")),this.columnTree.set("enableSort",this.get("enableSort")),this.columnTree.set("enableResize",this.get("enableResize")),this.columnTree.set("enableReorder",this.get("enableReorder"))},_updateColumnMetaCache(){this._validateUniqueColumnKeys(),this.columnMetaCache.keyPath=this.get("columnKeyPath")},_onColumnsChange(){0!==this.get("columns.length")&&(this._validateUniqueColumnKeys(),this._updateColumnTree(),(0,a.scheduleOnce)("actions",this,this.fillupHandler))},_validateUniqueColumnKeys(){let e=this.get("columns"),t=this.get("columnKeyPath");if(e&&t){let i=[],r=[...e];for(;r.length>0;){let e=r.shift();i.push((0,u.get)(e,t)),e.subcolumns&&r.push(...e.subcolumns)}(0,n.A)(i.filter(p.isPresent))}},didInsertElement(){this._super(...arguments),this._container=(0,h.kp)(this.element,".ember-table-overflow"),this.columnTree.registerContainer(this._container),this._tableResizeSensor=new ResizeSensor(this._container,(0,a.bind)(this,this.fillupHandler))},willDestroyElement(){this._tableResizeSensor.detach(this._container),this.columnTree.destroy();
1for(let[e,t]of this.columnMetaCache.entries())t.destroy(),this.columnMetaCache.delete(e);for(let[e,t]of this.rowMetaCache.entries())t.destroy(),this.rowMetaCache.delete(e);this._super(...arguments)},enableSort:(0,d.notEmpty)("onUpdateSorts"),wrappedRows:(0,u.computed)("columnTree.rows.[]","sorts.[]","headerActions.[]","fillMode","fillColumnIndex",function(){let e=this.get("columnTree.rows"),t=this.get("sorts"),i=this.get("columnMetaCache"),r=this.get("rowMetaCache");return(0,n.A)(e.map((o,a)=>{let s=r.get(o);return s||(s=c().create(),r.set(o,s)),s.set("index",a),{cells:(0,n.A)(o.map(e=>({columnValue:e,columnMeta:i.get(e),rowMeta:s,sorts:t,sendUpdateSort:this.sendUpdateSort.bind(this)}))),rowMeta:s,rowsCount:e.length,isHeader:!0}}))}),sendUpdateSort(e){var t;null===(t=this.onUpdateSorts)||void 0===t||t.call(this,e)},fillupHandler(){this.isDestroying||this.get("columnTree").ensureWidthConstraint()}})},467186(e,t,i){i.d(t,{A:()=>c});var r=i(618576),o=i.n(r),a=i(943910),n=i(640626),s=i(801712);const l=(0,i(510364).createTemplateFactory)({id:"C7IvXL/k",block:'[[[42,[28,[37,1],[[28,[37,1],[[30,0,["cells"]]],null]],null],null,[[[41,[48,[30,2]],[[[41,[30,0,["isHeader"]],[[[1," "],[18,2,[[28,[37,5],null,[["columnValue","columnMeta","sorts","sendUpdateSort","rowMeta","rowsCount","cell"],[[30,1,["columnValue"]],[30,1,["columnMeta"]],[30,1,["sorts"]],[30,1,["sendUpdateSort"]],[30,1,["rowMeta"]],[30,1,["rowsCount"]],[50,"ember-th",0,null,[["api"],[[30,1]]]]]]]]],[1,"\\n"]],[]],[[[1," "],[18,2,[[28,[37,5],null,[["api","cellValue","cellMeta","columnValue","columnMeta","rowValue","rowMeta","rowsCount","cell"],[[30,1],[30,1,["cellValue"]],[30,1,["cellMeta"]],[30,1,["columnValue"]],[30,1,["columnMeta"]],[30,1,["rowValue"]],[30,1,["rowMeta"]],[30,1,["rowsCount"]],[50,"ember-td",0,null,[["api"],[[30,1]]]]]]]]],[1,"\\n"]],[]]]],[]],[[[41,[30,0,["isHeader"]],[[[1," "],[8,[39,7],null,[["@api"],[[30,1]]],null],[1,"\\n"]],[]],[[[1," "],[8,[39,8],null,[["@api"],[[30,1]]],null],[1,"\\n "]],[]]]],[]]]],[1]],null]],["api","&default"],false,["each","-track-array","if","has-block","yield","hash","component","ember-th","ember-td"]]',moduleName:"ember-table/components/ember-tr/template.hbs",isStrictMode:!1});var u=i(420064);const c=o().extend({layout:l,tagName:"tr",classNames:["et-tr"],classNameBindings:["isEven:is-even:is-odd","isGroupSelected","isSelectable","isSelected"],api:null,onClick:null,onDoubleClick:null,rowValue:(0,n.readOnly)("api.rowValue"),rowMeta:(0,n.readOnly)("api.rowMeta"),cells:(0,n.readOnly)("api.cells"),rowSelectionMode:(0,n.readOnly)("api.rowSelectionMode"),rowToggleMode:(0,n.readOnly)("api.rowToggleMode"),isHeader:(0,n.readOnly)("api.isHeader"),isSelected:(0,n.readOnly)("rowMeta.isSelected"),isGroupSelected:(0,n.readOnly)("rowMeta.isGroupSelected"),isEven:(0,a.computed)("rowMeta.index",function(){var e,t;return(null!==(e=null===(t=this.rowMeta)||void 0===t?void 0:t.index)&&void 0!==e?e:0)%2==0}),isSelectable:(0,a.computed)("rowSelectionMode",function(){let e=this.get("rowSelectionMode");return e===u.Ny.MULTIPLE||e===u.Ny.SINGLE}),click(e){let t=this.get("rowSelectionMode");if(!(0,s.kp)(e.target,"input, button, label, a, select")){let i=this.get("rowMeta");if(i&&t===u.Ny.MULTIPLE){let t=e.ctrlKey||e.metaKey||this.get("rowToggleMode"),r=e.shiftKey;i.select({toggle:t,range:r})}else i&&t===u.Ny.SINGLE&&i.select({single:!0})}this.sendEventAction("onClick",e)},doubleClick(e){this.sendEventAction("onDoubleClick",e)},sendEventAction(e,t){let i=this.get("rowValue"),r=this.get("rowMeta"),o=this[e];null==o||o({event:t,rowValue:i,rowMeta:r})}})},834801(e,t,i){i.d(t,{KY:()=>u,_W:()=>l,wE:()=>s});var r=i(279564),o=(i(44384),function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n});class a{constructor(e,t){this._value=this._lastValue=e,this._isEqual=t}}function n(e,t){return e===t}function s(e,t=n){return new a(e,t)}function l(e){return e._value}function u(e,t){const{_isEqual:i,_lastValue:r}=e;i(t,r)||(e._value=e._lastValue=t)}o([r.tracked],a.prototype,"_value",void 0)},343413(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=(0,i(827413).helper)(function(){return([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,e=>(4*e^16*Math.random()>>(2&e)).toString(16))})},556330(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(148116)},960124(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(618576);const o=i.n(r)().extend({tagName:"li",classNameBindings:["active"],click(){this.onClick()}})},327570(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(618576);const o=i.n(r)().extend({classNames:["item"]})},638899(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(861933)},712284(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(618576),o=i.n(r);const a=class extends(o()){};i.dn(a)},152827(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(157957)},102009(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(618576),o=i.n(r);const a=class extends(o()){};i.dn(a)},275913(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r),a=i(27329);const n=o().extend({classNameBindings:["isDraggable:draggable"],isDraggable:(0,a.O)("modal.isDraggable")})},354053(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(630847)},578591(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(325037)},730769(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(618576),o=i.n(r),a=i(943910),n=i(434158);const s=o().extend({classNames:["ember-radio-button-group"],selectedValue:null,disabled:!1,selectedValueChanged:(0,n.on)("init",(0,a.observer)({sync:!0,dependentKeys:["selectedValue"],fn(){return this.action?.(this.selectedValue)}}))})},736707(e,t,i){i.r(t),i.d(t,{default:()=>c});var r=i(618576),o=i.n(r),a=i(943910),n=i(640626),s=i(434158),l=i(496314),u=i(989272);const c=o().extend({layoutName:"radio-button-layout",value:null,disabled:!1,name:"",selectedValue:(0,n.alias)("parentView.selectedValue"),classNames:["radio-button"],checked:!1,_disabled:(0,n.or)("parentView.disabled","disabled"),selectedValueChanged:(0,s.on)("init",(0,a.observer)({sync:!1,dependentKeys:["selectedValue"],fn(){let e=this.selectedValue;(0,l.isEmpty)(e)||this.value!==e?this.set("checked",!1):this.set("checked",!0)}})),click(){if(this.get("_disabled")||this.isDestroying)return;let e=this.get("value");this.get("selectedValue")!==e&&((0,u.run)(()=>{this.set("checked",!0),this.set("selectedValue",e)}),this.isDestroying||this.onchange?.(e))}})},44380(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(296537),o=i.n(r),a=i(27329);const n=o().Component.extend({attributeBindings:["type","checked","disabled","name"],classNames:["radio-input"],tagName:"input",type:"radio",name:"",checked:(0,a.O)("parentView.checked"),disabled:(0,a.O)("parentView._disabled")})},790847(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(618576),o=i.n(r),a=i(804204);const n=o().extend({popover:(0,a.inject)(),init(){this._super(...arguments),this.popover.registerPopoverRe
1ndered()}})},221293(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(821685)},646554(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(824304)},684918(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(943904)},930772(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(599958)},231475(e,t,i){i.r(t),i.d(t,{default:()=>r.A});var r=i(801897)},148116(e,t,i){var r=i(618576),o=i.n(r),a=i(734138),n=i(989272),s=i(771598),l=i.n(s),u=i(496314),c=i(943910);const d=o().extend({layoutName:"carousel",classNames:["carousel","slide"],classNameBindings:(0,a.A)(["sliding"]),activeIndex:0,indicatorComponent:"carousel-indicator",$nextItem:null,didInsertElement(){this._super(),this.get("content")||this.set("content",(0,a.A)(l()(this.element).find(".item")))},willDestroyElement(){let e=this.$nextItem;return(0,u.isNone)(e)||e.off("transitionend"),this._super()},actions:{prev(){let e,t,i;if(!this.get("sliding"))return e=this.get("activeIndex"),t=this.get("content.length"),i=e-1,i=i<0?t-1:i,this.slide("prev",i)},next(){let e,t,i;if(!this.get("sliding"))return e=this.get("activeIndex"),t=this.get("content.length"),i=e+1,i=i>=t?0:i,this.slide("next",i)}},goto:(0,c.action)(function(e){this.to(e)}),to(e){let t;if(!this.get("sliding")&&0<=e&&e<this.get("content.length"))return t=e>this.get("activeIndex")?"next":"prev",this.slide(t,e)},slide(e,t){let i,r;if(this.get("activeIndex")===t)return;r="next"===e?"left":"right",i=l()(l()(this.element).find(".item").get(this.get("activeIndex")));let o=this.$nextItem;return(0,u.isNone)(o)||o.off("transitionend"),this.$nextItem=l()(l()(this.element).find(".item").get(t)),window.EMBER_WIDGETS_DISABLE_ANIMATIONS||(this.set("sliding",!0),this.$nextItem.addClass(e),this.$nextItem[0].offsetWidth,i.addClass(r),this.$nextItem.addClass(r)),this._onTransitionEnd(this.$nextItem,()=>{this.$nextItem.off("transitionend"),(0,n.run)(()=>{this.set("activeIndex",t),this.$nextItem.removeClass([e,r].join(" ")).addClass("active"),i.removeClass(["active",r].join(" ")),this.set("sliding",!1),this.send("transitionEnded"),(0,n.schedule)("afterRender",()=>{window.dispatchEvent(new Event("resize"))})}),this.$nextItem=null})},_onTransitionEnd:(e,t)=>window.EMBER_WIDGETS_DISABLE_ANIMATIONS?t():e.one("transitionend",t)});i.d(t,["A",0,d])},861933(e,t,i){var r=i(603057),o=i(296537),a=i.n(o),n=i(989272),s=i(771598),l=i.n(s);const u=r.A_.extend({textDebounce:null,delayTime:250,didInsertElement(){this._super.apply(this,arguments),l()(this.element).is(":visible")&&l()(this.element).focus()},willDestroy(){a().isNone(this.textDebounce)||(0,n.cancel)(this.textDebounce),this._super.apply(this,arguments)},propagateNewText(e){this.valueChanged?.(e)},onValueChanged(e){a().isNone(this.textDebounce)||(0,n.cancel)(this.textDebounce),this.textDebounce=(0,n.debounce)(this,this.propagateNewText,e,this.get("delayTime"))},_elementValueDidChange(){let e=this.get("value");this._super.apply(this,arguments);let t=this.get("value");e!==t&&this.onValueChanged(t)}});i.d(t,["A",0,u])},157957(e,t,i){var r=i(618576),o=i.n(r),a=(i(44384),i(943910)),n=i(640626),s=i(989272),l=i(27329),u=i(387569),c=i(156135),d=i(771598),p=i.n(d);function h(e){if(e.target===e.currentTarget&&!this.enforceModality)return this.send("sendCancel");p()(this.element).find(e.target).closest(".ember-view .modal-header")[0]&&(e.target.classList.contains("close")||("touchstart"===e.type?(this.set("initialX",e.touches[0].clientX-this.offsetX),this.set("initialY",e.touches[0].clientY-this.offsetY)):(this.set("initialX",e.clientX-this.offsetX),this.set("initialY",e.clientY-this.offsetY)),this.set("isDragging",!0)))}function m(e){if(!this.isDragging)return;let t,i;"touchmove"===e.type?(t=e.touches[0].clientX-this.initialX,i=e.touches[0].clientY-this.initialY):(t=e.clientX-this.initialX,i=e.clientY-this.initialY),this.offsetX=t,this.offsetY=i,this.mouseMoveScheduled||(this.mouseMoveScheduled=!0,u.ck.schedule("affect",()=>{var e,t,i;this.isDestroying||(e=this.offsetX,t=this.offsetY,(i=p()(this.element).find(".modal-dialog")[0]).style.transition="all 0s linear",i.style.transform=`translate3d(${e}px, ${t}px, 0)`,this.mouseMoveScheduled=!1)}))}function g(){this.set("isDragging",!1)}let f=o().extend({KEY_CODES:{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,ESCAPE:27},currentFocus:null,_focusTabbable(){let e,t;t=[this.currentFocus],p()(this.element).has(t[0]).length||(t=p()(this.element).find("[autofocus]")),0===t.length&&(t=p()(this.element).find(":tabbable")),(e=t[0])&&(e.className.indexOf("close")>-1&&t.length>1&&(e=t[1]),e.focus(),this.set("currentFocus",e))},_checkContainingElement(e,t){let i,r,o;for(r=0,o=e.length;r<o;r++)if(i=e[r],i===t||p().contains(i,t))return!0;return!1},mouseDown(e){if(this._super(e),!this._checkContainingElement(p()(this.element).find(":tabbable"),e.target))return this.set("currentFocus",null),p()(this.element).focus();this.set("currentFocus",e.target)},keyDown(e){let t,i,r,o,a;if(this._super(e),!e.defaultPrevented){if(e.keyCode===this.KEY_CODES.ESCAPE&&this.escToCancel)this.send("sendCancel"),e.preventDefault();else if(e.keyCode===this.KEY_CODES.ENTER&&this.enterToConfirm)this.isDisabled||(this.send("sendConfirm"),e.preventDefault());else if(e.keyCode===this.KEY_CODES.TAB){if(a=c.W.getAllFocusableElements(document.querySelector(".modal-dialog")),t=c.W.getActiveElement(document),i=a.findIndex(e=>c.W.nodeContains(e,t)),-1===i)return this._focusTabbable(),!1;a.length>0&&(r=a[0],o=a[a.length-1],e.target!==o||e.shiftKey?e.target===r&&e.shiftKey?(this.set("currentFocus",o),o.focus(),e.preventDefault()):this.set("currentFocus",a[i+1]):(r.focus(),this.set("currentFocus",r),e.preventDefault()))}return!0}},_setupProperties(e={}){let t=[],i={},r=[];Object.keys(e).forEach(o=>{"htmlAttributes"===o?this.htmlAttributes=e[o]:o.endsWith("Binding")?t.push(o):"classNames"===o?r.push(o):i[o]=e[o]}),t.forEach(t=>{let i=t.slice(0,-7);(0,a.defineProperty)(this,i,(0,l.O)(e[t]))});for(let e in i)void 0!==i[e]||e in this||(this[e]=void 0);this.setProperties(i);for(let t of r){let i=this.get(t)||[],r=e[t]||[];this.set(t,[...i,...r])}},init(){this._super(...arguments),this.htmlAttributes=null;let e=this._propertyOptions;this._setupProperties(e)},layoutName:"modal",classNames:["modal"],classNameBindings:["isShowing:in","hasCloseButton::has-no-close-button","fadeEnabled:fade"],modalPaneBackdrop:'<div class="modal-backdrop"></div>',offsetX:0,offsetY:0,isDraggable:!1,enforceModality:!1,escToCancel:!0,backdrop:!0,isShowing:!1,hasCloseButton:!0,fade:!0,headerText:"Modal Header",confirmText:"Confirm",cancelText:"Cancel",closeText:null,content:"",size:"normal",isValid:!0,confirm:()=>{},cancel:()=>{},close:()=>{},isDisabled:(0,n.not)("isValid"),willInsertElement(...e){this._super(...e),this.triggerElement=document.activeElement},isConfirmPrimaryBtn:!0,isConfirmDangerBtn:!1,confirmButtonStyleClassName:(0,a.computed)("isConfirmPrimaryBtn","isConfirmDangerBtn",function(){return this.isConfirmPrimaryBtn?"btn-primary":this.isConfirmDangerBtn?"btn-danger":"btn-default"}),fadeEnabled:(0,a.computed)("fade",function(){return!window.EMBER_WIDGETS_DISABLE_ANIMATIONS&&this.fade}),_runFocusTabbable:null,headerComponent:"modal-header",bodyComponent:"modal-body",footerComponent:"modal-footer",sizeClass:(0,a.computed)("size",function(){switch(this.size){case"large":return"modal-lg";case"small":return"modal-sm";default:return""}}),actions:{sendCancel(){if(this.isShowing)return this.cancel?.(this),this.hide()},sendConfirm(){if(this.isShowing)return this.confirm?.(this),this.hide()},sendClose(){if(this.isShowing)return this.close?.(this),this.hide()}},didInsertElement(){this._super();let{htmlAttributes:e}=this;if(null!==e)for(let[t,i]of Object.entries(e))this.element.setAttribute(t,i);return this.isDraggable&&(this.mouseDown=h,this.mouseMove=m,this.mouseUp=g,this.element.addEventListener("touchstart",this._touchstartHandler=e=>{(0,s.run)(()=>{h.call(this,e)})}),this.element.addEventListener("touchmove",this._touchmoveHandler=e=>{(0,s.run)(()=>{m.call(this,e)})}),this.element.addEventListener("touchend",this._touchendHandler=e=>{(0,s.run)(()=>{g.call(this,e)})}
1)),this._runFocusTabbable=(0,s.schedule)("afterRender",this,function(){return this._focusTabbable()}),this.fade&&this.element.offsetWidth,this.backdrop&&this._appendBackdrop(),(0,s.schedule)("afterRender",this,"_setIsShowingFlag"),p()(document.body).addClass("modal-open"),this._setupDocumentHandlers()},_setIsShowingFlag(){this.isDestroying||this.set("isShowing",!0)},willDestroyElement(){if(!this.isDestroyed)return this._runFocusTabbable&&(0,s.cancel)(this._runFocusTabbable),this._super(),this.isDraggable&&(this.element.removeEventListener("touchstart",this._touchstartHandler),this.element.removeEventListener("touchmove",this._touchmoveHandler),this.element.removeEventListener("touchend",this._touchendHandler)),this._removeDocumentHandlers(),this._backdrop?this._backdrop.remove():void 0},click(e){if(this._super(e),e.target===this.element&&!this.enforceModality)return this.send("sendCancel")},hide(){this.isDestroying||this.isDestroyed||(0,s.join)(()=>{this.set("isShowing",!1),p()(document.body).removeClass("modal-open"),this._backdrop&&this._backdrop.removeClass("in"),this.fadeEnabled?p()(this.element).one("transitionend",()=>{(0,s.run)(()=>{this.isDestroyed||(this.closePopover&&this.closePopover(),this.triggerElement?.focus())})}):(this.closePopover&&this.closePopover(),this.triggerElement?.focus())})},_appendBackdrop(){let e,t;return t=p()(this.element).parent(),e=this.modalPaneBackdrop,this._backdrop=p()(e),this.fadeEnabled&&this._backdrop.addClass("fade"),this._backdrop.appendTo(t),(0,s.next)(this,function(){return this._backdrop.addClass("in")})},_setupDocumentHandlers(){if(!this._hideHandler)return this._hideHandler=(e=this,function(){return e.hide()}),p()(document).on("modal:hide",this._hideHandler);var e},_removeDocumentHandlers(){return p()(document).off("modal:hide",this._hideHandler),this._hideHandler=null,p()(document).off("keyup",this.keyHandler),p()(this.element).off("transitionend")}});f.reopenClass({rootElement:".ember-application",hideAll:()=>p()(document).trigger("modal:hide")});const y=f;i.d(t,["A",0,y])},630847(e,t,i){var r=i(618576),o=i.n(r),a=i(27329),n=i(943910);let s=new Set(["classNames","classNameBindings","attributeBindings","applyStyleBindings","actions","touchStart","touchMove","touchEnd","touchCancel","keyDown","keyUp","keyPress","mouseDown","mouseUp","contextMenu","click","doubleClick","focusIn","focusOut","submit","input","change","dragStart","drag","dragEnter","dragLeave","dragOver","drop","dragEnd","init","didReceiveAttrs","willRender","didInsertElement","didRender","didUpdateAttrs","didReceiveAttrs","willUpdate","willRender","didUpdate","didRender","willDestroyElement","willClearRender","didDestroyElement"]);const l=o().extend({init(...e){this._super(...e),this.target=this.modal;for(let e in this.modal)e in this||e.includes(" [id=__ember")||s.has(e)||(0,n.defineProperty)(this,e,(0,a.O)(`modal.${e}`))}});i.d(t,["A",0,l])},325037(e,t,i){var r=i(618576),o=i.n(r),a=(i(44384),i(943910)),n=i(989272),s=i(496314),l=i(821009),u=i(27329),c=i(771598),d=i.n(c),p=i(295030),h=i(412386);let m=o().extend({concatenatedProperties:["styleBindings"],attributeBindings:["style"],unitType:"px",createStyleString(e,t){let i=this.get(t);if(void 0!==i)return"number"===(0,s.typeOf)(i)&&(i+=this.unitType),`${e}:${i};`},applyStyleBindings(){let{styleBindings:e}=this;if(!e)return;let t={};e.forEach(e=>{let i=e.split(":"),r=i[0],o=i[1];t[o||r]=r});let i=(0,p.A)(t),r=(0,h.A)(t),o=this,n=(0,a.computed)(...r,function(){let e=i.map(e=>o.createStyleString(e,t[e])).join("");if(0!==e.length)return(0,l.htmlSafe)(e)});(0,a.defineProperty)(this,"style",n)},bodyElementSelector:"html",layoutName:"popover",classNames:["popover"],classNameBindings:["isShowing:in","fadeEnabled:fade","placement"],styleBindings:["left","top","display","max-height","overflow-y"],targetElement:null,fade:!0,escToCancel:!0,placement:"top",display:"block",debounceTime:100,fadeEnabled:(0,a.computed)("fade",function(){return!window.EMBER_WIDGETS_DISABLE_ANIMATIONS&&this.fade}),left:0,top:0,"max-height":void 0,"overflow-y":void 0,marginTop:23,marginLeft:10,isShowing:!1,title:"",content:"",_resizeHandler:null,_scrollHandler:null,_mutationObserverForResize:null,didRenderPopover:()=>{},bodyClick(){return this.hide()},hide(){this.isDestroyed||(0,n.join)(()=>{this.set("isShowing",!1),this.fadeEnabled?d()(this.element).one("transitionend",()=>{(0,n.run)(()=>{this.isDestroyed||this.closePopover&&this.closePopover()})}):this.closePopover&&this.closePopover()})},computeFrameOffset(e,t){(0,s.isNone)(t)&&(t={top:0,left:0});let i,r=e.parent.document.getElementsByTagName("iframe"),o=!1;for(let t=0;t<r.length;t++)if(i=r[t],i.contentWindow===e){o=!0;break}if(o){let r=i.getBoundingClientRect();t.left+=r.left,t.top+=r.top,e!==top&&this.computeFrameOffset(e.parent,t)}return t},getOffset(e){let t=e.offset(),i=e[0].ownerDocument.defaultView;return this.computeFrameOffset(i,t)},snapToPosition(){let e=d()(this.targetElement);if("inDOM"!==(this._state||this.state))return;let t,i=this.element.offsetWidth,r=this.element.offsetHeight;
1switch((0,s.isEmpty)(e)?t={top:this.top,left:this.left,width:0,height:0}:(t=this.getOffset(e),t.width=e[0].offsetWidth,t.height=e[0].offsetHeight),this.placement){case"bottom":this.set("top",t.top+t.height),this.set("left",t.left+t.width/2-i/2);break;case"top":this.set("top",t.top-r),this.set("left",t.left+t.width/2-i/2);break;case"top-right":this.set("top",t.top),this.set("left",t.left+t.width);break;case"top-left":this.set("top",t.top),this.set("left",t.left-i);break;case"bottom-right":this.set("top",t.top+t.height),this.set("left",t.left+t.width-i);break;case"bottom-left":this.set("top",t.top+t.height),this.set("left",t.left);break;case"left":this.set("top",t.top-this.marginTop),this.set("left",t.left-i);break;case"right":this.set("top",t.top-this.marginTop),this.set("left",t.left+t.width)}this.correctIfOffscreen(),(0,s.isEmpty)(e)||this.positionArrow()},positionArrow(){let e=d()(this.targetElement),t=this.getOffset(e);t.width=e[0].offsetWidth,t.height=e[0].offsetHeight;let i,{placement:r}=this;"left"===r||"right"===r?i=`margin-top:${t.top+t.height/2-this.top-11}px;`:"top"!==r&&"bottom"!==r||(i=`margin-left:${t.left+t.width/2-this.left-11}px;`),this.set("arrowStyle",(0,l.htmlSafe)(i))},_isFirstComputePostLoad:!0,shouldComputeMissingAPLComponentHeight:!1,missingAPLComponentHeight:0,correctIfOffscreen(){let e=d()("body").width(),t=d()("body").height(),i=this.element.offsetWidth,r=this.element.offsetHeight;this._isFirstComputePostLoad&&this.shouldComputeMissingAPLComponentHeight&&(r+=this.missingAPLComponentHeight,this._isFirstComputePostLoad=!1);let o=this.get("max-height")||t-2*this.marginTop;r>o?(this.set("overflow-y","auto"),this.set("max-height",o)):r<o&&void 0!==this.get("max-height")&&(this.set("overflow-y",void 0),this.set("max-height",void 0)),this.left+i>e&&this.set("left",e-i-this.marginLeft),this.left<0&&this.set("left",this.marginLeft),this.top+r>t&&this.set("top",t-r-this.marginTop),this.top<0&&this.set("top",this.marginTop)},keyHandler:(0,a.computed)(function(){return e=>{if(27===e.keyCode&&this.escToCancel)return this.hide({escapedToClose:!0}),!1}}),debounceSnapToPosition:(0,a.computed)(function(){return()=>(0,n.debounce)(this,this.snapToPosition,this.debounceTime)}),init(...e){this.applyStyleBindings(),this._super(...e),this.htmlAttributes=null;let t=this._propertyOptions;this._setupProperties(t)},_setupProperties(e={}){let t=[],i={},r=[];Object.keys(e).forEach(o=>{"htmlAttributes"===o?this.htmlAttributes=e[o]:o.endsWith("Binding")?t.push(o):"classNames"===o?r.push(o):i[o]=e[o]}),t.forEach(t=>{let i=t.slice(0,-7);(0,a.defineProperty)(this,i,(0,u.O)(e[t]))});for(let e in i)void 0!==i[e]||e in this||(this[e]=void 0);this.setProperties(i);for(let t of r){let i=this.get(t)||[],r=e[t]||[];this.set(t,[...i,...r])}},didInsertElement(){this._super(),(0,n.next)(this,this._setupDocumentHandlers),(0,n.schedule)("afterRender",()=>{this.snapToPosition(),this.set("isShowing",!0),(0,n.schedule)("afterRender",()=>{this.isDestroying||this.didRenderPopover()})});let{htmlAttributes:e}=this;if(null!==e)for(let[t,i]of Object.entries(e))this.element.setAttribute(t,i)},willDestroyElement(){return d()(this.element).off("transitionend"),this._removeDocumentHandlers(),this._super()},_setupDocumentHandlers(){if(this.isDestroying)return;this._clickHandler||(this._clickHandler=e=>(0,n.run)(()=>{if("inDOM"===(this._state||this.state)&&(0,s.isEmpty)(d()(this.element).has(d()(e.target)))&&!d()(this.element).is(e.target)){let t=d().contains(document.body,e.target),i=e.target===document.body;if(t||i)return this.bodyClick(e)}}),d()(this.bodyElementSelector).on("mousedown",this._clickHandler)),this._hideHandler||(this._hideHandler=()=>{this.hide()},d()(document).on("popover:hide",this._hideHandler));let e=this.debounceSnapToPosition;return this._resizeHandler||(this._resizeHandler=e,d()(document).on("resize",e)),this._scrollHandler||(this._scrollHandler=e,d()(document).on("scroll",this._scrollHandler)),this._mutationObserverForResize||(this._mutationObserverForResize=new MutationObserver(e),this._mutationObserverForResize.observe(this.element,{subtree:!0,childList:!0})),d()(document).on("keyup",this.keyHandler)},_removeDocumentHandlers(){return this._clickHandler&&d()(this.bodyElementSelector).off("mousedown",this._clickHandler),this._clickHandler=null,d()(document).off("popover:hide",this._hideHandler),this._hideHandler=null,d()(document).off("resize",this._resizeHandler),this._resizeHandler=null,d()(document).off("scroll",this._scrollHandler),this._scrollHandler=null,this._mutationObserverForResize&&(this._mutationObserverForResize.disconnect(),this._mutationObserverForResize=null),d()(document).off("keyup",this.keyHandler)}});
1m.reopenClass({rootElement:".ember-application",hideAll:()=>d()(document).trigger("popover:hide")});const g=m;i.d(t,["A",0,g])},821685(e,t,i){i.d(t,{A:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"JsIVesQH",block:'[[[10,"ul"],[14,0,"ember-select-results list-none"],[15,5,[30,1,["collectionStyle"]]],[12],[1,"\\n"],[44,[[50,[30,1,["resolvedItemComponent"]],0,null,[["highlighted","labelPath","selection","showDropdown","titleOnOptions","isGroupHeaderCollapsible","select"],[[30,1,["highlighted"]],[30,1,["optionLabelPath"]],[30,1,["selection"]],[30,1,["showDropdown"]],[30,1,["titleOnOptions"]],[30,1,["isGroupHeaderCollapsible"]],[30,1]]]]],[[[1," "],[8,[39,2],null,[["@items","@estimateHeight","@staticHeight","@renderAll","@idForFirstItem"],[[30,1,["groupedContent"]],[30,1,["resolvedRowHeight"]],[30,1,["staticHeight"]],[30,1,["renderAllItems"]],[30,1,["highlightedIdentity"]]]],[["default"],[[[[1,"\\n "],[8,[30,2],[[24,"tabindex","0"]],[["@content"],[[30,3]]],null],[1,"\\n "]],[3,4]]]]],[1,"\\n"]],[2]]],[13]],["@select","ItemComponentInvokable","item","index"],false,["let","component","vertical-collection"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/components/select-list-view.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"select-list-view"))},824304(e,t,i){var r=i(618576),o=i.n(r),a=i(734138),n=i(943910),s=i(434158),l=i(27329);const u=o().extend({tagName:"li",layoutName:"components/select-option",classNames:"ember-select-result-item",classNameBindings:(0,a.A)(["content.isGroupOption:ember-select-group","isCollapsibleGroupHeader:collapsible-group-header","isHighlighted:highlighted"]),isCollapsibleGroupHeader:(0,n.computed)("content.isGroupOption","isGroupHeaderCollapsible",function(){return this.get("isGroupHeaderCollapsible")&&this.get("content.isGroupOption")}),collapsedGroupHeaderIcon:"fas fa-caret-right",expandedGroupHeaderIcon:"fas fa-caret-down",isHighlighted:(0,n.computed)("content","highlighted",function(){return this.get("highlighted")===this.get("content")}),labelPathDidChange:(0,s.on)("init",(0,n.observer)({sync:!1,dependentKeys:["content","labelPath"],fn(){let e=this.labelPath,t=e?`content.${e}`:"content";return(0,n.defineProperty)(this,"label",(0,l.O)(t)),this.notifyPropertyChange("label")}})),processDropDownShown(){this.select.send("hideDropdown")},didInsertElement(){return this._super(),this.element.addEventListener("mouseover",this.onMouseOver),this.labelPathDidChange()},willDestroyElement(){this._super(),this.element.removeEventListener("mouseover",this.onMouseOver)},click(){let e=this.get("content");if(!(0,n.get)(e,"isGroupOption"))return this.set("select.selection",e),this.get("select").userDidSelect(e),this.get("showDropdown")?(this.processDropDownShown(),!1):void 0;this.get("isCollapsibleGroupHeader")&&this.get("select").send("toggleGroupHeader",(0,n.get)(e,"name"))},onMouseOver:(0,n.action)(function(){this.get("content.isGroupOption")||this.set("highlighted",this.get("content"))})});i.d(t,["A",0,u])},943904(e,t,i){var r=i(943910),o=i(27329),a=i(989272),n=i(496314),s=i(771598),l=i.n(s),u=i(861933),c=i(640626);const d=u.A.extend({placeholder:(0,o.O)("select.placeholder"),value:(0,c.alias)("select.query"),showDropdownDidChange:(0,r.observer)({sync:!0,dependentKeys:["select.showDropdown"],fn(){if(this.select?.showDropdown)return(0,a.schedule)("afterRender",this,function(){"inDOM"===(this._state||this.state)&&this.onDropdownShown(this.element)});this.onDropdownHidden(this.element)}}),onDropdownShown(e){"function"===(0,n.typeOf)(this.select.onDropdownShown)?this.select.onDropdownShown.call(this.select,e):l()(this.element).focus()},onDropdownHidden(e){"function"===(0,n.typeOf)(this.select.onDropdownHidden)?this.select.onDropdownHidden.call(this.select,e):(this.set("value",""),this.get("select").send("valueChanged",""))},propagateNewText(e){this.get("select").send("valueChanged",e)}});i.d(t,["A",0,d])},599958(e,t,i){i.d(t,{A:()=>n});var r=i(107210),o=i.n(r);const a=(0,i(510364).createTemplateFactory)({id:"CL71ry32",block:'[[[10,"ul"],[14,0,"ember-select-results sticky-header"],[15,5,[30,1,["collectionStyle"]]],[12],[1,"\\n"],[44,[[50,[3
10,1,["resolvedItemComponent"]],0,null,[["highlighted","labelPath","selection","showDropdown","titleOnOptions","isGroupHeaderCollapsible","select"],[[30,1,["highlighted"]],[30,1,["optionLabelPath"]],[30,1,["selection"]],[30,1,["showDropdown"]],[30,1,["titleOnOptions"]],[30,1,["isGroupHeaderCollapsible"]],[30,1]]]]],[[[41,[30,1,["currHeader"]],[[[1," "],[8,[30,2],[[24,"tabindex","0"]],[["@content"],[[30,1,["currHeader"]]]],null],[1,"\\n"]],[]],null],[1," "],[8,[39,3],null,[["@items","@estimateHeight","@staticHeight","@idForFirstItem","@firstVisibleChanged"],[[30,1,["groupedContent"]],[30,1,["resolvedRowHeight"]],true,[30,1,["highlightedIdentity"]],[30,1,["firstVisibleChanged"]]]],[["default"],[[[[1,"\\n "],[8,[30,2],[[24,"tabindex","0"]],[["@content","@descriptionPlacement","@hidePopovers"],[[30,3],[30,1,["descriptionPlacement"]],[30,1,["hidePopovers"]]]],null],[1,"\\n "]],[3,4]]]]],[1,"\\n"]],[2]]],[13]],["@select","ItemComponentInvokable","item","index"],false,["let","component","if","vertical-collection"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-widgets.0054114c/node_modules/ember-widgets/components/sticky-header-list-view.hbs",isStrictMode:!1}),n=(0,i(618576).setComponentTemplate)(a,o()(void 0,"sticky-header-list-view"))},801897(e,t,i){var r=i(603057),o=i(210511);const a=r.A_.extend({class:"ember-select-input",focusIn(){this.set("showDropdown",!0)},input(e){let t=e.target.value;this.get("filterUnsupportedChars")&&(t=(0,o.D)(e.target.value)),this.valueChanged?.(t)}});i.d(t,["A",0,a])},709784(e,t,i){var r=i(296537),o=i.n(r),a=i(989272),n=i(771598),s=i.n(n);const l=o().Mixin.create({bodyElementSelector:"html",bodyClick:()=>{},didInsertElement(){return this._super(),(0,a.next)(this,this._setupDocumentHandlers)},willDestroyElement(){this._removeDocumentHandlers(),this._super()},_setupDocumentHandlers(){let e=this;if(!this._clickHandler&&!this.isDestroying)return this._clickHandler=function(t){return o().run(function(){if("inDOM"===(e.get("_state")||e.get("state"))&&o().isEmpty(s()(e.element).has(s()(t.target)))&&!s()(e.element).is(t.target)){let i=s().contains(document.body,t.target),r=t.target===document.body;if(i||r)return e.bodyClick(t)}})},s()(this.get("bodyElementSelector")).on("mousedown",this._clickHandler)},_removeDocumentHandlers(){return this._clickHandler&&s()(this.get("bodyElementSelector")).off("mousedown",this._clickHandler),this._clickHandler=null}});i.d(t,["A",0,l])},501760(e,t,i){const r=Object.freeze({KEY_CODES:{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,ESCAPE:27}});i.d(t,["A",0,r])},33615(e,t,i){var r=i(804204),o=i.n(r),a=i(979295),n=(i(44384),i(771598)),s=i.n(n),l=i(734138);const u=o().extend({init(){this._super(...arguments),this.popovers=(0,l.A)([])},openPopover(e,t={},i=!0){let r;r="string"==typeof e?(0,a.getOwner)(this).factoryFor(`component:${e}`).class:e;let o=t.rootElement??".ember-application";delete t.rootElement;let n=this._getDestinationElement(r,o),{popoverSpec:s,close:l}=this.buildPopoverSpec(e,n,t);return i&&this._hideAllPopovers(),this.openPopoverSpec(s),l},openModal(e,t={}){let i;i="string"==typeof e?(0,a.getOwner)(this).factoryFor(`component:${e}`).class:e;let r=t.rootElement??".ember-application";delete t.rootElement;let o=this._getDestinationElement(i,r),{popoverSpec:n,close:s}=this.buildPopoverSpec(e,o,t);return this._hideAllModals(),this.openPopoverSpec(n),s},buildPopoverSpec(e,t,i){let r={componentName:e,destinationElement:t},o=()=>{this.popovers.removeObject(r)};return r={...r,propertyOptions:{...i,closePopover:o}},{popoverSpec:r,close:o}},openPopoverSpec(e){this.popovers.pushObject(e)},_hideAllModals(){s()(document).trigger("modal:hide")},_hideAllPopovers(){s()(document).trigger("popover:hide")},_getDestinationElement(e,t){let i=e.rootElement||t;return document.querySelector(i)},registerPopoverRendered(){this._popoverDidRender=!0}});i.d(t,["A",0,u])},27329(e,t,i){i.d(t,{O:()=>o});var r=i(943910);let o=function(e){return(0,r.computed)(e,{get(){return(0,r.get)(this,e)},set(t,i){return(0,r.set)(this,e,i),(0,r.get)(this,e)}})}},210511(e,t,i){i.d(t,{D:()=>o});const r=/[^\x00-\xffâ]|[\x81\x8d\x8f\x90\x9d]/g;function o(e){return e?e.replace(r,""):e}},368790(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(640626),o=i(618576),a=i.n(o),n=i(943910),s=i(989272);const l=(0,i(510364).createTemplateFactory)({id:"Cj8OY7EH",block:'[[[1,[28,[35,0],[[30,0,["_wormholeHeadNode"]]],null]],[18,1,null],[1,[28,[35,0],[[30,0,["_wormholeTailNode"]]],null]]],["&default"],false,["unbound","yield"]]',moduleName:"/home/runner/_work/Iverson/Iverson/iverson/node_modules/.embroider/rewritten-packages/ember-wormhole.96b7b850/node_modules/ember-wormhole/templates/components/ember-wormhole.hbs",isStrictMode:!1});var u=i(979295);
1function c(){return"undefined"==typeof document?null:document.activeElement}function d(e){let t=[],i=e.firstChild;for(;i;)t.push(i),i=i.nextSibling;return t}const p=a().extend({layout:l,to:(0,r.alias)("destinationElementId"),destinationElementId:null,destinationElement:null,_destination:(0,n.computed)("destinationElement","destinationElementId","renderInPlace",function(){if(this.get("renderInPlace"))return this._element;let e=this.get("destinationElement");if(e)return e;let t=this.get("destinationElementId");return t?function(e,t){if(e.getElementById)return e.getElementById(t);let i,r=d(e);for(;r.length;){if(i=r.shift(),i.getAttribute&&i.getAttribute("id")===t)return i;r=d(i).concat(r)}}(this._dom,t):null}),renderInPlace:!1,init(){this._super(...arguments),this._dom=function(e){let{renderer:t}=e;if(!t._dom){let i=u.getOwner?(0,u.getOwner)(e):e.container,r=i.lookup("service:-document");if(r)return r;t=i.lookup("renderer:-dom")}if(t._dom&&t._dom.document)return t._dom.document;throw new Error("ember-wormhole could not get DOM")}(this),this._wormholeHeadNode=this._dom.createTextNode(""),this._wormholeTailNode=this._dom.createTextNode(""),(0,s.schedule)("afterRender",()=>{if(!this.isDestroyed){if(this._element=this._wormholeHeadNode.parentNode,!this._element)throw new Error("The head node of a wormhole must be attached to the DOM");this._appendToDestination()}})},willDestroyElement:function(){this._super(...arguments);let{_wormholeHeadNode:e,_wormholeTailNode:t}=this;(0,s.schedule)("render",()=>{this._removeRange(e,t)})},_destinationDidChange:(0,n.observer)("_destination",function(){this.get("_destination")!==this._wormholeHeadNode.parentNode&&(0,s.schedule)("render",this,"_appendToDestination")}),_appendToDestination(){var e=this.get("_destination");if(!e){var t=this.get("destinationElementId");if(t)throw new Error(`ember-wormhole failed to render into '#${t}' because the element is not in the DOM`);throw new Error("ember-wormhole failed to render content because the destinationElementId was set to an undefined or falsy value.")}let i=c();this._appendRange(e,this._wormholeHeadNode,this._wormholeTailNode);let r=c();i&&r!==i&&i.focus()},_appendRange(e,t,i){for(;t;)e.insertBefore(t,null),t=t!==i?i.parentNode.firstChild:null},_removeRange(e,t){var i=t;do{var r=i.previousSibling;if(i.parentNode&&(i.parentNode.removeChild(i),i===e))break;i=r}while(i)}})},489626(e,t,i){i.r(t),i.d(t,{default:()=>r});const r=i(94980).A},204102(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(989272),d=i(35
15355),p=i.n(d),h=i(558779),m=i.n(h),g=i(204011),f=i(804204),y=i(304747),b=i(979295),v=i(823331),w=i(716178);m().reopen({routeFor(e){return(0,b.getOwner)(this).lookup(`route:${e}`)}});const _=v.RouterDSL.prototype.route;v.RouterDSL.prototype.route=function(...e){let[t,i]=e;if(i){let e=`${this.parent}.${t}`;if("sentryOwner"in i){let t=i.sentryOwner;if(!Object.values(w.SentryTeam).includes(t))throw new Error(`route received an invalid sentryOwner: ${t} on ${e}`);w.SentryRouteOwnership.setOwner(e,t)}}return _.call(this,...e)};let A=(r=(0,f.inject)("location"),o=class e extends(p()){constructor(...e){super(...e),(0,l.A)(this,"location",g.default.locationType),(0,s.A)(this,"analytics",a,this),(0,s.A)(this,"locationService",n,this),this.on("routeDidChange",()=>{(0,c.next)(()=>{this.analytics.trackPage()})})}static setLocation(e){return(0,y.getLocationDelegate)().assign(e)}static redirectToHome(){e.setLocation("/")}_doURLTransition(e,t){return void 0===this._routerMicrolib.recognizer.recognize(t)&&(t="/"),super._doURLTransition(e,t)}},a=(0,u.A)(o.prototype,"analytics",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(o.prototype,"locationService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o);A.map(function(){this.route("application_loading"),this.route("login",{path:"/login_sso"}),this.route("login"),this.route("autosso-gateway",{path:"login/autosso/gateway"}),this.route("autosso-redirect",{path:"login/autosso/redirect"}),this.route("email-link-tracker",{path:"/go"}),this.route("maintenance"),this.route("activation"),this.route("oauth2",function(){this.route("authorize"),this.route("providers",function(){this.route("navigator-cb",{path:"/navigator/cb"})})}),this.route("app",function(){this.route("home",{sentryOwner:w.SentryTeam.PAC}),this.route("dashboards",{sentryOwner:w.SentryTeam.AWD},function(){this.route("dashboard",{path:"/:dashboard_id"})}),this.route("client-insights",{sentryOwner:w.SentryTeam.PAC},function(){this.route("client",{path:"/:client_id"})}),this.route("portfolio-data",function(){this.route("onboarding-requests",{sentryOwner:w.SentryTeam.LOA}),this.route("entities",{sentryOwner:w.SentryTeam.PDW}),this.route("groups",{sentryOwner:w.SentryTeam.PDW}),this.route("investments",{sentryOwner:w.SentryTeam.PDW},function(){this.route("list"),this.route("underlying-assets")}),this.route("pricing",{sentryOwner:w.SentryTeam.OX}),this.route("account-management",{sentryOwner:w.SentryTeam.OX},function(){this.route("online-accounts"),this.route("add-accounts-wizard"),this.route("connections"),this.route("master-accounts")}),this.route("alerts",{sentryOwner:w.SentryTeam.OX}),this.route("historical-data",{sentryOwner:w.SentryTeam.OX},function(){this.route("transaction-datasets"),this.route("data-timelines"),this.route("pricing-datasets")}),this.route("group-automation",{sentryOwner:w.SentryTeam.OX}),this.route("group-types",{sentryOwner:w.SentryTeam.OX},function(){this.route("create"),this.route("edit",{path:"/:group_type_id"})}),this.route("model-types",{sentryOwner:w.SentryTeam.OX},function(){this.route("ownership-entities"),this.route("investment-entities")})}),this.route("portal-module",{path:"client-portal",sentryOwner:w.SentryTeam.ECX},function(){this.route("contacts",function(){this.route("paginated"),this.route("contact-details",{path:"/:contact_id"},function(){this.route("portfolios"),this.route("profile"),this.route("portal-settings")})}),this.route("templates",function(){this.route("template",{path:"/:template_id"},function(){this.route("overview"),this.route("views"),this.route("settings")})}),this.route("view-sets",function(){this.route("view-set",{path:"/:view_set_id"},function(){this.route("info",function(){this.route("edit")}),this.route("contacts",function(){this.route("edit")})})}),this.route("views",function(){this.route("details",{path:"/details/:view_id"},function(){this.route("edit")})}),this.route("view-editor",{path:"/view-editor/:dashboard_id"}),this.route("settings"),this.route("profiles",function(){this.route("profile",{path:"/:profile_id"},function(){this.route("details",function(){this.route("edit")}),this.route("contacts",function(){this.route("edit")})})})}),this.route("files-beta"),this.route("tradeSettings",{path:"/trade-settings",sentryOwner:w.SentryTeam.TRADING}),this.route("files",{sentryOwner:w.SentryTeam.ECX},function(){this.route("clientUploads"),this.route("custodianDocuments",function(){this.route("custodianAccounts",{path:"/"}),this.route("search",{path:"/:owner_type/:owner_id"})})}),this.route("tools",function(){this.route("portfolioAnalysis",{path:"portfolio",sentryOwner:w.SentryTeam.PDW},function(){this.route("view",{path:"view/:view_id"}),this.route("perspective",{path:":perspective_type/:perspective_id"},function(){this.route("view",{path:"view/:view_id"},function(){this.route("panel",function(){this.route("empty"),this.route("details"),this.route("historicalValues",{path:"historical_values"}),this.route("files"),this.route("bulkEdit",{path:"bulk_edit"}),this.route("summaryData",{path:"summary_data"}),this.route("inspector"),this.route("taxLot",{path:"tax_lot"}),this.route("deltaTaxLots",{path:"delta_tax_lots"}),this.route("benchmark"),this.route("transaction"),this.route("dataProblem",{path:"data_problem"}),this.route("bulkTransactions",{path:"bulk_transactions"}),this.route("bulkDataProblems",{path:"bulk_data_problems"})})})})}),this.route("transactionCenter",{path:"transaction",sentryOwner:w.SentryTeam.PDW},function(){this.route("perspective",{path:":perspective_type/:perspective_id"})}),this.route("contextDetails",{path:"details",sentryOwner:w.SentryTeam.PDW},function(){var e,t;(e=this).route("entity",{path:"entity/:entity_id"},t),e.route("group",{path:"group/:group_id"},t),e.route("firm",{path:"firm/:firm_id"},t),this.route("contact",{path:"contact/:contact_id"})}),this.route("reports",{sentryOwner:w.SentryTeam.REPORTING},function(){this.route("perspective",{path:":perspective_type/:perspective_id"},function(){this.route("reports"),this.route("pdfs",function(){this.route("pdf",{path:"/:pdf_id"})}),this.route("generation",function(){this.route("details",{path:":job_id"})})})}),this.route("fileVault",{path:"files",sentryOwner:w.SentryTeam.ECX},function(){this.route("perspective",{path:":perspectiveType/:id"},function(){this.route("clientUploads")})}),this.route("proposals",function(){this.route("perspective",{path:":perspective_type/:perspective_id"})}),this.route("holdings",function(){this.route("perspective",{path:":perspective_type/:perspective_id"})}),this.route("trading-worksheet",{path:"worksheet",sentryOwner:w.SentryTeam.TRADING},function(){this.route("perspective",{path:":perspective_type/:perspective_id"},function(){this.route("view",{path:"view/:view_id"})})}),this.route("orderSets",{path:"order-sets",sentryOwner:w.SentryTeam.TRADING},function(){this.route("perspective",{path:":perspective_type/:perspective_id"})})}),this.route("billing",{sentryOwner:w.SentryTeam.BILLING},function(){this.route("portfolios",function(){this.route("active"),this.route("archived"),this.route("portfolio",{path:"/:id"},function(){this.route("bills"),this.route("fee-schedule"),this.route("settings")})}),this.route("bills",function(){this.route("new"),this.route("outstanding"),this.route("paid"),this.route("submitted"),this.route("voided"),this.route("bill",{path:"/:id"},function(){this.route("fee",{path:"/fee/:fee_id_in_bill"}),this.route("fee-additional-adjustment",{path:"/fee-additional-adjustment/:fee_id_in_bill"})})}),this.route("fee-schedules",function(){this.route("create"),this.route("fee-schedule",{path:"/:fee_schedule_id"})}),this.route("fees",function(){this.route("create"),this.route("fee",{path:"/:fee_id"})}),this.route("billing-settings"),this.route("payouts",function(){this.route("recipients"),this.route("payouts"),this.route("create"),this.route("edit",{path:"edit/:payout_rule_id"})})}),this.route("report",{path:"report/:report_id",sentryOwner:w.SentryTeam.REPORTING},function(){this.route("perspective",{path:":perspectiveType/:id"})}),this.route("reporting",{sentryOwner:w.SentryTeam.REPORTING},function(){this.route("reports",function(){this.route("report",{path:"/:report_id"})}),this.route("runs",function(){this.route("run",{path:"/:report_generation_job_id"})}),this.route("schedules")}),this.route("reportTemplate",{path:"report-template/:report_template_id",sentryOwner:w.SentryTeam.REPORTING},function(){this.route("perspective",{path:":perspectiveType/:id"})}),this.route("transactionTable",{path:"transaction-table",sentryOwner:w.SentryTeam.PDW},function(){this.route("perspective",{path:":perspective_type/:perspective_id"})}),this.route("proposal",{path:"proposal/:proposalId"},function(){this.route("view",{path:"view/:view_id"})}),this.route("addeparLibrary",{sentryOwner:w.SentryTeam.PAC,path:"/addepar-library"},function(){this.route("resourceType",{path:"/:resource_type_id"},function(){this.route("resourcePreview",{path:"/:content_id"})})}),this.route("settings",function(){this.route("permissions",{sentryOwner:w.SentryTeam.PDW},function(){this.route("contact",{path:"/contact/:contact_id"},function(){this.route("details"),this.route("tools"),this.route("data")})}),this.route("displaySettings",{path:"/firm"}),this.route("addison-settings",function(){}),this.route("firmContent",{sentryOwner:w.SentryTeam.PAC,path:"/firm-content"}),this.route("brandingSettings",{path:"/branding"},function(){this.route("login"),this.route("portal",{sentryOwner:w.SentryTeam.ECX},function(){this.route("firm"),this.route("team",{path:"/team/:team_id"})}),this.route("general",function(){this.route("firm"),this.route("team",{path:"/team/:team_id"})}),this.route("email",function(){this.route("general"),this.route("content",{path:"/content/:email_type_id"})}),this.route("custom")}),this.route("feeSchedules",{path:"/fee-schedules"},function(){this.route("item",{path:"/:fee_schedule_id"})}),this.route("groupManagement",{path:"/group-management",sentryOwner:w.SentryTeam.PDW},function(){this.route("groupAutomation",{path:"/group-automation"}),this.route("groupTypes",{path:"/group-types"})}),this.route("benchmarks",{sentryOwner:w.SentryTeam.PDW},function(){this.route("library",function(){this.route("edit",{path:"/edit/:benchmark_id"},function(){this.route("usage")})}),this.route("associations",function(){this.route("edit",{path:"/edit/:benchmark_associations_list_id"})})}),this.route("view-management",{sentryOwner:w.SentryTeam.PDW},function(){this.route("portfolio-views",{path:"/analysis"},function(){this.route("schedules")})}),this.route("widgets",{sentryOwner:w.SentryTeam.AWD}),this.route("calculationSettings",{path:"/calculation-settings"}),this.route("attributes",{sentryOwner:w.SentryTeam.PDW}
1,function(){this.route("bulkJobs",{path:"/bulk-jobs"}),this.route("configurations",function(){this.route("configuration-details",{path:"/details"})}),this.route("factorTemplate",{path:"/:factor_template_id"},function(){this.route("attributeFinder",{path:"attribute-finder"})}),this.route("library",function(){this.route("factorTemplate",{path:"/:factor_template_id"},function(){this.route("attributeFinder",{path:"attribute-finder"})})})}),this.route("targetAllocation",{path:"/target-allocations",sentryOwner:w.SentryTeam.PDW},function(){this.route("editFramework",{path:"/framework/:allocation_framework_id"}),this.route("editTemplate",{path:"/template/:allocation_template_id"})}),this.route("transactionTags",{path:"/transaction-tags",sentryOwner:w.SentryTeam.PDW}),this.route("importHistory",{path:"/import-history",sentryOwner:w.SentryTeam.DIS}),this.route("report",{path:"/reports",sentryOwner:w.SentryTeam.REPORTING},function(){this.route("headersAndFooters",{path:"/headers-and-footers"}),this.route("sectionTemplate",{path:"/section-templates"},function(){}),this.route("format-tables",function(){this.route("edit",{path:"/:table_theme_id"})}),this.route("table-themes",function(){this.route("edit",{path:"/:table_theme_id"})}),this.route("general-settings")}),this.route("apiKeys",{path:"/api",sentryOwner:w.SentryTeam.IDX}),this.route("thirdPartyApplications",{path:"/third-party-applications"}),this.route("manageIntegrations",{path:"/integrations",sentryOwner:w.SentryTeam.IDX},function(){this.route("integrationDetails",{path:"/:integration_id"})}),this.route("salesforceIntegration",{path:"/salesforceConnector",sentryOwner:w.SentryTeam.IDX},function(){this.route("/",{path:"/index"}),this.route("connection",{path:"/:connection_id"})}),this.route("unusedEntities",{path:"/unused-entities",sentryOwner:w.SentryTeam.PDW}),this.route("auditTrail",{path:"/audit-trail",sentryOwner:w.SentryTeam.PDW}),this.route("chartMigrations",{path:"/chart-migration"}),this.route("systemSecurity",{path:"/system-security"}),this.route("multiFirmResources",{path:"/multi-firm-resources"},function(){this.route("copyHeadersFooters",{path:"/copy-headers-and-footers"}),this.route("copySectionTemplates",{path:"/copy-section-templates"}),this.route("copyPortfolioViews",{path:"/copy-analysis-views"}),this.route("copyDashboards",{path:"/copy-dashboards"}),this.route("copyPortalViews",{path:"/copy-portal-views"}),this.route("copyTransactionViews",{path:"/copy-transaction-views"}),this.route("copyCustomAttributes",{path:"/copy-custom-attributes"})}),this.route("contentLibrary",{sentryOwner:w.SentryTeam.PAC,path:"/content-transfer"},function(){this.route("index",{path:"/"}),this.route("client",{path:"/:client_id"},function(){this.route("resourceType",{path:"/:resource_type_id"})})}),this.route("roles",{sentryOwner:w.SentryTeam.PDW},function(){this.route("role",{path:"/:role_id"},function(){this.route("permissions"),this.route("users")})}),this.route("teams",{sentryOwner:w.SentryTeam.PDW},function(){this.route("team",{path:"/:team_id"},function(){this.route("members"),this.route("info")})}),this.route("hiddenSecurities",{path:"/hidden-securities",sentryOwner:w.SentryTeam.PDW}),this.route("dataVerificationExclusion",{path:"/data-verification-exclusions",sentryOwner:w.SentryTeam.PDW})}),this.route("personalSettings",{path:"/personal-settings"},function(){this.route("userPreferences",{path:"/user-preferences"}),this.route("thirdPartyApplications",{path:"/third-party-applications"}),this.route("personalSecurity",{path:"/personal-security"}),this.route("notifications"),this.route("connectedIntegrations",{path:"/connected-integrations",sentryOwner:w.SentryTeam.IDX},function(){this.route("grantDetails",{path:"/:connected_integration_id"})})}),this.route("integrations",{sentryOwner:w.SentryTeam.IDX},function(){this.route("integration",{path:":integration_id"},function(){this.route("description"),this.route("settings")})}),this.route("import",{sentryOwner:w.SentryTeam.DIS},function(){this.route("history"),this.route("tool"),this.route("delete"),this.route("generate-import")}),this.route("ownership",{sentryOwner:w.SentryTeam.PDW},function(){this.route("entity",{path:"entity/:id"})}),this.route("business-intelligence",function(){this.route("dashboard",{path:":dashboard_id"})}),this.route("investment-intelligence",{sentryOwner:w.SentryTeam.RESEARCH_PLATFORM},function(){this.route("data-management",function(){this.route("benchmarks",function(){this.route("create"),this.route("edit",{path:"/:benchmark_id"})})}),this.route("portfolio-diagnostic",function(){this.route("performance")})}),this.route("event",{sentryOwner:w.SentryTeam.PDW},function(){this.route("edit",{path:":id"})})}),this.route("portal",{path:"/app/portal",sentryOwner:w.SentryTeam.ECX}),this.route("portal",{path:"/app/portal/*path",sentryOwner:w.SentryTeam.ECX}),this.route("errors",{path:"/errors/:status_code"})});const T=A;i.d(t,["default",0,T])},802364(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p=i(748096),h=i(401104),m=i(228888),g=i(640626),f=i(496314),y=i(558779),b=i.n(y),v=i(943910),w=i.n(v),_=i(873771),A=i(78474),T=i(213182),C=i(804204);let S=(r=(0,v.computed)("email"),o=(0,g.or)("phone","email"),a=(0,v.computed)("phone","email"),n=class extends(w()){constructor(...e){super(...e),(0,h.A)(this,"phone",null),(0,h.A)(this,"email",null),(0,h.A)(this,"firm",null),(0,p.A)(this,"hasContactInfo",s,this)}get mailto(){return`mailto:${this.get("email")}`}get conjunction(){return this.get("phone")&&this.get("email")?"or":""}},(0,m.A)(n.prototype,"mailto",[r],Object.getOwnPropertyDescriptor(n.prototype,"mailto"),n.prototype),s=(0,m.A)(n.prototype,"hasContactInfo",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,m.A)(n.prototype,"conjunction",[a],Object.getOwnPropertyDescriptor(n.prototype,"conjunction"),n.prototype),n);const R=(l=class extends(b()){constructor(...e){super(...e),(0,p.A)(this,"ajax",u,this),(0,p.A)(this,"router",c,this),(0,p.A)(this,"session",d,this)}beforeModel(e){let{queryParams:t}=e.to;if(function(e){let t={"amp;email":"email","amp;purpose":"purpose"};for(let[i,r]of Object.entries(t))e[i]&&(e[r]=e[i],delete e[i])}(t),"PASSWORD_RESET"!==t.purpose||!(0,f.isNone)(t.token))return this.ajax.ajax({url:"/public/credentials/me/password/requires_activation",data:new URLSearchParams((0,A.A)((0,T.A)(t,["token","email","purpose"]),_.A)).toString(),logoutOn401:!1}).then(e=>e.data.requires_activation?"ACTIVATION"!==t.purpose||(0,f.isNone)(e.data.must_change_password)||e.data.must_change_password?void 0:this.ajax.ajax({type:"POST",url:"/public/credentials/me/activate",data:{email:t.email,token:t.token}}).then(()=>this.transitionToLogin(t.email,!1)):this.transitionToLogin(t.email,!0)).catch(e=>e.handle("invalidAccessLink",()=>{let t=e.error?.user_message,i=e.error?.error_detail?.support;return this.controllerFor("activation").setProperties({supportInfo:S.create(i),fatalError:t})}))}resetController(e){e.showMfaSelection=!1}transitionToLogin(e,t){return this.controllerFor("login").set("username",e),t?this.controllerFor("login").showActivationMessage("This email address has already been activated.",!1):this.controllerFor("login").showActivationMessage("This email address has been successfully activated.",!0),this.session.resetUser(),this.router.transitionTo("login")}},u=(0,m.A)(l.prototype,"ajax",[C.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,m.A)(l.prototype,"router",[C.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,m.A)(l.prototype,"session",[C.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l);i.d(t,["default",0,R])},539229(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b,v,w,_=i(748096),A=i(228888),T=i(558779),C=i.n(T),S=i(943910),R=i(804204),D=i(204011),O=i(304747),E=i(127950),F=i(701627),P=i.n(F);const{APP:{ENABLE_FEDERATED_MODULES:x}}=D.default,N=(r=class extends(C()){constructor(...e){super(...e),(0,_.A)(this,"analytics",o,this),(0,_.A)(this,"browserDetection",a,this),(0,_.A)(this,"contactPreferences",n,this),(0,_.A)(this,"credential",s,this),(0,_.A)(this,"crossFirmStores",l,this),(0,_.A)(this,"currencies",u,this),(0,_.A)(this,"displaySetting",c,this),(0,_.A)(this,"entityTypeData",d,this),(0,_.A)(this,"featureFlags",p,this),(0,_.A)(this,"firmData",h,this),(0,_.A)(this,"permissionService",m,this),(0,_.A)(this,"portalAccess",g,this),(0,_.A)(this,"router",f,this),(0,_.A)(this,"session",y,this),(0,_.A)(this,"store",b,this),(0,_.A)(this,"theme",v,this),(0,_.A)(this,"pageTitleManager",w,this)}activate(){this.credential.isAddeparUser&&this.pageTitleManager.setTitle()}beforeModel(e){if(this.clearExitSettingsRedirect(),this.browserDetection.isBrowserSupportedForLoggedInAdvisors)if(this.credential.isAuthenticated)if(this.credential.isClient)this.router.transitionTo("portal",this.credential.contact);else{if("app.transactionTable.perspective"===e.targetName){let{params:t,queryParams:i}=e.to;return void this.router.transitionTo("app.tools.transactionCenter.perspective",t.perspective_type,t.perspective_id,{queryParams:i}
1)}this.loadEagerMicroFrontends()}else this.router.transitionTo("login",{queryParams:{continueParam:JSON.stringify({url:e.intent.url})}});else(0,O.getLocationDelegate)().assign(`/unsupported-browser.html?returnTo=${encodeURIComponent(e.intent.url)}`)}model(){return P().all([this.contactPreferences.load(),this.displaySetting.load(),this.loadUserPreferences(),this.portalAccess.loadSettings(),this.permissionService.load(),this.loadCurrencies(),this.loadFirm(),this.entityTypeData.modelPromise]).then(()=>{let e=this.controllerFor("userPreferences").model;this.displaySetting.setDateFormatOverride(e.dateFormat),x&&this.displaySetting.isSecureMessagingEnabled&&i.e(9945).then(i.t.bind(i,949945,23)).catch(e=>(0,E.Cp)(e))})}afterModel(){this.loadDeferredMicroFrontends(),this.theme.applyApplicationTheme()}loadUserPreferences(){return this.store.findRecord("userPreferences","0").then(e=>(this.controllerFor("userPreferences").set("model",e),this.analytics.trackUserPreferences(e),this.theme.userPreferences=e,e))}loadEagerMicroFrontends(){x&&(i.e(5500).then(i.t.bind(i,335500,23)).catch(e=>(0,E.Cp)(e)),i.e(1363).then(i.t.bind(i,881363,23)).catch(e=>(0,E.Cp)(e)),i.e(8389).then(i.t.bind(i,638389,23)).catch(e=>(0,E.Cp)(e)),this.session.isRepGen||i.e(8941).then(i.t.bind(i,238941,23)).catch(e=>(0,E.Cp)(e)))}loadDeferredMicroFrontends(){x&&!this.session.isRepGen&&this.featureFlags.flags.boolean.session_expiration_sentinel&&i.e(9503).then(i.t.bind(i,49503,23)).then(e=>{e.enableSessionSentinel&&e.enableSessionSentinel()}).catch(e=>(0,E.Cp)(e))}loadCurrencies(){return this.store.findAll("currency").then(e=>{this.currencies.registerSupportedCurrencies(e)})}loadFirm(){return this.firmData.modelPromise.then(e=>{let t=this.store.peekRecord("firm",this.session.firmId);this.controllerFor("firm").set("model",t);let i=e.mapBy("id").removeObject(t.get("id"));this.crossFirmStores.initStores(i)})}setupController(...e){super.setupController(...e),this.pageTitleManager.setTitle(),this.controller._addCLIToggleListener()}willTransition(){this.permissionService.unload()}error(e,t){let i=e?.error,r=i?.status_code;return 403!==r&&404!==r||(t.abort(),i.shouldHideAlerts=!0,void this.router.transitionTo("errors",i))}setExitSettingsRedirect(e){this.set("redirectURL",e)}clearExitSettingsRedirect(){this.set("redirectURL",null)}isValidExitSettingsRedirect(e){return e&&("/app"===e||!this.router.currentURL.startsWith(e))}isValidAddeparUrl(e){return e&&(e.startsWith("/")||(0,O.getLocationDelegate)().hostname===new URL(e).hostname)}exitSettings(){let e=this.isValidExitSettingsRedirect(this.redirectURL)&&this.isValidAddeparUrl(this.redirectURL)?this.redirectURL:"/app";e.startsWith("/")?this.router.transitionTo(e):(0,O.getLocationDelegate)().replace(e),this.clearExitSettingsRedirect()}},o=(0,A.A)(r.prototype,"analytics",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,A.A)(r.prototype,"browserDetection",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,A.A)(r.prototype,"contactPreferences",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,A.A)(r.prototype,"credential",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,A.A)(r.prototype,"crossFirmStores",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,A.A)(r.prototype,"currencies",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,A.A)(r.prototype,"displaySetting",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,A.A)(r.prototype,"entityTypeData",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,A.A)(r.prototype,"featureFlags",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,A.A)(r.prototype,"firmData",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,A.A)(r.prototype,"permissionService",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,A.A)(r.prototype,"portalAccess",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,A.A)(r.prototype,"router",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,A.A)(r.prototype,"session",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,A.A)(r.prototype,"store",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,A.A)(r.prototype,"theme",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,A.A)(r.prototype,"pageTitleManager",[R.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,A.A)(r.prototype,"error",[S.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),(0,A.A)(r.prototype,"exitSettings",[S.action],Object.getOwnPropertyDescriptor(r.prototype,"exitSettings"),r.prototype),r);i.d(t,["default",0,N])},458159(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(503454),p=i(804204),h=i(943910),m=i(661962),g=i(824821);const f=(r=class extends d.default{constructor(...e){super(...e),(0,l.A)(this,"router",o,this),(0,l.A)(this,"contentLibraryData",a,this),(0,l.A)(this,"artifactTagData",n,this),(0,l.A)(this,"pageTitleManager",s,this),(0,u.A)(this,"accessControllerName","app.addepar-library")}activate(e){super.activate(e),this.pageTitleManager.setTitle("Addepar Library")}async model(){let e=await this.contentLibraryData.resourceTypesModelPromiseForClient(m.CONTENT_LIBRARY_CLIENT_ID);return this.sortResourceTypesByAscendingOrder(e.slice())}_redirectToDefaultResource(e,t){if(!e||0===e.length)return;let{resource_type_id:i}=t.to?.parent?.params??{},r=!i,o=i&&!this.checkIfResourceTypeExists(i,e);if(r||o){let t=e[0];t&&this.router.transitionTo(g.CONTENT_LIBRARY_RESOURCE_TYPE_ROUTE,t.id)}}afterModel(e,t){this._redirectToDefaultResource(e,t)}willTransition(e){let t=this.controller.model;t.length&&"app.addeparLibrary.index"===e.to?.name&&this._redirectToDefaultResource(t,e)}setupController(e,t,i){super.setupController(e,t,i),this.artifactTagData.fetchEditableList(
1).then(t=>{e.tags=t}).catch(()=>{e.tags=[]});let r=this.routeFor("app");r&&(!this.router.currentURL||this.router.currentURL.startsWith("/app/addepar-library")||this.router.currentURL.startsWith("/app/personal-settings")?r.setExitSettingsRedirect(document.referrer):r.setExitSettingsRedirect(this.router.currentURL))}sortResourceTypesByAscendingOrder(e){return e.sort((e,t)=>e.order-t.order)}checkIfResourceTypeExists(e,t){return t.some(t=>t.id===e)}},o=(0,c.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"contentLibraryData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"artifactTagData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"pageTitleManager",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.A)(r.prototype,"willTransition",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);i.d(t,["default",0,f])},931447(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(503454),u=i(804204),c=i(661962);const d=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"contentLibraryData",o,this),(0,n.A)(this,"accessControllerName","app.addepar-library.resource-type")}async model(e){let t=await this.contentLibraryData.contentForType(e.resource_type_id,!0,!1,c.CONTENT_LIBRARY_CLIENT_ID);return this.sortResources(t)}resetController(e){e.searchTerm=""}sortResources(e){return e.sort(function(e,t){let i=e.displayName??"",r=t.displayName??"",o=i.localeCompare(r);if(0!==o)return o;let a=e.description??"",n=t.description??"";return a.localeCompare(n)})}},o=(0,s.A)(r.prototype,"contentLibraryData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},483395(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(503454),c=i(804204),d=i(824821);const p=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"router",a,this),(0,s.A)(this,"accessControllerName","app.addepar-library.resource-type.resource-preview")}model(e){return this.store.peekAll("acl-content").find(t=>t.resourceId===e.content_id)}afterModel(e){e||this.router.transitionTo(d.CONTENT_LIBRARY_RESOURCE_TYPE_ROUTE)}setupController(e,t,i){super.setupController(e,t,i),e.showModal=!0,e.showAttributeMapper=!1}},o=(0,l.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},967550(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"pageTitleManager",o,this)}afterModel(){this.pageTitleManager.setTitle("Alternatives")}},o=(0,n.A)(r.prototype,"pageTitleManager",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},458345(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"billingFeatureVisibility",o,this),(0,n.A)(this,"pageTitleManager",a,this)}afterModel(){this.pageTitleManager.setTitle("Billing")}model(){return this.billingFeatureVisibility.canDownloadCustodialExports()}},o=(0,s.A)(r.prototype,"billingFeatureVisibility",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"pageTitleManager",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},115775(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(558779),p=i.n(d),h=i(804204);let m=(r=(0,i(640626).readOnly)("permissionService.hasFullBillingModule"),o=class extends(p()){constructor(...e){super(...e),(0,u.A)(this,"router",a,this),(0,u.A)(this,"permissionService",n,this),(0,u.A)(this,"store",s,this),(0,u.A)(this,"hasFullBillingModule",l,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}model(){return this.store.findRecord("billing/billing_settings",0)}},a=(0,c.A)(o.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(o.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},580092(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(e){let t=e.targetName;("app.billing.bills"===t||"app.billing.bills.index"===t)&&this.router.transitionTo("app.billing.bills.new")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},496635(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(804204),d=i(558779),p=i.n(d),h=i(701627),m=i(109504);let g=(r=class extends(p()){constructor(...e){super(...e),(0,l.A)(this,"billing",o,this),(0,l.A)(this,"featureFlags",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"store",s,this)}beforeModel(){this.featureFlags.flags.boolean.billing_min_fee_proration_correction_frontend||this.router.transitionTo("/")}model(e){let t=this.store.findRecord("billing/fee-detail",e.fee_id_in_bill,{}),i=t.then(e=>this.store.findRecord("billing/bill",e.billId,{})),r=Promise.all([t,i]).then(([e,t])=>{let i=e.feeRuleId===m.FEE_ADDITIONAL_ADJUSTMENT_RULE_IDS.MIN_FEE?m.FEE_ADDITIONAL_ADJUSTMENT_RULE_IDS.PRORATION:m.FEE_ADDITIONAL_ADJUSTMENT_RULE_IDS.MIN_FEE,r=t.feeBreakdown.find(e=>e.fee_rule_id===i);return this.store.findRecord("billing/fee-detail",r.fee_id,{})}),o=i.then(e=>this.store.findRecord("billing/billing-group",e.billingGroupRefId,{reload:!0,include:"thin_fee_schedules"}));return(0,h.hash)({bill:i,feeDetails:t,feeCounterpartDetails:r,portfolio:o,billingSettings:this.billing.getBillingSettings()})}},o=(0,u.A)(r.prototype,"billing",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},691465(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(701627);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"billing",o,this),(0,n.A)(this,"store",a,this)}model(e){let t=this.store.findRecord("billing/fee-detail",e.fee_id_in_bill,{}),i=t.then(e=>{let t=e.billId;return this.store.findRecord("billing/bill",t,{})});return(0,d.hash)({feeDetails:t,bill:i,portfolio:i.then(e=>this.store.findRecord("billing/billing-group",e.billingGroupRefId,{reload:!0,include:"thin_fee_schedules"})),billingSettings:this.billing.getBillingSettings()})}setupController(e,t){super.setupController(e,t),"FEE_RULE"===t.feeDetails.feeInternalClass&&e.setup(t.feeDetails.id)}},o=(0,s.A)(r.prototype,"billing",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},180477(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(701627);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"billing",o,this),(0,n.A)(this,"store",a,this)}model(){let e=this.modelFor("app.billing.bills.bill"),t=this.store.findRecord("billing/bill",e.id,{reload:!0,include:"billing_groups"}),i=t.then(e=>this.store.findRecord("billing/billing-group",e.billingGroupRefId,{reload:!0,include:"thin_fee_schedules"}));return(0,d.hash)({bill:t,portfolio:i,fees:t.then(e=>e.feeBreakdown.filter(e=>"FEE_RULE"===e.fee_internal_class).map(e=>e.fee_id).map(e=>this.store.findRecord("billing/fee-detail",e))),billingSettings:this.billing.getBillingSettings()})}setupController(e,t){super.setupController(e,t),e.payoutBreakdown=null,this.billing.getPayoutBreakdown(t.bill.id).then(t=>{e.payoutBreakdown=t})}},o=(0,s.A)(r.prototype,"billing",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},776873(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(496314),h=i(701627);let m=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"store",o,this),(0,s.A)(this,"billing",a,this),(0,s.A)(this,"factorTemplateData",n,this)}model(){let e=this.store.findRecord("billing/billing-settings",0),t=e.then(e=>{if(!(0,p.isNone)(e.indexingFactors)&&e.indexingFactors.length>0){let t=e.indexingFactors.map(e=>e.templateId);return this.factorTemplateData.ensureRecords(t)}});return(0,h.hash)({autoReconTimestamp:this.billing.getAutoReconTimestamp(),billingSettings:e,ensureFactorTemplateRecords:t})}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"billing",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"factorTemplateData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},311571(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(776873);let c=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"featureFlags",a,this)}beforeModel(){this.featureFlags.flags.boolean.billing_fee_recon||this.router.transitionTo("app.billing.bills.submitted")}},o=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"featureFlags",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},277249(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(776873);let c=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"featureFlags",a,this)}beforeModel(){this.featureFlags.flags.boolean.billing_fee_recon||this.router.transitionTo("app.billing.bills.submitted")}},o=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"featureFlags",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},819150(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(701627);let h=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"router",o,this),(0,s.A)(this,"featureFlags",a,this),(0,s.A)(this,"billing",n,this)}beforeModel(){this.featureFlags.flags.boolean.billing_fee_recon&&this.router.transitionTo("app.billing.bills.outstanding")}model(){return(0,p.hash)({billingSettings:this.billing.getBillingSettings()})}},o=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"billing",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},823576(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(701627);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"billing",o,this),(0,n.A)(this,"factorTemplateData",a,this)}model(){let e=this.billing.getBillingSettings(),t=e.then(e=>{if(e.indexingFactors?.length>0){let t=e.indexingFactors.map(({templateId:e})=>e);return this.factorTemplateData.ensureRecords(t)}});return(0,d.hash)({autoReconTimestamp:this.billing.getAutoReconTimestamp(),billingSettings:e,ensureFactorTemplateRecords:t})}},o=(0,s.A)(r.prototype,"billing",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"factorTemplateData",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},438521(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(558779),p=i.n(d),h=i(804204);let m=(r=(0,i(640626).readOnly)("permissionService.hasFullBillingModule"),o=class extends(p()){constructor(...e){super(...e),(0,u.A)(this,"billing",a,this),(0,u.A)(this,"permissionService",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"hasFullBillingModule",l,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}model(){return this.billing.getInitialFeeSchedulesPaginated()}},a=(0,c.A)(o.prototype,"billing",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(o.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},482256(e,t,i){i.r(t),i.d(t,{default:()=>_});var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(558779),g=i.n(m),f=i(886783),y=i(804204),b=i(640626),v=i(925119),w=i(701627);let _=(r=(0,b.readOnly)("permissionService.hasFullBillingModule"),o=class extends(g()){constructor(...e){super(...e),(0,d.A)(this,"store",a,this),(0,d.A)(this,"permissionService",n,this),(0,d.A)(this,"router",s,this),(0,d.A)(this,"billing",l,this),(0,d.A)(this,"billingDuplicatePrefill",u,this),(0,p.A)(this,"queryParams",{duplicateFeeScheduleId:{refreshModel:!0}}),(0,d.A)(this,"hasFullBillingModule",c,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}resetController(e){e.isSaving=!1}model(e){let t=this.billing.getBillingSettings(),{duplicateFeeScheduleId:i}=e;if(i){let e=this.billingDuplicatePrefill.consume("feeSchedule",i),r=this.store.peekRecord("billing/fee-schedule",i);r.set("feeIds",r.get("thinFees").map(e=>e.get("id"))),r.set("orderedFees",r.get("thinFees").toArray());let o={name:r.name,description:r.description,currency:r.currency,minimumFee:r.minimumFee,maximumFee:r.maximumFee,billingInterval:r.billingInterval,billingTiming:r.billingTiming,startMonth:r.
1startMonth,distributionRoundingUnit:r.distributionRoundingUnit,distributionRoundingMode:r.distributionRoundingMode,minFeeProrationCorrectionMode:r.minFeeProrationCorrectionMode,minMaxFeeProrationEnabled:r.minMaxFeeProrationEnabled,feeIds:r.feeIds,accessConfig:r.accessConfig};return o=(0,f.A)(o),o.thinFees=r.get("thinFees").toArray(),o.orderedFees=r.get("orderedFees").toArray(),Object.assign(o,e),o.name=(0,v.generateNewName)(o.name),(0,w.hash)({feeSchedule:o,billingSettings:t})}return(0,w.hash)({billingSettings:t})}},a=(0,h.A)(o.prototype,"store",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(o.prototype,"permissionService",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(o.prototype,"router",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(o.prototype,"billing",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(o.prototype,"billingDuplicatePrefill",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},689370(e,t,i){i.r(t),i.d(t,{default:()=>y});var r,o,a,n,s,l,u,c=i(748096),d=i(228888),p=i(558779),h=i.n(p),m=i(804204),g=i(640626),f=i(701627);let y=(r=(0,g.readOnly)("permissionService.hasFullBillingModule"),o=class extends(h()){constructor(...e){super(...e),(0,c.A)(this,"permissionService",a,this),(0,c.A)(this,"router",n,this),(0,c.A)(this,"store",s,this),(0,c.A)(this,"billing",l,this),(0,c.A)(this,"hasFullBillingModule",u,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}model(e){let t=this.store.findRecord("billing/fee-schedule",e.fee_schedule_id,{include:"billing-group",reload:!0}).then(t=>(t.set("feeIds",t.get("thinFees").map(e=>e.get("id"))),t.set("orderedFees",t.get("thinFees").toArray()),t.set("portfolioCount",this.modelFor("app.billing.fee-schedules").data.findBy("id",e.fee_schedule_id).portfolioCount),t));return(0,f.hash)({feeSchedule:t,billingSettings:this.billing.getBillingSettings()})}},a=(0,d.A)(o.prototype,"permissionService",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(o.prototype,"router",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(o.prototype,"store",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(o.prototype,"billing",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,d.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},149017(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(558779),p=i.n(d),h=i(804204);let m=(r=(0,i(640626).readOnly)("permissionService.hasFullBillingModule"),o=class extends(p()){constructor(...e){super(...e),(0,u.A)(this,"billing",a,this),(0,u.A)(this,"permissionService",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"hasFullBillingModule",l,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}model(){return this.billing.getInitialThinFeesPaginated()}},a=(0,c.A)(o.prototype,"billing",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(o.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},150576(e,t,i){i.r(t),i.d(t,{default:()=>b});var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(558779),m=i.n(h),g=i(804204),f=i(886783),y=i(925119);let b=(r=(0,i(640626).readOnly)("permissionService.hasFullBillingModule"),o=class extends(m()){constructor(...e){super(...e),(0,c.A)(this,"billingDuplicatePrefill",a,this),(0,c.A)(this,"permissionService",n,this),(0,c.A)(this,"router",s,this),(0,c.A)(this,"store",l,this),(0,d.A)(this,"queryParams",{duplicateFeeId:{refreshModel:!0}}),(0,c.A)(this,"hasFullBillingModule",u,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}resetController(e){e.isSaving=!1}model(e){if(!e.duplicateFeeId)return null;let t=this.billingDuplicatePrefill.consume("fee",e.duplicateFeeId);return this.store.findRecord("billing/fee",e.duplicateFeeId).then(e=>
1{let i={name:e.name,description:e.description,accrualType:e.accrualType,feeType:e.feeType,feeStructure:e.feeStructure,scaling:e.scaling,scalingForAverageAssetValuation:e.scalingForAverageAssetValuation,feeDistributionMethod:e.feeDistributionMethod,valuationAdjustmentType:e.valuationAdjustmentType,useBillingGroupAUMForRate:e.useBillingGroupAUMForRate,assetValuationMethod:e.assetValuationMethod,marginMethod:e.marginMethod,advanceAdjustment:e.advanceAdjustment,advanceAdjustmentAccountHandlingMethod:e.advanceAdjustmentAccountHandlingMethod,rateType:e.rateType,flatFeeAmount:e.flatFeeAmount,flatFeeProrationMethod:e.flatFeeProrationMethod,minimumThresholdForFlowProration:e.minimumThresholdForFlowProration,minimumThresholdForNewAndClosedAccountProration:e.minimumThresholdForNewAndClosedAccountProration,minimumPercentageForFlowProration:e.minimumPercentageForFlowProration,minimumPercentageForNewAndClosedAccountProration:e.minimumPercentageForNewAndClosedAccountProration,advanceAdjustmentRateType:e.advanceAdjustmentRateType,newAndClosedProrationRateType:e.newAndClosedProrationRateType,flowProrationRateType:e.flowProrationRateType,flowProrationMethod:e.flowProrationMethod,newAndClosedAccountProrationMethod:e.newAndClosedAccountProrationMethod,flowProrationDataSource:e.flowProrationDataSource,newAndClosedProrationDataSource:e.newAndClosedProrationDataSource,rateTiers:e.rateTiers,filters:e.filters,marginFilter:e.marginFilter,rateTierAssetFilterConfiguration:e.rateTierAssetFilterConfiguration,rateTierAssetFilters:e.rateTierAssetFilters,twrFactor:e.twrFactor,totalReturnFactor:e.totalReturnFactor,benchmarkReturnFactor:e.benchmarkReturnFactor,accessConfig:e.accessConfig},r=(0,f.A)(i);return Object.assign(r,t),r.name=(0,y.generateNewName)(r.name),r})}},a=(0,p.A)(o.prototype,"billingDuplicatePrefill",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,p.A)(o.prototype,"permissionService",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(o.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(o.prototype,"store",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},132922(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(558779),p=i.n(d),h=i(804204);let m=(r=(0,i(640626).readOnly)("permissionService.hasFullBillingModule"),o=class extends(p()){constructor(...e){super(...e),(0,u.A)(this,"store",a,this),(0,u.A)(this,"permissionService",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"hasFullBillingModule",l,this)}beforeModel(){this.hasFullBillingModule||this.router.transitionTo("app.billing")}model(e){return this.store.findRecord("billing/fee",e.fee_id,{include:"fee-schedules",reload:!0})}},a=(0,c.A)(o.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(o.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(o.prototype,"hasFullBillingModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},765410(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=(0,d.inject)("global-navigation"),o=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"globalNavService",a,this),(0,s.A)(this,"router",n,this)}redirect(){this.globalNavService.showBilling?this.router.transitionTo("app.billing.portfolios"):this.router.transitionTo("/")}},a=(0,l.A)(o.prototype,"globalNavService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(o.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},186279(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.featureFlags.flags.boolean.billing_payout||this.router.transitionTo("app.billing")}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},412954(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"billing",o,this),(0,n.A)(this,"queryParams",{duplicateId:{refreshModel:!0}})}async model(e){return e.duplicateId?await this.billing.getPayoutRule(e.duplicateId):null}resetController(e,t){t&&(e.duplicateId=null)}},o=(0,s.A)(r.prototype,"billing",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},335654(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"billing",o,this)}async model(e){return await this.billing.getPayoutRule(e.payout_rule_id)}},o=(0,n.A)(r.prototype,"billing",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},435312(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){this.router.transitionTo("app.billing.payouts.recipients")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},709995(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"queryParams",{recipientId:{refreshModel:!1}})}setupController(e,t,i){super.setupController(e,t,i);let r=this.paramsFor(this.routeName);if(r.recipientId){let t=r.recipientId;e.pendingPreselectedRecipientId=t,e.selectedRecipientIds=[t],e.loadRecipientOptions().then(()=>{e.pendingPreselectedRecipientId===t&&(e.pendingPreselectedRecipientId=null,e.selectedRecipientIds=[t])})}e.loadPayouts()}resetController(e,t){t&&e.resetTable()}}},430974(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){setupController(e,t,i){super.setupController(e,t,i),e.loadRecipients()}resetController(e,t){t&&e.resetTable()}}},376841(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(e){let t=e.targetName;("app.billing.portfolios"===t||"app.billing.portfolios.index"===t)&&this.router.transitionTo("app.billing.portfolios.active")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},221046(e,t,i){i.r(t),i.d(t,{default:()=>b});var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(558779),h=i.n(p),m=i(989272),g=i(701627),f=i(804204),y=i(496314);let b=(r=class extends(h()){constructor(...e){super(...e),(0,u.A)(this,"billing",o,this),(0,u.A)(this,"featureFlags",a,this),(0,u.A)(this,"router",n,this),(0,u.A)(this,"store",s,this),(0,u.A)(this,"factorTemplateData",l,this),(0,c.A)(this,"queryParams",{scheduleIds:{refreshModel:!1},payoutRuleIds:{refreshModel:!1}})}setupController(e,t,i){super.setupController(e,t,i),t.payoutOptions&&(e.payoutFilterOptions=t.payoutOptions);let r=this.paramsFor(this.routeName);if(r.payoutRuleIds){let i=r.payoutRuleIds;e.selectedPayoutRuleIds=[i],t.filterParams={...t.filterParams,payoutRuleIds:[i]},(0,m.schedule)("afterRender",()=>{this.router.replaceWith("app.billing.portfolios.active",{queryParams:{payoutRuleIds:null}})})}e.filterParams=t.filterParams??{}}resetController(e,t){t&&(e.set("scheduleIds",null),e.set("payoutRuleIds",null),e.selectedPayoutRuleIds=[],e.payoutFilterOptions=[])}model(e){let t={};e.scheduleIds&&(t.scheduleIds=e.scheduleIds.split(","));let i=this.store.findRecord("billing/billing-settings",0),r=i.then(e=>{if(!(0,y.isNone)(e.indexingFactors)&&e.indexingFactors.length>0){let t=e.indexingFactors.map(e=>e.templateId);return this.factorTemplateData.ensureRecords(t)}});return(0,g.hash)({searchQuery:"",feeSchedules:this.store.findAll("billing/thin-fee-schedule"),filterParams:t,billingSettings:i,portfolioIndexStatus:this.featureFlags.flags.boolean.billing_portfolio_indexing?this.store.findRecord("billing/portfolio-index-status",0,{reload:!0}):null,ensureFactorTemplateRecords:r,payoutOptions:this.featureFlags.flags.boolean.billing_filter_consolidation&&this.featureFlags.flags.boolean.billing_payout?this.billing.getPayoutRulesPaginated({limit:1e3}).then(e=>e.toArray().map(e=>({value:e.id,label:e.name}))):null})}deactivate(){this.set("controller.isCreateBillingGroupFlyoutVisible",!1)}},o=(0,d.A)(r.prototype,"billing",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.A)(r.prototype,"featureFlags",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(r.prototype,"router",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(r.prototype,"store",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(r.prototype,"factorTemplateData",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},323622(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){}},29274(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(943910),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}model(e){return this.store.findRecord("billing/billing-group",e.id,{include:"thin_fee_schedules"})}afterModel(e,t){"app.billing.portfolios.portfolio.index"===t.targetName&&this.router.transitionTo("app.billing.portfolios.portfolio.bills",e.id)}refreshData(){this.refresh()}},o=(0,s.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"refreshData",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"refreshData"),r.prototype),r)},61527(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(701627);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"billing",o,this),(0,n.A)(this,"store",a,this)}model(){let e=this.paramsFor("app.billing.portfolios.portfolio")?.id,t=this.store.findRecord("billing/billing-group",e,{include:"thin_fee_schedules"});return(0,d.hash)({billingGroup:t,billingSettings:this.billing.getBillingSettings()})}},o=(0,s.A)(r.prototype,"billing",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},105859(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(701627),p=i(804204),h=i(496314),m=i(296773);let g=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"billing",o,this),(0,s.A)(this,"store",a,this),(0,s.A)(this,"router",n,this)}beforeModel(){let e=this.modelFor("app.billing.portfolios.portfolio"),t=e.belongsTo("thinFeeSchedule").id();!e.isArchived&&(0,h.isNone)(this.store.peekRecord("billing/thin-fee-schedule",t))&&this.router.transitionTo("app.billing.portfolios.portfolio.bills",e.id)}async model(){let e=this.modelFor("app.billing.portfolios.portfolio");await e.reload();let t=e.belongsTo("thinFeeSchedule").id(),i=(0,m.fetchPayoutRule)(this.billing,e);return(0,d.hash)({billingGroup:e,billingSettings:this.store.findRecord("billing/billing-settings",0),feeSchedule:this.store.findRecord("billing/fee-schedule",t,{reload:!0}),payoutRule:i})}fetchPayoutRule(e){return null!==e.payoutRuleId&&void 0!==e.payoutRuleId?this.billing.getPayoutRule(e.payoutRuleId).catch(()=>null):Promise.resolve(null)}},o=(0,l.A)(r.prototype,"billing",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},937530(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){model(){return this.modelFor("app.billing.portfolios.portfolio")}}},493720(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(804204),d=i(558779),p=i.n(d);let h=(r=class extends(p()){constructor(...e){super(...e),(0,l.A)(this,"businessIntelligence",o,this),(0,l.A)(this,"globalNavigation",a,this),(0,l.A)(this,"pageTitleManager",n,this),(0,l.A)(this,"router",s,this)}beforeModel(){this.globalNavigation.showBusinessIntelligence||this.router.transitionTo("index")}model(){return this.businessIntelligence.fetchDashboards()}activate(){this.pageTitleManager.setTitle("Business Intelligence")}},o=(0,u.A)(r.prototype,"businessIntelligence",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"globalNavigation",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"pageTitleManager",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},750791(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204),c=i(701627);let d=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"businessIntelligence",o,this)}model(e){let t=this.modelFor("app.business-intelligence").looker_dashboards,i=t.findBy("looker_dashboard_id",e.dashboard_id),r=this.businessIntelligence.generateLookerEmbedURL(e.dashboard_id);return(0,c.hash)({dashboards:t,activeDashboard:i,lookerEmbedURL:r})}},o=(0,n.A)(r.prototype,"businessIntelligence",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},456143(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){let e=this.modelFor("app.business-intelligence").looker_dashboards;this.router.replaceWith("app.business-intelligence.dashboard",e[0].looker_dashboard_id)}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},555367(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"permissionService",a,this),(0,s.A)(this,"router",n,this)}beforeModel(){let e=Boolean(this.featureFlags.flags.boolean.client_insights_hub),t=this.permissionService.hasClientInsightsHub;e&&t||this.router.transitionTo("app.tools")}},o=(0,l.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"permissionService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},641877(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}async model(e){return await this.store.findRecord("contact",e.client_id)}},o=(0,n.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},630241(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(804204),u=i(733559);let c=(r=class extends u.default{constructor(...e){super(...e),(0,a.A)(this,"dashboardViewsData",o,this),(0,n.A)(this,"toolDisplayName","Dashboards"),(0,n.A)(this,"accessControllerName","app.dashboards")}model(){return this.dashboardViewsData.modelPromise}},o=(0,s.A)(r.prototype,"dashboardViewsData",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},589350(e,t,i){i.r(t);var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(804204),h=i(480046),m=i(640626),g=i(913363);const f="app.dashboards",y=(r=(0,p.inject)("widget/configuration"),o=(0,m.readOnly)("dashboardViewsData"),a=class extends g.default{constructor(...e){super(...e),(0,u.A)(this,"dashboardViewsData",n,this),(0,u.A)(this,"configurationService",s,this),(0,u.A)(this,"viewDataService",l,this),(0,c.A)(this,"indexRoute",f),(0,c.A)(this,"viewResourceType",h.default.resourceType),(0,c.A)(this,"canAccessRoute",!0)}additionalLoadingPromises({view:e}){return{interval:this.dateTime.getIntervalForTimePeriod(e.defaultTimePeriod),schedulesArray:this.dashboardViewScheduleData.loadSchedulesForViews([e]),externalDataSources:this.configurationService.featureFlags.flags.boolean.advisor_dashboards_external_data_sources?this.configurationService.loadExternalDataSources():this.configurationService.resetExternalDataSources()}}},n=(0,d.A)(a.prototype,"dashboardViewsData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(a.prototype,"configurationService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(a.prototype,"viewDataService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a);i.d(t,["DASHBOARD_INDEX_ROUTE",0,f,"default",0,y])},155898(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"dashboardViewCategoryData",o,this)}beforeModel(){return this.dashboardViewCategoryData.modelPromise}},o=(0,n.A)(r.prototype,"dashboardViewCategoryData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},306590(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(558779),c=i.n(u);let d=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.featureFlags.flags.boolean.tx_wizard_fund_transfer||this.router.transitionTo("/")}model(e){return e.id}},o=(0,s.A)(r.prototype,"featureFlags",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},138118(e,t,i){i.r(t),i.d(t,{default:()=>f});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(204011),h=i(549090),m=i(127950);const{APP:{ENABLE_FEDERATED_MODULES:g}}=p.default;let f=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"pageTitleManager",n,this)}setupController(e,t,i){super.setupController(e,t,i),e.pageTitle=this.pageTitleManager.generateTitlePrefix(h.FILES)}async beforeModel(){Boolean(this.featureFlags.flags.boolean.file_management_system__microfrontend)?g&&await i.e(4111).then(i.t.bind(i,364111,23)).catch(e=>(0,m.Cp)(e)):this.router.transitionTo("app.files")}},o=(0,l.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},113553(e,t,i){i.r(t);var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(804204),h=i(395562),m=i(683681),g=i(682178),f=i(943910);const y=(r=(0,m._W)(function*(e){let t=yield this.store.query("contact",{role:g.default.CLIENT});e.set("allContacts",t)}),o=class extends h.default{constructor(...e){super(...e),(0,c.A)(this,"controllerName","fileVault"),(0,u.A)(this,"fileLabelData",a,this),(0,u.A)(this,"displaySetting",n,this),(0,u.A)(this,"store",s,this),(0,u.A)(this,"loadContactsTask",l,this)}get fileVaultController(){return this.controllerFor("fileVault")}model(){return[]}afterModel(){return this.fileLabelData.modelPromise}setupController(e,t){super.setupController(e,t),this.controllerFor("labels").set("model",this.store.peekAll("label")),this.displaySetting.model.implicitAffiliations&&this.loadContactsTask.perform(e),this.setupControllerForFileVaultParentController(e)}},a=(0,d.A)(o.prototype,"fileLabelData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(o.prototype,"displaySetting",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(o.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.A)(o.prototype,"fileVaultController",[f.computed],Object.getOwnPropertyDescriptor(o.prototype,"fileVaultController"),o.prototype),l=(0,d.A)(o.prototype,"loadContactsTask",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o);i.d(t,["default",0,y])},787764(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(395562),c=i(804204);let d=(r=class extends u.default{constructor(...e){super(...e),(0,s.A)(this,"controllerName","fileVault"),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}model(){return[]}setupController(e){this.featureFlags.flags.boolean.files_client_uploads?(e.set("lastSelectedTab","clientUploads"),this.controllerFor("perspective").set("model",this.controllerFor("firm").get("model")),this.loadData()):this.router.transitionTo("app.files.index")}},o=(0,l.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},166971(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this
1,"custodianRegistry",o,this),(0,n.A)(this,"router",a,this),(0,s.A)(this,"queryParams",{financialServiceName:{refreshModel:!1,replace:!0}})}activate(){super.activate(),this.controllerFor("file-vault").set("lastSelectedTab","custodianDocuments")}setupController(e,t,i){super.setupController(e,t,i),this.custodianRegistry.isEnabled?(e.set("showAuthModal",!1),e.set("modalComponent",null),e.set("selectedAccountData",null),e.set("ownerType",null),e.set("ownerId",null),e.processAuthCallback()):this.router.transitionTo("app.files.index")}},o=(0,l.A)(r.prototype,"custodianRegistry",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},888772(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(558779),p=i.n(d),h=i(804204);let m=(r=class extends(p()){constructor(...e){super(...e),(0,l.A)(this,"custodianRegistry",o,this),(0,l.A)(this,"router",a,this),(0,l.A)(this,"store",n,this),(0,l.A)(this,"custodianAuthorization",s,this),(0,u.A)(this,"queryParams",{selectedAccountId:{refreshModel:!1,replace:!0},custodianName:{refreshModel:!1,replace:!0}})}activate(){super.activate(),this.controllerFor("file-vault").set("lastSelectedTab","custodianDocuments")}async model(e){let t=await this.store.findRecord("entity",e.selectedAccountId);return{ownerType:e.owner_type,ownerId:e.owner_id,account:t}}async setupController(e,t){super.setupController(e,t),this.custodianRegistry.isEnabled?["group","entity"].includes(t.ownerType)?(e.selectedAccountId=t.account.id,e.processAuthCallback()):this.router.transitionTo("app.files.custodianDocuments",{queryParams:{offset:void 0,q:void 0,sort_column:void 0,sort_type:void 0,match_name_only:void 0}}):this.router.transitionTo("app.files.index")}},o=(0,c.A)(r.prototype,"custodianRegistry",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"custodianAuthorization",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},751050(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(804204),c=i(395562);const d=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"controllerName","fileVault"),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}model(){return[]}setupController(e,t){super.setupController(e,t),e.set("lastSelectedTab","index"),this.controllerFor("perspective").set("model",this.controllerFor("firm").get("model")),this.loadData()}},o=(0,l.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},104931(e,t,i){i.r(t),i.d(t,{default:()=>M});var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b,v,w,_,A,T=i(748096),C=i(401104),S=i(228888),R=i(640626),D=i(804204),O=i(468373),E=i(926498),F=i(600552),P=i(913363),x=i(658718),N=i(571970),z=i(416432),I=i(830819);let M=(r=(0,D.inject)("widget/configuration"),o=(0,D.inject)("widgets"),a=(0,R.readOnly)("homeDashboardViewsData"),n=(0,R.readOnly)("featureFlags.flags.boolean.test_drive"),s=(0,R.readOnly)("featureFlags.flags.boolean.advisor_dashboards_addison_widget"),l=(0,R.readOnly)("featureFlags.flags.boolean.addison_widget_in_home_default"),u=class extends P.default{constructor(...e){super(...e),(0,C.A)(this,"accessControllerName","app.home"),(0,T.A)(this,"homeDashboardViewsData",c,this),(0,T.A)(this,"firmData",d,this),(0,T.A)(this,"session",p,this),(0,T.A)(this,"permissionService",h,this),(0,T.A)(this,"pageTitleManager",m,this),(0,T.A)(this,"featureFlags",g,this),(0,T.A)(this,"configurationService",f,this),(0,T.A)(this,"teamData",y,this),(0,T.A)(this,"widgetsService",b,this),(0,C.A)(this,"currentFirm",null),(0,T.A)(this,"viewDataService",v,this),(0,T.A)(this,"isTestDriveEnabled",w,this),(0,T.A)(this,"isAddisonWidgetEnabled",_,this),(0,T.A)(this,"isAddisonWidgetEnabledInHomeDefault",A,this),(0,C.A)(this,"viewResourceType",E.default.resourceType)}activate(...e){super.activate(...e),this.pageTitleManager.setTitle("Home")}get shouldShowAddisonInHomeDefault(){return this.isAddisonWidgetEnabled&&this.isAddisonWidgetEnabledInHomeDefault}defaultHomeItems(){let e=[];return this.shouldShowAddisonInHomeDefault&&e.push(this.widgetsService.createItemOfType(I.sX.ADDISON_COMPONENT,z.Y.SELF_MANAGED,{layout:{row:0,col:0,width:3,height:14}})),e.push(this.widgetsService.createItemOfType(I.qL.HOME_EDIT_BUTTON,"",{layout:{row:0,col:this.shouldShowAddisonInHomeDefault?3:0,width:this.shouldShowAddisonInHomeDefault?9:12,height:14}})),e}async model(){await this.teamData.modelPromise;let e=await this.homeDashboardViewsData.modelPromise,t=this.homeDashboardViewsData.lastViewedId??(this.isTestDriveEnabled||null!==this.homeDashboardViewsData.lastViewedShareLevel?null:this.contactPreferences.pinnedHomeDashboardId);if(this.isTestDriveEnabled){let e=await this.permissionService.persona;e&&(t=e.get("homeDashboardId"))}if(t){let e=await this.store.findRecord(E.default.resourceType,t).catch(e=>{this.contactPreferences.pinnedHomeDashboardId===t&&e.error?.error_code===O.AMP_ERROR_CODES.ANALYSIS_VIEW.INVALID&&(e.suppressAlert(),this.contactPreferences.unpinHomeDashboard())});if(e)return e}if(!this.isTestDriveEnabled&&this.homeDashboardViewsData.lastViewedShareLevel)return this.createEmptyHomeDashboardView(this.homeDashboardViewsData.lastViewedShareLevel,this.homeDashboardViewsData.lastViewedTeamId);{e=e.slice().sort((e,t)=>
1{if(e.shareLevel===N.VIEW_SHARE_LEVEL.FIRM&&t.shareLevel===N.VIEW_SHARE_LEVEL.FIRM)return 0;if(e.shareLevel===N.VIEW_SHARE_LEVEL.TEAM&&t.shareLevel===N.VIEW_SHARE_LEVEL.TEAM){let i=e.get("team.name")||"",r=t.get("team.name")||"";return i.localeCompare(r)}return e.shareLevel===N.VIEW_SHARE_LEVEL.FIRM?-1:1});let t=e[0];return t||this.isTestDriveEnabled||(t=this.createEmptyHomeDashboardView(N.VIEW_SHARE_LEVEL.FIRM)),t}}afterModel(e,t){let i=[];return e&&i.push(super.afterModel(e,t)),i.push(this.firmData.modelPromise.then(()=>{this.currentFirm=this.store.peekRecord("firm",this.session.firmId)})),i.push(this.teamData.modelPromise),Promise.all(i)}setupController(e,t){t?super.setupController(...arguments):e.setProperties({isRouteActive:!0,selectedView:null}),t?.isNew&&e.set("isEditing",void 0);let{id:i,perspectiveType:r,perspectiveSubType:o}=this.currentFirm,a=(0,x.constructPerspectiveTypeParam)(r,o);e.setProperties({createEmptyHomeDashboardView:this.createEmptyHomeDashboardView.bind(this),isTestDriveEnabled:this.isTestDriveEnabled,perspectiveId:i,perspectiveTypeParam:a,defaultPortfolio:(0,x.constructPortfolioParam)(a,i),userPreferences:this.controllerFor("userPreferences").model})}additionalLoadingPromises({view:e}){return{interval:this.dateTime.getIntervalForTimePeriod(e.defaultTimePeriod),externalDataSources:this.featureFlags.flags.boolean.advisor_dashboards_external_data_sources?this.configurationService.loadExternalDataSources():this.configurationService.resetExternalDataSources()}}createEmptyHomeDashboardView(e,t=null,i=null){let r=null;e===N.VIEW_SHARE_LEVEL.TEAM&&t&&(r=this.store.peekRecord("team",t)),i||(i=e===N.VIEW_SHARE_LEVEL.FIRM?"Firm Home":`Team ${r?.name||r.id} Home`);let o=E.default.createDefault(this.store,{shareLevel:e,team:r,displayName:i}),a=this.homeDashboardViewsData.firmHomeDashboard;if(e===N.VIEW_SHARE_LEVEL.TEAM&&a&&!a.isNew){let e=a.items.toArray();for(let t of e)o.items.pushObject(F.default.clone(t,this.store))}else o.items.pushObjects(this.defaultHomeItems());return o}},c=(0,S.A)(u.prototype,"homeDashboardViewsData",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,S.A)(u.prototype,"firmData",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,S.A)(u.prototype,"session",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,S.A)(u.prototype,"permissionService",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,S.A)(u.prototype,"pageTitleManager",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,S.A)(u.prototype,"featureFlags",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,S.A)(u.prototype,"configurationService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,S.A)(u.prototype,"teamData",[D.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,S.A)(u.prototype,"widgetsService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,S.A)(u.prototype,"viewDataService",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,S.A)(u.prototype,"isTestDriveEnabled",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,S.A)(u.prototype,"isAddisonWidgetEnabled",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,S.A)(u.prototype,"isAddisonWidgetEnabledInHomeDefault",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u)},542497(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(558779),c=i.n(u);let d=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"globalNavigation",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.globalNavigation.showImportTool||this.router.transitionTo("index")}},o=(0,s.A)(r.prototype,"globalNavigation",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},39503(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(304747);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.featureFlags.flags.boolean["enable-intelligent-statements-host-app"]?(0,d.getL
1ocationDelegate)().replace("/intelligent-statements"):this.featureFlags.flags.boolean["enable-intelligent-statements"]||this.router.transitionTo("app.import")}setupController(e){e.loadData.perform()}resetController(e){e.dismissUploadToast?.(),e.dismissUploadToast=null}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},582270(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(804204),l=i(558779),u=i.n(l);let c=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}model(){return this.store.findAll("user-import-history")}},o=(0,n.A)(r.prototype,"store",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},791994(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=(0,d.inject)("global-navigation"),o=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"globalNavService",a,this),(0,s.A)(this,"router",n,this)}redirect(){this.globalNavService.showImportTool?this.router.transitionTo("app.import.tool"):this.router.transitionTo("index")}},a=(0,l.A)(o.prototype,"globalNavService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(o.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},449910(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(558779),c=i.n(u);let d=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"globalNavigation",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.globalNavigation.showImportTool||this.router.transitionTo("app.import")}},o=(0,s.A)(r.prototype,"globalNavigation",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},660646(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b=i(748096),v=i(228888),w=i(558779),_=i.n(w),A=i(943910),T=i(804204),C=i(640626);const S=(r=(0,C.readOnly)("featureFlags.flags.boolean.advisor_dashboards"),o=(0,C.and)("contactPreferences.pinnedDashboardRouteOptions","dashboardsEnabled","permissionService.hasDashboards"),a=(0,C.and)("featureFlags.flags.boolean.test_drive","permissionService.isTestDriveUser"),n=(0,C.readOnly)("featureFlags.flags.boolean.home_dashboards"),s=(0,A.computed)("homeDashboardsEnabled","permissionService.canVisitHomePage","inTestDriveMode"),l=class extends(_()){constructor(...e){super(...e),(0,b.A)(this,"contactPreferences",u,this),(0,b.A)(this,"credential",c,this),(0,b.A)(this,"featureFlags",d,this),(0,b.A)(this,"permissionService",p,this),(0,b.A)(this,"router",h,this),(0,b.A)(this,"dashboardsEnabled",m,this),(0,b.A)(this,"shouldTransitionToPinnedDashboard",g,this),(0,b.A)(this,"inTestDriveMode",f,this),(0,b.A)(this,"homeDashboardsEnabled",y,this)}get shouldTransitionToHome(){return this.homeDashboardsEnabled&&(this.permissionService.canVisitHomePage||this.inTestDriveMode)}afterModel(){let{credential:e}=this;if(e.isClient)this.router.transitionTo("portal",e.contact);else if(this.shouldTransitionToPinnedDashboard){let{pinnedPortfolioViewId:e,options:t}=this.contactPreferences.pinnedDashboardRouteOptions;this.router.transitionTo("app.dashboards.dashboard",e,t)}else this.shouldTransitionToHome?this.router.transitionTo("app.home"):this.router.transitionTo("app.tools")}},u=(0,v.A)(l.prototype,"contactPreferences",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,v.A)(l.prototype,"credential",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,v.A)(l.prototype,"featureFlags",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,v.A)(l.prototype,"permissionService",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,v.A)(l.prototype,"router",[T.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,v.A)(l.prototype,"dashboardsEnabled",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,v.A)(l.prototype,"shouldTransitionToPinnedDashboard",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,v.A)(l.prototype,"inTestDriveMode",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,v.A)(l.prototype,"homeDashboardsEnabled",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,v.A)(l.prototype,"shouldTransitionToHome",[s],Object.getOwnPropertyDescriptor(l.prototype,"shouldTransitionToHome"),l.prototype),l);i.d(t,["default",0,S])},342044(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}model(){return this.store.findAll("integration")}},o=(0,n.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},392458(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(228888),l=i(701627),u=i.n(l),c=i(558779),d=i.n(c),p=i(804204);const h=(r=class extends(d()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}redirect(){this.router.transitionTo("app.integrations.integration.description")}model(e){return u().hash({integration:this.store.findRecord("integration",e.integration_id),userGrants:this.store.findAll("grant")})}},o=(0,s.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,h])},798833(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(640626),d=i(558779),p=i.n(d),h=i(804204);let m=(r=(0,c.readOnly)("permissionService.hasInvestmentIntelligenceModule"),o=class extends(p()){constructor(...e){super(...e),(0,l.A)(this,"permissionService",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"hasInvestmentIntelligenceModule",s,this)}beforeModel(){this.hasInvestmentIntelligenceModule||this.router.transitionTo("/")}redirect(e,t){let i=t.targetName;"app.investment-intelligence.data-management.index"===i?this.router.transitionTo("app.investment-intelligence.data-management.benchmarks"):"app.investment-intelligence.index"!==i&&"app.investment-intelligence.portfolio-diagnostic.index"!==i||this.router.transitionTo("app.investment-intelligence.portfolio-diagnostic.performance")}},a=(0,u.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(o.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(o.prototype,"hasInvestmentIntelligenceModule",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},702016(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"permissionService",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.permissionService.hasCustomBenchmarkBuilder||this.router.transitionTo("app.investment-intelligence.data-management.benchmarks")}},o=(0,s.A)(r.prototype,"permissionService",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},842052(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"permissionService",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"investmentIntelligenceMockService",n,this)}beforeModel(){this.permissionService.hasCustomBenchmarkBuilder||this.router.transitionTo("app.investment-intelligence.data-management.benchmarks")}model(e){let t=parseInt(e.benchmark_id,10);return isNaN(t)?(this.router.transitionTo("app.investment-intelligence.data-management.benchmarks"),null):{benchmarkId:t}}},o=(0,l.A)(r.prototype,"permissionService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"investmentIntelligenceMockService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},54181(e,t,i){i.r(t),i.d(t,{default:()=>p});var r=i(401104),o=i(555546),a=i(799558),n=i(416432),s=i(194580),l=i(374378),u=i(921742),c=i(886783);const d={id:"-1",display_name:"unknown",share_level:"personal",created_at:"2026-02-24T15:25:37Z",modified_at:"2026-02-24T15:25:37Z",filters:[],filter_set_ids:[],items:[{type:"widget",is_shown:!0,visualization:{identifier:-1,type:o.$Z.BETA_BAR_TYPE,query:{type:"portfolio_query",grouping_factors:[{template_id:"asset_class",display_names:{default:"Asset Class"},display_name_type:"default",is_time_series:!1,link_settings:[],column_filters:[]}],value_factors:[{template_id:"value",args:[{template_id:"time_point",value:{type:"current_time_point"}},{template_id:"currency",value:{value:"usd",display_name:"USD"}},{template_id:"accrued",value:{value:"all",display_name:"True"}},{template_id:"cutover_date",value:{date:null,is_present:!1,present:!1}},{template_id:"valuation_adjustment_type",value:{value:"none",display_name:"None"}},{template_id:"negative_value_handling",value:{value:"show_as_negative",display_name:"Use negative values"}}],display_names:{default:"Value (USD)",date:"Feb 24, 2026",trailing:"(USD)"},display_name_type:"default",is_time_series:!1,link_settings:[],column_filters:[]}],metric_factors:[],filters:[],hide_previous_holdings:!1,show_sleeves:!1,sleeve_setting:"hide_sleeves",billing_matching_setting:"path_matching",target_allocation_mode:"lowest_ownership",use_multibucketing:!1,group_by_weighted_values:!1,show_multi_value_remainder:!1,lookthrough:!1,collapse_tree:[],show_fees:!1,reverse_walk:!1,summary_data_default_preference:{value:"live_data",display_name:"Default to live data"},flatten_output:!1,debug_mode:!1,disable_factor_cache:!1,show_total_column:!0,expand_wrapper_entities:!1,tax_lot_use_settlement_date:!1,load_executed_trades:!1,include_in_validation_datasets:!1,reversewalk:!1,constituent_lookthrough:{type:"none",threshold:null},stream_results:!1,disable_total_row:!1,short_held_asset_display_preference:"inherit",estimated_returns_display_preference:"inherit",benchmark_proxy_display_preference:"inherit",benchmark_factors:[],hide_total_column_after_sortings:!1},lexicographical_sort:!1,filter_set_ids:[],fund_context:!1,xaxis_label_show:!0,yaxis_label_show:!0,xaxis_title_show:!1,yaxis_title_show:!1,id:"-1",data_source:n.Y.ADDEPAR_PORTFOLIO,is_template:!1,team_ids:[],value_factor_axis_assignments:[0],show_total:!1,sorting:"value",sort_ascending:!1,show_legend:!1,legend_position:"bottom",is_stacked:!1,is_horizontal:!1,is_donut:!1,is_binned:!1,show_other_disambiguation:!0,truncate_other_disambiguation:!1,show_label_line:!0,is_label_truncated:!0,label_format:"truncate",outside_radius:60,inside_radius:40,max_slice_count:8,min_slice_percentage:4,value_format:"percentage",value_scale:"default",show_attribute_name_on_slice:!0,show_attribute_value_on_slice:!0,use_dual_value_axes:!1,enable_text_wrapping:!1,is_one_hundred_percent_stacked:!1,start_percentages_at_zero:!1,scale_chart_to_data:!1,line_style_pattern:"solid",slice_direction:"clockwise",adjust_colors:!1,collapsed_by_default:!1,show_row_number:!1,is_security_grouping_hidden:!1,x_axis_label_show:!0,y_axis_label_show:!0,second_axis_label_show:!0,x_axis_title_show:!1,y_axis_title_show:!1,second_axis_title_show:!1,label_width_multiplier:.2,label_height:50,label_angle:-1,title_font_size:18,title_text_weight:"light",title_alignment:"left",title_border_style:"solid",title_border_color:"#E9E9E9",title_text_color:"#000000",is_fund_context:!1,delta_display:"both",delta_color:"default"},controls:{header:[{id:"client_filter",type:a.J.II_PORTFOLIO_FILTER_CONTROL,label:"Client Filter",factorTemplateId:"client",options:[]}]},is_shown_in_single_column_layout:!1,single_column_order:0,uuid:"4a01485f-4a50-4bf3-9db4-2eddc4ba78a3",layout:{row:0,col:0,width:12,height:17,auto_height:!1,auto_position:!1}},{type:"widget",is_shown:!0,visualization:{identifier:-2,type:o.$Z.BETA_BAR_TYPE,query:{type:"portfolio_query",grouping_factors:[{template_id:"asset_class",display_names:{default:"Asset Class"},display_name_type:"default",is_time_series:!1,link_settings:[],column_filters:[]}],value_factors:[{template_id:"value",args:[{template_id:"time_point",value:{type:"current_time_point"}},{template_id:"currency",value:{value:"usd",display_name:"USD"}},{template_id:"accrued",value:{value:"all",display_name:"True"}},{template_id:"cutover_date",value:{date:null,is_present:!1,present:!1}},{template_id:"valuation_adjustment_type",value:{value:"none",display_name:"None"}},{template_id:"negative_value_handling",value:{value:"show_as_negative",display_name:"Use negative values"}}],display_names:{default:"Value (USD)",date:"Feb 24, 2026",trailing:"(USD)"},display_name_type:"default",is_time_series:!1,link_settings:[],column_filters:[]}],metric_factors:[],filters:[],hide_previous_holdings:!1,show_sleeves:!1,sleeve_setting:"hide_sleeves",billing_matching_setting:"path_matching",target_allocation_mode:"lowest_ownership",use_multibucketing:!1,group_by_weighted_values:!1,show_multi_value_remainder:!1,lookthrough:!1,collapse_tree:[],show_fees:!1,reverse_walk:!1,summary_data_default_preference:{value:"live_data",display_name:"Default to live data"},flatten_output:!1,debug_mode:!1,disable_factor_cache:!1,show_total_column:!0,expand_wrapper_entities:!1,tax_lot_use_settlement_date:!1,load_executed_trades:!1,include_in_validation_datasets:!1,reversewalk:!1,constituent_lookthrough:{type:"none",threshold:null},stream_results:!1,disable_total_row:!1,short_held_asset_display_preference:"inherit",estimated_returns_display_preference:"inherit",benchmark_proxy_display_preference:"inherit",benchmark_factors:[],hide_total_column_after_sortings:!1},lexicographical_sort:!1,filter_set_ids:[],fund_context:!1,xaxis_label_show:!0,yaxis_label_show:!0,xaxis_title_show:!1,yaxis_title_show:!1,id:"-2",data_source:n.Y.ADDEPAR_PORTFOLIO,is_template:!1,team_ids:[],value_factor_axis_assignments:[0],show_total:!1,sorting:"value",sort_ascending:!1,show_legend:!1,legend_position:"bottom",is_stacked:!1,is_horizontal:!1,is_donut:!1,is_binned:!1,show_other_disambiguation:!0,truncate_other_disambiguation:!1,show_label_line:!0,is_label_truncated:!0,label_format:"truncate",outside_radius:60,inside_radius:40,max_slice_count:8,min_slice_percentage:4,value_format:"percentage",value_scale:"default",show_attribute_name_on_slice:!0,show_attribute_value_on_slice:!0,use_dual_value_axes:!1,enable_text_wrapping:!1,is_one_hundred_percent_stacked:!1,start_percentages_at_zero:!1,scale_chart_to_data:!1,line_style_pattern:"solid",slice_direction:"clockwise",adjust_colors:!1,collapsed_by_default:!1,show_row_number:!1,is_security_grouping_hidden:!1,x_axis_label_show:!0,y_axis_label_show:!0,second_axis_label_show:!0,x_axis_title_show:!1,y_axis_title_show:!1,second_axis_title_show:!1,label_width_multiplier:.2,label_height:50,label_angle:-1,title_font_size:18,title_text_weight:"light",title_alignment:"left",title_border_style:"solid",title_border_color:"#E9E9E9",title_text_color:"#000000",is_fund_context:!1,delta_display:"both",delta_color:"default"},controls:{header:[{id:"client_filter",type:a.J.II_PORTFOLIO_FILTER_CONTROL,label:"Client Filter",factorTemplateId:"client",options:[]}]},is_shown_in_single_column_layout:!1,single_column_order:0,uuid:"4a01485f-4a50-4bf3-9db4-2eddc4ba78a4",layout:{row:0,col:0,width:12,height:17,auto_height:!1,auto_position:!1}}],is_csv_exportable:!1,default_time_period:{type:"trailing_time_period",period:"P1M"},schedule_ids:[]};class p extends l.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","app.investment-intelligence.portfolio-diagnostic.performance"),(0,r.A)(this,"displayNameOverride","Total Portfolio Performance")}async _loadClientFilterOptions(){try{let e=(await(0,u.entitySearch)({display_names:["Billing Auto Fee Recon Client","Conversions Client"]},this.store)).map(e=>({label:e.displayName,
1value:e.id}));return[{label:"All Clients",value:s.ALL_OPTION_VALUE},...e]}catch(e){return[{label:"All Clients",value:s.ALL_OPTION_VALUE}]}}async beforeModel(){return this._clientFilterOptions=await this._loadClientFilterOptions(),super.beforeModel()}get staticViewData(){let e=(0,c.A)(d);return e.items.forEach(e=>{e.controls?.header&&e.controls.header.forEach(e=>{"client_filter"===e.id&&(e.options=this._clientFilterOptions)})}),e}}},737549(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(804204),l=i(558779),u=i.n(l);let c=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"featureFlags",o,this)}model(e){return e.id}},o=(0,n.A)(r.prototype,"featureFlags",[s.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},895011(e,t,i){i.r(t);const r=i(733559).default.extend({fallBackRoutes:["app.personalSettings.userPreferences"],toolDisplayName:"Personal Settings"});i.d(t,["default",0,r])},236032(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(503454),p=i(804204);let h=(r=class extends d.default{constructor(...e){super(...e),(0,u.A)(this,"accessControllerName","personal-settings"),(0,u.A)(this,"controllerName","personalSettings"),(0,l.A)(this,"router",o,this),(0,l.A)(this,"featureFlags",a,this),(0,l.A)(this,"store",n,this),(0,l.A)(this,"pageTitleManager",s,this)}model(){return this.store.findRecord("userPreferences","0")}afterModel(){this.pageTitleManager.setTitle("Personal Settings")}setupController(){super.setupController(...arguments),!this.router.currentURL||this.router.currentURL.startsWith("/app/personal-settings")?this.routeFor("app").setExitSettingsRedirect(document.referrer):this.routeFor("app").setExitSettingsRedirect(this.router.currentURL)}},o=(0,c.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"pageTitleManager",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},34902(e,t,i){i.r(t);var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(943910),m=i(895011),g=i(804204);const f=(r=(0,i(640626).and)("featureFlags.flags.boolean.integration_center","permissionService.hasUserConnectedIntegrations"),o=class extends m.default{constructor(...e){super(...e),(0,c.A)(this,"router",a,this),(0,c.A)(this,"featureFlags",n,this),(0,c.A)(this,"permissionService",s,this),(0,c.A)(this,"theme",l,this),(0,d.A)(this,"accessControllerName","personal-connected-integrations"),(0,d.A)(this,"toolDisplayName","Connected Integrations"),(0,c.A)(this,"canAccessRoute",u,this)}model(){return this.store.findAll("connectedIntegration")}openIntegrationsCenter(){window.open("https://integrations.addepar.com/","_blank")}disconnectIntegration(e){this.set("controller.isLoading",!0),e.destroyAndDisconnectRecord().finally(()=>{this.get("router").transitionTo("app.personalSettings.connectedIntegrations"),this.set("controller.isLoading",!1)})}loading(e){let t=this.get("controller");t&&(t.set("isLoading",!0),e.promise.finally(()=>{t.set("isLoading",!1)}))}},a=(0,p.A)(o.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,p.A)(o.prototype,"featureFlags",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(o.prototype,"permissionService",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(o.prototype,"theme",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(o.prototype,"canAccessRoute",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.A)(o.prototype,"openIntegrationsCenter",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"openIntegrationsCenter"),o.prototype),(0,p.A)(o.prototype,"disconnectIntegration",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"disconnectIntegration"),o.prototype),(0,p.A)(o.prototype,"loading",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"loading"),o.prototype),o);i.d(t,["default",0,f])},942720(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);const p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"theme",a,this),(0,s.A)(this,"accessControllerName","personal-connected-integrations")}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"theme",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},231927(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){return this.router.transitionTo("app.personalSettings.userPreferences")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},113983(e,t,i){i.r(t),i.d(t,{default:()=>f});var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(804204),m=i(943910),g=i(895011);let f=(r=class extends g.default{constructor(...e){super(...e),(0,c.A)(this,"credential",o,this),(0,c.A)(this,"featureFlags",a,this),(0,c.A)(this,"permissionService",n,this),(0,c.A)(this,"popover",s,this),(0,c.A)(this,"router",l,this),(0,c.A)(this,"userNotifications",u,this),(0,d.A)(this,"controllerName","notifications"),(0,d.A)(this,"toolDisplayName","Notifications"),(0,d.A)(this,"_beforeUnloadHandler",null)}beforeModel(){let e=this.permissionService.hasAdmin||this.featureFlags.flags.boolean.client_portal_novu_notifications&&this.permissionService.hasClientPortalAccess;this.featureFlags.flags.boolean.notifications_user_preferences&&e||this.router.transitionTo("app.personalSettings.userPreferences")}model(){let e=this.credential.contactId;return this.userNotifications.getUserNotificationPreferences(e)}afterModel(){this._setupBeforeUnloadHandler()}_setupBeforeUnloadHandler(){this._removeBeforeUnloadHandler(),this._beforeUnloadHandler=e=>{if(this.controller?.hasUnsavedChanges)return e.preventDefault(),e.returnValue=""},window.addEventListener("beforeunload",this._beforeUnloadHandler)}_removeBeforeUnloadHandler(){this._beforeUnloadHandler&&(window.removeEventListener("beforeunload",this._beforeUnloadHandler),this._beforeUnloadHandler=null)}willTransition(e){this.controller?.hasUnsavedChanges&&(e.abort(),this.popover.openAplModal("settings/notifications/save-or-discard-modal",{onSave:async()=>{await this.controller.saveChanges(),e.retry()},onDiscard:async()=>{await this.controller.cancelChanges(),e.retry()},onCancel:()=>{}}))}deactivate(){this._removeBeforeUnloadHandler()}},o=(0,p.A)(r.prototype,"credential",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,p.A)(r.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,p.A)(r.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(r.prototype,"popover",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(r.prototype,"userNotifications",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.A)(r.prototype,"willTransition",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},150320(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(701627),p=i.n(d),h=i(804204),m=i(895011);let g=(r=class extends m.default{constructor(...e){super(...e),(0,l.A)(this,"credential",o,this),(0,l.A)(this,"featureFlags",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"store",s,this),(0,u.A)(this,"controllerName","personal-security"),(0,u.A)(this,"toolDisplayName","Security")}beforeModel(){this.credential.isEmailCredential||this.router.transitionTo("app.personalSettings.userPreferences")}async model(){return this.isMultiMfaEnabled?await this.fetchMfaProviderData():{credential:this.credential,mfaProviderSettings:null,require2FAForFirmUsers:!1}}get isMultiMfaEnabled(){return Boolean(this.featureFlags.flags?.boolean.multiple_2fa_option_support_enabled)}async fetchMfaProviderData(){let{providerSettings:e,securitySettings:t}=await p().hash({providerSettings:this.store.findRecord("mfaProviderSettings","0").catch(()=>null),securitySettings:this.store.findRecord("systemSecuritySettings","0")});return{credential:this.credential,mfaProviderSettings:e,require2FAForFirmUsers:Boolean(t.get("require2FAForFirmUsers"))}}},o=(0,c.A)(r.prototype,"credential",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},293551(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(943910),p=i(895011),h=i(804204);const m=(r=(0,d.computed)("featureFlags.flags.boolean.integration_center","permissionService.hasAdmin"),o=class extends p.default{constructor(...e){super(...e),(0,l.A)(this,"ajax",a,this),(0,l.A)(this,"featureFlags",n,this),(0,l.A)(this,"permissionService",s,this),(0,u.A)(this,"accessControllerName","personal-third-party-applications"),(0,u.A)(this,"toolDisplayName","Third Party Applications")}get canAccessRoute(){let e=this.featureFlags.flags.boolean.integration_center,t=this.permissionService.hasAdmin;return!e&&t}model(){return this.store.findAll("grant")}loading(e){let t=this.get("controller");t&&(t.set("isLoading",!0),e.promise.finally(()=>{t.set("isLoading",!1)}))}revoke(e){this.set("controller.isLoading",!0),e.destroyAndDisconnectRecord().then(()=>{this.refresh()})}},a=(0,c.A)(o.prototype,"ajax",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(o.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.A)(o.prototype,"canAccessRoute",[r],Object.getOwnPropertyDescriptor(o.prototype,"canAccessRoute"),o.prototype),(0,c.A)(o.prototype,"loading",[d.action],Object.getOwnPropertyDescriptor(o.prototype,"loading"),o.prototype),(0,c.A)(o.prototype,"revoke",[d.action],Object.getOwnPropertyDescriptor(o.prototype,"revoke"),o.prototype),o);i.d(t,["default",0,m])},845115(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(895011);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","userPreferences"),(0,r.A)(this,"toolDisplayName","User Preferences"),(0,r.A)(this,"controllerName","userPreferences")}model(){return this.store.findRecord("userPreferences","0")}setupController(e,t){return e.get("userPreferences")&&e.get("userPreferences").rollbackAttributes(),e.set("userPreferences",t),e.set("previousHash",t.serialize())}deactivate(){let e=this.controllerFor("userPreferences");e.get("userPreferences")&&e.get("userPreferences").rollbackAttributes(),e.set("previousHash",null)}}},122919(e,t,i){i.r(t),i.d(t,{default:()=>f});var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(733559),g=i(804204);let f=(r=class extends m.default{constructor(...e){super(...e),(0,d.A)(this,"portalModuleAccess",o,this),(0,d.A)(this,"portalModuleContacts",a,this),(0,d.A)(this,"featureFlags",n,this),(0,d.A)(this,"groupTypes",s,this),(0,d.A)(this,"router",l,this),(0,d.A)(this,"session",u,this),(0,d.A)(this,"advisorProfiles",c,this),(0,p.A)(this,"toolDisplayName","Client Portal"),(0,p.A)(this,"accessControllerName","app.portal-module")}beforeModel(...e){return Promise.all([super.beforeModel(...e),this.groupTypes.dataLoadingPromise])}model(e,t){let i=t.to.name;return this.featureFlags.flags.boolean.client_portal_module_contacts_paginated&&("app.portal-module.contacts"===i||"app.portal-module.contacts.index"===i||"app.portal-module.contacts.paginated"===i)||this.portalModuleContacts.forceGetContactsTask.perform(),{tabs:this.portalModuleAccess.visibleTabs}}},o=(0,h.A)(r.prototype,"portalModuleAccess",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.A)(r.prototype,"portalModuleContacts",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(r.prototype,"featureFlags",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(r.prototype,"groupTypes",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(r.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(r.prototype,"session",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(r.prototype,"advisorProfiles",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},240399(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(503454),d=i(804204);const p=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"router",o,this),(0,s.A)(this,"featureFlags",a,this),(0,s.A)(this,"portalDashboardViewScheduledJobService",n,this),(0,l.A)(this,"accessControllerName","app.portal-module.contacts"),(0,l.A)(this,"fallBackRoutes",["app.portal-module.templates"])}beforeModel(e){if(super.beforeModel())return;let t=this.featureFlags.flags.boolean.client_portal_module_contacts_paginated,i="app.portal-module.contacts"===e.targetName||"app.portal-module.contacts.index"===e.targetName;return t&&i?this.router.transitionTo("app.portal-module.contacts.paginated"):void 0}model(){this.featureFlags.flags.boolean.client_portal_scheduled_views&&this.portalDashboardViewScheduledJobService.getAllJobs()}},o=(0,u.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"portalDashboardViewScheduledJobService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},615423(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(701627),m=i.n(h);const g=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"store",o,this),(0,l.A)(this,"router",a,this),(0,l.A)(this,"factorTemplateData",n,this),(0,l.A)(this,"permissionService",s,this)}async model(e){let t=e.contact_id,i=await this.store.findRecord("contact",t,{reload:!0}),r=`/public/affiliations?contact_id=${t}`,o=i.hasMany("affiliations");o.hasManyRelationship.link=r,await o.reload();let a,n=this.store.findRecord("contactDetail",t,{reload:!0}),s=this.store.find("systemSecuritySettings","0");return(this.permissionService.canAssignViewSets||this.permissionService.canEditAffiliations&&this.permissionService.hasAtLeastViewSetsViewOnly)&&
1(a=this.store.query("view-set",{minimal_sideloading:!0})),(0,h.hash)({contact:i,contactDetail:n,securitySettings:s,allViewSets:a})}afterModel(){let e=this.factorTemplateData;m().all([e.ensureRecords([...e.criticalRecords,"ownership","value"])])}beforeModel(e){"app.portal-module.contacts.contact-details.index"===e.targetName&&this.router.transitionTo("app.portal-module.contacts.contact-details.portfolios")}},o=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"factorTemplateData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"permissionService",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,g])},532940(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(47654);let m=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"store",o,this),(0,l.A)(this,"router",a,this),(0,l.A)(this,"factorTemplateData",n,this),(0,l.A)(this,"permissionService",s,this)}model(){return this.modelFor("app.portal-module.contacts.contact-details")}setupController(e,t,i){if(super.setupController(e,t,i),e._contactRelationshipSnapshot=(0,h.snapshotRelationships)(e.model.contact,["emails","phoneNumbers","addresses","familyMembers"]),e.setupPortalSettings(),e&&i?.to?.queryParams){let{editPortalSetupOnInit:t}=i.to.queryParams;t&&e.set("isEditingPortalSetup",!0)}}resetController(e){super.resetController(...arguments),e.revertViewSetChanges()}},o=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"factorTemplateData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"permissionService",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);const g=m;i.d(t,["default",0,g])},985751(e,t,i){i.r(t);var r=i(558779),o=i.n(r),a=i(47654);class n extends(o()){setupController(e){super.setupController(...arguments),e._contactRelationshipSnapshot=(0,a.snapshotRelationships)(e.model.contact,["emails","phoneNumbers","addresses","familyMembers"])}resetController(e){super.resetController(...arguments),e.revertViewSetChanges()}}const s=n;i.d(t,["default",0,s])},405881(e,t,i){i.r(t);var r=i(558779),o=i.n(r),a=i(47654);class n extends(o()){setupController(e,t){super.setupController(e,t),e._contactRelationshipSnapshot=(0,a.snapshotRelationships)(e.model.contact,["emails","phoneNumbers","addresses","familyMembers"])}resetController(e){super.resetController(...arguments),e.revertContact()}}const s=n;i.d(t,["default",0,s])},737047(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(503454),d=i(804204);const p=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"store",o,this),(0,s.A)(this,"featureFlags",a,this),(0,s.A)(this,"portalDashboardViewScheduledJobService",n,this),(0,l.A)(this,"accessControllerName","app.portal-module.contacts.paginated"),(0,l.A)(this,"fallBackRoutes",["app.portal-module.contacts"])}model(){this.featureFlags.flags.boolean.client_portal_scheduled_views&&this.portalDashboardViewScheduledJobService.getAllJobs()}},o=(0,u.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"portalDashboardViewScheduledJobService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},442496(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){this.router.transitionTo("app.portal-module.contacts")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},739322(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204);let h=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"router",o,this),(0,l.A)(this,"featureFlags",a,this),(0,l.A)(this,"permissionService",n,this),(0,l.A)(this,"advisorProfiles",s,this)}beforeModel(){this.featureFlags.flags.boolean.client_portal_advisor_bios&&this.permissionService.hasAdvisorProfiles||this.router.transitionTo("app.portal-module.contacts")}
1},o=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"permissionService",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"advisorProfiles",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},776263(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){model(){return this.modelFor("app.portal-module.profiles.profile")}}},695176(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"store",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"advisorProfiles",n,this)}model(e){return this.store.findRecord(this.advisorProfiles.ADVISOR_PROFILES_MODEL_NAME,e.profile_id,{reload:!0})}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"advisorProfiles",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},691625(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){model(){return this.modelFor("app.portal-module.profiles.profile")}}},804968(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(943910),c=i(804204);let d=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"discardChangesModal",o,this)}model(){return this.modelFor("app.portal-module.profiles.profile")}willTransition(e){let t=this.controllerFor("app.portal-module.profiles.profile");this.modelFor("app.portal-module.profiles.profile").hasDirtyAttributes&&!t.isProcessing&&(e.abort(),this.discardChangesModal.displayModal({transition:e,controller:t,text:{header:"Discard edits?",content:"You will lose any unsaved changes.",confirmButton:"Discard"}}))}},o=(0,n.A)(r.prototype,"discardChangesModal",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.A)(r.prototype,"willTransition",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},794066(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}model(){return this.modelFor("app.portal-module.profiles.profile")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},60967(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){this.router.replaceWith("app.portal-module.profiles.profile.details")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},567935(e,t,i){i.r(t);var r=i(401104),o=i(503454);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","app.portal-module.settings")}}const n=a;i.d(t,["default",0,n])},448495(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(503454),p=i(804204);const h=(r=class extends d.default{constructor(...e){super(...e),(0,l.A)(this,"portalModuleAssignableTeams",o,this),(0,l.A)(this,"portalModuleAccess",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"viewSets",s,this),(0,u.A)(this,"accessControllerName","app.portal-module.templates"),(0,u.A)(this,"fallBackRoutes",["app.portal-module.contacts"])}beforeModel(){if(super.beforeModel(),this.portalModuleAccess.isInPortalViewsOnlyMode)return this.router.transitionTo("app.portal-module.view-sets");this.viewSets.loadDashboardViews()}setupController(e,t){super.setupController(e,t),this.portalModuleAssignableTeams.loadTask.perform()}},o=(0,c.A)(r.prototype,"portalModuleAssignableTeams",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"portalModuleAccess",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"viewSets",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,h])},936296(e,t,i){i.r(t);var r=i(558779),o=i.n(r);class a extends(o()){}const n=a;i.d(t,["default",0,n])},362488(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);const d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}beforeModel(e){let t=e.targetName;["app.portal-module.templates.template.overview","app.portal-module.templates.template.views","app.portal-module.templates.template.settings"].includes(t)||this.router.transitionTo("app.portal-module.templates.template.overview")}model(e){return this.store.findRecord("view-set",e.template_id)}},o=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},197732(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(421548),u=i(804204),c=i(268319);const d=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"featureFlags",o,this),(0,n.A)(this,"discardChangesMo
1dalText",c.DISCARD_CHANGES_VIEW_SET_TEXT)}model(){return this.modelFor("app.portal-module.templates.template")}setupController(e,t){super.setupController(e,t);let i=e._getInitHomeVersion(t);e.set("previousHomeSettingsHash",e._buildHomeSettingsFormHash({homeVersion:i,model:t})),e.set("homeVersion",i)}shouldConfirm(){return this.controller.isDirty}},o=(0,s.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},542074(e,t,i){i.r(t);var r=i(401104),o=i(421548),a=i(268319);class n extends o.default{constructor(...e){super(...e),(0,r.A)(this,"TEMPLATE_EDITOR_ROUTE","app.portal-module.templates.template"),(0,r.A)(this,"discardChangesModalText",a.DISCARD_CHANGES_VIEW_SET_TEXT)}model(){return this.modelFor(this.TEMPLATE_EDITOR_ROUTE)}setupController(e,t){super.setupController(e,t),e.set("teams",this.controllerFor(this.TEMPLATE_EDITOR_ROUTE).teams),e.set("selectedTeamId",1===t.teams.length?t.teams.firstObject.id:null),e.set("initViewSetJson",JSON.stringify({title:t.title,description:t.description||""})),e.set("title",t.title),e.set("description",t.description||"")}shouldConfirm(){return this.controller.isDirty}}const s=n;i.d(t,["default",0,s])},574045(e,t,i){i.r(t);var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(421548),m=i(804204),g=i(921742),f=i(268319);const y=(r=class extends h.default{constructor(...e){super(...e),(0,c.A)(this,"portfolioViewsData",o,this),(0,c.A)(this,"transactionViewsData",a,this),(0,c.A)(this,"portalDashboardViewsData",n,this),(0,c.A)(this,"permissionService",s,this),(0,c.A)(this,"featureFlags",l,this),(0,c.A)(this,"store",u,this),(0,d.A)(this,"discardChangesModalText",f.DISCARD_CHANGES_VIEW_SET_TEXT)}model(){return this.modelFor("app.portal-module.templates.template")}setupController(e,t){super.setupController(e,t),e.set("initViewSetJson",JSON.stringify(t.serialize())),e.captureViewOrderingSnapshot(),this.portfolioViewsData.modelPromise.then(i=>{let r=i.filter(e=>e.isPortalFirmView||t.type===f.VIEW_SET_TYPE.TEAM&&e.isPortalTeamView&&e.get("team.id")===t.teams.objectAt(0).id);e.set("portfolioViews",r)}),this.transactionViewsData.modelPromise.then(t=>{e.set("transactionViews",t.filter(e=>"portal"===e.shareLevel))});let i={include_firm:!0,team_ids:t.type===f.VIEW_SET_TYPE.TEAM?[t.teams.firstObject.id]:[]};this.store.query("portalDashboardView",i).then(t=>{e.set("portalDashboardViews",t.toArray())}),e.set("firmsFirstPerspective",(0,g.getFirstEntityForFirm)(this.store))}shouldConfirm(){return this.controller.isDirty}},o=(0,p.A)(r.prototype,"portfolioViewsData",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,p.A)(r.prototype,"transactionViewsData",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,p.A)(r.prototype,"portalDashboardViewsData",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(r.prototype,"permissionService",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(r.prototype,"featureFlags",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(r.prototype,"store",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,y])},992893(e,t,i){i.r(t);var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(804204),m=i(119393),g=i(640626),f=i(913363),y=i(697392);const b="app.portal-module.views",v=(r=(0,h.inject)("widget/configuration"),o=(0,g.readOnly)("portalDashboardViewsData"),a=class extends f.default{constructor(...e){super(...e),(0,c.A)(this,"portalDashboardViewsData",n,this),(0,c.A)(this,"portalModuleAssignableTeams",s,this),(0,c.A)(this,"configurationService",l,this),(0,d.A)(this,"accessControllerName","app.portal-module.view-editor"),(0,d.A)(this,"fallBackRoutes",["app.portal-module.contacts"]),(0,c.A)(this,"viewDataService",u,this),(0,d.A)(this,"indexRoute",b),(0,d.A)(this,"viewResourceType",m.default.resourceType)}additionalLoadingPromises({portfolio:e}){this.portalModuleAssignableTeams.loadTask.perform();let{perspectiveId:t,perspectiveType:i}=this._parsePortfolioType(e);return{dashboards:this.portalDashboardViewsData.modelPromise,interval:this.dateTime.getPortalDateTimePeriod({portfolioId:t,grentityType:i}),externalDataSources:this.configurationService.featureFlags.flags.boolean.client_portal_external_data_sources?this.configurationService.loadExternalDataSources():this.configurationService.resetExternalDataSources()}}_parsePortfolioType(e){if(!e)return{perspectiveId:null,perspectiveType:null};let[t,i]=e.split("_");return{perspectiveId:i,perspectiveType:t.includes(y.PERSPECTIVE_TYPES.ENTITY)?y.PERSPECTIVE_TYPES.ENTITY:y.PERSPECTIVE_TYPES.GROUP}}},n=(0,p.A)(a.prototype,"portalDashboardViewsData",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(a.prototype,"portalModuleAssignableTeams",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(a.prototype,"configurationService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(a.prototype,"viewDataService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a);i.d(t,["DASHBOARD_INDEX_ROUTE",0,b,"default",0,v])},270445(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(503454),d=i(804204);const p=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"portalModuleAssignableTeams",o,this),(0,s.A)(this,"viewSets",a,this),(0,s.A)(this,"store",n,this),(0,l.A)(this,"accessControllerName","app.portal-module.view-sets"),(0,l.A)(this,"fallBackRoutes",["app.portal-module.contacts"])}setupController(e,t){super.setupController(e,t),this.portalModuleAssignableTeams.loadTask.perform(),this.viewSets.loadD
1ashboardViews()}},o=(0,u.A)(r.prototype,"portalModuleAssignableTeams",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"viewSets",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},70616(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(421548),p=i(804204),h=i(268319),m=i(47654);let g=(r=class extends d.default{constructor(...e){super(...e),(0,l.A)(this,"store",o,this),(0,l.A)(this,"viewSets",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"viewSetEditor",s,this),(0,u.A)(this,"discardChangesModalText",h.DISCARD_CHANGES_VIEW_SET_TEXT)}model(e){return this.store.findRecord("view-set",e.view_set_id)}afterModel(e,t){"app.portal-module.view-sets.view-set.index"===t.targetName&&this.router.transitionTo("app.portal-module.view-sets.view-set.info",e.id)}setupController(e,t){super.setupController(e,t),t.rollbackAttributes();let i=["viewOrdering","contacts"];t.isOverviewEnabled&&i.push("homePortfolioView"),this.viewSetEditor.hasSnapshot(t)?this.viewSetEditor.restoreRelationships():(0,m.restoreRelationships)(t,(0,m.snapshotRelationships)(t,i)),this.viewSetEditor.initializeWithModel(t)}shouldConfirm(){return this.viewSetEditor.isDirty}resetController(e,t){super.resetController(...arguments),t&&this.router.replaceWith({queryParams:{from:null}})}},o=(0,c.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"viewSets",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"viewSetEditor",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);const f=g;i.d(t,["default",0,f])},851562(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(701627),p=i.n(d);let h=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"viewSets",o,this),(0,n.A)(this,"portalModuleContacts",a,this)}model(){return p().hash({viewSet:this.modelFor("app.portal-module.view-sets.view-set"),contactAssignments:this.viewSets.getViewSetIdsForContacts({reload:!1}),allFirmContacts:this.portalModuleContacts.getContactsTask.perform()})}},o=(0,s.A)(r.prototype,"viewSets",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"portalModuleContacts",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},144857(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(421548),c=i(804204),d=i(268319);let p=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"permissionService",a,this),(0,s.A)(this,"discardChangesModalText",d.DISCARD_CHANGES_VIEW_SET_TEXT)}beforeModel(){let e=this.modelFor("app.portal-module.view-sets.view-set");this.permissionService.hasAtLeastViewSetsViewOnly||this.router.transitionTo("app.portal-module.view-sets.view-set.contacts",e.id)}model(){return this.modelFor("app.portal-module.view-sets.view-set")}async setupController(e,t){let i=this.routeFor("app.portal-module.view-sets.view-set");await i.setupController(e,t)}shouldConfirm(){return this.controllerFor("app.portal-module.view-sets.view-set.contacts.edit").isDirty}},o=(0,l.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"permissionService",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},142063(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){model(){return this.modelFor("app.portal-module.view-sets.view-set")}}},230522(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(421548),c=i(804204),d=i(268319);let p=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"viewSetPermissions",a,this),(0,s.A)(this,"discardChangesMo
1dalText",d.DISCARD_CHANGES_VIEW_SET_TEXT)}beforeModel(){let e=this.modelFor("app.portal-module.view-sets.view-set");this.viewSetPermissions.canModifyViewSet(e)||this.router.transitionTo("app.portal-module.view-sets.view-set.info",e.id)}model(){return this.modelFor("app.portal-module.view-sets.view-set")}async setupController(e,t){let i=this.routeFor("app.portal-module.view-sets.view-set");await i.setupController(e,t)}shouldConfirm(){return this.controllerFor("app.portal-module.view-sets.view-set.info.edit").isDirty}},o=(0,l.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"viewSetPermissions",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},319754(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(503454),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"portalModuleAssignableTeams",o,this),(0,n.A)(this,"accessControllerName","app.portal-module.views"),(0,n.A)(this,"fallBackRoutes",["app.portal-module.contacts"])}setupController(e,t){super.setupController(e,t),this.portalModuleAssignableTeams.loadTask.perform()}},o=(0,s.A)(r.prototype,"portalModuleAssignableTeams",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},851807(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(503454),h=i(804204);let m=(r=class extends p.default{constructor(...e){super(...e),(0,u.A)(this,"store",o,this),(0,u.A)(this,"portalModuleAssignableTeams",a,this),(0,u.A)(this,"featureFlags",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"portalViewPermissions",l,this),(0,c.A)(this,"accessControllerName","app.portal-module.views"),(0,c.A)(this,"fallBackRoutes",["app.portal-module.contacts"])}beforeModel(){if(!this.featureFlags.flags.boolean.portal_module_vs)return this.router.transitionTo("app.portal-module.views")}model(e){return this.store.findRecord("portal-dashboard-view",e.view_id)}afterModel(e){if(!this.portalViewPermissions.canViewPortalView(e))return this.router.transitionTo("app.portal-module.views")}setupController(e,t){super.setupController(e,t),this.portalModuleAssignableTeams.loadTask.perform()}},o=(0,d.A)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.A)(r.prototype,"portalModuleAssignableTeams",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(r.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(r.prototype,"portalViewPermissions",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},332906(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(503454),h=i(804204);let m=(r=class extends p.default{constructor(...e){super(...e),(0,u.A)(this,"store",o,this),(0,u.A)(this,"portalModuleAssignableTeams",a,this),(0,u.A)(this,"featureFlags",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"portalViewPermissions",l,this),(0,c.A)(this,"accessControllerName","app.portal-module.views"),(0,c.A)(this,"fallBackRoutes",["app.portal-module.contacts"])}beforeModel(){if(!this.featureFlags.flags.boolean.portal_module_vs)return this.router.transitionTo("app.portal-module.views")}model(){return this.modelFor("app.portal-module.views.details")}afterModel(e){if(!this.portalViewPermissions.canModifyPortalView(e))return this.router.transitionTo("app.portal-module.views.details",e.id)}setupController(e,t){super.setupController(e,t),this.controllerFor("app.portal-module.views.details").set("isEditing",!0),this.portalModuleAssignableTeams.loadTask.perform()}},o=(0,d.A)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.A)(r.prototype,"portalModuleAssignableTeams",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(r.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(r.prototype,"portalViewPermissions",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},46712(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){if(!this.featureFlags.flags.boolean.portal_module_vs)return this.router.transitionTo("app.portal-module.views")}model(){return this.modelFor("app.portal-module.views.details")}setupController(e,t){super.setupController(e,t),this.controllerFor("app.portal-module.views.details").set("isEditing",!1)}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},991101(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(804204),c=i(558779),d=i.n(c);let p=(r=class extends(d()){constructor(...e){super(...e),(0,s.A)(this,"router",o,this),(0,s.A)(this,"permissionService",a,this),(0,s.A)(this,"pageTitleManager",n,this)}activate(){this.pageTitleManager.setTitle("Portfolio Data")}beforeModel(e){let t=e?.to?.name;"app.portfolio-data.index"===t&&this.handlePermissionFallback()}handlePermissionFallback(){let e=[{condition:this.permissionService.canViewPortfolioDataFeeds,route:"app.portfolio-data.account-management.online-accounts"},{condition:this.permissionService.hasPortfolioDataEntities,route:"app.portfolio-data.entities"},{condition:this.permissionService.hasPortfolioDataInvestments,route:"app.portfolio-data.investments"}];for(let{condition:t,route:i}of e)if(t)return void this.router.transitionTo(i)}},o=(0,l.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"permissionService",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"pageTitleManager",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},255829(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l);let c=(r=(0,i(804204).inject)(),o=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"router",a,this)}afterModel(e,t){"app.portfolio-data.account-management.index"===t.targetName&&this.router.transitionTo("app.portfolio-data.account-management.online-accounts")}},a=(0,s.A)(o.prototype,"router",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)}
1,786115(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u);let d=(r=(0,i(804204).inject)(),o=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",a,this),(0,s.A)(this,"templateName","app/portfolio-data/account-management/connections")}beforeModel(){this.templateName=this.featureFlags.flags.boolean.portfolio_data_nav_online_accounts?"app/portfolio-data/account-management/connections-tab":"app/portfolio-data/account-management/connections"}},a=(0,l.A)(o.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},264719(e,t,i){i.r(t),i.d(t,{default:()=>y});var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(558779),m=i.n(h),g=i(943910),f=i(804204);let y=(r=(0,f.inject)(),o=(0,f.inject)(),a=(0,f.inject)(),n=class extends(m()){constructor(...e){super(...e),(0,c.A)(this,"store",s,this),(0,c.A)(this,"permissionService",l,this),(0,c.A)(this,"featureFlags",u,this),(0,d.A)(this,"templateName","app/portfolio-data/account-management/master-accounts")}beforeModel(){this.templateName=this.featureFlags.flags.boolean.portfolio_data_nav_online_accounts?"app/portfolio-data/account-management/master-accounts-tab":"app/portfolio-data/account-management/master-accounts"}model(){if(this.permissionService.canViewPortfolioDataFeeds)return this.store.findAll("master-account")}willTransition(){this.controller.selectedMasterAccounts&&(this.controller.selectedMasterAccounts=void 0)}},s=(0,p.A)(n.prototype,"store",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(n.prototype,"permissionService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(n.prototype,"featureFlags",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.A)(n.prototype,"willTransition",[g.action],Object.getOwnPropertyDescriptor(n.prototype,"willTransition"),n.prototype),n)},188424(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u);let d=(r=(0,i(804204).inject)(),o=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",a,this),(0,s.A)(this,"templateName","app/portfolio-data/account-management/online-accounts")}beforeModel(){this.templateName=this.featureFlags.flags.boolean.portfolio_data_nav_online_accounts?"app/portfolio-data/account-management/online-accounts-tab":"app/portfolio-data/account-management/online-accounts"}},a=(0,l.A)(o.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},156089(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){setupController(e){e.loadIntegrations.perform()}}},551013(e,t,i){i.r(t),i.d(t,{default:()=>l});var r,o=i(228888),a=i(558779),n=i.n(a),s=i(943910);let l=(r=class extends(n()){willTransition(e){if(!this.controller.shouldInterceptTransition)return!0;e.abort(),this.controller.set("modalDismissalAction",e.retry.bind(e))}setupController(e,t,i){if(super.setupController(e,t,i),e&&i?.to?.queryParams){let{filterModelType:t}=i.to.queryParams,r=t?t.split(","):void 0;e.searchParamsChanged({...i.to.queryParams,modelType:r})}}},(0,o.A)(r.prototype,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},911727(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(551013);class o extends r.default{}},376993(e,t,i){i.r(t),i.d(t,{default:()=>b});var r,o,a,n,s,l,u,c=i(748096),d=i(228888),p=i(558779),h=i.n(p),m=i(804204),g=i(979295),f=i(875694);function y(e){return(0,g.getOwner)(e)}let b=(r=(0,m.inject)("group-automation"),o=(0,m.inject)("permission-service"),a=class extends(h()){constructor(...e){super(...e),(0,c.A)(this,"featureFlags",n,this),(0,c.A)(this,"groupAutomation",s,this),(0,c.A)(this,"permissionService",l,this),(0,c.A)(this,"router",u,this)}beforeModel(){this.featureFlags.flags.boolean.portfolio_data_group_automation&&this.permissionService.canAccessGroupAutomation||this.router.transitionTo("/")}activate(){y(this).register("state-manager:group-automation-factor-filter-chooser",f.default),this.groupAutomation.startDataPolling()}deactivate(){this.groupAutomation.cancelDataPolling(),y(this).unregister("state-manager:group-automation-factor-filter-chooser")}},n=(0,d.A)(a.prototype,"featureFlags",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(a.prototype,"groupAutomation",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(a.prototype,"permissionService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,d.A)(a.prototype,"router",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)},213285(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204);let h=(r=(0,p.inject)("group-types"),o=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"featureFlags",a,this),(0,l.A)(this,"groupTypesService",n,this),(0,l.A)(this,"router",s,this)}beforeModel(){return this.featureFlags.flags.boolean.portfolio_data_group_types||this.router.transitionTo("/"),this.groupTypesService.dataLoadingPromise}},a=(0,u.A)(o.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(o.prototype,"groupTypesService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(o.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},871912(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204),c=i(943910);let d=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"popover",o,this)}willTransition(e){let t=this.controller;t.isDirty&&(e.abort(),this.popover.openAplModal("utils/modals/unsaved-changes",{label:"group type",isSaveable:t.isSaveable,onSave:async()=>{await t.onSave(),e.retry()},onDiscardChanges:()=>{t.onDiscardChanges(),e.retry()}}))}},o=(0,n.A)(r.prototype,"popover",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.A)(r.prototype,"willTransition",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},935132(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(943910);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"popover",a,this)}model(e){return this.store.findRecord("group-type",e.group_type_id
1)}willTransition(e){let t=this.controller;t.isDirty&&(e.abort(),this.popover.openAplModal("utils/modals/unsaved-changes",{label:"group type",isSaveable:t.isSaveable,onSave:async()=>{await t.onSave(),e.retry()},onDiscardChanges:()=>{t.onDiscardChanges(),e.retry()}}))}},o=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"popover",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"willTransition",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},999838(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(549090);let h=(r=(0,d.inject)("group-types"),o=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"router",a,this),(0,s.A)(this,"groupTypesService",n,this)}async beforeModel(){await this.groupTypesService.dataLoadingPromise;let e=this.groupTypesService.allGroupTypes;if(e&&e.length>0){let t=e.find(e=>e.id===p.DEFAULT_GROUP_TYPE),i=t?.id??e.at(0)?.id;i&&this.router.transitionTo("app.portfolio-data.group-types.edit",i)}else this.router.transitionTo("app.portfolio-data.group-types.create")}},a=(0,l.A)(o.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(o.prototype,"groupTypesService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},992912(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s,l,u,c=i(748096),d=i(228888),p=i(558779),h=i.n(p),m=i(804204);let g=(r=(0,m.inject)(),o=(0,m.inject)(),a=(0,m.inject)(),n=class extends(h()){constructor(...e){super(...e),(0,c.A)(this,"featureFlags",s,this),(0,c.A)(this,"permissionService",l,this),(0,c.A)(this,"router",u,this)}beforeModel(){this.featureFlags.flags.boolean.portfolio_data_groups&&this.permissionService.hasPortfolioDataGroups||this.router.transitionTo("/")}},s=(0,d.A)(n.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(n.prototype,"permissionService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,d.A)(n.prototype,"router",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},479265(e,t,i){i.r(t),i.d(t,{default:()=>v});var r,o,a,n,s,l,u,c,d,p=i(748096),h=i(401104),m=i(228888),g=i(558779),f=i.n(g),y=i(804204),b=i(943910);let v=(r=(0,y.inject)(),o=(0,y.inject)(),a=(0,y.inject)(),n=(0,y.inject)(),s=class extends(f()){constructor(...e){super(...e),(0,p.A)(this,"featureFlags",l,this),(0,p.A)(this,"permissionService",u,this),(0,p.A)(this,"router",c,this),(0,p.A)(this,"popover",d,this),(0,h.A)(this,"routeLabels",{"app.portfolio-data.historical-data.transaction-datasets":"transaction dataset","app.portfolio-data.historical-data.data-timelines":"timeline","app.portfolio-data.historical-data.pricing-datasets":"pricing dataset"})}beforeModel(){this.featureFlags.flags.boolean.hybrid_hdc_data_model&&this.permissionService.canAccessHdcDataModel||this.router.transitionTo("/")}afterModel(e,t){"app.portfolio-data.historical-data.index"===t.targetName&&this.router.transitionTo("app.portfolio-data.historical-data.transaction-datasets")}willTransition(e){"app.portfolio-data.historical-data.index"===e.targetName&&e.abort();let t=this.controllerFor(this.router.currentRouteName);t.hasDirtyFields&&(e.abort(),this.popover.openAplModal("utils/modals/unsaved-changes",{label:this.routeLabels[this.router.currentRouteName]??"data",isSaveable:t.isSaveable,onSave:async()=>{await t.onSave(),e.retry()},onDiscardChanges:async()=>{await t.onDiscardChanges(),e.retry()}}))}},l=(0,m.A)(s.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.A)(s.prototype,"permissionService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,m.A)(s.prototype,"router",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,m.A)(s.prototype,"popover",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,m.A)(s.prototype,"willTransition",[b.action],Object.getOwnPropertyDescriptor(s.prototype,"willTransition"),s.prototype),s)},375344(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204);let h=(r=(0,p.inject)(),o=(0,p.inject)(),a=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"featureFlags",n,this),(0,l.A)(this,"router",s,this)}beforeModel(){this.featureFlags.flags.boolean.hybrid_hdc_data_model||this.router.transitionTo("/")}},n=(0,u.A)(a.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(a.prototype,"router",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)},717376(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l);let c=(r=(0,i(804204).inject)(),o=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"router",a,this)}afterModel(e,t){"app.portfolio-data.investments.index"===t.targetName&&this.router.transitionTo("app.portfolio-data.investments.list")}},a=(0,s.A)(o.prototype,"router",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},825271(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(804204),c=i(551013);let d=(r=(0,u.inject)(),o=class extends c.default{constructor(...e){super(...e),(0,n.A)(this,"featureFlags",a,this),(0,s.A)(this,"templateName","app/portfolio-data/investments/list")}beforeModel(){this.templateName=this.featureFlags.flags.boolean.portfolio_data_nav_portfolio_data?"app/portfolio-data/investments/list-tab":"app/portfolio-data/investments/list"}},a=(0,l.A)(o.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},678360(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(558779),d=i.n(c),p=i(943910),h=i(804204);let m=(r=class extends(d()){constructor(...e){super(...e),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"permissionService",a,this),(0,s.A)(this,"router",n,this),(0,l.A)(this,"templateName","app/portfolio-data/investments/underlying-assets")}beforeModel(){this.permissionService.hasPortfolioDataInvestments||this.router.transitionTo("/"),this.templateName=this.featureFlags.flags.boolean.portfolio_data_nav_portfolio_data?"app/portfolio-data/investments/underlying-assets-tab":"app/portfolio-data/investments/underlying-assets"}willTransition(e){if(!this.controller.shouldInterceptTransition)return!0;e.abort(),this.controller.set("modalDismissalAction",e.retry.bind(e))}},o=(0,u.A)(r.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(r.prototype,"willTransition",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},721791(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(943910);let m=(r=(0,p.inject)(),o=(0,p.inject)(),a=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"permissionService",n,this),(0,l.A)(this,"router",s,this)}beforeModel(){this.permissionService.canViewEntityModelType||this.router.transitionTo("/")}afterModel(e,t){"app.portfolio-data.model-types.index"===t.targetName&&this.router.transitionTo("app.portfolio-data.model-types.ownership-entities")}willTransition(e){"app.portfolio-data.model-types.index"===e.targetName&&e.abort()}},n=(0,u.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(a.prototype,"router",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(a.prototype,"willTransition",[h.action],Object.getOwnPropertyDescriptor(a.prototype,"willTransition"),a.prototype),a)},863796(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"router",o,this),(0,s.A)(this,"featureFlags",a,this),(0,s.A)(this,"permissionService",n,this)}beforeModel(){this.featureFlags.flags.boolean.loa_workflow_enabled&&this.permissionService.canViewPortfolioDataFeeds||this.router.transitionTo("app.portfolio-data.entities")}},o=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"permissionService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},548320(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s,l,u,c=i(748096),d=i(228888),p=i(558779),h=i.n(p),m=i(804204);let g=(r=(0,m.inject)(),o=(0,m.inject)(),a=(0,m.inject)(),n=class extends(h()){constructor(...e){super(...e),(0,c.A)(this,"featureFlags",s,this),(0,c.A)(this,"permissionService",l,this),(0,c.A)(this,"router",u,this)}beforeModel(){this.featureFlags.flags.boolean.hybrid_hdc_data_model&&this.permissionService.canAccessHdcDataModel||this.router.transitionTo("/")}},s=(0,d.A)(n.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(n.prototype,"permissionService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,d.A)(n.prototype,"router",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n)},457170(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(943910),g=i(701627),f=i.n(g),y=i(558779),b=i.n(y),v=i(804204),w=i(496314),_=i(583479);const A=(r=(0,v.inject)("reporting/open-report"),o=class extends(b()){constructor(...e){super(...e),(0,d.A)(this,"allocationFrameworkData",a,this),(0,d.A)(this,"factorTemplateData",n,this),(0,d.A)(this,"openReportService",s,this),(0,d.A)(this,"router",l,this),(0,d.A)(this,"store",u,this),(0,d.A)(this,"pageTitleManager",c,this),(0,p.A)(this,"controllerName","app.proposal"),(0,p.A)(this,"knownPartialOwnership",null)}model({proposalId:e}){let t=this.factorTemplateData,i=t.ensureRecords([...t.criticalRecords,"proposal_value_final","ownership","no
1de_ownership"]);return f().all([this.store.findRecord("proposal",e),this.allocationFrameworkData.modelPromise,i]).then(([e])=>e)}activate(){this.pageTitleManager.setTitle("Proposal")}setupController(e,t){super.setupController(e,t)}redirect(e){let t=this.controllerFor("app.proposal").get("selectedView");return(0,w.isNone)(t)?this.store.queryRecord("proposalView",{id:"last_visited"}).then(e=>this.transitionToView(e)):this.transitionToView(e,t)}transitionToView(e){this.router.transitionTo("app.proposal.view",e)}openReport(e,t,i={}){this.openReportService.openReportWithPerspective(e,this.controllerFor("perspective").get("model"),t,i)}onPortfolioRequestLoaded(){let e=this.controller.get("pqr");e&&!e.get("isLoading")&&this.controller.set("isDirty",!1)}transitionToAnalysis(e){let t=this.get("controller.ownershipPerspective");t&&t.then(t=>this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view",t,e))}_factorFromTemplate(e){return _.default.createFromTemplate(this.store,this.store.peekRecord("factorTemplate",e))}},a=(0,h.A)(o.prototype,"allocationFrameworkData",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(o.prototype,"factorTemplateData",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(o.prototype,"openReportService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(o.prototype,"router",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(o.prototype,"store",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(o.prototype,"pageTitleManager",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.A)(o.prototype,"openReport",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"openReport"),o.prototype),(0,h.A)(o.prototype,"onPortfolioRequestLoaded",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"onPortfolioRequestLoaded"),o.prototype),(0,h.A)(o.prototype,"transitionToAnalysis",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"transitionToAnalysis"),o.prototype),o);i.d(t,["default",0,A])},283816(e,t,i){i.r(t);var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(943910),h=i(701627),m=i.n(h),g=i(558779),f=i.n(g),y=i(979295),b=i(804204);const v=(r=(0,b.inject)("partial-ownership"),o=class extends(f()){constructor(...e){super(...e),(0,u.A)(this,"partialOwnershipService",a,this),(0,u.A)(this,"router",n,this),(0,u.A)(this,"store",s,this),(0,c.A)(this,"knownPartialOwnership",null),(0,u.A)(this,"toast",l,this),(0,c.A)(this,"controllerName","app.proposal")}model(e){return this.store.findRecord("proposalView",e.view_id).then(function(e){return e.get("isThin")?e.reload():m().resolve(e)})}setupController(e,t,i){e.setupSelectedView(t),(t.get("filters")||[]).filterBy("hasRedactedElements").length&&this.get("toast").queueToast("You need permission to see certain filters in this view. Contact your firm administrator.",{type:"warning",showIcon:!0,showClose:!0});let r=t.get("items.firstObject.visualization.query"),o=e.get("proposal");i&&e.set("collapseState",null);let a=e.get("pqr");a&&a.removeTarget(this);let n=o.get("scenario.date");return o.get("scenario.perspective").then(i=>{let a=t.augmentPortfolioQueryWithProposal(r,o),s=(0,y.getOwner)(this).factoryFor("instantiable:requests/portfolio-query").create({query:a,filters:a.get("filters"),startDate:n,endDate:n,ownershipPerspective:i});s.addTarget(this);let l=(0,y.getOwner)(this).factoryFor("instantiable:requests/portfolio-query").create({query:o.generateUnfilteredTotalValuesQuery(a),startDate:n,endDate:n,ownershipPerspective:i});if(e.set("collapseAllState",!0),e.set("pqr",s),e.set("totalValuePqr",l),e.set("isDirty",!1),i!==this.get("knownPartialOwnership"))return this.partialOwnershipService.checkForPartialOwnership(i).then(t=>{this.set("knownPartialOwnership",i),e.set("hasPartialOwnership",t)})})}error(e,t){let i=e?.error,r=i?.status_code;return 403!==r&&404!==r||(t.abort(),i.shouldHideAlerts=!0,this.router.transitionTo("errors",i)),!0}onPortfolioRequestLoaded(){return!0}transitionToAnalysis(){return!0}reload(){this.setupController(this.controller,this.controller.get("selectedView"),!1)}},a=(0,d.A)(o.prototype,"partialOwnershipService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(o.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(o.prototype,"store",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(o.prototype,"toast",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.A)(o.prototype,"error",[p.action],Object.getOwnPropertyDescriptor(o.prototype,"error"),o.prototype),(0,d.A)(o.prototype,"onPortfolioRequestLoaded",[p.action],Object.getOwnPropertyDescriptor(o.prototype,"onPortfolioRequestLoaded"),o.prototype),(0,d.A)(o.prototype,"transitionToAnalysis",[p.action],Object.getOwnPropertyDescriptor(o.prototype,"transitionToAnalysis"),o.prototype),(0,d.A)(o.prototype,"reload",[p.action],Object.getOwnPropertyDescriptor(o.prototype,"reload"),o.prototype),o);i.d(t,["default",0,v])},182945(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(943910),g=i(701627),f=i.n(g),y=i(496314),b=i(804204),v=i(275609),w=i(168875),_=i(4
165058),A=i(393731);let T=(r=(0,b.inject)("reporting/open-report"),o=class extends v.default{constructor(...e){super(...e),(0,p.A)(this,"toolDisplayName","Edit Section Template"),(0,p.A)(this,"controllerName","reportTemplate"),(0,p.A)(this,"savedTransition",null),(0,d.A)(this,"featureFlags",a,this),(0,d.A)(this,"openReport",n,this),(0,d.A)(this,"popover",s,this),(0,d.A)(this,"reportContexts",l,this),(0,d.A)(this,"reportPermissions",u,this),(0,d.A)(this,"router",c,this),(0,p.A)(this,"accessControllerName","reportTemplate")}beforeModel(e){let{canManageTeamResources:t}=this.reportPermissions;return t||this.router.transitionTo("app.tools"),super.beforeModel(e)}model({report_template_id:e}){return f().hash({model:this.promiseForReportModel("reporting/report-template",e),...this.commonReportPromisesObject()})}afterModel({model:e}){let{canManageRequiredResources:t}=this.reportPermissions;e.get("isRequired")&&!t&&this.router.transitionTo("app.tools");let i={filterSetsList:this.collectFilterSetRelationships(e)};return e.get("isRequired")?i.sectionTemplateAccessWarningResolved=f().resolve(w.default.NONE):i.sectionTemplateAccessWarning=this.reportContexts.getSectionTemplateAccessWarning(e.get("id")),f().hash(i).then(({sectionTemplateAccessWarning:e,filterSetsList:t})=>{e&&this.set("sectionTemplateAccessWarning",e),A.default.loadAllFactorDisplayNames({filterSetsList:t,start:(0,_.getDefaultStartDate)(),end:(0,_.getDefaultEndDate)()})})}collectFilterSetRelationships(e){let t=[e.filterSets];return e.subsections?.forEach(e=>{t.push(...e.items.mapBy("visualization.filterSets"))}),t}setupController(e){super.setupController(...arguments),e.set("sectionTemplateAccessWarning",this.get("sectionTemplateAccessWarning")),e.set("changeContext",this.changeContext),e.set("searchTextChanged",this.searchTextChanged)}deactivate(){super.deactivate(),this.modelFor("app.reportTemplate").model.rollbackAttributes()}filterPerspective(e,t){return e.filter(function(e){let i=e.get("typeCategory");return!i?.includes(t)})}openInNewWindow(e){let t=window.open();if((0,y.isNone)(t)){let t="[unknown name]";(0,y.isNone)(e)||(t=e.get("displayName")),this.popover.showInfoDialog({headerText:"Pop-up blocked",content:`The new section template, "${t}", has been saved and can be opened from Report Section Templates in Settings. It could not be opened automatically because a pop-up was blocked. To prevent this issue, enable pop-ups from addepar.com.`})}else t.location.href=this.router.urlFor("app.reportTemplate",e)}changeContext(e){this.set("_allowDirtyTransition",!0),this.router.transitionTo("app.reportTemplate.perspective",e),this.set("_allowDirtyTransition",!1)}openExistingReport(e){this.openReport.openReportWithPerspective(e,this.controllerFor("perspective").get("model"))}continueWithoutSaving(){this.controller.previousReport?(this.controller.hideUnsavedChangesModal(),this.controller.set("isCancelWithoutSave",!0),this.controller._transitionToPreviousReport()):super.continueWithoutSaving()}saveChanges(){this.controller.previousReport?(this.controller.hideUnsavedChangesModal(),this.controller.save().then(()=>{this.controller._transitionToPreviousReport()})):super.saveChanges()}},a=(0,h.A)(o.prototype,"featureFlags",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(o.prototype,"openReport",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(o.prototype,"popover",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(o.prototype,"reportContexts",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(o.prototype,"reportPermissions",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(o.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.A)(o.prototype,"openInNewWindow",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"openInNewWindow"),o.prototype),(0,h.A)(o.prototype,"changeContext",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"changeContext"),o.prototype),(0,h.A)(o.prototype,"openExistingReport",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"openExistingReport"),o.prototype),(0,h.A)(o.prototype,"continueWithoutSaving",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"continueWithoutSaving"),o.prototype),(0,h.A)(o.prototype,"saveChanges",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"saveChanges"),o.prototype),o);const C=T;i.d(t,["default",0,C])},605804(e,t,i){i.r(t);var r=i(919089);class o extends r.default{}const a=o;i.d(t,["default",0,a])},808034(e,t,i){i.r(t);var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(943910),h=i(701627),m=i.n(h),g=i(496314),f=i(804204),y=i(275609),b=i(584927),v=i(742183),w=i(465058),_=i(508281),A=i(393731);function T(e){if(void 0===e)return;let t=Number.parseInt(e,10);return Number.isNaN(t)?void 0:t}const C="The parameter _isRepGenEnvironment=1 should only be used in conjunction with print={anything truthy}";let S=(r=class extends y.default{constructor(...e){super(...e),(0,c.A)(this,"toolDisplayName","Edit Report"),(0,c.A)(this,"controllerName","report"),(0,u.A)(this,"featureFlags",o,this),(0,u.A)(this,"logger",a,this),(0,u.A)(this,"pqrBatchParams",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"store",l,this),(0,c.A)(this,"isRepGen",!1),(0,c.A)(this,"print",!1)}beforeModel(e){let{queryParams:t}=e.to;return t.print&&!(0,g.isNone)(t.scrollToSectionIndex)&&(this.logger.error("Cannot auto scroll in print mode"),e.abort()),(0,g.isPresent)(t._isRepGenEnvironment)&&1===parseInt(t._isRepGenEnvironment)&&(0,g.isEmpty)(t.print)&&this.logger.warn(C),t._isRepGenEnvironment&&this.set("isRepGen",!0),t.print&&this.set("print",!0),this.pqrBatchParams.setParams({pqrBatchMaxSize:T(t.pqrBatchMaxSize),pqrBatchInterval:T(t.pqrBatchInterval),pqrBatchDownloadMaxSize:T(t.pqrBatchDownloadMaxSize),pqrBatchDownloadInterval:T(t.pqrBatchDownloadInterval),maxPqrInFlight:T(t.maxPqrInFlight),retrieveT0:T(t.retrieveT0),retrieveTMax:T(t.retrieveTMax),retrieveFactor:T(t.retrieveFactor),maxServerInternalErrorCount:T(t.maxServerInternalErrorCount),isRepGen:this.isRepGen}),b.default.setPqrPoolSize(T(t.pqrPoolSize)),super.beforeModel(...arguments)}model({report_id:e,_startDate:t,_endDate:i,_asOfKnowledgeDate:r}){return m().hash({model:this.promiseForReportModel("reporting/report",e).then(e=>{(0,g.isPresent)(t)&&(0,g.isPresent)(i)&&(e.set("startDate",t),e.set("endDate",i)),(0,g.isPresent)(r)&&e.set("asOfKnowledgeDate",r),this.featureFlags.flags.boolean.reporting_firm_team_access&&(this.toolDisplayName=e.n
1ame);let o=e.belongsTo("fundContext").id();return(0,g.isNone)(o)?e:this.store.findRecord("entity",o).then(()=>e)}),...this.commonReportPromisesObject()})}async afterModel({model:e}){if(this.isRepGen&&this.print){let t=this.store.peekAll("reporting/report-template"),i=function(e,t=[]){let i=function(e){return{type:D,id:e.id,modifiedAt:e.modifiedAt}}(e);return t.filter(e=>e.isTemplate).reduce((e,t)=>{return i=e,r={type:O,id:(o=t).id,modifiedAt:o.modifiedAt},i.push(r),i;var i,r,o},[i]).sort(E).map(e=>`${e.type} of id: ${e.id} which was last modified at: ${e.modifiedAt}`).join("\n")}(e,t);this.logger.info(i,null,{repGen:!0}),await this.loadFonts(_.FONT_OPTIONS,3)}return m().all(this.collectFilterSetRelationships(e)).then(t=>{let i=e.startDate??(0,w.getDefaultStartDate)(),r=e.endDate??(0,w.getDefaultEndDate)();A.default.loadAllFactorDisplayNames({filterSetsList:t,start:i,end:r})})}async loadFonts(e,t){if(0===t){let t=`Failed to load font options ${e.map(e=>e.fontName).join(", ")}.`;return this.logger.warn(t,null,{repGen:!0}),(0,v.cancelPrint)(v.REPORT_FONT_LOAD_FAILED_ERROR_CODE),m().reject(new Error("Font not loaded"))}let i=await m().allSettled(e.map(e=>document.fonts.load(`1em ${e.fontName}`))),r=this.findRejectedFonts(e,i);return(0,g.isPresent)(r)?this.loadFonts(r,t-1):m().resolve()}findRejectedFonts(e,t){return t.reduce((t,i,r)=>("rejected"===i.state&&t.push(e[r]),t),[])}collectFilterSetRelationships(e){let t=[];return e.sections?.forEach(e=>{t.push(e.filterSets),e.subsections?.forEach(e=>{t.push(...e.items.mapBy("visualization.filterSets"))})}),t}setupController(e){super.setupController(...arguments),e.set("isRouteActive",!0),this.isRepGen||e.fetchAssociatedPerspectives()}resetController(e,t){t&&e.set("isRouteActive",!1)}changeContext(e){this.set("_allowDirtyTransition",!0),this.store.findRecord(e.grentityType,e.id).then(e=>{this.router.transitionTo("app.report.perspective",e),this.set("_allowDirtyTransition",!1)})}error(e){let t=e?.error?.status_code;return t&&this.get("isRepGen")&&(0,v.cancelPrint)(t),!0}},o=(0,d.A)(r.prototype,"featureFlags",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.A)(r.prototype,"logger",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(r.prototype,"pqrBatchParams",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(r.prototype,"router",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(r.prototype,"store",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.A)(r.prototype,"changeContext",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"changeContext"),r.prototype),(0,d.A)(r.prototype,"error",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),r);const R=S,D="report",O="section_template";function E(e,t){return function(e,t){return e.type===t.type}(e,t)?function(e,t){return e.id-t.id}(e,t):function(e){return"report"===e.type?-1:1}(e)}i.d(t,["default",0,R,"isRepGenParamPresentWithoutPrintParamErrorMessage",0,C])},893697(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);const d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}beforeModel(){let e=this.modelFor("app.report").model.get("associations").getFirstThinPerspective();if(e)return this.store.findRecord(e.perspectiveType,e.id).then(e=>this.router.transitionTo("app.report.perspective",e))}},o=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},639487(e,t,i){i.r(t);var r=i(919089);class o extends r.default{}const a=o;i.d(t,["default",0,a])},783426(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204);let h=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"featureFlags",o,this),(0,l.A)(this,"firmData",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"reportPermissions",s,this)}beforeModel(){if(!Boolean(this.featureFlags.flags.boolean.reporting_module)){let{currentFirmId:e}=this.firmData;return void this.router.transitionTo("app.tools.reports.perspective.reports","firm",`${e}`)}this.reportPermissions.canAccessReporting||this.router.transitionTo("app.tools")}},o=(0,u.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"firmData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"reportPermissions",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},566265(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){this.router.transitionTo("app.reporting.reports")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},901326(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204),c=i(318035);let d=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"featureFlags",o,this)}resetController(e,t,i){super.resetController(e,t,i),t&&(e.isLoadingInitially=!0,e.access=void 0,e.lastUpdatedEnd=void 0,e.lastUpdatedStart=this.featureFlags.flags.boolean.reporting_module_last_updated_filter?(0,c.getDefaultLastUpdatedStartDate)():void 0,e.portfolios=void 0,e.runEnd=void 0,e.runStart=void 0,e.schedule=void 0,e.search=void 0,e.teams=void 0)}},o=(0,n.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},355419(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(989272),p=i(804204);let h=(r=(0,p.inject)("reporting/legacy-report-modals"),o=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"store",a,this),(0,s.A)(this,"legacyReportModals",n,this)}model(e){let{report_id:t}=e;return this.store.findRecord("reporting/report",t)}setupController(e,t,i){super.setupController(e,t,i),e.editSettings&&(e.editSettings=!1,(0,d.schedule)("afterRender",this,()=>{this.legacyReportModals.openEditReportModal(t)}))}},a=(0,l.A)(o.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(o.prototype,"legacyReportModals",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},709335(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(558779),o=i.n(r),a=i(318035);
1class n extends(o()){resetController(e,t,i){super.resetController(e,t,i),t&&(e.isLoadingInitially=!0,e.search=void 0,e.runStart=(0,a.getDefaultStartDate)(),e.runEnd=void 0,e.schedule=void 0,e.pollJobsTask.cancelAll())}}},361205(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}model(e){let{report_generation_job_id:t}=e;return this.store.findRecord("reporting/report-generation-job",t,{reload:!0})}resetController(e,t,i){super.resetController(e,t,i),t&&(e.pollSingleJob.cancelAll(),e.resetTableState())}},o=(0,n.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},470143(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){Boolean(this.featureFlags.flags.boolean.reporting_scheduler_enhancements)||this.router.transitionTo("app.reporting")}setupController(e,t,i){super.setupController(e,t,i),e.loadScheduledJobs()}resetController(e,t,i){super.resetController(e,t,i),t&&e.resetTable()}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},206413(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);const p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","settings")}model(){return this.store.findRecord("display_setting",1)}afterModel(){this.pageTitleManager.setTitle("Settings")}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},510293(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(943910),c=i(804204);let d=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}model(){return this.store.findAll("master-account")}willTransition(){this.controller.selectedMasterAccounts&&(this.controller.selectedMasterAccounts=void 0)}},o=(0,n.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.A)(r.prototype,"willTransition",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},971422(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"router",o,this),(0,s.A)(this,"permissionService",a,this),(0,s.A)(this,"featureFlags",n,this)}beforeModel(){this.featureFlags.flags.boolean.addison_amp_opt_in&&this.permissionService.hasAdmin||this.router.transitionTo("app.settings.displaySettings")}},o=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"permissionService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},761173(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(943910),c=i(421548),d=i(741389);let p=(r=class extends c.default{constructor(...e){super(...e),(0,n.A)(this,"addisonFirmRules",o,this),(0,n.A)(this,"store",a,this)}async model(){let[e,t]=await Promise.all([this.addisonFirmRules.fetchConfig(),this.store.findRecord("display-setting",1)]);return{config:e,displaySettings:t}}setupController(e,t,i){super.setupController(e,t,i),e.initFromModel()}resetController(e,t,i){super.resetController(e,t,i),e.isShowingDiscardModal=!1,e.isShowingSaveBeforeExitModal=!1}shouldConfirm(){return this.controller.isDirty}willTransition(e){let t=this.controller;
1if(this.discardChangesModal.isRetryingTransition||!this.shouldConfirm())return(0,d.removeBeforeUnloadListener)(this),!0;e.abort(),t.showSaveBeforeExitModal(e)}didTransition(){(0,d.resetRetryingTransition)(this)}},o=(0,s.A)(r.prototype,"addisonFirmRules",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"willTransition",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),(0,s.A)(r.prototype,"didTransition",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"didTransition"),r.prototype),r)},291667(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(943910),u=i(701627),c=i.n(u),d=i(639298),p=i(804204);const h=(r=class extends d.default{constructor(...e){super(...e),(0,a.A)(this,"popover",o,this),(0,n.A)(this,"accessControllerName","apiKeys"),(0,n.A)(this,"controllerName","apiKeys")}model(){return this.store.findAll("apiKey")}afterModel(e){return c().all(e.map(e=>e.contact))}addKey(){let{store:e}=this,t=this.popover;t.openModal("utils/modals/add-api-key",{confirm(){let i=e.createRecord("apiKey",{description:this.get("apiKeyDescription")});return i.save().then(()=>{t.openModal("utils/modals/show-api-key",{apiKey:i,confirm:()=>i.reload()})})}})}editKey(e){this.popover.openModal("utils/modals/edit-api-key",{apiKey:e})}deleteKey(e){this.popover.openModal("utils/modals/delete-api-key",{apiKey:e})}},o=(0,s.A)(r.prototype,"popover",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"addKey",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"addKey"),r.prototype),(0,s.A)(r.prototype,"editKey",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"editKey"),r.prototype),(0,s.A)(r.prototype,"deleteKey",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"deleteKey"),r.prototype),r);i.d(t,["default",0,h])},492141(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p,h,m,g,f=i(748096),y=i(401104),b=i(228888),v=i(448309),w=i(943910),_=i(804204),A=i(701627),T=i.n(A),C=i(336972),S=i(379485),R=i(486014);const D=(r=class extends(v.default.extend(C.default)){constructor(...e){super(...e),(0,y.A)(this,"controllerName","attributes"),(0,y.A)(this,"accessControllerName","attributes"),(0,f.A)(this,"allocationFrameworkData",o,this),(0,f.A)(this,"factorTemplateData",a,this),(0,f.A)(this,"factorArgumentTemplateData",n,this),(0,f.A)(this,"customFactorCategoryData",s,this),(0,f.A)(this,"popover",l,this),(0,f.A)(this,"toast",u,this),(0,f.A)(this,"router",c,this),(0,f.A)(this,"benchmarkData",d,this),(0,f.A)(this,"benchmarkAssociationsListData",p,this),(0,f.A)(this,"rollupTypeData",h,this),(0,f.A)(this,"featureFlags",m,this),(0,f.A)(this,"addisonFirmRules",g,this),(0,y.A)(this,"cancellationInFlight",!1)}beforeModel(e){super.beforeModel(e),this.redirectOldAttributesRoute(e)||e.isAborted||(this.benchmarkData.modelPromise,this.benchmarkAssociationsListData.modelPromise,this.rollupTypeData.modelPromise)}afterModel(e,t){return super.afterModel(e,t),this.featureFlags.flags?.boolean?.addison_amp_opt_in&&this.featureFlags.displaySettingModel?.addisonFeatures&&this.addisonFirmRules.fetchConfig(),T().hash({factorTemplate:this.factorTemplateData.modelPromise,factorArgumentTemplate:this.factorArgumentTemplateData.modelPromise,customFactorCategory:this.customFactorCategoryData.modelPromise,allocationFrameworks:this.allocationFrameworkData.modelPromise})}model(){return this.store.peekAll("factorTemplate")}setupController(e,t){super.setupController(e,t),e.updateCollapseState()}resetController(e,t){super.resetController(e,t),t&&e.set("addisonAccessFilter",null)}shouldConfirm(){return!this.routeFor(this.router.currentRouteName).skipConfirmation&&this.unsavedChanges()&&!this.get("cancellationInFlight")}redirectOldAttributesRoute(e){if("app.settings.attributes.library.index"===e.targetName)return this.router.transitionTo("app.settings.attributes");if("app.settings.attributes.library.factorTemplate.index"===e.targetName){let{params:t}=e.to.parent;return this.router.transitionTo("app.settings.attributes.factorTemplate.index",t.factor_template_id)}if("app.settings.attributes.library.factorTemplate.attributeFinder"===e.targetName){let{params:t}=e.to.parent;return this.router.transitionTo("app.settings.attributes.factorTemplate.attributeFinder",t.factor_template_id)}}createSaveAndGotoAttribute(e){let t=null;e.isFormulaBacked?t=S.default.newDefaultFormula(this.store):e.displayConditionalMap&&(t=S.default.newDefaultMapFormula(this.store,e.selectedType));let i=this.store.createRecord("factorTemplate",{category:e.category,displayName:e.displayName,outputType:e.isFormulaBacked?null:e.selectedType,formula:t,isCustom:!0,displayConditionalMap:e.displayConditionalMap,decimals:0,isMultiValue:e.isMultiValue,isPicklist:e.isPicklist});return i.save().then(()=>{this.goToAttribute(i),this.toast.queueToast("Attribute created.",{showIcon:!0,showClose:!0,type:"success"})}).catch(e=>{throw i.deleteAndDisconnectRecord(),e})}goToAttribute(e){this.router.transitionTo("app.settings.attributes.factorTemplate",e).then(()=>
1this.controller.expandCategory(e.get("category")))}unsavedChanges(){return!!this.modelFor("app.settings.attributes.factorTemplate")&&!!this.controllerFor("app.settings.attributes.factor-template.index").isDirty}confirmDiscardChanges(e,t,i){return this.popover.showConfirmDialog({headerText:"Your factor contains unsaved changes",content:"Any unsaved changes will be lost.",confirmText:"Proceed",confirm:()=>(this.set("cancellationInFlight",!0),this.controller.send("discardChanges"),e.apply(t,i))})}checkDiscardChangesThen(e,t,i){return this.shouldConfirm()?this.confirmDiscardChanges(e,t,i):e.apply(t,i)}deleteCat(e){this.controller.set("isShowingDeleteCategoryModal",!0),this.controller.set("categorySetForDeletion",e)}updateAttributesCategories(e,t){let i=this.controllerFor("app.settings.attributes.factor-template.index"),r=i.get("model");e.forEach(e=>{e.set("category",t),e===r&&i.categoryChanged()})}selectAttr(e){this.checkDiscardChangesThen(this.router.transitionTo,this,["app.settings.attributes.factorTemplate",e])}deselectAttributeAndTransitionToLibrary(){this.checkDiscardChangesThen(()=>{this.router.transitionTo("app.settings.attributes.index")},this,[])}deleteAttribute(e){let t=this.controllerFor("app.settings.attributes.factor-template.index");t.set("isBeingDeleted",!0);let i=e.get("displayName")||"";t.set("isLoading",!0),e.destroyRecord().then(()=>{this.shouldConfirm()&&this.controller.send("discardChanges"),i=e.get("displayName")||"",this.toast.queueToast(`Attribute ${i} deleted.`,{showIcon:!0,showClose:!0,type:"success"}),this.router.transitionTo("app.settings.attributes")},()=>{e.transitionTo("loaded.saved")}).finally(()=>{t.set("isLoading",!1),t.set("isBeingDeleted",!1)})}createCustomAttribute(e=R.DEFAULT_CATEGORY){this.popover.openModal("utils/modals/create-attribute",{target:this,canEditConditionals:this.canEditConditionals,confirm:t=>this.checkDiscardChangesThen(this.createSaveAndGotoAttribute,this,[{category:e,displayName:t.get("name"),selectedType:t.get("outputType"),isFormulaBacked:t.get("isFormulaBacked"),displayConditionalMap:t.get("displayConditionalMap"),isMultiValue:t.get("isMultiValue"),isPicklist:t.get("isPicklist")}])})}createTableCustomAttr(e){return this.checkDiscardChangesThen(this.createSaveAndGotoAttribute,this,[e])}_duplicateAttribute(e,t){let i={key:null,displayName:t,description:e.description,outputType:e.outputType,dateFormat:e.dateFormat,specId:e.specId,scheduledValuesJobId:e.sc
1heduledValuesJobId,scheduledUsagesJobId:e.scheduledUsagesJobId,hidden:e.hidden,isPii:e.isPii,isCustom:e.isCustom,isTimebox:e.isTimebox,displayConditionalMap:e.displayConditionalMap,canOrder:e.canOrder,canBucket:e.canBucket,decimals:e.decimals,inheritanceType:e.inheritanceType,rollupMethodology:e.rollupMethodology,isPerformanceDate:e.isPerformanceDate,rollupsIgnoreNoData:e.rollupsIgnoreNoData,preferExplicitOverRollup:e.preferExplicitOverRollup,applyFormulaAtPositionLevel:e.applyFormulaAtPositionLevel,suppressRollupAboveSecurity:e.suppressRollupAboveSecurity,isSecurityGrouping:e.isSecurityGrouping,outputTypeFamily:e.outputTypeFamily,attrField:e.attrField,attributeTimepointType:e.attributeTimepointType,isMultiValue:e.isMultiValue,isPicklist:e.isPicklist,isAddebillExemptFactor:e.isAddebillExemptFactor,usesCustomTimeArgs:e.usesCustomTimeArgs,category:e.category,associatedInspections:e.associatedInspections,contexts:e.contexts,defaultValue:e.defaultValue,isTimeboxableFormula:e.isTimeboxableFormula,visibility:e.visibility,formula:e.get("formula"),defaultFactor:e.get("defaultFactor")},r=e.get("rollupWeightFactor"),o=this.store.createRecord("factorTemplate",i
1);"weighted_average"===o.get("rollupMethodology")&&r&&o.set("rollupWeightFactor",r),o.save().then(()=>o.attachAuxiliaries()).then(()=>o.copyAuxiliaries(e)).then(()=>{this.toast.queueToast("Attribute duplicated.",{showIcon:!0,showClose:!0,type:"success"}),this.goToAttribute(o)}).catch(e=>{throw o.destroyRecord(),e})}duplicateTableAttr(e,t){e.attachAuxiliaries().then(()=>this._duplicateAttribute(e,t))}duplicateAttribute(e){let t=`Copy of ${e.get("displayName")}`,i="normal";e.get("displayConditionalMap")?i="map":e.get("formula")&&(i="formulaBacked"),this.popover.openModal("utils/modals/create-attribute",{isCloning:!0,target:this,canEditConditionals:this.canEditConditionals,name:t,attributeType:i,outputType:e.get("outputType"),isPicklist:e.get("isPicklist"),isMultiValue:e.get("isMultiValue"),confirm:t=>{e.attachAuxiliaries().then(()=>this._duplicateAttribute(e,t.get("name")))}})}createCustomCategory(e){this.popover.openModal("utils/modals/create-category",{target:this,existingNames:e,headerText:"Create Attribute Category",confirmText:"Create",confirm:({name:e})=>{let t=this.store.createRecord("customFactorCategory",{name:e});t.save().catch(e=>{throw t.deleteAndDisconnectRecord(),e})}})}editCustomCategory(e,t){let i=e.get("name"),r=this.controller.get("model").filterBy("category",i);this.popover.openModal("utils/modals/create-category",{target:this,existingNames:t.filter(e=>e!==i),name:e.get("name"),enforceModality:!0,variant:"comfortable danger",headerText:"Edit Attribute Category",confirmText:"Save",closeText:"Cancel",cancelText:"Delete",confirm:({name:t})=>{i!==t&&(e.set("name",t),e.save().then(()=>{this.updateAttributesCategories(r,t);let e=this.controller.get("expandedCategories");e.includes(i)&&(e.removeObject(i),e.addObject(t)),this.get("toast").queueToast("Changes saved.",{showIcon:!0,showClose:!0,type:"success"})}).catch(t=>{throw e.rollbackAttributes(),t}))},cancel:()=>
1this.deleteCat(e)})}factorTemplateLoaded(){this.set("cancellationInFlight",!1)}},o=(0,b.A)(r.prototype,"allocationFrameworkData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,b.A)(r.prototype,"factorTemplateData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,b.A)(r.prototype,"factorArgumentTemplateData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,b.A)(r.prototype,"customFactorCategoryData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,b.A)(r.prototype,"popover",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,b.A)(r.prototype,"toast",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,b.A)(r.prototype,"router",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,b.A)(r.prototype,"benchmarkData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,b.A)(r.prototype,"benchmarkAssociationsListData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,b.A)(r.prototype,"rollupTypeData",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,b.A)(r.prototype,"featureFlags",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,b.A)(r.prototype,"addisonFirmRules",[_.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.A)(r.prototype,"deleteCat",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"deleteCat"),r.prototype),(0,b.A)(r.prototype,"updateAttributesCategories",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"updateAttributesCategories"),r.prototype),(0,b.A)(r.prototype,"selectAttr",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"selectAttr"),r.prototype),(0,b.A)(r.prototype,"deselectAttributeAndTransitionToLibrary",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"deselectAttributeAndTransitionToLibrary"),r.prototype),(0,b.A)(r.prototype,"deleteAttribute",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"deleteAttribute"),r.prototype),(0,b.A)(r.prototype,"createCustomAttribute",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"createCustomAttribute"),r.prototype),(0,b.A)(r.prototype,"createTableCustomAttr",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"createTableCustomAttr"),r.prototype),(0,b.A)(r.prototype,"duplicateTableAttr",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"duplicateTableAttr"),r.prototype),(0,b.A)(r.prototype,"duplicateAttribute",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"duplicateAttribute"),r.prototype),(0,b.A)(r.prototype,"createCustomCategory",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"createCustomCategory"),r.prototype),(0,b.A)(r.prototype,"editCustomCategory",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"editCustomCategory"),r.prototype),(0,b.A)(r.prototype,"factorTemplateLoaded",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"factorTemplateLoaded"),r.prototype),r);i.d(t,["default",0,D])},408539(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n,s=i(748096),l=i(228888),u=i(804204),c=i(558779),d=i.n(c);let p=(r=(0,u.inject)("permission-service"),o=class extends(d()){constructor(...e){super(...e),(0,s.A)(this,"permission",a,this),(0,s.A)(this,"router",n,this)}beforeModel(){this.permission.hasAdmin&&this.permission.hasAllData||this.router.transitionTo("app.settings.attributes.index")}},a=(0,l.A)(o.prototype,"permission",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(o.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},205291(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"featureFlags",a,this)}beforeModel(){this.featureFlags.flags.boolean.bulk_attribute_configurations||this.router.transitionTo("/app/settings/attributes")}},o=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},921114(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(558779),c=i.n(u);let d=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.featureFlags.flags.boolean.bulk_attribute_configurations||this.router.transitionTo("/app/sett
1ings/attributes")}},o=(0,s.A)(r.prototype,"featureFlags",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},689838(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(943910),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this),(0,n.A)(this,"_fetchedAuxiliaries",new Set)}model(e){return this.store.findRecord("factor_template",e.factor_template_id)}afterModel(e){let t=!this._fetchedAuxiliaries.has(e.get("id"));return this._fetchedAuxiliaries.add(e.get("id")),e.attachAuxiliaries(t),e}setupController(e,t){super.setupController(e,t),this.controllerFor("attributes").expandCategory(t.get("category"))}deactivate(){this._fetchedAuxiliaries.clear()}duplicate(e){this.routeFor("app.settings.attributes").send("duplicateAttribute",e)}transitionToTable(){this.routeFor("app.settings.attributes").send("deselectAttributeAndTransitionToLibrary")}},o=(0,s.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"duplicate",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"duplicate"),r.prototype),(0,s.A)(r.prototype,"transitionToTable",[l.action],Object.getOwnPropertyDescriptor(r.prototype,"transitionToTable"),r.prototype),r)},696998(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(503454);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","attributeFinder"),(0,r.A)(this,"controllerName","attributeFinder"),(0,r.A)(this,"skipConfirmation",!0)}setupController(e,t){super.setupController(e,t),this.controllerFor("app.settings.attributes.factor-template.index").set("model",t)}}},383805(e,t,i){i.r(t);var r=i(496314),o=i(943910),a=i(558779),n=i.n(a),s=i(989272),l=i(804204),u=i(358426),c=i(318035);const d=n().extend({factorPoliciesService:(0,l.inject)("factor-policies"),featureFlags:(0,l.inject)("feature-flags"),addisonFirmRules:(0,l.inject)("addison-firm-rules"),popover:(0,l.inject)(),router:(0,l.inject)(),store:(0,l.inject)(),toast:(0,l.inject)(),setupController(e,t){if(this._super(...arguments),e.updateController(),this._setupConditional(t,e),this.featureFlags.flags.boolean.addison_amp_opt_in&&this.featureFlags.displaySettingModel?.addisonFeatures){let t=()=>{let t=e.get("model.specId"),i=this.addisonFirmRules.isAttributeAllowed(t)?"allow":"block";e.set("addisonAvailability",i),(0,s.scheduleOnce)("afterRender",null,()=>{e.set("isAddisonAvailabilityChanged",!1)})};this.addisonFirmRules.config?t():this.addisonFirmRules.fetchConfig().then(t).catch(()=>{e.set("addisonAvailability","block")})}},resetController(e){this._super(...arguments),e.set("isAddisonAvailabilityChanged",!1)},_setupConditional(e,t){if(e.get("formula")&&e.get("displayConditionalMap")){let i=u.default.fromFormula(e.get("formula"),e.get("outputType"),this.store,Boolean(this.featureFlags.flags.boolean.factor_formula_switch_operator));t.set("formulaBackedConditional",i)}},_typesForWeightFactor:(0,o.computed)(()=>["number","percent","money"]),actions:{error(e,t){let i=e?.error,r=i?.status_code;return 403!==r&&404!==r||(t.abort(),i.shouldHideAlerts=!0,this.router.transitionTo("errors",i)),!0},showFactorEditor(){let e=this.modelFor("app.settings.attributes.factorTemplate"),t={targetElement:document.querySelector(".js-add-default-factor-button"),factorTemplateFilter:t=>t!==e&&t.get("outputTypeFamily")===e.get("outputType"),startDate:(0,c.getDefaultStartDate)(),endDate:(0,c.getDefaultEndDate)()};this.popover.showFactorChooser(t,e=>(this.controller.set("defaultFactor",e),e.updateDisplayNames((0,c.getDefaultStartDate)(),(0,c.getDefaultEndDate)())))},showRollupWeightFactorEditor(){let e=this.get("_typesForWeightFactor"),t=["percent_of_portfolio",this.modelFor("app.settings.attributes.factorTemplate").get("id")],i={targetElement:document.querySelector(".js-add-weight-factor-button"),startDate:(0,c.getDefaultStartDate)(),endDate:(0,c.getDefaultEndDate)(),factorTemplateFilter(i){let r=i.get("id")||i.get("templateId")||i.get("configurationHash.template_id");return e.includes(i.get("outputType"))&&!t.includes(r)}};this.popover.showFactorChooser(i,e=>(this.controller.set("rollupWeightFactor",e),e.updateDisplayNames((0,c.getDefaultStartDate)(),(0,c.getDefaultEndDate)())))},cancel(){this.controller.set("isEditingFormula",!1);let e=this.controller.get("model"),t=e.getOutputModel(this.controller.get("hasIsPicklistChanged"));e.rollbackAttributes(),e.get("isDeleted")?this.router.transitionTo("app.settings.attributes"):((0,r.isNone)(t)||(t.rollbackAttributes(),t.reload().then(()=>this.controller.set("hasAttributeChanged",!1))),this.get("controller").get("isBeingDeleted")||e.reload().then(e=>e.attachAuxiliaries().then(()=>this.controller.updateController())),this._setupConditional(e,this.controller)),this.controller.showRecommendedAttributesList&&this.factorPoliciesService.isDirtyForFactor(this.controller.factorTemplateId)&&(this.factorPoliciesService.rollbackForFactor(this.controller.factorTemplateId),this.controller.updateRecommendedAttributesDirtyState()),this.controller.set("isAddisonAvailabilityChanged",!1)},save(){let e=this.controller;e.set("isBeingSaved",!0);let t=this.featureFlags.flags.boolean.addison_amp_opt_in&&this.featureFlags.displaySettingModel?.addisonFeatures&&this.addisonFirmRules.config&&e.get("isAddisonAvailabilityChanged");t&&e.set("isAddisonAvailabilityChanged",!1),e.save().then(()=>
1{if(this.purgeNoIdRecords(e.get("configConstraints")),e.updateController(),t){let t,i=e.get("model.specId"),r=e.get("addisonAvailability"),o=this.addisonFirmRules.config.attributes,a=this.addisonFirmRules.config.rules.denylist||[];if("allow"===r){let r=[...o.filter(e=>e.spec_id!==i).map(e=>({spec_id:e.spec_id,display_name:e.display_name,trigger_keywords:e.trigger_keywords})),{spec_id:i,display_name:e.get("model.displayName")||"",trigger_keywords:[]}],n=a.filter(e=>e!==i);t=this.addisonFirmRules.upsertAttributes(r).then(()=>this.addisonFirmRules.updateRules(this.addisonFirmRules.config.rules.rules,n).then(()=>this.addisonFirmRules.fetchConfig()))}else if("block"===r){let e=[...new Set([...a,i])];t=this.addisonFirmRules.updateRules(this.addisonFirmRules.config.rules.rules,e).then(()=>this.addisonFirmRules.fetchConfig())}return t?t.then(()=>{this.toast.queueToast("Attribute updated.",{showIcon:!0,showClose:!0,type:"success"})}).catch(()=>{this.toast.queueToast("Attribute saved, but Addison settings failed to update.",{showIcon:!0,showClose:!0,type:"warning"})}):void this.toast.queueToast("Attribute updated.",{showIcon:!0,showClose:!0,type:"success"})}this.toast.queueToast("Attribute updated.",{showIcon:!0,showClose:!0,type:"success"})}).finally(()=>{e.set("isBeingSaved",!1)})},didTransition(){return this.send("factorTemplateLoaded"),!0}},purgeNoIdRecords(e){e.filter(e=>null===e.get("id")).forEach(t=>e.removeObject(t))}}),p=d;i.d(t,["default",0,p])},208918(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"toolDisplayName","Attribute Library"),(0,r.A)(this,"controllerName","attributes"),(0,r.A)(this,"accessControllerName","attributes")}}const n=a;i.d(t,["default",0,n])},77740(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","auditTrail"),(0,r.A)(this,"controllerName","auditTrail"),(0,r.A)(this,"toolDisplayName","Audit Log")}}const n=a;i.d(t,["default",0,n])},520636(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","benchmarks"),(0,r.A)(this,"accessControllerName","benchmarks")}}},279851(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(701627),p=i.n(d),h=i(804204),m=i(639298),g=i(583479);const f=(r=class extends m.default{constructor(...e){super(...e),(0,u.A)(this,"accessControllerName","benchmarkAssociationsList"),(0,u.A)(this,"controllerName","benchmarkAssociationsLists"),(0,u.A)(this,"toolDisplayName","Benchmark Associations"),(0,l.A)(this,"benchmarkData",o,this),(0,l.A)(this,"benchmarkAssociationsListData",a,this),(0,l.A)(this,"factorTemplateData",n,this),(0,l.A)(this,"factorArgumentTemplateData",s,this)}model(){return this.benchmarkAssociationsListData.modelPromise}afterModel(...e){return super.afterModel(...e),p().all([this.benchmarkData.modelPromise,this.factorTemplateData.modelPromise,this.factorArgumentTemplateData.modelPromise])}setupController(...e){super.setupController(...e);let t=this.store,i=t.peekAll("factorTemplate").filter(e=>e.get("contexts")?.includes("benchmark_association")).map(e=>g.default.createFromTemplate(t,e));return this.controllerFor("factors").set("model",i),this.controllerFor("benchmarkLibrary").set("model",t.peekAll("benchmark"))}},o=(0,c.A)(r.prototype,"benchmarkData",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"benchmarkAssociationsListData",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"factorTemplateData",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"factorArgumentTemplateData",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,f])},446254(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(503454),d=i(943910),p=i(804204);let h=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"popover",o,this),(0,s.A)(this,"store",a,this),(0,s.A)(this,"toast",n,this),(0,l.A)(this,"controllerName","benchmarkAssociationsList"),(0,l.A)(this,"accessControllerName","benchmarkAssociationsList")}model(e){return this.store.peekRecord("benchmarkAssociationsList",e.benchmark_associations_list_id)}setupController(e,t){super.setupController(...arguments),t.get("benchmarkAssociations").then(e=>{this.controllerFor("benchmarkAssociations").set("allRecords",e.toArray()),e.isAny("hasRedactedValues")&&this.get("toast").queueToast("You need permission to see certain filters in this view. Contact your firm administrator.",{type:"warning",showIcon:!0,showClose:!0})})}willTransition(e){return!!this.controller.get("isClean")||(e.abort(),this.popover.showConfirmDialog({headerText:"Confirm Cancellation",content:"You are currently editing a benchmark associations list. Any unsaved changes will be lost.",confirmText:"Proceed",confirm:()=>(this.set("controller.isCancelling",!0),this.controller.discardChanges(),this.set("controller.isCancelling",!1),e.retry())}))}},o=(0,u.A)(r.prototype,"popover",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"toast",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(r.prototype,"willTransition",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);const m=h;i.d(t,["default",0,m])},754035(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(639298),u=i(804204);let c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this),(0,n.A)(this,"toolDisplayName","Benchmarks"),(0,n.A)(this,"controllerName","benchmarks"),(0,n.A)(this,"accessControllerName","benchmarks")}beforeModel(){this.routeFor("app.settings.benchmarks.library").get("canAccessRoute")?this.router.transitionTo("app.settings.benchmarks.library"):this.routeFor("app.settings.benchmarks.associations").get("canAccessRoute")?this.router.transitionTo("app.settings.benchmarks.associations"):this.transitionToFallback()}},o=(0,s.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)}
1,455728(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(804204),u=i(639298);let c=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"accessControllerName","benchmarkLibrary"),(0,n.A)(this,"toolDisplayName","Benchmark Library"),(0,n.A)(this,"controllerName","benchmarkLibrary"),(0,a.A)(this,"benchmarkData",o,this)}model(){return this.benchmarkData.modelPromise.then(e=>(this.controllerFor("benchmarkLibrary").set("model",e),e.rejectBy("isAdvanced")))}},o=(0,s.A)(r.prototype,"benchmarkData",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},514655(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(421548),c=i(804204),d=i(701627),p=i.n(d);let h=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this),(0,s.A)(this,"controllerName","benchmarkLibraryEdit")}model(e,t){return"null"===e.benchmark_id?(t.abort(),this.router.transitionTo("app.settings.benchmarks.library")):this.store.findRecord("benchmark",e.benchmark_id)}shouldConfirm(){return this.controller.isDirty}afterModel(e){return e.get("isImported")?e.get("importedBenchmarkData"):p().resolve()}},o=(0,l.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},493816(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","benchmarkLibraryEdit")}}},456031(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(558779),d=i.n(c),p=i(804204);let h=(r=class extends(d()){constructor(...e){super(...e),(0,s.A)(this,"store",o,this),(0,s.A)(this,"permissionService",a,this),(0,s.A)(this,"router",n,this),(0,l.A)(this,"controllerName","benchmarkLibraryEdit")}beforeModel(){this.permissionService.hasAdmin||this.router.transitionTo("app.settings.benchmarks.library")}},o=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"permissionService",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},372869(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(639298),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"brandingSettings",o,this),(0,n.A)(this,"toolDisplayName","Branding Settings"),(0,n.A)(this,"accessControllerName","brandingSettings"),(0,n.A)(this,"controllerName","brandingSettings")}model(){return this.brandingSettings.getAllPortalRecommendedBannerImagesTask.perform(),this.store.findRecord("brandingSettings","0")}},o=(0,s.A)(r.prototype,"brandingSettings",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},694843(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);const p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"controllerName","brandingSettings"),(0,n.A)(this,"credential",o,this),(0,n.A)(this,"router",a,this)}beforeModel(...e){this.credential.isAddeparUser||this.router.transitionTo("app.settings.brandingSettings"),super.beforeModel(...e)}model(){return this.modelFor("app.settings.branding-settings")}},o=(0,l.A)(r.prototype,"credential",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},532342(e,t,i){i.r(t),i.d(t,{default:()=>u});var r,o=i(401104),a=i(228888),n=i(943910),s=i(558779),l=i.n(s);let u=(r=class extends(l()){constructor(...e){super(...e),(0,o.A)(this,"controllerName","brandingSettings")}model(){return this.modelFor("app.settings.branding-settings")}setupController(e){super.setupController(...arguments),e.set("selectedView","split")}revert(e){this.send("revertWithMessage",e,"This will revert Email branding settings to Addepar's default settings. This action cannot be undone.")}},(0,a.A)(r.prototype,"revert",[n.action],Object.getOwnPropertyDescriptor(r.prototype,"revert"),r.prototype),r)},935348(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this),(0,n.A)(this,"controllerName","brandingSettings")}model(e){return this.store.findRecord("brandingSettingsEmailContent",e.email_type_id)}setupController(e,t){let i=parseInt(t.get("id"));return e.set("selectedEmailTemplateId",i.toString()),super.setupController(...arguments),this.controller.set("contentSettings",t),this.controller.send("previewEmail",i)}},o=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},269317(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(804204),u=i(558779),c=i.n(u);let d=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}redirect(){this.router.transitionTo("app.settings.brandingSettings.email.content",1)}},o=(0,s.A)(r.prototype,"featureFlags",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},377198(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(558779),d=i.n(c),p=i(701627),h=i(804204);let m=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"controllerName","brandingSettings"),(0,s.A)(this,"store",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"session",n,this)}model(){let e=this.session.firmId;return(0,p.hash)({brandingSettings:this.modelFor("app.settings.branding-settings"),teams:this.store.findAll("team").then(e=>e.filter(e=>e.isNotRestricted)),firm:this.store.peekRecord("firm",e)})}setupController(e,t){super.setupController(...arguments),e.set("model",t.brandingSettings),e.setProperties({firm:t.firm,teams:t.teams})}},o=(0,u.A)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"session",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},683893(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(421548),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"controllerName","brandingSettings"),(0,a.A)(this,"featureFlags",o,this)}model(){return this.modelFor("app.settings.branding-settings")}setupController(e,t){super.setupController(e,t),e.set("isDarkModeEnabled",t.isDarkModeEnabled)}shouldConfirm(){return this.controller.isDirty}},o=(0,s.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},659197(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);const d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"controllerName","brandingSettings"),(0,a.A)(this,"router",o,this)}beforeModel(e){if(e.from?.name.includes("app.settings.brandingSettings.portal.team")){let t=e.from.params.team_id;this.router.transitionTo("app.settings.brandingSettings.general.team",t)}else this.router.transitionTo("app.settings.brandingSettings.general.firm")}},o=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},971812(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(421548),u=i(804204);let c=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"controllerName","brandingSettings"),(0,a.A)(this,"store",o,this)}setupController(e,{brandingSettingsTeam:t,team:i}){super.setupController(e,t),e.setProperties({model:t,isTeamBrandingEnabled:i.isBrandingEnabled,isDarkModeEnabled:t.isDarkModeEnabled})}async model(){let e,t=this.paramsFor("app.settings.branding-settings.general.team").team_id,{store:i}=this,r=await i.findRecord("team",t);if(r.isBrandingEnabled)e=await i.findRecord("brandingSettingsTeam",t,{reload:!0});else{let t=i.adapterFor("branding-settings-team"),o=await t.fetchDefaults();e=i.createRecord("brandingSettingsTeam",{team:r,...o})}return{brandingSettingsTeam:e,team:r}}shouldConfirm(){let{controller:e}=this,{model:t,isTeamBrandingEnabled:i}=e;return t.isNew?i:t.hasDirtyAttributes||!i}},o=(0,s.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},706702(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(639298),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this),(0,n.A)(this,"toolDisplayName","Branding Settings"),(0,n.A)(this,"accessControllerName","brandingSettings")}beforeModel(){this.router.transitionTo("app.settings.brandingSettings.general.firm")}},o=(0,s.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},463099(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(401104),o=i(558779),a=i.n(o),n=i(701627);class s extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","brandingSettings")}model(){return(0,n.hash)({brandingSettings:this.modelFor("app.settings.branding-settings")})}setupController(e,t){super.setupController(...arguments),e.set("model",t.brandingSettings),e.set("selectedView","split")}}},904390(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(701627);let m=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"controllerName","brandingSettings"),(0,s.A)(this,"session",o,this),(0,s.A)(this,"store",a,this),(0,s.A)(this,"brandingSettings",n,this)}model(){let e=this.session.firmId;return(0,h.hash)({firm:this.store.peekRecord("firm",e),teams:this.store.findAll("team").then(e=>e.filterBy("isNotRestricted"))})}setupController(e,{firm:t,teams:i}
1){super.setupController(...arguments),e.setProperties({firm:t,teams:i})}},o=(0,u.A)(r.prototype,"session",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"brandingSettings",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);const g=m;i.d(t,["default",0,g])},189869(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(421548),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"controllerName","brandingSettings"),(0,a.A)(this,"featureFlags",o,this)}model(){return this.modelFor("app.settings.branding-settings")}shouldConfirm(){return this.get("controller.isDirty")}},o=(0,s.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},59125(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);const p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"controllerName","brandingSettings"),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}beforeModel(e){let t;if(e.from?.name.includes("app.settings.brandingSettings.general.team")){let i=e.from.params.team_id;t=this.store.peekRecord("team",i)}t?.isBrandingEnabled?this.router.transitionTo("app.settings.brandingSettings.portal.team",t.id):this.router.transitionTo("app.settings.brandingSettings.portal.firm")}},o=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},628524(e,t,i){i.r(t);var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(421548),m=i(804204);const g=(r=(0,i(683681)._W)(function*(e){let t,i=this.get("controller"),r=this.store;i.set("isLoading",!0);let o=r.findRecord("team",e);t=yield r.findRecord("brandingSettingsTeam",e,{reload:!0}),yield o,i.setProperties({model:t,isLoading:!1,isTeamBrandingEnabled:!0})}).restartable(),o=class extends h.default{constructor(...e){super(...e),(0,d.A)(this,"controllerName","brandingSettings"),(0,c.A)(this,"featureFlags",a,this),(0,c.A)(this,"store",n,this),(0,c.A)(this,"popover",s,this),(0,c.A)(this,"brandingSettings",l,this),(0,c.A)(this,"loadBrandingSettingsTeamTask",u,this)}setupController(){let e=this.paramsFor("app.settings.branding-settings.portal.team");this.get("loadBrandingSettingsTeamTask").perform(e.team_id)}
1shouldConfirm(){return!this.get("controller.isLoading")&&this.get("controller.model").get("hasDirtyAttributes")}},a=(0,p.A)(o.prototype,"featureFlags",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,p.A)(o.prototype,"store",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(o.prototype,"popover",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(o.prototype,"brandingSettings",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(o.prototype,"loadBrandingSettingsTeamTask",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o);i.d(t,["default",0,g])},355897(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(448309),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"toolDisplayName","Calculation Settings"),(0,n.A)(this,"controllerName","calculationSettings"),(0,n.A)(this,"accessControllerName","calculationSettings"),(0,a.A)(this,"factorTemplateData",o,this)}shouldConfirm(){return this.controller.isDirty}setupController(e,t){return e.set("previousHash",t.serialize())}afterModel(...e){return super.afterModel(...e),this.factorTemplateData.modelPromise}},o=(0,s.A)(r.prototype,"factorTemplateData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},707855(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(639298),d=i(804204),p=i(661962);const h=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"router",o,this),(0,s.A)(this,"contentLibraryData",a,this),(0,s.A)(this,"store",n,this),(0,l.A)(this,"accessControllerName","app.settings.content-library"),(0,l.A)(this,"clientId",p.CONTENT_LIBRARY_CLIENT_ID)}async model(){return(await this.store.findAll("acl-client")).toArray()}redirect(e){if(1===e.length){let t=e[0];this.router.transitionTo("app.settings.contentLibrary.client",t)}}},o=(0,u.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"contentLibraryData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,h])},654925(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(639298),d=i(804204),p=i(470310),h=(i(44384),i(943910));const m=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"contentLibraryData",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"store",n,this),(0,l.A)(this,"accessControllerName","app.settings.content-library.client"),(0,l.A)(this,"resourceTypes",[])}model(e){return this.store.findRecord("acl-client",e.client_id)}async afterModel(e){let t=await this.contentLibraryData.resourceTypesModelPromiseForClient(e.id);this.resourceTypes=t.slice().sort((e,t)=>e.order-t.order)}redirect(e,t){this.resourceTypes.length&&"app.settings.contentLibrary.client.index"===t.to.name&&this.router.transitionTo("app.settings.contentLibrary.client.resourceType",e,this.resourceTypes[0])}setupController(e,t,i){super.setupController(e,t,i),e.routedTabOptions=this.resourceTypes.map(e=>({label:(0,p.td)(e.displayName),route:"app.settings.contentLibrary.client.resourceType",models:[t.id,e.id]}))}willTransition(e){this.controller.setExportOverlayArgs(null),e.to?.name.includes("app.settings.contentLibrary")||this.contentLibraryData.resetExportableResources()}},o=(0,u.A)(r.prototype,"contentLibraryData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(r.prototype,"willTransition",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);i.d(t,["default",0,m])}
1,770709(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(804204),u=i(639298);const c=(r=class extends u.default{constructor(...e){super(...e),(0,a.A)(this,"artifactTagData",o,this),(0,n.A)(this,"accessControllerName","app.settings.content-library.client.resource-type")}async afterModel(){await this.artifactTagData.modelPromise}},o=(0,s.A)(r.prototype,"artifactTagData",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},672248(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(558779),o=i.n(r);class a extends(o()){model(){return this.modelFor("app.settings.contentLibrary")}}},741767(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","dataVerificationExclusion"),(0,r.A)(this,"accessControllerName","dataVerificationExclusion"),(0,r.A)(this,"toolDisplayName","Data Verification Exclusions")}setupController(e,t){super.setupController(e,t),e.loadData()}}const n=a;i.d(t,["default",0,n])},832768(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(639298),u=i(804204),c=i(701627),d=i.n(c);const p=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"accessControllerName","displaySettings"),(0,n.A)(this,"toolDisplayName","Display Settings"),(0,n.A)(this,"controllerName","displaySettings"),(0,a.A)(this,"session",o,this)}model(){let e=this.session.firmSubdomain;return d().hash({displaySettings:this.store.findRecord("display_setting",1),portalDisclosure:this.store.query("disclosure",{subdomain:e}),portalSettings:this.store.findRecord("portalSettings","0")})}setupController(e,t){return e.get("firmDisplaySettings")&&e.get("firmDisplaySettings").rollbackAttributes(),e.get("portalDisclosure")&&e.get("portalDisclosure").rollbackAttributes(),e.get("portalSettings")&&e.get("portalSettings").rollbackAttributes(),e.set("firmDisplaySettings",t.displaySettings),e.set("portalDisclosure",t.portalDisclosure.firstObject),e.set("portalSettings",t.portalSettings),t.displaySettings.externalFilesLink&&e.set("showExternalFilesLinkInput",!0),e.set("previousHash",{...t.displaySettings.serialize(),...t.portalDisclosure.firstObject.serialize(),...e.get("showPortalVersionToggle")?t.portalSettings.serialize():{}})}},o=(0,s.A)(r.prototype,"session",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},486381(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(804204),p=i(496314),h=i(639298),m=i(701627),g=i.n(m);const f=(r=class extends h.default{constructor(...e){super(...e),(0,u.A)(this,"accessControllerName","feeSchedules"),(0,u.A)(this,"toolDisplayName","Fee Schedules"),(0,u.A)(this,"controllerName","feeSchedules"),(0,l.A)(this,"factorTemplateData",o,this),(0,l.A)(this,"featureFlags",a,this),(0,l.A)(this,"feeScheduleData",n,this),(0,l.A)(this,"router",s,this)}beforeModel(e){super.beforeModel(e);let t=this.controllerFor("feeSchedule").get("model");if(!(0,p.isNone)(t))return this.router.transitionTo("app.settings.feeSchedules.item",t)}model(){return g().hash({feeSchedules:this.feeScheduleData.modelPromise,factorArgumentTemplate:this.store.findRecord("factorArgumentTemplate","accrued"),factorTemplates:this.factorTemplateData.get("modelPromise")})}setupController(e,{feeSchedules:t,factorArgumentTemplate:i}){if(!this.featureFlags.flags.boolean.enable_classic_billing_module)return this.featureFlags.flags.boolean.new_billing_module?void this.router.transitionTo("app.billing.fee-schedules"):void this.router.transitionTo("app");e.set("model",t),this.controllerFor("feeSchedule").set("accrualTypes",i.get("values"))}},o=(0,c.A)(r.prototype,"factorTemplateData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"feeScheduleData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,f])},299407(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(804204),u=i(639298),c=i(824157);const d=(r=class extends u.default{constructor(...e){super(...e),(0,a.A)(this,"ajax",o,this),(0,n.A)(this,"accessControllerName","feeSchedule"),(0,n.A)(this,"toolDisplayName","Fee Schedules"),(0,n.A)(this,"controllerName","feeSchedule")}activate(){return this.store.findRecord("factorTemplate","asset_class").then(e=>this.ajax.ajax({url:`/public/factor_outputs/${e.id}`}).then(e=>{let t=e&&e.data;return(t&&t.factor_outputs||[]).map(c.camelizeObject)}).then(e=>{this.controllerFor("feeSchedule").set("assetClasses",e.map(e=>({value:e})))}))}model(e){return this.store.findRecord("feeSchedule",e.fee_schedule_id)}},o=(0,s.A)(r.prototype,"ajax",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},814421(e,t,i){i.r(t),i.d(t,{default:()=>T});var r,o,a,n,s,l,u,c,d,p,h,m=i(748096),g=i(401104),f=i(228888),y=i(558779),b=i.n(y),v=i(804204),w=i(943910),_=i(640626),A=i(429688);let T=(r=(0,_.readOnly)("permissionService.canAccessGroupAutomation"),o=(0,_.equal)("targetTab",A.default.GROUP_AUTOMATION),a=(0,_.equal)("targetTab",A.default.GROUP_TYPES),n=(0,w.computed)("groupAutomationEnabled"),s=class extends(b()){constructor(...e){super(...e),(0,g.A)(this,"_baseRoute","app.settings.groupManagement"),(0,g.A)(this,"_groupAutomationRoute",`${this._baseRoute}.groupAutomation`),(0,g.A)(this,"_groupTypesRoute",`${this._baseRoute}.groupTypes`),(0,g.A)(this,"targetTab",null),(0,m.A)(this,"router",l,this),(0,m.A)(this,"featureFlags",u,this),(0,m.A)(this,"permissionService",c,this),(0,m.A)(this,"groupAutomationEnabled",d,this),(0,m.A)(this,"targetGroupAutomationTab",p,this),(0,m.A)(this,"targetGroupTypesTab",h,this)}get availableTabs(){let e=[A.default.GROUP_TYPES];return this.groupAutomationEnabled&&e.push(A.default.GROUP_AUTOMATION),e}beforeModel(e){let t=()=>!!this.groupAutomationEnabled&&this.changeTargetTab(A.default.GROUP_AUTOMATION),i=()=>this.changeTargetTab(A.default.GROUP_TYPES);switch(e.targetName){case this._baseRoute:case`${this._baseRoute}.index`:return null===this.targetTab?t()||i():this.loadRoute();case this._groupAutomationRoute:return t()||this.transitionToDefault();case this._groupTypesRoute:return i()||this.transitionToDefault()}}setupController(e,t,i){super.setupController(e,t,i),e.set("availableTabs",this.availableTabs),e.set("activeIndex",this.availableTabs.indexOf(this.targetTab))}transitionToDefault(){return this.router.transitionTo("app.settings")}loadRoute(){switch(this.targetTab){case A.default.GROUP_AUTOMATION:return this.router.transitionTo(this._groupAutomationRoute);case A.default.GROUP_TYPES:return this.router.transitionTo(this._groupTypesRoute);default:throw new Error(`Unknown targetTab ${this.targetTab}`)}}changeTargetTab(e){return this.set("targetTab",e),this.loadRoute()}},l=(0,f.A)(s.prototype,"router",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,f.A)(s.prototype,"featureFlags",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,f.A)(s.prototype,"permissionService",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,f.A)(s.prototype,"groupAutomationEnabled",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,f.A)(s.prototype,"targetGroupAutomationTab",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,f.A)(s.prototype,"targetGroupTypesTab",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,f.A)(s.prototype,"availableTabs",[n],Object.getOwnPropertyDescriptor(s.prototype,"availableTabs"),s.prototype),(0,f.A)(s.prototype,"changeTargetTab",[w.action],Object.getOwnPropertyDescriptor(s.prototype,"changeTargetTab"),s.prototype),s)},732937(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(979295),h=i(875694);let m=(r=(0,d.inject)("group-automation"),o=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"groupAutomation",a,this),(0,s.A)(this,"pageTitleManager",n,this)}activate(...e){super.activate(...e),this.pageTitleManager.setTitle("Group Automation"),(0,p.getOwner)(this).register("state-manager:group-automation-factor-filter-chooser",h.default),this.groupAutomation.startDataPolling()}deactivate(){this.groupAutomation.cancelDataPolling(),(0,p.getOwner)(this).unregister("state-manager:group-automation-factor-filter-chooser"),super.deactivate()}},a=(0,l.A)(o.prototype,"groupAutomation",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(o.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},86905(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"pageTitleManager",o,this)}activate(...e){super.activate(...e),this.pageTitleManager.setTitle("Group Types")}},o=(0,n.A)(r.prototype,"pageTitleManager",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},763075(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","hiddenSecurities"),(0,r.A)(this,"accessControllerName","hiddenSecurities"),(0,r.A)(this,"toolDisplayName","Hidden Securities")}setupController(e,t){super.setupController(e,t),e.loadData()}}const n=a;i.d(t,["default",0,n])},646064(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","importHistory"),(0,r.A)(this,"controllerName","importHistory"),(0,r.A)(this,"toolDisplayName","Import History")}model(){return this.store.findAll("importHistory")}}const n=a;i.d(t,["default",0,n])},274166(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){return this.router.transitionTo("app.settings.displaySettings")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},412011(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","manageIntegrations"),(0,r.A)(this,"controllerName","manageIntegrations"),(0,r.A)(this,"toolDisplayName","Manage Integrations")}model(){return this.store.findAll("integration")}}const n=a;i.d(t,["default",0,n])},867749(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);const d=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this),(0,n.A)(this,"accessControllerName","manageIntegrations")}},o=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},931e3(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","multiFirmResources"),(0,r.A)(this,"accessControllerName","multiFirmResources"),(0,r.A)(this,"toolDisplayName","Multi-Firm Resources")}}},266240(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copyCustomAttributesSett
1ings"),(0,s.A)(this,"resourceTitle","Custom Attributes")}redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return this.store.findAll("factorTemplate").then(e=>e.toArray().filterBy("isCustom"))}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},198626(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copyDashboardsSettings"),(0,s.A)(this,"resourceTitle","Dashboards")}redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return this.store.findAll("dashboardView").then(e=>e.filterBy("isCopyable").sortBy("shareLevel","displayName"))}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},630076(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(701627),h=i.n(p);let m=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copyHeadersFootersSettings"),(0,s.A)(this,"resourceTitle","Headers and Footers")}redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return h().hash({headers:this.store.findAll("reporting/report-header"),footers:this.store.findAll("reporting/report-footer")}).then(e=>{let t=e.headers.toArray(),i=e.footers.toArray();return t.concat(i)})}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},176362(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copyPortalViewsSettings"),(0,s.A)(this,"resourceTitle","Portal Views")}redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return this.store.findAll("portalDashboardView").then(e=>e.filterBy("isCopyable").sortBy("shareLevel","displayName"))}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},778404(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copyPortfolioViewsSettings"),(0,s.A)(this,"resourceTitle","Analysis Views")}redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return this.store.findAll("portfolioView").then(e=>e.filterBy("isCopyable").sortBy("shareLevel","displayName"))}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},372062(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copySectionTemplatesSettings"),(0,s.A)(this,"resourceTitle","Section Templates")}
1redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return this.store.findAll("reporting/report-template")}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},358492(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"pageTitleManager",a,this),(0,s.A)(this,"controllerName","copyTransactionViewsSettings"),(0,s.A)(this,"resourceTitle","Transaction Views")}redirect(...e){this.pageTitleManager.setTitle(this.resourceTitle),super.redirect(...e)}model(){return this.store.findAll("transactionView").then(e=>e.filterBy("isCopyable").sortBy("shareLevel","displayName"))}},o=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},315183(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(639298),u=i(804204);let c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this),(0,n.A)(this,"accessControllerName","multiFirmResources")}redirect(...e){this.routeFor("app.settings.multiFirmResources").get("canAccessRoute")?this.router.transitionTo("app.settings.multiFirmResources.copySectionTemplates"):this.transitionToFallback(),super.redirect(...e)}},o=(0,s.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},781882(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(701627),u=i.n(l),c=i(804204),d=i(639298),p=i(726089);const h=(r=class extends d.default{constructor(...e){super(...e),(0,n.A)(this,"accessControllerName","permissions"),(0,n.A)(this,"controllerName","permissions"),(0,n.A)(this,"toolDisplayName","Users"),(0,a.A)(this,"credential",o,this)}model(){return u().hash({advisors:this.store.query("contact",{role:"advisor"}).then(e=>e.without(this.credential.contact)),countryCodes:this.store.findAll("countryCode"),authSettings:this.store.findRecord("authSettings","0"),roles:this.store.findAll("role"),teams:this.store.findAll("team"),securitySettings:this.store.find("systemSecuritySettings","0")})}setupController(e,t){super.setupController(e,t),this.controllerFor("countryCode").set("countryCodes",t.countryCodes);let i=(0,p.createRolesMap)(t.roles);t.advisors.forEach(e=>{e.set("roleGroup",i[e.get("id")])})}},o=(0,s.A)(r.prototype,"credential",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,h])},470781(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(943910),d=i(701627),p=i.n(d),h=i(558779),m=i.n(h),g=i(804204),f=i(496314),y=i(47654);let b=(r=class extends(m()){constructor(...e){super(...e),(0,l.A)(this,"controllerName","permissionsContact"),(0,l.A)(this,"parentRouteName","app.settings.permissions"),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"store",n,this)}model(e){return this.store.findRecord("contactPermission",e.contact_id)}afterModel(e){return p().all([e.get("clients"),e.get("groups")])}setupController(e,t){super.setupController(...arguments),this.controllerFor(this.parentRouteName).set("detailsPanelController",e),e.get("contactPermissions")&&e.get("contactPermissions").rollbackAttributes(),e.set("_contactPermissionsRelationshipSnapshot",(0,y.snapshotRelationships)(t));let i=t.get("roles.firstObject");void 0===i&&(i=null),e.setProperties({selectedRole:i,previouslySelectedRole:i,permissionMode:(0,f.isPresent)(i)?"role":"custom"}),t.customUpdateAttributes(),e.set("previousHash",t.normalizedHash()),e.set("initialAdminState",t.get("admin"))}loading(){return!1}migrate(){let e=this.get("controller"),t=e.get("contactPermissions");t.save().then(()=>(e.set("previousHash",t.normalizedHash()),this.router.transitionTo("app.settings.permissions.contact.tools")))}
1willTransition(e){if(this.get("controller.contact.isDeleted")||this.get("controller.contactPermissions.isDeleted"))return;let t,i=this.get("controller.contactPermissions.id");e.targetName.startsWith(this.get("routeName"))&&(t=e.to.find(e=>e.name===this.routeName).params.contact_id),t!==i&&this.get("controller.isDirty")&&(e.abort(),this.get("controller").showDiscardDialog(()=>e.retry()))}},o=(0,u.A)(r.prototype,"featureFlags",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"store",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(r.prototype,"loading",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"loading"),r.prototype),(0,u.A)(r.prototype,"migrate",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"migrate"),r.prototype),(0,u.A)(r.prototype,"willTransition",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);const v=b;i.d(t,["default",0,v])},979252(e,t,i){i.r(t);var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","permissionsContactData")}}const s=n;i.d(t,["default",0,s])},479596(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);const d=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this),(0,n.A)(this,"controllerName","permissionsContact")}beforeModel(){return this.store.findRecord("systemSecuritySettings","0")}},o=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},886534(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){if(this.modelFor("app.settings.permissions.contact").get("migrated"))return this.router.transitionTo("app.settings.permissions.contact.tools")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},782161(e,t,i){i.r(t);var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","permissionsContact")}setupController(e,t){super.setupController(e,t),e.set("roles",this.modelFor("app.settings.permissions").roles.sortBy("name"))}}const s=n;i.d(t,["default",0,s])},48025(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","permissions"),(0,r.A)(this,"toolDisplayName","Users")}model(){return this.modelFor("app.settings.permissions")}resetController(e){e.set("showAdvisorCreationPanel",!1)}}},26866(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(639298),p=i(640626);let h=(r=(0,i(804204).inject)("permission-service"),o=(0,p.readOnly)("permissionService.routes.app.settings.report"),a=class extends d.default{constructor(...e){super(...e),(0,l.A)(this,"permissionService",n,this),(0,l.A)(this,"canAccessRoute",s,this),(0,u.A)(this,"toolDisplayName","Report Settings")}},n=(0,c.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(a.prototype,"canAccessRoute",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)},844033(e,t,i){i.r(t),i.d(t,{default:()=>u});var r,o,a=i(748096),n=i(228888),s=i(639298),l=i(804204);let u=(r=class extends s.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){let e=this.paramsFor("app.settings.report.format-tables.edit");this.router.transitionTo("app.settings.report.table-themes.edit",e.table_theme_id)}},o=(0,n.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},745121(e,t,i){i.r(t),i.d(t,{default:()=>u});var r,o,a=i(748096),n=i(228888),s=i(639298),l=i(804204);let u=(r=class extends s.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){return this.router.transitionTo("app.settings.report.table-themes")}},o=(0,n.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},620799(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(448309),d=i(640626),p=i(943910),h=i(804204),m=i(545118);let g=(r=(0,d.readOnly)("permissionService.routes.app.settings.report.generalSettings"),o=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"permissionService",a,this),(0,l.A)(this,"toolDisplayName","Report General Settings"),(0,s.A)(this,"canAccessRoute",n,this),(0,l.A)(this,"discardChangesModalText",m.DISCARD_CHANGES_TEXT)}model(){return this.store.findRecord("display-setting",1)}shouldConfirm(){return this.controller.model.hasDirtyAttributes}discardChanges(){this.controller.model.rollbackAttributes()}},a=(0,u.A)(o.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(o.prototype,"canAccessRoute",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(o.prototype,"discardChanges",[p.action],Object.getOwnPropertyDescriptor(o.prototype,"discardChanges"),o.prototype),o)},248902(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(448309),p=i(701627),h=i.n(p),m=i(943910),g=i(640626),f=i(804204),y=i(545118);const b=(r=(0,f.inject)("permission-service"),o=(0,g.readOnly)("permissionService.routes.app.settings.report.headersAndFooters"),a=class extends d.default{constructor(...e){super(...e),(0,l.A)(this,"permissionService",n,this),(0,l.A)(this,"canAccessRoute",s,this),(0,u.A)(this,"toolDisplayName","Report Header and Footer Settings"),(0,u.A)(this,"discardChangesModalText",y.DISCARD_CHANGES_TEXT)}afterModel(e,t){return super.afterModel(e,t),h().hash({requiredHeaderFooterSettings:this.store.findAll("reporting/required-header-footer-setting"),allHeaders:this.store.query("reporting/report-header",{edit_mode:!0}),allFooters:this.store.query("reporting/report-footer",{edit_mode:!0})}).then(e=>(this.set("requiredHeaderFooterSettings",e.requiredHeaderFooterSettings),this.set("allHeaders",e.allHeaders),this.set("allFooters",e.allFooters)))}setupController(e,t){return super.setupController(e,t),e.set("requiredHeaderFooterSettings",this.get("requiredHeaderFooterSettings")),e.set("allHeaders",this.get("allHeaders")),e.set("allFooters",this.get("allFooters"))}shouldConfirm(){return this.get("controller.isDirty")}
1discardChanges(){this.requiredHeaderFooterSettings.forEach(e=>e.rollbackAttributes())}},n=(0,c.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(a.prototype,"canAccessRoute",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.A)(a.prototype,"discardChanges",[m.action],Object.getOwnPropertyDescriptor(a.prototype,"discardChanges"),a.prototype),a);i.d(t,["default",0,b])},597809(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(639298),p=i(804204),h=i(640626);let m=(r=(0,p.inject)("permission-service"),o=(0,h.readOnly)("permissionService.routes.app.settings.report"),a=class extends d.default{constructor(...e){super(...e),(0,u.A)(this,"permissionService",n,this),(0,u.A)(this,"router",s,this),(0,u.A)(this,"canAccessRoute",l,this)}redirect(...e){this.permissionService.routes.app.settings.report.sectionTemplate?this.router.transitionTo("app.settings.report.sectionTemplate"):this.transitionToFallback(),super.redirect(...e)}},n=(0,c.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(a.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(a.prototype,"canAccessRoute",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)},395109(e,t,i){i.r(t);var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(701627),m=i.n(h),g=i(639298),f=i(804204),y=i(640626);const b=(r=(0,f.inject)("permission-service"),o=(0,y.readOnly)("permissionService.routes.app.settings.report.sectionTemplate"),a=class extends g.default{constructor(...e){super(...e),(0,c.A)(this,"permissionService",n,this),(0,c.A)(this,"featureFlags",s,this),(0,c.A)(this,"permissibleTeamsSectionTemplatesData",l,this),(0,c.A)(this,"canAccessRoute",u,this),(0,d.A)(this,"toolDisplayName","Section Template Settings")}model(){let e=this.store.query("reporting/report-template",{edit_mode:!0}),t=this.permissibleTeamsSectionTemplatesData.get("modelPromise");return m().hash({allReportTemplates:e,allPermissibleTeams:t})}setupController(e,t){super.setupController(e,t),e.set("allReportTemplates",t.allReportTemplates.toArray()),e.set("allPermissibleTeams",t.allPermissibleTeams),e.afterSetupController()}},n=(0,p.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(a.prototype,"featureFlags",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(a.prototype,"permissibleTeamsSectionTemplatesData",[f.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(a.prototype,"canAccessRoute",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a);i.d(t,["default",0,b])},141052(e,t,i){i.r(t),i.d(t,{default:()=>A});var r,o,a,n,s,l,u,c,d,p,h=i(748096),m=i(401104),g=i(228888),f=i(943910),y=i(639298),b=i(640626),v=i(804204),w=i(701627),_=i(496314);let A=(r=(0,v.inject)("permission-service"),o=(0,b.readOnly)("permissionService.routes.app.settings.report.formatTables"),a=class extends y.default{constructor(...e){super(...e),(0,h.A)(this,"permissionService",n,this),(0,h.A)(this,"tableThemeSettingsData",s,this),(0,h.A)(this,"permissibleTeamsSectionTemplatesData",l,this),(0,h.A)(this,"canAccessRoute",u,this),(0,m.A)(this,"allPermissibleTeams",null),(0,h.A)(this,"teamTableThemeService",c,this),(0,h.A)(this,"toast",d,this),(0,h.A)(this,"router",p,this),(0,m.A)(this,"toolDisplayName","Manage Table Themes")}model(e){let t=this.tableThemeSettingsData.modelPromise,i=this.store.findAll("table-theme"),r=this.permissibleTeamsSectionTemplatesData.modelPromise;this.set("allPermissibleTeams",r);let o=e.teamId;return(0,w.hash)({tableThemeSettings:t,tableThemes:i,allPermissibleTeams:r,teamId:o})}setupController(e,{tableThemeSettings:t,tableThemes:i,allPermissibleTeams:r}){i=this.sortTeamsNames(i),e.setProperties({tableThemeSettings:t,model:i,allPermissibleTeams:r}),e.afterSetupController()}sortTeamsNames(e){for(let t=0;t<e.length;t++){let i=e.objectAt(t),r=i.teams.toArray();i.set("teams",r.sortBy("name"))}return e}createThemeAndTransition({includeCopy:e,isCreateNew:t=!1,isSentFromModal:i=!1,themeToDuplicate:r}){if(i)return this.teamTableThemeService.setShowFormatTab(!1),r.save().then(e=>(this.themeCreatedToast(t),this.router.transitionTo("app.settings.report.format-tables.edit",e.id)));if(r.hasDirtyAttributes)return;let o=r.clone({includeCopy:e});return(0,_.isEmpty)(r.get("teamIds"))||o.get("teams").pushObjects(r.get("teams")),o.save().then(e=>(this.themeCreatedToast(t),this.router.transitionTo("app.settings.report.table-themes.edit",e.get("id"))))}themeCreatedToast(e){this.toast.queueToast(`Theme ${e?"created":"duplicated"}.`,{showIcon:!0,showClose:!0,type:"success"})}},n=(0,g.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,g.A)(a.prototype,"tableThemeSettingsData",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,g.A)(a.prototype,"permissibleTeamsSectionTemplatesData",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,g.A)(a.prototype,"canAccessRoute",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,g.A)(a.prototype,"teamTableThemeService",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,g.A)(a.prototype,"toast",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,g.A)(a.prototype,"router",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,g.A)(a.prototype,"createThemeAndTransition",[f.action],Object.getOwnPropertyDescriptor(a.prototype,"createThemeAndTransition"),a.prototype),a)},545118(e,t,i){i.r(t),i.d(t,{DISCARD_CHANGES_TEXT:()=>C,default:()=>S});var r=i(748096),o=i(401104),a=i(228888),n=i(448309),s=i(943910),l=i(640626),u=i(804204),c=i(989272),d=i(757586);const p=i(851414).l7;var h,m,g,f,y,b,v,w=i(643507),_=i(630847),A=i(496314),T=i(394340);const C={header:"Discard edits?",content:"You will lose any unsaved changes.",confirmButton:"Discard"};let S=(h=(0,u.inject)("permission-service"),m=(0,l.readOnly)("permissionService.routes.app.settings.report.formatTables"),g=class extends n.default{constructor(...e){super(...e),(0,r.A)(this,"store",f,this),(0,r.A)(this,"permissionService",y,this),(0,r.A)(this,"permissibleTeamsSectionTemplatesData",b,this),(0,r.A)(this,"canAccessRoute",v,this),(0,o.A)(this,"discardChangesMo
1dalText",C),(0,o.A)(this,"allPermissibleTeams",null),(0,o.A)(this,"toolDisplayName","Table themes")}beforeModel(){return this.permissibleTeamsSectionTemplatesData.get("modelPromise").then(e=>{this.set("allPermissibleTeams",e)})}model({table_theme_id:e}){return new Promise(t=>{(0,c.later)(()=>{t(this.store.findRecord("table-theme",e))},0)})}setupController(e,t){super.setupController(e,t),this.set("tableTheme",t);let i={name:[(0,w.xR)({max:T.maxThemeNameLength,allowBlank:!1,message:`Enter a name thatâs up to ${T.maxThemeNameLength} characters max.`}),(0,w.CJ)({presence:!0,ignoreBlank:!0,message:"Enter a name that contains at least one letter, number, or special character."})]};e.set("allPermissibleTeams",this.allPermissibleTeams),e.set("tableThemeChangeset",new d.A(t,p(i),i)),e.set("isRestrictedToTeams",!(0,A.isEmpty)(this.tableTheme.teams));let{editableTeams:r,unEditableTeams:o}=this.initEditableTeams();e.set("editableTeams",r),e.set("unEditableTeams",o)}initEditableTeams(){let e=this.allPermissibleTeams.mapBy("id"),t=[],i=[];return this.tableTheme.teams.forEach(r=>{e.includes(r.id)?t.push(r):i.push(r)}),{editableTeams:t,unEditableTeams:i}}shouldConfirm(){return this.controller.isDirty}showConfirmModal(e){return this.popover.showConfirmDialog({headerText:"Leave without saving?",bodyComponentClass:_.A.extend({theme:this.get("tableTheme"),layoutName:"format-tables/modals/unsaved-changes-on-route-change"}),confirmText:"Leave",cancelText:"Continue Editing",confirm:e})}discardChanges(){this.tableTheme.rollbackAttributes()}},f=(0,a.A)(g.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,a.A)(g.prototype,"permissionService",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,a.A)(g.prototype,"permissibleTeamsSectionTemplatesData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,a.A)(g.prototype,"canAccessRoute",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.A)(g.prototype,"discardChanges",[s.action],Object.getOwnPropertyDescriptor(g.prototype,"discardChanges"),g.prototype),g)},260467(e,t,i){i.r(t),i.d(t,{default:()=>b});var r,o,a,n,s,l,u,c=i(748096),d=i(401104),p=i(228888),h=i(448309),m=i(640626),g=i(804204),f=i(496314),y=i(943910);let b=(r=(0,g.inject)("permission-service"),o=(0,m.readOnly)("permissionService.routes.app.settings.report.formatTables"),a=class extends h.default{constructor(...e){super(...e),(0,c.A)(this,"permissionService",n,this),(0,c.A)(this,"router",s,this),(0,c.A)(this,"store",l,this),(0,c.A)(this,"canAccessRoute",u,this),(0,d.A)(this,"toolDisplayName","Format Tables")}beforeModel(){let{tableThemes:e,teamId:t,allPermissibleTeams:i}=this.modelFor("app.settings.report.table-themes"),r=new Set(i.mapBy("id")),o=null;if(t){let i=e.filter(e=>{let i=e.get("teams").toArray().filter(e=>r.has(e.id)).find(e=>t===e.id);return!(0,f.isNone)(i)});if(0===i.length)return this.router.transitionTo("app.settings.report.table-themes");o=i.sortBy("name").firstObject.id}else o=e.firstObject.id;return this.router.transitionTo("app.settings.report.table-themes.edit",o)}willTransition(){return!1}},n=(0,p.A)(a.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,p.A)(a.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,p.A)(a.prototype,"store",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,p.A)(a.prototype,"canAccessRoute",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.A)(a.prototype,"willTransition",[y.action],Object.getOwnPropertyDescriptor(a.prototype,"willTransition"),a.prototype),a)},837783(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","app.settings.roles"),(0,r.A)(this,"accessControllerName","app.settings.roles"),(0,r.A)(this,"toolDisplayName","Roles")}model(){return this.store.findAll("role")}}const n=a;i.d(t,["default",0,n])},499882(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(943910),g=i(804204),f=i(558779),y=i.n(f),b=i(726089);const v=(r=(0,g.inject)("permission-service"),o=class extends(y()){constructor(...e){super(...e),(0,d.A)(this,"ajax",a,this),(0,d.A)(this,"credential",n,this),(0,d.A)(this,"permissionService",s,this),(0,d.A)(this,"popover",l,this),(0,d.A)(this,"router",u,this),(0,d.A)(this,"store",c,this),(0,p.A)(this,"parentRouteName","app.settings.roles")}async model(e){let t=await this.store.findAll("role"),i=t.findBy("id",e.role_id);return await this.store.query("contact",{role:"advisor"}),{roles:t,currentRole:i}}setupController(e,t){let i=t.currentRole,r=t.roles;this.controllerFor(this.parentRouteName).set("detailsPanelController",e),i.customUpdateAttributes(),e.setProperties({parentRouteName:this.parentRouteName,previousHash:i.normalizedHash(),rolesMap:(0,b.createRolesMap)(r),name:i.name,roles:r,role:i});let o=this.credential.contact;if(this.permissionService.hasPermission){let t=this.store.peekAll("contact").filter(e=>"advisor"===e.role.toLowerCase()&&e!==o);e.set("allowedUsers",t)}e.set("previousUsers",i.users.slice()),this.ajax.ajax({url:"/public/contact_permissions/with_full_portfolio_access",
1success:t=>{e.set("_allDataContactIds",new Set(t.contact_ids))}})}resetController(e,t,i){super.resetController(e,t,i),t&&this.controllerFor(this.parentRouteName).set("detailsPanelController",null)}showTransitionModal(e,t){t.discard(()=>{e.retry()})}afterModel(e,t){t.to.find(e=>"app.settings.roles.role.users"===e.name)&&!this.permissionService.hasPermission&&(t.abort(),this.router.transitionTo("app.settings.roles.role",e))}willTransition(e){let t=e.to.find(e=>"app.settings.roles.role"===e.name)?.params;if(t){let i=t.role_id===this.controller.role.id;this.controller.isDirty&&!i&&(e.abort(),this.showTransitionModal(e,this.controller))}}loading(e){if("app.settings.roles.index"!==e.from)return;let t=this.controllerFor("app.settings.roles.index");t.set("showLoadingState",!0),e.promise.finally(function(){t.set("showLoadingState",!1)})}},a=(0,h.A)(o.prototype,"ajax",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(o.prototype,"credential",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(o.prototype,"permissionService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(o.prototype,"popover",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(o.prototype,"router",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(o.prototype,"store",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.A)(o.prototype,"willTransition",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"willTransition"),o.prototype),(0,h.A)(o.prototype,"loading",[m.action],Object.getOwnPropertyDescriptor(o.prototype,"loading"),o.prototype),o);i.d(t,["default",0,v])},320809(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){return this.router.transitionTo("app.settings.roles.role.permissions")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},816821(e,t,i){i.r(t);var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","app.settings.roles.role")}}const s=n;i.d(t,["default",0,s])},180933(e,t,i){i.r(t);var r=i(401104),o=i(558779),a=i.n(o);class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","app.settings.roles.role")}}const s=n;i.d(t,["default",0,s])},350905(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(456692);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){this.featureFlags.flags.boolean.salesforce_error_lens&&this.featureFlags.flags.boolean.salesforce_integration_self_service||this.router.transitionTo("app.settings")}model(e){return(0,d.findMockConnection)(e.connection_id)}afterModel(e){e||this.router.transitionTo("app.settings.salesforceIntegration.index")}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},81213(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204);let h=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"featureFlags",o,this),(0,l.A)(this,"pageTitleManager",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"store",s,this)}setupController(e,t,i){this.featureFlags.flags.boolean.salesforce_error_lens?(super.setupController(e,t,i),this.pageTitleManager.setTitle("Salesforce connector"),e&&(e.salesforceEnv=void 0,e.clearTable(),e.checkEnvironments.perform())):this.router.transitionTo("app.settings")}},o=(0,u.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"pageTitleManager",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},846964(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","systemSecurity"),(0,r.A)(this,"accessControllerName","systemSecurity"),(0,r.A)(this,"toolDisplayName","System Security")}model(){return this.store.find("systemSecuritySettings","0")}}const n=a;i.d(t,["default",0,n])},645436(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(804204),c=i(701627),d=i.n(c),p=i(943910),h=i(639298);const m=(r=class extends h.default{constructor(...e){super(...e),(0,n.A)(this,"factorTemplateData",o,this),(0,n.A)(this,"store",a,this),(0,s.A)(this,"toolDisplayName","Target Allocations"),(0,s.A)(this,"controllerName","targetAllocation"),(0,s.A)(this,"accessControllerName","targetAllocation")}model(){return d().hash({allocationFramework:this.store.findAll("allocationFramework"),factorTemplateData:this.factorTemplateData.modelPromise}).then(e=>e.allocationFramework)}refreshModel(){this.refresh()}},o=(0,l.A)(r.prototype,"factorTemplateData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"refreshModel",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"refreshModel"),r.prototype),r);i.d(t,["default",0,m])},190102(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(421548),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"controllerName","targetAllocationEditFramework"),(0,a.A)(this,"store",o,this)}shouldConfirm(){return this.controller.isDirty}},o=(0,s.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},445514(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(421548),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"store",o,this),(0,n.A)(this,"controllerName","targetAllocationEditTemplate")}model(e){let t=e.allocation_template_id;return this.store.find("allocationTemplate",t)}shouldConfirm(){return this.controller.isDirty}},o=(0,s.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},508596(e,t,i){i.r(t);var r=i(401104),o=i(701627),a=i.n(o),n=i(639298),s=i(921742);class l extends n.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","app.settings.teams"),(0,r.A)(this,"accessControllerName","app.settings.teams"),(0,r.A)(this,"toolDisplayName","Teams")}resetController(e){e.set("filterText","")}
1model(){return a().hash({teams:this.store.findAll("team"),perspective:(0,s.entitySearch)({display_name:"",limit:1,return_types:["person_node"]},this.store)})}}const u=l;i.d(t,["default",0,u])},315586(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(158080);class o extends r.default{}},658017(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);const c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){return this.router.transitionTo("app.settings.teams.team.members")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},799877(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);let d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"store",o,this),(0,n.A)(this,"permissionService",a,this)}async model(){let e=this.paramsFor("app.settings.teams.team");return{brandingSettingsTeam:(await this.store.findRecord("team",e.team_id)).isBrandingEnabled}}setupController(e,{brandingSettingsTeam:t}){super.setupController(...arguments);let i=this.modelFor("app.settings.teams.team"),r=this.modelFor("app.settings.teams").perspective[0];e.setProperties({team:i,perspective:r,allMembersSelected:!1,selection:[],brandingSettingsTeam:t})}},o=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"permissionService",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);const p=d;i.d(t,["default",0,p])},86038(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(158080);class o extends r.default{async model(){let e=this.modelFor("app.settings.teams.team");return await e.members,e}}},755240(e,t,i){i.r(t);var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(639298),h=i(943910),m=i(804204);const g=(r=(0,h.computed)("featureFlags.flags.boolean.integration_center","permissionService.hasAdmin"),o=class extends p.default{constructor(...e){super(...e),(0,u.A)(this,"ajax",a,this),(0,u.A)(this,"featureFlags",n,this),(0,u.A)(this,"popover",s,this),(0,u.A)(this,"permissionService",l,this),(0,c.A)(this,"accessControllerName","third-party-applications"),(0,c.A)(this,"toolDisplayName","Third Party Applications")}get canAccessRoute(){let e=this.featureFlags.flags.boolean.integration_center,t=this.permissionService.hasAdmin;return!e&&t}model(){return this.ajax.ajax({url:"/public/oauth2/firm_grants"}).then(e=>e.data)}loading(e){let t=this.get("controller");t&&(t.set("isLoading",!0),e.promise.finally(()=>{t.set("isLoading",!1)}))}viewUserGrants(e){this.popover.openModal("utils/modals/oauth-user-grants",{grant:e})}revoke(e){this.set("controller.isLoading",!0),this.ajax.ajax({url:`/public/oauth2/firm_grants/${e}`,method:"DELETE"}).then(()=>{this.refresh()})}},a=(0,d.A)(o.prototype,"ajax",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(o.prototype,"featureFlags",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(o.prototype,"popover",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(o.prototype,"permissionService",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.A)(o.prototype,"canAccessRoute",[r],Object.getOwnPropertyDescriptor(o.prototype,"canAccessRoute"),o.prototype),(0,d.A)(o.prototype,"loading",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"loading"),o.prototype),(0,d.A)(o.prototype,"viewUserGrants",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"viewUserGrants"),o.prototype),(0,d.A)(o.prototype,"revoke",[h.action],Object.getOwnPropertyDescriptor(o.prototype,"revoke"),o.prototype),o);i.d(t,["default",0,g])},673918(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(804204),c=i(639298),d=i(236203),p=i(943910);const h=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"toolDisplayName","Transaction Tags"),(0,s.A)(this,"controllerName","transactionTags"),(0,n.A)(this,"transactionTagData",o,this),(0,n.A)(this,"store",a,this),(0,s.A)(this,"accessControllerName","transactionTags"),(0,s.A)(this,"queryParams",{page:{refreshModel:!0},search:{refreshModel:!0}})}model(e,t){let{queryParams:i}=t.to,r=i.limit??d.TAGS_PAGE_LIMIT,o=((i.page??1)-1)*r,a=i.search||"",n=this.controller?.get("search");return this.store.query("transactionTag",{offset:o,limit:r,q:n||a})}refreshData(){this.refresh()}},o=(0,l.A)(r.prototype,"transactionTagData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"refreshData",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"refreshData"),r.prototype),r);i.d(t,["default",0,h])},504168(e,t,i){i.r(t),i.d(t,{default:()=>l});var r,o=i(401104),a=i(228888),n=i(943910),s=i(639298);let l=(r=class extends s.default{constructor(...e){super(...e),(0,o.A)(this,"accessControllerName","unusedEntities"),(0,o.A)(this,"controllerName","unusedEntities"),(0,o.A)(this,"toolDisplayName","Unused Entities")}findOrphans(){this.controller.set("isFindingOrphans",!0),this.controller.set("orphans",null),this.store.query("entity",{orphaned:!0}).then(e=>this.controller.set("orphans",e.sortBy("idNum"))).finally(()=>this.controller.set("isFindingOrphans",!1))}deleteEntity(e){e.destroyAndDisconnectRecord().then(()=>{let t=this.controller.get("orphans");if(t&&t.removeObject)return t.removeObject(e)},()=>e.rollbackAttributes())}},(0,a.A)(r.prototype,"findOrphans",[n.action],Object.getOwnPropertyDescriptor(r.prototype,"findOrphans"),r.prototype),(0,a.A)(r.prototype,"deleteEntity",[n.action],Object.getOwnPropertyDescriptor(r.prototype,"deleteEntity"),r.prototype),r)},335993(e,t,i){i.r(t);var r=i(401104),o=i(639298);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","app.settings.view-management")}}const n=a;i.d(t,["default",0,n])},722126(e,t,i){i.r(t);var r=i(639298);class o extends r.default{get viewDataService(){throw new Error("viewDataService is unimplemented")}get viewCategoryDataService(){throw new Error("viewCategoryDataService is unimplemented")}beforeModel(...e){super.beforeModel(...e),this.viewCategoryDataService.modelPromise}
1model(){return this.viewDataService.getViewsForViewManagement()}}const a=o;i.d(t,["default",0,a])},848082(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(335993),l=i(804204);const u=(r=class extends s.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){this.router.replaceWith("app.settings.view-management.portfolio-views")}},o=(0,n.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,u])},971053(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(640626),g=i(804204),f=i(722126);const y=(r=(0,m.readOnly)("portfolioViewsData"),o=(0,m.readOnly)("portfolioViewCategoryData"),a=class extends f.default{constructor(...e){super(...e),(0,d.A)(this,"permissibleTeams",n,this),(0,d.A)(this,"portfolioViewsData",s,this),(0,d.A)(this,"portfolioViewCategoryData",l,this),(0,p.A)(this,"accessControllerName","app.settings.view-management"),(0,d.A)(this,"viewDataService",u,this),(0,d.A)(this,"viewCategoryDataService",c,this)}beforeModel(...e){super.beforeModel(...e),this.permissibleTeams.loadPermissibleTeamsAnalysisViews(!0)}},n=(0,h.A)(a.prototype,"permissibleTeams",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(a.prototype,"portfolioViewsData",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(a.prototype,"portfolioViewCategoryData",[g.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(a.prototype,"viewDataService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(a.prototype,"viewCategoryDataService",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a);i.d(t,["default",0,y])},159108(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(804204),c=i(639298);let d=(r=class extends c.default{constructor(...e){super(...e),(0,n.A)(this,"portfolioViewsData",o,this),(0,n.A)(this,"portfolioViewScheduleData",a,this),(0,s.A)(this,"accessControllerName","app.settings.view-management.portfolio-views.schedules")}beforeModel(){super.beforeModel(...arguments)}model(){let e=this.portfolioViewsData.viewsForViewManagement;return this.portfolioViewScheduleData.loadSchedulesForViews(e).then(()=>this.portfolioViewScheduleData.model)}
1afterModel(){this.portfolioViewScheduleData.loadExecutionDetails()}},o=(0,l.A)(r.prototype,"portfolioViewsData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"portfolioViewScheduleData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);const p=d;i.d(t,["default",0,p])},900419(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(804204),u=i(639298);const c=(r=class extends u.default{constructor(...e){super(...e),(0,a.A)(this,"visualizationTemplateData",o,this),(0,n.A)(this,"accessControllerName","app.settings.widgets")}model(){return this.visualizationTemplateData.modelPromise}},o=(0,s.A)(r.prototype,"visualizationTemplateData",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},983537(e,t,i){i.r(t),i.d(t,{default:()=>w});var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(943910),h=i(804204),m=i(558779),g=i.n(m),f=i(167026),y=i(757975),b=i(658718);const v=["app.tools.contextDetails","app.tools.portfolioAnalysis","app.tools.reports"];let w=(r=class extends(g()){constructor(...e){super(...e),(0,c.A)(this,"controllerName","perspectives"),(0,u.A)(this,"credential",o,this),(0,u.A)(this,"featureFlags",a,this),(0,u.A)(this,"displaySetting",n,this),(0,u.A)(this,"groupTypes",s,this),(0,u.A)(this,"router",l,this)}beforeModel(){return this.groupTypes.dataLoadingPromise}async model(){return{}}setupController(e){e.setProperties({getTransitionTarget:this.getTransitionTarget.bind(this)})}get isAddeparUser(){return this.credential.isAddeparUser}getTransitionTarget(e){let t=this.router.currentRouteName,i=t.split("."),r=i[0];if(void 0!==i[1]&&(r+=`.${i[1]}`),i.length>2&&(r+=`.${i[2]}`),"app.tools.loading"===r)return{route:r,models:[]};"app.tools.index"===r&&(r="app.tools.portfolioAnalysis");let o=e&&"firm-context"===e.type,a=o?e.subType:null;o&&(e=this.controllerFor("firm").get("model"));for(let i of(0,y.A)([r].concat(v))){let r,n;if(r=this.controllerFor(i),!(0,f.A)(r.isToolAccessibleForPerspective))continue;if(!r.isToolAccessibleForPerspective(e,a))continue;if("app.tools.portfolioAnalysis"===i||"app.tools.transactionCenter"===i){if(o){let{perspective_type:t,perspective_id:r}=(0,b.serialize)(e,a);return{route:`${i}.perspective`,models:[t,r]}}n=`${i}.perspective`}else if("app.tools.fileVault"===i){if(o)return{route:`${i}.perspective`,models:[e.perspectiveType,e.id]};n=`${i}.perspective`}else if("app.tools.reports"===i){if(o)return{route:`${i}.perspective.reports`,models:[e.perspectiveType,e.id]};n=`${i}.perspective.reports`}else n="app.tools.orderSets"===i?`${i}.perspective`:"app.tools.proposals"===i||"app.tools.holdings"===i||"app.tools.fileVault"===i?t:`${i}.${e.perspectiveType}`;let s=[];if(!n.split(".").some(t=>t===e.perspectiveType)){let{perspectiveType:t,perspectiveSubType:i}=e;s.push(i===e.defaultSubtype()?t:`${t}-${i}`)}return s.push(e.id),{route:n,models:s}}}contextChanged(e){let{route:t,models:i}=this.getTransitionTarget(e);"app.tools.loading"!==t&&this.router.transitionTo(t,...i)}},o=(0,d.A)(r.prototype,"credential",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.A)(r.prototype,"featureFlags",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(r.prototype,"displaySetting",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(r.prototype,"groupTypes",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,d.A)(r.prototype,"contextChanged",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"contextChanged"),r.prototype),r)},872232(e,t,i){i.r(t);var r=i(401104),o=i(733559);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"toolDisplayName","Contact Management"),(0,r.A)(this,"accessControllerName","app.tools.contactManagement"),(0,r.A)(this,"controllerName","app.tools.contactManagement")}}const n=a;i.d(t,["default",0,n])},659510(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(701627),u=i.n(l),c=i(943910),d=i(804204),p=i(453836);const h=(r=class extends p.default{constructor(...e){super(...e),(0,n.A)(this,"controllerName","contextDetails"),(0,a.A)(this,"factorTemplateData",o,this)}beforeModel(...e){return u().all([super.beforeModel(...e)])}afterModel(...e){super.afterModel(...e);let t=this.factorTemplateData;return u().all([t.ensureRecords([...t.criticalRecords,"ownership","value"])])}setupController(){this.controllerFor("groups").set("model",[])}willTransition(){return!0}},o=(0,s.A)(r.prototype,"factorTemplateData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"willTransition",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);i.d(t,["default",0,h])},976161(e,t,i){i.r(t);var r,o,a=i(748096),n=i(228888),s=i(453836),l=i(804204);const u=(r=class extends s.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}afterModel(e,t){super.afterModel(e,t);let i=e.get("id");this.router.transitionTo("app.portal-module.contacts.contact-details",i)}},o=(0,n.A)(r.prototype,"router",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,u])},987054(e,t,i){i.r(t);var r,o,a,n,s,l=i(748096),u=i(401104),c=i(228888),d=i(701627),p=i.n(d),h=i(943910),m=i(804204),g=i(453836),f=i(204011),y=i(127950);const{APP:{ENABLE_FEDERATED_MODULES:b}}=f.default,v=(r=class extends g.default{constructor(...e){super(...e),(0,l.A)(this,"popover",o,this),(0,l.A)(this,"featureFlags",a,this),(0,u.A)(this,"entityDetail",null),(0,u.A)(this,"controllerName","contextDetails"),(0,l.A)(this,"benchmarkData",n,this),(0,l.A)(this,"allocationFrameworkData",s,this)}model(e){return this.store.findRecord("entity",e.entity_id)}afterModel(e,t){super.afterModel(e,t);let r=Boolean(this.featureFlags.flags.boolean.tr_restrictions);b&&r&&i.e(1130).then(i.t.bind(i,951130,23)).catch(e=>(0,y.Cp)(e));let o=e.get("id");return p().all([this.allocationFrameworkData.modelPromise]).then(()=>this.store.findRecord("entityDetail",o)).then(e=>this.entityDetail=e)}setupController(e,t){super.setupController(e,t),this.controllerFor("contextDetails").set("entityDetail",this.entityDetail)}get templateName(){return this.controllerFor("perspective").get("model.isOnlyInvestment")?"app/tools/context-details/investment":"app/tools/context-details/entity"}migratePositions(e,t){let i={ownables_only:!0,limit:100,current_selection_id:e.get("id")},r=this;this.popover.openModal("utils/modals/migrate-entity-positions",{enforceModality:!0,target:this,entity:e,positions:t,searchParams:i,afterMigrate(){let e=r.controllerFor("contextDetails"),t=e.get("model");e.set("model",null),e.set("model",t)}})}},o=(0,c.A)(r.prototype,"popover",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"featureFlags",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"benchmarkData",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"allocationFrameworkData",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,c.A)(r.prototype,"migratePositions",[h.action],Object.getOwnPropertyDescriptor(r.prototype,"migratePositions"),r.prototype),r);i.d(t,["default",0,v])},229917(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(733559),d=i(804204);let p=(r=class extends c.default{constructor(...e){super(...e),(0,l.A)(this,"toolDisplayName","Details"),(0,l.A)(this,"controllerName","firmOverview"),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"toast",n,this),(0,l.A)(this,"accessControllerName","contextDetails")}beforeModel(){this.featureFlags.flags.boolean.disable_firm_wide_details&&(this.get("toast").queueSystemToast("Addepar has removed Firm Details. Apply data verification attributes to asset table to view potential data issues.",{persist:!0,showIcon:!0,type:"warning"}),this.router.transitionTo("app.tools.index"))}model(){return this.controllerFor("firm").get("model")}afterModel(e){e.set("perspectiveSubType","global")}setupController(e,t){return super.setupController(...arguments),this.controllerFor("perspective").set("model",t)}},o=(0,u.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"toast",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);const h=p;i.d(t,["default",0,h])},924250(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(804204),c=i(701627),d=i.n(c),p=i(453836),h=i(204011),m=i(127950);const{APP:{ENABLE_FEDERATED_MODULES:g}}=h.default,f=(r=class extends p.default{constructor(...e){super(...e),(0,s.A)(this,"groupDetail",null),(0,s.A)(this,"controllerName","contextDetails"),(0,n.A)(this,"allocationFrameworkData",o,this),(0,n.A)(this,"featureFlags",a,this)}afterModel(e,t){super.afterModel(e,t);let r=Boolean(this.featureFlags.flags.boolean.tr_restrictions);g&&r&&i.e(1130).then(i.t.bind(i,951130,23)).catch(e=>(0,m.Cp)(e));let o=e.get("id");return d().all([this.allocationFrameworkData.modelPromise]).then(()=>this.store.findRecord("groupDetail",o)).then(e=>this.groupDetail=e)}setupController(e,t){super.setupController(e,t),this.controllerFor("contextDetails").set("groupDetail",this.groupDetail)}},o=(0,l.A)(r.prototype,"allocationFrameworkData",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,f])},982149(e,t,i){i.r(t);var r=i(959948);class o extends r.default{}const a=o;i.d(t,["default",0,a])},253939(e,t,i){i.r(t);var r,o,a,n,s,l,u=i(748096),c=i(401104),d=i(228888),p=i(804204),h=i(395562),m=i(683681),g=i(682178);const f=(r=(0,m._W)(function*(e){let t=yield this.store.query("contact",{role:g.default.CLIENT});e.set("allContacts",t)}),o=class extends h.default{constructor(...e){super(...e),(0,c.A)(this,"controllerName","fileVault"),(0,u.A)(this,"ajax",a,this),(0,u.A)(this,"fileLabelData",n,this),(0,u.A)(this,"displaySetting",s,this),(0,u.A)(this,"loadContactsTask",l,this)}model(){return[]}afterModel(){return this.fileLabelData.modelPromise}setupController(e,t){super.setupController(e,t),this.controllerFor("labels").set("model",this.store.peekAll("label")),this.displaySetting.model.implicitAffiliations&&this.loadContactsTask.perform(e)}},a=(0,d.A)(o.prototype,"ajax",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(o.prototype,"fileLabelData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(o.prototype,"displaySetting",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(o.prototype,"loadContactsTask",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o);i.d(t,["default",0,f])},446425(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(395562),u=i(804204);const c=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this),(0,n.A)(this,"controllerName","perspective")}model(e){return this.store.findRecord("entity",e.entity_id)}afterModel(e){if(e.get("isOnlyInvestment"))return this.router.transitionTo("app.tools.contextDetails.entity",e)}},o=(0,s.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,c])},167164(e,t,i){i.r(t);var r=i(959948);class o extends r.default{}const a=o;i.d(t,["default",0,a])},238642(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(395562),d=i(943910),p=i(804204),h=i(697392);let m=(r=class extends c.default{constructor(...e){super(...e),(0,l.A)(this,"controllerName","perspective"),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"ajax",n,this)}get fileVaultController(){return this.controllerFor("fileVault")}model(e){return"firm"===e.perspectiveType?this.controllerFor("firm").get("model"):this.store.find(e.perspectiveType,e.id)}afterModel(e,t){if("firm"!==e.perspectiveType)if(e.get("isOnlyInvestment"))this.router.transitionTo("app.tools.contextDetails.entity",e);else{if("app.tools.fileVault.perspective.index"===t.targetName){let e=this.fileVaultController?.lastSelectedTab??"index";
1try{this.router.transitionTo(`app.tools.fileVault.perspective.${e}`)}catch(e){this.router.transitionTo(t.targetName)}return}"firm"===e.get("perspectiveType")&&e.set("perspectiveSubType","global")}else this.router.transitionTo("app.files.index")}setupController(e,t){super.setupController(...arguments);let i=this.controllerFor("fileVault");if(i.set("q",null),i.set("match_name_only",!0),this.setupControllerForFileVaultParentController(e),this.featureFlags.flags.boolean.files_client_uploads&&(t.get("perspectiveType")===h.PERSPECTIVE_TYPES.ENTITY||t.get("perspectiveType")===h.PERSPECTIVE_TYPES.GROUP)){let i=`/public/files/client_upload_count?${t.get("perspectiveType")}_id=${t.get("id")}`;this.ajax.ajax({url:i}).then(t=>{e.set("clientFileUploadCount",t.data.count),e.set("showFileUploadCount",!0)})}}},o=(0,u.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"ajax",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(r.prototype,"fileVaultController",[d.computed],Object.getOwnPropertyDescriptor(r.prototype,"fileVaultController"),r.prototype),r)},674477(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(395562),c=i(804204);let d=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this),(0,s.A)(this,"controllerName","fileVault")}model(){return this.modelFor("app.tools.fileVault.perspective")}setupController(){this.featureFlags.flags.boolean.files_client_uploads?(this.controllerFor("fileVault").set("lastSelectedTab","clientUploads"),this.loadData()):this.router.transitionTo("app.tools.fileVault.perspective.index")}},o=(0,l.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},734705(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(395562);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"controllerName","fileVault")}model(){return this.modelFor("app.tools.fileVault.perspective")}setupController(){this.controllerFor("fileVault").set("lastSelectedTab","index"),this.loadData()}}},65028(e,t,i){i.r(t);var r=i(401104),o=i(733559);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"toolDisplayName","Holdings"),(0,r.A)(this,"accessControllerName","app.tools.holdings"),(0,r.A)(this,"controllerName","app.tools.holdings")}}const n=a;i.d(t,["default",0,n])},297045(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(943910),c=i(733559),d=i(658718),p=i(979295),h=i(583479),m=i(804204),g=i(987456);const f=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"toolDisplayName","Holdings"),(0,s.A)(this,"canAccessRoute",!0),(0,n.A)(this,"factorTemplateData",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){let e=this.factorTemplateData;return e.ensureRecords([...e.criticalRecords,"value","security"])}model(e){return(0,d.model)(e,this)}afterModel(e){return this.store.findRecord("holdings",e.get("id")).then(e=>this.holdings=e)}serialize(e){return(0,d.serialize)(e)}setupController(e,t){e.set("perspective",t),e.set("holdings",this.holdings);let i=this.store.createRecord("portfolioQuery");i.get("groupingFactors").addObjects([h.default.createFromTemplateId(this.store,"asset_class",!1),h.default.createFromTemplateId(this.store,"security",!1)]),i.get("valueFactors").addObjects([h.default.createFromTemplateId(this.store,"value",!1)]);let r=e.get("pqr");r&&r.removeTarget(this);let o=g.Ec(),a=t,n=(0,p.getOwner)(this).factoryFor("instantiable:requests/portfolio-query").create({query:i,startDate:o,endDate:o,ownershipPerspective:a});n.addTarget(this),e.set("collapseAllState",!1),e.set("pqr",n),e.set("isDirty",!1)}error(e,t){let i=e?.error,r=i?.status_code;return 403!==r&&404!==r||(t.abort(),i.shouldHideAlerts=!0,this.router.transitionTo("errors",i)),!0}onPortfolioRequestLoaded(){let e=this.controller.get("pqr");e&&!e.get("isLoading")&&this.controller.set("isDirty",!1)}reload(){this.afterModel(this.modelFor(this.routeName)).then(()=>{this.setupController(this.controller,this.modelFor(this.routeName))})}},o=(0,l.A)(r.prototype,"factorTemplateData",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"error",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),(0,l.A)(r.prototype,"onPortfolioRequestLoaded",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"onPortfolioRequestLoaded"),r.prototype),(0,l.A)(r.prototype,"reload",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"reload"),r.prototype),r);i.d(t,["default",0,f])},688746(e,t,i){i.r(t);var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","toolsIndex")}beforeModel(){this.controllerFor("perspective").set("model",null)}model(){return null}}const s=n;i.d(t,["default",0,s])},491628(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(733559);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","app.tools.orderSets"),(0,r.A)(this,"toolDisplayName","Order sets")}}},211069(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(658718);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"controllerName","perspective"),(0,a.A)(this,"store",o,this)}model(e){return(0,d.model)(e,this)}serialize(e){return(0,d.serialize)(e)}},o=(0,s.A)(r.prototype,"store",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},769641(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p,h,m,g,f=i(748096),y=i(401104),b=i(228888),v=i(943910),w=i(804204),_=i(227647),A=i(701627),T=i.n(A),C=i(107920);let S=(r=class extends _.default{constructor(...e){super(...e),(0,y.A)(this,"toolDisplayName","Portfolio Analysis"),(0,f.A)(this,"fileLabelData",o,this),(0,f.A)(this,"benchmarkAssociationsListData",a,this),(0,f.A)(this,"benchmarkData",n,this),(0,f.A)(this,"allocationFrameworkData",s,this),(0,f.A)(this,"portfolioViewFavoriteData",l,this),(0,f.A)(this,"portfolioViewCategoryData",u,this),(0,f.A)(this,"portfolioViewScheduleData",c,this),(0,f.A)(this,"filterSetData",d,this),(0,f.A)(this,"commandLine",p,this),(0,f.A)(this,"factorTemplateData",h,this),(0,f.A)(this,"popover",m,this),(0,f.A)(this,"theme",g,this)}setupController(e){super.setupController(...arguments),e.set("isRouteActive",!0),e.set("route",this),this._addRunListener(()=>e.send("runAnalysis"));for(let t in e.commandHandlers)this.commandLine.registerCommandHandler(t,e.commandHandlers[t])}resetController(e,t){if(super.resetController(...arguments),t){e.set("isRouteActive",!1);for(let t in e.commandHandlers)this.commandLine.unregisterCommandHandler(t)}}model(){let e=this.factorTemplateData,t=e.ensureRecords([...e.criticalRecords,"ownership","security"]);return(0,C.default)(()=>{this.isDestroying||(this.allocationFrameworkData.modelPromise,this.portfolioViewFavoriteData.modelPromise,this.portfolioViewCategoryData.modelPromise,this.filterSetData.modelPromise)},{timeout:1}),T().all([this.fileLabelData.modelPromise,t]).then(()=>null)}willTransition(e){if(this.controller.get("deltaLotsIsDirty")){e.abort();let t=this.controller.get("deltaLotsSaveAndContinue");this.popover.openAplModal("utils/modals/unsaved-changes",{label:"tax lot edits",isSaveable:null!==t,onSave:async()=>{(!t||await t())&&(this.controller.set("deltaLotsIsDirty",!1),e.retry())},onDiscardChanges:()=>{this.controller.set("deltaLotsIsDirty",!1),e.retry()}})}else if(this.controller.get("isDetailsPanelEditing")){e.abort();let t=()=>{this.controller.set("isDetailsPanelEditing",!1),e.retry()};if(this.theme.isVsAndNotOverridden)return void this.popover.openAplModal("utils/modals/discard-details-panel-edits",{onProceed:t});this.popover.showConfirmDialog({headerText:"You are currently editing a property",content:"Any unsaved changes will be lost.",confirmText:"Proceed",confirm:t})}}},o=(0,b.A)(r.prototype,"fileLabelData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,b.A)(r.prototype,"benchmarkAssociationsListData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,b.A)(r.prototype,"benchmarkData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,b.A)(r.prototype,"allocationFrameworkData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,b.A)(r.prototype,"portfolioViewFavoriteData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,b.A)(r.prototype,"portfolioViewCategoryData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,b.A)(r.prototype,"portfolioViewScheduleData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,b.A)(r.prototype,"filterSetData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,b.A)(r.prototype,"commandLine",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,b.A)(r.prototype,"factorTemplateData",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,b.A)(r.prototype,"popover",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,b.A)(r.prototype,"theme",[w.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,b.A)(r.prototype,"willTransition",[v.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);const R=S;i.d(t,["default",0,R])},602466(e,t,i){i.r(t);var r=i(959948);class o extends r.default{}const a=o;i.d(t,["default",0,a])},890388(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(943910),c=i(227647),d=i(658718),p=i(804204);let h=(r=class extends c.default{constructor(...e){super(...e),(0,s.A)(this,"controllerName","perspective"),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this),(0,s.A)(this,"_lastModel",null)}model(e){return(0,d.model)(e,this)}afterModel(e,t){return!e.get("isOnlyInvestment")||this.featureFlags.flags.boolean.enable_analysis_for_etfs_mutual_funds&&e.get("isETFOrMutualFund")?super.afterModel(e,t):this.router.transitionTo("app.tools.contextDetails.entity",e)}setupController(e,t){let i=e.get("model");if(super.setupController(...arguments),this._lastModel!==t){let e=this.controllerFor("portfolioAnalysis");e.resetQueryRequests(),e.clearInitialDateRange(),e.set("subTypeChanged",this.subTypeChanged)}this._lastModel=t,i&&t===i&&"firm"===t.get("perspectiveType")&&e.notifyPropertyChange("model")}
1serialize(e){return(0,d.serialize)(e)}subTypeChanged(e){let t=(0,u.get)(this.controller,"selectedPerspective");if(!t)throw new Error("perspective must be present");e!==(0,u.get)(t,"perspectiveSubType")&&(0,d.transitionToSubtype)(e,t,this.router)}},o=(0,l.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"subTypeChanged",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"subTypeChanged"),r.prototype),r)},350251(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n=i(748096),s=i(228888),l=i(496314),u=i(558779),c=i.n(u),d=i(804204),p=i(116762);let h=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}redirect(e,t){let i=e.get("perspectiveType");if((0,l.isNone)(i))return;let r=this.controllerFor("portfolioAnalysis").get("selectedView");return(0,l.isNone)(r)?(0,p.getLinkToSourceData)(t).then(i=>i?this.transitionToView(e,"default",t):this.store.queryRecord("portfolioView",{id:"last_visited"}).then(i=>this.transitionToView(e,i,t))):this.transitionToView(e,r,t)}transitionToView(e,t,i){return this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view",e,t,{queryParams:i.to.queryParams})}},o=(0,s.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},116762(e,t,i){i.r(t),i.d(t,{getLinkToSourceData:()=>R});var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(943910),g=i(701627),f=i.n(g),y=i(558779),b=i.n(y),v=i(804204),w=i(465058),_=i(393731),A=i(404893),T=i(919394),C=i(969371),S=(i(44384),i(52771));async function R(e){let{linkToSourceData:t}=e.to.queryParams;return t?await(0,S.T)(t):null}let D=(r=class extends(b()){constructor(...e){super(...e),(0,p.A)(this,"controllerName","portfolioAnalysis"),(0,d.A)(this,"dateTime",o,this),(0,d.A)(this,"featureFlags",a,this),(0,d.A)(this,"filterSetData",n,this),(0,d.A)(this,"portfolioViewScheduleData",s,this),(0,d.A)(this,"router",l,this),(0,d.A)(this,"store",u,this),(0,d.A)(this,"toast",c,this),(0,p.A)(this,"queryParams",{linkToSourceData:{replace:!1}})}model(e){return this.store.findRecord("portfolioView",e.view_id)}async afterModel(e,t){let i;e.get("isThin")&&await e.reload(),t.to.queryParams.linkToSourceData&&(i=await R(t),i&&await this._preconfigureView(e,i)),this.portfolioViewScheduleData.loadSchedulesForViews([e]);let r={filterSetsList:[e.filterSets,...e.items.mapBy("visualization.filterSets")]};return e.defaultTimePeriod&&(r.interval=this.dateTime.getIntervalForTimePeriod(e.defaultTimePeriod)),f().hash(r).then(({filterSetsList:t,interval:r})=>{i&&(r={start:i.startDate,end:i.endDate}),r&&(e.set("defaultStartDate",r.start),e.set("defaultEndDate",r.end));let o=r?.start??(0,w.getDefaultStartDate)(),a=r?.end??(0,w.getDefaultEndDate)();_.default.loadAllFactorDisplayNames({filterSetsList:t,start:o,end:a})})}error(e,t){let i=e?.error,r=i?.status_code;return 403!==r&&404!==r||(t.abort(),i.shouldHideAlerts=!0,this.router.transitionTo("errors",i)),!0}setupController(e,t,i){e.clearSelectedRows(),e.setupSelectedView(t);let{initialDateRange:r}=i.to.queryParams;if(r){let[t,i]=r.split("...");e.setDateRange({startDate:t,endDate:i})}(t.get("filters")||[]).filterBy("hasRedactedElements").length&&this.get("toast").queueToast("You need permission to see certain filters in this view. Contact your firm administrator.",{type:"warning",showIcon:!0,showClose:!0})}resetController(e,t){super.resetController(...arguments),t&&e.unregisterPortfolioAplTableRef()}async _preconfigureView(e,t){let i=(t.filters??[]).map(e=>T.default.createFromHash(e,this.store)),r=await this.filterSetData.modelPromise,o=(t.filterSetIds??[]).map(e=>r.findBy("id",e)),a=(0,A.default)("portfolioVisualization",t.visualization,void 0,this.store);e.filters.setObjects(i),e.filterSets.setObjects(o),e.getTopChart().set("isShown",!1),e.getBottomChart().set("isShown",!1);let n=e.getTable().visualization;(a.isChart||a.isBigNumber)&&a.convertPortfolioWidgetToTable(),C.default._copyRelationships(a,n,this.store)}},o=(0,h.A)(r.prototype,"dateTime",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.A)(r.prototype,"featureFlags",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(r.prototype,"filterSetData",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(r.prototype,"portfolioViewScheduleData",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(r.prototype,"router",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(r.prototype,"store",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(r.prototype,"toast",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.A)(r.prototype,"error",[m.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),r);const O=D;i.d(t,["default",0,O])},40949(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a=i(748096),n=i(228888),s=i(943910),l=i(558779),u=i.n(l),c=i(804204),d=i(496314),p=i(299005);let h=(r=class extends(u()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}_routeToSubPanel(e){switch(e){case p.default.NONE:case p.default.EMPTY:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.empty");case p.default.ENTITY_DETAILS:case p.default.POSITION_DETAILS:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.details");case p.default.HISTORICAL_VALUES:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.historicalValues");case p.default.FILES:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.files");case p.default.SUMMARY_DATA:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.summaryData");case p.default.INSPECTOR:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.inspector");case p.default.BULK_EDIT:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.bulkEdit");case p.default.TAX_LOT:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.taxLot");case p.default.BENCHMARK:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.benchmark");case p.default.TRANSACTION:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.transaction");case p.default.DATA_PROBLEM:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.dataProblem");case p.default.BULK_TRANSACTIONS:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.bulkTransactions");case p.default.BULK_DATA_PROBLEMS:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.bulkDataProblems");case p.default.DELTA_TAX_LOTS:return void this.router.transitionTo("app.tools.portfolioAnalysis.perspective.view.panel.deltaTaxLots")}}beforeModel(e){let t=e.to?.queryParams._panelType;(0,d.isNone)(t)||this._routeToSubPanel(parseInt(t))}willTransition(e){let t=e.targetName;if(!t?.includes("panel"))return!0;let i=e.to?.queryParams._panelType;(0,d.isNone)(i)?this.router.transitionTo(t.slice(0,t.indexOf("panel")-1)):this._routeToSubPanel(parseInt(i))}},o=(0,n.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,n.A)(r.prototype,"willTransition",[s.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},729977(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}}},209346(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}}},894313(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(401104),o=i(943910),a=i(558779),n=i.n(a),s=i(299005);class l extends(n()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){super.setupController(e,t,i),(0,o.set)(e,"entityDetailsPanelType",s.default.BULK_EDIT)}}},253708(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}}},157690(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}}},174845(e,t,i){i.r(t),i.d(t,{default:()=>s});var r=i(401104),o=i(558779),a=i.n(o),n=i(502210);class s extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){if(super.setupController(e,t,i),e.deltaLotsIsDirty=!1,e.taxLotsPositionViewModel?.position?.id&&!e.taxLotsPositionViewModel?.deltaLots?.length){let t={effectiveFromDate:e.selectedStartDate,effectiveEndDate:e.selectedEndDate};e.taxLotsDateRange=t,e.loadDeltaLotsTask.perform(e.taxLotsPositionViewModel.position.id,t).catch(n.default)}}}},532496(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(943910),u=i(558779),c=i.n(u),d=i(299005),p=i(804204);let h=(r=class extends(c()){constructor(...e){super(...e),(0,a.A)(this,"factorTemplateData",o,this),(0,n.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){super.setupController(e,t,i),(0,l.set)(e,"entityDetailsPanelType",d.default.ENTITY_DETAILS)}afterModel(){this.factorTemplateData.getRecordWithContext({contexts:["position"],includeHidden:!1})}},o=(0,s.A)(r.prototype,"factorTemplateData",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},449955(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}}},655725(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(401104),o=i(943910),a=i(558779),n=i.n(a),s=i(299005);class l extends(n()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){super.setupController(e,t,i),(0,o.set)(e,"entityDetailsPanelType",s.default.FILES)}}},753231(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(401104),o=i(943910),a=i(558779),n=i.n(a),s=i(299005);class l extends(n()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){super.setupController(e,t,i),(0,o.set)(e,"entityDetailsPanelType",s.default.HISTORICAL_VALUES)}}},927563(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(401104),o=i(943910),a=i(558779),n=i.n(a),s=i(299005);class l extends(n()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){super.setupController(e,t,i),(0,o.set)(e,"entityDetailsPanelType",s.default.INSPECTOR)}}},327343(e,t,i){i.r(t),i.d(t,{default:()=>l});var r=i(401104),o=i(943910),a=i(558779),n=i.n(a),s=i(299005);class l extends(n()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}setupController(e,t,i){super.setupController(e,t,i),(0,o.set)(e,"entityDetailsPanelType",s.default.SUMMARY_DATA)}}},637909(e,t,i){i.r(t),i.d(t,{default:()=>n});var r=i(401104),o=i(558779),a=i.n(o);
1class n extends(a()){constructor(...e){super(...e),(0,r.A)(this,"controllerName","portfolioAnalysis")}}},557606(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);let p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"controllerName","portfolioAnalysis"),(0,n.A)(this,"transactionTypeData",o,this),(0,n.A)(this,"betaTransactionTypeData",a,this)}afterModel(){return Promise.all([this.transactionTypeData.modelPromise,this.betaTransactionTypeData.modelPromise])}},o=(0,l.A)(r.prototype,"transactionTypeData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"betaTransactionTypeData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},313609(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a,n=i(748096),s=i(228888),l=i(227647),u=i(804204),c=i(921742);let d=(r=class extends l.default{constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"store",a,this)}beforeModel(e){let t=e.to.find(e=>e.name===this.routeName).params.view_id;return(0,c.getFirstEntityForFirm)(this.store).then(e=>{let i=e.get("firstObject.id");this.router.transitionTo(`/app/tools/portfolio/entity/${i}/view/${t}`)})}},o=(0,s.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},818005(e,t,i){i.r(t);var r=i(401104),o=i(733559);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"toolDisplayName","Proposals"),(0,r.A)(this,"accessControllerName","app.tools.proposals")}}const n=a;i.d(t,["default",0,n])},403696(e,t,i){i.r(t);var r=i(733559),o=i(658718),a=i(804204),n=i(496314),s=i(943910),l=i(701627),u=i.n(l),c=i(987456),d=i(175966);const p=r.default.extend({toolDisplayName:"Proposals",canAccessRoute:!0,proposalData:(0,a.inject)(),popover:(0,a.inject)(),router:(0,a.inject)(),theme:(0,a.inject)(),model(e){return(0,o.model)(e,this)},serialize:e=>(0,o.serialize)(e),setupController:(e,t)=>(e.set("perspective",t),e.set("selectedProposalIds",[]),e.pagination.resetPaginationParams(),e.refreshData()),showProposalReferencedDialog(e,t){let i=t.user_message,r=`The ${e.get("name")} proposal cannot be deleted because it is used in the following reports: ${i}.\n To delete this proposal, you must first remove it from the reports.`;this.theme.isVsAndNotOverridden?this.controller.set("deleteErrorMessage",{title:"Cannot delete proposal",message:r}):this.popover.showInfoDialog({headerText:"Cannot Delete Proposal",classNames:["delete-failure"],content:r})},showProposalsReferencedDialog(){let e="The selected proposals cannot be deleted because they are used in reports. To delete the proposals, you must first remove them from the reports.";this.theme.isVsAndNotOverridden?this.controller.set("deleteErrorMessage",{title:"Cannot delete proposals",message:e}):this.popover.showInfoDialog({headerText:"Cannot Delete Proposals",classNames:["delete-failure"],content:e})},deleteSingle(e){this.theme.isVsAndNotOverridden?this.controller.set("proposalsToDelete",[e]):this.popover.showConfirmDialog({headerText:"Delete Proposal",classNames:["delete-proposal"],content:`Deleting the following proposal will permanently remove it from the application: ${e.get("name")}`,confirmText:"Delete",confirm:()=>{e.get("content").destroyAndDisconnectRecord().then(()=>{let t=this.controller.get("proposals");t&&t.removeObject(e),this.controller.set("selectedProposalIds",[])},t=>{t.handle("proposalReferenced",t=>{this.showProposalReferencedDialog(e.get("content"),t)})})}})},onConfirmDelete(e){let t=this.controller.get("proposals"),i=e.get("length");this.controller.set("deletingMultipleCount",i),this.controller.set("selectedProposalIds",[]);let r=e.map(e=>e.content.destroyAndDisconnectRecord().then(()=>({proposalRow:e,error:!1}),t=>{let i;return t.handle("proposalReferenced",e=>{i=e}),{proposalRow:e,error:!0,errorMessage:i}}));u().all(r).then(e=>{let i=[],r=[];for(let t of e)t.error?i.push({proposal:t.proposalRow,message:t.errorMessage}):r.push(t.proposalRow);i.length&&(1===i.length?this.showProposalReferencedDialog(i[0].proposal,i[0].message):this.showProposalsReferencedDialog()),t&&(t.removeObjects(r),this.controller.goToPreviousPageIfEmpty()),this.controller.resetAfterDelete()})},deleteMultiple(e){if(this.theme.isVsAndNotOverridden)this.controller.set("proposalsToDelete",e);else{let t=e.mapBy("name").join(", "),i=e.get("length");this.popover.showConfirmDialog({headerText:"Delete Proposals",classNames:["delete-proposal"],content:`Deleting the following ${i} proposals will permanently remove them from the application: ${t}`,confirmText:"Delete",confirm:()=>this.onConfirmDelete(e)})}},deleteProposal:(0,s.action)(function(e){e&&this.deleteSingle(e)}),onDeleteMultiple:(0,s.action)(function(){let e=this.controller,t=e.get("selectedProposalIds");if((0,n.isEmpty)(t))return;let i=new Set(t),r=e.get("proposals").filter(e=>i.has(e.get("id")));1===r.get("length")?this.deleteSingle(r.objectAt(0)):this.deleteMultiple(r)}),editProposal:(0,s.action)(function(e){window.open(this.router.urlFor("app.proposal",e))}),newProposal:(0,s.action)(function(){this.controller.set("isCreatingProposal",!0);let e=this.controller.perspective;(function(e,t){let i=e.createRecord("scenario");i.set("name","New Proposal"),i.set("date",c.Ec()),i.set("perspective",t);let r=e.createRecord("proposal");return r.set("scenario",i),r})(this.store,e).save().then(e=>{this.controller.set("proposals",[(0,d.default)(e),...this.controller.proposals]),this.controller.set("isCreatingProposal",!1)})}),confirmDeleteAplModal:(0,s.action)(function(e){this.onConfirmDelete(e)})});i.d(t,["default",0,p])},71511(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(733559);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"accessControllerName","app.tools.reports"),(0,r.A)(this,"toolDisplayName","Reports")}model(){return[]}}},655360(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(959948);class o extends r.default{}},545262(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(197191),m=i(600246);let g=(r=class extends(d()){constructor(...e){super(...e),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"store",n,this),(0,l.A)(this,"controllerName","perspective")}model({perspective_type:e,perspective_id:t}){if("firm"===e){let e=this.controllerFor("firm").model;return e.set("perspectiveSubType","global"),Promise.resolve(e)}return this.store.findRecord(e,t)}afterModel(e){e instanceof h.default&&e.isOnlyInvestment&&this.router.transitionTo("app.tools.contextDetails.entity",e),e instanceof m.default&&this.featureFlags.flags.boolean.reporting_module&&this.router.transitionTo("app.reporting.reports")}},o=(0,u.A)(r.prototype,"featureFlags",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},308567(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(600246);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){!(this.modelFor("app.tools.reports.perspective")instanceof d.default)&&this.featureFlags.flags.boolean.reporting_in_analysis&&this.router.transitionTo("app.tools.reports.perspective.pdfs")}setupController(e,t,i){super.setupController(e,t,i);let r=this.modelFor("app.tools.reports.perspective");e.pagination.resetPaginationParams(),e.set("selectedDateOptionValue",""),e.set("selectedDate",""),r instanceof d.default&&e.applyDefaultDateFilter(),e.refreshData()}resetController(e,t,i){e.initialDataLoadTask.cancelAll(),e.pollDataTask.cancelAll(),e.loadDataTask.cancelAll(),super.resetController(e,t,i)}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},946122(e,t,i){i.r(t),i.d(t,{default:()=>f});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(286606),c=i(558779),d=i.n(c),p=i(943910),h=i(804204),m=i(204011),g=i(683681);let f=(r=class extends(d()){constructor(...e){super(...e),(0,n.A)(this,"permissionService",o,this),(0,n.A)(this,"store",a,this),(0,s.A)(this,"_pollingTask",void 0),(0,s.A)(this,"pollingTask",(0,u.I)(()=>({context:this,generator:function*(e){for(;"STARTED"===e.status;){yield(0,g.wR)(m.default.POLLING_INTERVALS.MEDIUM);try{"STARTED"!==(e=yield e.reload()).status&&this._pollingTask?.cancel()}catch(t){if(this._pollingTask?.cancel(),404!==t.error.status_code)throw t;t.suppress(),e.set("tasks",[])}}}}),null,"pollingTask","restartable"))}beforeModel(){return this.controllerFor("thin-distribution-groups").ensureLoaded()}model({job_id:e}){return this.store.findRecord("reporting/report-generation-job",e)}afterModel(e){return e.reload().then(async()=>{let t=e.reportId;t&&await this.store.findRecord("reporting/report",t,{reload:!0}).then(()=>{this.controllerFor("app.tools.reports.perspective.generation.details").setProperties({isReportDeleted:!1,isReportNotAcce
1ssible:!1})}).catch(e=>{let t=e.error.status_code;if(404!==t&&403!==t)throw e;e.suppressAlert(),this.controllerFor("app.tools.reports.perspective.generation.details").setProperties({isReportDeleted:404===t,isReportNotAccessible:403===t})})})}setupController(e,t,i){super.setupController(e,t,i),"STARTED"===t.status&&(this._pollingTask=this.pollingTask.perform(t)),e.send("clearSelectedItems"),this.controllerFor("app.tools.reports.perspective.generation").send("resetSelectedJob",t)}loading(e){let t=this.controllerFor("app.tools.reports.perspective.generation");t&&(t.set("isDetailsLoading",!0),e.promise.finally(()=>{t.set("isDetailsLoading",!1)}))}willTransition(){this._pollingTask?.isRunning&&this._pollingTask.cancel()}},o=(0,l.A)(r.prototype,"permissionService",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"loading",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"loading"),r.prototype),(0,l.A)(r.prototype,"willTransition",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},692933(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(600246);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){!(this.modelFor("app.tools.reports.perspective")instanceof d.default)&&this.featureFlags.flags.boolean.reporting_in_analysis&&this.router.transitionTo("app.tools.reports.perspective.pdfs"),this.router.transitionTo("app.tools.reports.perspective.reports")}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},302102(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(600246),p=i(318035);let h=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){!(this.modelFor("app.tools.reports.perspective")instanceof d.default)&&this.featureFlags.flags.boolean.reporting_in_analysis||this.router.transitionTo("app.tools.reports.perspective.reports")}resetController(e,t,i){super.resetController(e,t,i),t&&(e.isLoadingInitially=!0,e.creators=void 0,e.runStart=(0,p.getDefaultRunStartDate)(),e.runEnd=void 0,e.timePeriodStart=void 0,e.timePeriodEnd=void 0,e.search=void 0,e.reports=void 0,e.pollPdfsTask.cancelAll())}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},113431(e,t,i){i.r(t),i.d(t,{default:()=>d});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204),c=i(697392);let d=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}async model(e){let t=this.modelFor("app.tools.reports.perspective"),i={perspective_type:t.perspectiveType===c.PERSPECTIVE_TYPES.ENTITY?"NODE":"GROUP",perspective_id:t.id,task_ids:[e.pdf_id],is_extend:!0},r=(await this.store.query("reporting/report_generation_pdf",i)).toArray();if(0===r.length)throw new Error(`Expected to find PDF with task_id ${e.pdf_id}`);return r[0]}},o=(0,n.A)(r.prototype,"store",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},683194(e,t,i){i.r(t),i.d(t,{default:()=>p});var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204),d=i(600246);let p=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"featureFlags",o,this),(0,n.A)(this,"router",a,this)}beforeModel(){!(this.modelFor("app.tools.reports.perspective")instanceof d.default)&&this.featureFlags.flags.boolean.reporting_in_analysis&&this.router.transitionTo("app.tools.reports.perspective.pdfs")}setupController(e,t,i){return super.setupController(e,t,i),e.sort_column&&e.sort_type||e.pagination.setPaginationState({sort_type:"descending",sort_column:"modified_at"}),e.pagination.resetPaginationParams(),e.refreshData()}},o=(0,s.A)(r.prototype,"featureFlags",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},732288(e,t,i){i.r(t),i.d(t,{default:()=>o});var r=i(213462);class o extends r.default{}},974129(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(213462),l=i(804204),u=i(658718);let c=(r=class extends s.default{constructor(...e){super(...e),(0,a.A)(this,"store",o,this)}model(e){return(0,u.model)(e,this)}},o=(0,n.A)(r.prototype,"store",[l.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},523793(e,t,i){i.r(t),i.d(t,{default:()=>z});var r,o,a,n,s,l,u,c,d,p,h,m,g,f,y,b,v=i(748096),w=i(401104),_=i(228888),A=i(213462),T=i(943910),C=i(804204),S=i(46457),R=i.n(S),D=i(139220),O=i(935884),E=i(987456),F=i(855108),P=i(658399),x=i(228681);const N=[...Object.values(O.WORKSHEET_FACTOR_TEMPLATE_IDS),F.WORKSHEET_FACTOR_TEMPLATES.HOLDING_ACCOUNT,D.CASH_FACTORS.SETTLED_CASH,D.CASH_FACTORS.INFLIGHT_VALUE,D.CASH_FACTORS.DRAFT_CA
1SH,D.CASH_FACTORS.INVESTABLE_CASH,x.DEFAULT_VIEW_FACTORS.SECURITY,x.DEFAULT_VIEW_FACTORS.TICKER_SYMBOL,x.DEFAULT_VIEW_FACTORS.ISIN,x.DEFAULT_VIEW_FACTORS.CUSIP,x.DEFAULT_VIEW_FACTORS.VALUE];let z=(r=(0,C.inject)("feature-flags"),o=(0,C.inject)("trading/context"),a=(0,C.inject)("trading/order-set-manager"),n=(0,C.inject)("trading/snapshot"),s=(0,C.inject)("trading/worksheet-table-config"),l=(0,C.inject)(),u=class extends A.default{constructor(...e){super(...e),(0,v.A)(this,"factorTemplateData",c,this),(0,v.A)(this,"featureFlags",d,this),(0,v.A)(this,"tradingContext",p,this),(0,v.A)(this,"orderSetManager",h,this),(0,v.A)(this,"snapshot",m,this),(0,v.A)(this,"uiConfig",g,this),(0,v.A)(this,"popover",f,this),(0,v.A)(this,"toast",y,this),(0,v.A)(this,"store",b,this),(0,w.A)(this,"beforeUnloadHandler",null),(0,w.A)(this,"queryParams",{order_set_id:{refreshModel:!0},origin:{refreshModel:!1},origin_tab:{refreshModel:!1}})}get isSnapshotFeatureEnabled(){return!!this.featureFlags.flags.boolean.tr_unified_enable_ordersetsnapshot}async beforeModel(){await super.beforeModel(),this.uiConfig.isFeatureEnabled&&await this.uiConfig.load()}async model(e,t){let i,r,o,a,n=this.modelFor("app.tools.trading-worksheet.perspective"),s=(t.to?.queryParams??{}).order_set_id??void 0,l=this.factorTemplateData.ensureRecords(N),u=e.view_id===P.DEFAULT_WORKSHEET_VIEW_ID?null:this.store.peekRecord("portfolioView",e.view_id);if(u?.isDeleted)return void this.fallbackToDefaultView();if(e.view_id!==P.DEFAULT_WORKSHEET_VIEW_ID&&(i=this.store.findRecord("portfolioView",e.view_id,{reload:!0})),i)try{r=await i}catch(e){let t=e;if(404===t?.error?.status_code||403===t?.error?.status_code)return t.handled=!0,void this.fallbackToDefaultView();throw e}else await l,r=(0,P.buildDefaultWorksheetView)(this.store);if(s&&(o=this.store.findRecord("trading/order-set",s,{reload:!0})),o)try{a=await o}catch(e){let t=e;if(404!==t?.error?.status_code)throw e;t.handled=!0,this.toast.queueToast("Unable to load order set. Starting with a new order set instead.",{type:"error",showIcon:!0,showClose:!0}),a=void 0}else a=void 0;await l;let c=!1,d=!1;if(this.isSnapshotFeatureEnabled&&a?.wentThroughApproval){let e=await this.snapshot.getPersistedView(a.id);e?(c=!0,r=e):d=!0}let p=E.Ec();return{portfolioView:r,perspective:n,orderSet:a,orderSetId:s,startDate:R()().subtract(1,"day").format(E.g$),endDate:p,isSnapshotMode:c,isSnapshotUnavailable:d}}afterModel({portfolioView:e,perspective:t,orderSet:i,orderSetId:r,startDate:o,endDate:a,isSnapshotMode:n=!1,isSnapshotUnavailable:s=!1}){r&&!i&&(r=void 0,this.router.transitionTo({queryParams:{order_set_id:null}})),this.tradingContext.initialize({perspective:t,view:e,orderSetId:r,startDate:o,endDate:a,isSnapshotMode:n,isSnapshotUnavailable:s}),this.setupBeforeUnloadHandler()}fallbackToDefaultView(){this.toast.queueToast("Unable to load view. Using default worksheet view instead.",{type:"warning",showIcon:!0,showClose:!0}),this.router.replaceWith("app.tools.trading-worksheet.perspective.view",P.DEFAULT_WORKSHEET_VIEW_ID)}setupBeforeUnloadHandler(){this.removeBeforeUnloadHandler(),this.beforeUnloadHandler=e=>{this.orderSetManager.hasUnsavedChanges&&e.preventDefault()},window.addEventListener("beforeunload",this.beforeUnloadHandler)}removeBeforeUnloadHandler(){this.beforeUnloadHandler&&(window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=null)}willTransition(e){e.to?.name!==e.from?.name&&this.orderSetManager.hasUnsavedChanges&&(e.abort(),this.popover.openAplModal("trading/worksheet/modals/save-or-discard-modal",{onContinue:()=>{e.retry()}}))}deactivate(){this.removeBeforeUnloadHandler(),this.tradingContext.teardown()}},c=(0,_.A)(u.prototype,"factorTemplateData",[C.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,_.A)(u.prototype,"featureFlags",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,_.A)(u.prototype,"tradingContext",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,_.A)(u.prototype,"orderSetManager",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,_.A)(u.prototype,"snapshot",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,_.A)(u.prototype,"uiConfig",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,_.A)(u.prototype,"popover",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,_.A)(u.prototype,"toast",[C.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,_.A)(u.prototype,"store",[C.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,_.A)(u.prototype,"willTransition",[T.action],Object.getOwnPropertyDescriptor(u.prototype,"willTransition"),u.prototype),u)},460690(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p,h,m=i(748096),g=i(401104),f=i(228888),y=i(804204),b=i(943910),v=i(496314),w=i(701627),_=i.n(w),A=i(720758),T=i(760045),C=i(640936),S=i(29934),R=i(116762),D=i(404893);i(44384);let O=(r=class extends A.default{constructor(...e){super(...e),(0,g.A)(this,"toolDisplayName","Transactions"),(0,g.A)(this,"controllerName","transactionCenter"),(0,g.A)(this,"isPositionInQueryParam",!1),(0,g.A)(this,"perspectiveSubType",null),(0,m.A)(this,"ajax",o,this),(0,m.A)(this,"entityTypeData",a,this),(0,m.A)(this,"permissionService",n,this),(0,m.A)(this,"transactionColumnData",s,this),(0,m.A)(this,"transactionTagData",l,this),(0,m.A)(this,"transactionTypeData",u,this),(0,m.A)(this,"transactionViewsData",c,this),(0,m.A)(this,"betaTransactionTypeData",d,this),(0,m.A)(this,"transactionViewFavoriteData",p,this),(0,m.A)(this,"toast",h,this),(0,g.A)(this,"queryParams",{position:{refreshModel:!0}})}beforeModel(e){let{queryParams:t}=e.to,i=t.subType;return(0,v.isPresent)(i)&&(["client","fund"].includes(i)?this.perspectiveSubType=i:(this.showInvalidSubTypeQueryParamToast(i),this.perspectiveSubType="client")),_().all([this.transactionColumnData.modelPromise,this.transactionTypeData.modelPromise,this.entityTypeData.modelPromise,this.transactionTagData.modelPromise,super.beforeModel(...arguments)])}
1showInvalidSubTypeQueryParamToast(e){this.toast.queueToast(`URL contains unexpected characters: ${e}.\n Select either the fund or limited partner mode from the top-right menu.`,{showIcon:!0,showClose:!0,type:"warning"})}model(e){let t,{viewId:i,linkToSourceData:r}=e;return t=i?this.store.findRecord("transactionView",i):r?this.store.findRecord("transactionView","default"):this.store.queryRecord("transactionView",{id:"last_visited"}),this.isPositionInQueryParam=(0,v.isPresent)(e?.position),this.isPositionInQueryParam?t.then(e=>"default"===e.id?T.modifyDefaultViewForPosition(e,this.store):e):t}async afterModel(e,t){let i=[this.transactionTypeData.modelPromise,this.betaTransactionTypeData.modelPromise,this.transactionViewFavoriteData.modelPromise];if(t.to.queryParams.linkToSourceData){let i=await(0,R.getLinkToSourceData)(t);i&&this._preconfigureView(e,i)}return _().all(i)}async setupController(e,t,i){if(super.setupController(...arguments),e.get("selectedView")||(e.set("selectedView",t),e.set("transactionViewHash",t.serialize({includeId:!0})),e.setViewIdQueryParam(t.id)),i.to.queryParams.linkToSourceData){let t=await(0,R.getLinkToSourceData)(i),{startDate:r,endDate:o}=t??{};r&&o&&(e.set("selectedStartDate",r),e.set("selectedEndDate",o))}let r=this.permissionService.hasEditTransactions;e.set("canEdit",r),e.set("transactionViewsController",this.transactionViewsData),e.set("currentRouteName",this.routeName),e.send("refresh"),e.setPerspectiveSubTypeTask.perform(this.perspectiveSubType),e.set("isPositionInQueryParam",this.isPositionInQueryParam),this._addRunListener(()=>{e.isDestroying||e.isDestroyed||e.send("runTransactions")});let o=i.to.queryParams.panelType;o&&"null"!==o&&!e.get("newTransactionEntities")&&e._defaultOwnerForQueryParamPanelTask.perform()}_getTxnDiff(e,t){if(this.txnNetEffectRequest&&!(0,v.isNone)(this.txnNetEffectRequest.abort)&&(this.txnNetEffectRequest.abort(),this.set("txnNetEffectRequest",null)),(0,v.isEmpty)(e))return _().resolve(NaN);{let i=this.ajax.ajax({url:"/public/transactions/net_effect",type:"POST",data:{net_effect_params:{position_ids:t,transaction_ids:e}}});return this.set("txnNetEffectRequest",i),i.then(e=>e.data.data)}}_getSnapshotDiff(e){if(this.snapshotNetEffectRequest&&!(0,v.isNone)(this.snapshotNetEffectRequest.abort)&&(this.snapshotNetEffectRequest.abort(),this.set("snapshotNetEffectRequest",null)),e?.length<2)return _().resolve(NaN);{let t=this.ajax.ajax({url:"/public/snapshots/unit_diff",type:"GET",data:{first_snapshot_id:(0,C.A)(e),second_snapshot_id:e[e.length-1]}});return this.set("snapshotNetEffectRequest",t),t.then(e=>e.data.unit_diff)}}deactivate(...e){super.deactivate(...e),this.isDestroying||this.controller.rollbackChanges()}_preconfigureView(e,t){let i=(0,D.default)("portfolioVisualization",t.visualization,void 0,this.store),{query:r,columnSettings:o}=i.query;e.set("query",r),e.columnSettings.setObjects(o.toArray())}resetPositionContext(){if(!this.controller)throw Error("Unable to find the controller for transaction-center");this.controller.resetPositionContext()}resetSubTypeQueryParam(){if(!this.controller)throw Error("Unable to find the controller for transaction-center");this.controller.set("subType",null)}willTransition(){this.controller.resetQuery()}didTransition(){this.controller.setPerspectiveSubTypeTask.perform(this.perspectiveSubType),this.controller.send("refresh"),this.controller.send("clearSelectedRows")}computeNetEffect(e,t,i,r){function o(e){return Number.isNaN(e)?null:e}this.controller.set("netEffectLoading",!0);let a=r?-1:1;_().hash({txnResponse:this._getTxnDiff(t,e),snap:this._getSnapshotDiff(i)}).then(e=>{this.controller.set("netEffect",{transactionCount:t?.length,transaction:S.A.numberWithDecimalPlacesMinAndMax(o(e.txnResponse.units),2,8),value:{value:S.A.numberWithDecimalPlacesMinAndMax(o(e?.txnResponse?.value?.value),2,8),currency:e?.txnResponse?.value?.currency},snapshotCount:i?.length,snapshot:S.A.numberWithDecimalPlacesMinAndMax(o(e.snap),2,8),diff:S.A.numberWithDecimalPlacesMinAndMax(o(S.A.sum(e.txnResponse.units,-a*e.snap)),2,8)})}).finally(()=>{this.controller.set("netEffectLoading",!1)})}},o=(0,f.A)(r.prototype,"ajax",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,f.A)(r.prototype,"entityTypeData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,f.A)(r.prototype,"permissionService",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,f.A)(r.prototype,"transactionColumnData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,f.A)(r.prototype,"transactionTagData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,f.A)(r.prototype,"transactionTypeData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,f.A)(r.prototype,"transactionViewsData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,f.A)(r.prototype,"betaTransactionTypeData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,f.A)(r.prototype,"transactionViewFavoriteData",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,f.A)(r.prototype,"toast",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,f.A)(r.prototype,"resetPositionContext",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"resetPositionContext"),r.prototype),(0,f.A)(r.prototype,"resetSubTypeQueryParam",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"resetSubTypeQueryParam"),r.prototype),(0,f.A)(r.prototype,"willTransition",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),(0,f.A)(r.prototype,"didTransition",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"didTransition"),r.prototype),(0,f.A)(r.prototype,"computeNetEffect",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"computeNetEffect"),r.prototype),r);const E=O;i.d(t,["default",0,E])},438609(e,t,i){i.r(t);var r=i(959948);class o extends r.default{}const a=o;i.d(t,["default",0,a])},728815(e,t,i){i.r(t);var r,o,a=i(748096),n=i(401104),s=i(228888),l=i(720758),u=i(943910),c=i(804204),d=i(658718);let p=(r=class extends l.default{constructor(...e){super(...e),(0,a.A)(this,"router",o,this),(0,n.A)(this,"shouldPositionContextCleared",null),(0,n.A)(this,"controllerName","perspective")}model(e){return(0,d.model)(e,this)}
1serialize(e){return(0,d.serialize)(e)}setupController(e,t){super.setupController(...arguments),this.shouldPositionContextCleared&&this.send("resetPositionContext"),this.shouldPositionContextCleared=!0,"managed_partnership"!==t.get("type")&&this.send("resetSubTypeQueryParam")}changeContextPosition(e,t){let i={queryParams:{position:t}};this.shouldPositionContextCleared=!1,this.router.transitionTo(this.routeName,e,i)}},o=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.A)(r.prototype,"changeContextPosition",[u.action],Object.getOwnPropertyDescriptor(r.prototype,"changeContextPosition"),r.prototype),r);const h=p;i.d(t,["default",0,h])},830154(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(204011),h=i(127950);const{APP:{ENABLE_FEDERATED_MODULES:m}}=p.default;let g=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"featureFlags",o,this),(0,s.A)(this,"router",a,this),(0,s.A)(this,"pageTitleManager",n,this)}afterModel(){this.pageTitleManager.setTitle("Trade settings")}async beforeModel(){Boolean(this.featureFlags.flags.boolean.tr_restrictions)?m&&await i.e(1130).then(i.t.bind(i,951130,23)).catch(e=>(0,h.Cp)(e)):this.router.transitionTo("app.tools")}},o=(0,l.A)(r.prototype,"featureFlags",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"pageTitleManager",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},126998(e,t,i){i.r(t),i.d(t,{default:()=>D});var r,o,a,n,s,l,u,c,d,p,h,m=i(748096),g=i(228888),f=i(558779),y=i.n(f),b=i(943910),v=i(804204),w=i(771598),_=i.n(w),A=i(204011),T=i(549968),C=i(136523),S=i(127950);const{APP:{ENABLE_FEDERATED_MODULES:R}}=A.default,D=(r=class extends(y()){constructor(...e){super(...e),(0,m.A)(this,"auth",o,this),(0,m.A)(this,"displaySetting",a,this),(0,m.A)(this,"inAppHelpWidget",n,this),(0,m.A)(this,"logger",s,this),(0,m.A)(this,"popover",l,this),(0,m.A)(this,"router",u,this),(0,m.A)(this,"runtimeConfig",c,this),(0,m.A)(this,"session",d,this),(0,m.A)(this,"store",p,this),(0,m.A)(this,"theme",h,this)}async beforeModel(e){if(this.runtimeConfig.maintenanceMode===C.MaintenanceMode.FULL_MAINTENANCE&&"maintenance"!==e.to.name)return void this.router.transitionTo("maintenance");if(this.runtimeConfig.maintenanceMode===C.MaintenanceMode.ALLOW_LOGIN&&(t=e.targetName,!["maintenance","login","login_sso","autosso-gateway","autosso-redirect","oauth2","oauth2/authorize","oauth2/providers"].includes(t)))return void this.router.transitionTo("login");var t;let i=e.to.queryParams._isRepGenEnvironment;this.inAppHelpWidget.set("isRepGen","1"===i),this.logger.setRepGenEnvironment(i),this.session.setIsRepGen(Boolean(i)),this.theme.setIsRepGen(Boolean(i))}async model(e){if(this.runtimeConfig.maintenanceMode!==C.MaintenanceMode.FULL_MAINTENANCE)return await this.session.initialize(),this.session.isOnIdSubdomain()?this._idSubdomainModel(e):(e.impersonate&&this.session.setImpersonatedContact(e.impersonate),await this.session.loadFirmId(),this.session.isActive?this.auth.setupCredential():void 0)}afterModel(){this.loadDeferredMicrofrontends()}loadDeferredMicrofrontends(){R&&i.e(9503).then(i.t.bind(i,49503,23)).then(e=>{e.enableOffsiteNavigation&&e.enableOffsiteNavigation()}).catch(e=>(0,S.Cp)(e))}_idSubdomainModel(e){return e.firm&&this.session.setTargetLoginSubdomain(e.firm),this.session.inferTargetLoginOrigin(),this.session.loadFirmId()}error(e){"TransitionAborted"!==e.name&&(e instanceof T.ApiError||this.logger.error(e,{emberSource:"ApplicationRoute.error"}))}logout(){this.auth.logout()}toggleInAppHelp(){this.inAppHelpWidget.isHidden?this.inAppHelpWidget.show():this.inAppHelpWidget.hide()}willTransition(){_()(document).trigger("modal:hide"),_()(document).trigger("popover:hide")}},o=(0,g.A)(r.prototype,"auth",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,g.A)(r.prototype,"displaySetting",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,g.A)(r.prototype,"inAppHelpWidget",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,g.A)(r.prototype,"logger",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,g.A)(r.prototype,"popover",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,g.A)(r.prototype,"router",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,g.A)(r.prototype,"runtimeConfig",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,g.A)(r.prototype,"session",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,g.A)(r.prototype,"store",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,g.A)(r.prototype,"theme",[v.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,g.A)(r.prototype,"error",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),(0,g.A)(r.prototype,"logout",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"logout"),r.prototype),(0,g.A)(r.prototype,"toggleInAppHelp",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"toggleInAppHelp"),r.prototype),(0,g.A)(r.prototype,"willTransition",[b.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r)},36559(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(558779),p=i.n(d),h=i(804204);let m=(r=class extends(p()){constructor(...e){super(...e),(0,u.A)(this,"authenticator",o,this),(0,u.A)(this,"credential",a,this),(0,u.A)(this,"router",n,this),(0,u.A)(this,"runtimeConfig",s,this),(0,u.A)(this,"session",l,this)}beforeModel(){if(this.session.isOnIdSubdomain())throw new Error('The "/login/autosso/gateway" route cannot be used on the id subdomain.');return this.credential.isAuthenticated?this.router.transitionTo("index"):this.authenticator.redirectToAuthorization({internalAutoSSO:!0})}},o=(0,c.A)(r.prototype,"authenticator",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,c.A)(r.prototype,"credential",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(r.prototype,"router",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(r.prototype,"runtimeConfig",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(r.prototype,"session",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},253437(e,t,i){i.r(t),i.d(t,{default:()=>y});var r,o,a,n,s,l,u,c=i(748096),d=i(228888),p=i(558779),h=i.n(p),m=i(804204),g=i(670986),f=i(549968);let y=(r=class extends(h()){constructor(...e){super(...e),(0,c.A)(this,"ajax",o,this),(0,c.A)(this,"auth",a,this),(0,c.A)(this,"location",n,this),(0,c.A)(this,"router",s,this),(0,c.A)(this,"session",l,this),(0,c.A)(this,"toast",u,this)}beforeModel(e){if(!this.session.isOnIdSubdomain())throw new Error('The "/login/autosso/redirect" route must be used on the id subdomain.');this.startAutoSSO(e)}
1getLoginOptions(e){return this.ajax.makeRequest(g.AUTH_REQUESTS.LOGIN_OPTIONS,{data:{subdomain:e}}).then(e=>e.data)}startAutoSSO(e){let t=this.session.firmSubdomain,i=this.router.urlFor("login",{queryParams:{continue:JSON.stringify({targetName:"oauth2.authorize",queryParams:e.to.queryParams}),firm:t}}),r=()=>{this.toast.queueToast("Login failed. Please contact your firm administrator for help.",{showIcon:!0,showClose:!1,persist:!0,type:"error"})};this.getLoginOptions(t).then(e=>{let t=e.ssoUrl;return t?this.auth.startSSO(void 0,t,this.location.origin+i):r()}).catch(e=>{if(!(e instanceof f.ApiError))throw e;404===e.error?.status_code&&(e.suppress(),r())}).finally(()=>{e.abort()})}},o=(0,d.A)(r.prototype,"ajax",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,d.A)(r.prototype,"auth",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,d.A)(r.prototype,"location",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,d.A)(r.prototype,"router",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.A)(r.prototype,"session",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,d.A)(r.prototype,"toast",[m.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},503454(e,t,i){i.r(t);var r=i(558779),o=i.n(r),a=i(943910),n=i(640626),s=i(804204),l=i(496314);const u=o().extend({router:(0,s.inject)(),accessControllerName:null,fallBackRoutes:(0,a.computed)(()=>[]),_accessController:(0,a.computed)("accessControllerName",function(){if(this.accessControllerName)return this.controllerFor(this.accessControllerName)}),canAccessRoute:(0,n.readOnly)("_accessController.isAccessible"),beforeModel(...e){return this.canAccessRoute?this._super(...e):this.transitionToFallback()},transitionToFallback(){let e=this.fallBackRoutes.find(e=>this.routeFor(e).canAccessRoute);return(0,l.isNone)(e)&&(e="/"),console.log(`Aborting transition. Tool(${this.constructor}) is not accessible. Transitioning instead to ${e}`),this.router.transitionTo(e)}});i.d(t,["default",0,u])},421548(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(943910),p=i(804204),h=i(496338),m=i(741389);let g=(r=class extends(c()){constructor(...e){super(...e),(0,n.A)(this,"discardChangesModal",o,this),(0,n.A)(this,"store",a,this),(0,s.A)(this,"unloadListener",null),(0,s.A)(this,"discardChangesModalText",h.DISCARD_CHANGES_MODAL_TEXT)}shouldConfirm(){return!0}afterModel(e,t){let i=super.afterModel(e,t);return(0,m.installBeforeUnloadListener)(this),i}willTransition(e){return(0,m.confirmThenTransition)(this,e)}didTransition(){(0,m.resetRetryingTransition)(this)}willDestroy(){(0,m.removeBeforeUnloadListener)(this),super.willDestroy()}},o=(0,l.A)(r.prototype,"discardChangesModal",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"willTransition",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),(0,l.A)(r.prototype,"didTransition",[d.action],Object.getOwnPropertyDescriptor(r.prototype,"didTransition"),r.prototype),r)},448309(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(639298),c=i(943910),d=i(804204),p=i(496338),h=i(741389);let m=(r=class extends u.default{constructor(...e){super(...e),(0,n.A)(this,"discardChangesModal",o,this),(0,n.A)(this,"store",a,this),(0,s.A)(this,"unloadListener",null),(0,s.A)(this,"discardChangesModalText",p.DISCARD_CHANGES_MODAL_TEXT)}shouldConfirm(){return!0}afterModel(e,t){let i=super.afterModel(e,t);return(0,h.installBeforeUnloadListener)(this),i}willTransition(e){return(0,h.confirmThenTransition)(this,e)}didTransition(){(0,h.resetRetryingTransition)(this)}willDestroy(){(0,h.removeBeforeUnloadListener)(this),super.willDestroy()}},o=(0,l.A)(r.prototype,"discardChangesModal",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(r.prototype,"willTransition",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),(0,l.A)(r.prototype,"didTransition",[c.action],Object.getOwnPropertyDescriptor(r.prototype,"didTransition"),r.prototype),r)},639298(e,t,i){i.r(t),i.d(t,{default:()=>a});var r=i(401104),o=i(733559);class a extends o.default{constructor(...e){super(...e),(0,r.A)(this,"toolDisplayName","Settings")}get fallBackRoutes(){return["app.settings.permissions","app.settings.displaySettings","app.settings.brandingSettings","app.settings.view-management","app.settings.benchmarks.library","app.settings.benchmarks.associations","app.settings.attributes","app.settings.calculationSettings","app.settings.transactionTags","app.settings.importHistory","app.settings.report","app.settings.targetAllocation","app.settings.apiKeys","app.settings.auditTrail","app.settings.roles","app.settings.teams","app.settings.addison-settings"]}}},486756(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(989272);let m=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"analytics",o,this),(0,l.A)(this,"emailLinkTracker",a,this),(0,l.A)(this,"location",n,this),(0,l.A)(this,"router",s,this)}beforeModel(e){let{source:t,type:i}=e.to?.queryParams??{};this.analytics.trackEvent("mobile_badge_link_clicked",{source:t,type:i});let r=this.emailLinkTracker.resolveDestination(i);(0,h.later)(this,()=>this.location.replace(r),150)}},o=(0,u.A)(r.prototype,"analytics",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"emailLinkTracker",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"location",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},512078(e,t,i){i.r(t),i.d(t,{default:()=>h});var r,o,a,n,s=i(748096),l=i(228888),u=i(558779),c=i.n(u),d=i(804204),p=i(304747);let h=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"credential",o,this),(0,s.A)(this,"deepLink",a,this),(0,s.A)(this,"router",n,this)}beforeModel(){if(!this.credential.isAuthenticated)return this.router.transitionTo("login");if(this.credential.isAdvisor){let e=this.deepLink.getAndRemoveUrl();return e?(0,p.getLocationDelegate)().replace(e):this.router.transitionTo("app")}return this.credential.isClient?this.router.transitionTo("portal",this.credential.contactId):void 0}},o=(0,l.A)(r.prototype,"credential",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"deepLink",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"router",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},530683(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p=i(748096),h=i(228888),m=i(558779),g=i.n(m),f=i(943910),y=i(804204),b=i(156070);const v="Invalid Login URL, please try again",w=(r=class extends(g()){constructor(...e){super(...e),(0,p.A)(this,"location",o,this),(0,p.A)(this,"auth",a,this),(0,p.A)(this,"router",n,this),(0,p.A)(this,"runtimeConfig",s,this),(0,p.A)(this,"toast",l,this),(0,p.A)(this,"authenticator",u,this),(0,p.A)(this,"session",c,this),(0,p.A)(this,"sentry",d,this),this._alertCloser=null}beforeModel(e){if(this.session.isOnIdSubdomain())return;let t=e.to.queryParams.continue?JSON.parse(e.to.queryParams.continue):{};return this.runtimeConfig.sameOriginOAuth&&"oauth2.authorize"===t.targetName?void 0:this.authenticator.redirectToAuthorization()}async model(e,t){let i=await this.auth.openToken(e.tokenFirm);if(i.success){let e=t.to.queryParams.continue;await this.auth.postLoginTransition(e)}return i}afterModel(){document.title="Addepar | Login"}setupController(e,t){t.error?e.setProperties({isShowErrorMessage:!0,errorMessage:t.error}):(0,b.isValidContinueParam)(e.continueParam)||(this.sentry.warn("Invalid continue param"),e.setProperties({isShowErrorMessage:!0,errorMessage:v,preventLogin:!0}))}activate(){this.checkTimeout()}checkTimeout(){this.authenticator.popSessionExpiredCookie()&&(this._alertCloser=this.toast.queueSystemToast("To protect your data, your session ended after inactivity.",{persist:!0,showIcon:!0,type:"warning"}))}willTransition(){this._alertCloser?.()}},o=(0,h.A)(r.prototype,"location",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.A)(r.prototype,"auth",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(r.prototype,"router",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(r.prototype,"runtimeConfig",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(r.prototype,"toast",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(r.prototype,"authenticator",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(r.prototype,"session",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,h.A)(r.prototype,"sentry",[y.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.A)(r.prototype,"willTransition",[f.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);i.d(t,["INVALID_CONTINUE_PARAM_ERROR_MESSAGE",0,v,"default",0,w])},232873(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(228888),l=i(558779),u=i.n(l),c=i(804204);const d=(r=class extends(u()){constructor(...e){super(...e),(0,n.A)(this,"router",o,this),(0,n.A)(this,"runtimeConfig",a,this)}beforeModel(){if(!this.runtimeConfig.maintenanceMode)return this.router.transitionTo("index")}afterModel(){document.title="Addepar | Down for maintenance"}},o=(0,s.A)(r.prototype,"router",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,s.A)(r.prototype,"runtimeConfig",[c.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,d])},509171(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p=i(748096),h=i(228888),m=i(558779),g=i.n(m),f=i(701627),y=i.n(f),b=i(804204),v=i(670986),w=i(943910),_=i(57199);const A=["mobile","tablet"],T={INITIAL:"INITIAL",FIRM_SELECTION:"FIRM_SELECTION",CONSENT_ACCEPTANCE:"CONSENT_ACCEPTANCE"};let C=(r=class extends(g()){constructor(...e){super(...e),(0,p.A)(this,"ajax",o,this),(0,p.A)(this,"auth",a,this),(0,p.A)(this,"credential",n,this),(0,p.A)(this,"location",s,this),(0,p.A)(this,"router",l,this),(0,p.A)(this,"runtimeConfig",u,this),(0,p.A)(this,"session",c,this),(0,p.A)(this,"store",d,this)}async beforeModel(e){let t=A.includes(e.to.queryParams.client_id),i=this.session.isActive,r=this.auth.openTokenPossible();if(!i||r)return i&&this.session.resetUser(),"1"===e.to.queryParams.autosso?void this.router.transitionTo("autosso-redirect",{queryParams:e.to.queryParams}):this.router.transitionTo("login",{queryParams:{firm:e.to.queryParams.firm,isMobileLogin:t,continueParam:JSON.stringify({targetName:e.targetName,queryParams:e.to.queryParams})}})}model(e,t){return this.currentTransition=t,this.set("params",e),this.authorize(T.INITIAL).then(({authorization:e,contact:t})=>"firm"===e.step?this.store.findAll("firm").then(i=>1===i.get("content.length")?(this.setFirm(i.get("firstObject.id"),i.get("firstObject.portalSubdomain")),this.authorize(T.FIRM_SELECTION)):{authorization:e,contact:t,firms:i}):{authorization:e,contact:t})}setupController(e,t){e.setProperties({authorization:t.authorization,contact:t.contact,firms:t.firms})}authorize(e,t,i){if(!Object.values(T).includes(e))throw new Error(`Invalid Auhorization Phase: ${e}`);let r;return this.runtimeConfig.useGlobalAuthorize&&[T.FIRM_SELECTION,T.CONSENT_ACCEPTANCE].includes(e)&&(r=this.session.firmSubdomain),this.ajax.makeRequest
1(v.AUTH_REQUESTS.OAUTH_AUTHORIZE,{data:{authorization_request:this.params,consented_scopes:i,reject:t},subdomain:r}).then(e=>{if("redirect"===e.data.step&&this.isZendesk(e.data.redirect_uri))return this.authorizeZendesk(e),new(y().Promise)(()=>{});let t;if("consent"===e.data.step&&e.data.scope_details)for(let t of e.data.scope_details)t.isWrite=new RegExp("_write$").test(t.name),t.name=t.name.replace("_write",""),t.displayName=R(t.name),t.showDescription=!1;return t="firm"!==e.data.step&&"redirect"!==e.data.step?this.setupContact():y().resolve(void 0),t.then(t=>e.data.redirect_uri?(this.currentTransition.abort(),this.location.replace(e.data.redirect_uri),new(y().Promise)(()=>{})):{authorization:e.data,contact:t})})}resubmit(e,t,i){this.set("controller.loading",!0);let r=this.authorize(e,t,i);return r.finally(()=>{this.set("controller.loading",!1)}),r}setupCredential(){this.set("credentialPromise",this.auth.setupCredential())}setFirm(e,t){this.session.set("firmId",e),this.runtimeConfig.useGlobalAuthorize&&this.session.setTargetLoginSubdomain(t)}setupContact(){return this.get("credentialPromise")||this.setupCredential(),this.get("credentialPromise").then(()=>this.credential.contact)}isZendesk(e){return e.startsWith("https://addeparhelp.zendesk.com/access/jwt")}extractZendeskUrlFields(e){let t=new URL(e),i=t.origin+t.pathname,r=t.searchParams,o=r.get("jwt"),a=r.get("return_to");if(!o||!a)throw new Error("Missing query string parameters for Zendesk");return{endpoint:i,token:o,returnTo:a}}authorizeZendesk(e){let t=this.extractZendeskUrlFields(e.data.redirect_uri),i={name:"jwt",value:t.token},r={name:"return_to",value:t.returnTo},o=(0,_.createHiddenInputForm)(t.endpoint,i,r);document.body.appendChild(o),o.submit()}submitFirm(e,t){this.setFirm(e,t),this._selectedFirmSubdomain=t,this.resubmit(T.FIRM_SELECTION,!1).then(e=>{this.get("controller").setProperties(e)})}submitConsent(e){this.resubmit(T.CONSENT_ACCEPTANCE,!1,e).then(e=>{this.get("controller").setProperties(e)})}reject(){this.resubmit(T.CONSENT_ACCEPTANCE,!0).then(e=>{this.get("controller").setProperties(e)})}toggleDescription(e){(0,w.set)(e,"showDescription",!e.showDescription)}},o=(0,h.A)(r.prototype,"ajax",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.A)(r.prototype,"auth",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(r.prototype,"credential",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(r.prototype,"location",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(r.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(r.prototype,"runtimeConfig",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,h.A)(r.prototype,"session",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,h.A)(r.prototype,"store",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,h.A)(r.prototype,"submitFirm",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"submitFirm"),r.prototype),(0,h.A)(r.prototype,"submitConsent",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"submitConsent"),r.prototype),(0,h.A)(r.prototype,"reject",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"reject"),r.prototype),(0,h.A)(r.prototype,"toggleDescription",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"toggleDescription"),r.prototype),r);const S={portfolio:"portfolios",profile:"your profile"};function R(e){let t=e.replace("_write","").replace("_"," ");return S[t]??t}const D=C;i.d(t,["MOBILE_OAUTH_CLIENTS",0,A,"default",0,D])},225704(e,t,i){i.r(t),i.d(t,{default:()=>m});var r,o,a,n,s,l=i(748096),u=i(228888),c=i(558779),d=i.n(c),p=i(804204),h=i(559958);let m=(r=class extends(d()){constructor(...e){super(...e),(0,l.A)(this,"ajax",o,this),(0,l.A)(this,"externalSourceQuery",a,this),(0,l.A)(this,"router",n,this),(0,l.A)(this,"session",s,this)}beforeModel(e){let t=e.to.queryParams,{code:i}=t;return this.session.get("isActive")?(this.oauth2ClientCallback(i),this.router.replaceWith("index")):super.beforeModel(e)}oauth2ClientCallback(e){let t=window.localStorage.getItem(h.LOCAL_STORAGE_OAUTH_CODE_KEY);window.localStorage.removeItem(h.LOCAL_STORAGE_OAUTH_CODE_KEY);let i=this.externalSourceQuery.getNavigatorOauthCallbackUrl();this.ajax.ajax({url:"/public/oauth2_client/navigator/callback",type:"POST",data:{code:e,code_verifier:t,redirect_url:i}}).then(e=>{let t=e.data.access_token;
1this.externalSourceQuery.setNavigatorAccessToken(t)})}},o=(0,u.A)(r.prototype,"ajax",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"externalSourceQuery",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"router",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,u.A)(r.prototype,"session",[p.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},676934(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d=i(748096),p=i(401104),h=i(228888),m=i(701627),g=i.n(m),f=i(558779),y=i.n(f),b=i(804204),v=i(453319);const w=(c=class e extends(y()){constructor(...e){super(...e),(0,d.A)(this,"credential",o,this),(0,d.A)(this,"displaySetting",a,this),(0,d.A)(this,"location",n,this),(0,d.A)(this,"portalAccess",s,this),(0,d.A)(this,"portalUrl",l,this),(0,d.A)(this,"router",u,this)}async beforeModel(e){if(!this.credential.isAuthenticated)return this.router.transitionTo("login");await g().hash({displaySettings:this.displaySetting.load(),portalSettings:this.portalAccess.loadSettings()});let t=this.determineRedirectUrl(e);null===t?this.router.transitionTo("errors","404"):this.location.replace(t)}determineRedirectUrl(e){if(this.credential.isClient&&!this.portalAccess.hasPortalAccess)return null;let{match:t,clientRedirectUrl:i,advisorRedirectUrl:r}=this.determineMatchingPortalRedirect(e)||{};return t?this.credential.isAdvisor?this.portalUrl.generatePortalUrl(r(t)):this.portalUrl.generatePortalUrl(i(t)):this.credential.isClient?v.B5.portal({previewAs:void 0}).toFullURL():null}determineMatchingPortalRedirect(t){for(let{regex:i,clientRedirectUrl:r,advisorRedirectUrl:o}of e.PORTAL_REDIRECTS){let e=t.intent.url?.match(i);if(e)return{clientRedirectUrl:r,advisorRedirectUrl:o,match:e}}return null}},(0,p.A)(c,"PORTAL_REDIRECTS",[{regex:new RegExp("^/app/portal/contact/(\\d+)/?$"),clientRedirectUrl:()=>"",advisorRedirectUrl:e=>`/portfolios?previewAs=${e[1]}`},{regex:new RegExp("^/app/portal/contact/(\\d+)/perspective/([a-zA-Z]+)/(\\d+)/?$"),clientRedirectUrl:e=>`/portfolios/${e[2]}-${e[3]}/overview`,advisorRedirectUrl:e=>`/portfolios/${e[2]}-${e[3]}/overview?previewAs=${e[1]}`},{regex:new RegExp("^/app/portal/contact/(\\d+)/perspective/([a-zA-Z]+)/(\\d+)/analysis/(portfolio|transaction)/(\\d+)/?$"),clientRedirectUrl:e=>{let t="transaction"===e[4]?e[4]:"analysis";return`/portfolios/${e[2]}-${e[3]}/views#${t}-${e[5]}`},advisorRedirectUrl:e=>{let t="transaction"===e[4]?e[4]:"analysis";return`/portfolios/${e[2]}-${e[3]}/views?previewAs=${e[1]}#${t}-${e[5]}`}},{regex:new RegExp("^/app/portal/contact/(\\d+)/perspective/[a-zA-Z]+/\\d+/files/?$"),clientRedirectUrl:()=>"/files/shared-with-you",advisorRedirectUrl:e=>`/files/shared-with-you?previewAs=${e[1]}`}]),r=c,o=(0,h.A)(r.prototype,"credential",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,h.A)(r.prototype,"displaySetting",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,h.A)(r.prototype,"location",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,h.A)(r.prototype,"portalAccess",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,h.A)(r.prototype,"portalUrl",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,h.A)(r.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,w])},158080(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s,l,u=i(748096),c=i(228888),d=i(804204),p=i(558779),h=i.n(p),m=i(726089);let g=(r=(0,i(683681)._W)(function*(e){let t=this.get("controller"),i=this.store;t.set("advisorsNotOnTeam",[]),t.set("isLoadingAdvisors",!0);let r=yield i.query("contact",{role:"advisor"}),o=this.credential.contact,a=(yield e.get("members")).toArray(),n=r.toArray().removeObjects(a).removeObject(o);if(this.permissionService.hasPermission||this.permissionService.hasRoleManagement){let t=yield i.findAll("role"),r=(0,m.createRolesMap)(t);e.get("members").forEach(e=>{e.set("roleGroup",r[e.get("id")])}
1),n.forEach(e=>{e.set("roleGroup",r[e.get("id")])})}t.set("advisorsNotOnTeam",n),t.set("isLoadingAdvisors",!1)}).keepLatest(),o=class extends(h()){constructor(...e){super(...e),(0,u.A)(this,"credential",a,this),(0,u.A)(this,"permissionService",n,this),(0,u.A)(this,"store",s,this),(0,u.A)(this,"getAdvisorsNotOnTeam",l,this)}model(e){return this.store.findRecord("team",e.team_id)}setupController(e,t){let i=this.modelFor("app.settings.teams").perspective[0];e.setProperties({team:t,perspective:i,allMembersSelected:!1,selection:[]}),this.get("getAdvisorsNotOnTeam").perform(t)}},a=(0,c.A)(o.prototype,"credential",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,c.A)(o.prototype,"permissionService",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,c.A)(o.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,c.A)(o.prototype,"getAdvisorsNotOnTeam",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},959948(e,t,i){i.r(t),i.d(t,{default:()=>c});var r,o,a=i(748096),n=i(228888),s=i(558779),l=i.n(s),u=i(804204);let c=(r=class extends(l()){constructor(...e){super(...e),(0,a.A)(this,"router",o,this)}beforeModel(){this.router.transitionTo("app.tools")}},o=(0,n.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},453836(e,t,i){i.r(t);var r,o=i(401104),a=i(228888),n=i(943910),s=i(733559);const l=(r=class extends s.default{constructor(...e){super(...e),(0,o.A)(this,"controllerName","perspective"),(0,o.A)(this,"accessControllerName","contextDetails"),(0,o.A)(this,"toolDisplayName","Details")}willTransition(e){let t=this.controllerFor("contextDetails");if(t.hasOngoingChanges)return e.abort(),t.triggerLeaveConfirmationPrompt(()=>e.retry()),!1}},(0,a.A)(r.prototype,"willTransition",[n.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),r);i.d(t,["default",0,l])},913363(e,t,i){i.r(t);var r,o,a,n,s,l,u,c,d,p=i(748096),h=i(401104),m=i(228888),g=i(503454),f=i(701627),y=i.n(f),b=i(804204),v=i(393731),w=i(943910),_=i(989272),A=i(74958),T=i(658718);let C=(r=class extends g.default{constructor(...e){super(...e),(0,p.A)(this,"contactPreferences",o,this),(0,p.A)(this,"dashboardViewScheduleData",a,this),(0,p.A)(this,"dateTime",n,this),(0,p.A)(this,"factorTemplateData",s,this),(0,p.A)(this,"filterSetData",l,this),(0,p.A)(this,"pqrBatchParams",u,this),(0,p.A)(this,"router",c,this),(0,p.A)(this,"store",d,this),(0,h.A)(this,"indexRoute",void 0),(0,h.A)(this,"viewResourceType",void 0),(0,h.A)(this,"queryParams",{portfolio:{replace:!0}})}beforeModel(...e){let t=super.beforeModel(...e);if(t)return t;this.pqrBatchParams.setParams({retrieveT0:50}),this.fetchLater(()=>{this.factorTemplateData.ensureModelPromiseWithArguments(),this.store.findRecord("portfolioView","default").then(e=>e.isThin&&e.reload()),this.store.findRecord("transactionView","default"),this.store.findAll("transactionColumn")})}model(e){if("new"===e.dashboard_id){return this.store.peekAll(this.viewResourceType).findBy("isNew")||this.router.transitionTo(this.indexRoute)}return this.store.findRecord(this.viewResourceType,e.dashboard_id)}afterModel(e,t){let{portfolio:i,initialDateRange:r}=t.to.queryParams,o={filterSets:this.filterSetData.modelPromise,team:e.team,...this.additionalLoadingPromises({view:e,portfolio:i})};if((e.isThin||e.isReloading)&&!e.isNew){let t=e.isReloading?this.viewDataService.getReloadingPromise(e.id):null;o.view=t??e.reload()}if(i){let[e,t]=i.split("_");e&&t&&(o.perspective=(0,T.model)({perspective_id:t,perspective_type:e},this))}return y().hash(o).then(({interval:t})=>{let i,o;r&&([i,o]=r.split("..."));let a=i??t.start,n=o??t.end;e.set("defaultStartDate",a),e.set("defaultEndDate",n),v.default.loadAllFactorDisplayNames({filterSetsList:[e.filterSets,...e.items.mapBy("visualization.filterSets")],start:a,end:n}),this.viewDataService.clearReloadingPromiseMap()})}setupController(e,t){super.setupController(...arguments),e.set("isRouteActive",!0),e.set("route",this),e.setupSelectedViewFilters(t),e.set("selectedView",t),t.isNew&&e.set("isEditing",!0),e.set("defaultStartDate",t.defaultStartDate),e.set("defaultEndDate",t.defaultEndDate),e.set("widgetToEdit",!1)}fetchLater(e){(0,A.default)(()=>!this.isDestroying&&e(),{timeout:1})}willTransition(e){this.controller.isEditing&&!this.viewDataService.isPersisting&&(e.abort(),(0,_.run)(()=>{this.controller.transitionToViewMode().then(()=>{e.retry()})}))}async error(e,t){let{queryParams:{portfolio:i},params:{dashboard_id:r}}=t.to;if((404===e.error?.status_code||403===e.error?.status_code)&&this.contactPreferences.isPinnedDashboard({dashboardId:r,portfolio:i})){e.suppressAlert();try{await this.contactPreferences.clearPinnedDashboard()}catch(e){e.suppressAlert()}return this.router.transitionTo("app.tools"),!1}return!0}},o=(0,m.A)(r.prototype,"contactPreferences",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,m.A)(r.prototype,"dashboardViewScheduleData",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,m.A)(r.prototype,"dateTime",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,m.A)(r.prototype,"factorTemplateData",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,m.A)(r.prototype,"filterSetData",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,m.A)(r.prototype,"pqrBatchParams",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=(0,m.A)(r.prototype,"router",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,m.A)(r.prototype,"store",[b.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,m.A)(r.prototype,"willTransition",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"willTransition"),r.prototype),(0,m.A)(r.prototype,"error",[w.action],Object.getOwnPropertyDescriptor(r.prototype,"error"),r.prototype),r);const S=C;i.d(t,["NEW_DASHBOARD_ID",0,"new","default",0,S])},395562(e,t,i){i.r(t);var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(733559),d=i(496314),p=i(943910),h=i(804204);const m=(r=class extends c.default{constructor(...e){super(...e),(0,l.A)(this,"toolDisplayName","Files"),(0,s.A)(this,"groupTypes",o,this),(0,s.A)(this,"boxConnectivity",a,this),(0,s.A)(this,"session",n,this),(0,l.A)(this,"accessControllerName","fileVault")}beforeModel(...e){return Promise.all([super.beforeModel(...e),this.groupTypes.dataLoadingPromise])}activate(){this.boxConnectivity.ping(this.session.firmId)}didTransition(){this.controllerFor("fileVault").send("hideEditPanel")}loadData(){let e=this.controllerFor("fileVault"),{sortType:t,sortColumn:i,offset:r}=this.getQueryParamValues(e);return e.setProperties({sort_type:t,sort_column:i,offset:r,selectedGrouping:{name:"Ungrouped",type:"none"}}),e.initFolderContent(),e.refreshData()}getQueryParamValues(e){let t,i,r;return t=(0,d.isEmpty)(e.sort_type)?"descending":e.sort_type,i=(0,d.isEmpty)(e.sort_column)?"date":e.sort_
1column,(0,d.isEmpty)(e.topLevelOffset)?r=(0,d.isEmpty)(e.offset)?0:e.offset:(r=e.topLevelOffset,e.set("topLevelOffset",null)),{sortType:t,sortColumn:i,offset:r}}setupControllerForFileVaultParentController(e){e.set("showFileUploadCount",!1),e.set("clientFileUploadCount",0),e.set("fileVaultController",this.fileVaultController),e.set("selectFile",this.selectFile),e.set("resetFileUploadBatch",this.resetFileUploadBatch),e.set("cancelUpload",this.cancelUpload),e.set("selectUploadedFile",this.selectUploadedFile),e.set("openCreateFolderModal",this.openCreateFolderModal)}updateClientFileUploadCount(e){this.controller?.set("clientFileUploadCount",e)}selectFile(e){this.fileVaultController?.send("selectFile",e)}resetFileUploadBatch(){this.fileVaultController?.send("resetFileUploadBatch")}cancelUpload(){this.fileVaultController?.send("cancelUpload")}selectUploadedFile(e){this.fileVaultController?.send("selectUploadedFile",e)}openCreateFolderModal(){this.fileVaultController?.send("openCreateFolderModal")}},o=(0,u.A)(r.prototype,"groupTypes",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,u.A)(r.prototype,"boxConnectivity",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(r.prototype,"session",[h.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,u.A)(r.prototype,"updateClientFileUploadCount",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"updateClientFileUploadCount"),r.prototype),(0,u.A)(r.prototype,"selectFile",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"selectFile"),r.prototype),(0,u.A)(r.prototype,"resetFileUploadBatch",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"resetFileUploadBatch"),r.prototype),(0,u.A)(r.prototype,"cancelUpload",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"cancelUpload"),r.prototype),(0,u.A)(r.prototype,"selectUploadedFile",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"selectUploadedFile"),r.prototype),(0,u.A)(r.prototype,"openCreateFolderModal",[p.action],Object.getOwnPropertyDescriptor(r.prototype,"openCreateFolderModal"),r.prototype),r);i.d(t,["default",0,m])},374378(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s=i(748096),l=i(401104),u=i(228888),c=i(640626),d=i(804204),p=i(886783),h=i(752577),m=i(913363);let g=(r=(0,c.readOnly)("investmentIntelligenceViewsData"),o=class extends m.default{constructor(...e){super(...e),(0,s.A)(this,"investmentIntelligenceViewsData",a,this),(0,s.A)(this,"viewDataService",n,this),(0,l.A)(this,"viewResourceType",h.default.resourceType),(0,l.A)(this,"viewId",void 0),(0,l.A)(this,"displayNameOverride",void 0),(0,l.A)(this,"_staticViewData",void 0)}get staticViewData(){return this._staticViewData}set staticViewData(e){this._staticViewData=e?(0,p.A)(e):e}beforeModel(){if(super.beforeModel(),!this.staticViewData)throw new Error("[InvestmentIntelligenceBaseRoute] staticViewData must be defined");this.viewId=`${this.routeName}-${this.staticViewData.id}`,this.store.pushPayload(this.viewResourceType,{[this.viewResourceType]:[{...this.staticViewData,id:this.viewId,display_name:this.displayNameOverride??this.staticViewData.display_name,isThin:!1}]})}model(e){return e.dashboard_id=this.viewId,super.model(e)}additionalLoadingPromises({view:e}){return{interval:this.dateTime.getIntervalForTimePeriod(e.defaultTimePeriod)}}},a=(0,u.A)(o.prototype,"investmentIntelligenceViewsData",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,u.A)(o.prototype,"viewDataService",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o)},919089(e,t,i){i.r(t);var r,o,a,n=i(748096),s=i(401104),l=i(228888),u=i(558779),c=i.n(u),d=i(804204);const p=(r=class extends(c()){constructor(...e){super(...e),(0,s.A)(this,"controllerName","perspective"),(0,n.A)(this,"displaySetting",o,this),(0,n.A)(this,"store",a,this)}model(e){return"firm"===e.perspectiveType?this.controllerFor("firm").get("model"):this.store.findRecord(e.perspectiveType,e.id)}afterModel(e,t){t.to.queryParams._isRepGenEnvironment&&this.displaySetting.setDateFormatOverride(e.dateFormat)}},o=(0,l.A)(r.prototype,"displaySetting",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"store",[d.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r);i.d(t,["default",0,p])},227647(e,t,i){i.r(t);const r=i(733559).default.extend({toolDisplayName:"Analysis",accessControllerName:"portfolioAnalysis",controllerName:"portfolioAnalysis"});i.d(t,["default",0,r])},275609(e,t,i){i.r(t),i.d(t,{initializeRequiredHeaderFooter:()=>u});var r=i(943910),o=i(640626),a=i(496314),n=i(804204),s=i(701627),l=i.n(s);function u(e,t,i){let r;r=i.find(e=>e.paperSize===(t.settings.paperSize?t.settings.paperSize:t.model.paperSize));let o=(i,o,n)=>{let s=r.get(i);if((0,a.isNone)(s))return;let l=e.peekRecord(o,s);t.set(n,l)};t.set("requiredHeaderFooterSettings",i),t.set("requiredHeaderFooterSetting",r),r.get("requireHeader")&&(o("defaultHeaderLandscapeId","reporting/report-header","defaultLandscapeHeader"),o("defaultHeaderPortraitId","reporting/report-header","defaultPortraitHeader")),r.get("requireFooter")&&(o("defaultFooterLandscapeId","reporting/report-footer","defaultLandscapeFooter"),o("defaultFooterPortraitId","reporting/report-footer","defaultPortraitFooter"))}const c=i(733559).default.extend({featureFlags:(0,n.inject)(),displaySetting:(0,n.inject)(),store:(0,n.inject)(),firmPaperSize:(0,o.readOnly)("displaySetting.model.firmPaperSize"),validContextTypes:(0,r.computed)(()=>[{type:"group"},{type:"entity"},{type:"firm",subtypes:["client"]}]),_allowDirtyTransition:!1,accessControllerName:"app.tools.reports",benchmarkAssociationsListData:(0,n.inject)(),benchmarkData:(0,n.inject)(),factorTemplateData:(0,n.inject)(),groupTypes:(0,n.inject)(),transactionColumnData:(0,n.inject)(),tableThemeSettingsData:(0,n.inject)(),filterSetData:(0,n.inject)(),promiseForReportModel(e,t){let i=this.store;return l().resolve().then(()=>{let r=i.peekRecord(e,t);return r?r.reload():i.findRecord(e,t)})},commonReportPromisesObject(){let e=this.store,t=this.factorTemplateData,i=t.ensureRecords([...t.criticalRecords,"legal_entity","report_item_context"]),r=this.isRepGen?l().resolve([]):e.query("tableTheme",{});return{reportHeaders:this.isRepGen?l().resolve([]):e.query("reporting/report-header",{}),reportFooters:this.isRepGen?l().resolve([]):e.query("reporting/report-footer",{}),tableThemes:r,transactionView:e.findRecord("transactionView","default"),_ensureFactorTemplateRecords:i,_transactionColumn:this.transactionColumnData.modelPromise,_portfolioView:e.findRecord("portfolioView","default"),_rhfSetting:e.findAll("reporting/required-header-footer-sett
1ing"),_groupTypes:this.groupTypes.dataLoadingPromise,_tableThemeSettingsData:this.tableThemeSettingsData.modelPromise,_filterSetData:this.filterSetData.modelPromise}},initializeRequiredHeaderFooter:u,setupController(e,{model:t,reportHeaders:i,reportFooters:r,transactionView:o,tableThemes:n,_rhfSetting:s}){if(t.set("transactionView",o),this._super(e,t),e.set("reportHeaders",i.toArray()),e.set("reportFooters",r.toArray()),e.set("tableThemes",n),e.send("modelDidChange"),(0,a.isNone)(s))throw new Error("required header footer setting not loaded!");this.initializeRequiredHeaderFooter(this.store,e,s,this.firmPaperSize)},_onCloseTab(){if(this.get("controller.isDirty"))return"The report has been modified. Reloading the page will revert to the last saved version.";window.onbeforeunload=void 0},actions:{didTransition(e){this._super(e),window.onbeforeunload=this._onCloseTab.bind(this)},willTransition(e){this.get("_allowDirtyTransition")||!this.get("controller.isDirty")||this.get("controller.isCancelWithoutSave")?window.onbeforeunload=void 0:(this.set("lastTransition",e),e.abort(),this.controller.showUnsavedChangesModal())}},saveChanges:(0,r.action)(function(){this.controller.hideUnsavedChangesModal();let e=this.lastTransition;this.controller.save().then(()=>e.retry())}),continueWithoutSaving:(0,r.action)(function(){this.controller.hideUnsavedChangesModal(),this.set("_allowDirtyTransition",!0),this.lastTransition.retry(),this.set("_allowDirtyTransition",!1)})});i.d(t,["default",0,c])},733559(e,t,i){i.r(t),i.d(t,{getRefreshShortcutString:()=>d});var r=i(503454),o=(i(44384),i(943910)),a=i(989272),n=i(804204),s=i(157957),l=i(325037);const u="Enter",c="keydown";function d(){return window.navigator.platform.includes("Mac")?"CMDâ + Enter":"Ctrl + Enter"}const p=r.default.extend({store:(0,n.inject)(),openReportService:(0,n.inject)("reporting/open-report"),pageTitleManager:(0,n.inject)("page-title-manager"),init(...e){this._super(...e)},validContextTypes:(0,o.computed)(()=>["group","entity","firm"]),toolRoutes:(0,o.computed)(()=>["contextDetails","portfolioAnalysis","transactionCenter","reports","portalManager","proposals","holdings"]),toolDisplayName:null,activate(){this._super();let e=this.get("toolDisplayName");this.pageTitleManager.setTitle(e)},deactivate(){this._super(),this._removeRunListener(),s.A.hideAll(),l.A.hideAll()},afterModel(e,t){this.pageTitleManager.setTitle(this.get("toolDisplayName")),this._super(e,t)},_addRunListener(e){this._runListener=t=>{t.key===u&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),(0,a.run)(e))},document.body.addEventListener(c,this._runListener)},_removeRunListener(){this._runListener&&(document.body.removeEventListener(c,this._runListener),this._runListener=null)},actions:{openReport(e,t,i={}){this.openReportService.openReportWithPerspective(e,this.controllerFor("perspective").get("model"),t,i)}}});i.d(t,["RUN_HOT_KEY",0,u,"RUN_KEY_EVENT",0,c,"default",0,p])},213462(e,t,i){i.r(t),i.d(t,{default:()=>g});var r,o,a,n,s=i(748096),l=i(228888),u=i(804204),c=i(204011),d=i(558779),p=i.n(d),h=i(127950);const{APP:{ENABLE_FEDERATED_MODULES:m}}=c.default;let g=(r=class extends(p()){constructor(...e){super(...e),(0,s.A)(this,"permissionService",o,this),(0,s.A)(this,"featureFlags",a,this),(0,s.A)(this,"router",n,this)}beforeModel(){let e=this.permissionService.hasUnifiedTrading,t=Boolean(this.featureFlags.flags.boolean.tr_enable_unified);e&&t?m&&this.featureFlags.flags.boolean.tr_restrictions&&i.e(1130).then(i.t.bind(i,951130,23)).catch(e=>(0,h.Cp)(e)):this.router.transitionTo("app.tools")}},o=(0,l.A)(r.prototype,"permissionService",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=(0,l.A)(r.prototype,"featureFlags",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n=(0,l.A)(r.prototype,"router",[u.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r)},720758(e,t,i){i.r(t);const r=i(733559).default.extend({toolDisplayName:"Transactions",accessControllerName:"transactionCenter",isActivated:null,activate(...e){this.set("isActivated",!0),this._super(...e)},deactivate(...e){this.set("isActivated",!1),this._super(...e)},actions:{queryParamsDidChange(...e){return!this.get("isActivated")||this._super(...e)}}});i.d(t,["default",0,r])},824821(e,t,i){i.r(t);const r="app.addeparLibrary",o=`${r}.resourceType`,a=`${o}.resourcePreview`;i.d(t,["CONTENT_LIBRARY_RESOURCE_PREVIEW_ROUTE",0,a,"CONTENT_LIBRARY_RESOURCE_TYPE_ROUTE",0,o,"CONTENT_LIBRARY_ROUTE",0,r])},465058(e,t,i){i.r(t),i.d(t,{getDefaultEndDate:()=>s,getDefaultStartDate:()=>n});var r=i(46457),o=i.n(r),a=i(987456);function n(){return o()().subtract(1,"months").format(a.g$)}function s(){return a.Ec()}},658718(e,t,i){i.r(t),i.d(t,{constructPerspectiveTypeParam:()=>d,constructPortfolioParam:()=>p,model:()=>h,serialize:()=>m,transitionToSubtype:()=>u,urlForNewSubtype:()=>c});var r=i(943910),o=i(496314),a=i(701627),n=i.n(a),s=i(952356);const l=["entity","group","contact","firm"];function u(e,t,i){let r=c(i.currentURL,t,e);i.transitionTo(r)}function c(e,t,i){let o=function(e){return["/app/tools/portfolio/","/app/tools/transaction/"].find(t=>e.startsWith(t))}(e);if(!o)throw new Error(`unexpected url: ${e}`);let a=(0,r.get)(t,"perspectiveType"),n=i===t.defaultSubtype()||null===i?"":`-${i}`,l=e.substr(o.length),[,u]=s.splitOnce(l,"/");return`${o}${a}${n}/${u}`}function d(e,t){return[e,t].compact().join("-")}function p(e,t){return e&&t?`${e}_${t}`:null}function h(e,t){let i=e.perspective_id,[a,c]=s.splitOnce(e.perspective_type,"-");!function(e,t){if((0,o.isNone)(e))throw new Error("Perspective type must be specified");if((0,o.isNone)(t))throw new Error("Perspective id must be specified");if(!l.includes(e))throw new Error(`${e} is not a supported perspective type. Valid perspective types are ${l.join(", ")}`)}(a,i);let d="firm"===a?t.controllerFor("firm").get("model"):t.store.findRecord(a,i);return n().resolve(d).then(e=>{if((0,o.isNone)(e))throw new Error(`${a} perspective ${i} not found`);return c?e.isValidSubtype(c).then(i=>{if(i)return(0,r.set)(e,"perspectiveSubType",c),e;!function(e,t){u(null,e,t)}(e,t.router)}):((0,r.set)(e,"perspectiveSubType",e.defaultSubtype()),e)})}function m(e,t){let i=(0,r.get)(e,"id"),o=(0,r.get)(e,"perspectiveType"),a=o,n=e.defaultSubtype();return(t=t||(0,r.get)(e,"perspectiveSubType")||n)!==n&&(a=`${o}-${t}`),{perspective_type:a,perspective_id:i}}i.d(t,["PERSPECTIVE_TYPES",0,l])}}]);
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.