Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/main/parambag/dist/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/main/parambag/dist/parambag.bundle.js.map |
{"version":3,"file":"parambag.bundle.js","sources":["../src/parambag.js"],"sourcesContent":["export class ParamBag\n{\n\tconstructor(params = {})\n\t{\n\t\tif (!!params && typeof params === 'object')\n\t\t{\n\t\t\tthis.params = new Map(Object.entries(params));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.params = new Map();\n\t\t}\n\t}\n\n\tstatic create(params = {})\n\t{\n\t\treturn new ParamBag(params);\n\t}\n\n\tgetParam(key: string, defaultValue = null)\n\t{\n\t\tif (this.params.has(key))\n\t\t{\n\t\t\treturn this.params.get(key);\n\t\t}\n\n\t\treturn defaultValue;\n\t}\n\n\tsetParam(key, value)\n\t{\n\t\tthis.params.set(key, value);\n\t}\n\n\tclear()\n\t{\n\t\tthis.params.clear();\n\t}\n}"],"names":["ParamBag","params","Map","Object","entries","key","defaultValue","has","get","value","set","clear"],"mappings":";;;KAAaA,QAAb;CAEC,sBACA;CAAA,QADYC,MACZ,uEADqB,EACrB;CAAA;;CACC,QAAI,CAAC,CAACA,MAAF,IAAY,oBAAOA,MAAP,MAAkB,QAAlC,EACA;CACC,WAAKA,MAAL,GAAc,IAAIC,GAAJ,CAAQC,MAAM,CAACC,OAAP,CAAeH,MAAf,CAAR,CAAd;CACA,KAHD,MAKA;CACC,WAAKA,MAAL,GAAc,IAAIC,GAAJ,EAAd;CACA;CACD;;CAZF;CAAA;CAAA,6BAmBUG,GAnBV,EAoBC;CAAA,UADsBC,YACtB,uEADqC,IACrC;;CACC,UAAI,KAAKL,MAAL,CAAYM,GAAZ,CAAgBF,GAAhB,CAAJ,EACA;CACC,eAAO,KAAKJ,MAAL,CAAYO,GAAZ,CAAgBH,GAAhB,CAAP;CACA;;CAED,aAAOC,YAAP;CACA;CA3BF;CAAA;CAAA,6BA6BUD,GA7BV,EA6BeI,KA7Bf,EA8BC;CACC,WAAKR,MAAL,CAAYS,GAAZ,CAAgBL,GAAhB,EAAqBI,KAArB;CACA;CAhCF;CAAA;CAAA,4BAmCC;CACC,WAAKR,MAAL,CAAYU,KAAZ;CACA;CArCF;CAAA;CAAA,6BAeC;CAAA,UADcV,MACd,uEADuB,EACvB;CACC,aAAO,IAAID,QAAJ,CAAaC,MAAb,CAAP;CACA;CAjBF;CAAA;CAAA;;;;;;;;"}