You are on page 1of 6

!function(n){"use strict";n.vungle=n.vungle||{}}(window);!

function(e){"use
strict";var t,r=e.vungle=e.vungle||{};r.error||(t=r.error=r.error||
{},t.bridgeError={BRG000:"Missing command in mraidBridge.executeSDKCommand method
call!",BRG001:"Vungle SDK is not ready to process MRAID
command!"},t.bridgeExtError={BRX000:"Cannot retrieve #dynamic container in Ad
Unit!"},t.mraidError={MRD000:"Cannot add listener for unknown MRAID
event!",MRD001:"Missing argument(s)! Both event and/or listener are required for
method call!",MRD002:"Unable to find listener registered for
event!",MRD003:"Missing MRAID event! Cannot remove event listener!",MRD004:"Missing
object! An expand properties object is required for method call!",MRD005:"Missing
object! An orientation properties object is required for method
call!",MRD006:"Missing object! An resize properties object is required for method
call!",MRD007:"Missing URL! A URL is required for method call!",MRD008:"Ad unit is
hidden and cannot be closed!",MRD009:"Missing URL! A video/caption URL is required
for method call!",MRD010:"Ad Unit is not viewable! Please make sure isViewAble is
set to true!",MRD011:"Ad unit can only be expanded from the default or resized
state!",MRD012:"Ad unit can only be resized from the default or resized
state!",MRD013:"Missing URI! A valid URI is required for method
call!",MRD015:"Invalid data/type detected when updating MRAID
properties!",MRD016:"Missing app store id! An app store id is required for method
call!"},t.mraidClientError={MRC000:"MRAID SDK error detected!",MRC001:"Missing
MRAID object in window!",MRC002:"Missing video URL! mraidClient.playVideo cannot
retrieve video URL from arguments!"},t.adTemplateError={ADT000:"Missing page
template JavaScript!",ADT001:"Error encountered loading template
configuration!"},t.gestureTrackingError={GET000:"Cannot serialize user interaction
tracking event object!"})}(window),function(e){"use strict";var
t=e.vungle=e.vungle||{},r=t.mraidCore=t.mraidCore||{},n=t.debugLog=t.debugLog||
[];n&&n.push("vungle.mraidCore loaded."),r.consts={versions:
{V1:"1.0",V2:"2.0"},states:
{LOADING:"loading",DEFAULT:"default",RESIZED:"resized",EXPANDED:"expanded",HIDDEN:"
hidden"},events:
{INFO:"info",READY:"ready",ERROR:"error",STATE_CHANGE:"stateChange",ORIENTATION_CHA
NGE:"orientationChange",VIEWABLE_CHANGE:"viewableChange",SIZE_CHANGE:"sizeChange"},
placements:
{UNKNOWN:"unknown",INLINE:"inline",INTERSTITIAL:"interstitial"},orientations:
{PORTRAIT:"portrait",LANDSCAPE:"landscape",NONE:"none"},closePositions:
{CENTER:"center",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-
right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-
center",BOTTOM_RIGHT:"bottom-right"}},r.PropertiesValueObject=function(e){var
t=function(e){var t;return e&&"object"==typeof e?
(t={},Object.keys(e).forEach(function(r)
{t[r]=e[r]})):t=e,t};this.value=t(e),this.clone=function(){return
t(this.value)},this.update=function(e){if(e&&"object"==typeof e){var
t=this;Object.keys(e).forEach(function(r){t.value[r]=e[r]})}else
this.value=e}},r.EventListeners=function(e){var
t={};this.event=e,this.listenerCount=0,this.add=function(e){var r=String(e);return!
t[r]&&(t[r]=e,this.listenerCount++,!0)},this.remove=function(e){var
r=String(e);return!(!t.hasOwnProperty(r)||!t[r])&&(t[r]=null,delete
t[r],this.listenerCount--,!0)},this.removeAll=function(){var
e=this;Object.keys(t).forEach(function(r)
{e.remove(t[r])})},this.broadcast=function(e){var
r=this;Object.keys(t).forEach(function(n){t[n].apply(r.mraid,e)})}};var i=new
r.PropertiesValueObject(r.consts.versions.V1),o=new
r.PropertiesValueObject({width:0,height:0}),a=new
r.PropertiesValueObject({width:0,height:0}),s=new
r.PropertiesValueObject({x:0,y:0,width:0,height:0}),d=new
r.PropertiesValueObject({x:0,y:0,width:0,height:0}),c=new
r.PropertiesValueObject({width:0,height:0,useCustomClose:!1,isModal:!0}),u=new
r.PropertiesValueObject({width:0,height:0,offsetX:0,offsetY:0,customClosePosition:r
.consts.closePositions.TOP_RIGHT,allowOffscreen:!0}),l=new
r.PropertiesValueObject({allowOrientationChange:!
0,forceOrientation:r.consts.orientations.NONE}),p=new
r.PropertiesValueObject({sms:!1,tel:!1,calendar:!1,storePicture:!1,inlineVideo:!
1}),m=new r.PropertiesValueObject(r.consts.states.LOADING),g=new
r.PropertiesValueObject(r.consts.placements.UNKNOWN),f=new
r.PropertiesValueObject((!1)),E=new r.PropertiesValueObject((!1)),v=new
r.PropertiesValueObject((!1)),R=new r.PropertiesValueObject((!1)),y=new
r.PropertiesValueObject((!1)),h=new r.PropertiesValueObject((!1)),C=new
r.PropertiesValueObject((!1)),D=new r.PropertiesValueObject((!1)),B=new
r.PropertiesValueObject((!1)),x=new r.PropertiesValueObject((!1)),P={},O=new
r.PropertiesValueObject(""),S=new
r.PropertiesValueObject("");r.eventListeners=P,r.propertiesHandlers={os:
{update:function(e){O.update(e)},clone:function(){return O.clone()}},osVersion:
{update:function(e){S.update(e)},clone:function(){return S.clone()}},incentivized:
{update:function(e){E.update(e)},clone:function(){return
E.clone()}},consentRequired:{update:function(e){v.update(e)},clone:function()
{return v.clone()}},consentTitleText:{update:function(e)
{R.update(e)},clone:function(){return R.clone()}},consentBodyText:
{update:function(e){y.update(e)},clone:function(){return
y.clone()}},consentAcceptButtonText:{update:function(e)
{h.update(e)},clone:function(){return h.clone()}},consentDenyButtonText:
{update:function(e){C.update(e)},clone:function(){return C.clone()}},version:
{update:function(e){i.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting
MRAID version to: "+String(e))},clone:function(){return i.clone()}},maxSize:
{update:function(e)
{o.update(e),c.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting maxSize to:
"+String(e))},clone:function(){return o.clone()}},screenSize:{update:function(e)
{var t;a.update(e),t=a.clone(),r.broadcastEvent(r.consts.events.INFO,"Setting
screenSize to:
"+String(e)),r.broadcastEvent(r.consts.events.SIZE_CHANGE,t.width,t.height)},clone:
function(){return a.clone()}},defaultPosition:{update:function(e)
{s.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting defaultPosition to:
"+String(e))},clone:function(){return s.clone()}},currentPosition:
{update:function(e){d.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting
currentPosition to: "+String(e))},clone:function(){return
d.clone()}},expandProperties:{update:function(e)
{c.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting expandProperties to:
"+String(e))},clone:function(){return c.clone()}},resizeProperties:
{update:function(e){u.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting
resizeProperties to: "+String(e))},clone:function(){return
u.clone()}},orientationProperties:{update:function(e)
{l.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting orientationProperties
to: "+String(e))},clone:function(){return l.clone()}},supports:{update:function(e)
{p.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting supports to:
"+String(e))},clone:function(){return p.clone()}},state:{update:function(e)
{m.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting state to:
"+String(e)),r.broadcastEvent(r.consts.events.STATE_CHANGE,m.clone()),m.clone()===r
.consts.states.DEFAULT&&r.broadcastEvent(r.consts.events.READY)},clone:function()
{return m.clone()}},placementType:{update:function(e)
{g.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting placementType to:
"+String(e))},clone:function(){return g.clone()}},isViewable:{update:function(e)
{f.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting isViewable to:
"+String(e)),r.broadcastEvent(r.consts.events.VIEWABLE_CHANGE,f.clone())},clone:fun
ction(){return f.clone()}},customClose:{update:function(e)
{D.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting useCustomClose to:
"+String(e))},clone:function(){return D.clone()}},customPrivacy:{update:function(e)
{B.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting useCustomPrivacy to:
"+String(e))},clone:function(){return B.clone()}},enableBackImmediately:
{update:function(e){x.update(e),r.broadcastEvent(r.consts.events.INFO,"Setting
enableBackImmediately to: "+String(e))},clone:function(){return
x.clone()}}},r.propertiesValidator=function(e,r,n){var i=!0;return typeof e!=typeof
r&&"useCustomClose"!==n?(i=!
1,t.mraidBridgeExt&&t.mraidBridgeExt.notifyError(["MRD015",n,e].join(":"))):"object
"==typeof e&&Object.keys(e).forEach(function(e){e in r||(i=!
1,t.mraidBridgeExt&&t.mraidBridgeExt.notifyError(["MRD015",n,e].join(":")))}),i},r.
broadcastEvent=function(){var
e=Array.prototype.slice.call(arguments),t=e.shift(),r=P[t];r&&r.broadcast(e)},r.isV
alidMARIDEvent=function(e){for(var t in
r.consts.events)if(r.consts.events[t]===e)return!0;return!1}}(window),function(e)
{"use strict";var t=e.vungle=e.vungle||{},r=t.mraidBridge=t.mraidBridge||
{};r.notifyContainer=function(t){e.location=t}}(window),function(e){"use
strict";var t,r=e.vungle=e.vungle||{},n=r.mraidBridge=r.mraidBridge||
{},i=r.mraidBridgeExt=r.mraidBridgeExt||{},o=r.debugLog=r.debugLog||[],a=!1,s=!
1,d=[],c=!1,u=!1,l=!1,p=!
1,m=r.mraidCore.broadcastEvent,g=r.mraidCore.consts.states,f=r.mraidCore.consts.eve
nts;o&&o.push("vungle.mraidBridge loaded."),i.getReplacementTokens=function()
{return t},i.getIsVungleAd=function(){return c},i.getIsDirectDownload=function()
{return u},i.getIsDisplayIAP=function(){return l},i.getIsInstalled=function()
{return p},i.getEnableBackButtonImmediately=function(){return
r.mraidCore.propertiesHandlers.enableBackImmediately.clone()},n.notifyPropertiesCha
nge=function(e,t)
{o&&o.push("mraidBridge.notifyPropertiesChange:"+JSON.stringify(e)),Object.keys(e).
forEach(function(t){r.mraidCore.propertiesHandlers[t]?
r.mraidCore.propertiesHandlers[t].update(e[t]):n.notifyErrorEvent("notifyProperties
Change","MRD015: Unhandled Property received - "+t+" - "+e[t])}),"undefined"!
=typeof t&&t===!
0&&r.mraidBridge.notifyContainer("mraid://propertiesChangeCompleted")},n.notifyComm
andComplete=function(){o&&o.push("mraidBridge.notifyCommandComplete");var
e="";d.length?(e=d.shift(),r.mraidBridge.notifyContainer(e)):s=!
1},n.notifyReadyEvent=function(e){o&&o.push("mraidBridge.notifyReadyEvent");var
n=r.mraidCore.propertiesHandlers.state.clone();a=!0,"undefined"!=typeof e?(c=!
0,p=e.isInstalled,l=e.isDisplayIAP,u=e.isDirectDownload,t=e):r.mraidBridgeExt.notif
ySuccessfulViewAd(),n!==g.DEFAULT?
r.mraidCore.propertiesHandlers.state.update(g.DEFAULT):m(f.READY)},n.notifyErrorEve
nt=function(e,t)
{o&&o.push("mraidBridge.notifyErrorEvent:"+e+":"+t),m(f.ERROR,e,t)},n.executeSDKCom
mand=function(){var e,t,i,c="";if(!a)throw
n.notifyErrorEvent(c,r.error.bridgeError.BRG001),
{name:"VungleMRAIDBridgeException",message:"BRG001"};if(!arguments)throw
n.notifyErrorEvent(c,r.error.bridgeError.BRG000),
{name:"VungleMRAIDBridgeException",message:"BRG000"};for(c+="mraid://"+arguments[0]
,i=1;i<arguments.length;i+=2)e=arguments[i],t=arguments[i+1],c+=(1===i?"?":"&")
+encodeURIComponent(e),"undefined"!=typeof t&&(c+="="+encodeURIComponent(t));s?
d.push(c):(s=!
0,r.mraidBridge.notifyContainer(c)),o&&o.push("mraidBridge.executeSDKCommand:
"+c)},i.fireVideoCompleteEvent=function()
{o&&o.push("mraidBridgeExt.fireVideoCompleteEvent");var
t=e.document.querySelector("#dynamic"),r=new
e.Event("vungle.events.video.ended");t?
t.dispatchEvent(r):i.notifyError(e.vungle.error.bridgeExtError.BRX000)},i.notifyPre
pareStoreViewSuccess=function()
{o&&o.push("mraidBridgeExt.notifyPrepareStoreViewSuccess");var
t=e.document.querySelector("#dynamic"),r=new
e.Event("vungle.events.preparestore.success");t?
t.dispatchEvent(r):i.notifyError(e.vungle.error.bridgeExtError.BRX000)},i.notifyPre
sentStoreViewFinished=function()
{o&&o.push("mraidBridgeExt.notifyPresentStoreViewFinished");var
t=e.document.querySelector("#dynamic"),r=new
e.Event("vungle.events.preparestore.finished");t?
t.dispatchEvent(r):i.notifyError(e.vungle.error.bridgeExtError.BRX000)},i.notifyErr
or=function(t)
{o&&o.push("mraidBridgeExt.notifyError:"+t);try{r.mraidBridge.executeSDKCommand("er
ror","code",t)}catch(n){"VungleMRAIDBridgeException"===n.name?
o&&o.push("%cVungleMRAIDBridgeException caught in mraidBridgeExt.notifyError!
Message: %s","color: red; font-size: x-
large",e.vungle.error.bridgeError[n.message]):o&&o.push("%cUnknown Exception caught
in mraidBridgeExt.notifyError! Message: %s","color: red; font-size: x-
large",n.message)}},i.notifyTPAT=function(e)
{o&&o.push("mraidBridgeExt.notifyTPATEvent:"+e);try{r.mraidBridge.executeSDKCommand
("tpat","event",e)}catch(t)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.notifyTPAT",t.message)}},i.consentA
ction=function(e)
{o&&o.push("mraidBridgeExt.consentActionEvent:"+e);try{r.mraidBridge.executeSDKComm
and("consentAction","event",e)}catch(t)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.consentActionEvent",t.message)}},i.
notifyUserInteraction=function(e,t)
{o&&o.push("mraidBridgeExt.notifyUserInteraction");try{r.mraidBridge.executeSDKComm
and("action",e,t)}catch(n)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.notifyUserInteraction",n.message)}}
,i.notifyEventValuePairEvent=function(e,t)
{o&&o.push("mraidBridgeExt.notifyEventValuePairEvent");var
n=e||"null",i=t||"null";try{r.mraidBridge.executeSDKCommand("actionWithValue","even
t",n,"value",i)}catch(n)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.notifyEventValuePairEvent",n.messag
e)}},i.playHTML5Video=function(e)
{o&&o.push("mraidBridgeExt.playHTML5Video");try{r.mraidBridge.executeSDKCommand("pl
ayHTML5Video","selector",e)}catch(t)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.playHTML5Video",t.message)}},i.open
Privacy=function(e)
{o&&o.push("mraidBridgeExt.openPrivacy");try{r.mraidBridge.executeSDKCommand("openP
rivacy","url",e)}catch(t)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.openPrivacy",t.message)}},i.request
MRAIDClose=function(){o&&o.push("mraidBridgeExt.requestMRAIDClose");try{var
e,t="windows"===r.mraidExt.getOS()&&(0===r.mraidExt.getOSVersion().indexOf("WinPhon
e81")||
0===r.mraidExt.getOSVersion().indexOf("Win81")),n="android"===r.mraidExt.getOS()&&p
arseInt(r.mraidExt.getOSVersion(),10)<=17;t||n?
(e=document.createEvent("Event"),e.initEvent("vungle.events.request.close",!0,!
0)):e=new Event("vungle.events.request.close"),c?
document.querySelector("#dynamic").dispatchEvent(e):r.mraidBridge.executeSDKCommand
("close")}catch(i)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.requestMRAIDClose",i.message)}},i.n
otifySuccessfulViewAd=function()
{o&&o.push("mraidBridgeExt.notifySuccessfulViewAd");try{r.mraidBridge.executeSDKCom
mand("successfulView")}catch(e)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.notifySuccessfulViewAd",e.message)}
},i.openAppInDevice=function()
{o&&o.push("mraidBridgeExt.openAppInDevice");try{r.mraidBridge.executeSDKCommand("o
penAppInDevice")}catch(e)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.openAppInDevice",e.message)}},i.ope
nStorePage=function()
{o&&o.push("mraidBridgeExt.openStorePage");try{r.mraidBridge.executeSDKCommand("ope
nStorePage")}catch(e)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.openStorePage",e.message)}},i.cance
lDownload=function()
{o&&o.push("mraidBridgeExt.cancelDownload");try{r.mraidBridge.executeSDKCommand("ca
ncelDownload")}catch(e)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.cancelDownload",e.message)}},i.getI
nstallationStatus=function(t){o&&o.push("mraidBridgeExt.getInstallationStatus");var
r=e.document.querySelector("#dynamic"),n=new
e.CustomEvent("vungle.events.installationStatus.updated",{detail:t});r?
r.dispatchEvent(n):i.notifyError(e.vungle.error.bridgeExtError.BRX000)},i.startDown
loadAppOnDevice=function()
{o&&o.push("mraidBridgeExt.startDownloadAppOnDevice");try{r.mraidBridge.executeSDKC
ommand("startDownloadAppOnDevice")}catch(e)
{r.mraidBridge.notifyErrorEvent("mraidBridgeExt.startDownloadAppOnDevice",e.message
)}}}(window),function(e){"use strict";var t=e.vungle=e.vungle||
{},r=e.mraid=t.mraid=t.mraid||{},n=t.mraidExt=t.mraidExt||
{},i=t.debugLog=t.debugLog||
[],o=t.mraidBridge.executeSDKCommand,a=t.mraidCore.broadcastEvent,s=t.mraidCore.pro
pertiesHandlers,d=t.mraidCore.propertiesValidator,c=t.mraidCore.consts.states,u=t.m
raidCore.consts.events,l=t.mraidCore.consts.placements;i&&i.push("vungle.mraid
loaded."),r.addEventListener=function(e,r){e&&r?t.mraidCore.isValidMARIDEvent(e)?
(t.mraidCore.eventListeners[e]||(t.mraidCore.eventListeners[e]=new
t.mraidCore.EventListeners(e)),t.mraidCore.eventListeners[e].add(r)):a(u.ERROR,"mra
id.addEventListener",t.error.mraidError.MRD000+":"+e):a(u.ERROR,"mraid.addEventList
ener",t.error.mraidError.MRD001)},r.removeEventListener=function(e,r){var n,i=!1;e?
(n=t.mraidCore.eventListeners[e],r?(n&&(i=n.remove(r)),i||
a(u.ERROR,"mraid.removeEventListener",t.error.mraidError.MRD002+":"+e)):n&&t.mraidC
ore.eventListeners.removeAll(),n&&0===n.count&&(t.mraidCore.eventListeners[e]=null,
delete
t.mraidCore.eventListeners[e])):a(u.ERROR,"mraid.removeEventListener",t.error.mraid
Error.MRD003)},n.prepareStoreView=function(e){e?
o("prepareStoreView","appStoreId",e):a(u.ERROR,"mraid.prepareStoreView",t.error.mra
idError.MRD016)},n.presentStoreView=function(e){e?
o("presentStoreView","appStoreId",e):a(u.ERROR,"mraid.presentStoreView",t.error.mra
idError.MRD016)},n.getMraidVersion=function(){return"v4.4.0"},n.getOS=function()
{return s.os.clone()},n.getOSVersion=function(){return
s.osVersion.clone()},n.getIncentivized=function(){return
s.incentivized.clone()},r.getVersion=function(){return
s.version.clone()},r.getMaxSize=function(){return
s.maxSize.clone()},r.getScreenSize=function(){return
s.screenSize.clone()},r.getDefaultPosition=function(){return
s.defaultPosition.clone()},r.getCurrentPosition=function(){return
s.currentPosition.clone()},r.getExpandProperties=function(){return
s.expandProperties.clone()},r.getResizeProperties=function(){return
s.resizeProperties.clone()},r.getOrientationProperties=function(){return
s.orientationProperties.clone()},r.supports=function(e){return s.supports.clone()
[e]},r.getState=function(){return s.state.clone()},r.getPlacementType=function()
{return s.placementType.clone()},r.getConsentRequired=function(){return
s.consentRequired.clone()},r.getConsentTitleText=function(){return
s.consentTitleText.clone()},r.getConsentBodyText=function(){return
s.consentBodyText.clone()},r.getConsentAcceptButtonText=function(){return
s.consentAcceptButtonText.clone()},r.getConsentDenyButtonText=function(){return
s.consentDenyButtonText.clone()},r.isViewable=function(){return
s.isViewable.clone()},r.getViewable=r.isViewable,r.setExpandProperties=function(e)
{var r={};"object"==typeof e?(Object.keys(e).forEach(function(t){"isModal"!
==t&&(r[t]=e[t])}),d(r,s.expandProperties.clone(),"expandProperties")&&s.expandProp
erties.update(r)):
(a(u.ERROR,"mraid.setExpandProperties",t.error.mraidError.MRD004),t.mraidBridgeExt&
&t.mraidBridgeExt.notifyError("MRD004"))},r.setOrientationProperties=function(e)
{var r;"object"==typeof e?
(r=["setOrientationProperties","allowOrientationChange",e.allowOrientationChange,"f
orceOrientation",e.forceOrientation],d(e,s.orientationProperties.clone(),"orientati
onProperties")&&(s.orientationProperties.update(e),o.apply(null,r))):
(a(u.ERROR,"mraid.setOrientationProperties",t.error.mraidError.MRD005),t.mraidBridg
eExt&&t.mraidBridgeExt.notifyError("MRD005"))},r.setResizeProperties=function(e)
{"object"==typeof e?
d(e,s.resizeProperties.clone(),"resizeProperties")&&s.resizeProperties.update(e):
(a(u.ERROR,"mraid.setResizeProperties",t.error.mraidError.MRD006),t.mraidBridgeExt&
&t.mraidBridgeExt.notifyError("MRD006"))},r.useCustomClose=function(e){var
t;d(e,s.customClose.clone(),"useCustomClose")&&d({useCustomClose:e},s.expandPropert
ies.clone(),"expandProperties")&&(s.customClose.update(e),s.expandProperties.update
({useCustomClose:e}),t=e===!0?"invisible":e===!1?"visible":void
0===e?"gone":"",o("useCustomClose","sdkCloseButton",t))},n.useCustomPrivacy=functio
n(e)
{d(e,s.customPrivacy.clone(),"useCustomPrivacy")&&(s.customPrivacy.update(e),o("use
CustomPrivacy","useCustomPrivacy",e))},r.open=function(e){e?
o("open","url",encodeURI(e)):a(u.ERROR,"mraid.open",t.error.mraidError.MRD0
07)},r.close=function(){r.getState()!==c.HIDDEN?
o("close"):a(u.ERROR,"mraid.close",t.error.mraidError.MRD008)},r.playVideo=function
(){var e=arguments&&arguments[0]?arguments[0]:"",n=arguments&&arguments[1]?
arguments[1]:"";r.isViewable()?e.length>0?
o("playVideo","uri",e,"captionUrl",n):a(u.ERROR,"mraid.playVideo",t.error.mraidErro
r.MRD009):a(u.ERROR,"mraid.playVideo",t.error.mraidError.MRD010)},r.expand=function
(e){var
r=s.customClose.clone(),n=s.placementType.clone(),i=s.state.clone(),d=["expand","us
eCustomClose",r];n!==l.INLINE||i!==c.DEFAULT&&i!==c.RESIZED?
a(u.ERROR,"mraid.expand",t.error.mraidError.MRD011):
(e&&(arguments.push("url"),arguments.push(encodeURI(e))),o.apply(null,d))},r.resize
=function(){var e=s.resize.clone(),n=["resize"],i=r.getState();i!==c.DEFAULT&&i!
==c.RESIZED?
(n.push("width"),n.push(e.width),n.push("height"),n.push(e.height),n.push("offsetX"
),n.push(e.offsetX),n.push("offsetY"),n.push(e.offsetY),n.push("customClosePosition
"),n.push(e.customClosePosition),n.push("allowOffscreen"),n.push(e.allowOffscreen),
o.apply(null,n)):a(u.ERROR,"mraid.resize",t.error.mraidError.MRD012)},r.createCalen
darEvent=function(){},r.storePicture=function(e){r.isViewable()?e?
a(u.ERROR,"mraid.storePicture",t.error.mraidError.MRD013):o("storePicture","uri",e)
:a(u.ERROR,"mraid.storePicture",t.error.mraidError.MRD010)}}(window);
//# sourceMappingURL=vungle.mraid.min.js.map

You might also like