(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>n});const o=window.AFFWP.portal.alpineChart;var r=e.n(o);const a=window.AFFWP.portal.sdk,n=e=>{const t={...r(),...e};return t.fetchPortalData=async function(e){return new Promise((async(t,o)=>{const r=await(0,a.portalSchemaRows)(this.type,{range:e});this.label=r.x_label_key,t(r.rows.map((e=>({label:e.title,borderColor:e.color,data:e.data,borderWidth:3,backgroundColor:"transparent"}))))}))},t};((window.AFFWP=window.AFFWP||{}).portal=window.AFFWP.portal||{}).chart=t})();