{"version":3,"file":"cookie_controller-DXcFyjxK.js","sources":["../../../app/javascript/controllers/cookie_controller.js"],"sourcesContent":["import { Controller } from \"@hotwired/stimulus\";\nimport Cookies from \"js-cookie\";\n\n// Connects to data-controller=\"cookie\"\nexport default class extends Controller {\n  static values = {\n    name: String,\n    value: String,\n    expiration: Number\n  };\n\n  set() {\n    Cookies.set(this.nameValue, this.valueValue, {\n      expires: this.expirationValue\n    });\n  }\n}\n"],"names":["cookie_controller","Controller","Cookies","__publicField"],"mappings":"iWAIe,MAAKA,UAASC,CAAW,CAOtC,KAAM,CACJC,EAAQ,IAAI,KAAK,UAAW,KAAK,WAAY,CAC3C,QAAS,KAAK,eACpB,CAAK,CACL,CACA,CAXEC,EADkBH,EACX,SAAS,CACd,KAAM,OACN,MAAO,OACP,WAAY,MACb"}