{"version":3,"file":"identify_user_controller-C3U-8e14.js","sources":["../../app/assets/javascript/controllers/hotjar/identify_user_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\"\n\nexport default class extends Controller {\n static values = {\n borrowerId: String,\n loanId: String,\n unifiedId: String,\n userId: String\n }\n\n connect() {\n if (!window.hj) {\n return\n }\n\n const userAttributes = {\n application_source: 'AMS',\n borrower_id: this.borrowerIdValue,\n }\n\n if (this.loanIdValue) userAttributes.loan_id = this.loanIdValue\n if (this.unifiedIdValue) userAttributes.unified_id = this.unifiedIdValue\n\n window.hj('identify', this.userIdValue, userAttributes)\n }\n}\n"],"names":["identify_user_controller","Controller","userAttributes","__publicField"],"mappings":"kSAEe,MAAKA,UAASC,CAAW,CAQtC,SAAU,CACR,GAAI,CAAC,OAAO,GACV,OAGF,MAAMC,EAAiB,CACrB,mBAAoB,MACpB,YAAa,KAAK,eACxB,EAEQ,KAAK,cAAaA,EAAe,QAAU,KAAK,aAChD,KAAK,iBAAgBA,EAAe,WAAa,KAAK,gBAE1D,OAAO,GAAG,WAAY,KAAK,YAAaA,CAAc,CAC1D,CACA,CAtBEC,EADkBH,EACX,SAAS,CACd,WAAY,OACZ,OAAQ,OACR,UAAW,OACX,OAAQ,MACZ"}