{"version":3,"file":"DisablingCover.bs-CEGc9i34.js","sources":["../../../app/frontend/shared/components/DisablingCover.bs.js"],"sourcesContent":["// Generated by ReScript, PLEASE EDIT WITH CARE\n\nimport * as I18n from \"../utils/I18n.bs.js\";\nimport * as React from \"react\";\n\nimport \"./DisablingCover.css\"\n;\n\nvar partial_arg = \"shared\";\n\nfunction ts(param, param$1, param$2) {\n  return I18n.t(partial_arg, param, param$1, param$2);\n}\n\nfunction DisablingCover(Props) {\n  var disabled = Props.disabled;\n  var messageOpt = Props.message;\n  var containerClassesOpt = Props.containerClasses;\n  var children = Props.children;\n  var message = messageOpt !== undefined ? messageOpt : ts(undefined, undefined, \"loading\");\n  var containerClasses = containerClassesOpt !== undefined ? containerClassesOpt : \"\";\n  return React.createElement(\"div\", {\n              className: \"relative \" + containerClasses\n            }, disabled ? [\n                React.createElement(\"div\", {\n                      key: \"school-admin-disabling-cover__blanket\",\n                      className: \"absolute w-full h-full bg-white opacity-75 z-20 flex items-center justify-center\"\n                    }),\n                React.createElement(\"div\", {\n                      key: \"school-admin-disabling-cover__body\",\n                      className: \"absolute w-full h-full z-20 flex items-center justify-center\"\n                    }, React.createElement(\"div\", {\n                          className: \"disabling-cover__loading-container bg-white rounded-lg shadow-xl p-4\"\n                        }, React.createElement(\"div\", {\n                              className: \"disabling-cover__loading-animation-box mx-auto\"\n                            }, React.createElement(\"div\", {\n                                  className: \"disabling-cover__loading-box-1\"\n                                }), React.createElement(\"div\", {\n                                  className: \"disabling-cover__loading-box-2\"\n                                }), React.createElement(\"div\", {\n                                  className: \"disabling-cover__loading-box-3\"\n                                })), React.createElement(\"span\", {\n                              className: \"block pt-2 font-semibold max-w-sm text-center text-sm\"\n                            }, message)))\n              ] : null, children);\n}\n\nvar make = DisablingCover;\n\nexport {\n  ts ,\n  make ,\n}\n/*  Not a pure module */\n"],"names":["partial_arg","ts","param","param$1","param$2","I18n.t","DisablingCover","Props","disabled","messageOpt","containerClassesOpt","children","message","containerClasses","React.createElement","make"],"mappings":"qGAKA,IAAIA,EAAc,SAClB,SAASC,EAAGC,EAAOC,EAASC,EAAS,CACnC,OAAOC,EAAOL,EAAaE,EAAOC,EAASC,CAAO,CACpD,CACA,SAASE,EAAeC,EAAO,CAC7B,IAAIC,EAAWD,EAAM,SACjBE,EAAaF,EAAM,QACnBG,EAAsBH,EAAM,iBAC5BI,EAAWJ,EAAM,SACjBK,EAAUH,IAAe,OAAYA,EAAaR,EAAG,OAAW,OAAW,SAAS,EACpFY,EAAmBH,IAAwB,OAAYA,EAAsB,GACjF,OAAOI,EAAAA,cAAoB,MAAO,CAChC,UAAW,YAAcD,CAC7B,EAAKL,EAAW,CAACM,EAAmB,cAAC,MAAO,CACxC,IAAK,wCACL,UAAW,kFACf,CAAG,EAAGA,EAAmB,cAAC,MAAO,CAC7B,IAAK,qCACL,UAAW,8DACf,EAAKA,EAAAA,cAAoB,MAAO,CAC5B,UAAW,sEACf,EAAKA,EAAAA,cAAoB,MAAO,CAC5B,UAAW,gDACf,EAAKA,EAAAA,cAAoB,MAAO,CAC5B,UAAW,gCACf,CAAG,EAAGA,EAAmB,cAAC,MAAO,CAC7B,UAAW,gCACf,CAAG,EAAGA,EAAmB,cAAC,MAAO,CAC7B,UAAW,gCACf,CAAG,CAAC,EAAGA,EAAmB,cAAC,OAAQ,CAC/B,UAAW,uDACZ,EAAEF,CAAO,CAAC,CAAC,CAAC,EAAI,KAAMD,CAAQ,CACjC,CACG,IAACI,EAAOT"}