{"version":3,"sources":["Themes/Default/Content/ts/Shared/KnockoutBindings/Services/uniqueIdentifierServices.ts"],"names":[],"mappings":";;;;IAAA,IAAiB,wBAAwB,CA0BxC;IA1BD,WAAiB,wBAAwB;QAC/B,MAAO,CAAC,YAAY,GAAS,MAAO,CAAC,YAAY,IAAI,CAAC,CAAC;QACvD,MAAO,CAAC,gBAAgB,GAAS,MAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC;QAEtE,SAAS,MAAM;YACX,OAAa,MAAO,CAAC,YAAY,EAAE,CAAC;QACxC,CAAC;QAED,SAAgB,0BAA0B;YACtC,OAAO,4BAAqB,MAAM,EAAE,CAAE,CAAC;QAC3C,CAAC;QAFe,mDAA0B,6BAEzC,CAAA;QAED,SAAgB,gBAAgB,CAAC,aAAkB;YAC/C,IAAM,QAAQ,GAAG,0BAA0B,EAAE,CAAC;YACxC,MAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,GAAG,QAAQ,CAAC;YAEzD,OAAO,QAAQ,CAAC;QACpB,CAAC;QALe,yCAAgB,mBAK/B,CAAA;QAED,SAAgB,gBAAgB,CAAC,aAAkB;YAC/C,OAAa,MAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QACzD,CAAC;QAFe,yCAAgB,mBAE/B,CAAA;QAED,SAAgB,cAAc,CAAC,aAAkB;YACvC,MAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC;QAC9D,CAAC;QAFe,uCAAc,iBAE7B,CAAA;IACL,CAAC,EA1BgB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QA0BxC","file":"uniqueIdentifierServices.js","sourcesContent":["export namespace UniqueIdentifierServices {\n (window).uniqueIdSeed = (window).uniqueIdSeed || 1;\n (window).uniqueIdLinkHash = (window).uniqueIdLinkHash || {};\n\n function nextId() {\n return (window).uniqueIdSeed++;\r\n }\n\n export function GetOneTimeUseNewIdentifier(): string {\n return `unique-identifier-${nextId()}`;\r\n }\n\n export function AddNewIdentifier(valueAccessor: any): string {\n const response = GetOneTimeUseNewIdentifier();\n (window).uniqueIdLinkHash[valueAccessor] = response;\n\n return response;\n }\n\n export function RetrieveLinkHash(valueAccessor: any): string {\n return (window).uniqueIdLinkHash[valueAccessor];\n }\n\n export function RemoveLinkHash(valueAccessor: any): void {\n (window).uniqueIdLinkHash[valueAccessor] = undefined;\n }\n}\n"]}