{"version":3,"file":"cart_icon_controller.js","sources":["../../../assets/controllers/cart/cart_icon_controller.ts"],"sourcesContent":["import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n    static values = { total: String };\n\n    declare totalValue: string;\n\n    connect(): void {\n        if (this.totalValue && this.totalValue !== '0,00 €') {\n            (this.element as HTMLElement).title = `Panier : ${this.totalValue}`;\n        }\n    }\n\n    totalValueChanged(): void {\n        if (this.totalValue && this.totalValue !== '0,00 €') {\n            (this.element as HTMLElement).title = `Panier : ${this.totalValue}`;\n        } else {\n            (this.element as HTMLElement).title = 'Panier';\n        }\n    }\n}\n"],"names":[],"mappings":";AAEA,MAAA,6BAA6B,WAAW;AAAA,EACpC,OAAO,SAAS,EAAE,OAAO,OAAA;AAAA,EAIzB,UAAgB;AACZ,QAAI,KAAK,cAAc,KAAK,eAAe,UAAU;AAChD,WAAK,QAAwB,QAAQ,YAAY,KAAK,UAAU;AAAA,IACrE;AAAA,EACJ;AAAA,EAEA,oBAA0B;AACtB,QAAI,KAAK,cAAc,KAAK,eAAe,UAAU;AAChD,WAAK,QAAwB,QAAQ,YAAY,KAAK,UAAU;AAAA,IACrE,OAAO;AACF,WAAK,QAAwB,QAAQ;AAAA,IAC1C;AAAA,EACJ;AACJ;"}