{"version":3,"file":"index-DIhDi5nr.js","sources":["../../../node_modules/@mantine/hooks/esm/utils/clamp/clamp.mjs","../../../app/helpers/actioncable/index.ts"],"sourcesContent":["'use client';\nfunction clamp(value, min, max) {\n if (min === void 0 && max === void 0) {\n return value;\n }\n if (min !== void 0 && max === void 0) {\n return Math.max(value, min);\n }\n if (min === void 0 && max !== void 0) {\n return Math.min(value, max);\n }\n return Math.min(Math.max(value, min), max);\n}\n\nexport { clamp };\n//# sourceMappingURL=clamp.mjs.map\n","import { createContext } from \"react\";\nimport type { Consumer } from \"@rails/actioncable\";\n\nexport const ActionCableContext = createContext(null);\n\nexport const useCable = (): Consumer | null => useContext(ActionCableContext);\n"],"names":["clamp","value","min","max","ActionCableContext","createContext","useCable","useContext"],"mappings":"0CACA,SAASA,EAAMC,EAAOC,EAAKC,EAAK,CAC9B,OAAID,IAAQ,QAAUC,IAAQ,OACrBF,EAELC,IAAQ,QAAUC,IAAQ,OACrB,KAAK,IAAIF,EAAOC,CAAG,EAGnB,KAAK,IADVA,IAAQ,QAAUC,IAAQ,OACZF,EAEF,KAAK,IAAIA,EAAOC,CAAG,EAFVC,CAAG,CAG9B,CCTa,MAAAC,EAAqBC,gBAA+B,IAAI,EAExDC,EAAW,IAAuBC,EAAAA,WAAWH,CAAkB","x_google_ignoreList":[0]}