function e(e){return!e||typeof e!=`object`?``:String(e.encryptionkey??e.EncryptionKey??e.encrkey??e.EncrKey??``).trim()}function t(e){let t=e?.hasencryptionkey??e?.HasEncryptionKey;if(typeof t==`boolean`)return t;if(typeof t==`number`)return t!==0;if(typeof t==`string`){let e=t.trim().toLowerCase();return e===`1`||e===`true`||e===`yes`}return!1}function n(n){return t(n)||e(n).length>0}function r({director:e,directorTab:t,directorTarget:n,jobId:r,poolName:i,storagesTab:a,storagesScopeDirector:o}={}){let s={};return e&&(s.director=e),t&&t!==`status`&&(s.directorTab=t),n&&(s.directorTarget=n),r!=null&&r!==``&&(s.jobId=String(r)),i&&(s.poolName=i),a&&(s.storagesTab=a),o&&(s.storagesScopeDirector=o),s}function i(e){return typeof e?.directorTab!=`string`||!e.directorTab?null:{tab:e.directorTab,targetDirector:typeof e?.directorTarget==`string`?e.directorTarget:``}}function a(e){return typeof e?.poolName!=`string`||!e.poolName?null:{name:e.poolName}}function o(e){return typeof e?.jobId!=`string`||!e.jobId?null:{id:e.jobId}}function s(e){return typeof e?.storagesTab!=`string`||!e.storagesTab?null:{tab:e.storagesTab,scopeDirector:typeof e?.storagesScopeDirector==`string`?e.storagesScopeDirector:``}}export{s as a,a as i,i as n,n as o,o as r,r as t};