'use strict';
'use client';
import { getEditResourceForUpdate, submitEditResource } from './services/edit-resource-components.js';
import { createFormLikeObject, compareFormValue } from './services/edit-resources.js';

var __defProp=Object['defineProperty'],__name=(_0x16a45d,_0x2decf3)=>__defProp(_0x16a45d,'name',{'value':_0x2decf3,'configurable':!![]});async function applyValueChanges(_0x31c5e9,_0x472447,_0x5eeb63,_0x5f09ac,_0x5eabac,_0x9b6bda,_0x3388e7,_0x1abc79,_0x11c86c,_0x1caf9d){const _0x95aa4e=_0x5f09ac['getValues']();_0x95aa4e[_0x472447]=_0x31c5e9;const _0x27dccb=createFormLikeObject(_0x5eabac,_0x1abc79);Object['freeze'](_0x27dccb);const _0x32206={..._0x95aa4e};let _0x130e5d=![];for(const _0xeea07c in _0x32206){if(!compareFormValue(_0x95aa4e,_0x27dccb,_0xeea07c,_0x3388e7)){_0x130e5d=!![];break;}}if(_0x130e5d&&_0x5eeb63(_0x32206)){const _0x88d3c3=await getEditResourceForUpdate(_0x3388e7,_0x32206,_0x5eabac);_0x88d3c3&&(_0x11c86c?.(),await submitEditResource(_0x5f09ac,_0x27dccb,_0x9b6bda,_0x3388e7,![],void(-0x1cc0+0xb25+0x119b),_0x32206,_0x1caf9d));}}__name(applyValueChanges,'applyValueChanges');

export { applyValueChanges };
