'use strict';
import { getResourceViewUrl } from './meta-navigations.js';
import { goBack, silentChangeUrl } from '../../../fd-toolbox/routing/routers.js';
import { viewNames } from '../edit-resource/edit-resource-names.js';
import { isUuidSet } from '../../../fd-toolbox/functions/value-checking-functions.js';

var __defProp=Object['defineProperty'],__name=(_0x52408e,_0x4d1dc8)=>__defProp(_0x52408e,'name',{'value':_0x4d1dc8,'configurable':!![]});function syncSheetState(_0x552685,_0x1af18f,_0x6f49eb){_0x1af18f(_0x552685),_0x6f49eb?.(_0x552685);}__name(syncSheetState,'syncSheetState');function runSheetOpenChangeAction(_0x5e7c64,_0x24e7ad,_0x1dce9d,_0x7015bb,_0x1dce7d){if(!_0x5e7c64)goBack();else _0x7015bb?_0x7015bb():silentChangeUrl(getSheetOpenUrl(_0x24e7ad,_0x1dce9d,_0x1dce7d));}__name(runSheetOpenChangeAction,'runSheetOpenChangeAction');function getEditResourceUrlWithoutPropId(_0x3ef8e5,_0x114801){if(_0x114801)return getResourceViewUrl(_0x3ef8e5,void(-0x757*-0x1+-0x1*-0x12a0+-0x19f7),viewNames['editResource'],[],_0x114801);return getResourceViewUrl(_0x3ef8e5,void(0x2f8+0x2095+-0x238d),viewNames['editResource']);}__name(getEditResourceUrlWithoutPropId,'getEditResourceUrlWithoutPropId');function getSheetOpenUrl(_0x86947e,_0x16331d,_0x465d38){if(isUuidSet(_0x16331d))return getResourceViewUrl(_0x86947e,_0x16331d,viewNames['editResource']);return getEditResourceUrlWithoutPropId(_0x86947e,_0x465d38);}__name(getSheetOpenUrl,'getSheetOpenUrl');

export { runSheetOpenChangeAction, syncSheetState };
