123456 |
- // Licensed Materials - Property of IBM
- // IBM Cognos Products: rs
- // (C) Copyright IBM Corp. 2003, 2022.
- // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- define([],function(){var _g8j={};_g8j._de=function(){if(!_qkk._qik("EnableExternalClipboard")){return Q.resolve("");}var _9ch={type: "REPORT",timestamp:Date.now(),selectionIids:_8l8._yg8(),spec:_7hn._3em(_erh._vtc())};var _2v5=false;try{localStorage.setItem(_qkk._bg1, JSON.stringify(_9ch));_2v5=true;}catch(err){localStorage.removeItem(_qkk._bg1);}if(!_2v5){Application._28j(_frh._c6j("IDS_LBL_EXTERNAL_CLIPBOARD_PASTE_IN_SAME_TAB"), {'type':'warning'});}return Application._jfe().then(function(){return Application.GlassContext.getCoreSvc('.Clipboard').set(_9ch);}).fail(function(err){Application._28j(_frh._c6j("IDS_LBL_EXTERNAL_CLIPBOARD_WRITE_ERR"), {'type':'warning'});return Q.reject(err);});};_g8j._1c=function(){if(!_qkk._qik("EnableExternalClipboard")){return Q.resolve("");}var _w78;try{_w78=JSON.parse(localStorage.getItem(_qkk._bg1));}catch(err){localStorage.removeItem(_qkk._bg1);_w78=null;}return Application._jfe().then(function(){return Application.GlassContext.getCoreSvc('.Clipboard').get();}).then(function(_sti){if(_sti&&_w78){return(_sti.timestamp>=_w78.timestamp?Q.resolve(_sti):Q.resolve(_w78));}if(_sti){return Q.resolve(_sti);}else if(_w78){return Q.resolve(_w78);}else{return Q.resolve("");}}).fail(function(err){Application._28j(_frh._c6j("IDS_LBL_EXTERNAL_CLIPBOARD_READ_ERR"), {'type':'warning'});return Q.reject(err);});};return _g8j;});
|