@airporting/integrations-app 0.4.30 → 0.4.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +74 -2
  2. package/dist/mf/{18.js → 1018.js} +3 -3
  3. package/dist/mf/{235.js → 1330.js} +2 -2
  4. package/dist/mf/1600.js +1 -0
  5. package/dist/mf/1857.js +1 -0
  6. package/dist/mf/{70.js → 2070.js} +3 -3
  7. package/dist/mf/3.js +1 -0
  8. package/dist/mf/{134.js → 3134.js} +2 -2
  9. package/dist/mf/{330.js → 3235.js} +2 -2
  10. package/dist/mf/{473.js → 3711.js} +2 -2
  11. package/dist/mf/4447.js +1 -0
  12. package/dist/mf/4756.js +18 -0
  13. package/dist/mf/4810.js +1 -0
  14. package/dist/mf/5475.js +1 -0
  15. package/dist/mf/{616.js → 5616.js} +2 -2
  16. package/dist/mf/5625.js +1 -0
  17. package/dist/mf/5741.js +1 -0
  18. package/dist/mf/6082.js +1 -0
  19. package/dist/mf/6092.js +10 -0
  20. package/dist/mf/6124.js +1 -0
  21. package/dist/mf/6702.js +1 -0
  22. package/dist/mf/7285.js +1 -0
  23. package/dist/mf/7286.js +10 -0
  24. package/dist/mf/7286.js.LICENSE.txt +9 -0
  25. package/dist/mf/7476.js +1 -0
  26. package/dist/mf/7493.js +6 -0
  27. package/dist/mf/7493.js.LICENSE.txt +13 -0
  28. package/dist/mf/8170.js +18 -0
  29. package/dist/mf/8473.js +10 -0
  30. package/dist/mf/{637.js → 8637.js} +3 -3
  31. package/dist/mf/8949.js +10 -0
  32. package/dist/mf/8978.js +33 -0
  33. package/dist/mf/{37.js → 9037.js} +3 -3
  34. package/dist/mf/9110.js +1 -0
  35. package/dist/mf/{755.js → 9430.js} +2 -2
  36. package/dist/mf/9666.js +10 -0
  37. package/dist/mf/9666.js.LICENSE.txt +9 -0
  38. package/dist/mf/9758.js +1 -0
  39. package/dist/mf/@mf-types/compiled-types/api/connectors/connectorAddMutation.d.ts +1 -0
  40. package/dist/mf/@mf-types/compiled-types/api/connectors/connectorCatalogQuery.d.ts +1 -0
  41. package/dist/mf/@mf-types/compiled-types/api/connectors/connectorDeleteMutation.d.ts +1 -0
  42. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroDetailQuery.d.ts +2 -0
  43. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobConfigQuery.d.ts +1 -0
  44. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobRunMutation.d.ts +4 -0
  45. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroJobSaveMutation.d.ts +5 -0
  46. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroListQuery.d.ts +2 -0
  47. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroRunMutation.d.ts +1 -0
  48. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroScheduleMutations.d.ts +21 -0
  49. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroSpreadsheetsQuery.d.ts +4 -0
  50. package/dist/mf/@mf-types/compiled-types/api/synchro/synchroToggleMutation.d.ts +4 -0
  51. package/dist/mf/@mf-types/compiled-types/api/synchro/types.d.ts +67 -0
  52. package/dist/mf/@mf-types/compiled-types/api/useApiSynchro.d.ts +6 -0
  53. package/dist/mf/@mf-types/compiled-types/components/InlineLoader.d.ts +4 -0
  54. package/dist/mf/@mf-types/compiled-types/components/connectors/connector-menu.component.d.ts +7 -0
  55. package/dist/mf/@mf-types/compiled-types/components/connectors/delete-active-connector-modal.d.ts +1 -0
  56. package/dist/mf/@mf-types/compiled-types/components/connectors/is-delete-confirm-input.d.ts +6 -0
  57. package/dist/mf/@mf-types/compiled-types/components/connectors/list.catalog.component.d.ts +1 -0
  58. package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputDateBoundary.d.ts +12 -0
  59. package/dist/mf/@mf-types/compiled-types/components/synchro/inputs/InputGsheetsSelector.d.ts +11 -0
  60. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.dynamic-form.d.ts +29 -0
  61. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.functions.d.ts +7 -0
  62. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.history.d.ts +6 -0
  63. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.job-config-modal.d.ts +9 -0
  64. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.list.d.ts +8 -0
  65. package/dist/mf/@mf-types/compiled-types/components/synchro/synchro.schedule.d.ts +8 -0
  66. package/dist/mf/@mf-types/compiled-types/gen/IntegrationsApi.d.ts +120 -4
  67. package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigConnectorSingle.d.ts +1 -1
  68. package/dist/mf/@mf-types/compiled-types/hooks/useAppConfigSynchro.d.ts +9 -0
  69. package/dist/mf/@mf-types/compiled-types/providersSynchro.d.ts +15 -0
  70. package/dist/mf/@mf-types/compiled-types/synchro.app.d.ts +1 -0
  71. package/dist/mf/@mf-types/compiled-types/synchro.d.ts +2 -0
  72. package/dist/mf/__federation_expose_connectors.js +2 -2
  73. package/dist/mf/__federation_expose_single_connector.js +2 -2
  74. package/dist/mf/__federation_expose_synchronisation.js +10 -0
  75. package/dist/mf/__federation_expose_synchronisation.js.LICENSE.txt +9 -0
  76. package/dist/mf/index.js +4 -5
  77. package/dist/mf/integrations_app.js +4 -5
  78. package/dist/mf/mf-manifest.json +155 -33
  79. package/dist/mf/mf-stats.json +212 -41
  80. package/package.json +13 -11
  81. package/dist/mf/124.js +0 -1
  82. package/dist/mf/170.js +0 -18
  83. package/dist/mf/285.js +0 -1
  84. package/dist/mf/447.js +0 -1
  85. package/dist/mf/475.js +0 -1
  86. package/dist/mf/476.js +0 -1
  87. package/dist/mf/49.js +0 -1
  88. package/dist/mf/625.js +0 -1
  89. package/dist/mf/666.js +0 -10
  90. package/dist/mf/702.js +0 -1
  91. package/dist/mf/711.js +0 -10
  92. package/dist/mf/741.js +0 -1
  93. package/dist/mf/756.js +0 -18
  94. package/dist/mf/857.js +0 -1
  95. package/dist/mf/949.js +0 -10
  96. package/dist/mf/978.js +0 -33
  97. package/dist/mf/@mf-types/connectors.d.ts +0 -2
  98. package/dist/mf/@mf-types/single-connector.d.ts +0 -2
  99. package/dist/mf/@mf-types.d.ts +0 -3
  100. package/dist/mf/@mf-types.zip +0 -0
  101. /package/dist/mf/{18.js.LICENSE.txt → 1018.js.LICENSE.txt} +0 -0
  102. /package/dist/mf/{235.js.LICENSE.txt → 1330.js.LICENSE.txt} +0 -0
  103. /package/dist/mf/{70.css → 2070.css} +0 -0
  104. /package/dist/mf/{70.js.LICENSE.txt → 2070.js.LICENSE.txt} +0 -0
  105. /package/dist/mf/{134.js.LICENSE.txt → 3134.js.LICENSE.txt} +0 -0
  106. /package/dist/mf/{330.js.LICENSE.txt → 3235.js.LICENSE.txt} +0 -0
  107. /package/dist/mf/{473.js.LICENSE.txt → 3711.js.LICENSE.txt} +0 -0
  108. /package/dist/mf/{756.js.LICENSE.txt → 4756.js.LICENSE.txt} +0 -0
  109. /package/dist/mf/{616.js.LICENSE.txt → 5616.js.LICENSE.txt} +0 -0
  110. /package/dist/mf/{666.js.LICENSE.txt → 6092.js.LICENSE.txt} +0 -0
  111. /package/dist/mf/{170.js.LICENSE.txt → 8170.js.LICENSE.txt} +0 -0
  112. /package/dist/mf/{711.js.LICENSE.txt → 8473.js.LICENSE.txt} +0 -0
  113. /package/dist/mf/{637.js.LICENSE.txt → 8637.js.LICENSE.txt} +0 -0
  114. /package/dist/mf/{949.js.LICENSE.txt → 8949.js.LICENSE.txt} +0 -0
  115. /package/dist/mf/{978.js.LICENSE.txt → 8978.js.LICENSE.txt} +0 -0
  116. /package/dist/mf/{37.js.LICENSE.txt → 9037.js.LICENSE.txt} +0 -0
package/dist/mf/857.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["857"],{2017:function(module){module.exports=function equal(a,b){if(a===b)return true;if(a&&b&&"object"==typeof a&&"object"==typeof b){if(a.constructor!==b.constructor)return false;var length,i,keys;if(Array.isArray(a)){length=a.length;if(length!=b.length)return false;for(i=length;0!==i--;)if(!equal(a[i],b[i]))return false;return true}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();keys=Object.keys(a);length=keys.length;if(length!==Object.keys(b).length)return false;for(i=length;0!==i--;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return false;for(i=length;0!==i--;){var key=keys[i];if(!equal(a[key],b[key]))return false}return true}return a!==a&&b!==b}},1112:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{hasLength:()=>hasLength,isNotEmptyHTML:()=>isNotEmptyHTML,createFormContext:()=>createFormContext,FORM_INDEX:()=>FORM_INDEX,formRootRule:()=>formRootRule,createFormActions:()=>createFormActions,superstructResolver:()=>superstructResolver,isEmail:()=>isEmail,useForm:()=>useForm,isJSONString:()=>isJSONString,Form:()=>Form,isInRange:()=>isInRange,useField:()=>useField,zodResolver:()=>zodResolver,matchesField:()=>matchesField,joiResolver:()=>joiResolver,matches:()=>matches,isNotEmpty:()=>isNotEmpty,yupResolver:()=>yupResolver});var index_js_=__webpack_require__(3620);"use client";function dispatchEvent(type,detail){window.dispatchEvent(new CustomEvent(type,{detail}))}function validateFormName(name){if(!/^[0-9a-zA-Z-]+$/.test(name))throw new Error(`[@mantine/use-form] Form name "${name}" is invalid, it should contain only letters, numbers and dashes`)}const useIsomorphicEffect="undefined"!=typeof window?index_js_.useLayoutEffect:index_js_.useEffect;function createFormActions(name){validateFormName(name);const setFieldValue=(path,value)=>dispatchEvent(`mantine-form:${name}:set-field-value`,{path,value});const setValues=values=>dispatchEvent(`mantine-form:${name}:set-values`,values);const setInitialValues=values=>dispatchEvent(`mantine-form:${name}:set-initial-values`,values);const setErrors=errors=>dispatchEvent(`mantine-form:${name}:set-errors`,errors);const setFieldError=(path,error)=>dispatchEvent(`mantine-form:${name}:set-field-error`,{path,error});const clearFieldError=path=>dispatchEvent(`mantine-form:${name}:clear-field-error`,path);const clearErrors=()=>dispatchEvent(`mantine-form:${name}:clear-errors`);const reset=()=>dispatchEvent(`mantine-form:${name}:reset`);const validate=()=>dispatchEvent(`mantine-form:${name}:validate`);const validateField=path=>dispatchEvent(`mantine-form:${name}:validate-field`,path);const reorderListItem=(path,payload)=>dispatchEvent(`mantine-form:${name}:reorder-list-item`,{path,payload});const removeListItem=(path,index)=>dispatchEvent(`mantine-form:${name}:remove-list-item`,{path,index});const insertListItem=(path,item,index)=>dispatchEvent(`mantine-form:${name}:insert-list-item`,{path,index,item});const setDirty=value=>dispatchEvent(`mantine-form:${name}:set-dirty`,value);const setTouched=value=>dispatchEvent(`mantine-form:${name}:set-touched`,value);const resetDirty=values=>dispatchEvent(`mantine-form:${name}:reset-dirty`,values);const resetTouched=()=>dispatchEvent(`mantine-form:${name}:reset-touched`);return{setFieldValue,setValues,setInitialValues,setErrors,setFieldError,clearFieldError,clearErrors,reset,validate,validateField,reorderListItem,removeListItem,insertListItem,setDirty,setTouched,resetDirty,resetTouched}}function useFormEvent(eventKey,handler){useIsomorphicEffect(()=>{if(eventKey){window.addEventListener(eventKey,handler);return()=>window.removeEventListener(eventKey,handler)}},[eventKey])}function useFormActions(name,form){if(name)validateFormName(name);useFormEvent(`mantine-form:${name}:set-field-value`,event=>form.setFieldValue(event.detail.path,event.detail.value));useFormEvent(`mantine-form:${name}:set-values`,event=>form.setValues(event.detail));useFormEvent(`mantine-form:${name}:set-initial-values`,event=>form.setInitialValues(event.detail));useFormEvent(`mantine-form:${name}:set-errors`,event=>form.setErrors(event.detail));useFormEvent(`mantine-form:${name}:set-field-error`,event=>form.setFieldError(event.detail.path,event.detail.error));useFormEvent(`mantine-form:${name}:clear-field-error`,event=>form.clearFieldError(event.detail));useFormEvent(`mantine-form:${name}:clear-errors`,form.clearErrors);useFormEvent(`mantine-form:${name}:reset`,form.reset);useFormEvent(`mantine-form:${name}:validate`,form.validate);useFormEvent(`mantine-form:${name}:validate-field`,event=>form.validateField(event.detail));useFormEvent(`mantine-form:${name}:reorder-list-item`,event=>form.reorderListItem(event.detail.path,event.detail.payload));useFormEvent(`mantine-form:${name}:remove-list-item`,event=>form.removeListItem(event.detail.path,event.detail.index));useFormEvent(`mantine-form:${name}:insert-list-item`,event=>form.insertListItem(event.detail.path,event.detail.item,event.detail.index));useFormEvent(`mantine-form:${name}:set-dirty`,event=>form.setDirty(event.detail));useFormEvent(`mantine-form:${name}:set-touched`,event=>form.setTouched(event.detail));useFormEvent(`mantine-form:${name}:reset-dirty`,event=>form.resetDirty(event.detail));useFormEvent(`mantine-form:${name}:reset-touched`,form.resetTouched)}"use client";function getInputOnChange(setValue){return val=>{if(val)if("function"==typeof val)setValue(val);else if("object"==typeof val&&"nativeEvent"in val){const{currentTarget}=val;if(currentTarget instanceof HTMLInputElement)"checkbox"===currentTarget.type?setValue(currentTarget.checked):setValue(currentTarget.value);else if(currentTarget instanceof HTMLTextAreaElement||currentTarget instanceof HTMLSelectElement)setValue(currentTarget.value)}else setValue(val);else setValue(val)}}"use client";function filterErrors(errors){if(null===errors||"object"!=typeof errors)return{};return Object.keys(errors).reduce((acc,key)=>{const errorValue=errors[key];if(null!=errorValue&&false!==errorValue)acc[key]=errorValue;return acc},{})}"use client";function useFormErrors(initialErrors){const[errorsState,setErrorsState]=(0,index_js_.useState)(filterErrors(initialErrors));const errorsRef=(0,index_js_.useRef)(errorsState);const setErrors=(0,index_js_.useCallback)(errors=>{setErrorsState(current=>{const newErrors=filterErrors("function"==typeof errors?errors(current):errors);errorsRef.current=newErrors;return newErrors})},[]);const clearErrors=(0,index_js_.useCallback)(()=>setErrors({}),[]);const clearFieldError=(0,index_js_.useCallback)(path=>{if(void 0===errorsRef.current[path])return;setErrors(current=>{const errors={...current};delete errors[path];return errors})},[errorsState]);const setFieldError=(0,index_js_.useCallback)((path,error)=>{if(null==error||false===error)clearFieldError(path);else if(errorsRef.current[path]!==error)setErrors(current=>({...current,[path]:error}))},[errorsState]);return{errorsState,setErrors,clearErrors,setFieldError,clearFieldError}}"use client";function clearListState(field,state){if(null===state||"object"!=typeof state)return{};const clone={...state};Object.keys(state).forEach(errorKey=>{if(errorKey.includes(`${String(field)}.`))delete clone[errorKey]});return clone}"use client";function getIndexFromKeyAfterPath(key,path){const split=key.substring(path.length+1).split(".")[0];return parseInt(split,10)}function changeErrorIndices(path,index,errors,change){if(void 0===index)return errors;const pathString=`${String(path)}`;let clearedErrors=errors;if(-1===change)clearedErrors=clearListState(`${pathString}.${index}`,clearedErrors);const cloned={...clearedErrors};const changedKeys=/* @__PURE__ */new Set;Object.entries(clearedErrors).filter(([key])=>{if(!key.startsWith(`${pathString}.`))return false;const currIndex=getIndexFromKeyAfterPath(key,pathString);if(Number.isNaN(currIndex))return false;return currIndex>=index}).forEach(([key,value])=>{const currIndex=getIndexFromKeyAfterPath(key,pathString);const newKey=key.replace(`${pathString}.${currIndex}`,`${pathString}.${currIndex+change}`);cloned[newKey]=value;changedKeys.add(newKey);if(!changedKeys.has(key))delete cloned[key]});return cloned}"use client";function reorderErrors(path,{from,to},errors){const oldKeyStart=`${path}.${from}`;const newKeyStart=`${path}.${to}`;const clone={...errors};const processedKeys=/* @__PURE__ */new Set;Object.keys(errors).forEach(key=>{if(processedKeys.has(key))return;let oldKey;let newKey;if(key.startsWith(oldKeyStart)){oldKey=key;newKey=key.replace(oldKeyStart,newKeyStart)}else if(key.startsWith(newKeyStart)){oldKey=key.replace(newKeyStart,oldKeyStart);newKey=key}if(oldKey&&newKey){const value1=clone[oldKey];const value2=clone[newKey];void 0===value2?delete clone[oldKey]:clone[oldKey]=value2;void 0===value1?delete clone[newKey]:clone[newKey]=value1;processedKeys.add(oldKey);processedKeys.add(newKey)}});return clone}"use client";function getSplittedPath(path){if("string"!=typeof path)return[];return path.split(".")}"use client";function getPath(path,values){const splittedPath=getSplittedPath(path);if(0===splittedPath.length||"object"!=typeof values||null===values)return;let value=values[splittedPath[0]];for(let i=1;i<splittedPath.length;i+=1){if(null==value)break;value=value[splittedPath[i]]}return value}function set(obj,key,val){if("object"==typeof val.value)val.value=klona(val.value);if(val.enumerable&&!val.get&&!val.set&&val.configurable&&val.writable&&"__proto__"!==key)obj[key]=val.value;else Object.defineProperty(obj,key,val)}function klona(x){if("object"!=typeof x)return x;var i=0,k,list,tmp,str=Object.prototype.toString.call(x);if("[object Object]"===str)tmp=Object.create(x.__proto__||null);else if("[object Array]"===str)tmp=Array(x.length);else if("[object Set]"===str){tmp=new Set;x.forEach(function(val){tmp.add(klona(val))})}else if("[object Map]"===str){tmp=new Map;x.forEach(function(val,key){tmp.set(klona(key),klona(val))})}else if("[object Date]"===str)tmp=new Date(+x);else if("[object RegExp]"===str)tmp=new RegExp(x.source,x.flags);else if("[object DataView]"===str)tmp=new x.constructor(klona(x.buffer));else if("[object ArrayBuffer]"===str)tmp=x.slice(0);else if("Array]"===str.slice(-6))tmp=new x.constructor(x);if(tmp){for(list=Object.getOwnPropertySymbols(x);i<list.length;i++)set(tmp,list[i],Object.getOwnPropertyDescriptor(x,list[i]));for(i=0,list=Object.getOwnPropertyNames(x);i<list.length;i++)if(!Object.hasOwnProperty.call(tmp,k=list[i])||tmp[k]!==x[k])set(tmp,k,Object.getOwnPropertyDescriptor(x,k))}return tmp||x}"use client";function setPath(path,value,values){const splittedPath=getSplittedPath(path);if(0===splittedPath.length)return values;const cloned=klona(values);if(1===splittedPath.length){cloned[splittedPath[0]]=value;return cloned}let val=cloned[splittedPath[0]];for(let i=1;i<splittedPath.length-1;i+=1){if(void 0===val)return cloned;val=val[splittedPath[i]]}val[splittedPath[splittedPath.length-1]]=value;return cloned}"use client";function reorderPath(path,{from,to},values){const currentValue=getPath(path,values);if(!Array.isArray(currentValue))return values;const cloned=[...currentValue];const item=currentValue[from];cloned.splice(from,1);cloned.splice(to,0,item);return setPath(path,cloned,values)}"use client";function insertPath(path,value,index,values){const currentValue=getPath(path,values);if(!Array.isArray(currentValue))return values;const cloned=[...currentValue];cloned.splice("number"==typeof index?index:cloned.length,0,value);return setPath(path,cloned,values)}"use client";function removePath(path,index,values){const currentValue=getPath(path,values);if(!Array.isArray(currentValue))return values;return setPath(path,currentValue.filter((_,itemIndex)=>itemIndex!==index),values)}"use client";function replacePath(path,item,index,values){const currentValue=getPath(path,values);if(!Array.isArray(currentValue))return values;if(currentValue.length<=index)return values;const cloned=[...currentValue];cloned[index]=item;return setPath(path,cloned,values)}"use client";function useFormList({$values,$errors,$status}){const reorderListItem=(0,index_js_.useCallback)((path,payload)=>{$status.clearFieldDirty(path);$errors.setErrors(errs=>reorderErrors(path,payload,errs));$values.setValues({values:reorderPath(path,payload,$values.refValues.current),updateState:true})},[]);const removeListItem=(0,index_js_.useCallback)((path,index)=>{$status.clearFieldDirty(path);$errors.setErrors(errs=>changeErrorIndices(path,index,errs,-1));$values.setValues({values:removePath(path,index,$values.refValues.current),updateState:true})},[]);const insertListItem=(0,index_js_.useCallback)((path,item,index)=>{$status.clearFieldDirty(path);$errors.setErrors(errs=>changeErrorIndices(path,index,errs,1));$values.setValues({values:insertPath(path,item,index,$values.refValues.current),updateState:true})},[]);const replaceListItem=(0,index_js_.useCallback)((path,index,item)=>{$status.clearFieldDirty(path);$values.setValues({values:replacePath(path,item,index,$values.refValues.current),updateState:true})},[]);return{reorderListItem,removeListItem,insertListItem,replaceListItem}}var fast_deep_equal=__webpack_require__(2017);"use client";function getStatus(status,path){const paths=Object.keys(status);if("string"==typeof path){const nestedPaths=paths.filter(statusPath=>statusPath.startsWith(`${path}.`));return status[path]||nestedPaths.some(statusPath=>status[statusPath])||false}return paths.some(statusPath=>status[statusPath])}"use client";function useFormStatus({initialDirty,initialTouched,mode,$values}){const[touchedState,setTouchedState]=(0,index_js_.useState)(initialTouched);const[dirtyState,setDirtyState]=(0,index_js_.useState)(initialDirty);const touchedRef=(0,index_js_.useRef)(initialTouched);const dirtyRef=(0,index_js_.useRef)(initialDirty);const setTouched=(0,index_js_.useCallback)(values=>{const resolvedValues="function"==typeof values?values(touchedRef.current):values;touchedRef.current=resolvedValues;if("controlled"===mode)setTouchedState(resolvedValues)},[]);const setDirty=(0,index_js_.useCallback)((values,forceUpdate=false)=>{const resolvedValues="function"==typeof values?values(dirtyRef.current):values;dirtyRef.current=resolvedValues;if("controlled"===mode||forceUpdate)setDirtyState(resolvedValues)},[]);const resetTouched=(0,index_js_.useCallback)(()=>setTouched({}),[]);const resetDirty=(0,index_js_.useCallback)(values=>{const newSnapshot=values?{...$values.refValues.current,...values}:$values.refValues.current;$values.setValuesSnapshot(newSnapshot);setDirty({})},[]);const setFieldTouched=(0,index_js_.useCallback)((path,touched)=>{setTouched(currentTouched=>{if(getStatus(currentTouched,path)===touched)return currentTouched;return{...currentTouched,[path]:touched}})},[]);const setFieldDirty=(0,index_js_.useCallback)((path,dirty,forceUpdate)=>{setDirty(currentDirty=>{if(getStatus(currentDirty,path)===dirty)return currentDirty;return{...currentDirty,[path]:dirty}},forceUpdate)},[]);const setCalculatedFieldDirty=(0,index_js_.useCallback)((path,value)=>{const currentDirty=getStatus(dirtyRef.current,path);const dirty=!fast_deep_equal(getPath(path,$values.getValuesSnapshot()),value);const clearedState=clearListState(path,dirtyRef.current);clearedState[path]=dirty;setDirty(clearedState,currentDirty!==dirty)},[]);const isTouched=(0,index_js_.useCallback)(path=>getStatus(touchedRef.current,path),[]);const clearFieldDirty=(0,index_js_.useCallback)(path=>setDirty(current=>{if("string"!=typeof path)return current;const result=clearListState(path,current);delete result[path];if(fast_deep_equal(result,current))return current;return result}),[]);const isDirty=(0,index_js_.useCallback)(path=>{if(path){const overriddenValue=getPath(path,dirtyRef.current);if("boolean"==typeof overriddenValue)return overriddenValue;const sliceOfValues=getPath(path,$values.refValues.current);const sliceOfInitialValues=getPath(path,$values.valuesSnapshot.current);return!fast_deep_equal(sliceOfValues,sliceOfInitialValues)}const isOverridden=Object.keys(dirtyRef.current).length>0;if(isOverridden)return getStatus(dirtyRef.current);return!fast_deep_equal($values.refValues.current,$values.valuesSnapshot.current)},[]);const getDirty=(0,index_js_.useCallback)(()=>dirtyRef.current,[]);const getTouched=(0,index_js_.useCallback)(()=>touchedRef.current,[]);return{touchedState,dirtyState,touchedRef,dirtyRef,setTouched,setDirty,resetDirty,resetTouched,isTouched,setFieldTouched,setFieldDirty,setTouchedState,setDirtyState,clearFieldDirty,isDirty,getDirty,getTouched,setCalculatedFieldDirty}}"use client";function useFormValues({initialValues,onValuesChange,mode}){const initialized=(0,index_js_.useRef)(false);const[stateValues,setStateValues]=(0,index_js_.useState)(initialValues||{});const refValues=(0,index_js_.useRef)(stateValues);const valuesSnapshot=(0,index_js_.useRef)(stateValues);const setValues=(0,index_js_.useCallback)(({values,subscribers,updateState=true,mergeWithPreviousValues=true})=>{const previousValues=refValues.current;const resolvedValues=values instanceof Function?values(refValues.current):values;const updatedValues=mergeWithPreviousValues?{...previousValues,...resolvedValues}:resolvedValues;refValues.current=updatedValues;if(updateState){setStateValues(updatedValues);if("uncontrolled"===mode)refValues.current=updatedValues}onValuesChange?.(updatedValues,previousValues);subscribers?.filter(Boolean).forEach(subscriber=>subscriber({updatedValues,previousValues}))},[onValuesChange]);const setFieldValue=(0,index_js_.useCallback)(payload=>{const currentValue=getPath(payload.path,refValues.current);const updatedValue=payload.value instanceof Function?payload.value(currentValue):payload.value;if(currentValue!==updatedValue){const previousValues=refValues.current;const updatedValues=setPath(payload.path,updatedValue,refValues.current);setValues({values:updatedValues,updateState:payload.updateState});payload.subscribers?.filter(Boolean).forEach(subscriber=>subscriber({path:payload.path,updatedValues,previousValues}))}},[setValues]);const setValuesSnapshot=(0,index_js_.useCallback)(payload=>{valuesSnapshot.current=payload},[]);const initialize=(0,index_js_.useCallback)((values,onInitialize)=>{if(!initialized.current){initialized.current=true;setValues({values,updateState:"controlled"===mode});setValuesSnapshot(values);onInitialize()}},[setValues]);const resetValues=(0,index_js_.useCallback)(()=>{setValues({values:valuesSnapshot.current,updateState:true,mergeWithPreviousValues:false})},[setValues]);const getValues=(0,index_js_.useCallback)(()=>refValues.current,[]);const getValuesSnapshot=(0,index_js_.useCallback)(()=>valuesSnapshot.current,[]);const resetField=(0,index_js_.useCallback)((path,subscribers)=>{const snapshotValue=getPath(path,valuesSnapshot.current);if(void 0===snapshotValue)return;setFieldValue({path,value:snapshotValue,updateState:"controlled"===mode,subscribers})},[setFieldValue,mode]);return{initialized,stateValues,refValues,valuesSnapshot,setValues,setFieldValue,resetValues,setValuesSnapshot,initialize,getValues,getValuesSnapshot,resetField}}"use client";function useFormWatch({$status,cascadeUpdates}){const subscribers=(0,index_js_.useRef)({});const watch=(0,index_js_.useCallback)((path,callback)=>{(0,index_js_.useEffect)(()=>{subscribers.current[path]=subscribers.current[path]||[];subscribers.current[path].push(callback);return()=>{subscribers.current[path]=subscribers.current[path].filter(cb=>cb!==callback)}},[callback])},[]);const getFieldSubscribers=(0,index_js_.useCallback)(path=>{const result=subscribers.current[path]?.map(callback=>input=>callback({previousValue:getPath(path,input.previousValues),value:getPath(path,input.updatedValues),touched:$status.isTouched(path),dirty:$status.isDirty(path)}))??[];if(cascadeUpdates){for(const subscriptionKey in subscribers.current)if(subscriptionKey.startsWith(`${path}.`)||path.startsWith(`${subscriptionKey}.`))result.push(...subscribers.current[subscriptionKey].map(cb=>input=>cb({previousValue:getPath(subscriptionKey,input.previousValues),value:getPath(subscriptionKey,input.updatedValues),touched:$status.isTouched(subscriptionKey),dirty:$status.isDirty(subscriptionKey)})))}return result},[]);return{subscribers,watch,getFieldSubscribers}}"use client";function getDataPath(formName,fieldPath){return formName?`${formName}-${fieldPath.toString()}`:fieldPath.toString()}"use client";const formRootRule=Symbol("root-rule");function getValidationResults(errors){const filteredErrors=filterErrors(errors);return{hasErrors:Object.keys(filteredErrors).length>0,errors:filteredErrors}}function validateRulesRecord(rules,values,path="",errors={}){if("object"!=typeof rules||null===rules)return errors;return Object.keys(rules).reduce((acc,ruleKey)=>{const rule=rules[ruleKey];const rulePath=`${""===path?"":`${path}.`}${ruleKey}`;const value=getPath(rulePath,values);let arrayValidation=false;if("function"==typeof rule)acc[rulePath]=rule(value,values,rulePath);if("object"==typeof rule&&Array.isArray(value)){arrayValidation=true;value.forEach((_item,index)=>validateRulesRecord(rule,values,`${rulePath}.${index}`,acc));if(formRootRule in rule)acc[rulePath]=rule[formRootRule](value,values,rulePath)}if("object"==typeof rule&&"object"==typeof value&&null!==value){if(!arrayValidation)validateRulesRecord(rule,values,rulePath,acc);if(formRootRule in rule)acc[rulePath]=rule[formRootRule](value,values,rulePath)}return acc},errors)}function validateValues(validate,values){if("function"==typeof validate)return getValidationResults(validate(values));return getValidationResults(validateRulesRecord(validate,values))}"use client";function validateFieldValue(path,rules,values){if("string"!=typeof path)return{hasError:false,error:null};const results=validateValues(rules,values);const pathInError=Object.keys(results.errors).find(errorKey=>path.split(".").every((pathPart,i)=>pathPart===errorKey.split(".")[i]));return{hasError:!!pathInError,error:pathInError?results.errors[pathInError]:null}}"use client";const FORM_INDEX="__MANTINE_FORM_INDEX__";"use client";function shouldValidateOnChange(path,validateInputOnChange){if(!validateInputOnChange)return false;if("boolean"==typeof validateInputOnChange)return validateInputOnChange;if(Array.isArray(validateInputOnChange))return validateInputOnChange.includes(path.replace(/[.][0-9]+/g,`.${FORM_INDEX}`));return false}"use client";function useForm({name,mode="controlled",initialValues,initialErrors={},initialDirty={},initialTouched={},clearInputErrorOnChange=true,validateInputOnChange=false,validateInputOnBlur=false,onValuesChange,transformValues=values=>values,enhanceGetInputProps,validate:rules,onSubmitPreventDefault="always",touchTrigger="change",cascadeUpdates=false}={}){const $errors=useFormErrors(initialErrors);const $values=useFormValues({initialValues,onValuesChange,mode});const $status=useFormStatus({initialDirty,initialTouched,$values,mode});const $list=useFormList({$values,$errors,$status});const $watch=useFormWatch({$status,cascadeUpdates});const[formKey,setFormKey]=(0,index_js_.useState)(0);const[fieldKeys,setFieldKeys]=(0,index_js_.useState)({});const[submitting,setSubmitting]=(0,index_js_.useState)(false);const reset=(0,index_js_.useCallback)(()=>{$values.resetValues();$errors.clearErrors();$status.resetDirty();$status.resetTouched();"uncontrolled"===mode&&setFormKey(key2=>key2+1)},[]);const handleValuesChanges=(0,index_js_.useCallback)(previousValues=>{clearInputErrorOnChange&&$errors.clearErrors();"uncontrolled"===mode&&setFormKey(key2=>key2+1);Object.keys($watch.subscribers.current).forEach(path=>{const value=getPath(path,$values.refValues.current);const previousValue=getPath(path,previousValues);if(value!==previousValue)$watch.getFieldSubscribers(path).forEach(cb=>cb({previousValues,updatedValues:$values.refValues.current}))})},[clearInputErrorOnChange]);const initialize=(0,index_js_.useCallback)(values=>{const previousValues=$values.refValues.current;$values.initialize(values,()=>"uncontrolled"===mode&&setFormKey(key2=>key2+1));handleValuesChanges(previousValues)},[handleValuesChanges]);const setFieldValue=(0,index_js_.useCallback)((path,value,options)=>{const shouldValidate=shouldValidateOnChange(path,validateInputOnChange);const resolvedValue=value instanceof Function?value(getPath(path,$values.refValues.current)):value;$status.setCalculatedFieldDirty(path,resolvedValue);"change"===touchTrigger&&$status.setFieldTouched(path,true);!shouldValidate&&clearInputErrorOnChange&&$errors.clearFieldError(path);$values.setFieldValue({path,value,updateState:"controlled"===mode,subscribers:[...$watch.getFieldSubscribers(path),shouldValidate?payload=>{const validationResults=validateFieldValue(path,rules,payload.updatedValues);validationResults.hasError?$errors.setFieldError(path,validationResults.error):$errors.clearFieldError(path)}:null,options?.forceUpdate!==false&&"controlled"!==mode?()=>setFieldKeys(keys=>({...keys,[path]:(keys[path]||0)+1})):null]})},[onValuesChange,rules]);const setValues=(0,index_js_.useCallback)(values=>{const previousValues=$values.refValues.current;$values.setValues({values,updateState:"controlled"===mode});handleValuesChanges(previousValues)},[onValuesChange,handleValuesChanges]);const validate=(0,index_js_.useCallback)(()=>{const results=validateValues(rules,$values.refValues.current);$errors.setErrors(results.errors);return results},[rules]);const validateField=(0,index_js_.useCallback)(path=>{const results=validateFieldValue(path,rules,$values.refValues.current);results.hasError?$errors.setFieldError(path,results.error):$errors.clearFieldError(path);return results},[rules]);const getInputProps=(path,{type="input",withError=true,withFocus=true,...otherOptions}={})=>{const onChange=getInputOnChange(value=>setFieldValue(path,value,{forceUpdate:false}));const payload={onChange,"data-path":getDataPath(name,path)};if(withError)payload.error=$errors.errorsState[path];if("checkbox"===type)payload["controlled"===mode?"checked":"defaultChecked"]=getPath(path,$values.refValues.current);else payload["controlled"===mode?"value":"defaultValue"]=getPath(path,$values.refValues.current);if(withFocus){payload.onFocus=()=>$status.setFieldTouched(path,true);payload.onBlur=()=>{if(shouldValidateOnChange(path,validateInputOnBlur)){const validationResults=validateFieldValue(path,rules,$values.refValues.current);validationResults.hasError?$errors.setFieldError(path,validationResults.error):$errors.clearFieldError(path)}}}return Object.assign(payload,enhanceGetInputProps?.({inputProps:payload,field:path,options:{type,withError,withFocus,...otherOptions},form}))};const onSubmit=(handleSubmit,handleValidationFailure)=>event=>{if("always"===onSubmitPreventDefault)event?.preventDefault();const results=validate();if(results.hasErrors){if("validation-failed"===onSubmitPreventDefault)event?.preventDefault();handleValidationFailure?.(results.errors,$values.refValues.current,event)}else{const submitResult=handleSubmit?.(transformValues($values.refValues.current),event);if(submitResult instanceof Promise){setSubmitting(true);submitResult.finally(()=>setSubmitting(false))}}};const getTransformedValues=input=>transformValues(input||$values.refValues.current);const onReset=(0,index_js_.useCallback)(event=>{event.preventDefault();reset()},[]);const isValid=(0,index_js_.useCallback)(path=>path?!validateFieldValue(path,rules,$values.refValues.current).hasError:!validateValues(rules,$values.refValues.current).hasErrors,[rules]);const key=path=>`${formKey}-${String(path)}-${fieldKeys[String(path)]||0}`;const getInputNode=(0,index_js_.useCallback)(path=>document.querySelector(`[data-path="${getDataPath(name,path)}"]`),[]);const resetField=(0,index_js_.useCallback)(path=>{$values.resetField(path,["controlled"!==mode?()=>setFieldKeys(keys=>({...keys,[path]:(keys[path]||0)+1})):null])},[$values.resetField,mode,setFieldKeys]);const form={watch:$watch.watch,initialized:$values.initialized.current,values:"uncontrolled"===mode?$values.refValues.current:$values.stateValues,getValues:$values.getValues,getInitialValues:$values.getValuesSnapshot,setInitialValues:$values.setValuesSnapshot,resetField,initialize,setValues,setFieldValue,submitting,setSubmitting,errors:$errors.errorsState,setErrors:$errors.setErrors,setFieldError:$errors.setFieldError,clearFieldError:$errors.clearFieldError,clearErrors:$errors.clearErrors,resetDirty:$status.resetDirty,setTouched:$status.setTouched,setDirty:$status.setDirty,isTouched:$status.isTouched,resetTouched:$status.resetTouched,isDirty:$status.isDirty,getTouched:$status.getTouched,getDirty:$status.getDirty,reorderListItem:$list.reorderListItem,insertListItem:$list.insertListItem,removeListItem:$list.removeListItem,replaceListItem:$list.replaceListItem,reset,validate,validateField,getInputProps,onSubmit,onReset,isValid,getTransformedValues,key,getInputNode};useFormActions(name,form);return form}var jsx_runtime=__webpack_require__(4848);"use client";function createFormContext(){const FormContext=(0,index_js_.createContext)(null);function FormProvider({form,children}){return/* @__PURE__ */(0,jsx_runtime.jsx)(FormContext.Provider,{value:form,children})}function useFormContext(){const ctx=(0,index_js_.useContext)(FormContext);if(!ctx)throw new Error("useFormContext was called outside of FormProvider context");return ctx}return[FormProvider,useFormContext,useForm]}"use client";const Form=(0,index_js_.forwardRef)(({form,onSubmit,onReset,...others},ref)=>/* @__PURE__ */(0,jsx_runtime.jsx)("form",{...others,onSubmit:form.onSubmit("function"==typeof onSubmit?onSubmit:()=>{}),onReset:event=>{onReset?.(event);form.onReset(event)},ref}));Form.displayName="@mantine/use-form/Form";"use client";function isNotEmpty(error){const _error=error||true;return value=>{if("string"==typeof value)return value.trim().length>0?null:_error;if(Array.isArray(value))return value.length>0?null:_error;if(null==value)return _error;if(false===value)return _error;return null}}"use client";function matches(regexp,error){const _error=error||true;return value=>{if("string"!=typeof value)return _error;return regexp.test(value)?null:_error}}"use client";function isEmail(error){return matches(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,error)}"use client";function isLengthValid(payload,value){if("number"==typeof payload)return value.length===payload;const{max,min}=payload;let valid=true;if("number"==typeof max&&value.length>max)valid=false;if("number"==typeof min&&value.length<min)valid=false;return valid}function hasLength(payload,error){const _error=error||true;return value=>{if("string"==typeof value)return isLengthValid(payload,value.trim())?null:_error;if("object"==typeof value&&null!==value&&"length"in value)return isLengthValid(payload,value)?null:_error;return _error}}"use client";function isInRange({min,max},error){const _error=error||true;return value=>{if("number"!=typeof value)return _error;let valid=true;if("number"==typeof min&&value<min)valid=false;if("number"==typeof max&&value>max)valid=false;return valid?null:_error}}"use client";function matchesField(field,error){const _error=error||true;return(value,values)=>{if(!values||!(field in values))return _error;return value===values[field]?null:_error}}"use client";function removeHtmlTags(input){return input.replace(/<\/?[^>]+(>|$)/g,"")}function isNotEmptyHTML(error){const _error=error||true;return value=>{if("string"==typeof value)return removeHtmlTags(value).trim().length>0?null:_error;return _error}}"use client";function isJSONString(error){const _error=error||true;return value=>{if("string"==typeof value)try{JSON.parse(value);return null}catch(e){}return _error}}"use client";function useField({mode="controlled",clearErrorOnChange=true,initialValue,initialError=null,initialTouched=false,onValueChange,validateOnChange=false,validateOnBlur=false,validate,resolveValidationError,type="input"}){const[valueState,setValueState]=(0,index_js_.useState)(initialValue);const valueRef=(0,index_js_.useRef)(valueState);const[key,setKey]=(0,index_js_.useState)(0);const[error,setError]=(0,index_js_.useState)(initialError||null);const touchedRef=(0,index_js_.useRef)(initialTouched||false);const[,setTouchedState]=(0,index_js_.useState)(touchedRef.current);const[isValidating,setIsValidating]=(0,index_js_.useState)(false);const errorResolver=(0,index_js_.useMemo)(()=>resolveValidationError||(err=>err),[resolveValidationError]);const setTouched=(0,index_js_.useCallback)((val,{updateState="controlled"===mode}={})=>{touchedRef.current=val;updateState&&setTouchedState(val)},[]);const setValue=(0,index_js_.useCallback)((value,{updateKey="uncontrolled"===mode,updateState="controlled"===mode}={})=>{if(valueRef.current===value)return;valueRef.current=value;onValueChange?.(value);if(clearErrorOnChange&&null!==error)setError(null);if(updateState)setValueState(value);if(updateKey)setKey(currentKey=>currentKey+1);if(validateOnChange)_validate()},[error,clearErrorOnChange,onValueChange]);const reset=(0,index_js_.useCallback)(()=>{setValue(initialValue);setError(null);setTouched(false)},[initialValue]);const getValue=(0,index_js_.useCallback)(()=>valueRef.current,[]);const isTouched=(0,index_js_.useCallback)(()=>touchedRef.current,[]);const isDirty=(0,index_js_.useCallback)(()=>valueRef.current!==initialValue,[initialValue]);const _validate=(0,index_js_.useCallback)(async()=>{const validationResult=validate?.(valueRef.current);if(validationResult instanceof Promise){setIsValidating(true);try{const result=await validationResult;setIsValidating(false);setError(result)}catch(err){setIsValidating(false);const resolvedError=errorResolver(err);setError(resolvedError);return resolvedError}}else{setError(validationResult);return validationResult}},[]);const getInputProps=({withError=true,withFocus=true}={})=>{const onChange=getInputOnChange(val=>setValue(val,{updateKey:false}));const payload={onChange};if(withError)payload.error=error;if("checkbox"===type)payload["controlled"===mode?"checked":"defaultChecked"]=valueRef.current;else payload["controlled"===mode?"value":"defaultValue"]=valueRef.current;if(withFocus){payload.onFocus=()=>{setTouched(true)};payload.onBlur=()=>{if(shouldValidateOnChange("",!!validateOnBlur))_validate()}}return payload};const resetTouched=(0,index_js_.useCallback)(()=>setTouched(false),[]);return{key,getValue,setValue,reset,getInputProps,isValidating,validate:_validate,error,setError,isTouched,isDirty,resetTouched}}"use client";function zodResolver(schema){return values=>{const parsed=schema.safeParse(values);if(parsed.success)return{};const results={};parsed.error.errors.forEach(error=>{results[error.path.join(".")]=error.message});return results}}"use client";function superstructResolver(schema){function structValidation(values){const formErrors={};const[err]=schema.validate(values);if(!err)return formErrors;err.failures().forEach(fieldFailure=>{const fieldName=fieldFailure.path.join(" ");formErrors[fieldFailure.path.join(".")]=`${fieldName}: ${fieldFailure.message}`});return formErrors}return structValidation}"use client";function yupResolver(schema){const _schema=schema;return values=>{try{_schema.validateSync(values,{abortEarly:false});return{}}catch(_yupError){const yupError=_yupError;const results={};yupError.inner.forEach(error=>{results[error.path.replaceAll("[",".").replaceAll("]","")]=error.message});return results}}}"use client";function joiResolver(schema,options){const _schema=schema;return values=>{const parsed=_schema.validate(values,{abortEarly:false,...options});if(!parsed.error)return{};const results={};parsed.error.details.forEach(error=>{results[error.path.join(".")]=error.message});return results}}}}]);
package/dist/mf/949.js DELETED
@@ -1,10 +0,0 @@
1
- /*! For license information please see 949.js.LICENSE.txt */
2
- "use strict";(globalThis["chunk_integrations_app"]=globalThis["chunk_integrations_app"]||[]).push([["949"],{9698:function(__unused_webpack_module,exports){/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var REACT_ELEMENT_TYPE=Symbol.for("react.transitional.element"),REACT_FRAGMENT_TYPE=Symbol.for("react.fragment");function jsxProd(type,config,maybeKey){var key=null;void 0!==maybeKey&&(key=""+maybeKey);void 0!==config.key&&(key=""+config.key);if("key"in config){maybeKey={};for(var propName in config)"key"!==propName&&(maybeKey[propName]=config[propName])}else maybeKey=config;config=maybeKey.ref;return{$$typeof:REACT_ELEMENT_TYPE,type:type,key:key,ref:void 0!==config?config:null,props:maybeKey}}exports.Fragment=REACT_FRAGMENT_TYPE;exports.jsx=jsxProd;exports.jsxs=jsxProd},4848:function(module,__unused_webpack_exports,__webpack_require__){module.exports=__webpack_require__(9698)}}]);