{"version":3,"sources":["context/AlertContext.tsx","components/Alerts/Alerts.tsx","declarations.ts","../node_modules/graphql/jsutils/nodejsCustomInspectSymbol.mjs","../node_modules/graphql/language/visitor.mjs","components/Form/Validation.tsx","context/AuthenticationContext.tsx","assets/svg/logo.svg","components/MaintenanceNotification.tsx","context/MaintenanceContext.tsx","../node_modules/i18next-http-backend/esm/getFetch.cjs","components/Form/Input.tsx","components/Form/ValidatedForm.tsx","../node_modules/graphql/jsutils/defineInspect.mjs","../node_modules/graphql/jsutils/invariant.mjs","../node_modules/graphql/language/ast.mjs","../node_modules/graphql/jsutils/devAssert.mjs","components/LoadingIndicator/LoadingIndicator.tsx","components/Form/Label/Label.tsx","components/Buttons/ButtonStyleLink.tsx","components/Card/Card.tsx","helpers/icons.ts","helpers/readDateTime.ts","helpers/AbortableQueryLink.ts","helpers/offsetLimitPagination.ts","typePolicies.ts","helpers/apolloUsePreGeneratedHashes.ts","helpers/sentryLink.ts","apolloClient.ts","components/Buttons/LoadingStateButton.tsx","components/LoadingIndicator/CircularLoadingIndicator.tsx","components/Form/Annotation.tsx","../node_modules/graphql/polyfills/symbols.mjs","../node_modules/graphql/jsutils/inspect.mjs","../node_modules/graphql/language/blockString.mjs","helpers/availableLanguages.ts","pages/Login/Login.tsx","errors/ErrorBoundary.tsx","i18n.ts","../node_modules/moment/locale lazy /^/.//.*/.js$/ groupOptions: {} namespace object","locales lazy /^/.//.*/.json$/ groupOptions: {} namespace object","helpers/classNames.ts","components/Buttons/Button.tsx","errors/GlobalErrorBoundary.tsx","components/LoadingScreen/LoadingScreen.tsx","components/CheckUpdates.tsx","App.tsx","serviceWorker.ts","index.tsx","../node_modules/graphql/language/printer.mjs","../node_modules/graphql/language/source.mjs","../node_modules/graphql/language/kinds.mjs"],"names":["AlertContext","createContext","useAlertContext","ctx","useContext","Error","AlertContextProvider","children","useState","alerts","setAlerts","removeAlert","useCallback","id","filter","a","addAlert","alert","uniqueId","Provider","value","onDismiss","AlertType","TypeToStyle","Styles","error","Info","info","Alert","React","memo","type","className","headingRow","heading","title","dismissable","size","dismiss","onClick","icon","faTimes","content","Alerts","map","API_ENDPOINT","process","nodejsCustomInspectSymbol","Symbol","for","undefined","QueryDocumentKeys","Name","Document","OperationDefinition","VariableDefinition","Variable","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","BREAK","Object","freeze","visit","root","visitor","visitorKeys","arguments","length","stack","inArray","Array","isArray","keys","index","edits","node","key","parent","path","ancestors","newRoot","isLeaving","isEdited","pop","slice","clone","_i2","_Object$keys2","k","editOffset","ii","editKey","editValue","splice","prev","push","_visitorKeys$node$kin","result","isNode","concat","inspect","visitFn","getVisitFn","kind","call","kindVisitor","kindSpecificVisitor","leave","enter","specificVisitor","specificKindVisitor","Validation","validation","AuthenticationContext","useAuthenticationContext","suspense","timedPromise","Promise","res","setTimeout","current","validatePromise","all","authenticated","AuthenticationContextProvider","setAuthenticated","active","setActive","setMaintenance","useMaintenanceContext","useRef","logout","fetch","credentials","headers","accept","apolloClient","clearStore","fetchAuthenticated","response","status","text","date","json","active_classification","authenticate","username","password","formData","FormData","set","method","body","login","success","useEffect","promise","globalHistory","location","pathname","navigate","_path","_excluded","_extends","assign","target","i","source","prototype","hasOwnProperty","apply","this","_objectWithoutProperties","excluded","sourceKeys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogo","_ref","svgRef","titleId","props","viewBox","fill","xmlns","ref","d","ForwardRef","MaintenanceNotification","expectedDate","useTranslation","t","Login","toLocal","toLocaleString","DateTime","DATETIME_FULL","getNextMaintenance","iso","fromISO","dateReducer","currentDate","newDate","equals","MaintenanceContext","MaintenanceContextProvider","maintenance","_setMaintenance","useReducer","nextMaintenance","_setNextMaintenance","alertMaintenance","then","interval","setInterval","clearInterval","getIconLookup","faWrench","Trans","i18nKey","useCreateContext","RenderInput","forwardRef","input","Input","label","name","annotation","required","labelWhenOptional","inputRef","fallbackRef","previousDefaultVal","useField","fieldName","defaultValue","registerField","getValue","valueAsNumber","checked","valueAsDate","fromFormat","zone","toJSDate","files","setValue","Date","toISOString","replace","clearValue","formattedDefaultValue","useMemo","dateString","split","isCheckbox","isHidden","htmlFor","defaultChecked","ValidatedFormContext","loading","SubmitFormButton","ValidatedForm","formRef","onSubmit","rest","setLoading","setError","errorHints","setErrorHints","isValidationError","setIsValidationError","mounted","onValidateSubmit","data","helpers","event","stopPropagation","form","setErrors","validate","abortEarly","stripUnknown","validated","ValidationError","ApolloError","graphQLErrors","extensions","category","message","fromEntries","inner","captureException","defineInspect","classObject","fn","toJSON","condition","Boolean","invariant","Location","startToken","endToken","start","end","Token","line","column","next","maybeNode","devAssert","LoadingIndicator","classNames","indicator","MediumLoadingIndicator","Label","small","checkBox","hidden","labelText","asterisk","optional","ButtonStyleLink","appearance","straight","linkProps","completeClassName","useButtonClassName","CardSizeEnum","Card","card","tiny","TINY","SMALL","medium","MEDIUM","library","add","prefix","iconName","readDateTime","readDateTimeUTC","toUTC","readOptionalDateTime","connections","Map","abortHandlers","handles","AbortableQueryLink","ApolloLink","operation","forward","Observable","observer","context","getContext","requestTrackerId","connectionHandle","subscribe","cleanUp","complete","get","unsubscribe","delete","controller","AbortController","setContext","fetchOptions","signal","has","abort","onRequestAbort","offsetLimitPagination","keyArgs","merge","existing","incoming","args","offset","limit","merged","filled","read","typePolicies","Subscription","PorpaginasResult_Sale","fields","items","PorpaginasResult_NormalClassification","PorpaginasResult_User","PorpaginasResult_Shipment","PorpaginasResult_Quota","PorpaginasResult_Star","PorpaginasResult_Ratingdata","PorpaginasResult_Device","PorpaginasResult_Pin","PorpaginasResult_Article","PorpaginasResult_ArticleClassification","PorpaginasResult_Devicetype","PorpaginasResult_ClassificationCode","PorpaginasResult_DeviceCountClassification","PorpaginasResult_CalculatedClassification","PorpaginasResult_RankedClassification","PorpaginasResult_RankingLock","PorpaginasResult_Champion","PorpaginasResult_ClassificationCustomType","PorpaginasResult_Event","PorpaginasResult_EventRegistration","keyFields","PorpaginasResult_DevicesSale","ClassificationInterface","users","archived","created","modified","deleted","Address","Article","published","ArticleClassification","readDate","CalculatedClassification","CompareClassification","dates","isos","CalculationEntry","CalculationEntryInterface","Classification","ClassificationMetadata","entry_date","birthday","ClassificationCode","ClassificationsPin","ClassificationsPinsRatingdata","ContactInfo","DatedCalculationEntry","IntervalCalculationEntry","DateDiff","DatedEntryData","DatedInt","DatedValue","DatedValueInterface","DestructuredSerial","Device","production","DeviceCountClassification","DeviceSerialInfo","Devicetype","ranking_start","ranking_end","DevicesSale","change_date","EntryData","File","GeneratedFile","Mutation","NormalClassification","Pin","Pinrule","Point","PorpaginasResult_Point","Quota","RankedClassification","Ratingdata","Role","Sale","sold","lockedDate","Shipment","imported","Star","SummedClassification","User","lastActionTime","RankingLock","locked_month","QueuedJob","completed","fetched","notBefore","Champion","ImportDiffData","ImportDiffChildren","SaleStruct","ClassificationCustomType","Event","start_date","end_date","notification_start","registration_until","EventRegistration","StornoStruct","hashesPromise","operationInfo","query","definitions","find","defn","operationName","fragments","join","variables","sentryLink","addBreadcrumb","level","Severity","Debug","httpLink","HttpLink","uri","persistedLink","createPersistedQueryLink","generateHash","default","doc","hashes","operationDefinition","def","console","hash","ApolloClient","cache","InMemoryCache","possibleTypes","Query","firstDate","firstYear","nextDate","nextYear","currentYear","link","from","defaultOptions","watchQuery","fetchPolicy","queryDeduplication","LoadingStateButton","disabled","intermediate","max","faTimesCircle","CircularLoadingIndicator","val","radialProgress","Math","round","bg","mask","full","fix","inset","Annotation","annotationWarning","iterator","asyncIterator","SYMBOL_TO_STRING_TAG","toStringTag","_typeof","obj","constructor","formatValue","seenValues","JSON","stringify","previouslySeenValues","customInspectFn","object","String","getCustomFn","customValue","array","len","min","remaining","formatArray","tag","toString","getObjectTag","properties","formatObject","formatObjectValue","dedentBlockStringValue","rawString","lines","commonIndent","indent","leadingWhitespace","getBlockStringIndentation","isBlank","shift","str","printBlockString","indentation","preferMultipleLines","isSingleLine","hasLeadingSpace","hasTrailingQuote","hasTrailingSlash","printAsMultipleLines","availableLanguages","en","es","LoginViewWrap","background","logo","contentWrap","box","setSuccess","email","LoginSchema","Yup","shape","GetStructureLoginSchema","placeholder","autoComplete","to","ErrorBoundary","captureError","state","hasError","errorInfo","canHandleError","Sentry","extra","renderOnError","Component","supportedLangs","onChangeLocale","lng","navigator","language","includes","Settings","defaultLocale","moment","locale","lngs","region","momentLocale","toLowerCase","i18n","use","ChainedBackend","initReactI18next","init","fallbackLng","debug","interpolation","escapeValue","backend","backends","resourcesToBackend","ns","clb","resources","catch","err","HttpBackend","backendOptions","loadPath","defaultNS","supportedLngs","on","webpackAsyncContext","req","__webpack_require__","o","resolve","e","code","ids","module","exports","classes","item","Style","button","Appearances","Button","GlobalErrorBoundary","LoadingScreen","wrap","logoWrap","getCurrentIndexHash","window","origin","sha256","onLine","UpdateAlert","reload","CheckUpdates","localVersionHashPromise","alerted","checkUpdate","bitArray","equal","lazy","Welcome","ForgotPassword","ResetPassword","Authenticated","App","fallback","hostname","match","dsn","release","environment","ReactDOM","render","StrictMode","document","getElementById","serviceWorker","ready","registration","unregister","print","ast","printDocASTReducer","op","varDefs","variableDefinitions","directives","selectionSet","variable","_ref2","block","selections","_ref3","alias","_ref4","_ref5","_ref6","typeCondition","_ref7","_ref8","_ref9","_ref10","_ref11","_ref12","_ref13","values","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","addDescription","_ref20","operationTypes","_ref21","_ref22","_ref23","interfaces","_ref24","hasMultilineItems","_ref25","_ref26","_ref27","types","_ref28","_ref29","_ref30","_ref31","repeatable","locations","_ref32","_ref33","_ref34","_ref35","_ref36","_ref37","_ref38","cb","description","maybeArray","_maybeArray$filter$jo","separator","x","maybeString","isMultiline","string","some","_defineProperties","descriptor","enumerable","configurable","writable","defineProperty","Source","locationOffset","Constructor","protoProps","staticProps","Kind","NAME","DOCUMENT","OPERATION_DEFINITION","VARIABLE_DEFINITION","SELECTION_SET","FIELD","ARGUMENT","FRAGMENT_SPREAD","INLINE_FRAGMENT","FRAGMENT_DEFINITION","VARIABLE","INT","FLOAT","STRING","BOOLEAN","NULL","ENUM","LIST","OBJECT","OBJECT_FIELD","DIRECTIVE","NAMED_TYPE","LIST_TYPE","NON_NULL_TYPE","SCHEMA_DEFINITION","OPERATION_TYPE_DEFINITION","SCALAR_TYPE_DEFINITION","OBJECT_TYPE_DEFINITION","FIELD_DEFINITION","INPUT_VALUE_DEFINITION","INTERFACE_TYPE_DEFINITION","UNION_TYPE_DEFINITION","ENUM_TYPE_DEFINITION","ENUM_VALUE_DEFINITION","INPUT_OBJECT_TYPE_DEFINITION","DIRECTIVE_DEFINITION","SCHEMA_EXTENSION","SCALAR_TYPE_EXTENSION","OBJECT_TYPE_EXTENSION","INTERFACE_TYPE_EXTENSION","UNION_TYPE_EXTENSION","ENUM_TYPE_EXTENSION","INPUT_OBJECT_TYPE_EXTENSION"],"mappings":"kPAwBMA,EAAeC,wBAA4C,MAEpDC,EAAkB,WAC9B,IAAMC,EAAMC,qBAAWJ,GAEvB,GAAY,OAARG,EACH,MAAM,IAAIE,MAAM,sCAGjB,OAAOF,GAOKG,EAAiC,SAAC,GAAkB,IAAhBC,EAAe,EAAfA,SAChD,EAA4BC,mBAAwB,IAApD,mBAAOC,EAAP,KAAeC,EAAf,KAEMC,EAAcC,uBACnB,SAACC,GAAD,OAAgB,WACfH,GAAU,SAACD,GAAD,OAAYA,EAAOK,QAAO,SAACC,GAAD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FCjGA,IAAI1nB,EAAM,CACT,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,WAAY,CACX,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,gBAAiB,CAChB,IACA,GAED,gBAAiB,CAChB,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,cAAe,CACd,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,eAAgB,CACf,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,WAAY,CACX,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,WAAY,CACX,IACA,GAED,UAAW,CACV,IACA,GAED,WAAY,CACX,IACA,GAED,gBAAiB,CAChB,IACA,GAED,WAAY,CACX,IACA,GAED,aAAc,CACb,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,eAAgB,CACf,IACA,GAED,UAAW,CACV,IACA,GAED,UAAW,CACV,IACA,GAED,gBAAiB,CAChB,IACA,GAED,UAAW,CACV,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,GAED,aAAc,CACb,IACA,IAGF,SAASipB,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEppB,EAAKkpB,GAC9B,OAAOriB,QAAQwiB,UAAUtc,MAAK,WAC7B,IAAIuc,EAAI,IAAI7rB,MAAM,uBAAyByrB,EAAM,KAEjD,MADAI,EAAEC,KAAO,mBACHD,KAIR,IAAIE,EAAMxpB,EAAIkpB,GAAMjrB,EAAKurB,EAAI,GAC7B,OAAOL,EAAoBG,EAAEE,EAAI,IAAIzc,MAAK,WACzC,OAAOoc,EAAoBzd,EAAEzN,EAAI,MAGnCgrB,EAAoBjlB,KAAO,WAC1B,OAAOZ,OAAOY,KAAKhE,IAEpBipB,EAAoBhrB,GAAK,IACzBwrB,EAAOC,QAAUT,G,oBChjBjB,IAAIjpB,EAAM,CACT,4BAA6B,CAC5B,IACA,KAED,iCAAkC,CACjC,IACA,KAED,8BAA+B,CAC9B,IACA,KAED,uBAAwB,CACvB,IACA,KAED,uBAAwB,CACvB,IACA,KAED,0BAA2B,CAC1B,IACA,KAED,6BAA8B,CAC7B,IACA,KAED,wBAAyB,CACxB,IACA,KAED,2BAA4B,CAC3B,IACA,KAED,sBAAuB,CACtB,IACA,KAED,kBAAmB,CAClB,IACA,KAED,oBAAqB,CACpB,IACA,KAED,qBAAsB,CACrB,KACA,KAED,+BAAgC,CAC/B,KACA,KAED,yBAA0B,CACzB,KACA,KAED,2BAA4B,CAC3B,KACA,KAED,6BAA8B,CAC7B,KACA,KAED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iBACjBC,gBAAiB,iBACjBC,oBAAqB,qBAErBC,SAAU,WACVC,IAAK,WACLC,MAAO,aACPC,OAAQ,cACRC,QAAS,eACTC,KAAM,YACNC,KAAM,YACNC,KAAM,YACNC,OAAQ,cACRC,aAAc,cAEdC,UAAW,YAEXC,WAAY,YACZC,UAAW,WACXC,cAAe,cAEfC,kBAAmB,mBACnBC,0BAA2B,0BAE3BC,uBAAwB,uBACxBC,uBAAwB,uBACxBC,iBAAkB,kBAClBC,uBAAwB,uBACxBC,0BAA2B,0BAC3BC,sBAAuB,sBACvBC,qBAAsB,qBACtBC,sBAAuB,sBACvBC,6BAA8B,4BAE9BC,qBAAsB,sBAEtBC,iBAAkB,kBAElBC,sBAAuB,sBACvBC,sBAAuB,sBACvBC,yBAA0B,yBAC1BC,qBAAsB,qBACtBC,oBAAqB,oBACrBC,4BAA6B,+B","file":"static/js/main.51902d8f.chunk.js","sourcesContent":["import React, {\n\tcreateContext,\n\tReactNode,\n\tuseCallback,\n\tuseContext,\n\tuseState,\n} from \"react\"\nimport uniqueId from \"lodash/uniqueId\"\nimport { IconLookup } from \"@fortawesome/fontawesome-svg-core\"\n\nimport Alerts, { AlertType } from \"../components/Alerts/Alerts\"\n\ninterface AlertInterface {\n\ttype: AlertType\n\ticon?: IconLookup\n\ttitle: string\n\tcontent: ReactNode\n\tdismissable?: boolean\n\tonDismiss?: () => void\n}\n\ninterface AlertContextInterface {\n\taddAlert: (alert: AlertInterface) => void\n}\nconst AlertContext = createContext(null)\n\nexport const useAlertContext = () => {\n\tconst ctx = useContext(AlertContext)\n\n\tif (ctx === null) {\n\t\tthrow new Error(\"No AlertContextProvider available.\")\n\t}\n\n\treturn ctx\n}\n\nexport interface AlertWithId extends AlertInterface {\n\tid: string\n}\n\nexport const AlertContextProvider: React.FC = ({ children }) => {\n\tconst [alerts, setAlerts] = useState([])\n\n\tconst removeAlert = useCallback(\n\t\t(id: string) => () => {\n\t\t\tsetAlerts((alerts) => alerts.filter((a) => a.id !== id))\n\t\t},\n\t\t[]\n\t)\n\n\tconst addAlert = useCallback((alert: AlertInterface) => {\n\t\tsetAlerts((alerts) => [\n\t\t\t...alerts,\n\t\t\t{\n\t\t\t\tid: uniqueId(\"alert-\"),\n\t\t\t\t...alert,\n\t\t\t},\n\t\t])\n\t}, [])\n\n\tconst ctx = {\n\t\taddAlert,\n\t}\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t{children}\n\t\t\n\t)\n}\n","import React from \"react\"\nimport { Alert as AlertComp } from \"@reach/alert\"\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\"\nimport { faTimes } from \"@fortawesome/pro-solid-svg-icons\"\n\nimport { AlertWithId } from \"../../context/AlertContext\"\nimport Button from \"../Buttons/Button\"\n\nimport Styles from \"./Alerts.module.css\"\n\nexport enum AlertType {\n\tInfo,\n\tError,\n}\n\nconst TypeToStyle = {\n\t[AlertType.Error]: Styles.error,\n\t[AlertType.Info]: Styles.info,\n}\n\ntype AlertProps = {\n\talert: AlertWithId\n\tonDismiss: () => void\n}\nconst Alert = React.memo(({ alert, onDismiss }) => {\n\tconst onClose = () => {\n\t\tif (alert.onDismiss) {\n\t\t\talert.onDismiss()\n\t\t}\n\n\t\tonDismiss()\n\t}\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t\t{alert.title}\n\n\t\t\t\t{alert.dismissable !== false && (\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t)}\n\t\t\t
\n\t\t\t{alert.content}\n\t\t\n\t)\n})\n\ntype AlertsProps = {\n\talerts: AlertWithId[]\n\tonDismiss: (id: string) => () => void\n}\nconst Alerts: React.FC = ({ alerts, onDismiss }) => {\n\treturn (\n\t\t
\n\t\t\t{alerts.map((alert) => {\n\t\t\t\treturn (\n\t\t\t\t\t\n\t\t\t\t)\n\t\t\t})}\n\t\t
\n\t)\n}\n\nexport default Alerts\n","export const API_ENDPOINT = process.env.REACT_APP_API_ENDPOINT\n","// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nvar nodejsCustomInspectSymbol = typeof Symbol === 'function' && typeof Symbol.for === 'function' ? Symbol.for('nodejs.util.inspect.custom') : undefined;\nexport default nodejsCustomInspectSymbol;\n","import inspect from \"../jsutils/inspect.mjs\";\nimport { isNode } from \"./ast.mjs\";\n/**\n * A visitor is provided to visit, it contains the collection of\n * relevant functions to be called during the visitor's traversal.\n */\n\nexport var QueryDocumentKeys = {\n Name: [],\n Document: ['definitions'],\n OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],\n VariableDefinition: ['variable', 'type', 'defaultValue', 'directives'],\n Variable: ['name'],\n SelectionSet: ['selections'],\n Field: ['alias', 'name', 'arguments', 'directives', 'selectionSet'],\n Argument: ['name', 'value'],\n FragmentSpread: ['name', 'directives'],\n InlineFragment: ['typeCondition', 'directives', 'selectionSet'],\n FragmentDefinition: ['name', // Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n 'variableDefinitions', 'typeCondition', 'directives', 'selectionSet'],\n IntValue: [],\n FloatValue: [],\n StringValue: [],\n BooleanValue: [],\n NullValue: [],\n EnumValue: [],\n ListValue: ['values'],\n ObjectValue: ['fields'],\n ObjectField: ['name', 'value'],\n Directive: ['name', 'arguments'],\n NamedType: ['name'],\n ListType: ['type'],\n NonNullType: ['type'],\n SchemaDefinition: ['description', 'directives', 'operationTypes'],\n OperationTypeDefinition: ['type'],\n ScalarTypeDefinition: ['description', 'name', 'directives'],\n ObjectTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n FieldDefinition: ['description', 'name', 'arguments', 'type', 'directives'],\n InputValueDefinition: ['description', 'name', 'type', 'defaultValue', 'directives'],\n InterfaceTypeDefinition: ['description', 'name', 'interfaces', 'directives', 'fields'],\n UnionTypeDefinition: ['description', 'name', 'directives', 'types'],\n EnumTypeDefinition: ['description', 'name', 'directives', 'values'],\n EnumValueDefinition: ['description', 'name', 'directives'],\n InputObjectTypeDefinition: ['description', 'name', 'directives', 'fields'],\n DirectiveDefinition: ['description', 'name', 'arguments', 'locations'],\n SchemaExtension: ['directives', 'operationTypes'],\n ScalarTypeExtension: ['name', 'directives'],\n ObjectTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n InterfaceTypeExtension: ['name', 'interfaces', 'directives', 'fields'],\n UnionTypeExtension: ['name', 'directives', 'types'],\n EnumTypeExtension: ['name', 'directives', 'values'],\n InputObjectTypeExtension: ['name', 'directives', 'fields']\n};\nexport var BREAK = Object.freeze({});\n/**\n * visit() will walk through an AST using a depth-first traversal, calling\n * the visitor's enter function at each node in the traversal, and calling the\n * leave function after visiting that node and all of its child nodes.\n *\n * By returning different values from the enter and leave functions, the\n * behavior of the visitor can be altered, including skipping over a sub-tree of\n * the AST (by returning false), editing the AST by returning a value or null\n * to remove the value, or to stop the whole traversal by returning BREAK.\n *\n * When using visit() to edit an AST, the original AST will not be modified, and\n * a new version of the AST with the changes applied will be returned from the\n * visit function.\n *\n * const editedAST = visit(ast, {\n * enter(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: skip visiting this node\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * },\n * leave(node, key, parent, path, ancestors) {\n * // @return\n * // undefined: no action\n * // false: no action\n * // visitor.BREAK: stop visiting altogether\n * // null: delete this node\n * // any value: replace this node with the returned value\n * }\n * });\n *\n * Alternatively to providing enter() and leave() functions, a visitor can\n * instead provide functions named the same as the kinds of AST nodes, or\n * enter/leave visitors at a named key, leading to four permutations of the\n * visitor API:\n *\n * 1) Named visitors triggered when entering a node of a specific kind.\n *\n * visit(ast, {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * })\n *\n * 2) Named visitors that trigger upon entering and leaving a node of\n * a specific kind.\n *\n * visit(ast, {\n * Kind: {\n * enter(node) {\n * // enter the \"Kind\" node\n * }\n * leave(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n *\n * 3) Generic visitors that trigger upon entering and leaving any node.\n *\n * visit(ast, {\n * enter(node) {\n * // enter any node\n * },\n * leave(node) {\n * // leave any node\n * }\n * })\n *\n * 4) Parallel visitors for entering and leaving nodes of a specific kind.\n *\n * visit(ast, {\n * enter: {\n * Kind(node) {\n * // enter the \"Kind\" node\n * }\n * },\n * leave: {\n * Kind(node) {\n * // leave the \"Kind\" node\n * }\n * }\n * })\n */\n\nexport function visit(root, visitor) {\n var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys;\n\n /* eslint-disable no-undef-init */\n var stack = undefined;\n var inArray = Array.isArray(root);\n var keys = [root];\n var index = -1;\n var edits = [];\n var node = undefined;\n var key = undefined;\n var parent = undefined;\n var path = [];\n var ancestors = [];\n var newRoot = root;\n /* eslint-enable no-undef-init */\n\n do {\n index++;\n var isLeaving = index === keys.length;\n var isEdited = isLeaving && edits.length !== 0;\n\n if (isLeaving) {\n key = ancestors.length === 0 ? undefined : path[path.length - 1];\n node = parent;\n parent = ancestors.pop();\n\n if (isEdited) {\n if (inArray) {\n node = node.slice();\n } else {\n var clone = {};\n\n for (var _i2 = 0, _Object$keys2 = Object.keys(node); _i2 < _Object$keys2.length; _i2++) {\n var k = _Object$keys2[_i2];\n clone[k] = node[k];\n }\n\n node = clone;\n }\n\n var editOffset = 0;\n\n for (var ii = 0; ii < edits.length; ii++) {\n var editKey = edits[ii][0];\n var editValue = edits[ii][1];\n\n if (inArray) {\n editKey -= editOffset;\n }\n\n if (inArray && editValue === null) {\n node.splice(editKey, 1);\n editOffset++;\n } else {\n node[editKey] = editValue;\n }\n }\n }\n\n index = stack.index;\n keys = stack.keys;\n edits = stack.edits;\n inArray = stack.inArray;\n stack = stack.prev;\n } else {\n key = parent ? inArray ? index : keys[index] : undefined;\n node = parent ? parent[key] : newRoot;\n\n if (node === null || node === undefined) {\n continue;\n }\n\n if (parent) {\n path.push(key);\n }\n }\n\n var result = void 0;\n\n if (!Array.isArray(node)) {\n if (!isNode(node)) {\n throw new Error(\"Invalid AST Node: \".concat(inspect(node), \".\"));\n }\n\n var visitFn = getVisitFn(visitor, node.kind, isLeaving);\n\n if (visitFn) {\n result = visitFn.call(visitor, node, key, parent, path, ancestors);\n\n if (result === BREAK) {\n break;\n }\n\n if (result === false) {\n if (!isLeaving) {\n path.pop();\n continue;\n }\n } else if (result !== undefined) {\n edits.push([key, result]);\n\n if (!isLeaving) {\n if (isNode(result)) {\n node = result;\n } else {\n path.pop();\n continue;\n }\n }\n }\n }\n }\n\n if (result === undefined && isEdited) {\n edits.push([key, node]);\n }\n\n if (isLeaving) {\n path.pop();\n } else {\n var _visitorKeys$node$kin;\n\n stack = {\n inArray: inArray,\n index: index,\n keys: keys,\n edits: edits,\n prev: stack\n };\n inArray = Array.isArray(node);\n keys = inArray ? node : (_visitorKeys$node$kin = visitorKeys[node.kind]) !== null && _visitorKeys$node$kin !== void 0 ? _visitorKeys$node$kin : [];\n index = -1;\n edits = [];\n\n if (parent) {\n ancestors.push(parent);\n }\n\n parent = node;\n }\n } while (stack !== undefined);\n\n if (edits.length !== 0) {\n newRoot = edits[edits.length - 1][1];\n }\n\n return newRoot;\n}\n/**\n * Creates a new visitor instance which delegates to many visitors to run in\n * parallel. Each visitor will be visited for each node before moving on.\n *\n * If a prior visitor edits a node, no following visitors will see that node.\n */\n\nexport function visitInParallel(visitors) {\n var skipping = new Array(visitors.length);\n return {\n enter: function enter(node) {\n for (var i = 0; i < visitors.length; i++) {\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind,\n /* isLeaving */\n false);\n\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n\n if (result === false) {\n skipping[i] = node;\n } else if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined) {\n return result;\n }\n }\n }\n }\n },\n leave: function leave(node) {\n for (var i = 0; i < visitors.length; i++) {\n if (skipping[i] == null) {\n var fn = getVisitFn(visitors[i], node.kind,\n /* isLeaving */\n true);\n\n if (fn) {\n var result = fn.apply(visitors[i], arguments);\n\n if (result === BREAK) {\n skipping[i] = BREAK;\n } else if (result !== undefined && result !== false) {\n return result;\n }\n }\n } else if (skipping[i] === node) {\n skipping[i] = null;\n }\n }\n }\n };\n}\n/**\n * Given a visitor instance, if it is leaving or not, and a node kind, return\n * the function the visitor runtime should call.\n */\n\nexport function getVisitFn(visitor, kind, isLeaving) {\n var kindVisitor = visitor[kind];\n\n if (kindVisitor) {\n if (!isLeaving && typeof kindVisitor === 'function') {\n // { Kind() {} }\n return kindVisitor;\n }\n\n var kindSpecificVisitor = isLeaving ? kindVisitor.leave : kindVisitor.enter;\n\n if (typeof kindSpecificVisitor === 'function') {\n // { Kind: { enter() {}, leave() {} } }\n return kindSpecificVisitor;\n }\n } else {\n var specificVisitor = isLeaving ? visitor.leave : visitor.enter;\n\n if (specificVisitor) {\n if (typeof specificVisitor === 'function') {\n // { enter() {}, leave() {} }\n return specificVisitor;\n }\n\n var specificKindVisitor = specificVisitor[kind];\n\n if (typeof specificKindVisitor === 'function') {\n // { enter: { Kind() {} }, leave: { Kind() {} } }\n return specificKindVisitor;\n }\n }\n }\n}\n","import React from \"react\"\n\nimport Styles from \"./Validation.module.css\"\n\ntype ValidationProps = {}\nconst Validation: React.FC = ({ children }) => {\n\treturn {children}\n}\n\nexport default Validation\n","import React, {\n\tcreateContext,\n\tMutableRefObject,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseRef,\n\tuseState,\n} from \"react\"\nimport { navigate, globalHistory } from \"@reach/router\"\n\nimport { API_ENDPOINT } from \"../declarations\"\nimport { apolloClient } from \"../apolloClient\"\n\nimport { useMaintenanceContext } from \"./MaintenanceContext\"\n\ninterface AuthenticationContextInterface {\n\tauthenticated: boolean | undefined | null\n\tactive: boolean | undefined\n\tauthenticate(username: string, password: string): Promise\n\tlogout(): Promise\n\tvalidatePromise: MutableRefObject | undefined>\n}\nconst AuthenticationContext =\n\tcreateContext(null)\n\nexport const useAuthenticationContext = (\n\tsuspense = false\n): Omit => {\n\tconst ctx = useContext(AuthenticationContext)\n\n\tif (ctx === null) {\n\t\tthrow new Error(\"No AuthenticationContextProvider available.\")\n\t}\n\n\tif (suspense) {\n\t\tconst timedPromise = new Promise((res) => setTimeout(res, 500))\n\n\t\tconst { current } = ctx.validatePromise\n\t\tif (current) {\n\t\t\t// wait until current promise is done, but at least 500ms\n\t\t\t// this makes the loading-states smoother\n\t\t\tthrow Promise.all([current, timedPromise])\n\t\t}\n\n\t\tif (ctx.authenticated === null) {\n\t\t\tthrow timedPromise\n\t\t}\n\t}\n\n\treturn ctx\n}\n\nexport const AuthenticationContextProvider: React.FC = ({ children }) => {\n\tconst [authenticated, setAuthenticated] = useState<\n\t\tboolean | undefined | null\n\t>(null)\n\tconst [active, setActive] = useState(undefined)\n\n\tconst { setMaintenance } = useMaintenanceContext()\n\n\tconst validatePromise = useRef>()\n\n\tconst logout = useCallback(async () => {\n\t\tif (!authenticated) {\n\t\t\treturn\n\t\t}\n\n\t\tawait fetch(`${API_ENDPOINT}/users/logout`, {\n\t\t\tcredentials: \"include\",\n\t\t\theaders: {\n\t\t\t\taccept: \"application/json\",\n\t\t\t},\n\t\t})\n\n\t\tawait apolloClient.clearStore()\n\n\t\tsetAuthenticated(undefined)\n\t}, [authenticated])\n\n\tconst fetchAuthenticated = useCallback(async () => {\n\t\tconst response = await fetch(`${API_ENDPOINT}/users/check`, {\n\t\t\tcredentials: \"include\",\n\t\t\theaders: {\n\t\t\t\taccept: \"application/json\",\n\t\t\t},\n\t\t})\n\n\t\tif (response.status === 503) {\n\t\t\tconst date = await response.text()\n\t\t\tsetMaintenance(date.length > 0 ? date : true)\n\t\t}\n\n\t\tif (response.status !== 200) {\n\t\t\tthrow new Error(\"could not fetch authenticated\")\n\t\t}\n\n\t\tconst { authenticated, active_classification } = await response.json()\n\n\t\tif (!authenticated) {\n\t\t\tthrow new Error(\"could not fetch authenticated\")\n\t\t}\n\n\t\tsetAuthenticated(authenticated)\n\t\tsetActive(active_classification)\n\t}, [setMaintenance])\n\n\tconst authenticate = useCallback(\n\t\tasync (username: string, password: string) => {\n\t\t\tconst formData = new FormData()\n\t\t\tformData.set(\"email\", username)\n\t\t\tformData.set(\"password\", password)\n\t\t\tformData.set(\"remember_me\", \"on\")\n\n\t\t\tconst login = await fetch(`${API_ENDPOINT}/users/login`, {\n\t\t\t\tmethod: \"post\",\n\t\t\t\tbody: formData,\n\t\t\t\tcredentials: \"include\",\n\t\t\t\theaders: {\n\t\t\t\t\taccept: \"application/json\",\n\t\t\t\t},\n\t\t\t})\n\n\t\t\tconst { success } = await login.json()\n\n\t\t\tif (!success) {\n\t\t\t\tthrow new Error(\"username or password is wrong\")\n\t\t\t}\n\n\t\t\tawait fetchAuthenticated()\n\t\t},\n\t\t[fetchAuthenticated]\n\t)\n\n\tuseEffect(() => {\n\t\tif (authenticated) {\n\t\t\t// trigger suspense until navigation is done\n\t\t\t;(async () => {\n\t\t\t\tconst promise = (async () => {\n\t\t\t\t\tlet path = globalHistory.location.pathname\n\n\t\t\t\t\tif (path === \"/login\") {\n\t\t\t\t\t\tpath = \"/\"\n\t\t\t\t\t}\n\n\t\t\t\t\tif (active === undefined) {\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!active) {\n\t\t\t\t\t\tif (path === \"login\") {\n\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpath = \"/login\"\n\t\t\t\t\t}\n\n\t\t\t\t\tawait navigate(path || \"/\")\n\t\t\t\t})()\n\n\t\t\t\tvalidatePromise.current = promise\n\n\t\t\t\tawait promise\n\n\t\t\t\tif (validatePromise.current === promise) {\n\t\t\t\t\tvalidatePromise.current = undefined\n\t\t\t\t}\n\t\t\t})()\n\t\t\treturn\n\t\t}\n\n\t\t;(async () => {\n\t\t\tconst promise = (async () => {\n\t\t\t\ttry {\n\t\t\t\t\tawait fetchAuthenticated()\n\t\t\t\t} catch (ignore) {\n\t\t\t\t\tsetAuthenticated(undefined)\n\t\t\t\t}\n\t\t\t})()\n\n\t\t\tvalidatePromise.current = promise\n\n\t\t\tawait promise\n\n\t\t\tif (validatePromise.current === promise) {\n\t\t\t\tvalidatePromise.current = undefined\n\t\t\t}\n\t\t})()\n\t}, [fetchAuthenticated, authenticated, active])\n\n\tconst ctx = {\n\t\tactive,\n\t\tauthenticated,\n\t\tlogout,\n\t\tauthenticate,\n\t\tvalidatePromise,\n\t}\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t)\n}\n","var _path;\n\nvar _excluded = [\"title\", \"titleId\"];\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from \"react\";\n\nfunction SvgLogo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 50 50\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M49.9999 35.8843H46.1781V50H49.9999V35.8843ZM49.9999 20.9354C50.0095 19.4319 48.8409 18.1678 47.2317 18.1678C45.7471 18.1678 44.4827 19.3361 44.4827 20.9258C44.4827 22.5442 45.8045 23.6647 47.2317 23.6647C48.793 23.6742 49.9904 22.458 49.9999 20.9354ZM49.6264 20.9354C49.6168 22.2474 48.5919 23.3008 47.2413 23.3008C45.9291 23.3008 44.8563 22.2569 44.8563 20.9258C44.8563 19.6138 45.9003 18.5413 47.2509 18.5413C48.6111 18.5413 49.636 19.633 49.6264 20.9354ZM47.8544 20.8779C48.3045 20.763 48.5727 20.4949 48.5727 20.0543C48.5727 19.7192 48.3908 19.384 48.0172 19.2499C47.7969 19.1733 47.5574 19.1637 47.203 19.1637H46.0727V22.6304H46.6954V21.079H46.9157C47.3658 21.0886 47.6053 21.1269 47.6915 21.6153C47.7203 21.6919 47.7681 22.075 47.7777 22.1516C47.8352 22.4485 47.8927 22.573 47.9214 22.6304H48.6398C48.477 22.324 48.4482 22.1324 48.3716 21.6057C48.2854 21.1365 48.1417 21.0024 47.8544 20.8779ZM47.2126 20.5906H46.7049V19.6521H47.0976C47.5095 19.6521 47.5862 19.6521 47.7107 19.7C47.9022 19.7958 47.9597 19.9873 47.9597 20.1118C47.9597 20.6002 47.4521 20.5906 47.2126 20.5906ZM45.0191 15.6108C44.7126 14.5191 43.6494 13.0539 42.3275 11.809C41.0249 10.5832 39.1187 9.42444 38.4195 9.38614C37.6915 9.33825 37.5383 9.76919 37.1456 9.78835C35.7758 9.85538 34.2241 8.98392 32.9885 7.64322C32.8065 7.44211 32.5862 7.241 32.5383 7.09736C32.4712 6.90583 32.5191 6.31208 32.5287 6.07267C32.5957 4.56916 33.2471 2.8837 34.339 1.80156C34.5593 1.5813 34.7797 1.39935 35.1341 1.32274C35.3161 1.28443 35.5843 1.36104 35.6034 1.30358C35.68 1.03544 34.9138 0.441699 34.2911 0.19271C33.8122 0.00118074 33.4099 -0.0275487 32.9597 0.0203337C30.4693 0.288475 30.977 2.25165 29.272 2.93159C28.7835 3.12311 28.4961 3.23803 27.9693 3.32422C26.8199 3.52533 25.9674 3.06566 24.9904 3.01777C24.0134 3.06566 23.1609 3.52533 22.0115 3.32422C21.4942 3.23803 21.2069 3.12311 20.7088 2.93159C19.0038 2.25165 19.5115 0.298052 17.0211 0.0203337C16.5804 -0.0275487 16.1781 0.00118074 15.6992 0.19271C15.0766 0.441699 14.3103 1.03544 14.387 1.30358C14.4061 1.36104 14.6743 1.28443 14.8563 1.32274C15.2107 1.39935 15.431 1.5813 15.6513 1.80156C16.7433 2.8837 17.3946 4.56916 17.4617 6.07267C17.4712 6.30251 17.5191 6.90583 17.4521 7.09736C17.4042 7.241 17.1839 7.44211 17.0019 7.64322C15.7758 8.9935 14.2145 9.85538 12.8448 9.78835C12.4521 9.76919 12.2988 9.33825 11.5709 9.38614C10.8716 9.42444 8.97509 10.5832 7.66283 11.809C6.34099 13.0539 5.27777 14.5096 4.97126 15.6108C4.66475 16.7026 5.80459 17.7656 5.98658 17.6602C6.10153 17.6028 5.94827 17.325 5.98658 17.1144C6.03448 16.8749 6.16858 16.6451 6.23562 16.5493C6.72413 15.8694 7.63409 15.5917 8.40037 15.3714C9.58811 15.0267 15.8142 14.9692 18.8027 14.9596C20.8716 14.9596 22.931 14.9788 25.0096 14.9596C27.0785 14.9788 29.1475 14.9596 31.2164 14.9596C34.2049 14.9692 40.431 15.0267 41.6187 15.3714C42.385 15.5917 43.295 15.8694 43.7643 16.5589C43.8314 16.6547 43.9655 16.8941 44.0134 17.1239C44.0517 17.3346 43.8984 17.6028 44.0134 17.6698C44.1858 17.7656 45.3256 16.7121 45.0191 15.6108ZM22.2414 8.45722C22.3563 8.76366 21.9253 9.09884 21.5517 9.32868C21.0919 9.61597 20.2778 9.74047 20.182 9.49148C20.0766 9.21376 20.5938 8.81155 21.0153 8.59129C21.4463 8.3806 22.1551 8.19865 22.2414 8.45722ZM29.8084 9.26164C29.8467 9.33825 29.8659 9.42444 29.8371 9.49148C29.7413 9.75004 28.9176 9.61597 28.4578 9.32868C28.18 9.1563 27.8544 8.90731 27.7777 8.6679C27.749 8.58171 27.7394 8.5051 27.7682 8.42849C27.8544 8.16992 28.5632 8.35187 28.9942 8.56256C29.3199 8.73493 29.6935 9.01265 29.8084 9.26164ZM38.362 4.62662C37.9214 3.07523 36.5996 1.48554 35.5076 1.63876C34.0708 1.80156 33.6685 4.09034 33.9846 5.7758C34.3103 7.51872 35.3256 9.50105 37.0498 9.12757C38.544 8.75409 38.8697 6.3887 38.362 4.62662ZM14.4923 1.62918C13.4099 1.47596 12.0785 3.07523 11.6379 4.61705C11.1398 6.37912 11.4655 8.74451 12.9406 9.11799C14.6743 9.49148 15.6801 7.49957 16.0057 5.76622C16.3314 4.08076 15.9291 1.80156 14.4923 1.62918ZM5.56513 24.1914C3.68774 25.4938 2.72988 26.5376 1.62835 28.5391C0.909961 29.8415 0.613026 30.6555 0.316092 32.1016L0.0670497 33.6529C0.0574712 33.7104 0.0287356 33.854 0.124521 33.8732C0.220306 33.8924 0.239463 33.7487 0.25862 33.6625C0.431034 32.6953 0.498084 32.1686 0.766283 31.3067C1.74329 28.156 3.27586 26.4514 6.09195 24.7181C6.95402 24.1818 8.19922 23.5019 8.42911 23.5881C8.54405 23.6264 8.58237 23.7892 8.67815 23.9232C9.636 25.1873 10.1245 25.9535 11.3027 27.0069C13.4962 28.9796 15.6705 29.8894 18.0172 30.4927L18.1034 30.464V30.3682C13.6398 29.1807 10.2969 26.5376 8.22796 22.4102C7.75861 21.4717 6.85823 18.7424 7.0498 17.6985C7.17432 17.0282 7.55746 16.6643 8.15133 16.3099C8.57279 16.0514 8.94635 15.9843 9.35823 15.946C9.4157 15.9365 9.49233 15.9269 9.48275 15.8407C9.47317 15.7641 9.40612 15.7449 9.33907 15.7449C9.04214 15.7545 8.36206 15.8694 7.81608 16.1567C7.22221 16.4727 6.6475 16.7983 6.54214 17.2963C6.36015 18.0912 6.88696 20.1884 7.57662 21.893C7.72988 22.2761 8.04597 22.7549 8.01723 22.8602C8.00765 22.8794 6.45593 23.5689 5.56513 24.1914ZM3.93678 35.8843H0V50H3.93678V35.8843ZM9.23371 42.5782L4.6839 42.5878V50H5.68007V43.5742H9.23371V50H13.0555V35.8843H9.23371V42.5782ZM16.1398 35.8843H14.9617L17.8927 41.86L20.8142 35.8843H19.7414L17.8927 39.5425L16.1398 35.8843ZM21.5996 35.8843L18.2854 42.5878V50H22.2318V43.7274L25.9578 35.8843H21.5996ZM31.7337 35.8843H27.9118V50H31.7337V35.8843ZM31.9157 30.3682V30.464L32.0019 30.4927C34.3486 29.8798 36.5229 28.97 38.7164 27.0069C39.8946 25.9535 40.3831 25.1778 41.341 23.9232C41.4367 23.7892 41.475 23.6359 41.59 23.5881C41.8295 23.5019 43.0651 24.1914 43.9367 24.7181C46.7528 26.4514 48.2854 28.156 49.2624 31.3067C49.5306 32.1686 49.5976 32.6857 49.7701 33.6625C49.7892 33.7583 49.8084 33.8924 49.9042 33.8732C49.9999 33.854 49.9712 33.7104 49.9616 33.6529L49.703 32.1016C49.4061 30.6459 49.1091 29.8319 48.3908 28.5391C47.2892 26.5376 46.3314 25.4938 44.454 24.1914C43.5632 23.5689 42.0114 22.8794 42.0019 22.8507C41.9636 22.7549 42.2796 22.2665 42.4425 21.8834C43.1417 20.1788 43.659 18.0816 43.4865 17.2867C43.3716 16.7888 42.7969 16.4632 42.2126 16.1471C41.6666 15.8598 40.9961 15.7353 40.6896 15.7353C40.6226 15.7353 40.5555 15.7545 40.5459 15.8311C40.5364 15.9173 40.613 15.9269 40.6705 15.9365C41.0823 15.9748 41.4559 16.0514 41.8773 16.3004C42.4712 16.6547 42.8544 17.0282 42.9789 17.6889C43.1704 18.7328 42.2701 21.4621 41.8007 22.4006C39.7222 26.5376 36.3793 29.1807 31.9157 30.3682ZM33.4865 42.5878H32.4904V50H37.2126V49.0136H33.4865V42.5878ZM44.3678 35.8843L37.5862 50H38.5823L41.6762 43.5742H44.521V50H45.5172V42.5878L45.1245 42.5782H42.1551L45.3639 35.8843H44.3678Z\"\n })));\n}\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogo);\nexport default __webpack_public_path__ + \"static/media/logo.0dfbbfa9.svg\";\nexport { ForwardRef as ReactComponent };","import React from \"react\"\nimport { useTranslation } from \"react-i18next\"\nimport { DateTime } from \"luxon\"\n\nimport { LoginViewWrap } from \"../pages/Login/Login\"\n\ntype MaintenanceNotificationProps = {\n\texpectedDate?: DateTime\n}\nconst MaintenanceNotification: React.FC = ({\n\texpectedDate,\n}) => {\n\tconst [t] = useTranslation(\"general\")\n\n\treturn (\n\t\t\n\t\t\t

{t(\"maintenance.title\", \"Undergoing Maintenance\")}

\n\t\t\t

\n\t\t\t\t{t(\n\t\t\t\t\t\"maintenance.description.noEstimate\",\n\t\t\t\t\t\"HYLA Center is currently undergoing maintenance.\"\n\t\t\t\t)}\n\t\t\t

\n\t\t\t{expectedDate && (\n\t\t\t\t

\n\t\t\t\t\t{t(\n\t\t\t\t\t\t\"maintenance.description.estimate\",\n\t\t\t\t\t\t\"We expect the system to be available again at {{ date }}\",\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdate: expectedDate\n\t\t\t\t\t\t\t\t.toLocal()\n\t\t\t\t\t\t\t\t.toLocaleString(DateTime.DATETIME_FULL),\n\t\t\t\t\t\t}\n\t\t\t\t\t)}\n\t\t\t\t

\n\t\t\t)}\n\t\t
\n\t)\n}\n\nexport default MaintenanceNotification\n","import React, {\n\tcreateContext,\n\tReducer,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseReducer,\n\tuseState,\n} from \"react\"\nimport { DateTime } from \"luxon\"\nimport { faWrench } from \"@fortawesome/pro-duotone-svg-icons\"\nimport { Trans, useTranslation } from \"react-i18next\"\n\nimport MaintenanceNotification from \"../components/MaintenanceNotification\"\nimport { API_ENDPOINT } from \"../declarations\"\nimport { getIconLookup } from \"../helpers/icons\"\nimport { AlertType } from \"../components/Alerts/Alerts\"\n\nimport { useAlertContext } from \"./AlertContext\"\n\nconst getNextMaintenance = async (): Promise => {\n\tconst response = await fetch(`${API_ENDPOINT}/users/nextMaintenance`, {\n\t\tcredentials: \"include\",\n\t})\n\n\tif (response.status !== 200) {\n\t\treturn undefined\n\t}\n\n\tconst iso = await response.text()\n\n\treturn DateTime.fromISO(iso).toLocal()\n}\n\nconst dateReducer: Reducer = (\n\tcurrentDate,\n\tnewDate\n) => {\n\tif (newDate && !currentDate?.equals(newDate)) {\n\t\treturn newDate\n\t}\n\n\treturn currentDate\n}\n\nconst useCreateContext = () => {\n\tconst { addAlert } = useAlertContext()\n\n\tconst [t] = useTranslation(\"general\")\n\n\tconst [maintenance, _setMaintenance] = useState(false)\n\tconst [nextMaintenance, _setNextMaintenance] = useReducer(\n\t\tdateReducer,\n\t\tundefined\n\t)\n\n\tconst setMaintenance = useCallback((maintenance: boolean | string) => {\n\t\tif (typeof maintenance === \"string\") {\n\t\t\t_setMaintenance(DateTime.fromISO(maintenance))\n\n\t\t\treturn\n\t\t}\n\n\t\t_setMaintenance(maintenance)\n\t}, [])\n\n\tuseEffect(() => {\n\t\tconst alertMaintenance = async () => {\n\t\t\tconst date = await getNextMaintenance()\n\n\t\t\t_setNextMaintenance(date)\n\t\t}\n\n\t\talertMaintenance().then()\n\n\t\tconst interval = setInterval(alertMaintenance, 5 * 60 * 1000)\n\n\t\treturn () => {\n\t\t\tclearInterval(interval)\n\t\t}\n\t}, [])\n\n\tuseEffect(() => {\n\t\tif (!nextMaintenance) {\n\t\t\treturn\n\t\t}\n\n\t\tconst date = nextMaintenance.toLocaleString(DateTime.DATETIME_FULL)\n\n\t\taddAlert({\n\t\t\ttype: AlertType.Info,\n\t\t\ticon: getIconLookup(faWrench),\n\t\t\ttitle: t(\"maintenance.alert.title\", \"Planned Maintenance\"),\n\t\t\tcontent: (\n\t\t\t\t<>\n\t\t\t\t\t\n\t\t\t\t\t\tSystem Maintenance will take place at{\" \"}\n\t\t\t\t\t\t{{ date }}.
\n\t\t\t\t\t\tPlease complete your work until then to avoid data loss.\n\t\t\t\t\t
\n\t\t\t\t\n\t\t\t),\n\t\t})\n\t}, [nextMaintenance, addAlert, t])\n\n\treturn {\n\t\tmaintenance,\n\t\tsetMaintenance,\n\t}\n}\nconst MaintenanceContext = createContext | null>(null)\n\nexport const useMaintenanceContext = () => {\n\tconst ctx = useContext(MaintenanceContext)\n\n\tif (ctx === null) {\n\t\tthrow new Error(\"No MaintenanceContextProvider available.\")\n\t}\n\n\treturn ctx\n}\n\nexport const MaintenanceContextProvider: React.FC = ({ children }) => {\n\tconst ctx = useCreateContext()\n\n\tif (ctx.maintenance) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t\n\t\t\t\n\t\t)\n\t}\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t)\n}\n","export default __webpack_public_path__ + \"static/media/getFetch.582d29c4.cjs\";","import React, {\n\tComponentProps,\n\tHTMLProps,\n\tuseEffect,\n\tuseMemo,\n\tuseRef,\n} from \"react\"\nimport { useField } from \"@unform/core\"\nimport { DateTime } from \"luxon\"\n\nimport Styles from \"./Input.module.css\"\nimport Validation from \"./Validation\"\nimport Label from \"./Label/Label\"\nimport Annotation from \"./Annotation\"\n\nexport const RenderInput = React.forwardRef<\n\tHTMLInputElement,\n\tHTMLProps\n>(({ className, ...props }, ref) => {\n\treturn (\n\t\t\n\t)\n})\n\nconst Input: React.FC<\n\tComponentProps & {\n\t\tlabel: string\n\t\tname: string\n\t\tannotation?: string\n\t\tlabelWhenOptional?: boolean\n\t}\n> = ({\n\tlabel,\n\tname,\n\ttype,\n\tannotation,\n\trequired,\n\tlabelWhenOptional,\n\t...props\n}) => {\n\tconst inputRef = useRef(null)\n\tconst fallbackRef = useRef(null)\n\tconst previousDefaultVal = useRef(null)\n\tconst {\n\t\tfieldName,\n\t\tdefaultValue = \"\",\n\t\tregisterField,\n\t\terror,\n\t} = useField(name)\n\n\tuseEffect(() => {\n\t\tregisterField({\n\t\t\tname: fieldName,\n\t\t\tref: inputRef.current,\n\t\t\tgetValue(ref: HTMLInputElement) {\n\t\t\t\tswitch (type) {\n\t\t\t\t\tcase \"number\":\n\t\t\t\t\t\treturn ref.valueAsNumber\n\t\t\t\t\tcase \"checkbox\":\n\t\t\t\t\t\treturn ref.checked\n\t\t\t\t\tcase \"date\":\n\t\t\t\t\t\tif (ref.hasOwnProperty(\"valueAsDate\")) {\n\t\t\t\t\t\t\treturn ref.valueAsDate\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn DateTime.fromFormat(ref.value, \"yyyy-LL-dd\", {\n\t\t\t\t\t\t\tzone: \"utc\",\n\t\t\t\t\t\t}).toJSDate()\n\t\t\t\t\tcase \"datetime-local\":\n\t\t\t\t\t\treturn ref.value\n\t\t\t\t\tcase \"file\":\n\t\t\t\t\t\tif (!ref.files || !ref.files.length) {\n\t\t\t\t\t\t\tif (fallbackRef.current) {\n\t\t\t\t\t\t\t\treturn fallbackRef.current\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn undefined\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (ref.files?.length === 1) {\n\t\t\t\t\t\t\treturn ref.files?.[0]\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn ref.files\n\t\t\t\t\t\t}\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn ref.value\n\t\t\t\t}\n\t\t\t},\n\t\t\tsetValue(ref: HTMLInputElement, value: any) {\n\t\t\t\tswitch (type) {\n\t\t\t\t\tcase \"number\":\n\t\t\t\t\t\tref.value = value\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase \"checkbox\":\n\t\t\t\t\t\tref.checked = value\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase \"date\":\n\t\t\t\t\t\tif (value instanceof Date) {\n\t\t\t\t\t\t\tref.value = value.toISOString().replace(\"Z\", \"\")\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tref.value = value\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase \"datetime-local\":\n\t\t\t\t\t\tif (value instanceof Date) {\n\t\t\t\t\t\t\tref.value = value.toISOString().replace(\"Z\", \"\")\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tref.value = value\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak\n\t\t\t\t\tcase \"file\":\n\t\t\t\t\t\tfallbackRef.current = value\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tref.value = value\n\t\t\t\t}\n\t\t\t},\n\t\t\tclearValue(ref: HTMLInputElement) {\n\t\t\t\tref.value = \"\"\n\t\t\t},\n\t\t})\n\t}, [fieldName, registerField, type])\n\n\tconst formattedDefaultValue = useMemo(() => {\n\t\tif (type === \"file\") {\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (!(defaultValue instanceof Date)) {\n\t\t\treturn defaultValue\n\t\t}\n\n\t\tconst dateString = defaultValue.toISOString().replace(\"Z\", \"\")\n\t\treturn type === \"datetime-local\" ? dateString : dateString.split(\"T\")[0]\n\t}, [type, defaultValue])\n\n\t// defaultValue does not automatically update value prop - this takes care of that\n\tuseEffect(() => {\n\t\tif (type === \"file\") {\n\t\t\treturn\n\t\t}\n\n\t\tif (previousDefaultVal.current === formattedDefaultValue) {\n\t\t\treturn\n\t\t}\n\n\t\tif (\n\t\t\tinputRef.current &&\n\t\t\tinputRef.current.value === previousDefaultVal.current\n\t\t) {\n\t\t\tinputRef.current.value = formattedDefaultValue\n\t\t}\n\n\t\tpreviousDefaultVal.current = formattedDefaultValue\n\t}, [formattedDefaultValue, type])\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t{annotation && {annotation}}\n\t\t\t{error && {error}}\n\t\t\n\t)\n}\n\nexport default Input\n","import React, {\n\tComponentProps,\n\tcreateContext,\n\tPropsWithChildren,\n\tReactElement,\n\tuseCallback,\n\tuseContext,\n\tuseEffect,\n\tuseMemo,\n\tuseRef,\n\tuseState,\n} from \"react\"\nimport { ObjectSchema, ValidationError } from \"yup\"\nimport { Form } from \"@unform/web\"\nimport { SubmitHandler, FormHandles } from \"@unform/core\"\nimport { useTranslation, Trans } from \"react-i18next\"\nimport { ApolloError } from \"@apollo/client\"\nimport { captureException } from \"@sentry/react\"\n\nimport Button from \"../Buttons/Button\"\nimport LoadingStateButton from \"../Buttons/LoadingStateButton\"\n\nimport Validation from \"./Validation\"\n\nconst ValidatedFormContext = createContext<{\n\tloading: boolean\n\terror: boolean\n}>({\n\tloading: false,\n\terror: false,\n})\n\nexport const SubmitFormButton: React.FC> = ({\n\tchildren,\n\ttype = \"submit\",\n\t...props\n}) => {\n\tconst { loading, error } = useContext(ValidatedFormContext)\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t)\n}\n\nfunction ValidatedForm(\n\tprops: PropsWithChildren<\n\t\tComponentProps & {\n\t\t\tvalidation: ObjectSchema\n\t\t\tonSubmit: SubmitHandler\n\t\t}\n\t>\n): ReactElement | null {\n\tconst [t] = useTranslation(\"general\")\n\n\tconst formRef = useRef(null)\n\tconst { children, validation, onSubmit, ...rest } = props\n\n\tconst [loading, setLoading] = useState(false)\n\tconst [error, setError] = useState(false)\n\tconst [errorHints, setErrorHints] = useState()\n\tconst [isValidationError, setIsValidationError] = useState()\n\n\tconst mounted = useRef(false)\n\n\tuseEffect(() => {\n\t\tmounted.current = true\n\n\t\treturn () => {\n\t\t\tmounted.current = false\n\t\t}\n\t}, [])\n\n\tconst onValidateSubmit = useCallback(\n\t\tasync (data, helpers, event) => {\n\t\t\tif (event) {\n\t\t\t\tevent.stopPropagation()\n\t\t\t}\n\n\t\t\tconst form = formRef.current\n\t\t\tif (!form) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// reset validation\n\t\t\tform.setErrors({})\n\n\t\t\tsetLoading(true)\n\t\t\tsetError(false)\n\t\t\tsetErrorHints(undefined)\n\t\t\tsetIsValidationError(undefined)\n\t\t\ttry {\n\t\t\t\tconst validated = await validation.validate(data, {\n\t\t\t\t\tabortEarly: false,\n\t\t\t\t\tstripUnknown: true,\n\t\t\t\t})\n\n\t\t\t\t// pass only validated data to make sure the user\n\t\t\t\t// gets exactly what it specified\n\t\t\t\tawait onSubmit(validated, helpers, event)\n\t\t\t} catch (e) {\n\t\t\t\tif (mounted.current) {\n\t\t\t\t\tsetLoading(false)\n\t\t\t\t\tsetError(true)\n\t\t\t\t\tsetIsValidationError(e instanceof ValidationError)\n\t\t\t\t}\n\n\t\t\t\tif (e instanceof ApolloError) {\n\t\t\t\t\tsetErrorHints(\n\t\t\t\t\t\te.graphQLErrors\n\t\t\t\t\t\t\t.filter((error) => {\n\t\t\t\t\t\t\t\treturn error.extensions?.category === \"Validate\"\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.map((error) => {\n\t\t\t\t\t\t\t\treturn error.message\n\t\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\t\t\tconsole.log(e, data)\n\t\t\t\t}\n\n\t\t\t\tif (e instanceof ValidationError) {\n\t\t\t\t\tform.setErrors(\n\t\t\t\t\t\tObject.fromEntries(\n\t\t\t\t\t\t\te.inner.map((error) => [error.path, error.message])\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tcaptureException(e)\n\t\t\t}\n\n\t\t\tif (mounted.current) {\n\t\t\t\tsetLoading(false)\n\t\t\t}\n\t\t},\n\t\t[validation, onSubmit]\n\t)\n\n\tconst ctx = useMemo(() => {\n\t\treturn {\n\t\t\tloading,\n\t\t\terror,\n\t\t}\n\t}, [loading, error])\n\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t{error && (\n\t\t\t\t\t\n\t\t\t\t\t\t{isValidationError &&\n\t\t\t\t\t\t\tt(\n\t\t\t\t\t\t\t\t\"validatedForm.validationError\",\n\t\t\t\t\t\t\t\t\"Your data did not pass validation and was not sent to the server. Please check your entries.\"\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t{!isValidationError && (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\tYour data could not be processed by the\n\t\t\t\t\t\t\t\t\t\tserver. Please check your entries.\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\tIf this problem keeps appearing, please\n\t\t\t\t\t\t\t\t\t\tmake a screenshot of this page and\n\t\t\t\t\t\t\t\t\t\tcontact support.\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t

\n\n\t\t\t\t\t\t\t\t\t{!!errorHints && errorHints.length > 0 && (\n\t\t\t\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\t\tThe Server transmitted the\n\t\t\t\t\t\t\t\t\t\t\t\tfollowing error messages:\n\t\t\t\t\t\t\t\t\t\t\t

\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{!!errorHints &&\n\t\t\t\t\t\t\t\t\terrorHints.length > 0 &&\n\t\t\t\t\t\t\t\t\terrorHints.map((error) =>

{error}

)}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t)}\n\t\t\t\t\t
\n\t\t\t\t)}\n\t\t\t\t{children}\n\t\t\t
\n\t\t
\n\t)\n}\n\nexport default ValidatedForm\n","import invariant from \"./invariant.mjs\";\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\n/**\n * The `defineInspect()` function defines `inspect()` prototype method as alias of `toJSON`\n */\n\nexport default function defineInspect(classObject) {\n var fn = classObject.prototype.toJSON;\n typeof fn === 'function' || invariant(0);\n classObject.prototype.inspect = fn; // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\n if (nodejsCustomInspectSymbol) {\n classObject.prototype[nodejsCustomInspectSymbol] = fn;\n }\n}\n","export default function invariant(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n if (!booleanCondition) {\n throw new Error(message != null ? message : 'Unexpected invariant triggered.');\n }\n}\n","import defineInspect from \"../jsutils/defineInspect.mjs\";\n\n/**\n * Contains a range of UTF-8 character offsets and token references that\n * identify the region of the source from which the AST derived.\n */\nexport var Location = /*#__PURE__*/function () {\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The Token at which this Node begins.\n */\n\n /**\n * The Token at which this Node ends.\n */\n\n /**\n * The Source document the AST represents.\n */\n function Location(startToken, endToken, source) {\n this.start = startToken.start;\n this.end = endToken.end;\n this.startToken = startToken;\n this.endToken = endToken;\n this.source = source;\n }\n\n var _proto = Location.prototype;\n\n _proto.toJSON = function toJSON() {\n return {\n start: this.start,\n end: this.end\n };\n };\n\n return Location;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Location);\n/**\n * Represents a range of characters represented by a lexical token\n * within a Source.\n */\n\nexport var Token = /*#__PURE__*/function () {\n /**\n * The kind of Token.\n */\n\n /**\n * The character offset at which this Node begins.\n */\n\n /**\n * The character offset at which this Node ends.\n */\n\n /**\n * The 1-indexed line number on which this Token appears.\n */\n\n /**\n * The 1-indexed column number at which this Token begins.\n */\n\n /**\n * For non-punctuation tokens, represents the interpreted value of the token.\n */\n\n /**\n * Tokens exist as nodes in a double-linked-list amongst all tokens\n * including ignored tokens. is always the first node and \n * the last.\n */\n function Token(kind, start, end, line, column, prev, value) {\n this.kind = kind;\n this.start = start;\n this.end = end;\n this.line = line;\n this.column = column;\n this.value = value;\n this.prev = prev;\n this.next = null;\n }\n\n var _proto2 = Token.prototype;\n\n _proto2.toJSON = function toJSON() {\n return {\n kind: this.kind,\n value: this.value,\n line: this.line,\n column: this.column\n };\n };\n\n return Token;\n}(); // Print a simplified form when appearing in `inspect` and `util.inspect`.\n\ndefineInspect(Token);\n/**\n * @internal\n */\n\nexport function isNode(maybeNode) {\n return maybeNode != null && typeof maybeNode.kind === 'string';\n}\n/**\n * The list of all possible AST node types.\n */\n","export default function devAssert(condition, message) {\n var booleanCondition = Boolean(condition); // istanbul ignore else (See transformation done in './resources/inlineInvariant.js')\n\n if (!booleanCondition) {\n throw new Error(message);\n }\n}\n","import React from \"react\"\n\nimport classNames from \"../../helpers/classNames\"\n\nimport Styles from \"./LoadingIndicator.module.css\"\n\ntype LoadingIndicatorProps = {\n\tactive?: boolean\n}\nconst LoadingIndicator: React.FC = ({\n\tactive = true,\n}) => {\n\treturn (\n\t\t\n\t)\n}\n\nexport default LoadingIndicator\n\nexport const MediumLoadingIndicator: React.FC<\n\tLoadingIndicatorProps & {\n\t\tclassName?: string\n\t}\n> = ({ className = \"\", children, ...props }) => {\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t{children &&

{children}

}\n\t\t
\n\t)\n}\n","import React from \"react\"\n\nimport classNames from \"../../../helpers/classNames\"\n\nimport Styles from \"./Label.module.css\"\n\ntype LabelProps = JSX.IntrinsicElements[\"label\"] & {\n\tisCheckbox?: boolean\n\tisHidden?: boolean\n\tlabel: React.ReactNode\n\trequired?: boolean\n\tlabelWhenOptional?: boolean\n\tsmall?: boolean\n}\nconst Label: React.FC = ({\n\tisCheckbox,\n\tisHidden,\n\tlabel,\n\tclassName,\n\tchildren,\n\trequired,\n\tlabelWhenOptional,\n\tsmall,\n\t...rest\n}) => {\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{label}\n\t\t\t\t{required && *}\n\t\t\t\t{labelWhenOptional && !required && (\n\t\t\t\t\t(optional)\n\t\t\t\t)}\n\t\t\t\n\t\t\t{children}\n\t\t\n\t)\n}\n\nexport default Label\n","import React, { ComponentProps } from \"react\"\nimport { Link } from \"@reach/router\"\n\nimport { CustomButtonProps, useButtonClassName } from \"./Button\"\n\ntype ButtonStyleLinkProps = ComponentProps &\n\tCustomButtonProps & {\n\t\tdisabled?: boolean\n\t}\nconst ButtonStyleLink: React.FC = ({\n\tclassName,\n\tsize,\n\tappearance,\n\tstraight,\n\tchildren,\n\t...linkProps\n}) => {\n\tconst completeClassName = useButtonClassName(\n\t\tclassName,\n\t\tsize,\n\t\tappearance,\n\t\tstraight\n\t)\n\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t\n\t)\n}\n\nexport default ButtonStyleLink\n","import React, { PropsWithChildren } from \"react\"\n\nimport classNames from \"../../helpers/classNames\"\n\nimport Styles from \"./Card.module.css\"\n\nexport const enum CardSizeEnum {\n\tTINY,\n\tSMALL,\n\tMEDIUM,\n\tNORMAL,\n}\n\ntype CardProps = {\n\tsize?: CardSizeEnum\n\tclassName?: string\n}\nconst Card = React.forwardRef>(\n\t({ children, size, className }, ref) => {\n\t\treturn (\n\t\t\t\n\t\t\t\t{children}\n\t\t\t\n\t\t)\n\t}\n)\n\nexport default Card\n","import {\n\tIconDefinition,\n\tIconLookup,\n\tlibrary,\n} from \"@fortawesome/fontawesome-svg-core\"\n\nexport const getIconLookup = (icon: IconDefinition): IconLookup => {\n\tlibrary.add(icon)\n\n\treturn {\n\t\tprefix: icon.prefix,\n\t\ticonName: icon.iconName,\n\t}\n}\n","import { DateTime } from \"luxon\"\nimport { FieldReadFunction } from \"@apollo/client\"\n\nexport const readDateTime: FieldReadFunction = (\n\tiso: string | undefined,\n\t...args\n) => {\n\tif (!iso) {\n\t\treturn iso\n\t}\n\n\treturn DateTime.fromISO(iso).toLocal()\n}\n\nexport const readDateTimeUTC: FieldReadFunction = (\n\tiso: string | undefined,\n\t...args\n) => {\n\tif (!iso) {\n\t\treturn iso\n\t}\n\n\treturn DateTime.fromISO(iso).toUTC()\n}\n\nexport const readDateTimeArray = (isos: string[] | undefined) => {\n\tif (!isos) {\n\t\treturn isos\n\t}\n\n\treturn isos.map((iso) => DateTime.fromISO(iso).toLocal())\n}\n\nexport const readOptionalDateTime = (iso: string | undefined | null) => {\n\tif (iso === null || iso === undefined) {\n\t\treturn iso\n\t}\n\n\treturn DateTime.fromISO(iso).toLocal()\n}\n","import { ApolloLink, Observable } from \"@apollo/client\"\nimport { Subscription } from \"zen-observable-ts\"\n\nconst connections: Map = new Map()\nconst abortHandlers: Map void> = new Map()\nconst handles: Map = new Map()\n\nconst AbortableQueryLink = new ApolloLink(\n\t(operation, forward) =>\n\t\tnew Observable((observer) => {\n\t\t\t// Set x-CSRF token (not related to abort use case)\n\t\t\tconst context = operation.getContext()\n\t\t\t/** Final touch to cleanup */\n\n\t\t\tconst id: string | undefined = context.requestTrackerId\n\n\t\t\tconst connectionHandle = forward(operation).subscribe({\n\t\t\t\tnext: (...arg) => {\n\t\t\t\t\tobserver.next(...arg)\n\t\t\t\t},\n\t\t\t\terror: (...arg) => {\n\t\t\t\t\tcleanUp(id)\n\t\t\t\t\tobserver.error(...arg)\n\t\t\t\t},\n\t\t\t\tcomplete: (...arg) => {\n\t\t\t\t\tcleanUp(id)\n\t\t\t\t\tobserver.complete(...arg)\n\t\t\t\t},\n\t\t\t})\n\n\t\t\tconst cleanUp = (id: string | undefined) => {\n\t\t\t\tif (id) {\n\t\t\t\t\thandles.get(id)?.unsubscribe()\n\t\t\t\t\tconnections.delete(id)\n\t\t\t\t\thandles.delete(id)\n\t\t\t\t\tabortHandlers.delete(id)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (id) {\n\t\t\t\tconst controller = new AbortController()\n\t\t\t\toperation.setContext({\n\t\t\t\t\t...context,\n\t\t\t\t\tfetchOptions: {\n\t\t\t\t\t\tsignal: controller.signal,\n\t\t\t\t\t\t...context?.fetchOptions,\n\t\t\t\t\t},\n\t\t\t\t})\n\n\t\t\t\tif (connections.has(id)) {\n\t\t\t\t\t// If a controller exists, that means this operation should be aborted.\n\t\t\t\t\tconnections.get(id)?.abort()\n\t\t\t\t\tabortHandlers.get(id)?.()\n\t\t\t\t\tcleanUp(id)\n\t\t\t\t}\n\n\t\t\t\tconnections.set(id, controller)\n\t\t\t\thandles.set(id, connectionHandle)\n\n\t\t\t\tif (typeof context.onRequestAbort === \"function\") {\n\t\t\t\t\tabortHandlers.set(id, context.onRequestAbort)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn connectionHandle\n\t\t})\n)\n\nexport default AbortableQueryLink\n","import { FieldPolicy, Reference } from \"@apollo/client\"\n\ntype KeyArgs = FieldPolicy[\"keyArgs\"]\n\n// adjusted version of apollos pagination helper\n// original: https://github.com/apollographql/apollo-client/blob/d470c964db46728d8a5dfc63990859c550fa1656/src/utilities/policies/pagination.ts#L25\nexport function offsetLimitPagination(\n\tkeyArgs: KeyArgs = false\n): FieldPolicy> {\n\treturn {\n\t\tkeyArgs,\n\t\tmerge(existing, incoming, { args }) {\n\t\t\tif (args && args.offset === undefined && args.limit === undefined) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\"offset and limit are both 'undefined'. Overriding all existing data with incoming!\"\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\treturn incoming\n\t\t\t}\n\n\t\t\tconst merged: Array = existing ? existing.slice(0) : []\n\t\t\tconst start = args?.offset ?? 0\n\n\t\t\tif (\n\t\t\t\targs?.offset === undefined &&\n\t\t\t\tprocess.env.NODE_ENV === \"development\"\n\t\t\t) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t\"offset is undefined. replacing existing with incoming.\"\n\t\t\t\t)\n\t\t\t}\n\n\t\t\tfor (let i = existing?.length ?? 0; i < start; i++) {\n\t\t\t\tmerged[i] = null\n\t\t\t}\n\n\t\t\tconst end = start + incoming.length\n\t\t\tfor (let i = start; i < end; ++i) {\n\t\t\t\tmerged[i] = incoming[i - start]\n\t\t\t}\n\n\t\t\t// fill with null to prevent empty indices from being removed\n\t\t\t// this happens when skipping pages while paginating\n\t\t\tconst filled =\n\t\t\t\tstart > 0\n\t\t\t\t\t? merged.fill(null, existing?.length ?? 0, start)\n\t\t\t\t\t: merged\n\n\t\t\tif (args?.limit && incoming.length < args?.limit) {\n\t\t\t\t// length of incoming can only be less than limit on last page.\n\t\t\t\t// we can cut off any excess\n\t\t\t\treturn filled.slice(0, end)\n\t\t\t}\n\n\t\t\treturn filled\n\t\t},\n\n\t\tread(existing) {\n\t\t\tif (!existing) {\n\t\t\t\treturn undefined\n\t\t\t}\n\n\t\t\treturn existing.slice(0, existing.length)\n\t\t},\n\t}\n}\n","import { offsetLimitPagination } from \"helpers/offsetLimitPagination\"\n\nimport { AllTypesMap, User } from \"./generated/graphql-types\"\nimport {\n\treadDateTime,\n\treadDateTimeArray,\n\treadDateTimeUTC,\n\treadOptionalDateTime,\n} from \"./helpers/readDateTime\"\nimport { StrictTypePolicies } from \"./helpers/types\"\n\nexport const typePolicies: StrictTypePolicies = {\n\tSubscription: {},\n\tPorpaginasResult_Sale: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_NormalClassification: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_User: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Shipment: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Quota: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Star: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Ratingdata: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Device: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Pin: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Article: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_ArticleClassification: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Devicetype: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_ClassificationCode: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_DeviceCountClassification: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_CalculatedClassification: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_RankedClassification: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_RankingLock: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Champion: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_ClassificationCustomType: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_Event: {\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_EventRegistration: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tPorpaginasResult_DevicesSale: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\titems: offsetLimitPagination(),\n\t\t},\n\t},\n\tClassificationInterface: {\n\t\tfields: {\n\t\t\tusers: {\n\t\t\t\tmerge(existing: User[], incoming: User[]) {\n\t\t\t\t\treturn incoming\n\t\t\t\t},\n\t\t\t},\n\t\t\tarchived: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tAddress: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tArticle: {\n\t\tfields: {\n\t\t\tpublished: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tArticleClassification: {\n\t\tfields: {\n\t\t\treadDate: readDateTime,\n\t\t\tarchived: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tCalculatedClassification: {\n\t\tkeyFields: false,\n\t},\n\tCompareClassification: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tdates: readDateTimeArray,\n\t\t},\n\t},\n\tCalculationEntry: {\n\t\tkeyFields: false,\n\t},\n\tCalculationEntryInterface: {\n\t\tkeyFields: false,\n\t},\n\tClassification: {\n\t\tfields: {\n\t\t\tarchived: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tClassificationMetadata: {\n\t\tfields: {\n\t\t\tentry_date: readOptionalDateTime,\n\t\t\tbirthday: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t},\n\t},\n\tClassificationCode: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tClassificationsPin: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t},\n\t},\n\tClassificationsPinsRatingdata: {},\n\tContactInfo: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tDatedCalculationEntry: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tdate: readDateTimeUTC,\n\t\t},\n\t},\n\tIntervalCalculationEntry: {\n\t\tkeyFields: false,\n\t},\n\tDateDiff: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tstart: readDateTime,\n\t\t\tend: readDateTime,\n\t\t},\n\t},\n\tDatedEntryData: {\n\t\tfields: {\n\t\t\tdate: readDateTimeUTC,\n\t\t},\n\t},\n\tDatedInt: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tdate: readDateTimeUTC,\n\t\t},\n\t},\n\tDatedValue: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tdate: readDateTimeUTC,\n\t\t},\n\t},\n\tDatedValueInterface: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tdate: readDateTimeUTC,\n\t\t},\n\t},\n\tDestructuredSerial: {\n\t\tkeyFields: false,\n\t},\n\tDevice: {\n\t\tfields: {\n\t\t\tproduction: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tDeviceCountClassification: {\n\t\tkeyFields: false,\n\t\tfields: {\n\t\t\tarchived: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tDeviceSerialInfo: {\n\t\tkeyFields: false,\n\t},\n\tDevicetype: {\n\t\tfields: {\n\t\t\tranking_start: readOptionalDateTime,\n\t\t\tranking_end: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tDevicesSale: {\n\t\tfields: {\n\t\t\tchange_date: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tEntryData: {\n\t\tkeyFields: false,\n\t},\n\tFile: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tGeneratedFile: {},\n\tMutation: {},\n\tNormalClassification: {\n\t\tfields: {\n\t\t\tarchived: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tPin: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tPinrule: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tPoint: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tPorpaginasResult_Point: {},\n\tQuota: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tRankedClassification: {\n\t\tkeyFields: false,\n\t},\n\tRatingdata: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tRole: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tSale: {\n\t\tfields: {\n\t\t\tsold: readDateTime,\n\t\t\tlockedDate: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tShipment: {\n\t\tfields: {\n\t\t\timported: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tStar: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tSummedClassification: {\n\t\tkeyFields: false,\n\t},\n\tUser: {\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t\tlastActionTime: readOptionalDateTime,\n\t\t},\n\t},\n\tRankingLock: {\n\t\tfields: {\n\t\t\tlocked_month: readDateTime,\n\t\t\tstart: readDateTime,\n\t\t},\n\t},\n\tQueuedJob: {\n\t\tfields: {\n\t\t\tcompleted: readOptionalDateTime,\n\t\t\tfetched: readOptionalDateTime,\n\t\t\tnotBefore: readOptionalDateTime,\n\t\t\tcreated: readDateTime,\n\t\t},\n\t},\n\tChampion: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tarchived: readOptionalDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tImportDiffData: {\n\t\tkeyFields: false,\n\t},\n\tImportDiffChildren: {\n\t\tkeyFields: [\"id\"],\n\t},\n\tSaleStruct: {\n\t\tkeyFields: [\"internalId\", \"importerId\"],\n\t\tfields: {\n\t\t\tsold: readDateTime,\n\t\t},\n\t},\n\tClassificationCustomType: {\n\t\tkeyFields: [\"id\"],\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tEvent: {\n\t\tkeyFields: [\"id\"],\n\t\tfields: {\n\t\t\tstart_date: readDateTime,\n\t\t\tend_date: readDateTime,\n\t\t\tnotification_start: readOptionalDateTime,\n\t\t\tregistration_until: readDateTime,\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tEventRegistration: {\n\t\tkeyFields: [\"id\"],\n\t\tfields: {\n\t\t\tcreated: readDateTime,\n\t\t\tmodified: readDateTime,\n\t\t\tdeleted: readOptionalDateTime,\n\t\t},\n\t},\n\tStornoStruct: {\n\t\tfields: {\n\t\t\tdate: readDateTime,\n\t\t},\n\t},\n}\n","import { DocumentNode } from \"@apollo/client\"\n\ntype QueryHashMap = {\n\t[operationsName: string]: string | undefined\n}\n\nexport function apolloUsePreGeneratedHashes(\n\thashesPromise: Promise\n) {\n\treturn async (doc: DocumentNode) => {\n\t\tconst hashes = await hashesPromise\n\n\t\tconst operationDefinition = doc.definitions.find(\n\t\t\t(def) => def.kind === \"OperationDefinition\"\n\t\t)\n\n\t\tif (\n\t\t\t!operationDefinition ||\n\t\t\toperationDefinition.kind !== \"OperationDefinition\"\n\t\t) {\n\t\t\tconsole.error(\"Cannot find OperationDefinition from\", doc)\n\t\t\tthrow new Error(\"Operation missing from graphql query\")\n\t\t}\n\n\t\tif (!operationDefinition.name) {\n\t\t\tthrow new Error(\"name missing from operation definition\")\n\t\t}\n\n\t\tconst hash = hashes[operationDefinition.name.value]\n\n\t\tif (!hash) {\n\t\t\tthrow new Error(\n\t\t\t\t\"Cannot find generated hash for \" +\n\t\t\t\t\toperationDefinition.name.value\n\t\t\t)\n\t\t}\n\n\t\treturn hash\n\t}\n}\n","import { ApolloLink } from \"@apollo/client/link/core/ApolloLink\"\nimport { addBreadcrumb, Severity } from \"@sentry/react\"\nimport { Operation } from \"@apollo/client\"\nimport { OperationDefinitionNode } from \"graphql\"\n\nconst operationInfo = (operation: Operation) => {\n\tconst type = operation.query.definitions.find(\n\t\t(defn) => defn.kind === \"OperationDefinition\"\n\t) as OperationDefinitionNode\n\n\treturn {\n\t\ttype: type.operation,\n\t\tname: operation.operationName,\n\t\tfragments: operation.query.definitions\n\t\t\t.map((defn) =>\n\t\t\t\tdefn.kind === \"FragmentDefinition\" ? defn.name.value : undefined\n\t\t\t)\n\t\t\t.filter(Boolean)\n\t\t\t.join(\", \"),\n\t\tvariables: operation.variables,\n\t}\n}\n\nconst sentryLink = new ApolloLink((operation, forward) => {\n\tif (process.env.NODE_ENV === \"production\") {\n\t\taddBreadcrumb({\n\t\t\tcategory: \"graphql\",\n\t\t\tdata: operationInfo(operation),\n\t\t\tlevel: Severity.Debug,\n\t\t})\n\t} else if (\n\t\tprocess.env.NODE_ENV === \"development\" &&\n\t\tprocess.env.REACT_APP_SHOW_GRAPHQL_INFO\n\t) {\n\t\tconsole.table(operationInfo(operation))\n\t}\n\n\treturn forward(operation)\n})\n\nexport default sentryLink\n","import { ApolloClient } from \"@apollo/client/core/ApolloClient\"\nimport { InMemoryCache } from \"@apollo/client/cache/inmemory/inMemoryCache\"\nimport { createPersistedQueryLink } from \"@apollo/client/link/persisted-queries\"\nimport { HttpLink } from \"@apollo/client/link/http/HttpLink\"\nimport { from, TypePolicies } from \"@apollo/client\"\n\nimport { readDateTimeUTC } from \"./helpers/readDateTime\"\nimport AbortableQueryLink from \"./helpers/AbortableQueryLink\"\nimport { typePolicies } from \"./typePolicies\"\nimport { apolloUsePreGeneratedHashes } from \"./helpers/apolloUsePreGeneratedHashes\"\nimport sentryLink from \"./helpers/sentryLink\"\n\nconst httpLink = new HttpLink({\n\turi: `${process.env.REACT_APP_API_ENDPOINT}/__graphql`,\n\tcredentials: \"include\",\n})\n\nconst persistedLink = createPersistedQueryLink({\n\tgenerateHash: apolloUsePreGeneratedHashes(\n\t\timport(\"./generated/persisted-client.json\").then(\n\t\t\t(query) => query.default\n\t\t)\n\t),\n})\n\nexport const apolloClient = new ApolloClient({\n\tcache: new InMemoryCache({\n\t\tpossibleTypes: {\n\t\t\tClassificationInterface: [\n\t\t\t\t\"NormalClassification\",\n\t\t\t\t\"ArticleClassification\",\n\t\t\t],\n\t\t},\n\t\ttypePolicies: {\n\t\t\t...(typePolicies as TypePolicies),\n\t\t\tQuery: {\n\t\t\t\tfields: {\n\t\t\t\t\tfirstDate: {\n\t\t\t\t\t\tread: readDateTimeUTC,\n\t\t\t\t\t},\n\t\t\t\t\tfirstYear: {\n\t\t\t\t\t\tread: readDateTimeUTC,\n\t\t\t\t\t},\n\t\t\t\t\tnextDate: {\n\t\t\t\t\t\tread: readDateTimeUTC,\n\t\t\t\t\t},\n\t\t\t\t\tnextYear: {\n\t\t\t\t\t\tread: readDateTimeUTC,\n\t\t\t\t\t},\n\t\t\t\t\tcurrentDate: {\n\t\t\t\t\t\tread: readDateTimeUTC,\n\t\t\t\t\t},\n\t\t\t\t\tcurrentYear: {\n\t\t\t\t\t\tread: readDateTimeUTC,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}),\n\tlink: from([sentryLink, persistedLink, AbortableQueryLink, httpLink]),\n\tdefaultOptions: {\n\t\twatchQuery: {\n\t\t\tfetchPolicy: \"cache-and-network\",\n\t\t},\n\t},\n\tqueryDeduplication: false,\n})\n","import React, { ComponentProps } from \"react\"\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\"\nimport { faTimesCircle } from \"@fortawesome/pro-duotone-svg-icons\"\nimport { IconProp } from \"@fortawesome/fontawesome-svg-core\"\n\nimport CircularLoadingIndicator from \"../LoadingIndicator/CircularLoadingIndicator\"\n\nimport Button from \"./Button\"\n\nconst LoadingStateButton: React.FC<\n\tComponentProps & {\n\t\ticon?: IconProp\n\t\tloading?: boolean\n\t\terror?: boolean\n\t}\n> = ({ loading, error, children, icon, ...props }) => {\n\treturn (\n\t\t\n\t)\n}\n\nexport default LoadingStateButton\n","import React from \"react\"\n\nimport Styles from \"./CircularLoadingIndicator.module.css\"\n\nconst CircularLoadingIndicator = React.memo<\n\t| {\n\t\t\tvalue: number\n\t\t\tmax: number\n\t\t\tintermediate?: boolean\n\t }\n\t| {\n\t\t\tvalue?: number\n\t\t\tmax: number\n\t\t\tintermediate: true\n\t }\n>(({ value = 0, max, intermediate }) => {\n\tconst val = intermediate ? 0 : value\n\treturn (\n\t\t\n\t\t\t
\n\t\t\t{intermediate &&
}\n\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t
\n\t\t
\n\t)\n})\n\nexport default CircularLoadingIndicator\n","import React from \"react\"\n\nimport classNames from \"../../helpers/classNames\"\n\nimport Styles from \"./Input.module.css\"\n\nconst Annotation: React.FC<{\n\tappearance?: \"warning\"\n}> = ({ children, appearance }) => {\n\treturn (\n\t\t\n\t\t\t{children}\n\t\t

\n\t)\n}\n\nexport default Annotation\n","// In ES2015 (or a polyfilled) environment, this will be Symbol.iterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\nexport var SYMBOL_ITERATOR = typeof Symbol === 'function' ? Symbol.iterator : '@@iterator'; // In ES2017 (or a polyfilled) environment, this will be Symbol.asyncIterator\n// istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_ASYNC_ITERATOR = // $FlowFixMe Flow doesn't define `Symbol.asyncIterator` yet\ntypeof Symbol === 'function' ? Symbol.asyncIterator : '@@asyncIterator'; // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')\n\nexport var SYMBOL_TO_STRING_TAG = // $FlowFixMe Flow doesn't define `Symbol.toStringTag` yet\ntypeof Symbol === 'function' ? Symbol.toStringTag : '@@toStringTag';\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport nodejsCustomInspectSymbol from \"./nodejsCustomInspectSymbol.mjs\";\nvar MAX_ARRAY_LENGTH = 10;\nvar MAX_RECURSIVE_DEPTH = 2;\n/**\n * Used to print values in error messages.\n */\n\nexport default function inspect(value) {\n return formatValue(value, []);\n}\n\nfunction formatValue(value, seenValues) {\n switch (_typeof(value)) {\n case 'string':\n return JSON.stringify(value);\n\n case 'function':\n return value.name ? \"[function \".concat(value.name, \"]\") : '[function]';\n\n case 'object':\n if (value === null) {\n return 'null';\n }\n\n return formatObjectValue(value, seenValues);\n\n default:\n return String(value);\n }\n}\n\nfunction formatObjectValue(value, previouslySeenValues) {\n if (previouslySeenValues.indexOf(value) !== -1) {\n return '[Circular]';\n }\n\n var seenValues = [].concat(previouslySeenValues, [value]);\n var customInspectFn = getCustomFn(value);\n\n if (customInspectFn !== undefined) {\n // $FlowFixMe(>=0.90.0)\n var customValue = customInspectFn.call(value); // check for infinite recursion\n\n if (customValue !== value) {\n return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);\n }\n } else if (Array.isArray(value)) {\n return formatArray(value, seenValues);\n }\n\n return formatObject(value, seenValues);\n}\n\nfunction formatObject(object, seenValues) {\n var keys = Object.keys(object);\n\n if (keys.length === 0) {\n return '{}';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[' + getObjectTag(object) + ']';\n }\n\n var properties = keys.map(function (key) {\n var value = formatValue(object[key], seenValues);\n return key + ': ' + value;\n });\n return '{ ' + properties.join(', ') + ' }';\n}\n\nfunction formatArray(array, seenValues) {\n if (array.length === 0) {\n return '[]';\n }\n\n if (seenValues.length > MAX_RECURSIVE_DEPTH) {\n return '[Array]';\n }\n\n var len = Math.min(MAX_ARRAY_LENGTH, array.length);\n var remaining = array.length - len;\n var items = [];\n\n for (var i = 0; i < len; ++i) {\n items.push(formatValue(array[i], seenValues));\n }\n\n if (remaining === 1) {\n items.push('... 1 more item');\n } else if (remaining > 1) {\n items.push(\"... \".concat(remaining, \" more items\"));\n }\n\n return '[' + items.join(', ') + ']';\n}\n\nfunction getCustomFn(object) {\n var customInspectFn = object[String(nodejsCustomInspectSymbol)];\n\n if (typeof customInspectFn === 'function') {\n return customInspectFn;\n }\n\n if (typeof object.inspect === 'function') {\n return object.inspect;\n }\n}\n\nfunction getObjectTag(object) {\n var tag = Object.prototype.toString.call(object).replace(/^\\[object /, '').replace(/]$/, '');\n\n if (tag === 'Object' && typeof object.constructor === 'function') {\n var name = object.constructor.name;\n\n if (typeof name === 'string' && name !== '') {\n return name;\n }\n }\n\n return tag;\n}\n","/**\n * Produces the value of a block string from its parsed raw value, similar to\n * CoffeeScript's block string, Python's docstring trim or Ruby's strip_heredoc.\n *\n * This implements the GraphQL spec's BlockStringValue() static algorithm.\n *\n * @internal\n */\nexport function dedentBlockStringValue(rawString) {\n // Expand a block string's raw value into independent lines.\n var lines = rawString.split(/\\r\\n|[\\n\\r]/g); // Remove common indentation from all lines but first.\n\n var commonIndent = getBlockStringIndentation(lines);\n\n if (commonIndent !== 0) {\n for (var i = 1; i < lines.length; i++) {\n lines[i] = lines[i].slice(commonIndent);\n }\n } // Remove leading and trailing blank lines.\n\n\n while (lines.length > 0 && isBlank(lines[0])) {\n lines.shift();\n }\n\n while (lines.length > 0 && isBlank(lines[lines.length - 1])) {\n lines.pop();\n } // Return a string of the lines joined with U+000A.\n\n\n return lines.join('\\n');\n}\n/**\n * @internal\n */\n\nexport function getBlockStringIndentation(lines) {\n var commonIndent = null;\n\n for (var i = 1; i < lines.length; i++) {\n var line = lines[i];\n var indent = leadingWhitespace(line);\n\n if (indent === line.length) {\n continue; // skip empty lines\n }\n\n if (commonIndent === null || indent < commonIndent) {\n commonIndent = indent;\n\n if (commonIndent === 0) {\n break;\n }\n }\n }\n\n return commonIndent === null ? 0 : commonIndent;\n}\n\nfunction leadingWhitespace(str) {\n var i = 0;\n\n while (i < str.length && (str[i] === ' ' || str[i] === '\\t')) {\n i++;\n }\n\n return i;\n}\n\nfunction isBlank(str) {\n return leadingWhitespace(str) === str.length;\n}\n/**\n * Print a block string in the indented block form by adding a leading and\n * trailing blank line. However, if a block string starts with whitespace and is\n * a single-line, adding a leading blank line would strip that whitespace.\n *\n * @internal\n */\n\n\nexport function printBlockString(value) {\n var indentation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var preferMultipleLines = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isSingleLine = value.indexOf('\\n') === -1;\n var hasLeadingSpace = value[0] === ' ' || value[0] === '\\t';\n var hasTrailingQuote = value[value.length - 1] === '\"';\n var hasTrailingSlash = value[value.length - 1] === '\\\\';\n var printAsMultipleLines = !isSingleLine || hasTrailingQuote || hasTrailingSlash || preferMultipleLines;\n var result = ''; // Format a multi-line block quote to account for leading space.\n\n if (printAsMultipleLines && !(isSingleLine && hasLeadingSpace)) {\n result += '\\n' + indentation;\n }\n\n result += indentation ? value.replace(/\\n/g, '\\n' + indentation) : value;\n\n if (printAsMultipleLines) {\n result += '\\n';\n }\n\n return '\"\"\"' + result.replace(/\"\"\"/g, '\\\\\"\"\"') + '\"\"\"';\n}\n","export const availableLanguages = {\n\ten: \"English\",\n\tes: \"Spanish\",\n}\n","import React, { useCallback, useState, useMemo } from \"react\"\nimport { RouteComponentProps } from \"@reach/router\"\nimport { SubmitHandler } from \"@unform/core\"\nimport * as Yup from \"yup\"\nimport { ReactComponent as Logo } from \"assets/svg/logo.svg\"\nimport { useTranslation } from \"react-i18next\"\nimport { TFunction } from \"i18next\"\n\nimport { useAuthenticationContext } from \"../../context/AuthenticationContext\"\nimport ValidatedForm, {\n\tSubmitFormButton,\n} from \"../../components/Form/ValidatedForm\"\nimport Input from \"../../components/Form/Input\"\nimport Card from \"../../components/Card/Card\"\nimport ButtonStyleLink from \"../../components/Buttons/ButtonStyleLink\"\n\nimport Styles from \"./Login.module.css\"\n\nexport const LoginViewWrap: React.FC = ({ children }) => {\n\tconst [t] = useTranslation(\"authentication\")\n\n\treturn (\n\t\t
\n\t\t\t\n\n\t\t\t
\n\t\t\t\t{children}\n\t\t\t
\n\t\t
\n\t)\n}\n\nconst GetStructureLoginSchema = (t: TFunction) =>\n\tYup.object().shape({\n\t\temail: Yup.string().required(\n\t\t\tt(\"login.enterEmail\", \"Please enter your email address\")\n\t\t),\n\t\tpassword: Yup.string().required(\n\t\t\tt(\"login.enterPassword\", \"Please enter your password\")\n\t\t),\n\t})\n\ntype LoginData = Yup.InferType>\n\nconst Login: React.FC = () => {\n\tconst [t] = useTranslation(\"authentication\")\n\n\tconst { authenticate, active } = useAuthenticationContext(true)\n\n\tconst [success, setSuccess] = useState(undefined)\n\n\tconst onSubmit = useCallback>(\n\t\tasync (data) => {\n\t\t\tsetSuccess(undefined)\n\n\t\t\ttry {\n\t\t\t\tawait authenticate(data.email, data.password)\n\t\t\t} catch (e) {\n\t\t\t\tsetSuccess(false)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tsetSuccess(true)\n\t\t},\n\t\t[authenticate]\n\t)\n\n\tconst LoginSchema = useMemo(() => GetStructureLoginSchema(t), [t])\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t

{t(\"login.headline\", \"Hyla Center - Login\")}

\n\n\t\t\t\t{success === true && active !== false && (\n\t\t\t\t\t

\n\t\t\t\t\t\t{t(\n\t\t\t\t\t\t\t\"login.successfulLogin\",\n\t\t\t\t\t\t\t\"Login successful. You are being redirected to the system.\"\n\t\t\t\t\t\t)}\n\t\t\t\t\t

\n\t\t\t\t)}\n\t\t\t\t{success === false && (\n\t\t\t\t\t

\n\t\t\t\t\t\t{t(\n\t\t\t\t\t\t\t\"login.failedLogin\",\n\t\t\t\t\t\t\t\"Could not log in. Please check your email and password.\"\n\t\t\t\t\t\t)}\n\t\t\t\t\t

\n\t\t\t\t)}\n\t\t\t\t{active === false &&\n\t\t\t\t\tt(\n\t\t\t\t\t\t\"login.accountLocked\",\n\t\t\t\t\t\t\"Your account is locked. Please contact your account manager.\"\n\t\t\t\t\t)}\n\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t{t(\"login.loginButton\", \"Login\")}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{t(\"login.forgotPassword\", \"I forgot my password!\")}\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t)\n}\n\nexport default Login\n","import React, { Component, ReactNode } from \"react\"\nimport * as Sentry from \"@sentry/react\"\n\ninterface StateType {\n\thasError: boolean\n}\nexport default abstract class ErrorBoundary extends Component<{}, StateType> {\n\tconstructor(props: any) {\n\t\tsuper(props)\n\n\t\tthis.state = {\n\t\t\thasError: false,\n\t\t}\n\t}\n\n\tprotected abstract captureError: boolean\n\n\tabstract canHandleError(error: Error): boolean\n\tabstract renderOnError(): ReactNode\n\n\tpublic componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tconsole.log(error, errorInfo)\n\t\t}\n\n\t\tif (!this.canHandleError(error)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (this.captureError) {\n\t\t\tSentry.captureException(error, {\n\t\t\t\textra: {\n\t\t\t\t\terrorInfo,\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\t}\n\n\tpublic render(): ReactNode {\n\t\tconst { hasError } = this.state\n\n\t\tif (hasError) {\n\t\t\treturn this.renderOnError()\n\t\t}\n\n\t\treturn this.props.children\n\t}\n}\n","import i18n from \"i18next\"\nimport { initReactI18next } from \"react-i18next\"\nimport ChainedBackend from \"i18next-chained-backend\"\nimport HttpBackend from \"i18next-http-backend\"\nimport resourcesToBackend from \"i18next-resources-to-backend\"\nimport { Settings } from \"luxon\"\nimport moment from \"moment\"\n\nimport { availableLanguages } from \"./helpers/availableLanguages\"\n\nconst supportedLangs = Object.keys(availableLanguages)\n\nSettings.defaultLocale = \"en\"\nmoment.locale(\"en\")\n;(async function setMomentLocale() {\n\tconst lngs = navigator.language?.split(\"-\")\n\tconst lng = lngs[0]\n\tconst region = lngs[1] ?? undefined\n\n\tconst momentLocale =\n\t\tlng.toLowerCase() === region?.toLowerCase() ? lng : `${lng}-${region}`\n\n\t// moment is only required until our datepicker (react-date)\n\t// updates to Ecma Temporal.\n\tif (momentLocale !== \"en\") {\n\t\ttry {\n\t\t\tawait import(\n\t\t\t\t/*\n\t\t\t\t\twebpackChunkName: \"momentLocale\"\n\t\t\t\t */\n\t\t\t\t`moment/locale/${momentLocale}.js`\n\t\t\t)\n\n\t\t\tmoment.locale(momentLocale)\n\t\t} catch (e) {}\n\t} else {\n\t\tmoment.locale(momentLocale)\n\t}\n})()\n\nasync function onChangeLocale(lng: string | undefined) {\n\tif (!lng) {\n\t\tlng = navigator.language?.split(\"-\")[0]\n\n\t\tif (!lng) {\n\t\t\treturn\n\t\t}\n\t}\n\n\tif (!supportedLangs.includes(lng)) {\n\t\treturn\n\t}\n\n\tSettings.defaultLocale = lng\n}\n\ni18n.use(ChainedBackend)\n\t.use(initReactI18next)\n\t.init({\n\t\tfallbackLng: \"en\",\n\t\tdebug:\n\t\t\tprocess.env.NODE_ENV === \"development\" &&\n\t\t\tprocess.env.REACT_APP_DEBUG_I18N === \"true\",\n\n\t\tinterpolation: {\n\t\t\tescapeValue: false, // not needed for react as it escapes by default\n\t\t},\n\n\t\tbackend: {\n\t\t\tbackends: [\n\t\t\t\tresourcesToBackend((lng, ns, clb) => {\n\t\t\t\t\timport(`./locales/${lng}/${ns}.json`)\n\t\t\t\t\t\t.then((resources) => clb(null, resources))\n\t\t\t\t\t\t.catch((err) => clb(err, undefined))\n\t\t\t\t}),\n\t\t\t\tHttpBackend,\n\t\t\t],\n\t\t\tbackendOptions: [\n\t\t\t\t{\n\t\t\t\t\tloadPath:\n\t\t\t\t\t\t\"https://translate.hyla-center.com/parts/get/1/{{lng}}/{{ns}}.json\",\n\t\t\t\t},\n\t\t\t],\n\t\t},\n\n\t\tdefaultNS: \"no-namespace\",\n\n\t\tsupportedLngs: supportedLangs,\n\n\t\tlng: \"en\",\n\t})\n\t.then(async () => {\n\t\ti18n.on(\"languageChanged\", onChangeLocale)\n\n\t\treturn onChangeLocale(i18n.language ?? undefined)\n\t})\n\nexport default i18n\n","var map = {\n\t\"./af.js\": [\n\t\t683,\n\t\t0\n\t],\n\t\"./ar-dz.js\": [\n\t\t684,\n\t\t0\n\t],\n\t\"./ar-kw.js\": [\n\t\t685,\n\t\t0\n\t],\n\t\"./ar-ly.js\": [\n\t\t686,\n\t\t0\n\t],\n\t\"./ar-ma.js\": [\n\t\t687,\n\t\t0\n\t],\n\t\"./ar-sa.js\": [\n\t\t688,\n\t\t0\n\t],\n\t\"./ar-tn.js\": [\n\t\t689,\n\t\t0\n\t],\n\t\"./ar.js\": [\n\t\t690,\n\t\t0\n\t],\n\t\"./az.js\": [\n\t\t691,\n\t\t0\n\t],\n\t\"./be.js\": [\n\t\t692,\n\t\t0\n\t],\n\t\"./bg.js\": [\n\t\t693,\n\t\t0\n\t],\n\t\"./bm.js\": [\n\t\t694,\n\t\t0\n\t],\n\t\"./bn-bd.js\": [\n\t\t695,\n\t\t0\n\t],\n\t\"./bn.js\": [\n\t\t696,\n\t\t0\n\t],\n\t\"./bo.js\": [\n\t\t697,\n\t\t0\n\t],\n\t\"./br.js\": [\n\t\t698,\n\t\t0\n\t],\n\t\"./bs.js\": [\n\t\t699,\n\t\t0\n\t],\n\t\"./ca.js\": [\n\t\t700,\n\t\t0\n\t],\n\t\"./cs.js\": [\n\t\t701,\n\t\t0\n\t],\n\t\"./cv.js\": [\n\t\t702,\n\t\t0\n\t],\n\t\"./cy.js\": [\n\t\t703,\n\t\t0\n\t],\n\t\"./da.js\": [\n\t\t704,\n\t\t0\n\t],\n\t\"./de-at.js\": [\n\t\t705,\n\t\t0\n\t],\n\t\"./de-ch.js\": [\n\t\t706,\n\t\t0\n\t],\n\t\"./de.js\": [\n\t\t707,\n\t\t0\n\t],\n\t\"./dv.js\": [\n\t\t708,\n\t\t0\n\t],\n\t\"./el.js\": [\n\t\t709,\n\t\t0\n\t],\n\t\"./en-au.js\": [\n\t\t710,\n\t\t0\n\t],\n\t\"./en-ca.js\": [\n\t\t711,\n\t\t0\n\t],\n\t\"./en-gb.js\": [\n\t\t712,\n\t\t0\n\t],\n\t\"./en-ie.js\": [\n\t\t713,\n\t\t0\n\t],\n\t\"./en-il.js\": [\n\t\t714,\n\t\t0\n\t],\n\t\"./en-in.js\": [\n\t\t715,\n\t\t0\n\t],\n\t\"./en-nz.js\": [\n\t\t716,\n\t\t0\n\t],\n\t\"./en-sg.js\": [\n\t\t717,\n\t\t0\n\t],\n\t\"./eo.js\": [\n\t\t718,\n\t\t0\n\t],\n\t\"./es-do.js\": [\n\t\t719,\n\t\t0\n\t],\n\t\"./es-mx.js\": [\n\t\t720,\n\t\t0\n\t],\n\t\"./es-us.js\": [\n\t\t721,\n\t\t0\n\t],\n\t\"./es.js\": [\n\t\t722,\n\t\t0\n\t],\n\t\"./et.js\": [\n\t\t723,\n\t\t0\n\t],\n\t\"./eu.js\": [\n\t\t724,\n\t\t0\n\t],\n\t\"./fa.js\": [\n\t\t725,\n\t\t0\n\t],\n\t\"./fi.js\": [\n\t\t726,\n\t\t0\n\t],\n\t\"./fil.js\": [\n\t\t727,\n\t\t0\n\t],\n\t\"./fo.js\": [\n\t\t728,\n\t\t0\n\t],\n\t\"./fr-ca.js\": [\n\t\t729,\n\t\t0\n\t],\n\t\"./fr-ch.js\": [\n\t\t730,\n\t\t0\n\t],\n\t\"./fr.js\": [\n\t\t731,\n\t\t0\n\t],\n\t\"./fy.js\": [\n\t\t732,\n\t\t0\n\t],\n\t\"./ga.js\": [\n\t\t733,\n\t\t0\n\t],\n\t\"./gd.js\": [\n\t\t734,\n\t\t0\n\t],\n\t\"./gl.js\": [\n\t\t735,\n\t\t0\n\t],\n\t\"./gom-deva.js\": [\n\t\t736,\n\t\t0\n\t],\n\t\"./gom-latn.js\": [\n\t\t737,\n\t\t0\n\t],\n\t\"./gu.js\": [\n\t\t738,\n\t\t0\n\t],\n\t\"./he.js\": [\n\t\t739,\n\t\t0\n\t],\n\t\"./hi.js\": [\n\t\t740,\n\t\t0\n\t],\n\t\"./hr.js\": [\n\t\t741,\n\t\t0\n\t],\n\t\"./hu.js\": [\n\t\t742,\n\t\t0\n\t],\n\t\"./hy-am.js\": [\n\t\t743,\n\t\t0\n\t],\n\t\"./id.js\": [\n\t\t744,\n\t\t0\n\t],\n\t\"./is.js\": [\n\t\t745,\n\t\t0\n\t],\n\t\"./it-ch.js\": [\n\t\t746,\n\t\t0\n\t],\n\t\"./it.js\": [\n\t\t747,\n\t\t0\n\t],\n\t\"./ja.js\": [\n\t\t748,\n\t\t0\n\t],\n\t\"./jv.js\": [\n\t\t749,\n\t\t0\n\t],\n\t\"./ka.js\": [\n\t\t750,\n\t\t0\n\t],\n\t\"./kk.js\": [\n\t\t751,\n\t\t0\n\t],\n\t\"./km.js\": [\n\t\t752,\n\t\t0\n\t],\n\t\"./kn.js\": [\n\t\t753,\n\t\t0\n\t],\n\t\"./ko.js\": [\n\t\t754,\n\t\t0\n\t],\n\t\"./ku.js\": [\n\t\t755,\n\t\t0\n\t],\n\t\"./ky.js\": [\n\t\t756,\n\t\t0\n\t],\n\t\"./lb.js\": [\n\t\t757,\n\t\t0\n\t],\n\t\"./lo.js\": [\n\t\t758,\n\t\t0\n\t],\n\t\"./lt.js\": [\n\t\t759,\n\t\t0\n\t],\n\t\"./lv.js\": [\n\t\t760,\n\t\t0\n\t],\n\t\"./me.js\": [\n\t\t761,\n\t\t0\n\t],\n\t\"./mi.js\": [\n\t\t762,\n\t\t0\n\t],\n\t\"./mk.js\": [\n\t\t763,\n\t\t0\n\t],\n\t\"./ml.js\": [\n\t\t764,\n\t\t0\n\t],\n\t\"./mn.js\": [\n\t\t765,\n\t\t0\n\t],\n\t\"./mr.js\": [\n\t\t766,\n\t\t0\n\t],\n\t\"./ms-my.js\": [\n\t\t767,\n\t\t0\n\t],\n\t\"./ms.js\": [\n\t\t768,\n\t\t0\n\t],\n\t\"./mt.js\": [\n\t\t769,\n\t\t0\n\t],\n\t\"./my.js\": [\n\t\t770,\n\t\t0\n\t],\n\t\"./nb.js\": [\n\t\t771,\n\t\t0\n\t],\n\t\"./ne.js\": [\n\t\t772,\n\t\t0\n\t],\n\t\"./nl-be.js\": [\n\t\t773,\n\t\t0\n\t],\n\t\"./nl.js\": [\n\t\t774,\n\t\t0\n\t],\n\t\"./nn.js\": [\n\t\t775,\n\t\t0\n\t],\n\t\"./oc-lnc.js\": [\n\t\t776,\n\t\t0\n\t],\n\t\"./pa-in.js\": [\n\t\t777,\n\t\t0\n\t],\n\t\"./pl.js\": [\n\t\t778,\n\t\t0\n\t],\n\t\"./pt-br.js\": [\n\t\t779,\n\t\t0\n\t],\n\t\"./pt.js\": [\n\t\t780,\n\t\t0\n\t],\n\t\"./ro.js\": [\n\t\t781,\n\t\t0\n\t],\n\t\"./ru.js\": [\n\t\t782,\n\t\t0\n\t],\n\t\"./sd.js\": [\n\t\t783,\n\t\t0\n\t],\n\t\"./se.js\": [\n\t\t784,\n\t\t0\n\t],\n\t\"./si.js\": [\n\t\t785,\n\t\t0\n\t],\n\t\"./sk.js\": [\n\t\t786,\n\t\t0\n\t],\n\t\"./sl.js\": [\n\t\t787,\n\t\t0\n\t],\n\t\"./sq.js\": [\n\t\t788,\n\t\t0\n\t],\n\t\"./sr-cyrl.js\": [\n\t\t789,\n\t\t0\n\t],\n\t\"./sr.js\": [\n\t\t790,\n\t\t0\n\t],\n\t\"./ss.js\": [\n\t\t791,\n\t\t0\n\t],\n\t\"./sv.js\": [\n\t\t792,\n\t\t0\n\t],\n\t\"./sw.js\": [\n\t\t793,\n\t\t0\n\t],\n\t\"./ta.js\": [\n\t\t794,\n\t\t0\n\t],\n\t\"./te.js\": [\n\t\t795,\n\t\t0\n\t],\n\t\"./tet.js\": [\n\t\t796,\n\t\t0\n\t],\n\t\"./tg.js\": [\n\t\t797,\n\t\t0\n\t],\n\t\"./th.js\": [\n\t\t798,\n\t\t0\n\t],\n\t\"./tk.js\": [\n\t\t799,\n\t\t0\n\t],\n\t\"./tl-ph.js\": [\n\t\t800,\n\t\t0\n\t],\n\t\"./tlh.js\": [\n\t\t801,\n\t\t0\n\t],\n\t\"./tr.js\": [\n\t\t802,\n\t\t0\n\t],\n\t\"./tzl.js\": [\n\t\t803,\n\t\t0\n\t],\n\t\"./tzm-latn.js\": [\n\t\t804,\n\t\t0\n\t],\n\t\"./tzm.js\": [\n\t\t805,\n\t\t0\n\t],\n\t\"./ug-cn.js\": [\n\t\t806,\n\t\t0\n\t],\n\t\"./uk.js\": [\n\t\t807,\n\t\t0\n\t],\n\t\"./ur.js\": [\n\t\t808,\n\t\t0\n\t],\n\t\"./uz-latn.js\": [\n\t\t809,\n\t\t0\n\t],\n\t\"./uz.js\": [\n\t\t810,\n\t\t0\n\t],\n\t\"./vi.js\": [\n\t\t811,\n\t\t0\n\t],\n\t\"./x-pseudo.js\": [\n\t\t812,\n\t\t0\n\t],\n\t\"./yo.js\": [\n\t\t813,\n\t\t0\n\t],\n\t\"./zh-cn.js\": [\n\t\t814,\n\t\t0\n\t],\n\t\"./zh-hk.js\": [\n\t\t815,\n\t\t0\n\t],\n\t\"./zh-mo.js\": [\n\t\t816,\n\t\t0\n\t],\n\t\"./zh-tw.js\": [\n\t\t817,\n\t\t0\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 7);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 573;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./en/admin.dashboard.json\": [\n\t\t989,\n\t\t231\n\t],\n\t\"./en/admin.importer-codes.json\": [\n\t\t990,\n\t\t232\n\t],\n\t\"./en/admin.manage-data.json\": [\n\t\t991,\n\t\t233\n\t],\n\t\"./en/admin.news.json\": [\n\t\t992,\n\t\t234\n\t],\n\t\"./en/admin.pins.json\": [\n\t\t993,\n\t\t235\n\t],\n\t\"./en/admin.ranking.json\": [\n\t\t994,\n\t\t236\n\t],\n\t\"./en/admin.structures.json\": [\n\t\t995,\n\t\t237\n\t],\n\t\"./en/admin.users.json\": [\n\t\t996,\n\t\t238\n\t],\n\t\"./en/authentication.json\": [\n\t\t997,\n\t\t239\n\t],\n\t\"./en/dashboard.json\": [\n\t\t998,\n\t\t240\n\t],\n\t\"./en/error.json\": [\n\t\t999,\n\t\t241\n\t],\n\t\"./en/general.json\": [\n\t\t1000,\n\t\t242\n\t],\n\t\"./en/greeting.json\": [\n\t\t1001,\n\t\t243\n\t],\n\t\"./en/importer.dashboard.json\": [\n\t\t1002,\n\t\t244\n\t],\n\t\"./en/no-namespace.json\": [\n\t\t1003,\n\t\t245\n\t],\n\t\"./en/shared.account.json\": [\n\t\t1004,\n\t\t246\n\t],\n\t\"./en/shared.customers.json\": [\n\t\t1005,\n\t\t247\n\t],\n\t\"./en/shared.dashboard.json\": [\n\t\t1006,\n\t\t248\n\t],\n\t\"./en/shared.devices.json\": [\n\t\t1007,\n\t\t249\n\t],\n\t\"./en/shared.news.json\": [\n\t\t1008,\n\t\t250\n\t],\n\t\"./en/shared.ranking.json\": [\n\t\t1009,\n\t\t251\n\t],\n\t\"./en/shared.sales.json\": [\n\t\t1010,\n\t\t252\n\t],\n\t\"./en/shared.search.json\": [\n\t\t1011,\n\t\t253\n\t],\n\t\"./en/shared.shipments.json\": [\n\t\t1012,\n\t\t254\n\t],\n\t\"./en/shared.structure-charts.json\": [\n\t\t1013,\n\t\t255\n\t],\n\t\"./en/shared.structures.json\": [\n\t\t1014,\n\t\t256\n\t],\n\t\"./es/admin.dashboard.json\": [\n\t\t1015,\n\t\t257\n\t],\n\t\"./es/admin.importer-codes.json\": [\n\t\t1016,\n\t\t258\n\t],\n\t\"./es/admin.manage-data.json\": [\n\t\t1017,\n\t\t259\n\t],\n\t\"./es/admin.news.json\": [\n\t\t1018,\n\t\t260\n\t],\n\t\"./es/admin.pins.json\": [\n\t\t1019,\n\t\t261\n\t],\n\t\"./es/admin.ranking.json\": [\n\t\t1020,\n\t\t262\n\t],\n\t\"./es/admin.structures.json\": [\n\t\t1021,\n\t\t263\n\t],\n\t\"./es/admin.users.json\": [\n\t\t1022,\n\t\t264\n\t],\n\t\"./es/authentication.json\": [\n\t\t1023,\n\t\t265\n\t],\n\t\"./es/dashboard.json\": [\n\t\t1024,\n\t\t266\n\t],\n\t\"./es/error.json\": [\n\t\t1025,\n\t\t267\n\t],\n\t\"./es/general.json\": [\n\t\t1026,\n\t\t268\n\t],\n\t\"./es/greeting.json\": [\n\t\t1027,\n\t\t269\n\t],\n\t\"./es/importer.dashboard.json\": [\n\t\t1028,\n\t\t270\n\t],\n\t\"./es/no-namespace.json\": [\n\t\t1029,\n\t\t271\n\t],\n\t\"./es/shared.account.json\": [\n\t\t1030,\n\t\t272\n\t],\n\t\"./es/shared.customers.json\": [\n\t\t1031,\n\t\t273\n\t],\n\t\"./es/shared.dashboard.json\": [\n\t\t1032,\n\t\t274\n\t],\n\t\"./es/shared.devices.json\": [\n\t\t1033,\n\t\t275\n\t],\n\t\"./es/shared.news.json\": [\n\t\t1034,\n\t\t276\n\t],\n\t\"./es/shared.ranking.json\": [\n\t\t1035,\n\t\t277\n\t],\n\t\"./es/shared.sales.json\": [\n\t\t1036,\n\t\t278\n\t],\n\t\"./es/shared.search.json\": [\n\t\t1037,\n\t\t279\n\t],\n\t\"./es/shared.shipments.json\": [\n\t\t1038,\n\t\t280\n\t],\n\t\"./es/shared.structure-charts.json\": [\n\t\t1039,\n\t\t281\n\t],\n\t\"./es/shared.structures.json\": [\n\t\t1040,\n\t\t282\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__.t(id, 3);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 574;\nmodule.exports = webpackAsyncContext;","export type ClassName =\n\t| string\n\t| undefined\n\t| null\n\t| false\n\t| Record\nconst classNames = (...args: ClassName[]) => {\n\tconst classes = []\n\n\tfor (const item of args) {\n\t\tif (!item) {\n\t\t\tcontinue\n\t\t}\n\n\t\tif (typeof item === \"string\") {\n\t\t\tclasses.push(item)\n\n\t\t\tcontinue\n\t\t}\n\n\t\tfor (const key in item) {\n\t\t\tif (key.length === 0 || !item[key]) {\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tclasses.push(key)\n\t\t}\n\t}\n\n\treturn classes.join(\" \")\n}\n\nexport default classNames\n","import React, { useMemo } from \"react\"\n\nimport classNames from \"../../helpers/classNames\"\n\nimport Style from \"./Button.module.css\"\nimport Appearances from \"./ButtonAppearance.module.css\"\n\ntype ButtonSizes = \"normal\" | \"small\" | \"large\"\n\nexport function useButtonClassName(\n\tclassName: string | undefined = \"\",\n\tsize: ButtonSizes = \"normal\",\n\tappearance: keyof typeof Appearances = \"default\",\n\tstraight: boolean = false\n) {\n\treturn useMemo(() => {\n\t\treturn classNames({\n\t\t\t[`${Style.button} ${Style[size]} ${className}`]: true,\n\t\t\t[Appearances[appearance] || \"\"]: !!appearance,\n\t\t\t[Style.straight]: straight,\n\t\t})\n\t}, [className, size, appearance, straight])\n}\n\nexport type CustomButtonProps = {\n\tappearance?: keyof typeof Appearances\n\tclassName?: string\n\tsize?: ButtonSizes\n\tstraight?: boolean\n}\n\ntype ButtonProps = JSX.IntrinsicElements[\"button\"] &\n\tCustomButtonProps & {\n\t\ttype?: \"button\" | \"submit\" | \"reset\"\n\t}\nconst Button = React.forwardRef(\n\t(\n\t\t{\n\t\t\tappearance = \"default\",\n\t\t\tclassName,\n\t\t\ttype,\n\t\t\tchildren,\n\t\t\tsize = \"normal\",\n\t\t\tstraight = false,\n\t\t\t...rest\n\t\t},\n\t\tref\n\t) => {\n\t\tconst completeClassName = useButtonClassName(\n\t\t\tclassName,\n\t\t\tsize,\n\t\t\tappearance,\n\t\t\tstraight\n\t\t)\n\t\treturn (\n\t\t\t\n\t\t\t\t{children}\n\t\t\t\n\t\t)\n\t}\n)\n\nexport default Button\n","import React, { ReactNode } from \"react\"\n\nimport ErrorBoundary from \"./ErrorBoundary\"\n\nexport class GlobalErrorBoundary extends ErrorBoundary {\n\tprotected captureError = true\n\n\tpublic canHandleError(error: Error): boolean {\n\t\treturn true\n\t}\n\n\tstatic getDerivedStateFromError(error: Error) {\n\t\treturn {\n\t\t\thasError: true,\n\t\t}\n\t}\n\n\tpublic renderOnError(): ReactNode {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t

Could not start application

\n\t\t\t\t

\n\t\t\t\t\tThere was a critical error while starting the application.\n\t\t\t\t\t
\n\t\t\t\t\tThe issues has been reported to the technical staff and will\n\t\t\t\t\tbe resolved as soon as possible.\n\t\t\t\t

\n\t\t\t\n\t\t)\n\t}\n}\n","import React from \"react\"\nimport { ReactComponent as Logo } from \"assets/svg/logo.svg\"\n\nimport LoadingIndicator from \"../LoadingIndicator/LoadingIndicator\"\n\nimport Styles from \"./LoadingScreen.module.css\"\n\ntype LoadingScreenProps = {}\nconst LoadingScreen: React.FC = () => {\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t
\n\t)\n}\n\nexport default LoadingScreen\n","import React, { useEffect, useState } from \"react\"\nimport { Trans, useTranslation } from \"react-i18next\"\nimport { hash, bitArray } from \"sjcl\"\n\nimport { useAlertContext } from \"../context/AlertContext\"\n\nimport { AlertType } from \"./Alerts/Alerts\"\nimport Button from \"./Buttons/Button\"\n\nconst getCurrentIndexHash = async (cache: boolean = false) => {\n\twhile (true) {\n\t\ttry {\n\t\t\tconst res = await fetch(`${window.location.origin}/index.html`, {\n\t\t\t\tcache: cache ? \"default\" : \"no-cache\",\n\t\t\t})\n\n\t\t\treturn hash.sha256.hash(await res.text())\n\t\t} catch (error) {\n\t\t\t// check every 30s if network is availabe.\n\t\t\t// the outer loop will continue when network is accessible.\n\n\t\t\t// using do {} while () instead of while {}\n\t\t\t// to wait 30s before starting checking network every 30s.\n\t\t\t// this prevents fetching permanently if \"only\" the server is down.\n\t\t\tdo {\n\t\t\t\tawait new Promise((res) => setTimeout(res, 30000))\n\t\t\t} while (!window.navigator.onLine)\n\t\t}\n\t}\n}\n\nconst UpdateAlert: React.FC = () => {\n\tconst [t] = useTranslation()\n\n\treturn (\n\t\t\n\t\t\tA new version of Hyla Center is available.\n\t\t\t
\n\t\t\tOnly the newest version will continue to work.\n\t\t\t
\n\t\t\t window.location.reload()}\n\t\t\t\tclassName=\"mt-2\"\n\t\t\t>\n\t\t\t\tUpdate Now\n\t\t\t\n\t\t
\n\t)\n}\n\nconst CheckUpdates: React.FC = () => {\n\tconst [t] = useTranslation(\"general\")\n\tconst { addAlert } = useAlertContext()\n\tconst [localVersionHashPromise] = useState(getCurrentIndexHash(true))\n\n\tuseEffect(() => {\n\t\tlet mounted = true\n\t\tlet interval: NodeJS.Timeout | undefined = undefined\n\t\tlet alerted = false\n\n\t\tconst checkUpdate = async () => {\n\t\t\tif (!mounted || alerted) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tbitArray.equal(\n\t\t\t\t\tawait localVersionHashPromise,\n\t\t\t\t\tawait getCurrentIndexHash()\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// check mounting-state again - the promises may have taken a while\n\t\t\tif (!mounted || alerted) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\talerted = true\n\n\t\t\t// disable interval\n\t\t\tif (interval) {\n\t\t\t\tclearInterval(interval)\n\t\t\t\tinterval = undefined\n\t\t\t}\n\n\t\t\taddAlert({\n\t\t\t\ttitle: t(\"updateAlert.title\", \"New Version available\"),\n\t\t\t\tcontent: ,\n\t\t\t\ttype: AlertType.Info,\n\t\t\t\tdismissable: false,\n\t\t\t})\n\t\t}\n\n\t\tcheckUpdate()\n\t\t// check index.html every 5 minutes\n\t\tinterval = setInterval(checkUpdate, 300000)\n\n\t\treturn () => {\n\t\t\tmounted = false\n\t\t\tif (interval !== undefined) {\n\t\t\t\tclearInterval(interval)\n\t\t\t}\n\t\t}\n\t}, [localVersionHashPromise, addAlert, t])\n\n\treturn null\n}\n\nexport default CheckUpdates\n","import React, { Suspense } from \"react\"\nimport { Router } from \"@reach/router\"\n\nimport { GlobalErrorBoundary } from \"./errors/GlobalErrorBoundary\"\nimport { AuthenticationContextProvider } from \"./context/AuthenticationContext\"\nimport LoadingScreen from \"./components/LoadingScreen/LoadingScreen\"\nimport { AlertContextProvider } from \"./context/AlertContext\"\nimport { MaintenanceContextProvider } from \"./context/MaintenanceContext\"\nimport CheckUpdates from \"./components/CheckUpdates\"\n\nconst Login = React.lazy(\n\t() =>\n\t\timport(\n\t\t\t/*\n\t\twebpackChunkName: \"pre-auth-login\"\n \t */\n\t\t\t\"./pages/Login/Login\"\n\t\t)\n)\nconst Welcome = React.lazy(\n\t() =>\n\t\timport(\n\t\t\t/*\n\t\twebpackChunkName: \"pre-auth-welcome\"\n \t */\n\t\t\t\"./pages/Password/Welcome/Welcome\"\n\t\t)\n)\nconst ForgotPassword = React.lazy(\n\t() =>\n\t\timport(\n\t\t\t/*\n\t\t\twebpackChunkName: \"pre-auth-forgot-password\"\n\t\t */\n\t\t\t\"./pages/Password/ForgotPassword/ForgotPassword\"\n\t\t)\n)\nconst ResetPassword = React.lazy(\n\t() =>\n\t\timport(\n\t\t\t/*\n\t\t\twebpackChunkName: \"pre-auth-reset-password\"\n\t\t */\n\t\t\t\"./pages/Password/ResetPassword/ResetPassword\"\n\t\t)\n)\nconst Authenticated = React.lazy(\n\t() =>\n\t\timport(\n\t\t\t/*\n\t\twebpackChunkName: \"authenticated\"\n\t */\n\t\t\t\"./Authenticated\"\n\t\t)\n)\n\nconst App: React.FC = () => {\n\treturn (\n\t\t
\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t}>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t)\n}\n\nexport default App\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n\twindow.location.hostname === \"localhost\" ||\n\t\t// [::1] is the IPv6 localhost address.\n\t\twindow.location.hostname === \"[::1]\" ||\n\t\t// 127.0.0.0/8 are considered localhost for IPv4.\n\t\twindow.location.hostname.match(\n\t\t\t/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n\t\t)\n)\n\ntype Config = {\n\tonSuccess?: (registration: ServiceWorkerRegistration) => void\n\tonUpdate?: (registration: ServiceWorkerRegistration) => void\n}\n\nexport function register(config?: Config) {\n\tif (process.env.NODE_ENV === \"production\" && \"serviceWorker\" in navigator) {\n\t\t// The URL constructor is available in all browsers that support SW.\n\t\tconst publicUrl = new URL(process.env.PUBLIC_URL, window.location.href)\n\t\tif (publicUrl.origin !== window.location.origin) {\n\t\t\t// Our service worker won't work if PUBLIC_URL is on a different origin\n\t\t\t// from what our page is served on. This might happen if a CDN is used to\n\t\t\t// serve assets; see https://github.com/facebook/create-react-app/issues/2374\n\t\t\treturn\n\t\t}\n\n\t\twindow.addEventListener(\"load\", () => {\n\t\t\tconst swUrl = `${process.env.PUBLIC_URL}/service-worker.js`\n\n\t\t\tif (isLocalhost) {\n\t\t\t\t// This is running on localhost. Let's check if a service worker still exists or not.\n\t\t\t\tcheckValidServiceWorker(swUrl, config)\n\n\t\t\t\t// Add some additional logging to localhost, pointing developers to the\n\t\t\t\t// service worker/PWA documentation.\n\t\t\t\tnavigator.serviceWorker.ready.then(() => {\n\t\t\t\t\tconsole.log(\n\t\t\t\t\t\t\"This web app is being served cache-first by a service \" +\n\t\t\t\t\t\t\t\"worker. To learn more, visit https://bit.ly/CRA-PWA\"\n\t\t\t\t\t)\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\t// Is not localhost. Just register service worker\n\t\t\t\tregisterValidSW(swUrl, config)\n\t\t\t}\n\t\t})\n\t}\n}\n\nfunction registerValidSW(swUrl: string, config?: Config) {\n\tnavigator.serviceWorker\n\t\t.register(swUrl)\n\t\t.then((registration) => {\n\t\t\tregistration.onupdatefound = () => {\n\t\t\t\tconst installingWorker = registration.installing\n\t\t\t\tif (installingWorker == null) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tinstallingWorker.onstatechange = () => {\n\t\t\t\t\tif (installingWorker.state === \"installed\") {\n\t\t\t\t\t\tif (navigator.serviceWorker.controller) {\n\t\t\t\t\t\t\t// At this point, the updated precached content has been fetched,\n\t\t\t\t\t\t\t// but the previous service worker will still serve the older\n\t\t\t\t\t\t\t// content until all client tabs are closed.\n\t\t\t\t\t\t\tconsole.log(\n\t\t\t\t\t\t\t\t\"New content is available and will be used when all \" +\n\t\t\t\t\t\t\t\t\t\"tabs for this page are closed. See https://bit.ly/CRA-PWA.\"\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t// Execute callback\n\t\t\t\t\t\t\tif (config && config.onUpdate) {\n\t\t\t\t\t\t\t\tconfig.onUpdate(registration)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// At this point, everything has been precached.\n\t\t\t\t\t\t\t// It's the perfect time to display a\n\t\t\t\t\t\t\t// \"Content is cached for offline use.\" message.\n\t\t\t\t\t\t\tconsole.log(\"Content is cached for offline use.\")\n\n\t\t\t\t\t\t\t// Execute callback\n\t\t\t\t\t\t\tif (config && config.onSuccess) {\n\t\t\t\t\t\t\t\tconfig.onSuccess(registration)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tconsole.error(\"Error during service worker registration:\", error)\n\t\t})\n}\n\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\n\t// Check if the service worker can be found. If it can't reload the page.\n\tfetch(swUrl, {\n\t\theaders: { \"Service-Worker\": \"script\" },\n\t})\n\t\t.then((response) => {\n\t\t\t// Ensure service worker exists, and that we really are getting a JS file.\n\t\t\tconst contentType = response.headers.get(\"content-type\")\n\t\t\tif (\n\t\t\t\tresponse.status === 404 ||\n\t\t\t\t(contentType != null &&\n\t\t\t\t\tcontentType.indexOf(\"javascript\") === -1)\n\t\t\t) {\n\t\t\t\t// No service worker found. Probably a different app. Reload the page.\n\t\t\t\tnavigator.serviceWorker.ready.then((registration) => {\n\t\t\t\t\tregistration.unregister().then(() => {\n\t\t\t\t\t\twindow.location.reload()\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\t// Service worker found. Proceed as normal.\n\t\t\t\tregisterValidSW(swUrl, config)\n\t\t\t}\n\t\t})\n\t\t.catch(() => {\n\t\t\tconsole.log(\n\t\t\t\t\"No internet connection found. App is running in offline mode.\"\n\t\t\t)\n\t\t})\n}\n\nexport function unregister() {\n\tif (\"serviceWorker\" in navigator) {\n\t\tnavigator.serviceWorker.ready\n\t\t\t.then((registration) => {\n\t\t\t\tregistration.unregister()\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.error(error.message)\n\t\t\t})\n\t}\n}\n","import React from \"react\"\nimport ReactDOM from \"react-dom\"\nimport * as Sentry from \"@sentry/react\"\nimport \"react-dates/initialize\"\nimport \"react-dates/lib/css/_datepicker.css\"\n\nimport App from \"./App\"\nimport * as serviceWorker from \"./serviceWorker\"\n\n// reach-ui imports\nimport \"@reach/dialog/styles.css\"\n\n// i18n\nimport \"./i18n\"\n\n// Styles\nimport \"./tailwind.css\"\nimport \"./index.css\"\n\nif (process.env.NODE_ENV === \"production\") {\n\tSentry.init({\n\t\tdsn: process.env.REACT_APP_SENTRY_DSN,\n\t\trelease: `hyla-center-frontend@${process.env.REACT_APP_RELEASE_VERSION}`,\n\t\tenvironment: process.env.REACT_APP_SENTRY_ENVIRONMENT,\n\t})\n}\n\nReactDOM.render(\n\t\n\t\t\n\t,\n\tdocument.getElementById(\"root\")\n)\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister()\n","import { visit } from \"./visitor.mjs\";\nimport { printBlockString } from \"./blockString.mjs\";\n/**\n * Converts an AST into a string, using one set of reasonable\n * formatting rules.\n */\n\nexport function print(ast) {\n return visit(ast, {\n leave: printDocASTReducer\n });\n} // TODO: provide better type coverage in future\n\nvar printDocASTReducer = {\n Name: function Name(node) {\n return node.value;\n },\n Variable: function Variable(node) {\n return '$' + node.name;\n },\n // Document\n Document: function Document(node) {\n return join(node.definitions, '\\n\\n') + '\\n';\n },\n OperationDefinition: function OperationDefinition(node) {\n var op = node.operation;\n var name = node.name;\n var varDefs = wrap('(', join(node.variableDefinitions, ', '), ')');\n var directives = join(node.directives, ' ');\n var selectionSet = node.selectionSet; // Anonymous queries with no directives or variable definitions can use\n // the query short form.\n\n return !name && !directives && !varDefs && op === 'query' ? selectionSet : join([op, join([name, varDefs]), directives, selectionSet], ' ');\n },\n VariableDefinition: function VariableDefinition(_ref) {\n var variable = _ref.variable,\n type = _ref.type,\n defaultValue = _ref.defaultValue,\n directives = _ref.directives;\n return variable + ': ' + type + wrap(' = ', defaultValue) + wrap(' ', join(directives, ' '));\n },\n SelectionSet: function SelectionSet(_ref2) {\n var selections = _ref2.selections;\n return block(selections);\n },\n Field: function Field(_ref3) {\n var alias = _ref3.alias,\n name = _ref3.name,\n args = _ref3.arguments,\n directives = _ref3.directives,\n selectionSet = _ref3.selectionSet;\n return join([wrap('', alias, ': ') + name + wrap('(', join(args, ', '), ')'), join(directives, ' '), selectionSet], ' ');\n },\n Argument: function Argument(_ref4) {\n var name = _ref4.name,\n value = _ref4.value;\n return name + ': ' + value;\n },\n // Fragments\n FragmentSpread: function FragmentSpread(_ref5) {\n var name = _ref5.name,\n directives = _ref5.directives;\n return '...' + name + wrap(' ', join(directives, ' '));\n },\n InlineFragment: function InlineFragment(_ref6) {\n var typeCondition = _ref6.typeCondition,\n directives = _ref6.directives,\n selectionSet = _ref6.selectionSet;\n return join(['...', wrap('on ', typeCondition), join(directives, ' '), selectionSet], ' ');\n },\n FragmentDefinition: function FragmentDefinition(_ref7) {\n var name = _ref7.name,\n typeCondition = _ref7.typeCondition,\n variableDefinitions = _ref7.variableDefinitions,\n directives = _ref7.directives,\n selectionSet = _ref7.selectionSet;\n return (// Note: fragment variable definitions are experimental and may be changed\n // or removed in the future.\n \"fragment \".concat(name).concat(wrap('(', join(variableDefinitions, ', '), ')'), \" \") + \"on \".concat(typeCondition, \" \").concat(wrap('', join(directives, ' '), ' ')) + selectionSet\n );\n },\n // Value\n IntValue: function IntValue(_ref8) {\n var value = _ref8.value;\n return value;\n },\n FloatValue: function FloatValue(_ref9) {\n var value = _ref9.value;\n return value;\n },\n StringValue: function StringValue(_ref10, key) {\n var value = _ref10.value,\n isBlockString = _ref10.block;\n return isBlockString ? printBlockString(value, key === 'description' ? '' : ' ') : JSON.stringify(value);\n },\n BooleanValue: function BooleanValue(_ref11) {\n var value = _ref11.value;\n return value ? 'true' : 'false';\n },\n NullValue: function NullValue() {\n return 'null';\n },\n EnumValue: function EnumValue(_ref12) {\n var value = _ref12.value;\n return value;\n },\n ListValue: function ListValue(_ref13) {\n var values = _ref13.values;\n return '[' + join(values, ', ') + ']';\n },\n ObjectValue: function ObjectValue(_ref14) {\n var fields = _ref14.fields;\n return '{' + join(fields, ', ') + '}';\n },\n ObjectField: function ObjectField(_ref15) {\n var name = _ref15.name,\n value = _ref15.value;\n return name + ': ' + value;\n },\n // Directive\n Directive: function Directive(_ref16) {\n var name = _ref16.name,\n args = _ref16.arguments;\n return '@' + name + wrap('(', join(args, ', '), ')');\n },\n // Type\n NamedType: function NamedType(_ref17) {\n var name = _ref17.name;\n return name;\n },\n ListType: function ListType(_ref18) {\n var type = _ref18.type;\n return '[' + type + ']';\n },\n NonNullType: function NonNullType(_ref19) {\n var type = _ref19.type;\n return type + '!';\n },\n // Type System Definitions\n SchemaDefinition: addDescription(function (_ref20) {\n var directives = _ref20.directives,\n operationTypes = _ref20.operationTypes;\n return join(['schema', join(directives, ' '), block(operationTypes)], ' ');\n }),\n OperationTypeDefinition: function OperationTypeDefinition(_ref21) {\n var operation = _ref21.operation,\n type = _ref21.type;\n return operation + ': ' + type;\n },\n ScalarTypeDefinition: addDescription(function (_ref22) {\n var name = _ref22.name,\n directives = _ref22.directives;\n return join(['scalar', name, join(directives, ' ')], ' ');\n }),\n ObjectTypeDefinition: addDescription(function (_ref23) {\n var name = _ref23.name,\n interfaces = _ref23.interfaces,\n directives = _ref23.directives,\n fields = _ref23.fields;\n return join(['type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n }),\n FieldDefinition: addDescription(function (_ref24) {\n var name = _ref24.name,\n args = _ref24.arguments,\n type = _ref24.type,\n directives = _ref24.directives;\n return name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + ': ' + type + wrap(' ', join(directives, ' '));\n }),\n InputValueDefinition: addDescription(function (_ref25) {\n var name = _ref25.name,\n type = _ref25.type,\n defaultValue = _ref25.defaultValue,\n directives = _ref25.directives;\n return join([name + ': ' + type, wrap('= ', defaultValue), join(directives, ' ')], ' ');\n }),\n InterfaceTypeDefinition: addDescription(function (_ref26) {\n var name = _ref26.name,\n interfaces = _ref26.interfaces,\n directives = _ref26.directives,\n fields = _ref26.fields;\n return join(['interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n }),\n UnionTypeDefinition: addDescription(function (_ref27) {\n var name = _ref27.name,\n directives = _ref27.directives,\n types = _ref27.types;\n return join(['union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n }),\n EnumTypeDefinition: addDescription(function (_ref28) {\n var name = _ref28.name,\n directives = _ref28.directives,\n values = _ref28.values;\n return join(['enum', name, join(directives, ' '), block(values)], ' ');\n }),\n EnumValueDefinition: addDescription(function (_ref29) {\n var name = _ref29.name,\n directives = _ref29.directives;\n return join([name, join(directives, ' ')], ' ');\n }),\n InputObjectTypeDefinition: addDescription(function (_ref30) {\n var name = _ref30.name,\n directives = _ref30.directives,\n fields = _ref30.fields;\n return join(['input', name, join(directives, ' '), block(fields)], ' ');\n }),\n DirectiveDefinition: addDescription(function (_ref31) {\n var name = _ref31.name,\n args = _ref31.arguments,\n repeatable = _ref31.repeatable,\n locations = _ref31.locations;\n return 'directive @' + name + (hasMultilineItems(args) ? wrap('(\\n', indent(join(args, '\\n')), '\\n)') : wrap('(', join(args, ', '), ')')) + (repeatable ? ' repeatable' : '') + ' on ' + join(locations, ' | ');\n }),\n SchemaExtension: function SchemaExtension(_ref32) {\n var directives = _ref32.directives,\n operationTypes = _ref32.operationTypes;\n return join(['extend schema', join(directives, ' '), block(operationTypes)], ' ');\n },\n ScalarTypeExtension: function ScalarTypeExtension(_ref33) {\n var name = _ref33.name,\n directives = _ref33.directives;\n return join(['extend scalar', name, join(directives, ' ')], ' ');\n },\n ObjectTypeExtension: function ObjectTypeExtension(_ref34) {\n var name = _ref34.name,\n interfaces = _ref34.interfaces,\n directives = _ref34.directives,\n fields = _ref34.fields;\n return join(['extend type', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n },\n InterfaceTypeExtension: function InterfaceTypeExtension(_ref35) {\n var name = _ref35.name,\n interfaces = _ref35.interfaces,\n directives = _ref35.directives,\n fields = _ref35.fields;\n return join(['extend interface', name, wrap('implements ', join(interfaces, ' & ')), join(directives, ' '), block(fields)], ' ');\n },\n UnionTypeExtension: function UnionTypeExtension(_ref36) {\n var name = _ref36.name,\n directives = _ref36.directives,\n types = _ref36.types;\n return join(['extend union', name, join(directives, ' '), types && types.length !== 0 ? '= ' + join(types, ' | ') : ''], ' ');\n },\n EnumTypeExtension: function EnumTypeExtension(_ref37) {\n var name = _ref37.name,\n directives = _ref37.directives,\n values = _ref37.values;\n return join(['extend enum', name, join(directives, ' '), block(values)], ' ');\n },\n InputObjectTypeExtension: function InputObjectTypeExtension(_ref38) {\n var name = _ref38.name,\n directives = _ref38.directives,\n fields = _ref38.fields;\n return join(['extend input', name, join(directives, ' '), block(fields)], ' ');\n }\n};\n\nfunction addDescription(cb) {\n return function (node) {\n return join([node.description, cb(node)], '\\n');\n };\n}\n/**\n * Given maybeArray, print an empty string if it is null or empty, otherwise\n * print all items together separated by separator if provided\n */\n\n\nfunction join(maybeArray) {\n var _maybeArray$filter$jo;\n\n var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter(function (x) {\n return x;\n }).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : '';\n}\n/**\n * Given array, print each item on its own line, wrapped in an\n * indented \"{ }\" block.\n */\n\n\nfunction block(array) {\n return array && array.length !== 0 ? '{\\n' + indent(join(array, '\\n')) + '\\n}' : '';\n}\n/**\n * If maybeString is not null or empty, then wrap with start and end, otherwise\n * print an empty string.\n */\n\n\nfunction wrap(start, maybeString) {\n var end = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n return maybeString ? start + maybeString + end : '';\n}\n\nfunction indent(maybeString) {\n return maybeString && ' ' + maybeString.replace(/\\n/g, '\\n ');\n}\n\nfunction isMultiline(string) {\n return string.indexOf('\\n') !== -1;\n}\n\nfunction hasMultilineItems(maybeArray) {\n return maybeArray && maybeArray.some(isMultiline);\n}\n","function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { SYMBOL_TO_STRING_TAG } from \"../polyfills/symbols.mjs\";\nimport devAssert from \"../jsutils/devAssert.mjs\";\n\n/**\n * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are\n * optional, but they are useful for clients who store GraphQL documents in source files.\n * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might\n * be useful for `name` to be `\"Foo.graphql\"` and location to be `{ line: 40, column: 1 }`.\n * The `line` and `column` properties in `locationOffset` are 1-indexed.\n */\nexport var Source = /*#__PURE__*/function () {\n function Source(body) {\n var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GraphQL request';\n var locationOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {\n line: 1,\n column: 1\n };\n this.body = body;\n this.name = name;\n this.locationOffset = locationOffset;\n this.locationOffset.line > 0 || devAssert(0, 'line in locationOffset is 1-indexed and must be positive.');\n this.locationOffset.column > 0 || devAssert(0, 'column in locationOffset is 1-indexed and must be positive.');\n } // $FlowFixMe Flow doesn't support computed properties yet\n\n\n _createClass(Source, [{\n key: SYMBOL_TO_STRING_TAG,\n get: function get() {\n return 'Source';\n }\n }]);\n\n return Source;\n}();\n","/**\n * The set of allowed kind values for AST nodes.\n */\nexport var Kind = Object.freeze({\n // Name\n NAME: 'Name',\n // Document\n DOCUMENT: 'Document',\n OPERATION_DEFINITION: 'OperationDefinition',\n VARIABLE_DEFINITION: 'VariableDefinition',\n SELECTION_SET: 'SelectionSet',\n FIELD: 'Field',\n ARGUMENT: 'Argument',\n // Fragments\n FRAGMENT_SPREAD: 'FragmentSpread',\n INLINE_FRAGMENT: 'InlineFragment',\n FRAGMENT_DEFINITION: 'FragmentDefinition',\n // Values\n VARIABLE: 'Variable',\n INT: 'IntValue',\n FLOAT: 'FloatValue',\n STRING: 'StringValue',\n BOOLEAN: 'BooleanValue',\n NULL: 'NullValue',\n ENUM: 'EnumValue',\n LIST: 'ListValue',\n OBJECT: 'ObjectValue',\n OBJECT_FIELD: 'ObjectField',\n // Directives\n DIRECTIVE: 'Directive',\n // Types\n NAMED_TYPE: 'NamedType',\n LIST_TYPE: 'ListType',\n NON_NULL_TYPE: 'NonNullType',\n // Type System Definitions\n SCHEMA_DEFINITION: 'SchemaDefinition',\n OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition',\n // Type Definitions\n SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition',\n OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition',\n FIELD_DEFINITION: 'FieldDefinition',\n INPUT_VALUE_DEFINITION: 'InputValueDefinition',\n INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition',\n UNION_TYPE_DEFINITION: 'UnionTypeDefinition',\n ENUM_TYPE_DEFINITION: 'EnumTypeDefinition',\n ENUM_VALUE_DEFINITION: 'EnumValueDefinition',\n INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition',\n // Directive Definitions\n DIRECTIVE_DEFINITION: 'DirectiveDefinition',\n // Type System Extensions\n SCHEMA_EXTENSION: 'SchemaExtension',\n // Type Extensions\n SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension',\n OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension',\n INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension',\n UNION_TYPE_EXTENSION: 'UnionTypeExtension',\n ENUM_TYPE_EXTENSION: 'EnumTypeExtension',\n INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension'\n});\n/**\n * The enum type representing the possible kind values of AST nodes.\n */\n"],"sourceRoot":""}