{"version":3,"file":"js/custom/spv-f4c30d23806196b5197d.js","mappings":"yIA8CA,MAnCA,UAAkC,WAChCA,EAAU,mBACVC,EAAkB,MAClBC,EAAK,cACLC,IAEA,MAAM,UAAEC,EAAS,KAAEC,IAASC,EAAAA,EAAAA,UAAS,SAAS,KAC5CC,EAAAA,EAAAA,IAAS,sCASX,OANAC,EAAAA,EAAAA,YAAU,KACJH,GACFJ,EAAmBI,EAAKI,eAC1B,GACC,EAAEL,EAAWC,IAEXA,EAKHK,EAAAA,cAAA,OAAKC,UAAU,4BACbD,EAAAA,cAAA,aAAO,SACPA,EAAAA,cAAA,SACEE,KAAM,OACNC,GAAI,GAAGb,UACPc,MAAOZ,EACPa,SAAWC,GAAMb,EAAca,EAAEC,OAAOH,SAE1CJ,EAAAA,cAAA,aAAO,6BACPA,EAAAA,cAAA,SAAOE,KAAM,OAAQM,UAAQ,EAACC,aAAcd,EAAKI,gBAAkB,MAb9DC,EAAAA,cAAA,SAAG,uCAgBd,ECxCAU,EAAAA,EAAmBC,IACjB,CAAC,gBAAiB,mBAClBC,E","sources":["webpack:///./custom/spv/app/javascript/components/CustomSPVExternalIdInput.tsx","webpack:///./custom/spv/app/javascript/packs/spv.js"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { useQuery } from \"react-query\";\nimport { fetchApi } from \"helpers/reactQueryApi\";\n\ntype Props = {\n externalId?: string;\n onChangeExternalId: (value: string) => void;\n title?: string;\n onChangeTitle: (value: string | undefined) => void;\n};\n\nfunction CustomSpvExternalIdInput({\n externalId,\n onChangeExternalId,\n title,\n onChangeTitle,\n}: Props) {\n const { isLoading, data } = useQuery(\"todos\", () =>\n fetchApi(`/custom/spv/rundschreiben_nummer`)\n );\n\n useEffect(() => {\n if (data) {\n onChangeExternalId(data.next_rs_number);\n }\n }, [!isLoading, data]);\n\n if (!data) {\n return

Lade aktuelle Rundschreibennummer...

;\n }\n\n return (\n
\n \n onChangeTitle(e.target.value)}\n />\n \n \n
\n );\n}\n\nexport default CustomSpvExternalIdInput;\n","import CustomConfigurator from \"CustomConfigurator\";\n\nimport CustomSPVExternalIdInput from \"../components/CustomSPVExternalIdInput\";\n\nCustomConfigurator.set(\n [\"rundschreiben\", \"ExternalIdInput\"],\n CustomSPVExternalIdInput\n);\n\n"],"names":["externalId","onChangeExternalId","title","onChangeTitle","isLoading","data","useQuery","fetchApi","useEffect","next_rs_number","React","className","type","id","value","onChange","e","target","disabled","defaultValue","CustomConfigurator","set","CustomSPVExternalIdInput"],"sourceRoot":""}