'use strict';
'use client';
import { editResourceInternalFormKeys } from '../../edit-resource/edit-resources-constants.js';
import { wellKnownMetaProps } from '../../../../fd-toolbox-core/constants/meta-constants.js';
import { EditImage } from './EditImage.js';
import { getElementId } from '../../../../fd-toolbox/html/element-ids.js';

var __defProp=Object['defineProperty'],__name=(_0x33e4ab,_0x3cff31)=>__defProp(_0x33e4ab,'name',{'value':_0x3cff31,'configurable':!![]});function getEditImageId(_0x314804,_0x1526d2){return getElementId(EditImage['displayName'],_0x314804,_0x1526d2);}__name(getEditImageId,'getEditImageId');async function onEditImageUploadChange(_0x158163,_0x15fb13,_0x2aa885,_0x4ed86b){if(!_0x4ed86b)return;_0x158163['setValue'](editResourceInternalFormKeys['imageFile'],_0x4ed86b);const _0x28783f=URL['createObjectURL'](_0x4ed86b);_0x15fb13(_0x28783f),_0x2aa885?.(_0x158163['getValues'](editResourceInternalFormKeys['imageFile']),editResourceInternalFormKeys['imageFile']);}__name(onEditImageUploadChange,'onEditImageUploadChange');function onDeleteImage(_0xb9c228,_0x352fe5){_0xb9c228['setValue'](editResourceInternalFormKeys['imageFile'],void(-0xac5+0xd88+0x7*-0x65)),_0xb9c228['setValue'](wellKnownMetaProps['imageUrl'],void(-0x4b8*-0x8+-0x2656+0x96)),_0x352fe5(void(0x1*-0x81f+0xf22*0x1+-0x703));}__name(onDeleteImage,'onDeleteImage');

export { getEditImageId, onDeleteImage, onEditImageUploadChange };
