/* OK ITHAKI V249413 - PROFESSIONAL ISOLATION NO PREVIEW */
(function(){'use strict';if(window.__ITHAKI_V249413_PRO_ISOLATION__)return;window.__ITHAKI_V249413_PRO_ISOLATION__=1;
const $=id=>document.getElementById(id);let timer=0;const disabled=()=>false;
function currentDevice(){try{const s=window.__ITHAKI_CORE_STATE__||window.state||{};const d=String(s.device||localStorage.getItem('ith_device')||localStorage.getItem('device_id')||'').trim();return d?[d]:[]}catch(e){return[]}}
function normalCreate(){try{window.ITH&&ITH.page&&ITH.page('create')}catch(e){}return false}
function clean(){
 ['ithPublicationWorkspace387','ithPreviewDestination387','ithPublicationTool388','ithPublicationTool387','ithPublicationPreview387','ithPublicationStudio387'].forEach(id=>$(id)?.remove());
 document.querySelector('[data-pro-tool383="v410"]')?.remove();
 const modal=$('ithAccountModal383');if(modal&&!modal.hidden){['ithPickAvatar383','ithAvatarFile383','ithProName383','ithProMode383','ithProSave383','ithModeNormal383'].forEach(id=>$(id)?.closest('label,div,button')?.remove())}
 const s=window.__ITHAKI_CORE_STATE__||window.state;if(s&&s.preview){delete s.preview.__workspace387;delete s.preview.__workspace397;delete s.preview.__workspace398;delete s.preview.__friend387;delete s.preview.__friend397;delete s.preview.__friend398;delete s.preview.__destination387;delete s.preview.__destination397;delete s.preview.__destination398}
 window.ITH=window.ITH||{};ITH.openPublicationWorkspaceV249387=disabled;ITH.openPublicationWorkspaceV249388=disabled;ITH.openQuickPublishPreviewV249398=disabled;ITH.openProfessionalPreviewV249397=disabled;ITH.openProfessionalStudioV249397=disabled;ITH.accountDeviceCandidatesV249386=currentDevice;
 document.documentElement.setAttribute('data-ithaki-v249413','professional-isolation-no-preview-v249414');document.documentElement.setAttribute('data-ithaki-professional-preview','removed');document.documentElement.setAttribute('data-ithaki-professional-contacts','isolated-normal-device-only');
}
function schedule(){clearTimeout(timer);timer=setTimeout(clean,100)}
clean();if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',clean,{once:true});new MutationObserver(list=>{if(list.some(m=>m.addedNodes&&m.addedNodes.length))schedule()}).observe(document.getElementById('ithAccountModal383')||document.body,{childList:true,subtree:true});window.addEventListener('ithaki:page',schedule);
})();
