Scripts

Bloglog

Scripts

Type.registerNamespace(“aw”);_aw.$CN=function(n,t,i){_aw.$CN.initializeBase(this);this.$81=n;this.$1dy=t;this.$131=i};function $6HK(n,t){n.set$R4(t)}aw.$CN.prototype={$1dy:!1,$131:!1,$81:null,$mZ:null,$1O7:null,get$58O:function(){if(this.$1dy){if(!this.$mZ){a.$5.$1U(_aw.$CN.$D,”GetWacIFrameUrl”);this.$mZ=”about:blank”;var n=new _aw.$11f(this.$81);var t=this;n.add$2j(function(i){if(js.$8.$c(n.$3Du))$6HK(t,_u.Strings.l_WacIFrameUrlGenerationFailed_Text);else{_js.Trace.logInfo(_a.$0.$1e,”WAC iframe URL: {0}”,n.$3Du);t.$mZ=n.$3Du;$6(t,”IframeUrl”)}});OwaApplication.$1R.$x(n)}return this.$mZ}if(this.$131){this.$mZ||(this.$mZ=String.format(_g.$5r.get$678(),encodeURIComponent(this.$81)));return this.$mZ}return””},get_$R4:function(){return this.$1O7},set_$R4:function(n){if(this.$1O7!==n){this.$1O7=n;$6(this,”Error”)}return n}};aw.$fw=function(){};_aw.$fw.prototype={$I:function(n,t,i){return new _aw.$CN(n,t,i)}};function DocumentAttachmentViewModelsComponent(){}DocumentAttachmentViewModelsComponent.prototype={$1Qp:function(n,t,i){var r=this;n.$9h(_aw.$fw).$9NY(IDocumentAttachmentViewModelFactory).$9Na(function(){return new _aw.$fw})},$7M9:function(){return[]}};_aw.$11f=function(n){_aw.$11f.initializeBase(this);this.$81=n};_aw.$11f.prototype={$81:null,$3Du:null,$7ai:function(n){var t=new _g.$11g(this.$26);n.$3cp(this.$81,t,this.$$d$9P1,this.$$d_$9P2)},$8s9:function(n,t,i){this.$3Du=n;t();a.$5.$1C(null,”GetWacIFrameUrl”)}};_aw.$kq=function(n){_aw.$kq.initializeBase(this,[n]);this.set$7(“DocumentAttachmentView”)};aw.$kq.prototype={$3Z:null,$4M:function(){_js.$6.prototype.$4M.call(this);if(!$9(this.$e)){this.$3Z=this.$e.$11(“LegacyOfficeDocumentBody”);this.$3Z.get$J()[0].id=”LegacyOfficeDocumentBody”}}};aw._TI=function(){};_aw._TI.$$cctor=function(){new _A(“DocumentAttachmentView”,function(){var t=_aw._TI._hf.childNodes[0].cloneNode(!0);var n=new _b.$Hf(t.children[0]);n.$0(_E.$1([“IframeUrl”],[_aw._TI.$7pr],null,”Source”,null,_aw._TI.$CJ,1));n.set$3(“_aw_2”);return new _B(t,[n]).R({LegacyOfficeDocumentBody:n})},_aw.$CN,_aw.$kq,!1,!1,!1,0)};_aw._TI.$Bc=function(){var n=window.document.createElement(“DIV”);n.innerHTML=”

“;js.$F.get$B6().appendChild(n);return n};aw._TI.$7pr=function(n){return n.get$58O()};aw._TI.$CJ=function(n,t){n.set$ES(t)};_aw.$CN.registerClass(“_aw.$CN”,_a.$EW,IDocumentAttachmentViewModel);_aw.$fw.registerClass(“_aw.$fw”,null,IDocumentAttachmentViewModelFactory);DocumentAttachmentViewModelsComponent.registerClass(“DocumentAttachmentViewModelsComponent”,null,_a.$1Cm);_aw.$11f.registerClass(“_aw.$11f”,_h.$J4.$$(String));_aw.$kq.registerClass(“_aw.$kq”,_js.$6);_aw._TI.registerClass(“_aw._TI”);_aw.$CN.$D=_a.$0.$1e;_aw._TI._hf=_aw._TI.$Bc();_aw._TI.$$cctor()