{"version":3,"sources":["../../../src/internals/helpers/hash.ts"],"names":["createHash","input","length","cryptoJs","SHA256","toString","substring","createRandomHash","Date","now"],"mappings":";;;;;;;;;;AAkBO,SAASA,UAAAA,CAAWC,KAAeC,EAAAA,MAAAA,GAAS,CAAC,EAAA;AAClD,EAAOC,OAAAA,yBAAAA,CAASC,OAAOH,KAAAA,CAAAA,CAAOI,UAAWC,CAAAA,SAAAA,CAAU,GAAGJ,MAAAA,CAAAA;AACxD;AAFgBF,MAAAA,CAAAA,UAAAA,EAAAA,YAAAA,CAAAA;AAIT,SAASO,gBAAAA,CAAiBL,SAAS,CAAC,EAAA;AACzC,EAAA,OAAOC,yBAASC,CAAAA,MAAAA,CAAOI,IAAKC,CAAAA,GAAAA,EAAMJ,CAAAA,QAAAA,EAAQ,CAAA,CAAIA,QAAQ,EAAA,CAAGC,SAAU,CAAA,CAAA,EAAGJ,MAAAA,CAAAA;AACxE;AAFgBK,MAAAA,CAAAA,gBAAAA,EAAAA,kBAAAA,CAAAA","file":"hash.cjs","sourcesContent":["/**\n * Copyright 2025 IBM Corp.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport cryptoJs from \"crypto-js\";\n\nexport function createHash(input: string, length = 4) {\n  return cryptoJs.SHA256(input).toString().substring(0, length);\n}\n\nexport function createRandomHash(length = 4) {\n  return cryptoJs.SHA256(Date.now().toString()).toString().substring(0, length);\n}\n"]}