PageSourceSearch

https://backbase.io/chunk-JHT2VBNI.js

js backbase.io collected 2026-10-04 08:13:48 UTC 323,671 bytes, 67 lines download raw bytes

1import{a as Pr}from"./chunk-DUVDUAPY.js";import{a as Ui,b as zi}from"./chunk-DF2JYW5J.js";import{a as Vt,b as At,c as Ft,d as Bt,e as Lt,f as $t,g as jt,h as Gt,i as Ut,j as zt,k as ut,l as le}from"./chunk-UPPJZ2SH.js";import{a as Or}from"./chunk-WU6MC5G4.js";import{b as vt}from"./chunk-K5MGVW4G.js";import{a as pr,b as ur}from"./chunk-DJGTAT4F.js";import{a as Mr,b as Nr}from"./chunk-OL66DILI.js";import{c as Dr}from"./chunk-GJCUTGOH.js";import{b as mr}from"./chunk-KJEUX6TZ.js";import{b as wr,c as Tr}from"./chunk-2GSFHQOF.js";import"./chunk-Q2NAED2T.js";import{c as xr}from"./chunk-3PXBOSL4.js";import{a as It}from"./chunk-QF4WYKJ7.js";import"./chunk-4BBFNOPE.js";import{a as vr,c as Sr}from"./chunk-2LPNFTEI.js";import{a as yr}from"./chunk-UKBS7ZU2.js";import{a as dr,b as si}from"./chunk-B5CH4G5W.js";import{e as Cr}from"./chunk-4SRJL776.js";import"./chunk-QF4GWDOL.js";import{a as gr}from"./chunk-EX6CJITO.js";import{a as ze}from"./chunk-O7GY357X.js";import{a as Et}from"./chunk-7YNPQRLG.js";import{a as br}from"./chunk-NYCSC5XJ.js";import{a as In,b as fr,c as Ve,d as Oe,e as Me,f as kt,h as ci,i as Gi,j as it}from"./chunk-6EU5EOWS.js";import{g as Fn,h as Bn}from"./chunk-A34EOMIM.js";import{c as Ln,d as $n}from"./chunk-EXA7OKHD.js";import"./chunk-VZX6XJZB.js";import{j as nr,k as or,l as rr,m as _r,n as pt,o as ji}from"./chunk-GWJTZA3T.js";import"./chunk-WFGQXQ3T.js";import{j as En,k as Vn,o as An}from"./chunk-MP3RNZRE.js";import{L as Pn,S as ar,T as ln,k as Mn,m as Nn}from"./chunk-ZF73EFXI.js";import"./chunk-AQJVB5JZ.js";import{a as mt}from"./chunk-4UVV427K.js";import{a as X}from"./chunk-BE2FJLN3.js";import{c as kn,f as Rt}from"./chunk-XAL4T6UJ.js";import{F as hr,a as tr,q as ir}from"./chunk-643JQ6A5.js";import{a as ct,c as Nt,e as pe,h as Q,i as ce,j as ue,l as x,n as fe,p as dt,q as de,s as ge,v as sr,w as $i,y as cr,z as Y}from"./chunk-EBUUFV24.js";import{d as lr}from"./chunk-MJEKDRQR.js";import{a as v,b as Rn,c as fo}from"./chunk-AUYUJX4O.js";import{l as el}from"./chunk-VJK373OX.js";import{b as Pt}from"./chunk-6A4BOFMG.js";import{d as Mt,g as Ue}from"./chunk-T7QVUDPE.js";import{p as st}from"./chunk-ZM2ENQ3N.js";import{Aa as N,B as ii,Ba as wi,Bd as Ce,Ca as Fo,Da as Vi,Ea as Bo,Fa as L,Hb as Uo,Hc as Be,Hd as Zo,Ib as We,Ic as qo,Id as Ge,Ja as V,Jb as g,Jc as he,Kb as zo,Kc as ai,L as Ro,La as yn,Lb as h,Lc as Wo,M as _n,Ma as xn,Na as Tt,Nb as Ke,Nd as er,Ob as ve,P as Ze,Pb as Se,Pd as re,Qa as Ti,Qb as m,R as bn,Rb as l,Rc as y,S as Io,Sb as a,Sc as $,Tb as p,Tc as se,U as wt,Ub as ae,Uc as Ko,Vb as oe,Vc as Qo,Wb as et,X as ko,Xb as H,Ya as U,Yb as J,Z as Vo,Za as wn,Zb as Ot,Zc as k,ac as I,b as Ee,bc as ri,bd as Yo,cd as an,db as s,dc as C,dd as tt,e as Po,ea as Ao,fa as Cn,fb as De,fc as u,ga as po,gb as Lo,gc as Tn,h as yi,ha as ki,hb as $o,hc as Dn,i as gn,id as Bi,j as hn,jc as Re,ka as je,kb as jo,kc as Ie,kd as Qe,lb as Go,lc as ke,ld as li,m as Eo,ma as vn,pa as Ct,pc as Ai,qa as Te,qc as Ho,qd as Xo,ra as ni,rb as S,rc as lt,rd as Li,sb as oi,ta as xi,tb as uo,tc as Fi,ub as Dt,uc as c,v as bt,va as f,vc as te,wc as E,xb as R,xc as Jo,ya as Sn,za as M,zd as On}from"./chunk-S7X7V6UD.js";import{a as O,b as ne,d as Qt,f as fn,g as qe}from"./chunk-NCEQPEJE.js";var dn=Qt(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.excelBOM=qt.defaultCsv2JsonOptions=qt.defaultJson2CsvOptions=qt.errors=void 0;qt.errors={optionsRequired:"Options were not passed and are required.",json2csv:{cannotCallOn:"Cannot call json2csv on",dataCheckFailure:"Data provided was not an array of documents.",notSameSchema:"Not all documents have the same schema."},csv2json:{cannotCallOn:"Cannot call csv2json on",dataCheckFailure:"CSV is not a string."}};qt.defaultJson2CsvOptions={arrayIndexesAsKeys:!1,checkSchemaDifferences:!1,delimiter:{field:",",wrap:'"',eol:`
2`},emptyFieldValue:void 0,escapeHeaderNestedDots:!0,excelBOM:!1,excludeKeys:[],expandNestedObjects:!0,expandArrayObjects:!1,prependHeader:!0,preventCsvInjection:!1,sortHeader:!1,trimFieldValues:!1,trimHeaderFields:!1,unwindArrays:!1,useDateIso8601Format:!1,useLocaleFormat:!1,wrapBooleans:!1,fieldTitleMap:Object.create({})};qt.defaultCsv2JsonOptions={delimiter:{field:",",wrap:'"',eol:`
3`},excelBOM:!1,preventCsvInjection:!1,trimFieldValues:!1,trimHeaderFields:!1};qt.excelBOM="\uFEFF"});var lo=Qt(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.setPath=tn.evaluatePath=void 0;function mn(t,o){if(!t)return null;let{dotIndex:e,key:i,remaining:n}=ao(o),r=typeof t=="object"&&o in t?t[o]:void 0,d=typeof t=="object"&&i in t?t[i]:void 0;if(e>=0&&typeof t=="object"&&!(o in t)){let{key:_}=ao(n),T=parseInt(_);return Array.isArray(d)&&isNaN(T)?d.map(P=>
3mn(P,n)):mn(d,n)}else if(Array.isArray(t)){let _=parseInt(i);return o===i&&e===-1&&!isNaN(_)?d:t.map(T=>mn(T,o))}else{if(e>=0&&o!==i&&typeof t=="object"&&i in t)return mn(d,n);if(e===-1&&typeof t=="object"&&i in t&&!(o in t))return d}return r}tn.evaluatePath=mn;function sp(t,o,e){if(t){if(!o)throw new Error("No keyPath was provided.")}else throw new Error("No object was provided.");return pn(t,o,e)}tn.setPath=sp;function pn(t,o,e){let{dotIndex:i,key:n,remaining:r}=ao(o);if(o.startsWith("__proto__")||o.startsWith("constructor")||o.startsWith("prototype"))return t;if(i>=0){let d=parseInt(n);if(typeof t=="object"&&t!==null&&!(n in t)&&Array.isArray(t)&&!isNaN(d))return t[n]=t[n]??{},pn(t[n],r,e),t;if(typeof t=="object"&&t!==null&&!(n in t)&&Array.isArray(t))return t.forEach(_=>pn(_,o,e)),t;if(typeof t=="object"&&t!==null&&!(n in t)&&!Array.isArray(t)){let{key:_}=ao(r),T=parseInt(_);if(!isNaN(T))t[n]=[];else{if(r==="")return t[o]=e,t;t[n]={}}}pn(t[n],r,e)}else if(Array.isArray(t)){let d=parseInt(n);return o===n&&i===-1&&!isNaN(d)?(t[n]=e,t):(t.forEach(_=>pn(_,r,e)),t)}else t[n]=e;return t}function ao(t){let o=cp(t);return{dotIndex:o,key:t.slice(0,o>=0?o:void 0).replace(/\\./g,"."),remaining:t.slice(o+1)}}function cp(t){for(let o=0;o<t.length;o++){let e=o>0?t[o-1]:"";if(t[o]==="."&&e!=="\\")return o}return-1}});var Ia=Qt(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.isDocumentToRecurOn=_i.flatten=_i.unique=void 0;function dp(t){return[...new Set(t)]}_i.unique=dp;function mp(t){return[].concat(...t)}_i.flatten=mp;function pp(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length}_i.isDocumentToRecurOn=pp});var Va=Qt(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0})});var ja=Qt(Ye=>{"use strict";var Aa=Ye&&Ye.__createBinding||(Object.create?function(t,o,e,i){i===void 0&&(i=e);var n=Object.getOwnPropertyDescriptor(o,e);(!n||("get"in n?!o.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return o[e]}}),Object.defineProperty(t,i,n)}:function(t,o,e,i){i===void 0&&(i=e),t[i]=o[e]}),up=Ye&&Ye.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),fp=Ye&&Ye.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&Aa(o,t,e);return up(o,t),o},gp=Ye&&Ye.__exportStar||function(t,o){for(var e in t)e!=="default"&&!Object.prototype.hasOwnProperty.call(o,e)&&Aa(o,t,e)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.deepKeysFromList=Ye.deepKeys=void 0;var un=fp(Ia());gp(Va(),Ye);function hp(t,o){let e=$a(o),i=new WeakSet;return typeof t=="object"&&t!==null?Ba("",t,e,i):[]}Ye.deepKeys=hp;function Fa(t,o,e){let i=$a(o),n=e??new WeakSet;return t.map(r=>typeof r=="object"&&r!==null?n.has(r)?[]:Ba("",r,i,n):[])}Ye.deepKeysFromList=Fa;function Ba(t,o,e,i){let n=[],r=Object.keys(o);i.add(o);let d=[{obj:o,keys:r,i:0,basePath:t}];for(;d.length;){let _=d[d.length-1];if(_.i>=_.keys.length){d.pop();continue}let T=_.keys[_.i++],P=_.obj[T],ie=wo(_.basePath,La(T,e));if(e.expandNestedObjects&&un.isDocumentToRecurOn(P)||e.arrayIndexesAsKeys&&Array.isArray(P)&&P.length)if(e.arrayIndexesAsKeys&&Array.isArray(P)){let K=P;for(let Fe=K.length-1;Fe>=0;Fe--){let ye=K[Fe],xt=wo(ie,String(Fe));typeof ye=="object"&&ye!==null&&!Array.isArray(ye)?i.has(ye)||(i.add(ye),d.push({obj:ye,keys:Object.keys(ye),i:0,basePath:xt})):n.push(xt)}}else i.has(P)||(i.add(P),d.push({obj:P,keys:Object.keys(P),i:0,basePath:ie}));else if(e.expandArrayObjects&&Array.isArray(P)){let K=_p(P,ie,e,i);for(let Fe of K)n.push(Fe)}else{if(e.ignoreEmptyArrays&&Array.isArray(P)&&!P.length)continue;n.push(ie)}}return un.unique(n)}function _p(t,o,e,i){let n=Fa(t,e,i);return t.length?t.length&&un.flatten(n).length===0?[o]:(n=n.map(r=>Array.isArray(r)&&r.length===0?[o]:r.map(d=>wo(o,La(d,e)))),un.unique(un.flatten(n))):e.ignoreEmptyArraysWhenExpanding?[]:[o]}function La(t,o){return o.escapeNestedDots?t.replace(/\./g,"\\."):t}function wo(t,o){return t?t+"."+o:o}function $a(t){return O({arrayIndexesAsKeys:!1,expandNestedObjects:!0,expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1},t??{})}});var so=Qt(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.isInvalid=j.flatten=j.unique=j.arrayDifference=j.isError=j.isUndefined=j.isNull=j.isObject=j.isString=j.isNumber=j.unwind=j.getNCharacters=j.removeEmptyFields=j.isEmptyField=j.computeSchemaDifferences=j.isDateRepresentation=j.isStringRepresentation=j.deepCopy=j.validate=j.buildC2JOptions=j.buildJ2COptions=void 0;var To=lo(),bi=dn(),bp=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,Do=1e5;function Cp(t){return ne(O(O({},bi.defaultJson2CsvOptions),t),{delimiter:{field:t?.delimiter?.field??bi.defaultJson2CsvOptions.delimiter.field,wrap:t?.delimiter?.wrap||bi.defaultJson2CsvOptions.delimiter.wrap,eol:t?.delimiter?.eol||bi.defaultJson2CsvOptions.delimiter.eol},fieldTitleMap:t?.fieldTitleMap||Object.create({})})}j.buildJ2COptions=Cp;function vp(t){return ne(O(O({},bi.defaultCsv2JsonOptions),t),{delimiter:{field:t?.delimiter?.field??bi.defaultCsv2JsonOptions.delimiter.field,wrap:t?.delimiter?.wrap||bi.defaultCsv2JsonOptions.delimiter.wrap,eol:t?.delimiter?.eol||bi.defaultCsv2JsonOptions.delimiter.eol}})}j.buildC2JOptions=vp;function Sp(t,o,e){if(!t)throw new Error(`${e.cannotCallOn} ${t}.`);if(!o(t))throw new Error(e.dataCheckFailure);return!0}j.validate=Sp;function Oo(t){return JSON.parse(JSON.stringify(t))}j.deepCopy=Oo;function yp(t,o){let e=t[0],i=t.length-1,n=t[i];return e===o.delimiter.wrap&&n===o.delimiter.wrap}j.isStringRepresentation=yp;function xp(t){return bp.test(t)}j.isDateRepresentation=xp;function wp(t,o){return Mo(t,o).concat(Mo(o,t))}j.computeSchemaDifferences=wp;function Ga(t){return za(t)||Ua(t)||t===""}j.isEmptyField=Ga;function Tp(t){return t.filter(o=>!Ga(o))}j.removeEmptyFields=Tp;function Dp(t,o,e){return t.substring(o,o+e)}j.getNCharacters=Dp;function Op(t,o,e){let i=(0,To.evaluatePath)(o,e),n=Oo(o);
3Array.isArray(i)&&i.length?i.forEach(r=>{n=Oo(o),t.push((0,To.setPath)(n,e,r))}):(Array.isArray(i)&&i.length===0&&(0,To.setPath)(n,e,""),t.push(n))}function Mp(t,o){let e=[];return t.forEach(i=>{Op(e,i,o)}),e}j.unwind=Mp;function Np(t){return!isNaN(Number(t))}j.isNumber=Np;function Pp(t){return typeof t=="string"}j.isString=Pp;function Ep(t){return typeof t=="object"}j.isObject=Ep;function Ua(t){return t===null}j.isNull=Ua;function za(t){return typeof t>"u"}j.isUndefined=za;function Rp(t){return Object.prototype.toString.call(t)==="[object Error]"}j.isError=Rp;function Mo(t,o){return t.filter(e=>!o.includes(e))}j.arrayDifference=Mo;function Ip(t){return[...new Set(t)]}j.unique=Ip;function kp(t){if(t.flat)return t.flat();if(t.length>Do){let o=[];for(let e=0;e<t.length;e+=Do)o=o.concat(...t.slice(e,e+Do));return o}return t.reduce((o,e)=>o.concat(e),[])}j.flatten=kp;function Vp(t){return t===1/0||t===-1/0}j.isInvalid=Vp});var qa=Qt(Wt=>{"use strict";var Ap=Wt&&Wt.__createBinding||(Object.create?function(t,o,e,i){i===void 0&&(i=e);var n=Object.getOwnPropertyDescriptor(o,e);(!n||("get"in n?!o.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return o[e]}}),Object.defineProperty(t,i,n)}:function(t,o,e,i){i===void 0&&(i=e),t[i]=o[e]}),Fp=Wt&&Wt.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Bp=Wt&&Wt.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&Ap(o,t,e);return Fp(o,t),o};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.Json2Csv=void 0;var Ha=lo(),Lp=ja(),Ja=dn(),Ci=Bp(so()),$p=function(t){let o=new RegExp(t.delimiter.wrap,"g"),e=/\r?\n|\r/,i=t.parseValue&&typeof t.parseValue=="function"?t.parseValue:null,n=t.expandArrayObjects&&!t.unwindArrays,r={arrayIndexesAsKeys:t.arrayIndexesAsKeys,expandNestedObjects:t.expandNestedObjects,expandArrayObjects:n,ignoreEmptyArraysWhenExpanding:n,escapeNestedDots:!0};function d(b){return(0,Lp.deepKeysFromList)(b,r)}function _(b){return b.length===0?[]:t.checkSchemaDifferences?T(b):Ci.unique(Ci.flatten(b))}function T(b){let G=b[0],ee=b.slice(1);if(P(G,ee))throw new Error(Ja.errors.json2csv.notSameSchema);return G}function P(b,G){return G.reduce((ee,we)=>Ci.computeSchemaDifferences(b,we).length>0?ee+1:ee,0)}function ie(b){return t.excludeKeys?b.filter(G=>{for(let ee of t.excludeKeys){let we=ee instanceof RegExp?ee:new RegExp(`^${ee}`);if(ee===G||G.match(we))return!1}return!0}):b}function K(b){return t.sortHeader&&typeof t.sortHeader=="function"?b.sort(t.sortHeader):t.sortHeader?b.sort():b}function Fe(b){return t.trimHeaderFields&&(b.headerFields=b.headerFields.map(G=>G.split(".").map(ee=>ee.trim()).join("."))),b}function ye(b){return t.prependHeader&&(b.headerFields=b.headerFields.map(function(G){return _t(G)})),b}function xt(b){let G=Object.keys(t.fieldTitleMap);return b.header=b.headerFields.map(function(ee){let we=ee;return G.includes(ee)?we=t.fieldTitleMap[ee]:t.escapeHeaderNestedDots||(we=we.replace(/\\\./g,".")),we}).join(t.delimiter.field),b}function ti(){return t.keys?t.keys.map(b=>typeof b=="object"&&"field"in b?(t.fieldTitleMap[b.field]=b.title??b.field,b.field):b):[]}function Pi(){return t.keys?t.keys.flatMap(b=>typeof b=="string"?[]:b?.wildcardMatch?b.field:[]):[]}function Ei(b){let G=Pi(),ee=ti(),we=d(b),Ne=_(we);if(t.keys){t.keys=ee;let co=ee.flatMap(Ii=>{if(!G.includes(Ii))return Ii;let No=[],Za=new RegExp(`^${Ii}`);for(let mo of Ne)(Ii===mo||mo.match(Za))&&No.push(mo);return No});if(!t.unwindArrays){let Ii=ie(co);return K(Ii)}}let Si=ie(Ne);return K(Si)}function D(b){for(let G of b.records)for(let ee of b.headerFields){let we=(0,Ha.evaluatePath)(G,ee);if(Array.isArray(we))return!0}return!1}function q(b,G=!1){if(t.unwindArrays){if(b.headerFields.forEach(ee=>{b.records=Ci.unwind(b.records,ee)}),b.headerFields=Ei(b.records),D(b))return q(b,G);if(!G)return q(b,!0);if(t.keys){let ee=ti();b.headerFields=ie(ee)}return b}return b}function _e(b){return b.recordString=b.records.map(G=>{let ee=w(G,b.headerFields),we=ee.map(Ne=>{Ne=Je(Ne),Ne=Xe(Ne);let Si=i?i(Ne,xe):xe(Ne);return Si=_t(Si),Si});return Ri(we)}).join(t.delimiter.eol),b}function be(b){let G=Ci.removeEmptyFields(b);return!b.length||!G.length?t.emptyFieldValue||"":G.length===1?G[0]:b}function w(b,G){let ee=[];return G.forEach(we=>{let Ne=(0,Ha.evaluatePath)(b,we);!Ci.isUndefined(t.emptyFieldValue)&&Ci.isEmptyField(Ne)?Ne=t.emptyFieldValue:t.expandArrayObjects&&Array.isArray(Ne)&&(Ne=be(Ne)),ee.push(Ne)}),ee}function xe(b){let G=b instanceof Date;return b===null||Array.isArray(b)||typeof b=="object"&&!G?JSON.stringify(b):typeof b>"u"?"undefined":G&&t.useDateIso8601Format?b.toISOString():t.useLocaleFormat?b.toLocaleStr
3ing():b.toString()}function Je(b){return t.trimFieldValues?Array.isArray(b)?b.map(Je):typeof b=="string"?b.trim():b:b}function Xe(b){return t.preventCsvInjection?Array.isArray(b)?b.map(Xe):typeof b=="string"&&!Ci.isNumber(b)?b.replace(/^[ \t\r]*[=+\-@\t\r]+/g,""):b:b}function _t(b){let G=t.delimiter.wrap;return b.includes(t.delimiter.wrap)&&(b=b.replace(o,G+G)),(b.includes(t.delimiter.field)||b.includes(t.delimiter.wrap)||b.match(e)||t.wrapBooleans&&(b==="true"||b==="false"))&&(b=G+b+G),b}function Ri(b){return b.join(t.delimiter.field)}function W(b){let G=b.header,ee=b.recordString;return(t.excelBOM?Ja.excelBOM:"")+(t.prependHeader?G+t.delimiter.eol:"")+ee}function rn(b){Array.isArray(b)||(b=[b]);let G={headerFields:Ei(b),records:b,header:"",recordString:""},ee=q(G),we=_e(ee),Ne=ye(we),Si=Fe(Ne),co=xt(Si);return W(co)}return{convert:rn}};Wt.Json2Csv=$p});var Wa=Qt(Kt=>{"use strict";var jp=Kt&&Kt.__createBinding||(Object.create?function(t,o,e,i){i===void 0&&(i=e);var n=Object.getOwnPropertyDescriptor(o,e);(!n||("get"in n?!o.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return o[e]}}),Object.defineProperty(t,i,n)}:function(t,o,e,i){i===void 0&&(i=e),t[i]=o[e]}),Gp=Kt&&Kt.__setModuleDefault||(Object.create?function(t,o){Object.defineProperty(t,"default",{enumerable:!0,value:o})}:function(t,o){t.default=o}),Up=Kt&&Kt.__importStar||function(t){if(t&&t.__esModule)return t;var o={};if(t!=null)for(var e in t)e!=="default"&&Object.prototype.hasOwnProperty.call(t,e)&&jp(o,t,e);return Gp(o,t),o};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.Csv2Json=void 0;var zp=lo(),Hp=dn(),vi=Up(so()),Jp=function(t){let o=new RegExp(t.delimiter.wrap+t.delimiter.wrap,"g"),e=new RegExp("^"+Hp.excelBOM),i=t.parseValue&&typeof t.parseValue=="function"?t.parseValue:JSON.parse;function n(D){return D=ye(D),t.trimHeaderFields?D.split(".").map(q=>q.trim()).join("."):D}function r(D){let q=[];if(t.headerFields)q=t.headerFields.map((_e,be)=>({value:n(_e),index:be}));else if(q=D[0].map((be,w)=>({value:n(be),index:w})),t.keys){let be=t.keys;q=q.filter(w=>be.includes(w.value))}return{lines:D,headerFields:q,recordLines:[]}}function d(D){return t.excelBOM?D.replace(e,""):D}function _(D){let q=[],_e=D.length-1,be=t.delimiter.eol.length,w={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0},xe=[],Je,Xe,_t,Ri,W=0;for(;W<D.length;){if(Je=D[W],Xe=W?D[W-1]:"",_t=W<_e?D[W+1]:"",Ri=vi.getNCharacters(D,W,be),(Ri===t.delimiter.eol&&!w.insideWrapDelimiter||W===_e)&&Xe===t.delimiter.field)Ri===t.delimiter.eol&&w.startIndex===W||Je===t.delimiter.field?xe.push(""):xe.push(D.substring(w.startIndex)),xe.push(""),q.push(xe),xe=[],w.startIndex=W+be,w.parsingValue=!0,w.insideWrapDelimiter=_t===t.delimiter.wrap;else if(W===_e&&Je===t.delimiter.field){let rn=D.substring(w.startIndex,W);xe.push(rn),xe.push(""),q.push(xe)}else if(W===_e||Ri===t.delimiter.eol&&(!w.insideWrapDelimiter||w.insideWrapDelimiter&&Xe===t.delimiter.wrap&&!w.justParsedDoubleQuote)){let rn=W!==_e||Xe===t.delimiter.wrap?W:void 0;xe.push(D.substring(w.startIndex,rn)),q.push(xe),xe=[],w.startIndex=W+be,w.parsingValue=!0,w.insideWrapDelimiter=_t===t.delimiter.wrap}else if(Je===t.delimiter.wrap&&Xe===t.delimiter.field&&!w.insideWrapDelimiter&&!w.parsingValue)w.startIndex=W,w.insideWrapDelimiter=!0,w.parsingValue=!0,vi.getNCharacters(D,W+1,be)===t.delimiter.eol&&(W+=t.delimiter.eol.length+1);else if(Xe===t.delimiter.field&&Je===t.delimiter.wrap&&_t===t.delimiter.eol)xe.push(D.substring(w.startIndex,W-1)),w.startIndex=W,w.parsingValue=!0,w.insideWrapDelimiter=!0,w.justParsedDoubleQuote=!0,W+=1;else if((Xe!==t.delimiter.wrap||w.justParsedDoubleQuote&&Xe===t.delimiter.wrap)&&Je===t.delimiter.wrap&&vi.getNCharacters(D,W+1,be)===t.delimiter.eol)w.insideWrapDelimiter=!1,w.parsingValue=!1;else if(Je===t.delimiter.wrap&&(W===0||vi.getNCharacters(D,W-be,be)===t.delimiter.eol&&!w.insideWrapDelimiter))w.insideWrapDelimiter=!0,w.parsingValue=!0,w.startIndex=W;else if(Je===t.delimiter.wrap&&_t===t.delimiter.field&&w.insideWrapDelimiter)xe.push(D.substring(w.startIndex,W+1)),w.startIndex=W+2,w.insideWrapDelimiter=!1,w.parsingValue=!1;else if(Je===t.delimiter.wrap&&Xe===t.delimiter.field&&!w.insideWrapDelimiter&&w.parsingValue)xe.push(D.substring(w.startIndex,W-1)),w.insideWrapDelimiter=!0,w.parsingValue=!0,w.startIndex=W;else if(Je===t.delimiter.wrap&&_t===t.delimiter.wrap&&W!==w.startIndex){W+=2,w.justParsedDoubleQuote=!0;continue}else Je===t.delimiter.field&&Xe!==t.delimiter.wrap&&_t!==t.delimiter.wrap&&!w.insideWrapDelimiter&&w.parsingValue?(xe.push(D.substring(w.startIndex,W)),w.startIndex=W+1):Je===t.delimiter.field&&Xe===t.delimiter.wrap&&_t!==t.delimiter.wrap&&!w.parsingValue&&(w.insideWrapDelimiter=!1,w.parsingValue=!0,w.startIndex=W+1);W++,w.justParsedDoubleQuote=!1}return q}function T(D){return t.headerFields?D.recordLines=D.lines:D.recordLines=D.lines.splice(1),D}function P(D,q){let _e=q[D.index];return ie(_e)}function ie(D){let q=Pi(D);return!vi.isError(q)&&!vi.isInvalid(q)?q:D==="undefined"?void 0:D}function K(D){return t.trimFieldValues&&D!==null?D.trim():D}function Fe(D,q){return D.reduce((_e,be)=>{let w=P(be,q);try{return(0,zp.setPath)(_e,be.value,w)}catch{return _e}},{})}function ye(D){let q=D[0],_e=D.length-1,be=D[_e];return q===t.delimiter.wrap&&be===t.delimiter.wrap?D.length<=2?"":D.substring(1,_e):D}function xt(D){return D.replace(o,t.delimiter.wrap)}function ti(D){return D.recordLines.reduce((q,_e)=>{_e=_e.map(w=>(w=ye(w),w=xt(w),w=K(w),w));let be=Fe(D.headerFields,_e);return q.concat(be)},[])}function Pi(D){try{if(vi.isStringRepresentation(D,t)&&!vi.isDateRepresentation(D))return D;let q=i(D);return Array.isArray(q)?q.map(K):q}catch(q){return q}}function Ei(D){let q=d(D),_e=_(q),be=r(_e),w=T(be);return ti(w)}return{convert:Ei}};Kt.Csv2Json=Jp});var Qa=Qt(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.csv2json=on.json2csv=void 0;var Ka=dn(),qp=qa(),Wp=Wa(),nn=so();function Kp(t,o){let e=(0,nn.buildJ2COptions)(o??{});return(0,nn.validate)(t,nn.isObject,Ka.errors.json2csv),(0,qp.Json2Csv)(e).convert(t)}on.json2csv=Kp;function Qp(t,o){let e=(0,nn.buildC2JOptions)(o??{});return(0,nn.validate)(t,nn.isString,Ka.errors.csv2json),(0,Wp.Csv2Json)(e).convert(t)}on.csv2json=Qp});var jn=(()=>{class t{http=f(Li);env=f(st);API_HOST;constructor(){this.API_HOST=`${this.env.baseUrl}/developers/backend/api/v1/release-advisory`}getUserInfo(){return this.http.get(`${this.API_HOST}/user-info`).pipe(Ze(e=>{throw e}))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var go=(t,o)=>{let e=f(jn),i=f(Ue),n=f(st),r=n.baseUrl+o.url;if(n.isDevelopment)return!0;return e.getUserInfo().pipe(ii(_=>_?.isAdminUser?!0:(d(r),!1)),Ze(()=>(d(r),bt(!1))));function d(_){i.navigate(["/auth"],{queryParams:{redirect:_}})}};var Er=(t,o)=>{let e=f(jn),i=f(Ue),n=f(st),r=n.baseUrl+o.url;if(n.isDevelopment)return!0;return e.getUserInfo().pipe(ii(_=>_?.isBackbaseEmployee?!0:(d(r),!1)),Ze(()=>(d(r),bt(!1))));function d(_){i.navigate(["/auth"],{queryParams:{redirect:_}})}};var pa=fn(Pr());var me={PLATFORM:"Platform",RETAIL_BANKING:"Retail Banking",BUSINESS_BANKING:"Business Banking",WEALTH_MANAGEMENT:"Wealth Management",DIGITAL_INVESTING:"Digital Investing",DIGITAL_ONBOARDING:"Digital Onboarding",DIGITAL_LENDING:"Digital Lending",DIGITAL_ASSIST:"Digital Assist",DIGITAL_ENGAGE:"Digital Engage",IDENTITY:"Identity",GRAND_CENTRAL:"Grand Central"},Hi=[me.RETAIL_BANKING,me.BUSINESS_BANKING,me.WEALTH_MANAGEMENT,me.DIGITAL_INVESTING,me.DIGITAL_ONBOARDING,me.DIGITAL_LENDING,me.DIGITAL_ASSIST,me.DIGITAL_ENGAGE,me.IDENTITY,me.GRAND_CENTRAL,me.PLATFORM],Gu=[me.RETAIL_BANKING,me.BUSINESS_BANKING,me.WEALTH_MANAGEMENT],Rr=[me.RETAIL_BANKING,me.BUSINESS_BANKING],nt=(function(t){return t.SBOM="sbom",t.SUBSET="subset",t.STANDALONE="standalone",t})(nt||{}),ft=["Remote Config","Design System","Web DevKit","Backend DevKit","Mobile DevKit"],Gn="Banking Services",Ht={WEB:"web",IOS:"ios",ANDROID:"android",BACKEND:"backend",INTERNAL:"internal"};var B={PRODUCT_TITLE:"productTitle",DOMAIN:"domain",SUBDOMAIN_NAME:"subDomainName",SUBDOMAIN_ID:"subDomainId",TEMPLATE_TYPE:"templateType",SBOM_ID:"sbomId",DISCIPLINE:"discipline",FROM_VERSION:"fromVersion",TO_VERSION:"toVersion"},ho=ne(O({},B),{VERSION_VIEW:"versionView"}),Pe={WEB:"Web",IOS:"iOS",ANDROID:"Android",BACKEND:"Backend"},Ir={[Ht.WEB]:Pe.WEB,[Ht.IOS]:Pe.IOS,[Ht.ANDROID]:Pe.ANDROID,[Ht.BACKEND]:Pe.BACKEND},St={SINGLE_VERSION:"singleVersion",COMPARE_VERSIONS:"compareVersions"},kr=/^2024.04(-LTS)?$/,Un="2024.03-LTS",Vr="2024.04";
3var $r=fn(el());var Z=(function(t){return t.fixed="fixed",t.feature="feature",t.security="security",t.dependency="dependency",t.deprecated="deprecated",t.removed="removed",t.known_issue="known-issue",t})(Z||{}),He=(function(t){return t.approved="approved",t.pending="pending",t})(He||{}),ot=(function(t){return t.breakingChange="breaking-change",t.nonBreakingChange="non-breaking-change",t})(ot||{}),di={fixed:"bug-fix",feature:"feature",security:"security",dependency:"dependency",deprecated:"deprecated",removed:"removed",known_issue:"known-issue"},zn=[{label:"Android",value:"android"},{label:"Backend",value:"backend"},{label:"iOS",value:"ios"},{label:"Web",value:"web"}],Ar=[{label:"Feature",value:"feature",order:1,selected:!0},{label:"Fixed",value:"fixed",order:2,selected:!1},{label:"Security",value:"security",order:3,selected:!1},{label:"Dependency",value:"dependency",order:6,selected:!1},{label:"Deprecated",value:"deprecated",order:4,selected:!1},{label:"Removed",value:"removed",order:5,selected:!1},{label:"Known issue",value:"known-issue",order:6,selected:!1}],Di={heading:"No results found",content:"Try using a different filter criteria or different search keywords",icon:{iconName:"magnifying-glass"}},Fr={heading:"Release notes by Software Component",content:"Select the discipline and software component to view release notes",icon:{iconName:"magnifying-glass"}},Ji={heading:"Something went wrong",content:"Server Error!",icon:{iconName:"server"}},Br={heading:"Product unavailable",content:"Select a different discipline and product above to start comparing",icon:{iconName:"magnifying-glass",iconColor:"primary"}},Hn={heading:"Release Advisor",content:""};var Lr={showNotificationBlock:!0,configuration:{text:"Only data for Backbase BOM and the Retail Banking USA Web, iOS and Android apps are currently available. We'll be adding more soon. Please, select one of those products to start comparing.",size:"large",variant:"warning"}},gt={pending:{label:"Pending",bgColor:"#DFE7FF",fontColor:"#17348C",successMessage:t=>`Release Note "${t}" unpublished successfully`,errorMessage:t=>`An error occurs while unpublishing release note: "${t}"`},approved:{label:"Approved",bgColor:"#DBECE2",fontColor:"rgba(14, 129, 62, 1)",successMessage:t=>`Release Note "${t}" published successfully`,errorMessage:t=>`An error occurs while publishing release note: "${t}"`}};var Jn=()=>t=>t.value?tl(t.value)?null:{version:!0}:null,jr=()=>{let t=["web","android","ios","backend"];return o=>o.value?t.includes(o.value)?null:{discipline:{validDisciplines:t.join(", "),actualDiscipline:o.value}}:null},Gr=()=>{let t=Object.values(Z);return o=>o.value?t.includes(o.value)?null:{changeType:{validChangeTypes:t.join(", "),actualChangeType:o.value}}:null},Ur=t=>o=>{let e=[];return!o.value||(vt.parse(o.value,{walkTokens:i=>{t.has(i.type)&&e.push(i.type)}}),e.length===0)?null:{markdown:{invalidTokensType:e}}},zr=()=>Ur(new Set(["code","link","list","listItem","space","table","tag","reflink","url","checkbox","blockquote","heading","html","hr","image"])),Hr=()=>Ur(new Set(["checkbox","blockquote","heading","html","hr","image","tag","reflink","url"])),qn=()=>t=>!t.value||/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i.test(t.value)?null:{url:!0},tl=t=>{let[o,e,i=0]=t.split(/[.-]/).map(Number),n=`${o}.${e}.${i}`;return il(n)||_o(t)},il=t=>!!$r.default.valid(t),_o=t=>/^[0-9]{4}.[0-9]{2}(.[0-9]{1,3})?(-(LTS))?$/i.test(t);var z=t=>{if(!t)return-1;if(_o(t)){let ye=t.split("-")[0],[xt,ti,Pi]=ye.split(".").map(Number),Ei=xt*1e9,D=ti*1e7,q=Pi?Pi*1e4:0;return Ei+D+q}let[o,e]=t.split("-"),[i,n,r,d]=o.split(".").map(Number),_=i*1e13,T=(n||0)*1e10,P=(r||0)*1e7,ie=d?d*1e4:0,K=0;if(e?.length>0){let[ye,xt]=e.split("."),ti=Number(xt)||0;K=Number(ye.toLocaleLowerCase().charCodeAt(0))*1e3+ti}let Fe=_+T+P+ie+K;return isNaN(Fe)?-1:Fe};var yt=t=>{let o=t.split(".");if(o.length>2){let e=o[2],i=e.indexOf("-");if(i>0){let n=e.substring(i);return`${o[0]}.${o[1]}${n}`}return`${o[0]}.${o[1]}`}return t};function Oi(t){return t==="backbase-bom"?"Banking Services":t.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}var nl=t=>{let o=new Map;
3return t.forEach(e=>{let i=o.get(e.id);i?i.versions=[...i.versions||[],...e.versions||[]].filter((n,r,d)=>d.indexOf(n)===r).sort((n,r)=>z(n)-z(r)):o.set(e.id,O({},e))}),Array.from(o.values())},ol=t=>{let o=new Map;return t.forEach(e=>{let i=o.get(e.title);i?i.subDomains=nl([...i.subDomains,...e.subDomains]):o.set(e.title,O({},e))}),Array.from(o.values())},Jr=t=>{let o=new Map;return t.forEach(e=>{let i=o.get(e.title);i?i.domains=ol([...i.domains,...e.domains]):o.set(e.title,O({},e))}),Array.from(o.values())},rl=t=>ne(O({},t),{versions:Array.isArray(t.versions)?t.versions.map(o=>typeof o=="string"?yt(o):o):t.versions}),al=t=>ne(O({},t),{subDomains:t.subDomains.map(rl)}),qr=t=>t.map(o=>ne(O({},o),{domains:o.domains.map(al)})),qi=(t,o)=>o==="ASC"?t.sort((e,i)=>z(e)-z(i)):t.sort((e,i)=>z(i)-z(e)),mi=t=>{let o=t.discipline?Ir[t.discipline]:Pe.BACKEND;return ft.includes(t.subDomainName)?`${Oi(t.productTitle)} \u2022 ${t.domain} \u2022 ${t.subDomainName}`:`${Oi(t.productTitle)} \u2022 ${t.domain} \u2022 ${o}`},Mi=t=>t?.split(":")[1]||"";function Wn(t,o){for(let e of o)t[e]||delete t[e];return t}function Wi(t){return Object.keys(t).reduce((o,e)=>(t[e]!=null&&(o[e]=t[e]),o),{})}var ll=t=>t===" "||t==="_",sl=(t,o,e)=>{if(t<"A"||t>"Z"||o===0)return!1;let i=e[o-1];return i>="a"&&i<="z"},cl=t=>{let o=0,e=t.length;for(;o<e&&t[o]==="_";)o++;for(;e>o&&t[e-1]==="_";)e--;return t.substring(o,e)},bo=t=>{if(!t)return"";let o=t.trim(),e=o.toLowerCase();if(!e)return"";let i="";for(let n=0;n<e.length;n++){let r=e[n],d=o[n];ll(r)?i&&!i.endsWith("_")&&(i+="_"):sl(d,n,o)?i+="_"+r:i+=r}return cl(i)};function Wr(t){return Object.fromEntries(Object.entries(t).filter(([,o])=>!(o==null||o===""||Array.isArray(o)&&o.length===0||o&&typeof o=="object"&&!Array.isArray(o)&&Object.keys(o).length===0)))}var Ae=(()=>{class t{http=f(Li);env=f(st);API_HOST;ADMIN_API_HOST;fetchAvailableComponentIds$=new gn(null);constructor(){this.API_HOST=`${this.env.baseUrl}/developers/backend/api/v1/release-advisory`,this.ADMIN_API_HOST=`${this.env.baseUrl}/developers/backend/api/v1/admin`}fetchReleaseNotesBySoftwareComponent(e,i){return this.http.get(`${this.ADMIN_API_HOST}/release-notes`,{params:{componentId:e,discipline:i}})}searchReleaseNotes(e){return this.http.get(`${this.ADMIN_API_HOST}/release-notes/search-release-notes`,{params:{query:e}})}createReleaseNote(e){let i=Wi(e);return this.http.post(`${this.ADMIN_API_HOST}/release-notes`,i)}batchImportReleaseNotes(e){let i=e.map(n=>Wi(n));return this.http.post(`${this.ADMIN_API_HOST}/release-notes/create-release-notes`,i)}deleteReleaseNote(e){return this.http.delete(`${this.ADMIN_API_HOST}/release-notes/${e}`)}editReleaseNote(e){return this.http.put(`${this.ADMIN_API_HOST}/release-notes`,e)}approveReleaseNote(e){return this.http.put(`${this.ADMIN_API_HOST}/release-notes/status`,e)}downloadReleaseNotesV3(e){return this.http.get(`${this.API_HOST}/release-notes/v3/csv`,{responseType:"text",params:O({},e)})}refreshAvailableComponentIds(){this.fetchAvailableComponentIds$.next(null)}fetchProductJourney(){return this.http.get(`${this.ADMIN_API_HOST}/release-notes/product-journey`)}getAvailableComponentIds(){return this.fetchAvailableComponentIds$.pipe(ki(()=>this.http.get(`${this.ADMIN_API_HOST}/release-notes/available-component-ids`)),Ao(1))}getProductsForNavigation(){return this.http.get(`${this.API_HOST}/products`)}getComponentsFromTemplate(){return this.http.get(`${this.ADMIN_API_HOST}/release-notes/template-components`)}getReleaseNotesV3(e){return this.http.get(`${this.API_HOST}/v3/release-notes`,{params:O({},e)})}getReleaseNotesAdmin(e){return this.http.get(`${this.ADMIN_API_HOST}/release-notes/v2`,{params:O({},e)})}getCalVersWithReleaseNotes(e,i){let n=new Xo().set("productSubDomainTitle",e).set("sbomId",i);return this.http.get(`${this.API_HOST}/calvers-with-release-notes`,{params:n})}getReleaseNoteById(e){return this.http.get(`${this.API_HOST}/release-note/${e}`)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dl(t,o){if(t&1&&(l(0,"mat-option",17),c(1),a()),t&2){let e=o.$implicit;m("value",e),s(),E(" ",e," ")}}function ml(t,o){if(t&1){let e=I();l(0,"mat-form-field",14)(1,"mat-select",16,0),C("selectionChange",function(n){M(e);let r=u(2);return N(r._changePageSize(n.value))}),ve(3,dl,2,2,"mat-option",17,Ke),a(),l(5,"div",18),C("click",function(){M(e);let n=Ai(2);return N(n.open())}),a()()}if(t&2){let e=u(2);m("appearance",e._formFieldAppearance)("color",e.color),s(),m("value",e.pageSize)("disabled",e.disabled),Uo("aria-labelledby",e._pageSizeLabelId),m("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),s(2),Se(e._displayedPageSizeOptions)}}
3function pl(t,o){if(t&1&&(l(0,"div",15),c(1),a()),t&2){let e=u(2);s(),te(e.pageSize)}}function ul(t,o){if(t&1&&(l(0,"div",3)(1,"div",13),c(2),a(),g(3,ml,6,7,"mat-form-field",14),g(4,pl,2,1,"div",15),a()),t&2){let e=u();s(),We("id",e._pageSizeLabelId),s(),E(" ",e._intl.itemsPerPageLabel," "),s(),h(e._displayedPageSizeOptions.length>1?3:-1),s(),h(e._displayedPageSizeOptions.length<=1?4:-1)}}function fl(t,o){if(t&1){let e=I();l(0,"button",19),C("click",function(){M(e);let n=u();return N(n._buttonClicked(0,n._previousButtonsDisabled()))}),wi(),l(1,"svg",8),p(2,"path",20),a()()}if(t&2){let e=u();m("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),We("aria-label",e._intl.firstPageLabel)}}function gl(t,o){if(t&1){let e=I();l(0,"button",21),C("click",function(){M(e);let n=u();return N(n._buttonClicked(n.getNumberOfPages()-1,n._nextButtonsDisabled()))}),wi(),l(1,"svg",8),p(2,"path",22),a()()}if(t&2){let e=u();m("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),We("aria-label",e._intl.lastPageLabel)}}var Kn=(()=>{class t{changes=new yi;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,i,n)=>{if(n==0||i==0)return`0 of ${n}`;n=Math.max(n,0);let r=e*i,d=r<n?Math.min(r+i,n):r+i;return`${r+1} \u2013 ${d} of ${n}`};static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hl(t){return t||new Kn}var _l={provide:Kn,deps:[[new yn,new xn,Kn]],useFactory:hl},bl=50;var Cl=new xi("MAT_PAGINATOR_DEFAULT_OPTIONS"),Yt=(()=>{class t{_intl=f(Kn);_changeDetectorRef=f(Bi);_formFieldAppearance;_pageSizeLabelId=f(Pn).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new hn(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(i=>li(i,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new De;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,i=f(Cl,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),i){let{pageSize:n,pageSizeOptions:r,hidePageSize:d,showFirstLastButtons:_}=i;n!=null&&(this._pageSize=n),r!=null&&(this._pageSizeOptions=r),d!=null&&(this.hidePageSize=d),_!=null&&(this.show
3FirstLastButtons=_)}this._formFieldAppearance=i?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndex<e&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){let i=this.pageIndex*this.pageSize,n=this.pageIndex;this.pageIndex=Math.floor(i/e)||0,this.pageSize=e,this._emitPageEvent(n)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:bl),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,i)=>e-i),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let i=this.pageIndex;e!==i&&(this.pageIndex=e,this._emitPageEvent(i))}_buttonClicked(e,i){i||this._navigate(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",li],length:[2,"length","length",li],pageSize:[2,"pageSize","pageSize",li],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",Qe],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",Qe],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",Qe]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(i,n){i&1&&(l(0,"div",1)(1,"div",2),g(2,ul,5,4,"div",3),l(3,"div",4)(4,"div",5),c(5),a(),g(6,fl,3,5,"button",6),l(7,"button",7),C("click",function(){return n._buttonClicked(n.pageIndex-1,n._previousButtonsDisabled())}),wi(),l(8,"svg",8),p(9,"path",9),a()(),Fo(),l(10,"button",10),C("click",function(){return n._buttonClicked(n.pageIndex+1,n._nextButtonsDisabled())}),wi(),l(11,"svg",8),p(12,"path",11),a()(),g(13,gl,3,5,"button",12),a()()()),i&2&&(s(2),h(n.hidePageSize?-1:2),s(3),E(" ",n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)," "),s(),h(n.showFirstLastButtons?6:-1),s(),m("matTooltip",n._intl.previousPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("disabled",n._previousButtonsDisabled())("tabindex",n._previousButtonsDisabled()?-1:null),We("aria-label",n._intl.previousPageLabel),s(3),m("matTooltip",n._intl.nextPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("disabled",n._nextButtonsDisabled())("tabindex",n._nextButtonsDisabled()?-1:null),We("aria-label",n._intl.nextPageLabel),s(3),h(n.showFirstLastButtons?13:-1))},dependencies:[xr,wr,Cr,vr,Mr],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;
3fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
4`],encapsulation:2,changeDetection:0})}return t})(),pi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=oi({type:t});static \u0275inj=ni({providers:[_l],imports:[Sr,Tr,Nr,Yt]})}return t})();var Ki=(()=>{class t{transform(e){return e?e.replace(/\\r\\n/g,`
5`):""}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Dt({name:"escapeCharacterTransform",type:t,pure:!0})}return t})();function vl(t){return t.some(o=>o.type==="list"||o.type==="paragraph"&&t.filter(e=>e.type==="paragraph").length>1)}function Sl(t){return vt.Parser.parse(t).trim().replace(/<p[^>]*>/g,"").replace(/<\/p>/g,"").replace(/\n{2,}/g," ").replace(/\n/g," ").replace(/\s+/g," ").trim().replace(/([^\s>])(<[uo]l)/g,"$1 $2")}function yl(t){return vt.parseInline(t.map(o=>o.raw).join("").trim())}function xl(t){return"tokens"in t&&Array.isArray(t.tokens)}function wl(t){return"text"in t&&typeof t.text=="string"}function Tl(t){return!xl(t)||t.tokens.length===0?wl(t)?t.text:"":vl(t.tokens)?Sl(t.tokens):yl(t.tokens)}var Dl={image:({href:t,text:o})=>`${t} - ${o}`,html:({text:t})=>t.replace(/<\/?("[^"]*"|'[^']*'|[^>])*(>|$)/g,""),blockquote:({tokens:t})=>vt.Parser.parse(t),hr:()=>"",paragraph:({tokens:t})=>{let o=vt.Parser.parseInline(t).trim();return!o||o===""||/^\s*$/.test(o)?"":`<p class="release-advisor-paragraph">${o}</p>`},list:t=>{let o=t.items.map(e=>`<li>${Tl(e)}</li>`).join("");return t.ordered?`<ol class="list-style-ordered">${o}</ol>`:`<ul class="list-style-unordered">${o}</ul>`},em:({tokens:t})=>`<em class="italic">${vt.Parser.parseInline(t)}</em>`,link({href:t,title:o,tokens:e}){let i=vt.Parser.parseInline(e);if(t.indexOf("mailto:")>=0)return i;let n=Ol(t);if(n===null)return i;t=n;let r='<a href="'+t+'" target="_blank"';return o&&(r+=' title="'+o+'"'),r+=">"+i+"</a>",r}};vt.use({renderer:Dl});var Kr=t=>{if(t==null)return"";let e=vt.parse(t).replace(/<p[^>]*>\s*<\/p>\n?/g,"");e=e.replace(/\n{3,}/g,`
6`),e=e.replace(/(<p[^>]*>.*?<\/p>)\s*(<[uo]l)/g,(_,T,P)=>{let ie=T;return T.includes("release-advisor-paragraph")?T.includes("no-margin-before-list")||(ie=T.replace(/class="([^"]*)"/,'class="$1 no-margin-before-list"')):T.match(/class="[^"]*"/)?ie=T.replace(/class="([^"]*)"/,'class="$1 release-advisor-paragraph no-margin-before-list"'):T.match(/<p\s+[^>]*>/)?ie=T.replace(/(<p)([^>]*>)/,'$1 class="release-advisor-paragraph no-margin-before-list"$2'):ie=T.replace(/(<p)(>)/,'$1 class="release-advisor-paragraph no-margin-before-list"$2'),`${ie}${P}`}),e=e.replace(/(<\/[^p>][^>]*>)\s+(<[uo]l)/g,(_,T,P)=>T==="</li>"?`${T} ${P}`:`${T}${P}`),e=e.replace(/(<\/[^>]+>)\n{2,}(<[uo]l)/g,`$1
7$2`).replace(/(<\/[uo]l>)\n{2,}(<[^/])/g,`$1
8$2`).replace(/(<\/p>)\n+(<p>)/g,"$1$2");let i=e.replace(/^\s+/,""),n=i.trim()==="",r=i.match(/<\/[uo]l>$/),d=!i.match(/<[^>]+>/);return!i.endsWith(`
9`)&&!n&&!r&&!d&&(i+=`
10`),i};function Ol(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}var rt=(()=>{class t{transform(e){return qe(this,null,function*(){return Kr(e)})}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Dt({name:"markdown",type:t,pure:!0})}return t})();var Qr=(()=>{class t{transform(e){if(!e)return"-";let i=e.split("/");return i.length>
101?i[0]:"-"}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Dt({name:"componentGroupTransform",type:t,pure:!0})}return t})();var ui=(()=>{class t{transform(e){if(!e)return"";let i=e.split("/");return(i.length>1?i[1]:i[0]).replace(/^(web|ios|android|backend):/,"")}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Dt({name:"componentNameTransform",type:t,pure:!0})}return t})();function Ml(t,o){if(t&1&&(et(0,"h3",2),y(1,"escapeCharacterTransform"),y(2,"markdown"),y(3,"async")),t&2){let e=u(2);ri("innerHTML",$(3,5,$(2,3,$(1,1,e.releaseNote().title))),U)}}function Nl(t,o){if(t&1&&(ae(0,"div",18)(1,"div",19),c(2,"Status"),oe(),ae(3,"div",20),et(4,"div",21),y(5,"safe"),oe()(),et(6,"hr",22)),t&2){let e=u(2);s(4),Fi(e.releaseNote().status.name.toLowerCase()),ri("innerHTML",se(5,3,e.releaseNoteStatusConfig[e.releaseNote().status.name||""].label.toUpperCase(),"html"),U)}}function Pl(t,o){if(t&1&&(ae(0,"div",8),c(1),y(2,"componentNameTransform"),oe()),t&2){let e=u(3);s(),E(" ",$(2,1,e.releaseNote().productJourney||"")," ")}}function El(t,o){t&1&&(ae(0,"div",13),et(1,"i",23),oe())}function Rl(t,o){if(t&1&&(ae(0,"div",5)(1,"div",7),c(2,"Product Group"),oe(),g(3,Pl,3,3,"div",8)(4,El,2,0,"div",13),oe()),t&2){let e=u(2);s(3),h(e.releaseNote().productJourney&&e.releaseNote().productJourney!=="UNKNOWN"?3:4)}}function Il(t,o){if(t&1&&(ae(0,"div",6)(1,"div",7),c(2,"Software component Group"),oe(),ae(3,"div",8),c(4),y(5,"componentGroupTransform"),oe()()),t&2){let e=u(2);s(4),E(" ",$(5,1,e.releaseNote().componentId)," ")}}function kl(t,o){t&1&&c(0," Software component Name ")}function Vl(t,o){t&1&&c(0," Software component ")}function Al(t,o){t&1&&c(0," Software component version ")}function Fl(t,o){t&1&&c(0," Software version ")}function Bl(t,o){t&1&&(c(0," Yes "),et(1,"i",24))}function Ll(t,o){t&1&&(ae(0,"span"),c(1,"No"),oe())}function $l(t,o){if(t&1&&(et(0,"div",25),y(1,"safe")),t&2){let e=u(2);Fi(e.changeTypeColorMapping[e.releaseNote().changeType.name||""]),ri("innerHTML",se(1,3,e.releaseNote().changeType.name,"html"),U)}}function jl(t,o){t&1&&(ae(0,"div",13),et(1,"i",23),oe())}function Gl(t,o){if(t&1&&(et(0,"div",16),y(1,"escapeCharacterTransform"),y(2,"markdown"),y(3,"async")),t&2){let e=u(2);ri("innerHTML",$(3,5,$(2,3,$(1,1,e.releaseNote().description))),U)}}function Ul(t,o){if(t&1&&(ae(0,"footer",17)(1,"a",26),y(2,"safe"),c(3),oe()()),t&2){let e=u(2);s(),ri("href",se(2,2,e.releaseNote().readMoreURL,"url"),wn),s(2),te(e.releaseNote().readMoreText)}}function zl(t,o){if(t&1&&(ae(0,"div",0)(1,"div",1),g(2,Ml,4,7,"h3",2),oe(),g(3,Nl,7,6),ae(4,"div",3)(5,"div",4),g(6,Rl,5,1,"div",5),g(7,Il,6,3,"div",6),ae(8,"div",6)(9,"div",7),g(10,kl,1,0)(11,Vl,1,0),oe(),ae(12,"div",8),c(13),y(14,"componentNameTransform"),oe()(),ae(15,"div",9)(16,"div",7),g(17,Al,1,0)(18,Fl,1,0),oe(),ae(19,"div",10),c(20),oe()(),ae(21,"div",9)(22,"div",7),c(23,"Breaking"),oe(),ae(24,"div",11),g(25,Bl,2,0)(26,Ll,2,0,"span"),oe()()(),ae(27,"div",4)(28,"div",7),c(29,"Change type"),oe(),g(30,$l,2,6,"div",12)(31,jl,2,0,"div",13),oe()(),et(32,"hr",14),ae(33,"article",15),g(34,Gl,4,7,"div",16),oe(),g(35,Ul,4,5,"footer",17),oe()),t&2){let e=u();s(2),h(e.showTitle()?2:-1),s(),h(e.showStatus()?3:-1),s(3),h(e.showProductJourney()?6:-1),s(),h(e.showComponentGroup()?7:-1),s(3),h(e.showComponentGroup()?10:11),s(3),E(" ",$(14,12,e.releaseNote().componentId)," "),s(4),h(e.showComponentGroup()?17:18),s(3),E(" ",e.releaseNote().componentSemver," "),s(5),h(e.releaseNote().isBreakingChange?25:26),s(5),h(e.releaseNote().changeType&&e.releaseNote().changeType.name?30:31),s(4),h(e.releaseNote().description?34:-1),s(),h(e.releaseNote().readMoreText?35:-1)}}var Qi=(()=>{class t{releaseNote=tt.required();showTitle=tt(!1);showStatus=tt(!1);showProductJourney=tt(!0);showComponentGroup=tt(!1);releaseNoteStatusConfig=O({},gt);changeTypeColorMapping=O({},di);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-release-note-detail"]],inputs:{releaseNote:[1,"releaseNote"],showTitle:[1,"showTitle"],showStatus:[1,"showStatus"],showProductJourney:[1,"showProductJourney"],showComponentGroup:[1,"showComponentGroup"]},decls:1,vars:1,consts:[[1,"release-note-detail-container"],[1,"release-note-header"],[3,"innerHTML"],[1,"flex","gap-5","justify-between","items-baseline","w-full","whitespace-nowrap","sm:flex-wrap","sm:max-w-full"],[1,"flex","flex-col"],[1,"flex","gap-2","justify-start","mt-8"],[1,"flex","gap-2","items-center"],[1,"text-subtitle"],[1,"text-body-bold"],[1,"flex","gap-2","mt-1","items-center"],[1,"flex-auto","text-body-bold"],[1,"flex-auto","text-body-bold","flex","items-center"],[1,"uppercase","whitespace-nowrap","rounded","text-subheader-bold","w-32","px-2","py-2","text-center",3,"innerHTML","class"],[1,"flex","items-center"],[1,"border","border-solid","border-slate-200","my-4","h-px"],[1,"release-note-description"],[1,"fs-body","mt-s","pre-line",3,"innerHTML"],[1,"release-note-footer"],[1,"flex","gap-2","justify-start","mb-2","mt-4"],[1,"text-subtitle","flex","items-center"],[1,"justify-center","self-start","mr-8","text-center","uppercase","whitespace-nowrap","rounded"],[1,"custom-badge","text-subheader-bold","w-32","px-2","py-2",3,"innerHTML"],[1,"border","border-solid","border-slate-200","mt-4","h-px"],[1,"icon","icon-hyphen"],[1,"ml-2","icon","icon-circle-exclamation-check","text-h3"],[1,"uppercase","whitespace-nowrap","rounded","text-subheader-bold","w-32","px-2","py-2","text-center",3,"innerHTML"],["target","_blank",1,"underline",3,"href"]],template:function(i,n){i&1&&g(0,zl,36,14,"div",0),i&2&&h(n.releaseNote().title?0:-1)},dependencies:[Ge,rt,Ki,kn,ui,Qr],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.bb-io-button[_ngcontent-%COMP%]{transition:none}.release-note-detail-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.release-note-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;width:100%;gap:1rem}.release-note-description[_ngcontent-%COMP%]{flex:1;min-height:0;padding-bottom:2rem;overflow-x:hidden;overflow-y:auto;text-align:left}.release-note-description[_ngcontent-%COMP%]   .pre-line[_ngcontent-%COMP%]{white-space:pre-line}.release-note-footer[_ngcontent-%COMP%]{flex-shrink:0;margin-top:1.5rem;font-weight:700;text-align:left}.custom-badge[_ngcontent-%COMP%]{width:8rem}.pending[_ngcontent-%COMP%]{background-color:#dfe7ff;color:#17348c}.approved[_ngcontent-%COMP%]{background-color:#dbece2;color:#0f803e}.icon-circle-exclamation-check[_ngcontent-%COMP%]{color:#bf2310}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}.divider[_ngcontent-%COMP%]{height:1px;background:#e1e8ef}"]})}return t})();function Yn(t,o){let e=document.activeElement;if(!(e?.tagName==="INPUT"||e?.tagName==="TEXTAREA"||e?.hasAttribute("contenteditable")))switch(t.key){case"ArrowLeft":t.preventDefault(),o.canNavigatePrevious()&&o.onPrevious();break;case"ArrowRight":t.preventDefault(),o.canNavigateNext()&&o.onNext();break}}var Yi=(()=>{class t{dialogData=f(Oe);dialogRef=f(Ve);router=f(Ue);location=f(On);currentReleaseNote$$=V(this.dialogData.releaseNote);currentIndex$$=V(this.dialogData.releaseNoteIndex);refreshAfterClose$$=V(!1);releaseNote=k(()=>this.currentReleaseNote$$());releaseNoteIndex=k(()=>this.currentIndex$$());releaseNoteCollection=k(()=>this.dialogData.releaseNoteCollection);isReleaseAdvisor=k(()=>this.dialogData.isReleaseAdvisor??!1);showProductJourney=k(()=>this.dialogData.showProductJourney??!0);showShareButton=k(()=>this.dialogData.showShareButton??!1);statusLabel=k(()=>{let e=this.releaseNote().status?.name||"";return gt[e]?.label?.toUpperCase()||e.toUpperCase()});releaseNoteStatusConfig=O({},gt);onKeyUp(e){Yn(e,{onPrevious:()=>this.previous(),onNext:()=>this.next(),canNavigatePrevious:()=>!this.isFirst(),canNavigateNext:()=>!this.isLast()})}closeModal(){this.updateQueryParam(void 0),this.dialogRef.close(this.refreshAfterClose$$()?{action:"refresh",releaseNote:this.currentReleaseNote$$()}:void 0)}previous(){let e=this.currentIndex$$()-1;this.currentIndex$$.set(e),this.currentReleaseNote$$.set(this.dialogData.releaseNoteCollection[e]),this.updateQueryParam(this.currentReleaseNote$$().id)}next(){let e=this.currentIndex$$()+1;this.currentIndex$$.set(e),this.currentReleaseNote$$.set(this.dialogData.releaseNoteCollection[e]),this.updateQueryParam(this.currentReleaseNote$$().id)}isFirst(){return this.currentIndex$$()===0}isLast(){return this.currentIndex$$()===this.dialogData.releaseNoteCollection.length-1}shareReleaseNote(e){let i=this.router.serializeUrl(this.router.createUrlTree(["/release-advisor/release-note",e]));window.open(i,"_blank")}updateQueryParam(e){let i=new URL(window.location.href);e?i.searchParams.set("open",String(e)):i.searchParams.delete("open"),this.location.replaceState(i.pathname+i.search)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-release-notes-details"]],hostBindings:function(i,n){i&1&&C("keyup",function(d){return n.onKeyUp(d)})},decls:16,vars:13,consts:[[1,"release-notes-details-modal"],[1,"modal-header","flex","justify-center","items-center"],[1,"modal-title",3,"innerHTML"],["BBioButton-basic","","color","primary","aria-label","Close",1,"ml-auto",3,"click"],[1,"icon","icon-xmark","text-h2"],[1,"modal-content"],[3,"releaseNote","showStatus","showProductJourney","showComponentGroup"],[1,"modal-footer"],[1,"flex","text-subtitle-bold","whitespace-nowrap","sm:flex-wrap","sm:max-w-full"],["BBioButton-stroked","","aria-label","Previous",1,"w-10","h-10","p-0",3,"click","disabled"],[1,"icon","icon-circle-arrow-left"],["BBioButton-stroked","","aria-label","Next",1,"w-10","h-10","p-0","mx-2",3,"click","disabled"],[1,"icon","icon-circle-arrow-right"]],template:function(i,n){i&1&&(l(0,"section",0)(1,"header",1),p(2,"h3",2),y(3,"escapeCharacterTransform"),y(4,"markdown"),y(5,"async"),l(6,"button",3),C("click",function(){return n.closeModal()}),p(7,"i",4),a()(),l(8,"div",5),p(9,"bb-io-release-note-detail",6),a(),l(10,"footer",7)(11,"div",8)(12,"button",9),C("click",function(){return n.previous()}),p(13,"i",10),a(),l(14,"button",11),C("click",function(){return n.next()}),p(15,"i",12),a()()()()),i&2&&(s(2),m("innerHTML",$(5,11,$(4,9,$(3,7,n.releaseNote().title))),U),s(7),m("releaseNote",n.releaseNote())("showStatus",!n.isReleaseAdvisor())("showProductJourney",n.showProductJourney())("showComponentGroup",!0),s(3),m("disabled",n.isFirst()),s(2),m("disabled",n.isLast()))},dependencies:[re,it,X,Qi,Ge,Ki,rt],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.release-notes-details-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:90vh;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;position:sticky;z-index:10;top:0;align-items:center;justify-content:flex-end;justify-content:space-between;padding:1.5rem 1.5rem 1rem;border-bottom:1px solid rgb(243,246,249);background-color:#fff;gap:1rem}
10.modal-header[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]{display:-webkit-box;flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical}.modal-content[_ngcontent-%COMP%]{flex:1;min-height:0;padding:0 1.5rem;overflow-x:hidden;overflow-y:auto}.modal-footer[_ngcontent-%COMP%]{position:sticky;z-index:10;bottom:0;margin-top:1rem;padding:1.5rem;border-top:1px solid rgb(243,246,249);background-color:#fff}.column-gap[_ngcontent-%COMP%]{gap:3rem}.sub-column-gap[_ngcontent-%COMP%]{gap:1rem}.jc-between[_ngcontent-%COMP%]{justify-content:space-between}.jc-end[_ngcontent-%COMP%]{justify-content:end}.custom-badge[_ngcontent-%COMP%]{width:8rem}.mdc-dialog__actions[_ngcontent-%COMP%]{padding:1rem}.pre-line[_ngcontent-%COMP%]{white-space:pre-line}.pending[_ngcontent-%COMP%]{background-color:#dfe7ff;color:#17348c}.approved[_ngcontent-%COMP%]{background-color:#dbece2;color:#0f803e}.icon-circle-exclamation-check[_ngcontent-%COMP%]{color:#bf2310}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.divider[_ngcontent-%COMP%]{height:1px;background:#e1e8ef}"]})}return t})();var Hl=["paginator"];function Jl(t,o){if(t&1&&p(0,"bbio-notification-block",2),t&2){let e=u();m("text",e.notificationText)}}function ql(t,o){t&1&&(l(0,"th",23),c(1," Product Group "),a())}function Wl(t,o){if(t&1&&(l(0,"p"),c(1),y(2,"componentNameTransform"),a()),t&2){let e=u().$implicit;s(),E(" ",$(2,1,e.productJourney)," ")}}function Kl(t,o){t&1&&p(0,"i",25)}function Ql(t,o){if(t&1&&(l(0,"td",24),g(1,Wl,3,3,"p")(2,Kl,1,0,"i",25),a()),t&2){let e=o.$implicit;s(),h(e!=null&&e.productJourney&&(e==null?null:e.productJourney)!=="UNKNOWN"?1:2)}}function Yl(t,o){t&1&&(l(0,"th",23),c(1," Software component "),a())}function Xl(t,o){if(t&1&&(p(0,"td",26),y(1,"componentNameTransform"),y(2,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(2,3,$(1,1,e.componentId),i.searchText),U)}}function Zl(t,o){t&1&&(l(0,"th",27),c(1,"Version"),a())}function es(t,o){if(t&1&&(p(0,"td",26),y(1,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(1,1,e.componentSemver,i.searchText),U)}}function ts(t,o){t&1&&(l(0,"th",27),c(1," Change type "),a())}function is(t,o){if(t&1&&(l(0,"td",28),p(1,"div",29),y(2,"highlightSearch"),a()),t&2){let e=o.$implicit,i=u(2);s(),m("innerHTML",se(2,2,e.changeType.name,i.searchText),U)("ngClass",i.changeTypeColorMapping[e.changeType.name])}}function ns(t,o){t&1&&(l(0,"th",27),c(1,"Change"),a())}function os(t,o){if(t&1&&(p(0,"td",26),y(1,"markdown"),y(2,"async"),y(3,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(3,5,$(2,3,$(1,1,e.title))||"",i.searchText),U)}}function rs(t,o){t&1&&(l(0,"th",27),c(1,"Breaking"),a())}function as(t,o){t&1&&p(0,"i",31)}function ls(t,o){t&1&&p(0,"i",25)}function ss(t,o){if(t&1&&(l(0,"td",30),g(1,as,1,0,"i",31)(2,ls,1,0,"i",25),a()),t&2){let e=o.$implicit;s(),h(e.isBreakingChange?1:2)}}function cs(t,o){t&1&&p(0,"tr",32)}function ds(t,o){if(t&1){let e=I();l(0,"tr",33),C("click",function(){let n=M(e).$implicit,r=u(2);return N(r.viewChanges(n))}),a()}}function ms(t,o){t&1&&(l(0,"th",27),c(1,"Status"),a())}function ps(t,o){if(t&1&&(l(0,"td",24),c(1),a()),t&2){let e=o.$implicit,i=u(2);s(),E(" ",i.releaseNoteStatusConfig[e.status.name||""].label," ")}}function us(t,o){t&1&&p(0,"th",27)}function fs(t,o){if(t&1){let e=I();l(0,"td",24)(1,"button",34),C("click",function(n){let r=M(e).$implicit;return u(2).openReleaseNote(r),N(n.stopPropagation())}),p(2,"i",35),a(),l(3,"button",36),C("click",function(n){let r=M(e).$implicit;return u(2).editReleaseNote(r),N(n.stopPropagation())}),p(4,"i",37),a(),l(5,"button",38),C("click",function(n){let r=M(e).$implicit;return u(2).deleteReleaseNote(r),N(n.stopPropagation())}),p(6,"i",39),a()()}}function gs(t,o){if(t&1&&p(0,"mat-paginator",22,0),t&2){let e=u(2);m("length",e.dataSource.filteredData.length)("pageSize",e.pageSizeSelect.value)}}function hs(t,o){if(t&1&&(l(0,"div",3)(1,"table",4),H(2,5),R(3,ql,2,0,"th",6)(4,Ql,3,1,"td",7),J(),H(5,8),R(6,Yl,2,0,"th",6)(7,Xl,3,6,"td",9),J(),H(8,10),R(9,Zl,2,0,"th",11)(10,es,2,4,"td",9),J(),H(11,12),R(12,ts,2,0,"th",11)(13,is,3,5,"td",13),J(),H(14,14),R(15,ns,2,0,"th",11)(16,os,4,8,"td",9),J(),H(17,15),R(18,rs,2,0,"th",11)(19,ss,3,1,"td",16),J(),R(20,cs,1,0,"tr",17)(21,ds,1,0,"tr",18),H(22,19),R(23,ms,2,0,"th",11)(24,ps,2,1,"td",20),J(),H(25,21),R(26,us,1,0,"th",11)(27,fs,7,0,"td",20),J(),a(),g(28,gs,2,2,"mat-paginator",22),a()),t&2){let e=u();s(),m("dataSource",e.dataSource),s(19),m("matHeaderRowDef",e.displayedColumns),s(),m("matRowDefColumns",e.displayedColumns),s(7),h(e.dataSource.filteredData.length>e.pageSizeSelect.value?28:-1)}}var Yr=(()=>{class t{refresh=new De;releaseNoteSelected=new De;releaseNoteStatusConfig=O({},gt);dataSource=new le([]);searchText;pageSizeSelect=new x(50);isAdmin=!1;paginator;changeTypeColorMapping=O({},di);displayedColumns=["productJourney","componentName","componentSemver","description","changeType","isBreakingChange","status","viewDetails"];notificationText="";dialog=f(Me);
10destroyRef=f(L);ngAfterViewInit(){this.dataSource.paginator=this.paginator}ngOnInit(){this.pageSizeSelect.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.dataSource.paginator?._changePageSize(e),this.dataSource.paginator?.firstPage()})}viewChanges(e){window.getSelection()?.toString()||this.dialog.open(Yi,{data:{releaseNote:e,releaseNoteIndex:this.dataSource.filteredData.findIndex(n=>n.id===e.id),releaseNoteCollection:this.dataSource.filteredData,isReleaseAdvisor:!0,showProductJourney:!0,showShareButton:!1},width:"70vw",height:"80vh"})}openReleaseNote(e){this.releaseNoteSelected.emit({action:"open",releaseNote:e})}editReleaseNote(e){this.releaseNoteSelected.emit({action:"edit",releaseNote:e})}deleteReleaseNote(e){this.releaseNoteSelected.emit({action:"delete",releaseNote:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-release-notes-table"]],viewQuery:function(i,n){if(i&1&&Re(Hl,5),i&2){let r;Ie(r=ke())&&(n.paginator=r.first)}},inputs:{dataSource:"dataSource",searchText:"searchText",pageSizeSelect:"pageSizeSelect",isAdmin:"isAdmin"},outputs:{refresh:"refresh",releaseNoteSelected:"releaseNoteSelected"},decls:3,vars:2,consts:[["paginator",""],[1,"mb-4"],["variant","success",3,"text"],[1,"custom-table-container"],["mat-table","",1,"mat-elevation-z8","text-subtitle",3,"dataSource"],["matColumnDef","productJourney"],["class","text-subtitle-bold text-weight-bold leading-6","mat-header-cell","",4,"matHeaderCellDef"],["class","leading-6","mat-cell","",4,"matCellDef"],["matColumnDef","componentName"],["class","leading-6","mat-cell","",3,"innerHTML",4,"matCellDef"],["matColumnDef","componentSemver"],["class","text-subtitle-bold leading-6","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","changeType"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","isBreakingChange"],["mat-cell","","class","font-libre-franklin leading-6",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["matColumnDef","status"],["mat-cell","","class","leading-6",4,"matCellDef"],["matColumnDef","viewDetails"],["showFirstLastButtons","","aria-label","Select page","color","primary",3,"length","pageSize"],["mat-header-cell","",1,"text-subtitle-bold","text-weight-bold","leading-6"],["mat-cell","",1,"leading-6"],[1,"icon","icon-hyphen"],["mat-cell","",1,"leading-6",3,"innerHTML"],["mat-header-cell","",1,"text-subtitle-bold","leading-6"],["mat-cell",""],[1,"custom-badge","text-subheader-bold","uppercase",3,"innerHTML","ngClass"],["mat-cell","",1,"font-libre-franklin","leading-6"],[1,"icon","icon-circle-exclamation-check","text-h3"],["mat-header-row",""],["mat-row","",3,"click"],["aria-label","View release note details","BBioButton-basic","",3,"click"],[1,"icon","icon-square-sliders","text-primary","text-xl"],["aria-label","Edit release note","BBioButton-basic","",3,"click"],[1,"icon","icon-pencil","text-darker","text-h3"],["aria-label","Delete release note","BBioButton-basic","",3,"click"],[1,"icon","icon-trash-can","text-danger","text-h3"]],template:function(i,n){i&1&&(l(0,"div",1),g(1,Jl,1,1,"bbio-notification-block",2),a(),g(2,hs,29,4,"div",3)),i&2&&(s(),h(n.notificationText?1:-1),s(),h(n.dataSource.data.length>0?2:-1))},dependencies:[ut,Vt,Ft,jt,Bt,At,Gt,Lt,$t,Ut,zt,re,Ce,pi,Yt,ze,Ge,Rt,ui,rt],styles:[".custom-table-container[_ngcontent-%COMP%]{max-width:100%;overflow:auto}.custom-table-container[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:none;font-family:Libre Franklin;text-align:left;vertical-align:middle}.custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:600}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#ebf0f5;font-size:.875rem;font-style:normal;font-weight:400;cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-elevation-z8[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{border-bottom:rgb(204,213,223) solid 1px}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-paginator[_ngcontent-%COMP%]{color:#295eff}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#295eff}.custom-table-container[_ngcontent-%COMP%]   .custom-badge[_ngcontent-%COMP%]{width:7rem}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]{cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#ebf0f5}.mat-column-viewDetails[_ngcontent-%COMP%]{width:10%}.mat-column-productJourney[_ngcontent-%COMP%]{width:16%}.mat-column-componentName[_ngcontent-%COMP%]{width:22%}.icon-circle-exclamation-check[_ngcontent-%COMP%]{color:#bf2310}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}#hideMe[_ngcontent-%COMP%]{-moz-animation:cssAnimation 0s ease-in 5s forwards;-webkit-animation:_ngcontent-%COMP%_cssAnimation 0s ease-in 5s forwards;-o-animation:cssAnimation 0s ease-in 5s forwards;animation:_ngcontent-%COMP%_cssAnimation 0s ease-in 5s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_cssAnimation{to{width:0;height:0;overflow:hidden}}@-webkit-keyframes _ngcontent-%COMP%_cssAnimation{to{visibility:hidden;width:0;height:0}}"]})}return t})();var A={PRODUCT_TITLE:"productTitle",DOMAIN:"domain",SUBDOMAIN_NAME:"subDomainName",SUBDOMAIN_ID:"subDomainId",TEMPLATE_TYPE:"templateType",SBOM_ID:"sbomId",DISCIPLINE:"discipline",FROM_VERSION:"fromVersion",TO_VERSION:"toVersion"},Xr=ne(O({},A),{VERSION_VIEW:"versionView"}),Le={WEB:"Web",IOS:"iOS",ANDROID:"Android",BACKEND:"Backend"},Xt={WEB:"web",IOS:"ios",ANDROID:"android",BACKEND:"backend"},R0={[Xt.WEB]:Le.WEB,[Xt.IOS]:Le.IOS,[Xt.ANDROID]:Le.ANDROID,[Xt.BACKEND]:Le.BACKEND},ht={SINGLE_VERSION:"singleVersion",COMPARE_VERSIONS:"compareVersions"},Zr=/^2023.02(-LTS|-beta)?$/;var _s=["typeAheadInput"],bs=["trigger"],Cs=(t,o)=>o.value;function vs(t,o){if(t&1&&p(0,"input",3,1),t&2){let e=u();m("formControl",e.search)}}function Ss(t,o){if(t&1&&(l(0,"div",4),c(1),a()),t&2){let e=u();s(),E(" ",e.label," ")}}function ys(t,o){t&1&&p(0,"i",11)}function xs(t,o){if(t&1){let e=I();l(0,"li")(1,"button",9),C("click",function(){let n=M(e).$implicit,r=u(2);return N(r.onValueSelected(n.value))}),p(2,"span",10),y(3,"highlightSearch"),g(4,ys,1,0,"i",11),a()()}if(t&2){let e=o.$implicit,i=u(2);s(),lt("selected",i.value===e.value),m("disabled",e.disabled??!1)("matRippleDisabled",e.disabled??!1),s(),m("innerHtml",Ko(3,6,e.label,i.search.value,"font-semibold"),U),s(2),h(i.value===e.value?4:-1)}}function ws(t,o){t&1&&(l(0,"li")(1,"button",12)(2,"span",13),c(3,"No results found"),a()()())}function Ts(t,o){if(t&1&&(c(0," Create "),l(1,"strong"),c(2),a()),t&2){let e=u(3);s(2),te(e.search.value)}}function Ds(t,o){if(t&1){let e=I();l(0,"li",14),C("click",function(){M(e);let n=u(2);return N(n.clickNotFoundOption(n.search.value))}),l(1,"button",12)(2,"span",13),g(3,Ts,3,1),a()()()}if(t&2){let e=u(2);s(3),h(e.allowCreateOption&&e.search.value?3:-1)}}function Os(t,o){if(t&1&&(l(0,"div",7)(1,"ul"),ve(2,xs,5,10,"li",null,Cs),g(4,ws,4,0,"li"),g(5,Ds,4,1,"li",8),a()()),t&2){let e=u();m("@transformPanel","showing"),s(2),Se(e.displayedOptions),s(2),h(e.displayedOptions.length===0&&!e.allowCreateOption?4:-1),s(),h(e.displayCreateOption&&e.allowCreateOption&&(e.search!=null&&e.search.value)?5:-1)}}var fi=(()=>{class t{destroyRef=f(L);search=new x;value;opened=!1;touched=!1;displayedOptions=[];label="";componentClass="";panelMinWidth=0;onChange=Ee;onTouch=Ee;options=[];placeholder="Select an option";disabled=!1;set class(e){this.componentClass=e}allowCreateOption=!1;typeAheadInput;trigger;displayCreateOption=!0;ngOnInit(){this.search.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{let i=this.displayedOptions.find(n=>n.label.toLowerCase()===e.toLowerCase());this.displayCreateOption=!i,this.displayedOptions=this.options.filter(n=>n.label.toLowerCase().indexOf(e.toLowerCase())>=0)})}ngOnChanges(){this.updateLabel()}ngAfterViewChecked(){this.opened&&this.typeAheadInput?.nativeElement?.focus()}writeValue(e){this.value=e,this.updateLabel()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}onValueSelected(e){this.value=e,this.onChange(e),this.onTouch(),this.touched=!0,this.clickTrigger(),this.updateLabel()}clickTrigger(){this.opened=!this.opened,this.panelMinWidth=this.trigger?.nativeElement.getBoundingClientRect().width??0,this.resetTypeAhead()}clickNotFoundOption(e){this.allowCreateOption&&(this.options.push({label:e,value:e}),this.onValueSelected(e)),this.opened=!1}resetTypeAhead(){this.search.setValue(null,{emitEvent:!1}),this.displayedOptions=this.options}updateLabel(){this.label=this.options.find(e=>e.value===this.value)?.label??this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-typeahead"]],viewQuery:function(i,n){if(i&1&&(Re(_s,5),Re(bs,5,Ti)),i&2){let r;Ie(r=ke())&&(n.typeAheadInput=r.first),Ie(r=ke())&&(n.trigger=r.first)}},inputs:{options:"options",placeholder:"placeholder",disabled:"disabled",class:"class",allowCreateOption:"allowCreateOption"},features:[Be([{provide:ct,useExisting:t,multi:!0}]),Tt],decls:6,vars:15,consts:[["trigger","cdkOverlayOrigin"],["typeAheadInput",""],["cdkOverlayOrigin","",1,"dropdown","rounded-sm","text-subtitle","flex","items-center","outline-blue-500","outline-offset-2","pr-4",3,"click","ngClass","disabled"],["id","typeahead","type","text",1,"py-2","pl-4","outline-none","border-0","text-subtitle","w-full","text-darker",3,"formControl"],[1,"py-2","pl-4","max-w-full","overflow-hidden"],[1,"icon-chevron-down","ml-2",3,"ngClass"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayDisableClose","cdkConnectedOverlayMinWidth"],[1,"shadow-lg","mobile-padding","p-4","rounded-sm","mt-2","bg-white","select-panel","w-full"],[1,"create-option"],["matRipple","",1,"h-12","px-4","flex","cursor-pointer","option","w-full","items-center",3,"click","disabled","matRippleDisabled"],[1,"w-full","text-left",3,"innerHtml"],[1,"icon-check"],[1,"h-12","px-4","flex","w-full","items-center"],[1,"w-full","text-left","not-found"],[1,"create-option",3,"click"]],template:function(i,n){if(i&1){let r=I();l(0,"button",2,0),C("click",function(){return M(r),N(n.clickTrigger())}),g(2,vs,2,1,"input",3)(3,Ss,2,1,"div",4),p(4,"i",5),a(),R(5,Os,6,3,"ng-template",6),C("backdropClick",function(){return M(r),N(n.clickTrigger())})}if(i&2){let r=Ai(1);lt("text-darker",!n.disabled)("active",n.opened)("outline",n.opened),m("ngClass",n.componentClass)("disabled",n.disabled),s(2),h(n.opened?2:3),s(2),m("ngClass",n.opened?"icon-chevron-up":"icon-chevron-down"),s(),m("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",n.opened)("cdkConnectedOverlayHasBackdrop",!0)("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayMinWidth",n.panelMinWidth)}},dependencies:[re,Ce,rr,or,nr,ji,Y,Nt,Q,dt,An,Rt],styles:["button.dropdown[_ngcontent-%COMP%]{display:block;justify-content:center;max-width:208px;overflow:hidden;transition:.3s;border:1px solid rgb(163,178,194);background-color:transparent;text-overflow:ellipsis;white-space:nowrap}button.dropdown[disabled][_ngcontent-%COMP%]{border:1px solid rgb(204,213,223);background-color:#f3f6f9;color:#7189a7}@media(max-width:1128px){button.dropdown[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;max-width:1000px;height:40px;padding:16px}}button.dropdown[_ngcontent-%COMP%]:not([disabled]):hover, button.dropdown[_ngcontent-%COMP%]:not([disabled]).active{border:1px solid rgb(9,28,53);color:#091c35;cursor:pointer}button.option[_ngcontent-%COMP%]:not([disabled]):hover, button.option[_ngcontent-%COMP%]:not([disabled]).active{background-color:#f3f6f9}button.option[disabled][_ngcontent-%COMP%]{background-color:#7189a7}button.option.selected[_ngcontent-%COMP%]{background-color:#dfe7ff}button.option[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:24px;line-height:24px}
10ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:.5rem}.select-panel[_ngcontent-%COMP%]{max-height:275px;overflow:auto}.mobile-padding[_ngcontent-%COMP%]{transform-origin:top}@media(max-width:1128px){.mobile-padding[_ngcontent-%COMP%]{padding:16px}}.create-option[_ngcontent-%COMP%]{border:1px dotted rgb(163,178,194);cursor:pointer}.create-option[_ngcontent-%COMP%]:hover, .create-option.active[_ngcontent-%COMP%]{background-color:#f3f6f9}"],data:{animation:[dr.transformPanel]}})}return t})();function Ms(t,o){if(t&1&&(l(0,"div",8)(1,"div",14),c(2),a(),p(3,"bb-io-typeahead",15),a()),t&2){let e=u();s(2),E(" ",e.domainLabel()," "),s(),m("disabled",!e.productSelectionFilterNames.PRODUCT_TITLE||e.domainOptions().length===1)("options",e.domainOptions())("placeholder","Select your "+e.domainLabel())("formControlName",e.productSelectionFilterNames.DOMAIN)}}function Ns(t,o){if(t&1&&(l(0,"div",8)(1,"div",5),c(2,"Discipline"),a(),p(3,"bb-io-typeahead",16),a()),t&2){let e=u();s(3),m("disabled",e.disciplineDropdownOptions().length===1)("options",e.disciplineDropdownOptions())("formControlName",e.productSelectionFilterNames.DISCIPLINE)}}function Ps(t,o){if(t&1){let e=I();l(0,"div",9)(1,"mat-tab-group",17),C("selectedIndexChange",function(n){M(e);let r=u();return N(r.onVersionSelectionTabChanged(n))}),l(2,"mat-tab",18)(3,"div",19)(4,"div",8)(5,"div",5),c(6,"Version"),a(),p(7,"bb-io-typeahead",20),a()()(),l(8,"mat-tab",21)(9,"div",22)(10,"div",8)(11,"div",5),c(12,"From"),a(),p(13,"bb-io-typeahead",23),a(),l(14,"div",8)(15,"div",5),c(16,"To"),a(),p(17,"bb-io-typeahead",24),a()()()()()}if(t&2){let e,i=u();s(),m("selectedIndex",i.activeTabIdx()),s(6),m("disabled",i.singleVersionCalVerOptions().length===0)("formControlName",i.SINGLE_CAL_VER_FORM_CONTROL_NAME)("options",i.singleVersionCalVerOptions()),s(6),m("options",i.fromCalVerOptions())("formControlName",i.productSelectionFilterNames.FROM_VERSION)("disabled",i.fromCalVerOptions().length===0),s(4),m("options",i.toCalVerOptions())("formControlName",i.productSelectionFilterNames.TO_VERSION)("disabled",!((e=i.productSelectionForm.get(i.productSelectionFilterNames.FROM_VERSION))!=null&&e.value))}}var Es={[Le.ANDROID.toUpperCase()]:Le.ANDROID,[Le.BACKEND.toUpperCase()]:Le.BACKEND,[Le.IOS.toUpperCase()]:Le.IOS,[Le.WEB.toUpperCase()]:Le.WEB},Rs={[Le.ANDROID.toUpperCase()]:Xt.ANDROID,[Le.BACKEND.toUpperCase()]:Xt.BACKEND,[Le.IOS.toUpperCase()]:Xt.IOS,[Le.WEB.toUpperCase()]:Xt.WEB},ea=(()=>{class t{dialogData=f(Oe);matDialogRef=f(Ve);destroyRef=f(L);TAB_NAME_TO_TAB_INDEX={SINGLE_VERSION:0,COMPARE_VERSIONS:1};SINGLE_CAL_VER_FORM_CONTROL_NAME="calVer";productSelectionFilterNames=A;activeTabIdx=V(this.dialogData.versionView===ht.SINGLE_VERSION?this.TAB_NAME_TO_TAB_INDEX.SINGLE_VERSION:this.TAB_NAME_TO_TAB_INDEX.COMPARE_VERSIONS);productSelectionForm=new ue({productTitle:new x,domain:new x,sbomId:new x,subDomainName:new x,subDomainId:new x,templateType:new x,discipline:new x,fromVersion:new x,toVersion:new x,calVer:new x},{validators:e=>{let i=e.get(A.FROM_VERSION)?.value,n=e.get(A.TO_VERSION)?.value,r=e.get(this.SINGLE_CAL_VER_FORM_CONTROL_NAME)?.value,d=e.get(A.DOMAIN)?.value,_=e.get(A.SUBDOMAIN_NAME)?.value;return ft.includes(d)&&!!_||e.get(A.TEMPLATE_TYPE)?.value==="standalone"?null:this.isSingleVersionTab()?r?null:{required:!0}:this.isSingleVersionTab()?{required:!0}:!i||!n?{required:!0}:null}});formValueChanges=V({productTitle:this.dialogData.filterCriteria.productTitle,domain:this.dialogData.filterCriteria.domain,discipline:this.dialogData.filterCriteria.discipline,subDomainName:this.dialogData.filterCriteria.subDomainName,subDomainId:this.dialogData.filterCriteria.subDomainId,sbomId:this.dialogData.filterCriteria.sbomId,templateType:this.dialogData.filterCriteria.templateType,calVer:this.dialogData.versionView===ht.SINGLE_VERSION?this.dialogData.filterCriteria.toVersion:"",fromVersion:this.dialogData.versionView!==ht.SINGLE_VERSION?this.dialogData.filterCriteria.fromVersion:"",toVersion:this.dialogData.versionView!==ht.SINGLE_VERSION?this.dialogData.filterCriteria.toVersion:""});singleCalVerOptions=k(()=>{let e=this.formValueChanges().productTitle,i=this.formValueChanges().domain,n=this.findDomainByTitle(e,i);return n?this.getCalVerOptionsBySubdomainAndDiscipline(n.subDomains,this.formValueChanges().discipline??""):[]});singleVersionCalVerOptions=k(()=>{let e=this.singleCalVerOptions();return e.length>1&&(e=e.slice(0,-1)),e});productOptions=k(()=>this.makeProductOptions());domainOptions=k(()=>this.makeDomainOptions());disciplineDropdownOptions=k(()=>this.makeDisciplineOptions());kitOptions=k(()=>this.makeKitOptions());fromCalVerOptions=k(()=>this.singleCalVerOptions().slice(1).map(e=>({value:e.value,label:e.value,group:e.value.slice(0,7)})));toCalVerOptions=k(()=>{let e=this.formValueChanges().fromVersion??"";return this.makeToCalVerOptions(e)});showCalVerSelectionBox=k(()=>{let e=this.formValueChanges().templateType;return e?e!=="standalone":!1});showDisciplineSelectionBox=k(()=>this.formValueChanges().productTitle&&this.disciplineDropdownOptions().length>=1);domainLabel=k(()=>{switch(this.formValueChanges().productTitle){case me.RETAIL_BANKING:case me.BUSINESS_BANKING:case me.WEALTH_MANAGEMENT:return"Edition";default:return"Domain"}});ngOnInit(){this.updateInitialFormValue(),this.handleProductSelection(),this.handleDomainSelection(),this.handleSelectingDiscipline(),this.handleKitSelection(),this.handleSelectingFromCalVersion(),this.handleUpdatingFormValueState()}closeDialog(){this.matDialogRef.close()}applyFilters(){let e=this.productSelectionForm.getRawValue();if(this.isSingleVersionTab()){let n=this.singleCalVerOptions().findIndex(_=>_.value===e.calVer)+1,r=this.singleCalVerOptions()[n]?.value??"",d={productTitle:e.productTitle,domain:e.domain,subDomainName:e.subDomainName,subDomainId:e.subDomainId,sbomId:e.sbomId,templateType:e.templateType,discipline:e.discipline,fromVersion:r,toVersion:e.calVer};this.matDialogRef.close({filterCriteria:d,versionView:ht.SINGLE_VERSION});return}this.matDialogRef.close({filterCriteria:{productTitle:e.productTitle,domain:e.domain,subDomainName:e.subDomainName,subDomainId:e.subDomainId,sbomId:e.sbomId,templateType:e.templateType,discipline:e.discipline,fromVersion:e.fromVersion,toVersion:e.toVersion},versionView:ht.COMPARE_VERSIONS})}isSingleVersionTab(){return this.activeTabIdx()===this.TAB_NAME_TO_TAB_INDEX.SINGLE_VERSION}onVersionSelectionTabChanged(e){this.activeTabIdx.set(e),this.productSelectionForm.updateValueAndValidity()}handleProductSelection(){this.productSelectionForm.get(A.PRODUCT_TITLE)?.valueChanges.pipe(v(this.destroyRef)).subscribe(()=>{this.productSelectionForm.get(A.DOMAIN)?.reset(),this.productSelectionForm.get(A.SUBDOMAIN_ID)?.reset(),this.productSelectionForm.get(A.SUBDOMAIN_NAME)?.reset(),this.productSelectionForm.get(A.SBOM_ID)?.reset(),this.productSelectionForm.get(A.TEMPLATE_TYPE)?.reset(),this.productSelectionForm.get(A.DISCIPLINE)?.reset(),this.productSelectionForm.get(A.FROM_VERSION)?.reset(),this.productSelectionForm.get(A.TO_VERSION)?.reset()})}handleDomainSelection(){this.productSelectionForm.get(A.DOMAIN)?.valueChanges.pipe(v(this.destroyRef)).subscribe(()=>{this.productSelectionForm.get(A.SUBDOMAIN_ID)?.reset(),this.productSelectionForm.get(A.SUBDOMAIN_NAME)?.reset(),this.productSelectionForm.get(A.SBOM_ID)?.reset(),this.productSelectionForm.get(A.TEMPLATE_TYPE)?.reset(),this.productSelectionForm.get(A.DISCIPLINE)?.reset(),this.productSelectionForm.get(A.FROM_VERSION)?.reset(),this.productSelectionForm.get(A.TO_VERSION)?.reset();let e=this.domainOptions();if(e.length===1){let[n]=e,r=this.productSelectionForm.get(A.DOMAIN);r?.value!==n.value&&r?.patchValue(n.value)}let i=this.makeDisciplineOptions();i.length===1&&this.productSelectionForm.get(A.DISCIPLINE)?.patchValue(i[0].value)})}handleKitSelection(){this.productSelectionForm.get(A.SUBDOMAIN_NAME)?.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{if(!e)return;let i=this.findSubDomainIdBySubDomainTitle(e);if(!i)return;this.productSelectionForm.get(A.SUBDOMAIN_ID)?.patchValue(i.id),this.productSelectionForm.get(A.TEMPLATE_TYPE)?.patchValue(i.type);let n=this.productSelectionForm.get(A.SUBDOMAIN_NAME);n?.value!==e&&n?.patchValue(e)})}handleSelectingDiscipline(){this.productSelectionForm.get(A.DISCIPLINE)?.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.productSelectionForm.get(this.SINGLE_CAL_VER_FORM_CONTROL_NAME)?.reset(),this.productSelectionForm.get(A.FROM_VERSION)?.reset(),this.productSelectionForm.get(A.TO_VERSION)?.reset();let i=this.formValueChanges().domain,n=this.findSubDomainByDomainTitleAndDiscipline(i,e);n&&(this.productSelectionForm.get(A.SUBDOMAIN_ID)?.patchValue(n.id),this.productSelectionForm.get(A.SBOM_ID)?.patchValue(n.sbomId),this.productSelectionForm.get(A.TEMPLATE_TYPE)?.patchValue(n.type))})}handleSelectingFromCalVersion(){this.productSelectionForm.get(A.FROM_VERSION)?.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{let n=this.makeToCalVerOptions(e)[0]?.value??e;this.productSelectionForm.get(A.TO_VERSION)?.patchValue(n)})}handleUpdatingFormValueState(){this.productSelectionForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.formValueChanges.set({productTitle:e.productTitle??"",domain:e.domain??"",sbomId:e.sbomId??"",subDomainName:e.subDomainName??"",subDomainId:e.subDomainId??"",templateType:e.templateType??"",discipline:e.discipline??"",calVer:e.calVer??"",fromVersion:e.fromVersion??"",toVersion:e.toVersion??""})})}updateInitialFormValue(){let e=this.formValueChanges();this.productSelectionForm.patchValue(e)}makeProductOptions(){return this.dialogData.products.map(e=>({label:Oi(e.title),value:e.title})).sort((e,i)=>Hi.indexOf(e.label)-Hi.indexOf(i.label))}makeToCalVerOptions(e){return e?this.singleCalVerOptions().filter(i=>z(i.value)>z(e)).map(i=>({value:i.value,label:i.value,group:i.value?.slice(0,7)})):[]}makeDomainOptions(){let e=this.formValueChanges().productTitle,i=this.findProductByTitle(e);return i?Array.from(new Set(i.domains.map(({title:r})=>r))).map(r=>({label:r,value:r})).sort(this.sortByLabel):[]}makeKitOptions(){let e=this.formValueChanges().productTitle,i=this.formValueChanges().domain;if(!ft.includes(i))return[];let n=this.findProductByTitle(e);return n?Array.from(new Set(n.domains.find(d=>d.title===i)?.subDomains.map(d=>d.title))).map(d=>({label:d,value:d})).sort(this.sortByLabel):[]}makeDisciplineOptions(){let e=this.formValueChanges().productTitle,i=this.formValueChanges().domain;if(ft.includes(i))return[];let n=this.findDomainByTitle(e,i);return n?n.subDomains.map(r=>({label:Es[r.discipline.toUpperCase()],value:Rs[r.discipline.toUpperCase()]})).sort(this.sortByLabel):[]}findProductByTitle(e){return this.dialogData.products.find(i=>i.title===e)}findDomainByTitle(e,i){return this.findProductByTitle(e)?.domains.find(r=>r.title===i)}
10findSubDomainByDomainTitleAndDiscipline(e,i){if(i)return this.dialogData.products.flatMap(n=>n.domains).flatMap(n=>n.subDomains).find(n=>n.domainTitle===e&&n.discipline===i)}findSubDomainIdBySubDomainTitle(e){return this.dialogData.products.flatMap(i=>i.domains).flatMap(i=>i.subDomains).find(i=>i.title===e)}getCalVerOptionsBySubdomainAndDiscipline(e,i){let n=e.filter(K=>K.discipline===i).flatMap(K=>K.versions??[]),r=Array.from(new Set(qi(n,"DESC"))),d=r.findIndex(K=>Zr.test(K)),_=r[r.length-1],T=d!==-1?r[d]:_,P=r.filter(K=>z(K)>=z(T)),ie=d!==-1?r[d+1]:"";return this.isSingleVersionTab()&&ie&&P.push(ie),P.map(K=>({label:K,value:K,group:K.slice(0,7)}))}sortByLabel(e,i){return e.label.localeCompare(i.label)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-product-selection-dialog"]],decls:19,vars:7,consts:[[1,"product-selection-dialog","min-w-[744px]","w-fit",3,"dialogClose"],[1,"mb-4"],[1,"product-selection-dialog__filter-criteria","mt-8",3,"formGroup"],[1,"flex","w-[100%]"],[1,"flex-1"],[1,"text-subheader-bold","uppercase","label","mb-2"],["placeholder","Select your product",1,"justify-between","min-w-full",3,"options","formControlName"],[1,"flex","mt-4","gap-x-4","w-[100%]"],[1,"basis-1/2"],[1,"product-selection-dialog__cal-versions-selection","mt-6"],[1,"product-selection-dialog__action-bar","mt-14","flex","justify-end","gap-x-2"],["BBioButton-stroked","","type","button",1,"text-base",3,"click"],["BBioButton","","type","button",3,"click","disabled"],[1,"icon","icon-check"],[1,"text-subheader-bold","uppercase","label","mb-2","min-h-[18px]"],[1,"justify-between","min-w-full",3,"disabled","options","placeholder","formControlName"],["placeholder","Select a discipline",1,"justify-between","min-w-full","first-letter:uppercase",3,"disabled","options","formControlName"],["disableRipple","true",3,"selectedIndexChange","selectedIndex"],["label","Single version"],[1,"flex"],["placeholder","Select version",1,"justify-between","min-w-full",3,"disabled","formControlName","options"],["label","Compare versions"],[1,"flex","gap-x-4"],["placeholder","From version",1,"justify-between","min-w-full",3,"options","formControlName","disabled"],["placeholder","To version",1,"justify-between","min-w-full",3,"options","formControlName","disabled"]],template:function(i,n){if(i&1&&(l(0,"bbio-dialog",0),C("dialogClose",function(){return n.closeDialog()}),l(1,"h3",1),c(2,"Select product and versions"),a(),l(3,"form",2)(4,"div",3)(5,"div",4)(6,"div",5),c(7,"Product"),a(),p(8,"bb-io-typeahead",6),a()(),l(9,"div",7),g(10,Ms,4,5,"div",8),g(11,Ns,4,3,"div",8),a(),g(12,Ps,18,10,"div",9),a(),l(13,"div",10)(14,"button",11),C("click",function(){return n.closeDialog()}),c(15," Cancel "),a(),l(16,"button",12),C("click",function(){return n.applyFilters()}),c(17," Apply "),p(18,"i",13),a()()()),i&2){let r;s(3),m("formGroup",n.productSelectionForm),s(5),m("options",n.productOptions())("formControlName",n.productSelectionFilterNames.PRODUCT_TITLE),s(2),h((r=n.productSelectionForm.get(n.productSelectionFilterNames.PRODUCT_TITLE))!=null&&r.value?10:-1),s(),h(n.showDisciplineSelectionBox()?11:-1),s(),h(n.showCalVerSelectionBox()?12:-1),s(4),m("disabled",n.productSelectionForm.status!=="VALID")}},dependencies:[In,fi,X,Y,fe,Q,ce,de,ge,$n,Ln],encapsulation:2})}return t})();var sn=(()=>{class t{filterCriteria=V({productTitle:"",domain:"",sbomId:"",subDomainName:"",subDomainId:"",templateType:"",discipline:"",fromVersion:"",toVersion:""});products=V([]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})();function Is(t,o){if(t&1&&(l(0,"div",3)(1,"span",8),c(2),a(),p(3,"i",9),a()),t&2){let e=u();s(2),te(e.displayedNumberOfReleases())}}var ta=(()=>{class t{versionView;filterCriteriaChanged=new De;matDialog=f(Me);productSelectionState=f(sn);displayedProductReleasesTitle=k(()=>{let e=this.productSelectionState.filterCriteria();if(e.productTitle)return mi(e)});displayedNumberOfReleases=k(()=>{let{fromVersion:e,toVersion:i}=this.productSelectionState.filterCriteria(),n=this.versionView===ht.SINGLE_VERSION;return e&&i?n?`1 release (${i})`:`${e} to ${i}`:"No releases"});showReleaseInformation=k(()=>!ft.includes(this.productSelectionState.filterCriteria().domain));openProductSelectionDialog(){this.matDialog.open(ea,{data:{products:this.productSelectionState.products(),filterCriteria:this.productSelectionState.filterCriteria(),versionView:this.versionView}}).afterClosed().pipe(wt(1)).subscribe(e=>{e&&this.filterCriteriaChanged.emit(e)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-product-selection"]],inputs:{versionView:"versionView"},outputs:{filterCriteriaChanged:"filterCriteriaChanged"},decls:10,vars:2,consts:[[1,"production-selection","items","flex","gap-4","justify-center","items-center"],[1,"flex","flex-col"],[1,"text-sm","discipline-product"],["data-testid","number-of-releases-btn",1,"text-sm","text-dark"],[1,"product-selection-divider"],[1,"flex","items-center"],["BBioButton-stroked","","data-testid","edit-product-selection-btn","type","button",1,"text-base",3,"click"],[1,"icon","icon-pen-field"],[1,"font-normal"],[1,"icon","icon-list-tree"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"span",2),c(3),a(),g(4,Is,4,1,"div",3),a(),p(
105,"div",4),l(6,"div",5)(7,"button",6),C("click",function(){return n.openProductSelectionDialog()}),c(8," Change Selection "),p(9,"i",7),a()()()),i&2&&(s(3),te(n.displayedProductReleasesTitle()),s(),h(n.showReleaseInformation()?4:-1))},dependencies:[X],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.divider[_ngcontent-%COMP%]{height:1px;background:#e1e8ef}.product-selection-divider[_ngcontent-%COMP%]{border-left:1px solid #e1e8ef}"],changeDetection:0})}return t})();var gi=(()=>{class t{$googleAnalyticsService=f(hr);$userSessionService=f(lr);$cookieService=f(tr);otelTracer=ir.getTracer("@backbase/observability");logEvent(e){let i=this.extractMetaData(e.metaData??{}),n=O(O({event_action:e.action,event_category:e.category,event_label:e.label},this.getUserDetails()),i),r=`ra_${bo(e.category)}`,d=Wr(n);this.$googleAnalyticsService.gtag("event",r,d),this.logTelemetryEvent(r,d)}extractMetaData(e){return Object.fromEntries(Object.entries(e||{}).map(([i,n])=>[bo(i),n]))}getUserDetails(){return this.$userSessionService.currentUser$()?{backbase_employee:!!this.$userSessionService.currentUser$()?.email.match(/@backbase\./),user_group:this.$userSessionService.currentUser$()?.group}:{backbase_employee:void 0,user_group:void 0}}logTelemetryEvent(e,i){try{if(this.$cookieService.get("cookieconsent_status")==="allow"){let n=this.$userSessionService.currentUser$();this.otelTracer.startActiveSpan("event",r=>{n&&(r.setAttribute("user-group",n.group),n.role&&r.setAttribute("user-role",n.role),r.setAttribute("user-domain",n.email.split("@")[1])),r.setAttribute("event-type","user-action"),r.setAttribute("name",e),r.setAttribute("category",i.event_category),r.setAttribute("action",i.event_action),r.setAttribute("label",i.event_label),i.backbase_employee&&r.setAttribute("backbase_employee",i.backbase_employee.toString()),Object.entries(i).forEach(([d,_])=>{["event_action","event_category","event_label","backbase_employee","user_group"].includes(d)||r.setAttribute(d,_)}),r.end()})}}catch(n){console.error("Error logging telemetry event",n)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ks=t=>({"mat-check-disabled":t}),ia=(()=>{class t{releaseNoteBreakingStatuses=ot;disabled=!1;onTouch=Ee;onChange=Ee;breakingChangeForm=new ue({[ot.breakingChange]:new x(!1)});destroyRef=f(L);ngOnInit(){this.breakingChangeForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.onChange(Object.entries(e).filter(i=>i[1]).map(([i])=>i)),this.onTouch()})}writeValue(e){if(e?.length===0){this.breakingChangeForm.patchValue({[ot.breakingChange]:!1});return}Pt(e)&&(this.breakingChangeForm.patchValue({[He.approved]:!1,[He.pending]:!1}),e.forEach(i=>{typeof i=="string"&&this.breakingChangeForm.controls[i]?.setValue(!0)}))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}setDisabledState(e){this.disabled=e,e?this.breakingChangeForm.disable():this.breakingChangeForm.enable()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-breaking-change"]],features:[Be([{provide:ct,useExisting:Ct(()=>t),multi:!0}])],decls:8,vars:5,consts:[[3,"formGroup"],[1,"option-container"],[1,"flex","flex-col"],[1,"flex"],[1,"filter-label","mt-4","text-subheader-bold","uppercase","grow"],["color","primary",3,"formControlName","ngClass"]],template:function(i,n){i&1&&(l(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5," Breaking change "),a()(),l(6,"mat-checkbox",5),c(7," Only breaking change "),a()()()()),i&2&&(m("formGroup",n.breakingChangeForm),s(6),m("formControlName",n.releaseNoteBreakingStatuses.breakingChange)("ngClass",he(3,ks,n.disabled)))},dependencies:[re,Ce,pt,Y,fe,Q,ce,de,ge],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.filter-label[_ngcontent-%COMP%]{color:#7189a7;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}"]})}return t})();var Xi=t=>({"mat-check-disabled":t});function Vs(t,o){if(t&1){let e=I();l(0,"button",7),C("click",function(){M(e);let n=u();return N(n.clearAll())}),c(1," Clear all "),a()}if(t&2){let e=u();m("disabled",e.changeTypesForm.disabled)}}function As(t,o){if(t&1){let e=I();l(0,"button",7),C("click",function(){M(e);let n=u();return N(n.selectAll())}),c(1," Select all "),a()}if(t&2){let e=u();m("disabled",e.changeTypesForm.disabled)}}var na=(()=>{class t{changeTypes=Z;disabled=!1;onTouch=Ee;onChange=Ee;changeTypesForm=new ue({[Z.fixed]:new x(!1),[Z.feature]:new x(!1),[Z.security]:new x(!1),[Z.dependency]:new x(!1),[Z.deprecated]:new x(!1),[Z.removed]:new x(!1)});destroyRef=f(L);ngOnInit(){this.changeTypesForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.onChange(Object.entries(e).filter(i=>i[1]).map(([i])=>i)),this.onTouch()})}writeValue(e){Pt(e)&&(this.changeTypesForm.patchValue({[Z.fixed]:!1,[Z.feature]:!1,[Z.security]:!1,[Z.dependency]:!1,[Z.deprecated]:!1,[Z.removed]:!1}),e.forEach(i=>
10{typeof i=="string"&&this.changeTypesForm.controls[i]?.setValue(!0)}))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}setDisabledState(e){this.disabled=e,e?this.changeTypesForm.disable():this.changeTypesForm.enable()}areAllOptionsSelected(){return Object.values(this.changeTypesForm.controls).reduce((e,i)=>e&&i.value,!0)}clearAll(){Object.values(this.changeTypesForm.controls).forEach(e=>e.patchValue(!1))}selectAll(){Object.values(this.changeTypesForm.controls).forEach(e=>e.patchValue(!0))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-change-type"]],features:[Be([{provide:ct,useExisting:Ct(()=>t),multi:!0}])],decls:20,vars:26,consts:[[3,"formGroup"],[1,"option-container"],[1,"flex","flex-col"],[1,"flex"],[1,"filter-label","mt-4","text-subheader-bold","uppercase","grow"],[1,"text-subheader-bold","mt-4","cursor-pointer","text-primary","underline",3,"disabled"],["color","primary",3,"formControlName","ngClass"],[1,"text-subheader-bold","mt-4","cursor-pointer","text-primary","underline",3,"click","disabled"]],template:function(i,n){i&1&&(l(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"Change type"),a(),g(6,Vs,2,1,"button",5)(7,As,2,1,"button",5),a(),l(8,"mat-checkbox",6),c(9," Feature "),a(),l(10,"mat-checkbox",6),c(11," Fixed "),a(),l(12,"mat-checkbox",6),c(13," Security "),a(),l(14,"mat-checkbox",6),c(15," Dependency "),a(),l(16,"mat-checkbox",6),c(17," Deprecated "),a(),l(18,"mat-checkbox",6),c(19," Removed "),a()()()()),i&2&&(m("formGroup",n.changeTypesForm),s(6),h(n.areAllOptionsSelected()?6:7),s(2),m("formControlName",n.changeTypes.feature)("ngClass",he(14,Xi,n.disabled)),s(2),m("formControlName",n.changeTypes.fixed)("ngClass",he(16,Xi,n.disabled)),s(2),m("formControlName",n.changeTypes.security)("ngClass",he(18,Xi,n.disabled)),s(2),m("formControlName",n.changeTypes.dependency)("ngClass",he(20,Xi,n.disabled)),s(2),m("formControlName",n.changeTypes.deprecated)("ngClass",he(22,Xi,n.disabled)),s(2),m("formControlName",n.changeTypes.removed)("ngClass",he(24,Xi,n.disabled)))},dependencies:[re,Ce,pt,Y,fe,Q,ce,de,ge],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.filter-label[_ngcontent-%COMP%]{color:#7189a7;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}"]})}return t})();var Zn="Others";function Fs(t,o){t&1&&p(0,"i",11,0)}function Bs(t,o){if(t&1){let e=I();l(0,"i",22,0),C("click",function(){M(e);let n=u();return N(n.clearSearch())}),a()}}function Ls(t,o){if(t&1&&(l(0,"mat-checkbox",15),c(1),a()),t&2){let e=o.$implicit,i=u();m("formControlName",e),s(),E(" ",e==="UNKNOWN"?i.UNKNOWN_PRODUCT_JOURNEY_LABEL:e," ")}}function $s(t,o){t&1&&c(0," No matching product group. ")}var oa=(()=>{class t{matDialogRef=f(Ve);data=f(Oe);UNKNOWN_PRODUCT_JOURNEY_LABEL=Zn;ngOnInit(){for(let e of this.data.productJourneys)this.productJourneyForm.setControl(e,new x(this.data.currentSelection.includes(e)))}textSearch=new x("");showOnlySelected=new x(!1);productJourneyForm=new ue({});clearSearch(){this.textSearch.setValue("")}saveFilters(){this.matDialogRef.close(Object.entries(this.productJourneyForm.value).filter(e=>e[1]).map(([e])=>e))}cancel(){this.matDialogRef.close(this.data.currentSelection)}getProductJourneysList(){return Object.keys(this.productJourneyForm.controls).filter(i=>this.isMatchingSearch(i)).filter(i=>this.isMatchingOnlySelected(i)).sort((i,n)=>i==="UNKNOWN"?1:n==="UNKNOWN"?-1:i.localeCompare(n))}selectedCounter(){return Object.values(this.productJourneyForm.value).filter(e=>e).length}clearAll(){Object.values(this.productJourneyForm.controls).forEac
10h(e=>{e.patchValue(!1)})}selectAll(){Object.values(this.productJourneyForm.controls).forEach(e=>{e.patchValue(!0)})}isMatchingSearch(e){if(this.textSearch.value){let i=this.textSearch.value.toLowerCase().replace(" ","");return e.toLowerCase().replace(" ","").indexOf(i)>=0}return!0}isMatchingOnlySelected(e){return this.showOnlySelected.value?this.productJourneyForm.controls[e].value===!0:!0}Object=Object;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-product-journey-popup-view"]],decls:34,vars:7,consts:[["icon",""],[1,"flex","flex-col","p-6","min-w-9"],[1,"flex","gap-5","justify-between","mb-4"],[1,"w-full"],["BBioButton-basic","","mat-dialog-close","","color","primary","aria-label","Close dialog"],[1,"icon","icon-xmark","text-h2"],[1,"flex","mb-2"],[1,"grow","text-subtitle-bold","items-center","flex"],["color","primary",3,"formControl"],[1,"bbio-search","flex","p-2","rounded-sm","rounded-br-[20px]","gap-x-2","p-s"],["for","filter-text-search",1,"button","flex","items-center"],[1,"icon-magnifying-glass","h-4","w-4","text-l"],[1,"icon-xmark","h-4","w-4","text-l","cursor-pointer"],["id","filter-text-search","type","text","placeholder","Search",1,"no-border","text-body",3,"formControl"],[1,"flex","flex-col","overflow-y-scroll","h-[50vh]","my-5",3,"formGroup"],["color","primary",3,"formControlName"],[1,"flex","flex-end"],[1,"flex","grow","items-center"],[1,"mr-4"],[1,"text-subheader-bold","mr-4","cursor-pointer","text-primary","underline",3,"click"],["BBioButton","",1,"text-subtitle-bold","text-primary-darker","ml-4","bb-io-button--outline",3,"click"],["BBioButton","",1,"text-subtitle-bold","text-primary-darker","ml-4",3,"click"],[1,"icon-xmark","h-4","w-4","text-l","cursor-pointer",3,"click"]],template:function(i,n){i&1&&(l(0,"section",1)(1,"header",2)(2,"h3",3),c(3,"Filter by Product group"),a(),l(4,"button",4),p(5,"i",5),a()(),l(6,"div",6)(7,"div",7),c(8,"All product groups"),a(),l(9,"div")(10,"mat-checkbox",8),c(11,"Show only selected"),a()()(),l(12,"div")(13,"div",9)(14,"label",10),g(15,Fs,2,0,"i",11),g(16,Bs,2,0,"i",12),a(),p(17,"input",13),a()(),l(18,"div",14),ve(19,Ls,2,2,"mat-checkbox",15,Ke,!1,$s,1,0),a(),l(22,"div",16)(23,"div",17)(24,"div",18),c(25),a(),l(26,"button",19),C("click",function(){return n.clearAll()}),c(27," Clear all "),a(),l(28,"button",19),C("click",function(){return n.selectAll()}),c(29," Select all "),a()(),l(30,"button",20),C("click",function(){return n.cancel()}),c(31," Cancel "),a(),l(32,"button",21),C("click",function(){return n.saveFilters()}),c(33," Apply filters "),a()()()),i&2&&(s(10),m("formControl",n.showOnlySelected),s(5),h(n.textSearch!=null&&n.textSearch.value?-1:15),s(),h(n.textSearch!=null&&n.textSearch.value?16:-1),s(),m("formControl",n.textSearch),s(),m("formGroup",n.productJourneyForm),s(),Se(n.getProductJourneysList()),s(6),E("",n.selectedCounter()," selected"))},dependencies:[pt,Y,Nt,Q,ce,dt,de,ge,X,kt],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.filter-label[_ngcontent-%COMP%]{color:#7189a7;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}"]})}return t})();var js=t=>({"mat-check-disabled":t});function Gs(t,o){if(t&1){let e=I();l(0,"button",8),C("click",function(){M(e);let n=u();return N(n.clearAll())}),c(1," Clear all "),a()}if(t&2){let e=u();m("disabled",e.productJourneyForm.disabled)}}function Us(t,o){if(t&1){let e=I();l(0,"button",8),C("click",function(){M(e);let n=u();return N(n.selectAll())}),c(1," Select all "),a()}if(t&2){let e=u();m("disabled",e.productJourneyForm.disabled)}}function zs(t,o){if(t&1&&(l(0,"mat-checkbox",9),c(1),a()),t&2){let e=u().$implicit,i=u();m("formControlName",e)("ngClass",he(3,js,i.disabled)),s(),E(" ",e==="UNKNOWN"?i.UNKNOWN_PRODUCT_JOURNEY_LABEL:e," ")}}function Hs(t,o){if(t&1&&g(0,zs,2,5,"mat-checkbox",9),t&2){let e=o.$implicit,i=o.$index,n=u();h(i<n.MAX_ITEMS_SHORT_VIEW||n.productJourneyForm.controls[e].touched||n.productJourneyForm.controls[e].value?0:-1)}}function Js(t,o){t&1&&p(0,"div",7)}function qs(t,o){if(t&1){let e=I();l(0,"button",8),C("click",function(){M(e);let n=u();return N(n.popupView())}),c(1," Edit more filter "),a()}if(t&2){let e=u();m("disabled",e.productJourneyForm.disabled)}}var ra=(()=>{class t{matDialog=f(Me);disabled=!1;onTouch=Ee;onChange=Ee;MAX_ITEMS_SHORT_VIEW=5;productJourneyForm=new ue({});UNKNOWN_PRODUCT_JOURNEY_LABEL=Zn;destroyRef=f(L);releaseNotes;writtenValueBuffer=new Set;ngOnInit(){this.productJourneyForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.onChange(t.formGroupValueToSelectionArray(e)),this.onTouch()})}static formGroupValueToSelectionArray(e){return Object.entries(e).filter(i=>i[1]).map(([i])=>i)}ngOnChanges(){for(let e in this.productJourneyForm.controls)this.productJourneyForm.removeControl(e);for(let e of this.getProductJourneysFromReleaseNotes()){let i=!1;this.writtenValueBuffer.has(e)&&(i=!0,this.writtenValueBuffer.delete(e)),this.productJourneyForm.addControl(e,new x(i))}}writeValue(e){if(this.writtenValueBuffer.clear(),Pt(e)){for(let i in this.productJourneyForm.controls)this.productJourneyForm.controls[i]?.patchValue(!1);e.forEach(i=>
10{if(typeof i=="string"){let n=this.productJourneyForm.controls[i];n?n.patchValue(!0):this.writtenValueBuffer.add(i)}})}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}setDisabledState(e){this.disabled=e,e?this.productJourneyForm.disable():this.productJourneyForm.enable()}areAllOptionsSelected(){return Object.values(this.productJourneyForm.controls).reduce((e,i)=>e&&i.value,!0)}areAllOptionsAreVisible(){return Object.values(this.productJourneyForm.controls).reduce((e,i)=>e&&i.touched,!0)}clearAll(){Object.values(this.productJourneyForm.controls).forEach(e=>{e.patchValue(!1),e.markAsUntouched()})}selectAll(){Object.values(this.productJourneyForm.controls).forEach(e=>{e.patchValue(!0),e.markAsTouched()})}popupView(){this.matDialog.open(oa,{data:{productJourneys:this.getProductJourneysFromReleaseNotes(),currentSelection:t.formGroupValueToSelectionArray(this.productJourneyForm.value)},minWidth:"50ch",disableClose:!0}).afterClosed().pipe(v(this.destroyRef)).subscribe(i=>{this.writeValue(i),this.resetCheckboxesTouchedStatus()})}getProductJourneysFromReleaseNotes(){let e=this.releaseNotes.reduce((i,n)=>i.add(n.productJourney||"Others"),new Set);return Array.from(e).sort()}Object=Object;resetCheckboxesTouchedStatus(){for(let e of Object.values(this.productJourneyForm.controls))e.value?e.markAsTouched():e.markAsUntouched()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-product-journey"]],inputs:{releaseNotes:"releaseNotes"},features:[Be([{provide:ct,useExisting:Ct(()=>t),multi:!0}]),Tt],decls:14,vars:4,consts:[[3,"formGroup"],[1,"option-container"],[1,"flex","flex-col"],[1,"flex"],[1,"filter-label","mt-4","text-subheader-bold","uppercase","grow"],[1,"text-subheader-bold","mt-4","cursor-pointer","text-primary","underline",3,"disabled"],[1,"fadeout-container","flex","flex-col"],[1,"fadeout-overlay"],[1,"text-subheader-bold","mt-4","cursor-pointer","text-primary","underline",3,"click","disabled"],["color","primary",3,"formControlName","ngClass"]],template:function(i,n){i&1&&(l(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5," Product group "),a(),g(6,Gs,2,1,"button",5)(7,Us,2,1,"button",5),a(),l(8,"div",6),ve(9,Hs,1,1,null,null,Ke),g(11,Js,1,0,"div",7),a(),l(12,"div"),g(13,qs,2,1,"button",5),a()()()()),i&2&&(m("formGroup",n.productJourneyForm),s(6),h(n.areAllOptionsSelected()?6:7),s(3),Se(n.Object.keys(n.productJourneyForm.controls)),s(2),h(n.areAllOptionsAreVisible()?-1:11),s(2),h(n.Object.keys(n.productJourneyForm.controls).length>n.MAX_ITEMS_SHORT_VIEW?13:-1))},dependencies:[re,Ce,pt,Y,fe,Q,ce,de,ge],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.filter-label[_ngcontent-%COMP%]{color:#7189a7;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}.fadeout-container[_ngcontent-%COMP%]{position:relative}.fadeout-overlay[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;height:40px;background:linear-gradient(to bottom,#0000,#fff);pointer-events:none}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}"]})}return t})();var aa=t=>({"mat-check-disabled":t});function Ws(t,o){if(t&1){let e=I();l(0,"button",7),C("click",function(){M(e);let n=u();return N(n.clearAll())}),c(1," Clear all "),a()}if(t&2){let e=u();m("disabled",e.releaseNoteStatusForm.disabled)}}function Ks(t,o){if(t&1){let e=I();l(0,"button",7),C("click",function(){M(e);let n=u();return N(n.selectAll())}),c(1," Select all "),a()}if(t&2){let e=u();m("disabled",e.releaseNoteStatusForm.disabled)}}var la=(()=>{class t{releaseNoteStatuses=He;disabled=!1;onTouch=Ee;onChange=Ee;releaseNoteStatusForm=new ue({[He.approved]:new x(!1),[He.pending]:new x(!1)});destroyRef=f(L);ngOnInit(){this.releaseNoteStatusForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.onChange(Object.entries(e).filter(i=>i[1]).map(([i])=>i)),this.onTouch()})}writeValue(e){Pt(e)&&(this.releaseNoteStatusForm.patchValue({[He.approved]:!1,[He.pending]:!1}),e.forEach(i=>
10{typeof i=="string"&&this.releaseNoteStatusForm.controls[i]?.setValue(!0)}))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}setDisabledState(e){this.disabled=e,e?this.releaseNoteStatusForm.disable():this.releaseNoteStatusForm.enable()}areAllOptionsSelected(){return Object.values(this.releaseNoteStatusForm.controls).reduce((e,i)=>e&&i.value,!0)}clearAll(){Object.values(this.releaseNoteStatusForm.controls).forEach(e=>e.patchValue(!1))}selectAll(){Object.values(this.releaseNoteStatusForm.controls).forEach(e=>e.patchValue(!0))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-release-note-status"]],features:[Be([{provide:ct,useExisting:Ct(()=>t),multi:!0}])],decls:12,vars:10,consts:[[3,"formGroup"],[1,"option-container"],[1,"flex","flex-col"],[1,"flex"],[1,"filter-label","mt-4","text-subheader-bold","uppercase","grow"],[1,"text-subheader-bold","mt-4","cursor-pointer","text-primary","underline",3,"disabled"],["color","primary",3,"formControlName","ngClass"],[1,"text-subheader-bold","mt-4","cursor-pointer","text-primary","underline",3,"click","disabled"]],template:function(i,n){i&1&&(l(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),c(5,"Status"),a(),g(6,Ws,2,1,"button",5)(7,Ks,2,1,"button",5),a(),l(8,"mat-checkbox",6),c(9," Approved "),a(),l(10,"mat-checkbox",6),c(11," Pending "),a()()()()),i&2&&(m("formGroup",n.releaseNoteStatusForm),s(6),h(n.areAllOptionsSelected()?6:7),s(2),m("formControlName",n.releaseNoteStatuses.approved)("ngClass",he(6,aa,n.disabled)),s(2),m("formControlName",n.releaseNoteStatuses.pending)("ngClass",he(8,aa,n.disabled)))},dependencies:[re,Ce,pt,Y,fe,Q,ce,de,ge],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.filter-label[_ngcontent-%COMP%]{color:#7189a7;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}"]})}return t})();function Qs(t,o){if(t&1&&(ae(0,"span"),c(1),oe()),t&2){let e=u();s(),E("",e.filteredCollection.length," of")}}var sa=(()=>{class t{disabled=!1;initialCollection=[];filteredCollection=[];static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-results-count"]],inputs:{disabled:"disabled",initialCollection:"initialCollection",filteredCollection:"filteredCollection"},decls:3,vars:4,consts:[[1,"mt-4","text-subtitle"]],template:function(i,n){i&1&&(ae(0,"div",0),g(1,Qs,2,1,"span"),c(2),oe()),i&2&&(lt("invisible",n.initialCollection.length===0),s(),h(n.filteredCollection.length!==n.initialCollection.length?1:-1),s(),E(" ",n.initialCollection.length,` results available
11`))},encapsulation:2})}return t})();var ca=(()=>{class t{destroyRef=f(L);onTouch=Ee;onChange=Ee;textSearchControl=new x("");constructor(){this.textSearchControl.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.onChange(e||""),this.onTouch()})}writeValue(e){this.textSearchControl.setValue(e||"",{emitEvent:!1})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouch=e}setDisabledState(e){e?this.textSearchControl.disable({emitEvent:!1}):this.textSearchControl.enable({emitEvent:!1})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-text-search"]],features:[Be([{provide:ct,useExisting:Ct(()=>t),multi:!0}])],decls:2,vars:2,consts:[["bbioTooltip","Displays all release notes that include this string"],[3,"formControl","placeholder"]],template:function(i,n){i&1&&(l(0,"div",0),p(1,"bbio-search-box",1),a()),i&2&&(s(),m("formControl",n.textSearchControl)("placeholder","Search"))},dependencies:[br,mt,Y,Q,dt],styles:[".list-style-unordered{margin-bottom:1em!important;list-style-type:disc;white-space:initial}  .list-style-unordered ul{list-style-type:circle}  .list-style-unordered ul ul{list-style-type:square}  .list-style-unordered li{margin-left:1.6em}  .list-style-ordered{list-style:decimal;white-space:initial}  .list-style-ordered li{margin-left:1em}  .em-italic{font-style:italic}  p:not(.modal-title p).release-advisor-paragraph{margin-bottom:.5em!important}  p:not(.modal-title p).release-advisor-paragraph.no-margin-before-list{margin-bottom:.2em!important}.filter-label[_ngcontent-%COMP%]{color:#7189a7;font-weight:700}button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}  .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important}  .mdc-checkbox__checkmark{padding:1px}  .mat-check-disabled .mdc-checkbox__background{border:1px solid rgb(204,213,223)!important;background-color:#f3f6f9!important}  .mat-check-disabled .mdc-checkbox__checkmark{padding:1px;color:#7189a7!important}  .mat-mdc-table{background-color:#fff!important}"]})}return t})();var Ys=["input"],Xs=["formField"],Zs=["*"],Co=class{source;value;constructor(o,e){this.source=o,this.value=e}};var ec=new xi("MatRadioGroup"),tc=new xi("mat-radio-default-options",{providedIn:"root",factory:ic});function ic(){return{color:"accent",disabledInteractive:!1}}var nc=(()=>{class t{_elementRef=f(Ti);_changeDetector=f(Bi);_focusMonitor=f(Mn);
11_radioDispatcher=f(yr);_defaultOptions=f(tc,{optional:!0});_ngZone=f(Lo);_renderer=f(jo);_uniqueId=f(Pn).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new De;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=En();_injector=f(Vi);constructor(){f(Nn).load(Vn);let e=f(ec,{optional:!0}),i=f(new Yo("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=li(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Co(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let n=this._inputElement?.nativeElement;n&&(n.setAttribute("tabindex",i+""),this._previousTabIndex=i,$o(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===n&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===n&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,n){if(i&1&&(Re(Ys,5),Re(Xs,7,Ti)),i&2){let r;Ie(r=ke())&&(n._inputElement=r.first),Ie(r=ke())&&(n._rippleTrigger=r.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,n){i&1&&C("focus",function(){return n._inputElement.nativeElement.focus()}),i&2&&(We("id",n.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),lt("mat-primary",n.color==="primary")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("mat-mdc-radio-checked",n.checked)("mat-mdc-radio-disabled",n.disabled)("mat-mdc-radio-disabled-interactive",n.disabledInteractive)("_mat-animation-noopable",n._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",Qe],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:li(e)],checked:[2,"checked","checked",Qe],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",Qe],required:[2,"required","required",Qe],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Qe]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Zs,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner
11-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,n){if(i&1){let r=I();Tn(),l(0,"div",2,0)(2,"div",3)(3,"div",4),C("click",function(_){return M(r),N(n._onTouchTargetClick(_))}),a(),l(4,"input",5,1),C("change",function(_){return M(r),N(n._onInputInteraction(_))}),a(),l(6,"div",6),p(7,"div",7)(8,"div",8),a(),l(9,"div",9),p(10,"div",10),a()(),l(11,"label",11),Dn(12),a()()}i&2&&(m("labelPosition",n.labelPosition),s(2),lt("mdc-radio--disabled",n.disabled),s(2),m("id",n.inputId)("checked",n.checked)("disabled",n.disabled&&!n.disabledInteractive)("required",n.required),We("name",n.name)("value",n.value)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("aria-disabled",n.disabled&&n.disabledInteractive?"true":null),s(5),m("matRippleTrigger",n._rippleTrigger.nativeElement)("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",!0),s(2),m("for",n.inputId))},dependencies:[An,_r],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner
11-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>
11.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
12`],encapsulation:2,changeDetection:0})}return t})(),da=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=oi({type:t});static \u0275inj=ni({imports:[ln,gr,nc,ln]})}return t})();function oc(t,o){if(t&1&&p(0,"bb-io-filter-release-note-status",5),t&2){let e=u();m("formControl",e.filterForm.controls.status)}}var Zi=(()=>{class t{isReleaseAdvisor;set disabled(e){e?this.filterForm.disable():this.filterForm.enable()}initialCollection=[];filteredCollection=[];filterSubmit=new De;destroyRef=f(L);fb=f($i);activatedRoute=f(Mt);router=f(Ue);$analyticsService=f(gi);filterForm=this.fb.group({textSearch:new x(""),changeType:new x([]),breaking:new x([]),status:new x([]),productJourney:new x([])});ngOnInit(){this.updateFormValuesFromParams(),this.handleFilterFormChanges(),this.subscribeToRouterParamChanges(),this.listenToFormChanges()}clearFilters(){this.filterForm.patchValue({textSearch:"",changeType:[],breaking:[],status:[],productJourney:[]}),this.filterForm.markAsUntouched()}canClearFilters(){return Object.values(this.filterForm.controls).reduce((e,i)=>e&&(i.value||[]).length===0,!0)}
12handleFilterFormChanges(){this.filterForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{if(this.filterForm.disabled)return;let i={textSearch:e.textSearch??"",changeType:e.changeType||[],breaking:e.breaking||[],status:e.status||[],productJourney:e.productJourney||[]};this.filterSubmit.emit(i),this.updateQueryParamsWithFormValues(i)})}subscribeToRouterParamChanges(){this.activatedRoute.queryParams.pipe(v(this.destroyRef)).subscribe(e=>{this.patchFormFromQueryParams(e)})}updateFormValuesFromParams(){let e=this.activatedRoute.snapshot.queryParams;this.patchFormFromQueryParams(e)}patchFormFromQueryParams(e){this.filterForm.patchValue({changeType:e.changeType?e.changeType?.split(","):[],breaking:e.isBreaking?e.isBreaking?.split(","):[],textSearch:e.textSearch||"",productJourney:e.productJourney?e.productJourney?.split(","):[],status:e.status?.split(",")??[]})}updateQueryParamsWithFormValues({changeType:e,breaking:i,textSearch:n,productJourney:r,status:d}){let{productTitle:_}=this.activatedRoute.snapshot.queryParams;if(_){let T=P=>P.length>0?P.join(","):null;this.router.navigate([],{queryParams:{isBreaking:T(i),changeType:T(e),textSearch:n||null,productJourney:T(r),status:T(d)},queryParamsHandling:"merge"})}}listenToFormChanges(){this.filterForm.valueChanges.pipe(ko(),Io(800),v(this.destroyRef)).subscribe(e=>{this.filterForm.disabled||!e||this.logFilterSelectionEvent({textSearch:e.textSearch??"",changeType:e.changeType||[],breaking:e.breaking||[],status:e.status||[],productJourney:e.productJourney||[]})})}logFilterSelectionEvent(e){let i={category:"filter_selection",action:"submit",label:"Filter selected by user",metaData:e};this.$analyticsService.logEvent(i)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-filter-section"]],inputs:{isReleaseAdvisor:"isReleaseAdvisor",disabled:"disabled",initialCollection:"initialCollection",filteredCollection:"filteredCollection"},outputs:{filterSubmit:"filterSubmit"},decls:13,vars:10,consts:[[1,"mr-2"],[1,"border-slate-300","border-b","border-solid","flex","mb-2"],[1,"text-highlight-bold","text-primary-darker","pb-2","grow"],[1,"text-subheader-bold","mt-4","pb-2","cursor-pointer","text-primary","underline",3,"click","disabled"],[3,"formGroup"],[3,"formControl"],[3,"initialCollection","filteredCollection"],[3,"formControl","releaseNotes"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),c(3,"Filter"),a(),l(4,"button",3),C("click",function(){return n.clearFilters()}),c(5," Clear filters "),a()(),l(6,"form",4),p(7,"bb-io-filter-text-search",5)(8,"bb-io-filter-results-count",6)(9,"bb-io-filter-change-type",5)(10,"bb-io-filter-breaking-change",5),g(11,oc,1,1,"bb-io-filter-release-note-status",5),p(12,"bb-io-filter-product-journey",7),a()()),i&2&&(s(4),m("disabled",n.canClearFilters()),s(2),m("formGroup",n.filterForm),s(),m("formControl",n.filterForm.controls.textSearch),s(),m("initialCollection",n.initialCollection)("filteredCollection",n.filteredCollection),s(),m("formControl",n.filterForm.controls.changeType),s(),m("formControl",n.filterForm.controls.breaking),s(),h(n.isReleaseAdvisor?-1:11),s(),m("formControl",n.filterForm.controls.productJourney)("releaseNotes",n.initialCollection))},dependencies:[ji,da,Y,fe,Q,ce,dt,de,na,la,ia,ca,sa,ra],styles:["button[disabled][_ngcontent-%COMP%]{color:#7189a7!important;cursor:initial!important}"]})}return t})();var rc=(t,o)=>[t,"icon","text-2xl",o];function ac(t,o){if(t&1&&p(0,"bbio-notification-block",5),t&2){let e=u();m("text",e.notificationBlock.configuration.text)("variant",e.notificationBlock.configuration.variant)("size",e.notificationBlock.configuration.size)}}var hi=(()=>{class t{placeholderInput={heading:"",content:"",icon:{iconName:""}};notificationBlock={showNotificationBlock:!1,configuration:{text:"",size:"large",variant:"info"}};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-placeholder-container"]],inputs:{placeholderInput:"placeholderInput",notificationBlock:"notificationBlock"},decls:8,vars:7,consts:[[1,"placeholder-container","flex","gap-2"],[3,"ngClass"],[1,"text-h3"],[1,"placeholder-content"],[1,"m-1"],[3,"text","variant","size"]],template:function(i,n){i&1&&(l(0,"div",0),p(1,"i",1),l(2,"div",2),c(3),a(),l(4,"div",3),c(5),a(),l(6,"div",4),g(7,ac,1,3,"bbio-notification-block",5),a()()),i&2&&(s(),m("ngClass",ai(4,rc,"icon-"+(n.placeholderInput==null||n.placeholderInput.icon==null?null:n.placeholderInput.icon.iconName),"text-"+(n.placeholderInput==null||n.placeholderInput.icon==null?null:n.placeholderInput.icon.iconColor))),s(2),E(" ",n.placeholderInput==null?null:n.placeholderInput.heading," "),s(2),E(" ",n.placeholderInput==null?null:n.placeholderInput.content," "),s(2),h(n.notificationBlock&&(n.notificationBlock!=null&&n.notificationBlock.showNotificationBlock)?7:-1))},dependencies:[mr,re,Ce,ze],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.placeholder-content[_ngcontent-%COMP%]{width:40%;text-align:center}.icon[_ngcontent-%COMP%]{color:#295eff}.placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40vh}"]})}return t})();var ma=(()=>
12{class t{transform(e){if(e?.invalid&&(e.dirty||e.touched)){if(e?.hasError("required"))return"This field is required.";if(e?.hasError("minlength"))return`The minimum length for this field is ${e.errors?.minlength.requiredLength}`;if(e?.hasError("maxlength"))return`The maximum length for this field is ${e.errors?.maxlength.requiredLength}`;if(e?.hasError("version"))return"The version is not in the correct format. Please use semver or calver.";if(e?.hasError("url"))return"The URL is not in the correct format"}return""}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Dt({name:"errorCheck",type:t,pure:!0})}return t})();function lc(t,o){t&1&&c(0,"Create")}function sc(t,o){t&1&&c(0,"Edit")}function cc(t,o){if(t&1&&(l(0,"div",16),c(1),y(2,"errorCheck"),a()),t&2){let e=u();s(),E(" ",$(2,1,e.componentSemver)," ")}}function dc(t,o){if(t&1&&(l(0,"div"),c(1),y(2,"errorCheck"),a()),t&2){let e=u();s(),E(" ",$(2,1,e.changeTypeName)," ")}}function mc(t,o){if(t&1&&(l(0,"div",16),c(1),y(2,"errorCheck"),a()),t&2){let e=u();s(),E(" ",$(2,1,e.title)," ")}}function pc(t,o){if(t&1&&(l(0,"div",16),c(1),y(2,"errorCheck"),a()),t&2){let e=u();s(),E(" ",$(2,1,e.description)," ")}}function uc(t,o){if(t&1&&(l(0,"div",16),c(1),y(2,"errorCheck"),a()),t&2){let e=u();s(),E(" ",$(2,1,e.readMoreURL)," ")}}function fc(t,o){if(t&1&&(l(0,"div",16),c(1),y(2,"errorCheck"),a()),t&2){let e=u();s(),E(" ",$(2,1,e.readMoreText)," ")}}function gc(t,o){t&1&&(l(0,"bbio-notification-block",30),p(1,"i",33),c(2," Create a MAINT ticket to add a new Product group. "),a())}function hc(t,o){if(t&1&&p(0,"bbio-notification-block",31),t&2){let e=u();m("text",e.notificationText)}}var Ni=(()=>{class t{fb=f($i);releaseAdvisorService=f(Ae);releaseNoteData=f(Oe);dialogRef=f(Ve);createReleaseAdvisorForm=new ue({});changeTypeOptions=[...Ar.filter(e=>e.value!==Z.known_issue)];destroyRef=f(L);notificationText="";showLoader=!0;availableComponentIdsPerDiscipline;componentIdsOptions=[];productJourneyOptions=[];disciplineOptions=[...zn];productJourneyList=[];UNKNOWN_PRODUCT_JOURNEY="UNKNOWN";constructor(){this.createReleaseAdvisorForm=this.fb.group({discipline:[this.releaseNoteData.isCreate?this.releaseNoteData.discipline:this.releaseNoteData.releaseData.discipline,pe.required],componentId:["",pe.required],componentSemver:["",[pe.required,Jn()]],productJourney:[""],changeTypeName:["",pe.required],isBreakingChange:[!1],title:["",[pe.required,pe.minLength(8),pe.maxLength(160)]],description:["",[pe.maxLength(2500)]],readMoreURL:["",[qn()]],readMoreText:[""]})}ngOnInit(){this.createReleaseAdvisorForm.controls.componentId.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{if(!e){this.createReleaseAdvisorForm.controls.productJourney.patchValue("");return}this.findAndPatchProductJourney(e)}),this.releaseAdvisorService.getAvailableComponentIds().pipe(v(this.destroyRef)).subscribe(e=>{this.availableComponentIdsPerDiscipline=e;let i=this.createReleaseAdvisorForm.controls.discipline.value;this.componentIdsOptions=this.componentIdsOptionsForDiscipline(i),this.setupDisciplineChangeSubscription(),this.setFormData(),this.showLoader=!1}),this.initializeProductJourney()}setupDisciplineChangeSubscription(){this.createReleaseAdvisorForm.controls.discipline.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{let i=this.createReleaseAdvisorForm.controls.componentId.value;this.componentIdsOptions=this.componentIdsOptionsForDiscipline(e),this.componentIdsOptions.some(r=>r.value===i)||(this.createReleaseAdvisorForm.controls.componentId.patchValue(null),this.createReleaseAdvisorForm.controls.productJourney.patchValue(""))})}componentIdsOptionsForDiscipline(e){return(this.availableComponentIdsPerDiscipline?.[e||""]||[]).map(i=>({value:i,label:i}))}createReleaseNote(){if(this.createReleaseAdvisorForm.valid){let e={discipline:this.createReleaseAdvisorForm.controls.discipline.value||"",componentId:this.createReleaseAdvisorForm.controls.componentId.value||"",componentSemver:this.createReleaseAdvisorForm.controls.componentSemver.value||"",productJourney:this.createReleaseAdvisorForm.controls.productJourney.value||"",changeTypeName:this.createReleaseAdvisorForm.controls.changeTypeName.value||"",isBreakingChange:!!this.createReleaseAdvisorForm.controls.isBreakingChange.value,title:this.createReleaseAdvisorForm.controls.title.value||"",description:this.createReleaseAdvisorForm.controls.description.value||"",readMoreURL:this.createReleaseAdvisorForm.controls.readMoreURL.value||"",readMoreText:this.createReleaseAdvisorForm.controls.readMoreText.value||""};this.releaseNoteData.isCreate?this.releaseAdvisorService.createReleaseNote(O({},e)).pipe(v(this.destroyRef)).subscribe({next:i=>{i&&this.dialogRef.close({action:"refresh",releaseNote:this.createReleaseAdvisorForm.value})},error:i=>{this.notificationText=`Unable to create Release Note. ${i?.error?.message||"Unknown error"}`,console.error("Error Creating Release note",i)}}):this.releaseAdvisorService.editReleaseNote(ne(O({},e),{id:this.releaseNoteData.releaseData.id})).pipe(v(this.destroyRef)).subscribe({next:i=>{i&&this.dialogRef.close({action:"refresh",releaseNote:this.createReleaseAdvisorForm.value})},error:i=>{this.notificationText=`Unable to edit Release Note: ${i?.error?.message||"Unknown error"}`,console.error(`Error Editing Release note${i}`)}})}}get componentId(){return this.createReleaseAdvisorForm.get("componentId")}get readMoreText(){return this.createReleaseAdvisorForm.get("readMoreText")}get componentSemver(){return this.createReleaseAdvisorForm.get("componentSemver")}get changeTypeName(){return this.createReleaseAdvisorForm.get("changeTypeName")}get productJourney(){return this.createReleaseAdvisorForm.get("productJourney")}get isBreakingChange(){return this.createReleaseAdvisorForm.get("isBreakingChange")}get readMoreURL(){return this.createReleaseAdvisorForm.get("readMoreURL")}get title(){return this.createReleaseAdvisorForm.get("title")}get description(){return this.createReleaseAdvisorForm.get("description")}getFormControl(e){return this.createReleaseAdvisorForm.get(e)}setFormData(){if(this.releaseNoteData.isCreate){let e=this.releaseNoteData.softw
12areComponent;e&&this.createReleaseAdvisorForm.controls.componentId.setValue(e)}else{let e={discipline:this.releaseNoteData.releaseData.discipline,componentId:this.releaseNoteData.releaseData.componentId,componentSemver:this.releaseNoteData.releaseData.componentSemver,changeTypeName:this.releaseNoteData.releaseData.changeType.name,productJourney:this.releaseNoteData.releaseData.productJourney,isBreakingChange:this.releaseNoteData.releaseData.isBreakingChange,title:this.releaseNoteData.releaseData.title,description:this.releaseNoteData.releaseData.description,readMoreText:this.releaseNoteData.releaseData.readMoreText,readMoreURL:this.releaseNoteData.releaseData.readMoreURL};Object.entries(e).forEach(([i,n])=>{let r=this.getFormControl(i);r&&(r.setValue(n),r.markAsTouched())})}}findAndPatchProductJourney(e){let i=this.productJourneyList.find(n=>e.toLowerCase()===n.componentId.toLowerCase());this.createReleaseAdvisorForm.controls.productJourney.patchValue(i?.name||this.UNKNOWN_PRODUCT_JOURNEY)}initializeProductJourney(){this.releaseAdvisorService.fetchProductJourney().subscribe(e=>{this.productJourneyList=e;let i=new Set(e.map(n=>n.name));this.productJourneyOptions=[...i].map(n=>({value:n,label:n})).sort((n,r)=>n.label.localeCompare(r.label)),this.productJourneyOptions.push({value:this.UNKNOWN_PRODUCT_JOURNEY,label:this.UNKNOWN_PRODUCT_JOURNEY}),this.componentId?.value&&this.findAndPatchProductJourney(this.componentId.value)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-create-release-note"]],decls:76,vars:19,consts:[["mat-dialog-content","",1,"create-release-note-form"],[1,"flex"],[1,"flex","items-start","gap-12mt-4","grow"],[1,"text-h3"],[1,"flex","justify-end"],["BBioButton-basic","","mat-dialog-close","","color","primary"],[1,"icon","icon-xmark","text-h2"],[3,"formGroup"],[1,"mt-6"],[1,"flex","items-baseline"],[1,"font-bold","w-1/5"],[1,"flex","items-center"],["placeholder","Select discipline","formControlName","discipline",1,"text-field","text-subtitle","w-full",3,"options"],["placeholder","Select software component","formControlName","componentId",1,"text-field","text-subtitle",3,"allowCreateOption","options","disabled"],[1,"flex","items-baseline","sub-gap-12mt-6"],["type","text","placeholder","Enter version","formControlName","componentSemver",1,"text-field","text-subtitle"],[1,"text-danger","text-subtitle"],[1,"product-journey","flex","justify-start","items-center"],[1,"divider","m-6"],[1,"flex","items-baseline","sub-gap-12mt-8"],["formControlName","changeTypeName","placeholder","Select Change type",3,"options","multiple"],["formControlName","isBreakingChange","color","primary",3,"checked"],[1,"flex","items-baseline","sub-gap-12mt-8","mb-4"],[1,"w-4/5"],["type","text","placeholder","Add title","formControlName","title",1,"text-field","text-subtitle"],[1,"flex","items-start","sub-gap-12mt-8"],["placeholder","Add description","name","Description","id","Description","rows","10","formControlName","description",1,"text-field","text-area"],["type","url","placeholder","Add read more URL","formControlName","readMoreURL",1,"text-field","text-subtitle"],["type","text","placeholder","Add read more text","formControlName","readMoreText",1,"text-field","text-subtitle"],["mat-dialog-actions","",1,"mt-4","px-4","flex"],["variant","warning","text","Product group is not available in the list. Please create a MAINT ticket to add a new Product group."],["variant","danger",1,"align-right",3,"text"],["BBioButton","",1,"align-left",3,"click","disabled"],[1,"text-lg","icon-circle-arrow-right"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),g(4,lc,1,0)(5,sc,1,0),c(6," Release Note "),a()(),l(7,"div",4)(8,"button",5),p(9,"i",6),a()()(),l(10,"form",7)(11,"div",8)(12,"div",9)(13,"div",10),c(14,"Discipline*"),a(),l(15,"div")(16,"div",11),p(17,"bb-io-typeahead",12),a()()(),l(18,"div",9)(19,"div",10),c(20,"Software component*"),a(),l(21,"div")(22,"div",11),p(23,"bb-io-typeahead",13),a()()(),l(24,"div",14)(25,"div",10),c(26,"Software version*"),a(),l(27,"div"),p(28,"input",15),g(29,cc,3,3,"div",16),a()(),l(30,"div",14)(31,"div",10),c(32,"Product group*"),a(),l(33,"div",11)(34,"span",17),c(35),a()()()(),p(36,"div",18),l(37,"div",19)(38,"div",10),c(39,"Change type*"),a(),l(40,"div"),p(41,"bbio-select",20),g(42,dc,3,3,"div"),a(),l(43,"div")(44,"div")(45,"mat-checkbox",21),c(46," Breaking change "),a()()()(),l(47,"div",22)(48,"div",10),c(49,"Title*"),a(),l(50,"div",23),p(51,"input",24),g(52,mc,3,3,"div",16),a()(),l(53,"div",25)(54,"div",10),c(55,"Description"),a(),l(56,"div",23),p(57,"textarea",26),g(58,pc,3,3,"div",16),a()(),l(59,"div",19)(60,"div",10),c(61,"Read more URL"),a(),l(62,"div",23),p(63,"input",27),g(64,uc,3,3,"div",16),a()(),l(65,"div",19)(66,"div",10),c(67,"Read more text"),a(),l(68,"div",23),p(69,"input",28),g(70,fc,3,3,"div",16),a()()()(),l(71,"div",29),g(72,gc,3,0,"bbio-notification-block",30),g(73,hc,1,1,"bbio-notification-block",31),l(74,"button",32),C("click",function(){return n.createReleaseNote()}),c(75," Save "),a()()),i&2&&(s(4),h(n.releaseNoteData.isCreate?4:5),s(6),m("formGroup",n.createReleaseAdvisorForm),s(7),m("options",n.disciplineOptions),s(6),m("allowCreateOption",!0)("options",n.componentIdsOptions)("disabled",!n.createReleaseAdvisorForm.controls.discipline.value),s(6),h(n.componentSemver!=null&&n.componentSemver.invalid&&(n.componentSemver!=null&&n.componentSemver.dirty||n.componentSemver!=null&&n.componentSemver.touched)?29:-1),s(6),E(" ",n.createReleaseAdvisorForm.controls.productJourney.value||"-"," "),s(6),m("options",n.changeTypeOptions)("multiple",!1),s(),h(n.changeTypeName!=null&&n.changeTypeName.invali
12d&&(n.changeTypeName!=null&&n.changeTypeName.dirty||n.changeTypeName!=null&&n.changeTypeName.touched)?42:-1),s(3),m("checked",n.createReleaseAdvisorForm.controls.isBreakingChange.value),s(7),h(n.title!=null&&n.title.invalid&&(n.title!=null&&n.title.dirty||n.title!=null&&n.title.touched)?52:-1),s(6),h(n.description!=null&&n.description.invalid&&(n.description!=null&&n.description.dirty||n.description!=null&&n.description.touched)?58:-1),s(6),h(n.readMoreURL!=null&&n.readMoreURL.invalid&&(n.readMoreURL!=null&&n.readMoreURL.dirty||n.readMoreURL!=null&&n.readMoreURL.touched)?64:-1),s(6),h(n.readMoreText!=null&&n.readMoreText.invalid&&(n.readMoreText!=null&&n.readMoreText.dirty||n.readMoreText!=null&&n.readMoreText.touched)?70:-1),s(2),h(n.createReleaseAdvisorForm.controls.productJourney.value===n.UNKNOWN_PRODUCT_JOURNEY&&!n.notificationText?72:-1),s(),h(n.notificationText?73:-1),s(),m("disabled",!n.createReleaseAdvisorForm.valid))},dependencies:[Y,fe,Nt,Q,ce,de,ge,it,kt,Gi,ci,si,ji,pt,X,ze,fi,ma],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.column-gap[_ngcontent-%COMP%]{gap:3rem}.sub-column-gap[_ngcontent-%COMP%]{gap:1rem}.text-field[_ngcontent-%COMP%]{width:100%;padding:4px 0;padding:.5rem;transition:border-color .2s;border:0;border-bottom:1px solid rgb(163,178,194);outline:0;background:transparent;color:#3a495d}.text-field[_ngcontent-%COMP%]::placeholder{color:#3a495d}.text-field[_ngcontent-%COMP%]:focus{border-width:2px;border-color:#295eff}.text-area[_ngcontent-%COMP%]{padding:.75rem;border:1px solid rgb(163,178,194)}.mdc-dialog__actions[_ngcontent-%COMP%]{padding:1rem}input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-bottom:2px solid rgb(191,35,16)}input[_ngcontent-%COMP%]:disabled{background:#f3f6f9}textarea.ng-invalid.ng-touched[_ngcontent-%COMP%]{border:2px solid rgb(191,35,16)}.align-right[_ngcontent-%COMP%]{margin-right:auto}.align-left[_ngcontent-%COMP%]{margin-left:auto}.notification-block[_ngcontent-%COMP%]{height:auto}.product-journey[_ngcontent-%COMP%]{min-width:10vw;height:20px;margin:.4rem 0 0 .4rem;padding:1.2rem;border:1px solid rgb(163,178,194);background-color:#f3f6f9}.divider[_ngcontent-%COMP%]{height:1px;background:#e1e8ef}"]})}return t})();function _c(t,o){if(t&1&&p(0,"bbio-notification-block",7),t&2){let e=u();m("text",e.text)}}var en=(()=>{class t{releaseNoteData=f(Oe);dialogRef=f(Ve);releaseAdvisorService=f(Ae);notificationText="";destroyRef=f(L);text=`${this.releaseNoteData.softwareComponent} : ${this.releaseNoteData.releaseNoteTitle}`;deleteReleaseNote(){this.releaseAdvisorService.deleteReleaseNote(this.releaseNoteData.releaseNoteId).pipe(v(this.destroyRef)).subscribe({next:e=>{e&&(this.releaseAdvisorService.refreshAvailableComponentIds(),this.dialogRef.close({action:"delete",success:!0,message:`Release note "${this.releaseNoteData.releaseNoteTitle}" deleted successfully.`,data:{softwareComponent:this.releaseNoteData.softwareComponent}}))},error:e=>{this.notificationText="Unable to delete Release Note",console.error("Error Editing Release note"+e)}})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-delete-release-note"]],decls:15,vars:1,consts:[["mat-dialog-content",""],[1,"flex","justify-between","mb-4"],[1,"flex","items-center","text-h3"],[1,"items-start"],["BBioButton-basic","","mat-dialog-close","","color","primary"],[1,"icon","icon-xmark","text-h2"],[1,"text-subtitle","mb-4"],["size","large","variant","danger",1,"mt-4","items-center",3,"text"],["mat-dialog-actions","",1,"flex","justify-end"],["BBioButton","","mat-dialog-close","",1,"mr-4","no-button"],["BBioButton","",3,"click"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),c(3,"Confirm delete"),a(),l(4,"div",3)(5,"button",4),p(6,"i",5),a()()(),l(7,"p",6),c(8,"Are you sure you want to delete this release note?"),a(),g(9,_c,1,1,"bbio-notification-block",7),a(),l(10,"div",8)(11,"button",9),c(12,"Cancel"),a(),l(13,"button",10),C("click",function(){return n.deleteReleaseNote()}),c(14,"Confirm"),a()()),i&2&&(s(9),h(n.text?9:-1))},dependencies:[X,it,kt,Gi,ci,ze],styles:[".mdc-dialog__actions[_ngcontent-%COMP%]{justify-content:end;padding:1rem}.no-button[_ngcontent-%COMP%]{border:1px solid #e0e0e0;background-color:#fff;color:#666!important}"]})}return t})();function bc(t,o){t&1&&p(0,"i",20)}function Cc(t,o){t&1&&p(0,"i",21)}function vc(t,o){t&1&&(l(0,"span",22),p(1,"i",23),c(2," Something went wrong while exporting "),a())}function Sc(t,o){if(t&1){let e=I();l(0,"div",14)(1,"div",15),c(2," Items per page "),a(),l(3,"form",16),p(4,"bbio-select",17),a()(),l(5,"div",18)(6,"button",19),C("click",function(){M(e);let n=u();return N(n.downloadReleaseNotes())}),c(7," Export results "),g(8,bc,1,0,"i",20)(9,Cc,1,0,"i",21),a(),g(10,vc,3,0,"span",22),a()}if(t&2){let e=u();s(3),m("formGroup",e.landingPageFromGroup),s(),m("options",e.pageSizeOptions)("multiple",!1),s(2),m("disabled",e.downloadLoader==="DOWNLOADING"),s(2),h(e.downloadLoader==="DOWNLOADING"?8:9),s(2),h(e.downloadLoader==="ERROR"?10:-1)}}function yc(t,o){t&1&&(l(0,"div",13),p(1,"bbio-spinner"),l(2,"h2",24),c(3,"Results are loading..."),a()())}function xc(t,o){if(t&1&&p(0,"bb-io-placeholder-container",25),t&2){let e=u(2);m("placeholderInput",e.placeHolderData)}}function wc(t,o){if(t&1){let e=I();l(0,"bb-io-release-notes-table",27),C("refresh",function(){M(e);let n=u(2);return N(n.refreshReleaseNotes$.next())})("releaseNoteSelected",function(n){M(e);let r=u(2);return N(r.onReleaseNoteSelected(n))}),a()}if(t&2){let e=u(2);m("dataSource",e.dataSource)("pageSizeSelect",e.landingPageFromGroup.controls.pageSizeSelect)("searchText",e.searchText)("isAdmin",!0)}}function Tc(t,o){if(t&1&&g(0,xc,1,1,"bb-io-placeholder-container",25)(1,wc,1,4,"bb-io-release-notes-table",26),t&2){let e=u();h(e.placeHolderData?0:1)}}var ua=(()=>{class t{activatedRoute=f(Mt);router=f(Ue);destroyRef=f(L);productSelectionState=f(sn);injector=f(Vi);releaseAdvisorService=f(Ae);dialog=f(Me);hasError=!1;refreshReleaseNotes$=new yi;dataSource=new le([]);initDataSource=new le([]);landingPageFromGroup=new ue({pageSizeSelect:new x(50)});pageSizeOptions=[{label:"50",value:50},{label:"100",value:100},{label:"500",value:500},{label:"1000",value:1e3}];showLoader=!1;downloadLoader="IDLE";landingComponentContent=Hn;searchText="";notificationText=`
13    <p class="text-sm font-libre-franklin leading-6">
14      This version of the Release Advisor includes release notes for Retail Banking and Platform from version 2023.02 to 2024.04.
15      If you can't find the release notes for your component or product, please refer to the release notes published on <a
16        target="_blank"
17        href="https://backbase.io/documentation/release-notes/"
18      >
19        backbase.io
20      </a>.
21      An updated set of release notes will be added in future iterations.
22    </p>
23  `;get placeHolderData(){return this.hasError?Ji:this.dataSource.filteredData.length===0?Di:void 0}get versionView(){return this.activatedRoute.snapshot.queryParams[Xr.VERSION_VIEW]??ht.SINGLE_VERSION}onFilterCriteriaChanged(e){let{filterCriteria:i,versionView:n}=e;this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:ne(O({},i),{versionView:n}),queryParamsHandling:"merge"}),this.productSelectionState.filterCriteria.set(i)}downloadReleaseNotes(){let{productTitle:e,discipline:i,sbomId:n,templateType:r,subDomainId:d,fromVersion:_,toVersion:T}=this.productSelectionState.filterCriteria(),P={productTitle:e,subDomainId:d,templateType:r};(r===nt.SBOM||r===nt.SUBSET)&&(P={productTitle:e,subDomainId:d,sbomId:n,templateType:r,discipline:i,tldName:Mi(n),fromVersion:_,toVersion:T}),this.downloadLoader="DOWNLOADING";let ie=this.getRefinedProductQueryParams(P);this.releaseAdvisorService.downloadReleaseNotesV3(ie).pipe(v(this.destroyRef),je(()=>this.downloadLoader="IDLE"),Ze(()=>(this.downloadLoader="ERROR",bt()))).subscribe(K=>{let Fe=mi(this.productSelectionState.filterCriteria()),ye=_&&T?`-${_}-${T}`:"";(0,pa.saveAs)(new Blob([K],{type:"text/csv"}),`Release-notes-${Fe}${ye}.csv`)})}ngOnInit(){this.handleFetchingReleaseNotesOnProductChanged(),this.handleFetchingProducts(),this.refreshReleaseNotes$.subscribe(()=>{this.fetchReleaseNotes()})}applyFilters(e){let{changeType:i,breaking:n,status:r,productJourney:d}=e;this.applySearch(e.textSearch),this.dataSource.data=this.initDataSource.data.filter(_=>(i.length===0||i.includes(_.changeType.name))&&(n.length===0||n.includes(_.isBreakingChange?ot.breakingChange:ot.nonBreakingChange))&&(r.length===0||r.includes(_.status.name))&&(d.length===0||d.includes(_.productJourney||"Others")))}handleFetchingProducts(){this.showLoader=!0,this.releaseAdvisorService.getProductsForNavigation().pipe(v(this.destroyRef),je(e=>{let i=Jr(e);this.productSelectionState.products.set(i),this.handleRedirectionForNoQueryParam(i)}),bn(()=>this.activatedRoute.queryParams.pipe(_n(e=>Object.keys(e).length>0),wt(1),je(e=>{this.productSelectionState.filterCriteria.set({productTitle:e[A.PRODUCT_TITLE],domain:e[A.DOMAIN],sbomId:e[A.SBOM_ID],subDomainName:e[A.SUBDOMAIN_NAME],subDomainId:e[A.SUBDOMAIN_ID],templateType:e[A.TEMPLATE_TYPE],discipline:e[A.DISCIPLINE],fromVersion:e[A.FROM_VERSION],toVersion:e[A.TO_VERSION]})})))).subscribe({error:e=>this.handleError(e)})}handleFetchingReleaseNotesOnProductChanged(){Sn(this.injector,()=>Rn(this.productSelectionState.filterCriteria)).pipe(Cn(1),v(this.destroyRef),je(()=>{this.resetPage()}),ki(()=>this.fetchReleaseNotesFromAPI())).subscribe({next:e=>this.renderReleaseNotes(e),error:e=>this.handleError(e)})}handleRedirectionForNoQueryParam(e){if(!this.activatedRoute.snapshot.queryParams[A.TEMPLATE_TYPE]){let i=e.filter(d=>d.title===me.PLATFORM).flatMap(d=>d.domains).flatMap(d=>d.subDomains).find(d=>d.title===Gn);if(!i)throw this.showLoader=!1,new Error(`${Gn} not found!`);let n=qi(i.versions??[],"DESC"),r=i.versions?.indexOf(n[0])??0;this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{productTitle:me.PLATFORM,subDomainId:i?.id,subDomainName:i?.title,domain:i?.title,sbomId:i?.sbomId,templateType:i?.type,discipline:i?.discipline,tldName:Mi(i.sbomId),fromVersion:n?.[r+1],toVersion:n?.[r],versionView:ht.SINGLE_VERSION},replaceUrl:!0})}}resetPage(){this.searchText="",this.dataSource=new le([]),this.initDataSource=new le([]),this.hasError=!1}renderReleaseNotes(e){return qe(this,null,function*(){this.dataSource=new le(e),this.initDataSource=new le(e),this.showLoader=!1,this.openReleaseNoteFromQueryParams()})}
23openReleaseNoteFromQueryParams(){if(this.dialog.openDialogs.length>0)return;let e=this.activatedRoute.snapshot.queryParams;if("open"in e){let i=parseInt(e.open,10);if(isNaN(i))return;let n=this.dataSource.data.find(r=>r.id===i);n&&this.openReleaseNote(n)}}handleError(e){console.error("Error fetching release note"+e),this.showLoader=!1,this.hasError=!0}applySearch(e){this.searchText=e,this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator?.firstPage()}getRefinedProductQueryParams(e){return Wn(e,["fromVersion"])}fetchReleaseNotes(){this.resetPage(),this.fetchReleaseNotesFromAPI().pipe(v(this.destroyRef)).subscribe({next:e=>this.renderReleaseNotes(e),error:e=>this.handleError(e)})}onReleaseNoteSelected(e){switch(e.action){case"open":this.openReleaseNote(e.releaseNote);break;case"edit":this.editReleaseNote(e.releaseNote);break;case"delete":this.deleteReleaseNote(e.releaseNote);break}}openReleaseNote(e){let i=this.dialog.open(Yi,{data:{releaseNote:e,releaseNoteIndex:this.dataSource.filteredData.findIndex(n=>n.id===e.id),releaseNoteCollection:this.dataSource.filteredData,isReleaseAdvisor:!1,showProductJourney:!0,showShareButton:!0},width:"70vw",height:"80vh"});this.router.navigate([],{queryParams:{open:e.id},queryParamsHandling:"merge"}),i.afterClosed().pipe(vn(this.activatedRoute.queryParams),v(this.destroyRef)).subscribe(([n,r])=>{if(n)switch(n.action){case"refresh":this.router.navigate([],{queryParams:ne(O({},r),{open:void 0}),queryParamsHandling:"merge"});break;case"edit":this.editReleaseNote(e);break;case"delete":this.deleteReleaseNote(e);break}else this.router.navigate([],{queryParams:ne(O({},r),{open:void 0}),queryParamsHandling:"merge"})})}editReleaseNote(e){this.dialog.open(Ni,{data:{releaseData:e,isCreate:!1},width:"90%",disableClose:!0}).afterClosed().pipe(v(this.destroyRef)).subscribe(n=>{n?.action==="refresh"&&this.refreshReleaseNotes$.next()})}deleteReleaseNote(e){this.dialog.open(en,{data:{releaseNoteId:e.id,softwareComponent:e.componentId,releaseNoteTitle:e.title},width:"50%"}).afterClosed().pipe(v(this.destroyRef)).subscribe(n=>{n.data&&this.refreshReleaseNotes$.next()})}fetchReleaseNotesFromAPI(){this.showLoader=!0;let{productTitle:e,discipline:i,sbomId:n,templateType:r,subDomainId:d,fromVersion:_,toVersion:T}=this.productSelectionState.filterCriteria();if(r===nt.SBOM||r===nt.SUBSET){let P=this.getRefinedProductQueryParams({productTitle:e,subDomainId:d,sbomId:n,templateType:r,discipline:i,tldName:Mi(n),fromVersion:_,toVersion:T});return this.releaseAdvisorService.getReleaseNotesAdmin(P)}return this.releaseAdvisorService.getReleaseNotesAdmin({productTitle:e,subDomainId:d,templateType:r})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-admin-view"]],features:[Be([sn])],decls:20,vars:9,consts:[[1,"bg-light","rounded-br-max","pt-safe","pb-6"],[1,"w-page","mx-auto"],[1,"title","flex","items-center"],[1,"mr-2"],[1,"custom-badge","alpha","uppercase","text-xs"],[1,"flex","mt-2","justify-start","items-center"],["variant","warning",3,"text"],[1,"flex","p-10","gap-x-20","mt-14"],[1,"sidebar"],[3,"filterSubmit","disabled","initialCollection","filteredCollection","isReleaseAdvisor"],[1,"content-area"],[1,"flex","items-center","gap-6"],[3,"filterCriteriaChanged","versionView"],[1,"placeholder-container"],[1,"items","flex","items-center","ml-auto"],[1,"text-subtitle-bold","text-primary-darker","pr-4","uppercase"],[3,"formGroup"],["formControlName","pageSizeSelect","placeholder","Select page size",1,"w-30","max-w-30",3,"options","multiple"],[1,"items","flex","items-center","flex-col"],["BBioButton","",1,"text-subtitle-bold","text-primary-darker","pr-4",3,"click","disabled"],[1,"icon","icon-loader","animate-spin"],[1,"icon","icon-arrow-down-to-bracket"],[1,"text-danger","text-subtitle"],[1,"icon","icon-triangle-exclamation"],[1,"text-h4","text-dark","mt-8"],[3,"placeholderInput"],[3,"dataSource","pageSizeSelect","searchText","isAdmin"],[3,"refresh","releaseNoteSelected","dataSource","pageSizeSelect","searchText","isAdmin"]],template:function(i,n){i&1&&(l(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2"),c(5),a()(),l(6,"div",4),c(7,"Alpha"),a()(),l(8,"div",5),p(9,"bbio-notification-block",6),a()()(),p(10,"bbio-divider"),l(11,"section",7)(12,"div",8)(13,"bb-io-filter-section",9),C("filterSubmit",function(d){return n.applyFilters(d)}),a()(),l(14,"div",10)(15,"div",11)(16,"bb-io-product-selection",12),C("filterCriteriaChanged",function(d){return n.onFilterCriteriaChanged(d)}),a(),g(17,Sc,11,6),a(),g(18,yc,4,0,"div",13)(19,Tc,2,1),a()()),i&2&&(s(5),te(n.landingComponentContent.heading),s(4),m("text",n.notificationText),s(4),m("disabled",n.initDataSource.data.length===0)("initialCollection",n.initDataSource.data)("filteredCollection",n.dataSource.filteredData)("isReleaseAdvisor",!0),s(3),m("versionView",n.versionView),s(),h(n.dataSource.filteredData.length>0&&!n.showLoader?17:-1),s(),h(n.showLoader?18:19))},dependencies:[Et,ze,It,X,si,Zi,Yr,hi,Y,fe,Q,ce,de,ge,ta],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.w-530[_ngcontent-%COMP%]{width:530px}@media(max-width:1128px){.w-530[_ngcontent-%COMP%]{width:100%}}.mt-70[_ngcontent-%COMP%]{margin-top:85px}.pb-120[_ngcontent-%COMP%]{padding-bottom:120px}.content-container[_ngcontent-%COMP%]{padding:5rem}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:15%;overflow-x:hidden;overflow-y:auto;background-color:#fff;gap:2em}.content-area[_ngcontent-%COMP%]{width:85%;min-height:600px;padding-bottom:2em}.center-aligned-box[_ngcontent-%COMP%], .placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40vh}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}"]})}return t})();var So=class{},yo=(()=>{class t{constructor(){this.defaultCSVParserConfig={header:!0,delimiter:",",encoding:"utf8"}}parse(e,i){return i=O(O({},this.defaultCSVParserConfig),i),new Po(r=>{try{let d=null;if(this.isCSVFile(e)){let _=new FileReader;_.readAsText(e,i.encoding),_.onload=()=>{let T=_.result.trim();if(T){let P=this.csvStringToArray(T,i.delimiter),ie=this.getHeaderArray(P);d=this.getDataRecordsArrayFromCSVFile(P,ie.length,i),r.next(d)}else r.next([]);r.complete()},_.onerror=()=>{this.badCSVDataFormatErrorHandler(r)}}else this.notCSVFileErrorHandler(r)}catch{this.unknownCSVParserErrorHandler(r)}})}csvStringToArray(e,i){let n=new RegExp(`(\\${i}
23|\\r?\\n|\\r|^)(?:"((?:\\\\.|""|[^\\\\"])*)"|([^\\${i}"\\r\\n]*))`,"gi"),r=n.exec(e),d=[[]];for(;r;){r[1].length&&r[1]!==i&&d.push([]);let _=r[2]?r[2].replace(new RegExp('[\\\\"](.)',"g"),"$1"):r[3];d[d.length-1].push(_),r=n.exec(e)}return d}getDataRecordsArrayFromCSVFile(e,i,n){let r=[],d=e[0],_=n.header?1:0;for(let T=_;T<e.length;T++){let P=e[T];if(P.length===i&&n.header){let ie={};for(let K=0;K<P.length;K++)P[K]===void 0||P[K]===null?ie[d[K]]="":ie[d[K]]=P[K].trim();r.push(ie)}else r.push(P)}return r}isCSVFile(e){return e.name.toLowerCase().endsWith(".csv")}getHeaderArray(e){let i=e[0],n=[];for(let r of i)n.push(r);return n}notCSVFileErrorHandler(e){let i=this.errorBuilder("NOT_A_CSV_FILE","Selected file is not a csv File Type.",2);e.error(i)}unknownCSVParserErrorHandler(e){let i=this.errorBuilder("UNKNOWN_ERROR","Unknown error. Please refer to official documentation for library usage.",404);e.error(i)}badCSVDataFormatErrorHandler(e){let i=this.errorBuilder("BAD_CSV_DATA_FORMAT","Unable to parse CSV File.",1);e.error(i)}errorBuilder(e,i,n){let r=new So;return r.type=e,r.message=i,r.code=n,r}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fa=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=oi({type:t})}static{this.\u0275inj=ni({providers:[yo]})}}return t})();var ga=(()=>{class t{changeType;label={[Z.fixed]:"Fixed",[Z.feature]:"Feature",[Z.security]:"Security",[Z.dependency]:"Dependency",[Z.deprecated]:"Deprecated",[Z.removed]:"Removed",[Z.known_issue]:"Known issue"};colorClass={[Z.fixed]:"bug-fix",[Z.feature]:"feature",[Z.security]:"security",[Z.dependency]:"dependency",[Z.deprecated]:"deprecated",[Z.removed]:"removed",[Z.known_issue]:"known-issue"};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-change-type-badge"]],inputs:{changeType:"changeType"},decls:1,vars:2,consts:[[1,"custom-badge","text-subheader-bold","uppercase",3,"innerHTML","ngClass"]],template:function(i,n){i&1&&p(0,"div",0),i&2&&m("innerHTML",n.label[n.changeType],U)("ngClass",n.colorClass[n.changeType])},dependencies:[re,Ce],styles:[".custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}"],changeDetection:0})}return t})();var Dc=(t,o)=>({controls:t,controlName:o}),Oc=t=>({controls:t,controlName:"discipline"}),Mc=t=>({controls:t,controlName:"componentId"}),Nc=t=>({controls:t,controlName:"componentSemver"}),Pc=t=>({controls:t,controlName:"changeTypeName"}),Ec=t=>({controls:t,controlName:"isBreakingChange"}),Rc=t=>({controls:t,controlName:"title"}),Ic=t=>({controls:t,controlName:"description"}),kc=t=>({controls:t,controlName:"readMoreURL"});function Vc(t,o){if(t&1&&p(0,"bbio-notification-block",3),t&2){let e=u();m("text",e.errorMessage().message)("variant",e.errorMessage().severity)}}function Ac(t,o){if(t&1&&(l(0,"mat-slide-toggle",4),c(1,"Show rows with errors only "),a()),t&2){let e=u();m("formControl",e.showOnlyErrors)}}function Fc(t,o){t&1&&Ot(0)}function Bc(t,o){t&1&&Ot(0)}function Lc(t,o){t&1&&Ot(0)}function $c(t,o){t&1&&Ot(0)}function jc(t,o){t&1&&Ot(0)}function Gc(t,o){t&1&&Ot(0)}function Uc(t,o){t&1&&Ot(0)}function zc(t,o){if(t&1&&(p(0,"div",16),y(1,"markdown"),y(2,"async")),t&2){let e=u(2).$implicit;m("innerHTML",$(2,3,$(1,1,e.controls.title.value)),U)}}function Hc(t,o){if(t&1&&p(0,"div",17),t&2){let e=u(2).$implicit;m("innerText",e.controls.title.value)}}
23function Jc(t,o){t&1&&Ot(0)}function qc(t,o){if(t&1&&(p(0,"div",16),y(1,"markdown"),y(2,"async")),t&2){let e=u(2).$implicit;m("innerHTML",$(2,3,$(1,1,e.controls.description.value)),U)}}function Wc(t,o){if(t&1&&p(0,"div",17),t&2){let e=u(2).$implicit;m("innerText",e.controls.description.value)}}function Kc(t,o){t&1&&Ot(0)}function Qc(t,o){if(t&1&&(l(0,"tr")(1,"td",12),R(2,Fc,1,0,"ng-container",13),a(),l(3,"td",14)(4,"div"),c(5),a()(),l(6,"td",12),R(7,Bc,1,0,"ng-container",13),a(),l(8,"td",14)(9,"div"),c(10),a()(),l(11,"td",12),R(12,Lc,1,0,"ng-container",13),a(),l(13,"td",14)(14,"div"),c(15),a()(),l(16,"td",12),R(17,$c,1,0,"ng-container",13),a(),l(18,"td",14)(19,"div"),c(20),a()(),l(21,"td",12),R(22,jc,1,0,"ng-container",13),a(),l(23,"td",14),p(24,"bb-io-change-type-badge",15),a(),l(25,"td",12),R(26,Gc,1,0,"ng-container",13),a(),l(27,"td",14)(28,"div"),c(29),a()(),l(30,"td",12),R(31,Uc,1,0,"ng-container",13),a(),l(32,"td"),g(33,zc,3,5,"div",16),g(34,Hc,1,1,"div",17),a(),l(35,"td",12),R(36,Jc,1,0,"ng-container",13),a(),l(37,"td"),g(38,qc,3,5,"div",16),g(39,Wc,1,1,"div",17),a(),l(40,"td",12),R(41,Kc,1,0,"ng-container",13),a(),l(42,"td")(43,"div")(44,"a",18),c(45),a()()()()),t&2){let e=u(),i=e.$implicit,n=e.$index,r=u(),d=Ai(39);s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",ai(31,Dc,r.releaseNotesToImport.controls,n)),s(3),te(i.controls.csvLineNumber.value),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(34,Oc,i.controls)),s(3),te(i.controls.discipline.value),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(36,Mc,i.controls)),s(3),te(i.controls.componentId.value),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(38,Nc,i.controls)),s(3),E(" ",i.controls.componentSemver.value," "),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(40,Pc,i.controls)),s(2),m("changeType",i.controls.changeTypeName.value),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(42,Ec,i.controls)),s(3),E(" ",i.controls.isBreakingChange.value," "),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(44,Rc,i.controls)),s(2),h(i.controls.title.valid?33:-1),s(),h(i.controls.title.invalid?34:-1),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(46,Ic,i.controls)),s(2),h(i.controls.description.valid?38:-1),s(),h(i.controls.description.invalid?39:-1),s(2),m("ngTemplateOutlet",d)("ngTemplateOutletContext",he(48,kc,i.controls)),s(3),m("bbioTooltip",i.controls.readMoreURL.value)("href",i.controls.readMoreURL.value,wn),s(),E(" ",i.controls.readMoreText.value," ")}}function Yc(t,o){if(t&1&&g(0,Qc,46,50,"tr"),t&2){let e=o.$implicit,i=u();h(!i.showOnlyErrors.value||i.showOnlyErrors.value&&e.invalid?0:-1)}}function Xc(t,o){if(t&1&&p(0,"i",19),t&2){let e=u(),i=e.controls,n=e.controlName,r=u();m("bbioTooltip",r.rowErrors(i[n])||r.validationErrorsToErrorMessage(n,i[n].errors))("showTooltip",!0)}}function Zc(t,o){if(t&1&&g(0,Xc,1,2,"i",19),t&2){let e=o.controls,i=o.controlName;h(e[i].invalid?0:-1)}}var ha=(()=>{class t{dialogData=f(Oe);dialogRef=f(Ve);fb=f($i);parser=f(yo);releaseAdvisorService=f(Ae);snackBar=f(Ui);destroyRef=f(L);releaseNotesToImport=new sr([]);importedFileMetadata=V({filename:"",nbOfRows:-1,valid:-1,invalid:-1});errorMessage=V({enable:!1,message:"",severity:"warning"});showOnlyErrors=new x(!1);isImportDisabled=k(()=>this.releaseNotesToImport.invalid||this.importedFileMetadata().valid<=0);tooltipMessage=k(()=>this.importedFileMetadata().invalid+" release notes invalid");ngOnInit(){let e=this.dialogData.event.srcElement.files[0];this.parser.parse(e,{header:!0,encoding:"utf8"}).pipe(v(this.destroyRef)).subscribe({next:i=>{if(!Pt(i))throw new Error("Error parsing CSV file");i.map((d,_)=>({csvLineNumber:_+2,discipline:d.Discipline,componentId:d.SoftwareComponent,componentSemver:d.Version,changeTypeName:d.ChangeType,breaking:d.isBreakingChange?.toLocaleLowerCase()==="true",title:d.Title,description:d.Description,readMoreURL:d.ReadMoreURL,readMoreText:d.ReadMoreText})).filter(d=>d.title||d.description).forEach(d=>{this.releaseNotesToImport.push(this.releaseNoteFormControl(d))});let n=this.releaseNotesToImport.controls.filter(d=>d.valid),r=this.releaseNotesToImport.controls.filter(d=>d.invalid);this.importedFileMetadata.set({filename:e.name,nbOfRows:this.releaseNotesToImport.controls.length,valid:n.length,invalid:r.length}),r.length>0&&r.length===this.importedFileMetadata().nbOfRows?this.errorMessage.set({enable:!0,message:`All ${r.length} rows are invalid. Please correct make sure your CSV file respects the correct format.`,severity:"danger"}):r.length>50?this.errorMessage.set({enable:!0,message:`${r.length} rows are invalid. Please correct the marked rows.`,severity:"danger"}):r.length>0?this.errorMessage.set({enable:!0,message:this.generateErrorSummary(),severity:"warning"}):this.importedFileMetadata().nbOfRows===0&&this.errorMessage.set({enable:!0,message:"No valid rows found in the file. Please correct the file and try again.",severity:"danger"})},error:i=>{this.snackBar.open("\u274C "+i.message,"Close",{duration:1e4}),this.dialogRef.close()}})}
23releaseNoteFormControl(e){return this.fb.group({csvLineNumber:[e.csvLineNumber],discipline:[e.discipline,[jr(),pe.required]],componentId:[e.componentId,pe.required],componentSemver:[e.componentSemver,[pe.required,Jn()]],changeTypeName:[e.changeTypeName,Gr()],isBreakingChange:[e.breaking,pe.required],title:[e.title,[pe.required,pe.minLength(8),pe.maxLength(160),zr()]],description:[e.description,[pe.maxLength(2500),Hr()]],readMoreURL:[e.readMoreURL,[qn()].concat(e.readMoreText?.trim()?[pe.required]:[])],readMoreText:[e.readMoreText||(e.readMoreURL?.trim()?"Read more":e.readMoreText),[pe.maxLength(80)]]})}generateErrorSummary(){return`<strong>Cannot import this file</strong>
24            <ul>
25                ${this.flattenErrors().map(({error:i,line:n,field:r})=>`<li> Line ${n}: ${this.validationErrorsToErrorMessage(r,i)} </li>`).join("")}
26                </ul>`}flattenErrors(){let e=[],i=this.releaseNotesToImport.controls.filter(n=>n.invalid);for(let n of i)for(let r in n.controls)n.controls[r].errors&&e.push({line:n.controls.csvLineNumber.value,field:r,error:n.controls[r].errors});return e}validationErrorsToErrorMessage(e,i){return`${e} ${Object.entries(i||{}).map(([n,r])=>{switch(n){case"required":return"is required";case"maxlength":return`exceeds max length of ${r.requiredLength} chars`;case"minLength":return`must have minimum length of ${r.requiredLength} chars`;case"version":return"is not a valid version";case"discipline":return`"${r.actualDiscipline}" is not a valid discipline`;case"changeType":return`"${r.actualChangeType}" is not a valid change type`;case"url":return"is not a valid URL";case"isBreakingChange":return"breaking change is not a valid boolean";case"markdown":return"includes markdown syntax ("+r.invalidTokensType.join(", ")+") that is not allowed";default:return"is not valid"}}).join(", ")}`}rowErrors(e){return Object.entries(e.controls||{}).filter(i=>i[1].invalid).map(([i,n])=>this.validationErrorsToErrorMessage(i,n.errors||{})).join(",")}cancel(){this.dialogRef.close()}validate(){return qe(this,null,function*(){let e=this.releaseNotesToImport.controls.map(i=>{let n=i.value;return{rowId:n.csvLineNumber,discipline:n.discipline,componentId:n.componentId,componentSemver:n.componentSemver,title:n.title,description:n.description,readMoreURL:n.readMoreURL,readMoreText:n.readMoreText,changeTypeName:n.changeTypeName,isBreakingChange:n.isBreakingChange}});this.releaseAdvisorService.batchImportReleaseNotes(e).pipe(v(this.destroyRef)).subscribe({next:()=>{this.releaseAdvisorService.refreshAvailableComponentIds(),this.dialogRef.close(),this.snackBar.open(`\u2705 ${e.length} release notes imported successfully`,"Close",{duration:5e3})},error:i=>{let n=i.error.message||i.message;this.snackBar.open(`\u274C Error: ${n}`,"Close")}})})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-batch-import"]],decls:50,vars:8,consts:[["validityFlag",""],[1,"flex","p-10","pb-0","w-full","flex-col"],[1,"flex","px-10","pt-0","w-full","flex-col"],["size","large",1,"m-2",3,"text","variant"],["color","primary",1,"m-2",3,"formControl"],[1,"flex","px-10","pt-0","w-full","flex-col",2,"height","100%"],[1,"w-full"],[1,"text-subtitle-bold","leading-6","whitespace-nowrap"],["align","end",1,"p-5"],[1,""],["BBioButton","",1,"mx-5",3,"click","disabled","bbioTooltip","showTooltip"],["BBioButton","",1,"mx-5",3,"click"],[1,"leading-6"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"leading-6","whitespace-nowrap"],[3,"changeType"],[3,"innerHTML"],[3,"innerText"],["position","bottom","target","_blank",3,"bbioTooltip","href"],["position","right",1,"rounded-full","text-white","bg-[orange]","icon-info",3,"bbioTooltip","showTooltip"]],template:function(i,n){if(i&1){let r=I();l(0,"h3",1),c(1,"Import release notes"),a(),l(2,"div",2),g(3,Vc,1,2,"bbio-notification-block",3),g(4,Ac,2,1,"mat-slide-toggle",4),a(),l(5,"mat-dialog-content",5)(6,"div")(7,"table",6)(8,"tr")(9,"th",7),c(10,"Line"),a(),p(11,"th")(12,"th"),l(13,"th",7),c(14,"Discipline"),a(),p(15,"th"),l(16,"th",7),c(17,"Component Id"),a(),p(18,"th"),l(19,"th",7),c(20,"Version"),a(),p(21,"th"),l(22,"th",7),c(23,"Change Type"),a(),p(24,"th"),l(25,"th",7),c(26,"Breaking"),a(),p(27,"th"),l(28,"th",7),c(29,"Title"),a(),p(30,"th"),l(31,"th",7),c(32,"Description"),a(),p(33,"th"),l(34,"th",7),c(35,"Read More"),a()(),ve(36,Yc,1,1,null,null,Ke),a(),R(38,Zc,1,1,"ng-template",null,0,Qo),a()(),l(40,"mat-dialog-actions",8)(41,"div"),c(42),l(43,"span",9),c(44,"Total rows:"),a(),c(45),l(46,"button",10),C("click",function(){return M(r),N(n.validate())}),c(47," Import "),a(),l(48,"button",11),C("click",function(){return M(r),N(n.cancel())}),c(49,"Cancel"),a()()()}i&2&&(s(3),h(n.errorMessage().enable?3:-1),s(),h(n.importedFileMetadata().invalid>0?4:-1),s(32),Se(n.releaseNotesToImport.controls),s(6),E(" ",n.importedFileMetadata().filename," - "),s(3),Jo(" ",n.importedFileMetadata().nbOfRows," (",n.importedFileMetadata().invalid," invalid) "),s(),m("disabled",n.isImportDisabled())("bbioTooltip",n.tooltipMessage())("showTooltip",n.releaseNotesToImport.invalid))},dependencies:[re,Zo,X,Y,Q,dt,fa,ze,Gi,ci,mt,zi,Or,ga,Ge,rt],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.w-530[_ngcontent-%COMP%]{width:530px}@media(max-width:1128px){.w-530[_ngcontent-%COMP%]{width:100%}}.mt-70[_ngcontent-%COMP%]{margin-top:85px}.pb-120[_ngcontent-%COMP%]{padding-bottom:120px}.content-container[_ngcontent-%COMP%]{padding:5rem}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:15%;overflow-x:hidden;overflow-y:auto;background-color:#fff;gap:2em}.content-area[_ngcontent-%COMP%]{width:85%;min-height:600px;padding-bottom:2em}.center-aligned-box[_ngcontent-%COMP%], .placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40vh}table[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{border:none;font-family:Libre Franklin;text-align:left;vertical-align:middle}th[_ngcontent-%COMP%]{font-weight:600}.mat-mdc-cell[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#ebf0f5;font-size:.875rem;font-style:normal;font-weight:400;cursor:pointer}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.mat-mdc-header-row[_ngcontent-%COMP%]{border-bottom:rgb(204,213,223) solid 1px}.mat-mdc-paginator[_ngcontent-%COMP%]{color:#295eff}.mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#295eff}.mat-mdc-dialog-content[_ngcontent-%COMP%]{max-height:100%}"],changeDetection:0})}return t})();function ed(t,o){if(t&1){let e=I();l(0,"button",22),C("click",function(){M(e);let n=u();return N(n.shareReleaseNote(n.releaseNote().id))}),p(1,"i",23),l(2,"span",16),c(3,"Share"),a()()}}function td(t,o){if(t&1){let e=I();l(0,"button",18),C("click",function(){M(e);let n=u();return N(n.approveReleaseNote())}),c(1," Publish "),p(2,"i",24),a()}}function id(t,o){if(t&1){let e=I();l(0,"button",25),C("click",function(){M(e);let n=u();return N(n.unpublishReleaseNote())}),c(1," Unpublish "),p(2,"i",26),a()}}var _a=(()=>{class t{dialogData=f(Oe);dialogRef=f(Ve);releaseAdvisorService=f(Ae);dialog=f(Me);router=f(Ue);destroyRef=f(L);currentReleaseNote$$=V(this.dialogData.releaseNote);currentIndex$$=V(this.dialogData.releaseNoteIndex);refreshAfterClose$$=V(!1);releaseNote=k(()=>this.currentReleaseNote$$());releaseNoteIndex=k(()=>this.currentIndex$$());releaseNoteCollection=k(()=>this.dialogData.releaseNoteCollection);showProductJourney=k(()=>this.dialogData.showProductJourney??!0);showShareButton=k(()=>this.dialogData.showShareButton??!1);statusLabel=k(()=>{let e=this.releaseNote().status?.name||"";return gt[e]?.label?.toUpperCase()||e.toUpperCase()});releaseNoteStatusConfig=O({},gt);onKeyUp(e){Yn(e,{onPrevious:()=>this.previous(),onNext:()=>this.next(),canNavigatePrevious:()=>!this.isFirst(),canNavigateNext:()=>!this.isLast()})}edit(){this.dialog.open(Ni,{data:{releaseData:this.currentReleaseNote$$(),isCreate:!1},width:"90%",disableClose:!0}).afterClosed().pipe(v(this.destroyRef)).subscribe(i=>{i?.action==="refresh"&&(this.updateCurrentReleaseNote(He.pending,i.releaseNote),this.refreshAfterClose$$.set(!0))})}delete(){this.dialog.open(en,{data:{releaseNoteId:this.currentReleaseNote$$().id,softwareComponent:this.currentReleaseNote$$().componentId,releaseNoteTitle:this.currentReleaseNote$$().title},width:"50%"}).afterClosed().pipe(v(this.destroyRef)).subscribe(i=>{i?.success&&this.dialogRef.close({action:"delete",releaseNote:this.currentReleaseNote$$()})})}approveReleaseNote(){let e=this.currentReleaseNote$$();this.releaseAdvisorService.approveReleaseNote({id:e.id,statusName:He.approved}).pipe(v(this.destroyRef)).subscribe({next:()=>{this.updateCurrentReleaseNote(He.approved,e),this.refreshAfterClose$$.set(!0)},error:i=>{console.error("Error approving release note:",i)}})}unpublishReleaseNote(){let e=this.currentReleaseNote$$();this.releaseAdvisorService.approveReleaseNote({id:e.id,statusName:He.pending}).pipe(v(this.destroyRef)).subscribe({next:()=>{this.updateCurrentReleaseNote(He.pending,e),this.refreshAfterClose$$.set(!0)},error:i=>{console.error("Error un-publishing release note:",i)}})}closeModal(){this.updateQueryParam(void 0),this.dialogRef.close(this.refreshAfterClose$$()?{action:"refresh",releaseNote:this.currentReleaseNote$$()}:void 0)}previous(){let e=this.currentIndex$$()-1;this.currentIndex$$.set(e),this.currentReleaseNote$$.set(this.dialogData.releaseNoteCollection[e]),this.updateQueryParam(this.currentReleaseNote$$().id)}next(){let e=this.currentIndex$$()+1;this.currentIndex$$.set(e),this.currentReleaseNote$$.set(this.dialogData.releaseNoteCollection[e]),this.updateQueryParam(this.currentReleaseNote$$().id)}isFirst(){return this.currentIndex$$()===0}isLast(){return this.currentIndex$$()===this.dialogData.releaseNoteCollection.length-1}shareReleaseNote(e){let i=this.router.serializeUrl(this.router.createUrlTree(["/release-advisor/release-note",e]));window.open(i,"_blank")}updateQueryParam(e){this.router.navigate([],{queryParams:{open:e||null},queryParamsHandling:"merge"})}updateCurrentReleaseNote(e,i){this.currentReleaseNote$$.update(n=>ne(O(O({},n),i),{status:ne(O({},i.status),{name:e})}))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-contributor-release-notes-details"]],hostBindings:function(i,n){i&1&&C("keyup",function(d){return n.onKeyUp(d)})},decls:27,vars:15,consts:[[1,"release-notes-details-modal"],[1,"modal-header","flex","justify-center","items-center"],[1,"modal-title",3,"innerHTML"],["BBioButton-basic","","color","primary","aria-label","Close",1,"ml-auto",3,"click"],[1,"icon","icon-xmark","text-h2"],[1,"modal-content"],[3,"releaseNote","showStatus","showProductJourney","showComponentGroup"],[1,"modal-footer"],[1,"flex","text-subtitle-bold","whitespace-nowrap","sm:flex-wrap","sm:max-w-full"],["BBioButton-stroked","","aria-label","Previous",1,"w-10","h-10","p-0",3,"click","disabled"],[1,"icon","icon-circle-arrow-left"],["BBioButton-stroked","","aria-label","Next",1,"w-10","h-10","p-0","mx-2",3,"click","disabled"],[1,"icon","icon-circle-arrow-right"],[1,"grow","flex","justify-end","gap-2"],["BBioButton","","aria-label","Share release note"],["BBioButton","","color","danger","aria-label","Delete",3,"click"],[1,"text-white"],[1,"icon","icon-trash-can","text-white"],["BBioButton","",3,"click"],[1,"icon","icon-pencil"],["BBioButton",""],["BBioButton-stroked",""],["BBioButton","","aria-label","Share release note",3,"click"],[1,"icon","icon-share","text-white"],[1,"icon","icon-check-double"],["BBioButton-stroked","",3,"click"],[1,"icon","icon-backward-step"]],template:function(i,n){if(i&1&&(l(0,"section",0)(1,"header",1),p(2,"h3",2),y(3,"escapeCharacterTransform"),y(4,"markdown"),y(5,"async"),l(6,"button",3),C("click",function(){return n.closeModal()}),p(7,"i",4),a()(),l(8,"div",5),p(9,"bb-io-release-note-detail",6),a(),l(10,"footer",7)(11,"div",8)(12,"button",9),C("click",function(){return n.previous()}),p(13,"i",10),a(),l(14,"button",11),C("click",function(){return n.next()}),p(15,"i",12),a(),l(16,"div",13),g(17,ed,4,0,"button",14),l(18,"button",15),C("click",function(){return n.delete()}),l(19,"span",16),c(20,"Delete"),a(),p(21,"i",17),a(),l(22,"button",18),C("click",function(){return n.edit()}),c(23," Edit "),p(24,"i",19),a(),g(25,td,3,0,"button",20)(26,id,3,0,"button",21),a()()()()),i&2){let r,d;s(2),m("innerHTML",$(5,13,$(4,11,$(3,9,n.releaseNote().title))),U),s(7),m("releaseNote",n.releaseNote())("showStatus",!0)("showProductJourney",n.showProductJourney())("showComponentGroup",!0),s(3),m("disabled",n.isFirst()),s(2),m("disabled",n.isLast()),s(3),h(n.showShareButton()&&((r=n.releaseNote())==null||r.status==null||r.status.name==null?null:r.status.name.toLowerCase())==="approved"?17:-1),s(8),h(((d=n.releaseNote())==null||d.status==null||d.status.name==null?null:d.status.name.toLowerCase())==="pending"?25:26)}},dependencies:[re,it,X,Qi,Ge,Ki,rt],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.release-notes-details-modal[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;max-height:90vh;overflow:hidden}.modal-header[_ngcontent-%COMP%]{display:flex;position:sticky;z-index:10;top:0;align-items:center;justify-content:flex-end;justify-content:space-between;padding:1.5rem 1.5rem 1rem;border-bottom:1px solid rgb(243,246,249);background-color:#fff;gap:1rem}
26.modal-header[_ngcontent-%COMP%]   .modal-title[_ngcontent-%COMP%]{display:-webkit-box;flex:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical}.modal-content[_ngcontent-%COMP%]{flex:1;min-height:0;padding:0 1.5rem;overflow-x:hidden;overflow-y:auto}.modal-footer[_ngcontent-%COMP%]{position:sticky;z-index:10;bottom:0;margin-top:1rem;padding:1.5rem;border-top:1px solid rgb(243,246,249);background-color:#fff}.column-gap[_ngcontent-%COMP%]{gap:3rem}.sub-column-gap[_ngcontent-%COMP%]{gap:1rem}.jc-between[_ngcontent-%COMP%]{justify-content:space-between}.jc-end[_ngcontent-%COMP%]{justify-content:end}.custom-badge[_ngcontent-%COMP%]{width:8rem}.mdc-dialog__actions[_ngcontent-%COMP%]{padding:1rem}.pre-line[_ngcontent-%COMP%]{white-space:pre-line}.pending[_ngcontent-%COMP%]{background-color:#dfe7ff;color:#17348c}.approved[_ngcontent-%COMP%]{background-color:#dbece2;color:#0f803e}.icon-circle-exclamation-check[_ngcontent-%COMP%]{color:#bf2310}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.divider[_ngcontent-%COMP%]{height:1px;background:#e1e8ef}"]})}return t})();function nd(t,o){if(t&1&&(l(0,"div")(1,"div",2),c(2,"Component"),a(),p(3,"bb-io-typeahead",4),a()),t&2){let e=u();s(3),m("options",e.softwareComponentsDropdownOptions())("disabled",e.softwareComponentsDropdownOptions().length===0)("placeholder","Software component")}}function od(t,o){t&1&&p(0,"bbio-spinner")}var xo=(()=>{class t{releaseAdvisorService=f(Ae);destroyRef=f(L);initialSoftwareComponentSelection=tt();clearSelectionTrigger=tt(0);softwareComponentSelected=an();resetEvent=an();disciplineFormControl=new x("",pe.required);releaseNoteHubForm=new ue({discipline:this.disciplineFormControl,softwareComponent:new x("",pe.required)});disciplineOptions=[...zn];previousClearTrigger=0;availableComponentIdsPerDiscipline=V({});softwareComponentsDropdownOptions=V([]);isLoadingComponentIds=V(!0);componentIdsLoaded=V(!1);ngOnInit(){this.loadComponentIds(),this.watchFormValueChanges()}ngOnChanges(e){if(e.initialSoftwareComponentSelection&&this.applyInitialSelection(),e.clearSelectionTrigger){let i=this.clearSelectionTrigger();i>0&&i!==this.previousClearTrigger&&(this.previousClearTrigger=i,this.clearSelection())}}applyInitialSelection(){let e=this.initialSoftwareComponentSelection(),i=this.availableComponentIdsPerDiscipline();if(e&&Object.keys(i).length>0){let n=this.releaseNoteHubForm.get("discipline")?.value,r=this.releaseNoteHubForm.get("softwareComponent")?.value;(n!==e.discipline||r!==e.softwareComponent)&&(this.softwareComponentsDropdownOptions.set(this.componentIdsOptionsForDiscipline(e.discipline)),this.releaseNoteHubForm.patchValue({discipline:e.discipline,softwareComponent:e.softwareComponent},{emitEvent:!0}))}}refreshComponentIds(){this.loadComponentIds()}loadComponentIds(){this.isLoadingComponentIds.set(!0),this.releaseAdvisorService.getAvailableComponentIds().pipe(v(this.destroyRef)).subscribe(e=>{this.availableComponentIdsPerDiscipline.set(e),this.isLoadingComponentIds.set(!1),this.componentIdsLoaded.set(!0),this.applyInitialSelection();let i=this.releaseNoteHubForm.get("discipline")?.value;
26i&&this.softwareComponentsDropdownOptions.set(this.componentIdsOptionsForDiscipline(i)),this.disciplineWatcherInitialized||(this.watchDisciplineSelection(),this.disciplineWatcherInitialized=!0)})}disciplineWatcherInitialized=!1;watchFormValueChanges(){this.releaseNoteHubForm.valueChanges.pipe(v(this.destroyRef)).subscribe(({discipline:e,softwareComponent:i})=>{this.releaseNoteHubForm.valid?this.softwareComponentSelected.emit({discipline:e,softwareComponent:i}):this.resetEvent.emit()})}watchDisciplineSelection(){this.releaseNoteHubForm.get("discipline")?.valueChanges.pipe(v(this.destroyRef),je(()=>{this.releaseNoteHubForm.get("softwareComponent")?.reset()}),ii(e=>this.componentIdsOptionsForDiscipline(e))).subscribe(e=>{this.softwareComponentsDropdownOptions.set(e)})}componentIdsOptionsForDiscipline(e){return(this.availableComponentIdsPerDiscipline()[e||""]||[]).map(n=>({value:n,label:n}))}clearSelection(){this.releaseNoteHubForm.reset(),this.softwareComponentsDropdownOptions.set([])}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-select-software-component"]],inputs:{initialSoftwareComponentSelection:[1,"initialSoftwareComponentSelection"],clearSelectionTrigger:[1,"clearSelectionTrigger"]},outputs:{softwareComponentSelected:"softwareComponentSelected",resetEvent:"resetEvent"},features:[Tt],decls:9,vars:3,consts:[[3,"formGroup"],[1,"flex","gap-2"],[1,"text-subheader-bold","mt-2","pb-2","uppercase"],["formControlName","discipline","placeholder","Select a discipline",1,"w-48","justify-between",3,"options"],["formControlName","softwareComponent",1,"w-48","justify-between",3,"options","disabled","placeholder"]],template:function(i,n){if(i&1&&(l(0,"form",0)(1,"div",1)(2,"div")(3,"div",2),c(4,"Discipline"),a(),p(5,"bb-io-typeahead",3),a(),H(6),g(7,nd,4,3,"div")(8,od,1,0,"bbio-spinner"),J(),a()()),i&2){let r;m("formGroup",n.releaseNoteHubForm),s(5),m("options",n.disciplineOptions),s(2),h(n.componentIdsLoaded()&&((r=n.releaseNoteHubForm.get("discipline"))!=null&&r.value)?7:n.componentIdsLoaded()?-1:8)}},dependencies:[re,Y,fe,Q,ce,de,ge,fi,It],encapsulation:2})}return t})();var rd=["paginator"];function ad(t,o){t&1&&(l(0,"th",20),c(1," Product Group "),a())}function ld(t,o){if(t&1&&(l(0,"td",21),p(1,"p",22),y(2,"highlightSearch"),a()),t&2){let e=o.$implicit,i=u(2);s(),m("innerHTML",se(2,1,e.name,i.highlight),U)}}function sd(t,o){t&1&&(l(0,"th",20),c(1," Discipline "),a())}function cd(t,o){if(t&1&&p(0,"p",22),t&2){let e=u().$implicit;m("innerHTML",e==null?null:e.discipline,U)}}function dd(t,o){t&1&&(l(0,"p"),p(1,"i",23),a())}function md(t,o){if(t&1&&(l(0,"td",21),g(1,cd,1,1,"p",22)(2,dd,2,0,"p"),a()),t&2){let e=o.$implicit;s(),h(e!=null&&e.discipline?1:2)}}function pd(t,o){t&1&&(l(0,"th",20),c(1," Software Component "),a())}function ud(t,o){if(t&1){let e=I();l(0,"td",21)(1,"div",2),p(2,"div",22),y(3,"highlightSearch"),l(4,"div",24)(5,"i",25),C("click",function(){let n=M(e).$implicit,r=u(2);return N(r.copyToClipboard(n.componentId))}),a()()()()}if(t&2){let e=o.$implicit,i=u(2);s(2),m("innerHTML",se(3,1,e.componentId,i.highlight),U)}}function fd(t,o){t&1&&p(0,"mat-header-row")}function gd(t,o){t&1&&p(0,"mat-row")}function hd(t,o){if(t&1&&(l(0,"div",10)(1,"table",11),H(2,12),R(3,ad,2,0,"th",13)(4,ld,3,4,"td",14),J(),H(5,15),R(6,sd,2,0,"th",13)(7,md,3,1,"td",14),J(),H(8,16),R(9,pd,2,0,"th",13)(10,ud,6,4,"td",14),J(),R(11,fd,1,0,"mat-header-row",17)(12,gd,1,0,"mat-row",18),a(),p(13,"mat-paginator",19,0),a()),t&2){let e=u();s(),m("dataSource",e.dataSource),s(10),m("matHeaderRowDef",e.displayedColumns),s(),m("matRowDefColumns",e.displayedColumns),s(),m("length",e.dataSource.data.length)("pageSize",e.pageSizeSelect.value)}}var ba=(()=>{class t{clipboard=f(pr);productJourney=f(Oe);snackBar=f(Ui);dataSource=new le([]);pageSizeSelect=new x(20);searchText=new x("");highlight="";paginator;displayedColumns=["productJourney","discipline","softwareComponent"];destroyRef=f(L);ngOnInit(){this.dataSource=new le(this.productJourney),this.searchText.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>this.applyFilter(e))}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.pageSizeSelect.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.dataSource.paginator?._changePageSize(e),this.dataSource.paginator?.firstPage()})}copyToClipboard(e){this.clipboard.copy(e),this.snackBar.open(`\u{1F4CB} "${e}" copied to clipboard`,"",{duration:3e3})}applyFilter(e){this.highlight=e||"",this.dataSource.filter=this.highlight.trim().toLowerCase(),this.dataSource.paginator?.firstPage()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-product-journey-details"]],viewQuery:function(i,n){if(i&1&&Re(rd,5),i&2){let r;Ie(r=ke())&&(n.paginator=r.first)}},decls:12,vars:2,consts:[["paginator",""],["mat-dialog-content","",1,"product-journey-wrapper"],[1,"flex"],[1,"flex","items-start","gap-12","mt-4","grow"],[1,"text-h3"],[1,"flex","justify-end"],["BBioButton-basic","","mat-dialog-close","","color","primary","aria-label","close"],[1,"icon","icon-xmark","text-h2"],[1,"flex","justify-end","mr-12","mb-2"],["type","text","placeholder","Type to search","name","search-components",1,"text-field","text-subtitle","search-input",3,"formControl"],[1,"custom-table-container","mt-6"],["mat-table","",1,"mat-elevation-z8","text-subtitle",3,"dataSource"],["matColumnDef","productJourney"],["class","text-subtitle-bold text-weight-bold leading-6","mat-header-cell","",4,"matHeaderCellDef"],["class","leading-6","mat-cell","",4,"matCellDef"],["matColumnDef","discipline"],["matColumnDef","softwareComponent"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],["role","article","showFirstLastButtons","","aria-label","Select page","color","primary",3,"length","pageSize"],["mat-header-cell","",1,"text-subtitle-bold","text-weight-bold","leading-6"],["mat-cell","",1,"leading-6"],[3,"innerHTML"],[1,"icon","icon-hyphen"],[1,"ml-2"],[1,"icon-cl
26ipboard","text-primary","text-body","text-xl",3,"click"]],template:function(i,n){i&1&&(l(0,"div",1)(1,"header")(2,"div",2)(3,"div",3)(4,"div",4),c(5,"Product group Details"),a()(),l(6,"div",5)(7,"button",6),p(8,"i",7),a()()(),l(9,"div",8),p(10,"input",9),a()(),g(11,hd,15,5,"div",10),a()),i&2&&(s(10),m("formControl",n.searchText),s(),h(n.dataSource.data.length>0?11:-1))},dependencies:[X,it,kt,ci,ut,Vt,Ft,jt,Bt,At,Gt,Lt,$t,Ut,zt,pi,Yt,Y,Nt,Q,dt,cr,ur,zi,Rt],styles:[".custom-table-container[_ngcontent-%COMP%]{max-width:100%;overflow:auto}.custom-table-container[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:none;font-family:Libre Franklin;text-align:left;vertical-align:middle}.custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:600}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#ebf0f5;font-size:.875rem;font-style:normal;font-weight:400;cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-elevation-z8[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{border-bottom:rgb(204,213,223) solid 1px}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-paginator[_ngcontent-%COMP%]{color:#295eff}.mat-column-productJourney[_ngcontent-%COMP%]{width:20%}.mat-column-discipline[_ngcontent-%COMP%]{width:10%}.mat-column-softwareComponent[_ngcontent-%COMP%]{width:70%}.text-field[_ngcontent-%COMP%]{width:20%;padding:4px 0;padding:.5rem;transition:border-color .2s;border:0;border-bottom:1px solid rgb(163,178,194);outline:0;background:transparent;color:#3a495d}.text-field[_ngcontent-%COMP%]::placeholder{color:#3a495d}.text-field[_ngcontent-%COMP%]:focus{border-width:2px;border-color:#295eff}.product-journey-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.mat-mdc-dialog-content[_ngcontent-%COMP%]{min-height:80vh}.mdc-dialog__content[_ngcontent-%COMP%]{margin-top:24px;padding:0 24px 20px}header[_ngcontent-%COMP%]{position:sticky;top:0;background-color:#fff}"]})}return t})();var eo=(()=>{class t{http=f(Li);env=f(st);ADMIN_API_HOST;constructor(){this.ADMIN_API_HOST=`${this.env.baseUrl}/developers/backend/api/v1/admin`}getReports(){return this.http.get(`${this.ADMIN_API_HOST}/release-notes/reports/sbom-calver`)}triggerSBOMSync(){return this.http.post(`${this.env.baseUrl}/developers/backend/api/v1/admin/queues/api/queues/ReleaseAdvisorQueue/add`,{name:"Refresh TLDs and Products Navigation",data:{}})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _d=["mat-sort-header",""],bd=["*"];function Cd(t,o){t&1&&(ae(0,"div",2),wi(),ae(1,"svg",3),et(2,"path",4),oe()())}var Ca=new xi("MAT_SORT_DEFAULT_OPTIONS"),Zt=(()=>{class t{_defaultOptions;_initializedStream=new hn(1);sortables=new Map;_stateChanges=new yi;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new De;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let i=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,n=vd(e.start||this.start,i),r=n.indexOf(this.direction)+1;return r>=n.length&&(r=0),n[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||t)(Go(Ca,8))};static \u0275dir=uo({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",Qe],disabled:[2,"matSortDisabled","disabled",Qe]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Tt]})}return t})();function vd(t,o){let e=["asc","desc"];return t=="desc"&&e.reverse(),o||e.push(""),e}var to=(()=>{class t{changes=new yi;static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Sd(t){return t||new to}var yd={provide:to,deps:[[new yn,new xn,to]],useFactory:Sd},io=(()=>{class t{_intl=f(to);_sort=f(Zt,{optional:!0});_columnDef=f("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=f(Bi);_focusMonitor=f(Mn);_elementRef=f(Ti);_ariaDescriber=f(ar,{optional:!0});_renderChanges;_animationsDisabled=En();_recentlyCleared=V(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){f(Nn).load(Vn);let e=f(Ca,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=Ro(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?i:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,n){i&1&&C("click",function(){return n._toggleOnInteraction()})("keydown",function(d){return n._handleKeydown(d)})("mouseleave",function(){return n._recentlyCleared.set(null)}),i&2&&(We("aria-sort",n._getAriaSortAttribute()),lt("mat-sort-header-disabled",n._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",Qe],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",Qe]},exportAs:["matSortHeader"],attrs:_d,ngContentSelectors:bd,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,n){i&1&&(Tn(),ae(0,"div",0)(1,"div",1),Dn(2),oe(),g(3,Cd,3,0,"div",2),oe()),i&2&&(lt("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before",n.arrowPosition==="before")("mat-sort-header-descending",n._sort.direction==="desc")("mat-sort-header-ascending",n._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",n._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",n._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",n._animationsDisabled),We("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),s(3),h(n._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}
26}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
27`],encapsulation:2,changeDetection:0})}return t})(),no=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=oi({type:t});static \u0275inj=ni({providers:[yd],imports:[ln]})}return t})();var xd=["paginator"];function wd(t,o){if(t&1&&p(0,"bbio-notification-block",2),t&2){let e=u();m("text",e.notificationText)}}function Td(t,o){t&1&&(l(0,"th",24),c(1," Product Group "),a())}function Dd(t,o){if(t&1&&p(0,"p",26),t&2){let e=u().$implicit;m("innerHTML",e.productJourney,U)}}function Od(t,o){t&1&&p(0,"i",27)}function Md(t,o){if(t&1&&(l(0,"td",25),g(1,Dd,1,1,"p",26)(2,Od,1,0,"i",27),a()),t&2){let e=o.$implicit;s(),h(e.productJourney!=="UNKNOWN"?1:2)}}function Nd(t,o){t&1&&(l(0,"th",24),c(1," Software component "),a())}function Pd(t,o){if(t&1&&(p(0,"td",28),y(1,"componentNameTransform"),y(2,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(2,3,$(1,1,e.componentId),i.highlight),U)}}function Ed(t,o){t&1&&(l(0,"th",29),c(1," Version "),a())}function Rd(t,o){if(t&1&&(p(0,"td",28),y(1,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(1,1,e.componentSemver,i.highlight),U)}}function Id(t,o){t&1&&(l(0,"th",29),c(1," Change type "),a())}function kd(t,o){if(t&1&&(l(0,"td",30),p(1,"div",31),y(2,"highlightSearch"),a()),t&2){let e=o.$implicit,i=u(2);s(),m("innerHTML",se(2,2,e.changeType.name,i.highlight),U)("ngClass",i.changeTypeColorMapping[e.changeType.name])}}function Vd(t,o){t&1&&(l(0,"th",32),c(1,"Change"),a())}function Ad(t,o){if(t&1&&(p(0,"td",28),y(1,"markdown"),y(2,"async"),y(3,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(3,5,$(2,3,$(1,1,e.title))||"",i.highlight),U)}}function Fd(t,o){t&1&&(l(0,"th",29),c(1," Breaking "),a())}function Bd(t,o){t&1&&p(0,"i",34)}function Ld(t,o){t&1&&p(0,"i",27)}function $d(t,o){if(t&1&&(l(0,"td",33),g(1,Bd,1,0,"i",34)(2,Ld,1,0,"i",27),a()),t&2){let e=o.$implicit;s(),h(e.isBreakingChange?1:2)}}function jd(t,o){t&1&&(l(0,"th",29),c(1," Status "),a())}function Gd(t,o){if(t&1&&(l(0,"td",25),c(1),a()),t&2){let e=o.$implicit,i=u(2);s(),E(" ",(i.releaseNoteStatusConfig[(e.status==null?null:e.status.name)||""]==null?null:i.releaseNoteStatusConfig[(e.status==null?null:e.status.name)||""].label)||"-"," ")}}function Ud(t,o){t&1&&p(0,"th",32)}function zd(t,o){if(t&1){let e=I();l(0,"td",25)(1,"button",35),C("click",function(n){let r=M(e).$implicit;return u(2).openReleaseNote(r),N(n.stopPropagation())}),p(2,"i",36),a(),l(3,"button",37),C("click",function(n){let r=M(e).$implicit;return u(2).editReleaseNote(r),N(n.stopPropagation())}),p(4,"i",38),a(),l(5,"button",39),C("click",function(n){let r=M(e).$implicit;return u(2).deleteReleaseNote(r),N(n.stopPropagation())}),p(6,"i",40),a()()}}function Hd(t,o){t&1&&p(0,"tr",41)}function Jd(t,o){if(t&1){let e=I();l(0,"tr",42),C("click",function(){let n=M(e).$implicit,r=u(2);return N(r.openReleaseNote(n))}),a()}}function qd(t,o){if(t&1&&(l(0,"div",3)(1,"table",4),H(2,5),R(3,Td,2,0,"th",6)(4,Md,3,1,"td",7),J(),H(5,8),R(6,Nd,2,0,"th",6)(7,Pd,3,6,"td",9),J(),H(8,10),R(9,Ed,2,0,"th",11)(10,Rd,2,4,"td",9),J(),H(11,12),R(12,Id,2,0,"th",11)(13,kd,3,5,"td",13),J(),H(14,14),R(15,Vd,2,0,"th",15)(16,Ad,4,8,"td",9),J(),H(17,16),R(18,Fd,2,0,"th",11)(19,$d,3,1,"td",17),J(),H(20,18),R(21,jd,2,0,"th",11)(22,Gd,2,1,"td",19),J(),H(23,20),R(24,Ud,1,0,"th",15)(25,zd,7,0,"td",19),J(),R(26,Hd,1,0,"tr",21)(27,Jd,1,0,"tr",22),a(),p(28,"mat-paginator",23,0),a()),t&2){let e=u();s(),m("dataSource",e.dataSource),s(25),m("matHeaderRowDef",e.displayedColumns),s(),m("matRowDefColumns",e.displayedColumns),s(),m("length",e.dataSource.data.length)("pageSize",e.pageSizeSelect.value)}}var Sa=(()=>{class t{refresh=new De;releaseNoteSelected=new De;dataSource=new le([]);highlight;pageSizeSelect=new x(50);paginator;sort;changeTypeColorMapping=O({},di);displayedColumns=["productJourney","componentName","componentSemver","description","changeType","isBreakingChange","status","viewDetails"];notificationText="";releaseNoteStatusConfig=O({},gt);destroyRef=f(L);ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,i)=>{switch(i){case"changeType":return e.changeType?.name;case"componentSemver":return z(e.componentSemver);case"status":return e.status?.name;default:return String(e[i]??"")}}}ngOnInit(){this.pageSizeSelect.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.dataSource.paginator?._changePageSize(e),this.dataSource.paginator?.firstPage()})}openReleaseNote(e){this.releaseNoteSelected.emit({action:"open",releaseNote:e})}editReleaseNote(e){this.releaseNoteSelected.emit({action:"edit",releaseNote:e})}deleteReleaseNote(e){this.releaseNoteSelected.emit({action:"delete",releaseNote:e})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-release-notes-table"]],viewQuery:function(i,n){if(i&1&&(Re(xd,5),Re(Zt,5)),i&2){let r;Ie(r=ke())&&(n.paginator=r.first),Ie(r=ke())&&(n.sort=r.first)}},inputs:{dataSource:"dataSource",highlight:"highlight",pageSizeSelect:"pageSizeSelect"},outputs:{refresh:"refresh",releaseNoteSelected:"releaseNoteSelected"},decls:3,vars:2,consts:[["paginator",""],[1,"mb-4"],["variant","success",3,"text"],[1,"custom-table-container"],["mat-table","","matSort","",1,"mat-elevation-z8","text-subtitle",3,"dataSource"],["matColumnDef","productJourney"],["class","text-subtitle-bold text-weight-bold leading-6","mat-header-cell","",4,"matHeaderCellDef"],["class","leading-6","mat-cell","",4,"matCellDef"],["matColumnDef","componentName"],["class","leading-6","mat-cell","",3,"innerHTML",4,"matCellDef"],["matColumnDef","componentSemver"],["class","text-subtitle-bold leading-6","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","changeType"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["class","text-subtitle-bold leading-6","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","isBreakingChange"],["mat-cell","","class","font-libre-franklin leading-6",4,"matCellDef"],["matColumnDef","status"],["mat-cell","","class","leading-6",4,"matCellDef"],["matColumnDef","viewDetails"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","aria-label","Select page","role","group","color","primary",3,"length","pageSize"],["mat-header-cell","",1,"text-subtitle-bold","text-weight-bold","leading-6"],["mat-cell","",1,"leading-6"],[3,"innerHTML"],[1,"icon","icon-hyphen"],["mat-cell","",1,"leading-6",3,"innerHTML"],["mat-header-cell","","mat-sort-header","",1,"text-subtitle-bold","leading-6"],["mat-cell",""],[1,"custom-badge","text-subheader-bold","uppercase",3,"innerHTML","ngClass"],["mat-header-cell","",1,"text-subtitle-bold","leading-6"],["mat-cell","",1,"font-libre-franklin","leading-6"],[1,"icon","icon-circle-exclamation-check","text-h3"],["aria-label","View release note details","BBioButton-basic","",3,"click"],[1,"icon","icon-square-sliders","text-xl"],["aria-label","Edit release note","BBioButton-basic","",3,"click"],[1,"icon","icon-pencil","text-h3"],["aria-label","Delete release note","BBioButton-basic","",3,"click"],[1,"icon","icon-trash-can","text-h3"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(i,n){i&1&&(l(0,"div",1),g(1,wd,1,1,"bbio-notification-block",2),a(),g(2,qd,30,5,"div",3)),i&2&&(s(),h(n.notificationText?1:-1),s(),h(n.dataSource.data.length>0?2:-1))},dependencies:[ut,Vt,Ft,jt,Bt,At,Gt,Lt,$t,Ut,zt,re,Ce,pi,Yt,no,Zt,io,it,X,ze,Ge,Rt,ui,rt],styles:[".custom-table-container[_ngcontent-%COMP%]{max-width:100%;overflow:auto}.custom-table-container[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:none;font-family:Libre Franklin;text-align:left;vertical-align:middle}.custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:600}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#ebf0f5;font-size:.875rem;font-style:normal;font-weight:400;cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-elevation-z8[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{border-bottom:rgb(204,213,223) solid 1px}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-paginator[_ngcontent-%COMP%]{color:#295eff}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#295eff}.custom-table-container[_ngcontent-%COMP%]   .custom-badge[_ngcontent-%COMP%]{width:7rem}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]{cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#ebf0f5}.mat-column-viewDetails[_ngcontent-%COMP%]{width:10%}.mat-column-productJourney[_ngcontent-%COMP%]{width:16%}.mat-column-componentName[_ngcontent-%COMP%]{width:22%}.icon-circle-exclamation-check[_ngcontent-%COMP%]{color:#bf2310}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}#hideMe[_ngcontent-%COMP%]{-moz-animation:cssAnimation 0s ease-in 5s forwards;-webkit-animation:_ngcontent-%COMP%_cssAnimation 0s ease-in 5s forwards;-o-animation:cssAnimation 0s ease-in 5s forwards;animation:_ngcontent-%COMP%_cssAnimation 0s ease-in 5s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_cssAnimation{to{width:0;height:0;overflow:hidden}}@-webkit-keyframes _ngcontent-%COMP%_cssAnimation{to{visibility:hidden;width:0;height:0}}"]})}return t})();var ya=(()=>{class t{clearSearchTrigger=tt(0);initialSearchValue=tt("");searchSubmit=an();searchFormGroup=new ue({searchInput:new x("",[pe.minLength(4),pe.maxLength(20)])});previousClearTrigger=0;previousInitialValue="";ngOnChanges(e){if(e.clearSearchTrigger){let i=this.clearSearchTrigger();i>0&&i!==this.previousClearTrigger&&(this.previousClearTrigger=i,this.onClearSearch())}if(e.initialSearchValue){let i=this.initialSearchValue();i&&i!==this.previousInitialValue&&(this.previousInitialValue=i,this.searchFormGroup.controls.searchInput.setValue(i,{emitEvent:!1}))}}searchValue=fo(this.searchFormGroup.controls.searchInput.valueChanges.pipe(po("")),{initialValue:""});formStatus=fo(this.searchFormGroup.statusChanges.pipe(po(this.searchFormGroup.status)),{initialValue:this.searchFormGroup.status});isNotValid=k(()=>{let e=this.formStatus()==="INVALID",i=this.hasSearchValue();return e||!i});hasSearchValue=k(()=>{let e=this.searchValue();return!!e&&e.trim().length>0});onSearchSubmit(){if(this.isNotValid())return;let e=this.searchFormGroup.get("searchInput")?.value;e&&e.trim().length>0&&this.searchSubmit.emit(e.trim())}onClearSearch(){this.searchFormGroup.get("searchInput")?.setValue("")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-search-software-component"]],inputs:{clearSearchTrigger:[1,"clearSearchTrigger"],initialSearchValue:[1,"initialSearchValue"]},outputs:{searchSubmit:"searchSubmit"},features:[Tt],decls:6,vars:2,consts:[[1,"flex","gap-2"],[1,"flex-1","flex","gap-2",3,"ngSubmit","formGroup"],["type","text","BBioInput","","formControlName","searchInput","placeholder","Type a search term...",1,"flex-1"],["BBioButton","","type","submit",3,"disabled"],[1,"icon","icon-magnifying-glass"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"form",1),C("ngSubmit",function(){return n.onSearchSubmit()}),p(2,"input",2),l(3,"button",3),p(4,"i",4),c(5," Search "),a()()()),i&2&&(s(),m("formGroup",n.searchFormGroup),s(2),m("disabled",n.isNotValid()))},dependencies:[Y,fe,Nt,Q,ce,de,ge,X,fr],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return t})();function Wd(t,o){if(t&1&&(l(0,"p",28),c(1),a()),t&2){let e=u(2);s(),E(" ",e.landingComponentContent().content," ")}}function Kd(t,o){if(t&1&&(l(0,"div")(1,"h2"),c(2),a(),g(3,Wd,2,1,"p",28),a()),t&2){let e=u();s(2),E(" ",e.landingComponentContent().heading," "),s(),h(e.landingComponentContent().content?3:-1)}}function Qd(t,o){t&1&&(l(0,"div",25),p(1,"bbio-spinner"),l(2,"h2",29),c(3,"Results are loading..."),a()())}function Yd(t,o){if(t&1&&p(0,"bb-io-placeholder-container",26),t&2){let e=u();m("placeholderInput",e.placeHolderData())("notificationBlock",e.notificationBlock())}}function Xd(t,o){if(t&1&&p(0,"bb-io-placeholder-container",26),t&2){let e=u();m("placeholderInput",e.placeHolderProductNotAvailableConfig)("notificationBlock",e.productNotAvailable)}}function Zd(t,o){if(t&1){let e=I();l(0,"bb-io-release-notes-table",30),C("releaseNoteSelected",function(n){M(e);let r=u();return N(r.onReleaseNoteSelected(n))}),a()}if(t&2){let e=u();m("dataSource",e.dataSource())("pageSizeSelect",e.landingPageFromGroup.controls.pageSizeSelect)("highlight",e.searchText())}}var xa=(()=>{class t{dialog=f(Me);snackBar=f(Ui);releaseAdvisorService=f(Ae);route=f(Mt);router=f(Ue);destroyRef=f(L);releaseAdvisorAdminService=f(eo);selectSoftwareComponent;dataSource=V(new le([]));initDataSource=V(new le([]));softwareComponentSelection=V(void 0);productJourneyList=V([]);clearSearchTrigger=V(0);clearSelectionTrigger=V(0);currentSearchQuery=V("");searchText=V("");showLoader=V(!1);productSupported=V(!0);placeHolderData=V(void 0);notificationBlock=V(void 0);landingComponentContent=V(void 0);landingPageFromGroup=new ue({pageSizeSelect:new x(50)});pageSizeOptions
27=[{label:"50",value:50},{label:"100",value:100},{label:"500",value:500},{label:"1000",value:1e3}];productNotAvailable=Lr;placeHolderProductNotAvailableConfig=Br;ngOnInit(){this.initializeSoftwareComponentSelectionWithQueryParams(),this.initializeSearchFromQueryParams(),this.initProductJourneyMapping()}onSoftwareComponentSelected(e){this.softwareComponentSelection.set(e),this.loadReleaseNotes(e)}onResetSelection(){this.softwareComponentSelection.set(void 0),this.resetPage()}loadReleaseNotes(e){this.resetPage(),this.showLoader.set(!0),this.clearSearchTrigger.update(i=>i+1),this.updateQueryParamsWithSoftwareComponentSelection(e),this.releaseAdvisorService.fetchReleaseNotesBySoftwareComponent(e.softwareComponent,e.discipline).pipe(v(this.destroyRef)).subscribe({next:i=>{this.renderReleaseNotes(i),this.openReleaseNoteFromQueryParams()},error:i=>{console.error("Error fetching release note",i),this.showLoader.set(!1),this.setGuidanceInstructions(Ji)}})}applyFilters({changeType:e,breaking:i,status:n,productJourney:r,textSearch:d}){this.searchText.set(d||"");let _=this.dataSource();_.filter=(d||"").trim().toLowerCase(),_.paginator?.firstPage();let T=this.initDataSource().data.filter(P=>(e.length===0||e.includes(P.changeType.name))&&(i.length===0||i.includes(P.isBreakingChange?ot.breakingChange:ot.nonBreakingChange))&&(n.length===0||n.includes(P.status.name))&&(r.length===0||r.includes(P.productJourney||"Others")));_.data=T,this.dataSource.set(_),_?.filteredData?.length===0&&this.setGuidanceInstructions(Di)}setGuidanceInstructions(e,i){this.placeHolderData.set(e),this.notificationBlock.set(i)}importReleaseNotes(e){this.dialog.open(ha,{data:{event:e},width:"100%",maxWidth:"95vw",height:"100%",maxHeight:"90vh",disableClose:!0}).afterClosed().pipe(v(this.destroyRef)).subscribe(()=>{e.target.value=null})}createReleaseNote(){this.dialog.open(Ni,{data:{discipline:this.softwareComponentSelection()?.discipline||"",softwareComponent:this.softwareComponentSelection()?.softwareComponent||"",isCreate:!0},width:"70vw",height:"80vh",disableClose:!0}).afterClosed().pipe(v(this.destroyRef)).subscribe(i=>{if(i?.action==="refresh"){let n={discipline:i.releaseNote.discipline,softwareComponent:i.releaseNote.componentId};this.selectSoftwareComponent&&this.selectSoftwareComponent.refreshComponentIds(),this.onSoftwareComponentSelected(n)}})}triggerSBOMSync(){this.releaseAdvisorAdminService.triggerSBOMSync().pipe(v(this.destroyRef)).subscribe(()=>{this.snackBar.open("SBOM sync triggered successfully. Please wait for couple of minutes for the sync to complete.","",{duration:5e3})})}searchSoftwareComponent(){this.dialog.open(ba,{data:this.productJourneyList(),width:"70vw",height:"80vh",disableClose:!0})}onSearchSubmit(e){if(!e||e.trim().length===0)return;let i=e.trim();this.showLoader.set(!0),this.resetPage(),this.clearSelectionTrigger.update(n=>n+1),this.currentSearchQuery.set(i),this.router.navigate([],{relativeTo:this.route,queryParams:{search:i,discipline:null,softwareComponent:null},queryParamsHandling:"merge"}),this.releaseAdvisorService.searchReleaseNotes(i).pipe(v(this.destroyRef)).subscribe({next:n=>{this.renderReleaseNotes(n),this.openReleaseNoteFromQueryParams(),this.showLoader.set(!1)},error:n=>{console.error("Error searching release notes:",n),this.showLoader.set(!1),this.handleSearchError(n,i)}})}editReleaseNote(e){this.dialog.open(Ni,{data:{releaseData:e,isCreate:!1},width:"70vw",height:"80vh",disableClose:!0}).afterClosed().pipe(v(this.destroyRef)).subscribe(n=>{n?.action==="refresh"&&this.onSoftwareComponentSelected({discipline:n.releaseNote.discipline,softwareComponent:n.releaseNote.componentId})})}openReleaseNote(e){let i=this.dialog.open(_a,{data:{releaseNote:e,releaseNoteIndex:this.dataSource().filteredData.findIndex(n=>n.id===e.id),releaseNoteCollection:this.dataSource().filteredData,showProductJourney:!0,showShareButton:!0},width:"70vw",height:"80vh",disableClose:!0});this.router.navigate([],{queryParams:{open:e.id},queryParamsHandling:"merge"}),i.afterClosed().pipe(vn(this.route.queryParams),v(this.destroyRef)).subscribe(([n,r])=>
27{if(n)switch(n.action){case"refresh":this.onSoftwareComponentSelected({discipline:n.releaseNote.discipline,softwareComponent:n.releaseNote.componentId}),this.router.navigate([],{queryParams:ne(O({},r),{open:void 0}),queryParamsHandling:"merge"});break;case"edit":this.editReleaseNote(n.releaseNote);break;case"delete":this.dialog.closeAll(),this.onSoftwareComponentSelected({discipline:n.releaseNote.discipline,softwareComponent:n.releaseNote.componentId}),this.router.navigate([],{queryParams:ne(O({},r),{open:void 0}),queryParamsHandling:"merge"});break}else this.router.navigate([],{queryParams:ne(O({},r),{open:void 0}),queryParamsHandling:"merge"})})}onReleaseNoteSelected(e){switch(e.action){case"open":this.openReleaseNote(e.releaseNote);break;case"edit":this.editReleaseNote(e.releaseNote);break;case"delete":this.deleteReleaseNote(e.releaseNote);break}}resetPage(){this.searchText.set(""),this.dataSource.set(new le([])),this.initDataSource.set(new le([])),this.setGuidanceInstructions(Fr)}renderReleaseNotes(e){return qe(this,null,function*(){e.length===0&&this.setGuidanceInstructions(Di),this.dataSource.set(new le(e)),this.initDataSource.set(new le(e)),this.showLoader.set(!1)})}initializeSoftwareComponentSelectionWithQueryParams(){let e=this.route.snapshot.queryParams;if("discipline"in e&&"softwareComponent"in e){let i={discipline:e.discipline,softwareComponent:e.softwareComponent};this.onSoftwareComponentSelected(i)}}initializeSearchFromQueryParams(){let e=this.route.snapshot.queryParams;if("search"in e&&e.search){let i=e.search;this.onSearchSubmit(i)}}updateQueryParamsWithSoftwareComponentSelection(e){this.router.navigate([],{relativeTo:this.route,queryParams:ne(O({},e),{search:null}),queryParamsHandling:"merge"})}deleteReleaseNote(e){this.dialog.open(en,{data:{releaseNoteId:e.id,softwareComponent:e.componentId,releaseNoteTitle:e.title},width:"50%"}).afterClosed().pipe(v(this.destroyRef)).subscribe(n=>{n.data&&this.onSoftwareComponentSelected({discipline:e.discipline,softwareComponent:e.componentId})})}openReleaseNoteFromQueryParams(){if(this.dialog.openDialogs.length>0)return;let e=this.route.snapshot.queryParams;if("open"in e){let i=parseInt(e.open,10);if(isNaN(i))return;let n=this.dataSource().data.find(r=>r.id===i);n&&this.openReleaseNote(n)}}initProductJourneyMapping(){this.releaseAdvisorService.fetchProductJourney().pipe(v(this.destroyRef)).subscribe(e=>{this.productJourneyList.set(e.sort((i,n)=>{let r=i.name.toLowerCase().trim(),d=n.name.toLowerCase().trim();return r.localeCompare(d)}))})}handleSearchError(e,i){let n={heading:`Search Failed for '${i}'`,content:e.error.message||"An unexpected error occurred.",icon:{iconName:"diamond-exclamation",iconColor:"text-warning"}};this.setGuidanceInstructions(n)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-contributor-view"]],viewQuery:function(i,n){if(i&1&&Re(xo,5),i&2){let r;Ie(r=ke())&&(n.selectSoftwareComponent=r.first)}},decls:40,vars:16,consts:[[1,"bg-light","rounded-br-max","pt-safe","pb-6"],[1,"flex","items-start","justify-between","w-page","mx-auto"],[1,"relative","mx-auto","w-page","mt-14"],[1,"toolbar-section"],[1,"toolbar-section__search"],[3,"softwareComponentSelected","resetEvent","initialSoftwareComponentSelection","clearSelectionTrigger"],[1,"toolbar-section__or-divider"],[1,"toolbar-section__or-divider-line"],[1,"text-xs","text-gray","uppercase","font-medium","tracking-wider"],[3,"searchSubmit","clearSearchTrigger","initialSearchValue"],[1,"toolbar-section__actions"],["BBioButton","",3,"click"],["BBioButton",""],["type","file","accept",".csv",1,"hidden",3,"change"],[1,"text-white"],["BBioButton","","color","black",1,"hover:bg-black",3,"click"],[1,"flex","p-10"],[1,"sidebar"],[3,"filterSubmit","disabled","initialCollection","filteredCollection"],[1,"content-area"],[1,"flex","items-center","justify-end","gap-6"],[1,"items","flex","items-center"],[1,"text-subtitle-bold","text-primary-darker","pr-4","uppercase"],[3,"formGroup"],["formControlName","pageSizeSelect","placeholder","Select page size",1,"w-30","max-w-30",3,"disabled","options","multiple"],[1,"placeholder-container"],[3,"placeholderInput","notificationBlock"],[3,"dataSource","pageSizeSelect","highlight"],[1,"text-body","w-[530px]","mt-4"],[1,"text-h4","text-dark","mt-8"],[3,"releaseNoteSelected","dataSource","pageSizeSelect","highlight"]],template:function(i,n){i&1&&(l(0,"header",0)(1,"div",1),g(2,Kd,4,2,"div"),a()(),p(3,"bbio-divider"),l(4,"div",2)(5,"section",3)(6,"div",4)(7,"bb-io-select-software-component",5),C("softwareComponentSelected",function(d){return n.onSoftwareComponentSelected(d)})("resetEvent",function(){return n.onResetSelection()}),a(),l(8,"div",6),p(9,"span",7),l(10,"span",8),c(11,"Or"),a(),p(12,"span",7),a(),l(13,"bb-io-search-software-component",9),C("searchSubmit",function(d){return n.onSearchSubmit(d)}),a()(),l(14,"div",10)(15,"button",11),C("click",function(){return n.createReleaseNote()}),c(16,"Create release note"),a(),l(17,"label",12),c(18," Import release notes "),l(19,"input",13),C("change",function(d){return n.importReleaseNotes(d)}),a()(),l(20,"button",11),C("click",function(){return n.searchSoftwareComponent()}),l(21,"span",14),c(22,"Search Software Component"),a()(),l(23,"button",15),C("click",function(){return n.triggerSBOMSync()}),l(24,"span",14),c(25,"Sync SBOMs"),a()()()()(),l(26,"section",16)(27,"div",17)(28,"bb-io-filter-section",18),C("filterSubmit",function(d){return n.applyFilters(d)}),a()(),l(29,"div",19)(30,"div",20)(31,"div",21)(32,"div",22),c(33," Items per page "),a(),l(34,"form",23),p(35,"bbio-select",24),a()()(),g(36,Qd,4,0,"div",25),g(37,Yd,1,2,"bb-io-placeholder-container",26),g(38,Xd,1,2,"bb-io-placeholder-container",26),g(39,Zd,1,3,"bb-io-release-notes-table",27),a()()),i&2&&(s(2),h(n.landingComponentContent()?2:-1),s(5),m("initialSoftwareComponentSelection",n.softwareComponentSelection())("clearSelectionTrigger",n.clearSelectionTrigger()),s(6),m("clearSearchTrigger",n.clearSearchTrigger())("initialSearchValue",n.currentSearchQuery()),s(15),m("disabled",n.initDataSource().data.length===0)("initialCollection",n.initDataSource().data)("filteredCollection",n.dataSource().filteredData),s(6),m("formGroup",n.landingPageFromGroup),s(),m("disabled",n.initDataSource().data.length===0)("options",n.pageSizeOptions)("multiple",!1),s(),h(n.showLoader()?36:-1),s(),h(n.placeHolderData()&&
27!(n.showLoader()||n.dataSource().filteredData.length>0)&&n.productSupported()?37:-1),s(),h(n.productSupported()?-1:38),s(),h(n.dataSource().filteredData.length>0?39:-1))},dependencies:[Et,Zi,Sa,hi,It,X,si,Y,fe,Q,ce,de,ge,xo,ya,zi],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.w-530[_ngcontent-%COMP%]{width:530px}@media(max-width:1128px){.w-530[_ngcontent-%COMP%]{width:100%}}.mt-70[_ngcontent-%COMP%]{margin-top:85px}.pb-120[_ngcontent-%COMP%]{padding-bottom:120px}.content-container[_ngcontent-%COMP%]{padding:5rem}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:15%;overflow-x:hidden;overflow-y:auto;background-color:#fff;gap:2em}.content-area[_ngcontent-%COMP%]{width:85%;min-height:600px;padding-bottom:2em}.center-aligned-box[_ngcontent-%COMP%], .placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40vh}.toolbar-section[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between;gap:3rem}.toolbar-section__search[_ngcontent-%COMP%]{display:flex;flex:1 1 0;flex-direction:column;min-width:0;gap:.75rem}.toolbar-section__or-divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.25rem 0}.toolbar-section__or-divider-line[_ngcontent-%COMP%]{flex:1;height:1px;background-color:#e1e8ef}.toolbar-section__actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;align-items:flex-start;justify-content:flex-end;max-width:420px;
27gap:.5rem}"]})}return t})();var Na=fn(Pr());var em=["paginator"];function tm(t,o){if(t&1&&p(0,"bbio-notification-block",2),t&2){let e=u();m("text",e.notificationText)}}function im(t,o){t&1&&(l(0,"th",22)(1,"span",23),c(2," Product Group "),a()())}function nm(t,o){if(t&1&&(l(0,"p"),c(1),y(2,"componentNameTransform"),a()),t&2){let e=u().$implicit;s(),E(" ",$(2,1,e.productJourney)," ")}}function om(t,o){t&1&&p(0,"i",25)}function rm(t,o){if(t&1&&(l(0,"td",24),g(1,nm,3,3,"p")(2,om,1,0,"i",25),a()),t&2){let e=o.$implicit;s(),h(e!=null&&e.productJourney&&(e==null?null:e.productJourney)!=="UNKNOWN"?1:2)}}function am(t,o){t&1&&(l(0,"th",22)(1,"span",26),c(2," Software component "),a()())}function lm(t,o){if(t&1&&(p(0,"td",27),y(1,"componentNameTransform"),y(2,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(2,3,$(1,1,e.componentId),i.searchText),U)}}function sm(t,o){t&1&&(l(0,"th",28)(1,"span",29),c(2," Version "),a()())}function cm(t,o){if(t&1&&(p(0,"td",27),y(1,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(1,1,e.componentSemver,i.searchText),U)}}function dm(t,o){t&1&&(l(0,"th",30)(1,"span",31),c(2," Calver "),a()())}function mm(t,o){if(t&1&&(p(0,"span",32),y(1,"highlightSearch")),t&2){let e=u().$implicit,i=u(2);m("innerHTML",se(1,1,e.introducedInCalVer,i.searchText),U)}}
27function pm(t,o){if(t&1&&(p(0,"span",33),y(1,"highlightSearch")),t&2){let e=u().$implicit,i=u(2);m("innerHTML",se(1,1,e.introducedInCalVer,i.searchText),U)}}function um(t,o){if(t&1&&(l(0,"td",24),g(1,mm,2,4,"span",32)(2,pm,2,4,"span",33),a()),t&2){let e=o.$implicit;s(),h(e.introducedInCalVer==="-"?1:2)}}function fm(t,o){t&1&&(l(0,"th",28),c(1," Change type "),a())}function gm(t,o){if(t&1&&(l(0,"td",34),p(1,"div",35),y(2,"highlightSearch"),a()),t&2){let e=o.$implicit,i=u(2);s(),m("innerHTML",se(2,2,e.changeType.name,i.searchText),U)("ngClass",i.changeTypeColorMapping[e.changeType.name])}}function hm(t,o){t&1&&(l(0,"th",30)(1,"span",36),c(2," Change "),a()())}function _m(t,o){if(t&1&&(p(0,"td",27),y(1,"markdown"),y(2,"async"),y(3,"highlightSearch")),t&2){let e=o.$implicit,i=u(2);m("innerHTML",se(3,5,$(2,3,$(1,1,e.title))||"",i.searchText),U)}}function bm(t,o){t&1&&(l(0,"th",28),c(1," Breaking Change "),a())}function Cm(t,o){t&1&&p(0,"i",38)}function vm(t,o){t&1&&p(0,"i",25)}function Sm(t,o){if(t&1&&(l(0,"td",37),g(1,Cm,1,0,"i",38)(2,vm,1,0,"i",25),a()),t&2){let e=o.$implicit;s(),h(e.isBreakingChange?1:2)}}function ym(t,o){t&1&&p(0,"tr",39)}function xm(t,o){if(t&1){let e=I();l(0,"tr",40),C("click",function(){let n=M(e).$implicit,r=u(2);return N(r.viewChanges(n))}),a()}}function wm(t,o){if(t&1&&(l(0,"div",3)(1,"table",4),H(2,5),R(3,im,3,0,"th",6)(4,rm,3,1,"td",7),J(),H(5,8),R(6,am,3,0,"th",6)(7,lm,3,6,"td",9),J(),H(8,10),R(9,sm,3,0,"th",11)(10,cm,2,4,"td",9),J(),H(11,12),R(12,dm,3,0,"th",13)(13,um,3,1,"td",7),J(),H(14,14),R(15,fm,2,0,"th",11)(16,gm,3,5,"td",15),J(),H(17,16),R(18,hm,3,0,"th",13)(19,_m,4,8,"td",9),J(),H(20,17),R(21,bm,2,0,"th",11)(22,Sm,3,1,"td",18),J(),R(23,ym,1,0,"tr",19)(24,xm,1,0,"tr",20),a(),p(25,"mat-paginator",21,0),a()),t&2){let e=u();s(),m("dataSource",e.dataSource),s(22),m("matHeaderRowDef",e.displayedColumns),s(),m("matRowDefColumns",e.displayedColumns),s(),lt("hidden",e.dataSource.filteredData.length<=e.pageSizeSelect.value),m("length",e.dataSource.filteredData.length)("pageSize",e.pageSizeSelect.value)}}var wa=(()=>{class t{refresh=new De;searchText;pageSizeSelect=new x(50);paginator;sort;changeTypeColorMapping=O({},di);displayedColumns=[];hasValidIntroducedInCalVerValue=!1;notificationText="";hasOpenedFromQueryParam=!1;dialog=f(Me);destroyRef=f(L);analyticsEventsService=f(gi);activateRoute=f(Mt);location=f(On);_dataSource=new le([]);set dataSource(e){this._dataSource=e,this.updateCalVerProperties(),e.data.length>0&&this.openViewChangesDialogByReleaseNoteId()}get dataSource(){return this._dataSource}updateCalVerProperties(){this.hasValidIntroducedInCalVerValue=this.dataSource.data.some(i=>"introducedInCalVer"in i&&i.introducedInCalVer!=null);let e=["productJourney","componentName","componentSemver","calver","description","changeType","isBreakingChange"];this.displayedColumns=e.filter(i=>i!=="calver"||this.hasValidIntroducedInCalVerValue)}ngAfterViewInit(){this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(e,i)=>{switch(i){case"changeType":return e.changeType?.name;case"componentName":return e.componentId?.split("/")[1]??e.componentId;case"componentSemver":return z(e.componentSemver);default:return String(e[i]??"")}}}ngOnInit(){this.displayedColumns=["productJourney","componentName","componentSemver","description","changeType","isBreakingChange"],this.dataSource.data.length>0&&this.updateCalVerProperties(),this.pageSizeSelect.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.dataSource.paginator?._changePageSize(e),this.dataSource.paginator?.firstPage()})}viewChanges(e){if(window.getSelection()?.toString())return;let n=this.dialog.open(Yi,{data:{releaseNote:e,releaseNoteIndex:this.dataSource.filteredData.findIndex(r=>
27r.id===e.id),releaseNoteCollection:this.dataSource.filteredData,isReleaseAdvisor:!0,showProductJourney:!0,showShareButton:!1},width:"70vw",height:"80vh",disableClose:!0});this.updateOpenQueryParam(e.id),n.afterOpened().pipe(v(this.destroyRef),je(()=>{this.analyticsEventsService.logEvent({category:"release_notes_details",action:"click",label:"View release notes details"})})).subscribe(),n.afterClosed().pipe(v(this.destroyRef)).subscribe(()=>{this.updateOpenQueryParam(null)})}updateOpenQueryParam(e){let i=new URL(window.location.href);e!==null?i.searchParams.set("open",String(e)):i.searchParams.delete("open"),this.location.replaceState(i.pathname+i.search)}openViewChangesDialogByReleaseNoteId(){if(this.hasOpenedFromQueryParam)return;let e=this.activateRoute.snapshot.queryParams.open;if(!e)return;let i=this.dataSource.filteredData.find(n=>n.id===Number.parseInt(e));i&&(this.hasOpenedFromQueryParam=!0,this.viewChanges(i))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-release-notes-table"]],viewQuery:function(i,n){if(i&1&&(Re(em,5),Re(Zt,5)),i&2){let r;Ie(r=ke())&&(n.paginator=r.first),Ie(r=ke())&&(n.sort=r.first)}},inputs:{searchText:"searchText",pageSizeSelect:"pageSizeSelect",dataSource:"dataSource"},outputs:{refresh:"refresh"},decls:3,vars:2,consts:[["paginator",""],[1,"mb-4"],["variant","success",3,"text"],[1,"custom-table-container"],["mat-table","","matSort","",1,"mat-elevation-z8","text-subtitle",3,"dataSource"],["matColumnDef","productJourney"],["class","text-subtitle-bold text-weight-bold leading-6","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","leading-6","mat-cell","",4,"matCellDef"],["matColumnDef","componentName"],["class","leading-6","mat-cell","",3,"innerHTML",4,"matCellDef"],["matColumnDef","componentSemver"],["class","text-subtitle-bold leading-6","mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","calver"],["class","text-subtitle-bold leading-6","mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","changeType"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","isBreakingChange"],["mat-cell","","class","font-libre-franklin leading-6",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","","color","primary",3,"length","pageSize"],["mat-header-cell","","mat-sort-header","",1,"text-subtitle-bold","text-weight-bold","leading-6"],["bbioTooltip","Product journey/group/feature, or tool"],["mat-cell","",1,"leading-6"],[1,"icon","icon-hyphen"],["bbioTooltip","Technical component for the release note"],["mat-cell","",1,"leading-6",3,"innerHTML"],["mat-header-cell","","mat-sort-header","",1,"text-subtitle-bold","leading-6"],["bbioTooltip","Semver/Calver of the component"],["mat-header-cell","",1,"text-subtitle-bold","leading-6"],["bbioTooltip","This version of the software component was introduced in this product CalVer"],["bbioTooltip","This version of the software component was not released as part of a product CalVer",3,"innerHTML"],[3,"innerHTML"],["mat-cell",""],[1,"custom-badge","text-subheader-bold","uppercase",3,"innerHTML","ngClass"],["bbioTooltip","Click on a release note to see more details"],["mat-cell","",1,"font-libre-franklin","leading-6"],[1,"icon","icon-circle-exclamation-check","text-h3"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(i,n){i&1&&(l(0,"div",1),g(1,tm,1,1,"bbio-notification-block",2),a(),g(2,wm,27,7,"div",3)),i&2&&(s(),h(n.notificationText?1:-1),s(),h(n.dataSource.data.length>0?2:-1))},dependencies:[ut,Vt,Ft,jt,Bt,At,Gt,Lt,$t,Ut,zt,re,Ce,pi,Yt,no,Zt,io,ze,mt,Ge,Rt,ui,rt],styles:[".custom-table-container[_ngcontent-%COMP%]{max-width:100%;overflow:auto}.custom-table-container[_ngcontent-%COMP%]   table[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:none;font-family:Libre Franklin;text-align:left;vertical-align:middle}.custom-table-container[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:600}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-cell[_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#ebf0f5;font-size:.875rem;font-style:normal;font-weight:400;cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-elevation-z8[_ngcontent-%COMP%], .custom-table-container[_ngcontent-%COMP%]   .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-header-row[_ngcontent-%COMP%]{border-bottom:rgb(204,213,223) solid 1px}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-paginator[_ngcontent-%COMP%]{color:#295eff}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:#295eff}.custom-table-container[_ngcontent-%COMP%]   .custom-badge[_ngcontent-%COMP%]{width:7rem}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]{cursor:pointer}.custom-table-container[_ngcontent-%COMP%]   .mat-mdc-row[_ngcontent-%COMP%]:hover{background-color:#ebf0f5}.mat-column-viewDetails[_ngcontent-%COMP%]{width:10%}.mat-column-productJourney[_ngcontent-%COMP%]{width:14%}.mat-column-componentName[_ngcontent-%COMP%]{width:18%}.mat-column-calver[_ngcontent-%COMP%]{width:8%}.icon-circle-exclamation-check[_ngcontent-%COMP%]{color:#bf2310}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}#hideMe[_ngcontent-%COMP%]{-moz-animation:cssAnimation 0s ease-in 5s forwards;-webkit-animation:_ngcontent-%COMP%_cssAnimation 0s ease-in 5s forwards;-o-animation:cssAnimation 0s ease-in 5s forwards;animation:_ngcontent-%COMP%_cssAnimation 0s ease-in 5s forwards;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@keyframes _ngcontent-%COMP%_cssAnimation{to{width:0;height:0;overflow:hidden}}@-webkit-keyframes _ngcontent-%COMP%_cssAnimation{to{visibility:hidden;width:0;height:0}}"]})}return t})();var Ta="2024.09-LTS",Da=["android:business-banking-app","ios:business-banking-app","android:retail-banking-app","ios:retail-banking-app"];var Tm=(t,o)=>[t,o,"text-xl","-mt-1"],oo=(()=>{class t{text;variant="warning";get icon(){return`icon-${this.icons[this.variant]}`}get iconColor(){return`text-${this.variant}`}
27get cssClasses(){return`${this.variant} ${this.iconColor} `}icons={info:"circle-info",danger:"brake-warning",warning:"diamond-exclamation",success:"circle-check"};static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-notification-block"]],inputs:{text:"text",variant:"variant"},decls:5,vars:11,consts:[[1,"relative","flex","rounded","p-4","pl-7","bg-light","gap-x-3","gap-y-2","w-full"],[1,"absolute","top-0","left-0","w-4","h-full","rounded-l-md","background-gradient"],[1,"text-darker","text-subtitle",3,"innerHTML"]],template:function(i,n){i&1&&(ae(0,"div",0),et(1,"div",1)(2,"i")(3,"p",2),y(4,"safe"),oe()),i&2&&(Fi(n.cssClasses),s(2),Fi(ai(8,Tm,n.icon,n.iconColor)),s(),ri("innerHTML",se(4,5,n.text,"html"),U))},dependencies:[kn],styles:[".background-gradient[_ngcontent-%COMP%]{background:var(--background-gradient)}.warning[_ngcontent-%COMP%]{--background-gradient: linear-gradient(225deg, #f9c646 14.64%, #fa8d28 85.36%)}.info[_ngcontent-%COMP%]{--background-gradient: linear-gradient(45deg, #274fc4 14.64%, #36f 85.36%)}.success[_ngcontent-%COMP%]{--background-gradient: linear-gradient(225deg, #26bc71 14.64%, #15673e 85.36%)}.danger[_ngcontent-%COMP%]{--background-gradient: linear-gradient(225deg, #bf2310 14.64%, #691309 85.36%)}"]})}return t})();function Dm(t,o){if(t&1&&(l(0,"div",7),p(1,"bb-io-notification-block",15),a()),t&2){let e=u();s(),m("text",e.bannerNotificationText())}}function Om(t,o){t&1&&p(0,"span",18)}function Mm(t,o){if(t&1&&(l(0,"div",9)(1,"div",16)(2,"span",17),c(3),a(),g(4,Om,1,0,"span",18),a(),p(
275,"bb-io-typeahead",19),a()),t&2){let e=u();s(3),te(e.domainLabel()),s(),h(e.domainLabel()==="Edition"?4:-1),s(),m("disabled",!e.productSelectionFilterNames.PRODUCT_TITLE||e.domainOptions().length===1)("options",e.domainOptions())("placeholder","Select your "+e.domainLabel())("formControlName",e.productSelectionFilterNames.DOMAIN)}}function Nm(t,o){if(t&1&&(l(0,"div",9)(1,"div",5),c(2,"Discipline"),a(),p(3,"bb-io-typeahead",20),a()),t&2){let e=u();s(3),m("disabled",e.disciplineDropdownOptions().length===1)("options",e.disciplineDropdownOptions())("formControlName",e.productSelectionFilterNames.DISCIPLINE)}}function Pm(t,o){if(t&1){let e=I();l(0,"div",10)(1,"mat-tab-group",21),C("selectedIndexChange",function(n){M(e);let r=u();return N(r.onVersionSelectionTabChanged(n))}),l(2,"mat-tab",22)(3,"div",23)(4,"div",9)(5,"div",24),c(6," Version "),p(7,"span",25),a(),p(8,"bb-io-typeahead",26),a()()(),l(9,"mat-tab",27)(10,"div",28)(11,"div",9)(12,"div",24)(13,"span",17),c(14,"From"),a(),p(15,"span",29),a(),p(16,"bb-io-typeahead",30),a(),l(17,"div",9)(18,"div",24)(19,"span",17),c(20,"To"),a(),p(21,"span",31),a(),p(22,"bb-io-typeahead",32),a()()()()()}if(t&2){let e,i=u();s(),m("selectedIndex",i.activeTabIdx()),s(7),m("disabled",i.singleVersionCalVerOptions().length===0)("formControlName",i.SINGLE_CAL_VER_FORM_CONTROL_NAME)("options",i.singleVersionCalVerOptions()),s(8),m("options",i.fromCalVerOptions())("formControlName",i.productSelectionFilterNames.FROM_VERSION)("disabled",i.fromCalVerOptions().length===0),s(6),m("options",i.toCalVerOptions())("formControlName",i.productSelectionFilterNames.TO_VERSION)("disabled",!((e=i.productSelectionForm.get(i.productSelectionFilterNames.FROM_VERSION))!=null&&e.value))}}var Em={[Pe.ANDROID.toUpperCase()]:Pe.ANDROID,[Pe.BACKEND.toUpperCase()]:Pe.BACKEND,[Pe.IOS.toUpperCase()]:Pe.IOS,[Pe.WEB.toUpperCase()]:Pe.WEB},Rm={[Pe.ANDROID.toUpperCase()]:Ht.ANDROID,[Pe.BACKEND.toUpperCase()]:Ht.BACKEND,[Pe.IOS.toUpperCase()]:Ht.IOS,[Pe.WEB.toUpperCase()]:Ht.WEB},ro=(()=>{class t{dialogData=f(Oe);matDialogRef=f(Ve);destroyRef=f(L);TAB_NAME_TO_TAB_INDEX={SINGLE_VERSION:0,COMPARE_VERSIONS:1};COMPOSABLE_BANKING_APPS_BANNER_NOTIFICATION_TEXT=`
28    For all Android and iOS releases:<br>
29    \u2022 From v2024.10 and later, select the Retail Banking composable edition.<br>
30    \u2022 For versions before and including v2024.09 select Retail Banking USA or Universal.<br>
31    For more on composable apps see:
32    <a
33    target="_blank"
34    rel="noopener noreferrer"
35    href="https://backbase.io/documentation/retail-banking-usa/2025.07/app-foundation/mobile/composable-app-understand-android">Android</a>
36    and <a
37    target="_blank"
38    rel="noopener noreferrer"
39    href="https://backbase.io/documentation/retail-banking-usa/2025.07/app-foundation/mobile/composable-app-understand-ios">iOS</a>.
40  `;WEALTH_MANAGEMENT_BANNER_NOTIFICATION_TEXT=`
41    Wealth Management product EOL:<br>
42    v2025.09-LTS is the final version of the Wealth Management product.
43    This version is supported for the customary 18 months until v2027.03-LTS,
44    as described in
45    <a
46    target="_blank"
47    rel="noopener noreferrer"
48    href="https://backbase.io/documentation/support/calver-releases-policy/calver-support-policy#_lts_release_cycle_and_support">
49    CalVer release and maintenance support policy.</a>
50    <br>
51    For more information and support, contact your Backbase Support team.
52
53  `;bannerNotificationText=k(()=>Rr.includes(this.formValueChanges().productTitle)?this.COMPOSABLE_BANKING_APPS_BANNER_NOTIFICATION_TEXT:this.formValueChanges().productTitle===me.WEALTH_MANAGEMENT?this.WEALTH_MANAGEMENT_BANNER_NOTIFICATION_TEXT:"");SINGLE_CAL_VER_FORM_CONTROL_NAME="calVer";productSelectionFilterNames=B;activeTabIdx=V(this.dialogData.versionView===St.SINGLE_VERSION?this.TAB_NAME_TO_TAB_INDEX.SINGLE_VERSION:this.TAB_NAME_TO_TAB_INDEX.COMPARE_VERSIONS);productSelectionForm=new ue({productTitle:new x,domain:new x,sbomId:new x,subDomainName:new x,subDomainId:new x,templateType:new x,discipline:new x,fromVersion:new x,toVersion:new x,calVer:new x},{validators:e=>{let i=e.get(B.FROM_VERSION)?.value,n=e.get(B.TO_VERSION)?.value,r=e.get(this.SINGLE_CAL_VER_FORM_CONTROL_NAME)?.value,d=e.get(B.TEMPLATE_TYPE)?.value,_=e.get(B.DOMAIN)?.value;return d==="standalone"||_&&ft.includes(_)?null:this.isSingleVersionTab()?r?null:{required:!0}:this.isSingleVersionTab()?{required:!0}:!i||!n?{required:!0}:null}});formValueChanges=V({productTitle:this.dialogData.filterCriteria.productTitle,domain:this.dialogData.filterCriteria.domain,discipline:this.dialogData.filterCriteria.discipline,subDomainName:this.dialogData.filterCriteria.subDomainName,subDomainId:this.dialogData.filterCriteria.subDomainId,sbomId:this.dialogData.filterCriteria.sbomId,templateType:this.dialogData.filterCriteria.templateType,calVer:this.dialogData.versionView===St.SINGLE_VERSION?yt(this.dialogData.filterCriteria.toVersion||""):"",fromVersion:this.dialogData.versionView!==St.SINGLE_VERSION?yt(this.dialogData.filterCriteria.fromVersion||""):"",toVersion:this.dialogData.versionView!==St.SINGLE_VERSION?yt(this.dialogData.filterCriteria.toVersion||""):""});singleCalVerOptions=k(()=>{let e=this.formValueChanges().productTitle,i=this.formValueChanges().domain,n=this.findDomainByTitle(e,i);return n?this.getCalVerOptionsBySubdomainAndDiscipline(n.subDomains,this.formValueChanges().discipline??""):[]});singleVersionCalVerOptions=k(()=>this.singleCalVerOptions());productOptions=k(()=>this.makeProductOptions());domainOptions=k(()=>this.makeDomainOptions());disciplineDropdownOptions=k(()=>this.makeDisciplineOptions());fromCalVerOptions=k(()=>this.singleCalVerOptions().slice(1).map(e=>({value:e.value,label:e.value,group:e.value.slice(0,7)})));toCalVerOptions=k(()=>{let e=this.formValueChanges().fromVersion??"";return this.makeToCalVerOptions(e)});showCalVerSelectionBox=k(()=>{let e=this.formValueChanges().templateType;return e?e!=="standalone":!1});showDisciplineSelectionBox=k(()=>this.formValueChanges().productTitle&&this.disciplineDropdownOptions().length>=1);domainLabel=k(()=>{switch(this.formValueChanges().productTitle){case me.RETAIL_BANKING:case me.BUSINESS_BANKING:case me.WEALTH_MANAGEMENT:return"Edition";default:return"Domain"}});ngOnInit(){this.updateInitialFormValue(),this.handleProductSelection(),this.handleDomainSelection(),this.handleSelectingDiscipline(),this.handleSelectingFromCalVersion(),this.handleUpdatingFormValueState()}closeDialog(){this.matDialogRef.close()}applyFilters(){let e=this.productSelectionForm.getRawValue();if(this.isSingleVersionTab()){let n=this.singleCalVerOptions().findIndex(_=>_.value===e.calVer)+1,r=this.singleCalVerOptions()[n]?.value??"",d={productTitle:e.productTitle,domain:e.domain,subDomainName:e.subDomainName,subDomainId:e.subDomainId,sbomId:e.sbomId,templateType:e.templateType,discipline:e.discipline,fromVersion:r,toVersion:e.calVer};this.matDialogRef.close({filterCriteria:d,versionView:St.SINGLE_VERSION});return}this.matDialogRef.close({filterCriteria:{productTitle:e.productTitle,domain:e.domain,subDomainName:e.subDomainName,subDomainId:e.subDomainId,sbomId:e.sbomId,templateType:e.templateType,discipline:e.discipline,fromVersion:e.fromVersion,toVersion:e.toVersion},versionView:St.COMPARE_VERSIONS})}isSingleVersionTab(){return this.activeTabIdx()===this.TAB_NAME_TO_TAB_INDEX.SINGLE_VERSION}onVersionSelectionTabChanged(e){this.activeTabIdx.set(e),this.productSelectionForm.updateValueAndValidity()}handleProductSelection(){this.productSelectionForm.get(B.PRODUCT_TITLE)?.valueChanges.pipe(v(this.destroyRef)).subscribe(()=>{this.productSelectionForm.get(B.DOMAIN)?.reset(),this.productSelectionForm.get(B.SUBDOMAIN_ID)?.reset(),this.productSelectionForm.get(B.SUBDOMAIN_NAME)?.reset(),this.productSelectionForm.get(B.SBOM_ID)?.reset(),this.productSelectionForm.get(B.TEMPLATE_TYPE)?.reset(),this.productSelectionForm.get(B.DISCIPLINE)?.reset(),this.productSelectionForm.get(B.FROM_VERSION)?.reset(),this.productSelectionForm.get(B.TO_VERSION)?.reset()})}handleDomainSelection(){this.productSelectionForm.get(B.DOMAIN)?.valueChanges.pipe(v(this.destroyRef)).subscribe(()=>{this.productSelectionForm.get(B.SUBDOMAIN_ID)?.reset(),this.productSelectionForm.get(B.SUBDOMAIN_NAME)?.reset(),this.productSelectionForm.get(B.SBOM_ID)?.reset(),this.productSelectionForm.get(B.TEMPLATE_TYPE)?.reset(),this.productSelectionForm.get(B.DISCIPLINE)?.reset(),this.productSelectionForm.get(B.FROM_VERSION)?.reset(),this.productSelectionForm.get(B.TO_VERSION)?.reset();let e=this.domainOptions();if(e.length===1){let[n]=e,r=this.productSelectionForm.get(B.DOMAIN);r?.value!==n.value&&r?.patchValue(n.value)}let i=this.makeDisciplineOptions();i.length===1&&this.productSelectionForm.get(B.DISCIPLINE)?.patchValue(i[0].value)})}handleSelectingDiscipline(){this.productSelectionForm.get(B.DISCIPLINE)?.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.productSelectionForm.get(this.SINGLE_CAL_VER_FORM_CONTROL_NAME)?.reset(),this.productSelectionForm.get(B.FROM_VERSION)?.reset(),this.productSelectionForm.get(B.TO_VERSION)?.reset();let i=this.formValueChanges().domain,n=this.findSubDomainByDomainTitleAndDiscipline(i,e);n&&(this.productSelectionForm.get(B.SUBDOMAIN_ID)?.patchValue(n.id),this.productSelectionForm.get(B.SBOM_ID)?.patchValue(n.sbomId),this.productSelectionForm.get(B.TEMPLATE_TYPE)?.patchValue(n.type))})}handleSelectingFromCalVersion(){this.productSelectionForm.get(B.FROM_VERSION)?.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{let n=this.makeToCalVerOptions(e)[0]?.value??e;this.productSelectionForm.get(B.TO_VERSION)?.patchValue(n)})}handleUpdatingFormValueState(){this.productSelectionForm.valueChanges.pipe(v(this.destroyRef)).subscribe(e=>{this.formValueChanges.set({productTitle:e.productTitle??"",domain:e.domain??"",sbomId:e.sbomId??"",subDomainName:e.subDomainName??"",subDomainId:e.subDomainId??"",templateType:e.templateType??"",discipline:e.discipline??"",calVer:e.calVer??"",fromVersion:e.fromVersion??"",toVersion:e.toVersion??""})})}updateInitialFormValue(){let e=this.formValueChanges();this.productSelectionForm.patchValue(e)}makeProductOptions(){return this.dialogData.products.map(e=>({label:Oi(e.title),value:e.title})).sort((e,i)=>Hi.indexOf(e.label)-Hi.indexOf(i.label))}makeToCalVerOptions(e){return e?this.singleCalVerOptions().filter(i=>z(i.value)>z(e)).map(i=>({value:i.value,label:i.value,group:i.value?.slice(0,7)})):[]}makeDomainOptions(){let e=this.formValueChanges().productTitle,i=this.findProductByTitle(e);return i?Array.from(new Set(i.domains.map(({title:r})=>r))).map(r=>({label:r,value:r})).sort(this.sortByLabel):[]}makeDisciplineOptions(){let e=this.formValueChanges().productTitle,i=this.formValueChanges().domain,n=this.findDomainByTitle(e,i);return n?n.subDomains.map(r=>({label:Em[r.discipline.toUpperCase()],value:Rm[r.discipline.toUpperCase()]})).sort(this.sortByLabel):[]}findProductByTitle(e){return this.dialogData.products.find(i=>i.title===e)}findDomainByTitle(e,i){return this.findProductByTitle(e)?.domains.find(r=>r.title===i)}
53findSubDomainByDomainTitleAndDiscipline(e,i){if(i)return this.dialogData.products.flatMap(n=>n.domains).flatMap(n=>n.subDomains).find(n=>n.domainTitle===e&&n.discipline===i)}getCalVerOptionsBySubdomainAndDiscipline(e,i){if(!i)return[];let n=this.getVersionsForDiscipline(e,i),r=Array.from(new Set(qi(n,"DESC"))),d=this.filterVersionsBasedOnViewType(r);return this.mapVersionsToOptions(d)}getVersionsForDiscipline(e,i){let n=e.filter(r=>r.discipline===i).flatMap(r=>r.versions??[]);if(this.isSingleVersionTab()){let r=this.isComposableBankingApp()?Ta:Un;return n.filter(d=>d!==r)}return n}filterVersionsBasedOnViewType(e){return this.isSingleVersionTab()&&!this.isComposableBankingApp()?this.filterVersionsForSingleVersionView(e):e}filterVersionsForSingleVersionView(e){let i=e.findIndex(T=>kr.test(T)),n=e[e.length-1],r=i!==-1?e[i]:n,d=e.filter(T=>z(T)>=z(r)),_=i!==-1?e[i+1]:"";return _&&d.push(_),d}mapVersionsToOptions(e){return e.map(i=>({label:i.toUpperCase(),value:i,group:i.slice(0,7)}))}sortByLabel(e,i){return e.label.localeCompare(i.label)}isComposableBankingApp(){return Da.includes(this.formValueChanges().sbomId??"")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-product-selection-dialog"]],decls:20,vars:8,consts:[[1,"product-selection-dialog","min-w-[744px]","max-w-[780px]",3,"dialogClose"],[1,"mb-4"],[1,"product-selection-dialog__filter-criteria","mt-8",3,"formGroup"],[1,"flex","w-[100%]"],[1,"flex-1"],[1,"text-subheader-bold","uppercase","label","mb-2"],["placeholder","Select your product",1,"justify-between","min-w-full",3,"options","formControlName"],[1,"flex-1","mt-4","mb-4"],[1,"flex","mt-4","gap-x-4","w-[100%]"],[1,"basis-1/2"],[1,"product-selection-dialog__cal-versions-selection","mt-6"],[1,"product-selection-dialog__action-bar","mt-14","flex","justify-end","gap-x-2"],["BBioButton-stroked","","type","button",1,"text-base",3,"click"],["BBioButton","","type","button",3,"click","disabled"],[1,"icon","icon-check"],["variant","info",3,"text"],[1,"text-subheader-bold","label","mb-2","min-h-[18px]"],[1,"uppercase"],["bbioTooltip","Select the USA, Universal, or composable edition of your product",1,"ml-1","icon","icon-circle-info","cursor-pointer","text-primary"],[1,"justify-between","min-w-full",3,"disabled","options","placeholder","formControlName"],["placeholder","Select a discipline",1,"justify-between","min-w-full","first-letter:uppercase",3,"disabled","options","formControlName"],["disableRipple","true",3,"selectedIndexChange","selectedIndex"],["label","Single version"],[1,"flex"],[1,"text-subheader-bold","label","mb-2"],["bbioTooltip","Display the release notes for this CalVer and its patches",1,"ml-1","icon","icon-circle-info","cursor-pointer","text-primary"],["placeholder","Select version",1,"justify-between","min-w-full",3,"disabled","formControlName","options"],["label","Range of versions"],[1,"flex","gap-x-4"],["bbioTooltip",`The exclusive start CalVer of the range of results. The results will not include the release notes for this version.
54                  `,1,"ml-1","icon","icon-circle-info","cursor-pointer","text-primary"],["placeholder","From version",1,"justify-between","min-w-full",3,"options","formControlName","disabled"],["bbioTooltip","The inclusive end CalVer of the range of results. Displays the release notes for releases up to and including this Calver.",1,"ml-1","icon","icon-circle-info","cursor-pointer","text-primary"],["placeholder","To version",1,"justify-between","min-w-full",3,"options","formControlName","disabled"]],template:function(i,n){if(i&1&&(l(0,"bbio-dialog",0),C("dialogClose",function(){return n.closeDialog()}),l(1,"h3",1),c(2,"Select product and versions"),a(),l(3,"form",2)(4,"div",3)(5,"div",4)(6,"div",5),c(7,"Product"),a(),p(8,"bb-io-typeahead",6),a()(),g(9,Dm,2,1,"div",7),l(10,"div",8),g(11,Mm,6,6,"div",9),g(12,Nm,4,3,"div",9),a(),g(13,Pm,23,10,"div",10),a(),l(14,"div",11)(15,"button",12),C("click",function(){return n.closeDialog()}),c(16," Cancel "),a(),l(17,"button",13),C("click",function(){return n.applyFilters()}),c(18," Apply "),p(19,"i",14),a()()()),i&2){let r;s(3),m("formGroup",n.productSelectionForm),s(5),m("options",n.productOptions())("formControlName",n.productSelectionFilterNames.PRODUCT_TITLE),s(),h(n.bannerNotificationText()?9:-1),s(2),h((r=n.productSelectionForm.get(n.productSelectionFilterNames.PRODUCT_TITLE))!=null&&r.value?11:-1),s(),h(n.showDisciplineSelectionBox()?12:-1),s(),h(n.showCalVerSelectionBox()?13:-1),s(4),m("disabled",n.productSelectionForm.status!=="VALID")}},dependencies:[In,fi,X,Y,fe,Q,ce,de,ge,$n,Ln,mt,oo],encapsulation:2})}return t})();var cn=(()=>{class t{filterCriteria=V({productTitle:"",domain:"",sbomId:"",subDomainName:"",subDomainId:"",templateType:"",discipline:"",fromVersion:"",toVersion:""});products=V([]);static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac})}return t})();
54function Im(t,o){if(t&1&&(l(0,"span",8),c(1),a(),p(2,"i",9)),t&2){let e=u(2);s(),te(e.displayNumberOfReleases())}}function km(t,o){if(t&1&&(l(0,"div",3),g(1,Im,3,1),a()),t&2){let e=u();s(),h(e.displayNumberOfReleases()?1:-1)}}var Oa=(()=>{class t{versionView;filterCriteriaChanged=new De;matDialog=f(Me);productSelectionState=f(cn);analyticsEventsService=f(gi);displayedProductReleasesTitle=k(()=>{let e=this.productSelectionState.filterCriteria();if(e.productTitle)return mi(e)});displayNumberOfReleases=k(()=>{let{fromVersion:e,toVersion:i}=this.productSelectionState.filterCriteria();if(!i)return;let n=this.versionView===St.SINGLE_VERSION,r=d=>d.toUpperCase();if(n){let d=yt(i),_=i.split(".")[2]?.split("-")[0],T=parseInt(_||"0",10),P=isNaN(T)?1:T+1;return`${P} ${P===1?"release":"releases"} (${r(d)})`}return e?`${r(e)} to ${r(i)}`:`1 release (${r(i)})`});showReleaseInformation=k(()=>!ft.includes(this.productSelectionState.filterCriteria().domain));openProductSelectionDialog(){let e=this.matDialog.open(ro,{data:{products:this.productSelectionState.products(),filterCriteria:this.productSelectionState.filterCriteria(),versionView:this.versionView}});e.afterOpened().pipe(wt(1),je(()=>{this.analyticsEventsService.logEvent({category:"product_selection",action:"open",label:"Product Selection Dialog Opened"})})).subscribe(),e.afterClosed().pipe(wt(1)).subscribe(i=>{if(i)try{this.filterCriteriaChanged.emit(ne(O({},i),{filterCriteria:O({},i.filterCriteria),versionView:i.versionView})),this.analyticsEventsService.logEvent({category:"product_selection",action:"submit",label:"Product Selection Dialog Submitted",metaData:{productTitle:i?.filterCriteria?.productTitle,domainName:i?.filterCriteria?.domain,discipline:i?.filterCriteria?.discipline,fromVersion:i?.filterCriteria?.fromVersion,toVersion:i?.filterCriteria?.toVersion,versionView:this.versionView}})}catch(n){console.error("Error getting latest calendar version:",n),this.filterCriteriaChanged.emit(i),this.analyticsEventsService.logEvent({category:"product_selection",action:"error",label:"Product Selection Dialog Error",metaData:{errorMessage:n instanceof Error?n.message:"Unknown error",errorName:n instanceof Error?n.name:"Error"}})}})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-product-selection"]],inputs:{versionView:"versionView"},outputs:{filterCriteriaChanged:"filterCriteriaChanged"},decls:10,vars:2,consts:[[1,"production-selection","items","flex","gap-4","justify-center","items-center"],[1,"flex","flex-col"],[1,"text-sm","discipline-product"],["data-testid","number-of-releases-btn",1,"text-sm","text-dark"],[1,"product-selection-divider"],[1,"flex","items-center"],["BBioButton-stroked","","data-testid","edit-product-selection-btn","type","button","bbioTooltip",`Specify the products, and
55       versions of the release notes that you want to see`,1,"text-base",3,"click"],[1,"icon","icon-pen-field"],[1,"font-normal"],[1,"icon","icon-list-tree"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"span",2),c(3),a(),g(4,km,2,1,"div",3),a(),p(5,"div",4),l(6,"div",5)(7,"button",6),C("click",function(){return n.openProductSelectionDialog()}),c(8," Change Selection "),p(9,"i",7),a()()()),i&2&&(s(3),te(n.displayedProductReleasesTitle()),s(),h(n.showReleaseInformation()?4:-1))},dependencies:[X,mt],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.divider[_ngcontent-%COMP%]{height:1px;background:#e1e8ef}.product-selection-divider[_ngcontent-%COMP%]{border-left:1px solid #e1e8ef}"],changeDetection:0})}return t})();var Ma=(()=>{class t{originalProductsSubject=new gn([]);get originalProducts$(){return this.originalProductsSubject.asObservable()}get originalProductsValue(){return this.originalProductsSubject.getValue()}setOriginalProducts(e){this.originalProductsSubject.next(e)}clearOriginalProducts(){this.originalProductsSubject.next([])}static \u0275fac=function(i){return new(i||t)};static \u0275prov=Te({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vm(t,o){t&1&&p(0,"i",19)}function Am(t,o){t&1&&p(0,"i",20)}function Fm(t,o){t&1&&(l(0,"span",21),p(1,"i",22),c(2," Something went wrong while exporting "),a())}
55function Bm(t,o){if(t&1){let e=I();l(0,"div",13)(1,"div",14),c(2," Items per page "),a(),l(3,"form",15),p(4,"bbio-select",16),a()(),l(5,"div",17)(6,"button",18),C("click",function(){M(e);let n=u();return N(n.downloadReleaseNotes())}),c(7," Export results "),g(8,Vm,1,0,"i",19)(9,Am,1,0,"i",20),a(),g(10,Fm,3,0,"span",21),a()}if(t&2){let e=u();s(3),m("formGroup",e.landingPageFromGroup),s(),m("options",e.pageSizeOptions)("multiple",!1),s(2),m("disabled",e.downloadLoader()==="DOWNLOADING"),s(2),h(e.downloadLoader()==="DOWNLOADING"?8:9),s(2),h(e.downloadLoader()==="ERROR"?10:-1)}}function Lm(t,o){t&1&&(l(0,"div",12),p(1,"bbio-spinner"),l(2,"h2",23),c(3,"Results are loading..."),a()())}function $m(t,o){if(t&1&&p(0,"bb-io-placeholder-container",24),t&2){let e=u(2);m("placeholderInput",e.placeHolderData)}}function jm(t,o){if(t&1&&p(0,"bb-io-release-notes-table",25),t&2){let e=u(2);m("dataSource",e.dataSource)("pageSizeSelect",e.landingPageFromGroup.controls.pageSizeSelect)("searchText",e.searchText)}}function Gm(t,o){if(t&1&&g(0,$m,1,1,"bb-io-placeholder-container",24)(1,jm,1,3,"bb-io-release-notes-table",25),t&2){let e=u();h(e.placeHolderData?0:1)}}var Pa=(()=>{class t{activatedRoute=f(Mt);router=f(Ue);destroyRef=f(L);productSelectionState=f(cn);injector=f(Vi);releaseAdvisorService=f(Ae);matDialog=f(Me);productNavigationService=f(Ma);analyticsEventsService=f(gi);hasError=!1;dataSource=new le([]);initDataSource=new le([]);landingPageFromGroup=new ue({pageSizeSelect:new x(50)});pageSizeOptions=[{label:"50",value:50},{label:"100",value:100},{label:"500",value:500},{label:"1000",value:1e3}];showLoader=V(!1);downloadLoader=V("IDLE");landingComponentContent=Hn;searchText="";notificationText=`
56    <p class="text-sm font-libre-franklin leading-6">
57      See all release notes from v2024.04 and later for your products in the <span class="font-bold">Backbase Release Advisor</span>.
58    <br />
59    You can easily search, sort, and filter release notes by categories such as change type, component, and product.
60    It is now easier to track changes for a specific product over multiple releases.
61   <br />
62   <span class="italic">Please note: Wealth Management and Digital Investing release notes are only available from v2024.12,
63      and Digital Onboarding and Lending release notes remain in the
64      <a href="https://backbase.io/documentation/release-notes" target="_blank" rel="noopener noreferrer">Release Notes publication</a>.
65   </span>
66  </p>
67  `;ngOnInit(){this.handleFetchingReleaseNotesOnProductChanged(),this.handleFetchingProducts()}get placeHolderData(){return this.hasError?Ji:this.dataSource.filteredData.length===0?Di:void 0}get versionView(){return this.activatedRoute.snapshot.queryParams[ho.VERSION_VIEW]??St.SINGLE_VERSION}onFilterCriteriaChanged(e){let{filterCriteria:i,versionView:n}=e,r=ne(O({},i),{[ho.VERSION_VIEW]:n});i.templateType===nt.STANDALONE&&(delete r.fromVersion,delete r.toVersion),this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:Wi(r),queryParamsHandling:"replace"}),this.productSelectionState.filterCriteria.set(i)}downloadReleaseNotes(){this.logDownloadReleaseNotesEvent(this.productSelectionState.filterCriteria());let{productTitle:e,discipline:i,sbomId:n,templateType:r,subDomainId:d,fromVersion:_,toVersion:T}=this.productSelectionState.filterCriteria(),P={productTitle:e,subDomainId:d,templateType:r,discipline:i};(r===nt.SBOM||r===nt.SUBSET)&&(P={productTitle:e,subDomainId:d,sbomId:n,templateType:r,discipline:i,tldName:Mi(n),fromVersion:_,toVersion:T,viewVersion:this.versionView}),this.downloadLoader.set("DOWNLOADING");let ie=this.getRefinedProductQueryParams(P);this.releaseAdvisorService.downloadReleaseNotesV3(ie).pipe(v(this.destroyRef),je(()=>this.downloadLoader.set("IDLE")),Ze(()=>(this.downloadLoader.set("ERROR"),bt()))).subscribe(K=>{let Fe=mi(this.productSelectionState.filterCriteria()),ye=_&&T?`-${_}-${T}`:"";(0,Na.saveAs)(new Blob([K],{type:"text/csv"}),`Release-notes-${Fe}${ye}.csv`)})}applyFilters(e){let{changeType:i,breaking:n,status:r,productJourney:d}=e;this.applySearch(e.textSearch),this.dataSource.data=this.initDataSource.data.filter(_=>(i.length===0||i.includes(_.changeType.name))&&(n.length===0||n.includes(_.isBreakingChange?ot.breakingChange:ot.nonBreakingChange))&&(r.length===0||r.includes(_.status.name))&&(d.length===0||d.includes(_.productJourney||"Others")))}handleFetchingProducts(){this.showLoader.set(!0),this.releaseAdvisorService.getProductsForNavigation().pipe(v(this.destroyRef),je(e=>{this.productNavigationService.setOriginalProducts(e);let i=qr(e);this.productSelectionState.products.set(i),this.handleRedirectionForNoQueryParam()}),bn(()=>this.activatedRoute.queryParams.pipe(_n(e=>Object.keys(e).length>0),wt(1),je(e=>{let i=e[B.FROM_VERSION],n=e[B.TO_VERSION];if(i&&i!==Un&&z(i)<z(Vr))throw new Error("FROM version is obsolete. Please use the versions from the available ranges.",{cause:{invali
67dFromVersion:!0}});(e[B.TEMPLATE_TYPE]===nt.SBOM||e[B.TEMPLATE_TYPE]===nt.SUBSET)&&(i=i&&yt(i),n=n&&yt(n),this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:Wi(ne(O({},e),{fromVersion:i,toVersion:n})),queryParamsHandling:"replace"})),this.productSelectionState.filterCriteria.set({productTitle:e[B.PRODUCT_TITLE],domain:e[B.DOMAIN],sbomId:e[B.SBOM_ID],subDomainName:e[B.SUBDOMAIN_NAME],subDomainId:e[B.SUBDOMAIN_ID],templateType:e[B.TEMPLATE_TYPE],discipline:e[B.DISCIPLINE],fromVersion:i,toVersion:n})})))).subscribe({error:e=>this.handleError(e)})}handleFetchingReleaseNotesOnProductChanged(){Sn(this.injector,()=>Rn(this.productSelectionState.filterCriteria)).pipe(Cn(1),v(this.destroyRef),je(()=>this.resetPage()),ki(()=>{this.showLoader.set(!0);let{productTitle:e,discipline:i,sbomId:n,templateType:r,subDomainId:d,fromVersion:_,toVersion:T}=this.productSelectionState.filterCriteria();if(r===nt.SBOM||r===nt.SUBSET){let P=this.getRefinedProductQueryParams({productTitle:e,subDomainId:d,sbomId:n,templateType:r,discipline:i,tldName:Mi(n),fromVersion:_,toVersion:T,viewVersion:this.versionView});return this.releaseAdvisorService.getReleaseNotesV3(P)}return this.releaseAdvisorService.getReleaseNotesV3({productTitle:e,subDomainId:d,templateType:r,discipline:i})})).subscribe({next:e=>this.renderReleaseNotes(e),error:e=>this.handleError(e)})}handleRedirectionForNoQueryParam(){this.activatedRoute.snapshot.queryParams[B.TEMPLATE_TYPE]||(this.showLoader.set(!1),this.hasError=!1,this.openProductSelectionDialog())}resetPage(){this.searchText="",this.dataSource=new le([]),this.initDataSource=new le([]),this.hasError=!1}renderReleaseNotes(e){return qe(this,null,function*(){this.dataSource=new le(e),this.initDataSource=new le(e),this.showLoader.set(!1)})}handleError(e){return qe(this,null,function*(){console.error("Error fetching release note"+e),e?.cause?.invalidFromVersion?yield this.handleInvalidFromVersion():(this.showLoader.set(!1),this.hasError=!0),this.analyticsEventsService.logEvent({category:"error",action:"error",label:"Error fetching release notes",metaData:{errorMessage:e instanceof Error?e.message:"Unknown error",errorName:e instanceof Error?e.name:"Error"}})})}applySearch(e){this.searchText=e,this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator?.firstPage()}getRefinedProductQueryParams(e){return Wn(e,["fromVersion"])}openProductSelectionDialog(){this.matDialog.open(ro,{data:{products:this.productSelectionState.products(),filterCriteria:this.productSelectionState.filterCriteria(),versionView:this.versionView}})?.afterClosed()?.pipe(wt(1)).subscribe(e=>{e&&this.onFilterCriteriaChanged(e)})}logDownloadReleaseNotesEvent(e){try{this.analyticsEventsService.logEvent({category:"export_release_notes",action:"click",label:"Download release notes via export button",metaData:{releaseNotesCount:this.dataSource.filteredData.length,productTitle:e.productTitle,discipline:e.discipline,domainName:e.domain,fromVersion:e.fromVersion,toVersion:e.toVersion,versionView:this.versionView}})}catch(i){console.error("Error logging download release notes event",i)}}handleInvalidFromVersion(){return qe(this,null,function*(){yield this.router.navigate(["/release-advisor"],{queryParams:null,queryParamsHandling:"replace",replaceUrl:!0}),this.showLoader.set(!1),this.hasError=!1,this.openProductSelectionDialog()})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-developer-view"]],features:[Be([cn])],decls:18,vars:9,consts:[[1,"bg-light","rounded-br-max","pt-safe","pb-6"],[1,"w-page","mx-auto"],[1,"title","flex","items-center"],[1,"mr-2"],[1,"flex","mt-2","justify-start","items-center"],[3,"text"],[1,"flex","p-10","gap-x-20","mt-14"],[1,"sidebar"],[3,"filterSubmit","disabled","initialCollection","filteredCollection","isReleaseAdvisor"],[1,"content-area"],[1,"flex","items-center","gap-6"],[3,"filterCriteriaChanged","versionView"],[1,"placeholder-container"],[1,"items","flex","items-center","ml-auto"],[1,"text-subtitle-bold","text-primary-darker","pr-4","uppercase"],[3,"formGroup"],["formControlName","pageSizeSelect","placeholder","Select page size",1,"w-30","max-w-30",3,"options","multiple"],[1,"items","flex","items-center","flex-col"],["BBioButton","","bbioTooltip","Generate a CSV file of all release notes specified in the Selection. Does not include the result with the current filters.",1,"text-subtitle-bold","text-primary-darker","pr-4",3,"click","disabled"],[1,"icon","icon-loader","animate-spin"],[1,"icon","icon-arrow-down-to-bracket"],[1,"text-danger","text-subtitle"],[1,"icon","icon-triangle-exclamation"],[1,"text-h4","text-dark","mt-8"],[3,"placeholderInput"],[3,"dataSource","pageSizeSelect","searchText"]],template:function(i,n){i&1&&(l(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2"),c(5),a()()(),l(6,"div",4),p(7,"bb-io-notification-block",5),a()()(),p(8,"bbio-divider"),l(9,"section",6)(10,"div",7)(11,"bb-io-filter-section",8),C("filterSubmit",function(d){return n.applyFilters(d)}),a()(),l(12,"div",9)(13,"div",10)(14,"bb-io-product-selection",11),C("filterCriteriaChanged",function(d){return n.onFilterCriteriaChanged(d)}),a(),g(15,Bm,11,6),a(),g(16,Lm,4,0,"div",12)(17,Gm,2,1),a()()),i&2&&(s(5),te(n.landingComponentContent.heading),s(2),m("text",n.notificationText),s(4),m("disabled",n.initDataSource.data.length===0)("initialCollection",n.initDataSource.data)("filteredCollection",n.dataSource.filteredData)("isReleaseAdvisor",!0),s(3),m("versionView",n.versionView),s(),h(n.dataSource.filteredData.length>0&&!n.showLoader()?15:-1),s(),h(n.showLoader()?16:17))},dependencies:[Et,It,X,si,Zi,wa,hi,Y,fe,Q,ce,de,ge,Oa,oo,mt],styles:[".bb-io-button[_ngcontent-%COMP%]{transition:none}.w-530[_ngcontent-%COMP%]{width:530px}@media(max-width:1128px){.w-530[_ngcontent-%COMP%]{width:100%}}.mt-70[_ngcontent-%COMP%]{margin-top:85px}.pb-120[_ngcontent-%COMP%]{padding-bottom:120px}.content-container[_ngcontent-%COMP%]{padding:5rem}.sidebar[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:15%;overflow-x:hidden;overflow-y:auto;background-color:#fff;gap:2em}.content-area[_ngcontent-%COMP%]{width:85%;min-height:600px;padding-bottom:2em}.center-aligned-box[_ngcontent-%COMP%], .placeholder-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:40vh}.custom-badge[_ngcontent-%COMP%]{padding:3px 4px;border-radius:.25rem;font-weight:600;text-align:center;text-transform:uppercase}.bug-fix[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#295eff;color:#295eff}.feature[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.security[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#e01700;color:#e01700}.dependency[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#6817cf;color:#6817cf}.deprecated[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.removed[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#ff8000;color:#ff8000}.known-issue[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}.alpha[_ngcontent-%COMP%]{background:linear-gradient(0deg,#bf2310 0% 100%),#fff;color:#fff}.approved[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#40bf84;color:#40bf84}.pending[_ngcontent-%COMP%]{background:linear-gradient(0deg,#ffffffd9 0% 100%),#f2bc0d;color:#f2bc0d}"]})}return t})();var Um=()=>
67({iconName:"circle-exclamation",iconColor:"red"}),zm=t=>({heading:"The release note is not available at the moment",content:"Please try again later.",icon:t});function Hm(t,o){t&1&&(l(0,"div",5),p(1,"bbio-spinner"),a())}function Jm(t,o){if(t&1&&(l(0,"div",6),p(1,"bb-io-release-note-detail",8),a()),t&2){let e=u();s(),m("showTitle",!0)("releaseNote",e.releaseNoteData())}}function qm(t,o){t&1&&(l(0,"div",7),p(1,"bb-io-placeholder-container",9),a()),t&2&&(s(),m("placeholderInput",he(2,zm,qo(1,Um))))}var Ea=(()=>{class t{releaseAdvisorService=f(Ae);destroyRef=f(L);id=tt.required();releaseNoteData=V(null);loading=V(!0);ngOnInit(){let e=this.id();e&&this.releaseAdvisorService.getReleaseNoteById(e).pipe(v(this.destroyRef),Ze(i=>(console.error("Failed to load release note:",i),Eo)),Vo(()=>this.loading.set(!1))).subscribe({next:i=>this.releaseNoteData.set(i)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-release-note"]],inputs:{id:[1,"id"]},decls:11,vars:1,consts:[[1,"bg-light","rounded-br-max","pt-safe","pb-6"],[1,"flex","items-start","justify-between","w-page","mx-auto"],[1,"relative","mx-auto","w-page"],[1,"w-full","h-full","mt-14","flex","gap-12"],[1,"flex","gap-4","flex-col","grow"],[1,"flex","items-center","justify-center","h-full","p-8"],[1,"items-start"],[1,"items-center","justify-center"],[3,"showTitle","releaseNote"],[1,"w-full",3,"placeholderInput"]],template:function(i,n){i&1&&(l(0,"header",0)(1,"div",1)(2,"h2"),c(3,"Release Advisor"),a()()(),p(4,"bbio-divider"),l(5,"div",2)(6,"section",3)(7,"div",4),g(8,Hm,2,0,"div",5)(9,Jm,2,2,"div",6)(10,qm,2,4,"div",7),a()()()),i&2&&(s(8),h(n.loading()?8:n.releaseNoteData()?9:10))},dependencies:[Qi,Et,It,hi],encapsulation:2})}return t})();var ei=class extends Error{constructor(o){super(o),this.name="ReportProcessorError"}},Jt=class{static prepareCsvData(o){if(!o?.sbomDetails)throw new ei("Invalid or missing SBOM reports data");let e=[];return o.sbomDetails.forEach(i=>{if(!i.details)throw new ei(`Missing details for SBOM report: ${i.title}`);i.details.forEach(n=>e.push(this.createCsvRow(i.title,n)))}),e}static createCsvRow(o,e){return{Product:o,"SBOM ID":e.sbomId,Discipline:e.discipline,"Expected CalVer":e.expectedCalVer,"Latest CalVer In DT":e.latestCalVerInDT,"Current month status":e.isSBOMCalVerUpToDate?"Up to date":"Outdated","Missing SBOM CalVer Releases":this.formatMissingReleases(e.missingSBOMCalVerReleases??[]),"Patch Releases":this.formatPatchReleases(e.latestCalVersInDT)}}static prepareDataForAllSBOMs(o){if(!o?.allTitleDetails)throw new ei("Invalid or missing SBOM details data");let e=new Map;return o.allTitleDetails.forEach(i=>{if(!i.sbomId)throw new ei("Missing SBOM ID in details");let{availableVersions:n,missingVersions:r}=this.getVersionSets(i),d=this.getSortedVersions(n,r);e.set(i.sbomId,d.map(_=>({calVer:_,isMissing:r.has(_)})))}),e}static prepareSummaryData(o){if(!o?.allTitleDetails||!o?.sbomDetails?.latestCalVersInDT)throw new ei("Invalid or missing SBOM details data");return{totalSbomIds:o.allTitleDetails.length,missingReleasesCount:this.calculateMissingReleasesCount(o.allTitleDetails),totalNumberOfSBOMs:o.allTitleDetails.reduce((e,i)=>e+i.latestCalVersInDT.length,0)}}static prepareReleaseData(o){if(!o?.allTitleDetails||!o?.sbomDetails)throw new ei("Invalid or missing SBOM details data");let e=this.initializeSbomIds(o);if(!e.length)throw new ei("No valid SBOM IDs found in data");let i=this.preparePatchReleases(o),n=this.prepareGroupedPatchReleases(o),r=this.prepareReleases(o,e),d=this.createReleaseMatrix(o,r,e);return{releases:r,sbomIds:e,patchReleases:i,groupedPatchReleases:n,releaseMatrix:d}}static isPatchAvailable(o,e,i){let n=o.allTitleDetails.find(_=>_.sbomId===i);if(!n)return!1;if(n.latestCalVersInDT.some(_=>_.calVer===e&&_.isPatchVersion))return!0;let d=e.split(".").slice(0,2).join(".");return n.latestCalVersInDT.some(_=>_.isPatchVersion&&_.calVer.startsWith(d))}static determineSBOMName(o){return o?o.split(":")[1]??"":""}static compareCalVerGroups(o,e){return z(e.key)-z(o.key)}static getUniquePatchVersions(o,e){let i=new Set,n=o[e]||{};
67return Object.values(n).forEach(r=>{r.forEach(d=>i.add(d.calVer))}),Array.from(i).sort((r,d)=>z(d)-z(r))}static hasPatchVersion(o,e,i){return(o[e]||[]).some(r=>r.calVer===i)}static getPatchCount(o){return Object.values(o).reduce((e,i)=>e+i.length,0)}static hasAnyPatchReleases(o){return Object.keys(o).length>0}static calculateMissingReleasesCount(o){return o.reduce((e,i)=>e+(i.missingSBOMCalVerReleases?.length||0),0)}static initializeSbomIds(o){return o.allTitleDetails.map(e=>({calVer:e.sbomId,details:e.latestCalVersInDT}))}static preparePatchReleases(o){let e=o.allTitleDetails.find(i=>i.sbomId===o.sbomDetails.sbomId);return e?e.latestCalVersInDT.filter(i=>i.isPatchVersion).sort((i,n)=>z(n.calVer)-z(i.calVer)):[]}static prepareGroupedPatchReleases(o){let e={};return o.allTitleDetails.forEach(i=>{i.latestCalVersInDT.filter(r=>r.isPatchVersion).forEach(r=>{let d=r.calVer.split(".").slice(0,2).join(".");e[d]||(e[d]={}),e[d][i.sbomId]||(e[d][i.sbomId]=[]),e[d][i.sbomId].push(r)})}),Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(n=>{e[i][n].sort((r,d)=>z(d.calVer)-z(r.calVer))})}),e}static prepareReleases(o,e){let i=new Set;o.allTitleDetails.forEach(r=>{let d=r.latestCalVersInDT.filter(_=>!_.isPatchVersion);this.normalizeReleases(d).forEach(_=>i.add(_)),r.missingSBOMCalVerReleases.forEach(_=>i.add(_))});let n=Array.from(i).sort((r,d)=>d.localeCompare(r));return this.createReleaseObjects(o,n,e)}static createReleaseObjects(o,e,i){return e.map(n=>{let r=this.findExistingRelease(n,o);if(r)return r;let[d,_]=i[0].calVer.split(":");return{calVer:n,sbomFullReference:`${d}:${_}:${n}`,isPatchVersion:!1}})}static createReleaseMatrix(o,e,i){let n={};return e.forEach(r=>{n[r.calVer]={},i.forEach(d=>{n[r.calVer][d.calVer]=null}),o.allTitleDetails.forEach(d=>{let _=d.sbomId,T=this.normalizeReleases(d.latestCalVersInDT),P=d.missingSBOMCalVerReleases;T.includes(r.calVer)?n[r.calVer][_]=!0:P.includes(r.calVer)&&(n[r.calVer][_]=!1)})}),n}static findExistingRelease(o,e){for(let i of e.allTitleDetails){let n=[...i.latestCalVersInDT||[],...i.missingSBOMCalVerReleases||[]];for(let r of n)if(this.getCalVer(r)===o&&typeof r=="object"&&"sbomFullReference"in r)return r}return null}static getCalVer(o){return typeof o=="string"?o:o&&typeof o=="object"&&"calVer"in o?o.calVer:""}static normalizeReleases(o){return!o||!Array.isArray(o)?[]:o.map(e=>this.getCalVer(e)).filter(Boolean)}static getVersionSets(o){let e=new Set(this.normalizeReleases(o.latestCalVersInDT)),i=new Set(o.missingSBOMCalVerReleases);return{availableVersions:e,missingVersions:i}}static getSortedVersions(o,e){let i=new Set([...o,...e]);return Array.from(i).sort((n,r)=>z(r)-z(n))}static formatMissingReleases(o){return o?.length===0?"Not available!":o.join(", ")}static formatPatchReleases(o){return o.filter(e=>e.isPatchVersion).map(e=>e.calVer).join(", ")||"-"}};var Km=(t,o,e)=>({available:t,missing:o,"not-present":e}),Qm=(t,o)=>({available:t,"not-present":o}),Ym=(t,o)=>o.key;function Xm(t,o){if(t&1&&(l(0,"th",22)(1,"div",19)(2,"div",20),c(3),a(),l(4,"div",21),c(5),a()()()),t&2){let e=o.$implicit,i=u();s(3),E(" ",e.calVer.split(":")[0].toLocaleUpperCase()," "),s(2),E(" ",i.determineSBOMName(e.details[0])," ")}}
67function Zm(t,o){if(t&1){let e=I();l(0,"button",26),C("click",function(){M(e);let n=u().$implicit,r=u().$implicit,d=u();return N(d.findSbomReferenceAndOpenDependencyDetails(n,r.calVer))}),c(1," View "),a()}}function ep(t,o){if(t&1&&(l(0,"td",24),g(1,Zm,2,0,"button",25),a()),t&2){let e=o.$implicit,i=u().$implicit,n=u();m("ngClass",Wo(2,Km,n.releaseMatrix[i.calVer][e.calVer]===!0,n.releaseMatrix[i.calVer][e.calVer]===!1,n.releaseMatrix[i.calVer][e.calVer]===null)),s(),h(n.releaseMatrix[i.calVer][e.calVer]===!0?1:-1)}}function tp(t,o){if(t&1&&(l(0,"tr")(1,"td",23),c(2),a(),ve(3,ep,2,6,"td",24,Ke),a()),t&2){let e=o.$implicit,i=u();s(2),E(" ",e.calVer," "),s(),Se(i.sbomIds)}}function ip(t,o){if(t&1&&(l(0,"th",22)(1,"div",19)(2,"div",20),c(3),a(),l(4,"div",21),c(5),a()()()),t&2){let e=o.$implicit,i=u();s(3),E(" ",e.calVer.split(":")[0].toLocaleUpperCase()," "),s(2),E(" ",i.determineSBOMName(e.details[0])," ")}}function np(t,o){if(t&1){let e=I();l(0,"button",26),C("click",function(){M(e);let n=u().$implicit,r=u().$implicit,d=u(2);return N(d.findSbomReferenceAndOpenDependencyDetails(n,r))}),c(1," View "),a()}}function op(t,o){if(t&1&&(l(0,"td",24),g(1,np,2,0,"button",25),a()),t&2){let e=o.$implicit,i=u().$implicit,n=u().$implicit,r=u();m("ngClass",ai(2,Qm,r.hasPatchVersion(n.value,e.calVer,i),!r.hasPatchVersion(n.value,e.calVer,i))),s(),h(r.hasPatchVersion(n.value,e.calVer,i)?1:-1)}}function rp(t,o){if(t&1&&(l(0,"tr",29)(1,"td",23),c(2),a(),ve(3,op,2,5,"td",24,Ke),a()),t&2){let e=o.$implicit,i=u(2);s(2),E(" ",e," "),s(),Se(i.sbomIds)}}function ap(t,o){if(t&1&&(l(0,"tr",27)(1,"td",28)(2,"span"),c(3),a(),l(4,"span"),c(5),a()()(),ve(6,rp,5,1,"tr",29,Ke)),t&2){let e=o.$implicit,i=u();s(),We("colspan",i.sbomIds.length+1),s(2),E(" ",e.key," "),s(2),E("(",i.getPatchCount(e.value),")"),s(),Se(i.getUniquePatchVersions(e.key))}}function lp(t,o){if(t&1&&(l(0,"tr")(1,"td",30),c(2," No patch releases available "),a()()),t&2){let e=u();s(),We("colspan",e.sbomIds.length+1)}}var Ra=(()=>{class t{dialogRef=f(Ve);data=f(Oe);document=f(Bo);displayedColumns=["calVer","status"];sbomDataMap=new Map;summaryData={totalSbomIds:0,missingReleasesCount:0,totalNumberOfSBOMs:0};releases=[];sbomIds=[];patchReleases=[];groupedPatchReleases={};releaseMatrix={};env=f(st);ngOnInit(){if(this.isValidData())this.initializeData();else throw new Error("Invalid or missing data in SBOM Details Modal")}isValidData(){return!!(this.data&&this.data.allTitleDetails&&this.data.allTitleDetails.length>0)}initializeData(){this.sbomDataMap=Jt.prepareDataForAllSBOMs(this.data),this.summaryData=Jt.prepareSummaryData(this.data);let e=Jt.prepareReleaseData(this.data);this.releases=e.releases,this.sbomIds=e.sbomIds,this.patchReleases=e.patchReleases,this.groupedPatchReleases=e.groupedPatchReleases,this.releaseMatrix=e.releaseMatrix}getCalVerDataForSbom(e){return this.sbomDataMap.get(e)||[]}openDependencyDetails(e){let i=`${this.env.baseUrl}/developers/backend/api/v1/admin/release-notes/dependencies/${e}`;this.document.defaultView?.open(i,"_blank")}findSbomReferenceAndOpenDependencyDetails(e,i){let n=e.details.find(r=>r.calVer===i)?.sbomFullReference;n&&this.openDependencyDetails(n)}isPatchAvailable(e,i){return Jt.isPatchAvailable(this.data,e,i)}determineSBOMName(e){return Jt.determineSBOMName(e?.sbomFullReference)}compareCalVerGroups(e,i){return z(i.key)-z(e.key)}getUniquePatchVersions(e){let i=new Set,n=this.groupedPatchReleases[e]||{};return Object.values(n).forEach(r=>{r.forEach(d=>i.add(d.calVer))}),Array.from(i).sort((r,d)=>z(d)-z(r))}hasPatchVersion(e,i,n){return(e[i]||[]).some(d=>d.calVer===n)}getPatchCount(e){return Object.values(e).reduce((i,n)=>i+n.length,0)}hasAnyPatchReleases(){return Object.keys(this.groupedPatchReleases).length>0}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-sbom-details-modal"]],decls:78,vars:10,consts:[[1,"flex","flex-col","sbom-details-modal"],[1,"flex","justify-between","items-center","modal-header"],[1,"text-xl","font-bold"],["BBioButton-basic","","mat-dialog-close","","color","primary","aria-label","Close dialog",1,"close-btn"],[1,"icon","icon-xmark","text-h2"],[1,"content"],[1,"section-title","text-lg","font-bold"],[1,"stats-container"],[1,"stat-item"],[1,"stat-value"],[1,"stat-label"],[1,"legend"],[1,"legend-item"],[1,"legend-color","available"],[1,"legend-color","missing"],[1,"legend-color","not-present"],[1,"overflow-x-auto"],[1,"calendar-table"],[1,"release-header"],[1,"flex","flex-col"],[1,"text-base","font-bold"],[1,"text-sm"],[1,"sbom-header"],[1,"release-cell","text-sm"],[1,"status-cell",3,"ngClass"],[1,"view-btn","cursor-pointer","text-sm","text-white"],[1,"view-btn","cursor-pointer","text-sm","text-white",3,"click"],[1,"calver-group-header"],[1,"calver-group-title","cursor-pointer"],[1,"patch-version-row"],[1,"text-center","py-4"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"h2",2),c(3),a(),l(4,"button",3),p(5,"i",4),a()(),l(6,"div",5)(7,"div")(8,"bbio-card")(9,"h3",6),c(10,"Product Summary"),a(),l(11,"div",7)(12,"div",8)(13,"span",9),c(14),a(),l(15,"span",10),c(16,"Disciplines/Channels"),a()(),l(17,"div",8)(18,"span",9),c(19),a(),l(20,"span",10),c(21,"Missing releases"),a()(),l(22,"div",8)(23,"span",9),c(24),a(),l(25,"span",10),c(26,"SBOMs released (since 2024.04)"),a()()()(),l(27,"bbio-card")(28,"h3",6),c(29,"Release Summary"),a(),l(30,"div",11)(31,"div",12),p(32,"div",13),l(33,"span"),c(34,"Available"),a()(),l(35,"div",12),p(36,"div",14),l(37,"span"),c(38,"Missing"),a()(),l(39,"div",12),p(40,"div",15),l(41,"span"),c(42,"Not Applicable"),a()()(),l(43,"div",16)(44,"table",17)(45,"thead")(46,"tr")(47,"th",18)(48,"div",19)(49,"div",20),c(50,"Release"),a(),l(51,"div",21),c(52,"CalVers"),a()()(),ve(53,Xm,6,2,"th",22,Ke),a()(),l(55,"tbody"),ve(56,tp,5,1,"tr",null,Ke),a()()()(),l(58,"bbio-card")(59,"h3",6),c(60,"Patch Releases"),a(),l(61,"div",16)(62,"table",17)(63,"thead")(64,"tr")(65,"th",18)(66,"div",19)(67,"div",20),c(68,"Release"),a(),l(69,"div",21),c(70,"CalVers"),a()()(),ve(71,ip,6,2,"th",22,Ke),a()(),l(73,"tbody"),ve(74,ap,8,3,null,null,Ym),y(76,"keyvalue"),g(77,lp,3,1,"tr"),a()()()()()()()),i&2&&(s(3),te(n.data.title),s(11),te(n.summaryData.totalSbomIds),s(5),te(n.summaryData.missingReleasesCount),s(5),te(n.summaryData.totalNumberOfSBOMs),s(20),Ho("--num-sboms",n.sbomIds.length),s(9),Se(n.sbomIds),s(3),Se(n.releases),s(15),Se(n.sbomIds),s(3),Se(se(76,7,n.groupedPatchReleases,n.compareCalVerGroups)),s(3),h(n.hasAnyPatchReleases()?-1:77))},dependencies:[re,Ce,it,kt,Bn,Fn,ut,X,er],styles:[".sbom-details-modal[_ngcontent-%COMP%]{width:100%;max-width:90vw;max-height:90vh}
67.sbom-details-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #e2e8f0}.sbom-details-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;transition:all .2s ease-in-out;cursor:pointer;width:2rem;height:2rem}.sbom-details-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #e2e8f0;outline-offset:2px}.sbom-details-modal[_ngcontent-%COMP%]   .modal-header[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]:hover{background-color:#f3f4f6}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:1rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{margin-bottom:1rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   bbio-card[_ngcontent-%COMP%]{margin-bottom:1.5rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .stats-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1.5rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .stats-container[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:column;align-items:center;min-width:120px}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .stats-container[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]   .stat-value[_ngcontent-%COMP%]{margin-bottom:.25rem;font-size:1.875rem;font-weight:500}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .stats-container[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]   .stat-label[_ngcontent-%COMP%]{color:#6b7280;font-size:.875rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;margin-bottom:1rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%]{display:flex;align-items:center}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%]   .legend-color[_ngcontent-%COMP%]{width:1rem;height:1rem;margin-right:.5rem;border-radius:.25rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%]   .legend-color.available[_ngcontent-%COMP%]{background-color:#4ade80}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%]   .legend-color.missing[_ngcontent-%COMP%]{background-color:#f87171}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%]   .legend-color.not-applicable[_ngcontent-%COMP%], .sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .legend[_ngcontent-%COMP%]   .legend-item[_ngcontent-%COMP%]   .legend-color.not-present[_ngcontent-%COMP%]{background-color:#d1d5db}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .overflow-x-auto[_ngcontent-%COMP%]{overflow-x:auto;-webkit-overflow-scrolling:touch}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse;border-color:#e5e7eb}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid #e5e7eb}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .release-header[_ngcontent-%COMP%], .sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .sbom-header[_ngcontent-%COMP%]{padding:.75rem;background-color:#f3f4f6;text-align:left}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .release-header[_ngcontent-%COMP%]{width:10rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .sbom-header[_ngcontent-%COMP%]{width:calc((100% - 160px) / var(--num-sboms, 3));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .release-cell[_ngcontent-%COMP%], .sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .status-cell[_ngcontent-%COMP%]{padding:.75rem}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .status-cell.available[_ngcontent-%COMP%]{background-color:#4ade80}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .status-cell.missing[_ngcontent-%COMP%]{background-color:#f87171}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .status-cell.not-applicable[_ngcontent-%COMP%], .sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .status-cell.not-present[_ngcontent-%COMP%]{background-color:#d1d5db}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .status-cell[_ngcontent-%COMP%]   bbio-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid white;outline-offset:2px}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .calver-group-header[_ngcontent-%COMP%]   .calver-group-title[_ngcontent-%COMP%]{padding:.75rem;border:1px solid #d1d5db;border-bottom:2px solid rgb(180.3902439024,186.8780487805,196.6097560976);background-color:#d1d5db;font-weight:700}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .calendar-table[_ngcontent-%COMP%]   .patch-version-row[_ngcontent-%COMP%]{width:20%}.sbom-details-modal[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .view-btn[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid white;border-radius:.25rem}  .sbom-details-dialog .mat-mdc-dialog-container,   .sbom-details-dialog .mdc-dialog__surface{padding:0!important;overflow:hidden!important}"]})}return t})();var Ya=fn(Qa());var Yp=(t,o)=>o.status,Xp=(t,o)=>o.title;function Zp(t,o){if(t&1&&(l(0,"bbio-card",8)(1,"div",9)(2,"div",10)(3,"span",11),c(4),a(),l(5,"span",12),c(6),a()()()()),t&2){let e=o.$implicit;m("stroked",!0),s(4),te(e.displayInfo.displayName),s(2),te(e.count)}}function eu(t,o){if(t&1&&(l(0,"div",6),ve(1,Zp,7,3,"bbio-card",8,Yp),a()),t&2){let e=u();s(),Se(e.releaseNotesDetails)}}function tu(t,o){t&1&&(l(0,"p",7),c(1,"No release notes data available."),a())}function iu(t,o){t&1&&(l(0,"mat-header-cell"),c(1,"SBOM ID"),a())}function nu(t,o){if(t&1&&(l(0,"mat-cell",31),c(1),a()),t&2){let e=o.$implicit;s(),te(e.sbomId)}}function ou(t,o){t&1&&(l(0,"mat-header-cell"),c(1,"Discipline"),a())}function ru(t,o){if(t&1&&(l(0,"mat-cell"),c(1),a()),t&2){let e=o.$implicit;s(),te(e.discipline)}}function au(t,o){t&1&&(l(0,"mat-header-cell"),c(1,"Expected CalVer"),a())}function lu(t,o){if(t&1&&(l(0,"mat-cell"),c(1),a()),t&2){let e=o.$implicit;s(),te(e.expectedCalVer)}}
67function su(t,o){t&1&&(l(0,"mat-header-cell"),c(1,"Latest CalVer in DT"),a())}function cu(t,o){if(t&1&&(l(0,"mat-cell",32),c(1),a()),t&2){let e=o.$implicit;s(),E("",e.latestCalVerInDT??"Not available"," ")}}function du(t,o){t&1&&(l(0,"mat-header-cell"),c(1," Current month status "),a())}function mu(t,o){if(t&1&&(l(0,"mat-cell")(1,"span",33),c(2),a()()),t&2){let e=o.$implicit;s(2),E(" ",e.isSBOMCalVerUpToDate?"\u2705":"\u26A0\uFE0F"," ")}}function pu(t,o){t&1&&(l(0,"mat-header-cell"),c(1,"Missing CalVer Releases"),a())}function uu(t,o){if(t&1&&c(0),t&2){let e=u().$implicit;E(" ",e.missingSBOMCalVerReleases==null?null:e.missingSBOMCalVerReleases.length," ")}}function fu(t,o){t&1&&(l(0,"span"),c(1,"-"),a())}function gu(t,o){if(t&1&&(l(0,"mat-cell"),g(1,uu,1,1)(2,fu,2,0,"span"),a()),t&2){let e=o.$implicit;s(),h(e.missingSBOMCalVerReleases!=null&&e.missingSBOMCalVerReleases.length?1:2)}}function hu(t,o){t&1&&p(0,"mat-header-row")}function _u(t,o){t&1&&p(0,"mat-row")}function bu(t,o){if(t&1){let e=I();l(0,"bbio-card",16)(1,"h4",17),C("click",function(){let n=M(e).$implicit,r=u(3);return N(r.openSbomDetailsModal(n.title,n.details[0],n.details))}),c(2),a(),l(3,"mat-table",18),H(4,19),R(5,iu,2,0,"mat-header-cell",20)(6,nu,2,1,"mat-cell",21),J(),H(7,22),R(8,ou,2,0,"mat-header-cell",20)(9,ru,2,1,"mat-cell",23),J(),H(10,24),R(11,au,2,0,"mat-header-cell",20)(12,lu,2,1,"mat-cell",23),J(),H(13,25),R(14,su,2,0,"mat-header-cell",20)(15,cu,2,1,"mat-cell",26),J(),H(16,27),R(17,du,2,0,"mat-header-cell",20)(18,mu,3,1,"mat-cell",23),J(),H(19,28),R(20,pu,2,0,"mat-header-cell",20)(21,gu,3,1,"mat-cell",23),J(),R(22,hu,1,0,"mat-header-row",29)(23,_u,1,0,"mat-row",30),a()()}if(t&2){let e=o.$implicit,i=u(3);m("stroked",!0),s(2),E(" ",e.title," "),s(),m("dataSource",e.details),s(19),m("matHeaderRowDef",i.displayedColumns),s(),m("matRowDefColumns",i.displayedColumns)}}function Cu(t,o){if(t&1){let e=I();l(0,"bbio-card")(1,"div",13)(2,"h4"),c(3,"SBOM Releases"),a(),l(4,"div",14)(5,"button",15),C("click",function(){M(e);let n=u(),r=u();return N(r.exportToCSV(n))}),c(6," Export reports "),a()()(),l(7,"div",9),ve(8,bu,24,5,"bbio-card",16,Xp),a()()}if(t&2){let e=u();s(5),m("disabled",!(!(e==null||e.sbomDetails==null)&&e.sbomDetails.length)),s(3),Se(e.sbomDetails)}}function vu(t,o){if(t&1&&(l(0,"bbio-card",5)(1,"h4"),c(2,"Release Notes Status"),a(),g(3,eu,3,0,"div",6)(4,tu,2,0,"p",7),a(),g(5,Cu,10,1,"bbio-card")),t&2){let e=o;s(3),h(!(e==null||e.releaseNotesDetails==null)&&e.releaseNotesDetails.length?3:4),s(2),h(!(e==null||e.sbomDetails==null)&&e.sbomDetails.length?5:-1)}}function Su(t,o){t&1&&(l(0,"p"),c(1,"Loading..."),a())}var Xa=(()=>{class t{adminService=f(eo);dialog=f(Me);reports$=bt();loading=!1;error=!1;displayedColumns=["sbomId","discipline","expectedCalVer","latestCalVerInDT","status","missingSBOMCalVerReleases"];productExclusionList=["Remote Config"];destroyRef=f(L);ngOnInit(){this.fetchReports()}fetchReports(){this.reports$=this.adminService.getReports().pipe(v(this.destroyRef),ii(e=>{let i=e.sbomDetails.filter(n=>!this.productExclusionList.some(r=>n.title.includes(r)));return ne(O({},e),{sbomDetails:i})}),Ze(e=>(console.error("Error fetching reports:",e),bt({releaseNotesDetails:[],sbomDetails:[]}))))}openSbomDetailsModal(e,i,n){this.dialog.open(Ra,{width:"90vw",maxHeight:"90vh",panelClass:"sbom-details-dialog",autoFocus:!1,disableClose:!1,data:{title:e,sbomDetails:i,allTitleDetails:n}})}exportToCSV(e){return qe(this,null,function*(){try{let i=Jt.prepareCsvData(e),n=yield this.convertToCSV(i);this.downloadCSV(n)}catch(i){this.handleCsvError(i)}})}convertToCSV(e){return qe(this,null,function*(){return(0,Ya.json2csv)(e,{delimiter:{wrap:'"'}})})}downloadCSV(e){let i=new Blob([e],{type:"text/csv;charset=utf-8;"}),n=document.createElement("a");n.setAttribute("href",URL.createObjectURL(i)),n.setAttribute("download",`sbom_reports_${new Date().toISOString()}.csv`),n.click()}handleCsvError(e){let i=`Error converting to CSV: ${e}`;console.error(i)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["bb-io-reports-dash-board"]],decls:11,vars:3,consts:[[1,"bg-light","rounded-br-max","pt-safe","pb-6"],[1,"w-page","mx-auto"],[1,"title","flex","items-center"],[1,"mr-2"],[1,"container","mx-auto","p-6"],[1,"mb-6"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-2","p-4"],[1,"p-4","text-gray-500"],[3,"stroked"],[1,"p-4"],[1,"flex","items-center"],[1,"capitalize","font-medium","pr-4"],[1,"text-2xl","font-bold"],[1,"flex","justify-between","items-center"],[1,"flex","justify-end","p-4"],["BBioButton","",3,"click","disabled"],[1,"mb-6",3,"stroked"],[1,"curs
67or-pointer","underline","text-blue-500","mb-4",3,"click"],[1,"w-full",3,"dataSource"],["matColumnDef","sbomId"],[4,"matHeaderCellDef"],["class","font-bold",4,"matCellDef"],["matColumnDef","discipline"],[4,"matCellDef"],["matColumnDef","expectedCalVer"],["matColumnDef","latestCalVerInDT"],["class","font-semibold",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","missingSBOMCalVerReleases"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[1,"font-bold"],[1,"font-semibold"],[1,"px-2","py-1","rounded-full","text-xl","font-medium"]],template:function(i,n){if(i&1&&(l(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2"),c(5,"Release Advisor Reports"),a()()()()(),p(6,"bbio-divider"),l(7,"div",4),g(8,vu,6,2),y(9,"async"),zo(10,Su,2,0,"p"),a()),i&2){let r;s(8),h((r=$(9,1,n.reports$))?8:10,r)}},dependencies:[re,Et,Dr,ut,Vt,Ft,jt,Bt,At,Gt,Lt,$t,Ut,zt,Bn,Fn,X,Ge],styles:["[_nghost-%COMP%]{display:block;min-height:100%;background-color:#f9fafb}.container[_ngcontent-%COMP%]{margin-top:1em}.mat-mdc-row[_ngcontent-%COMP%]{padding:1em;background-color:#f9fafb}.mat-header-cell[_ngcontent-%COMP%]{font-weight:600!important}.mat-mdc-cell[_ngcontent-%COMP%]{align-self:center;font-size:1rem!important}.mat-column-sbomId[_ngcontent-%COMP%]{width:40%!important}.mat-column-missingSBOMCalVerReleases[_ngcontent-%COMP%]{width:4%}@media(max-width:768px){.container[_ngcontent-%COMP%]{padding:1rem}table[_ngcontent-%COMP%]{display:block;overflow-x:auto}}"]})}return t})();var Jy=[{path:"",pathMatch:"full",component:Pa},{path:"admin",canActivate:[go],component:xa},{path:"admin/v2",canActivate:[go],component:ua},{path:"admin/reports",canActivate:[Er],component:Xa},{path:"release-note/:id",component:Ea}];export{Ra as SbomDetailsModalComponent,Jy as releaseAdvisorRoutes};

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.