function Privacy(e){function s(){o(),f()}function o(){funcObj.appcomm.appSend({method:"getData",params:{name:i}},function(e){t=e,u("currentVersion")})}function u(e){r[e]=!0,a()&&(!inSetupWizard&&PRIVACY_POLICY_PROMPT&&t!=n?l():inSetupWizard||funcObj.UIMain.updateInAppMsgReadyState({privacyCheckComplete:!0}))}function a(){var e=!0;for(var t in r)if(!r[t]){e=!1;break}return e}function f(){n=e,u("newVersion")}function l(){var e=funcObj.langCon.getString("AboutLegal PrivacyPolicyIntroOld"),t=funcObj.langCon.getString("AboutLegal PrivacyPolicyDesc"),n=funcObj.langCon.getString("AboutLegal PrivacyPolicyCheckboxInfoOld"),r=_.template(privacy_policy_template),i=r({intro:e,description:t,checkboxInfo:n}),s=[{title:"##TRANS_Buttons_IAgree##",callback:c,"class":"disable"}];funcObj.message.createMessage({headertitle:"",title:"",classes:"privacy",pagebodyclasses:"content_scroll",copy:i,buttons:s,close:!1,priority:100,ref:"privacypolicy"}),$("#pCheckBox").change(function(){$(this).is(":checked")?$("#dialog_buttons .but").removeClass("disable"):$("#dialog_buttons .but").addClass("disable")})}function c(){t=n,funcObj.appcomm.appSend({method:"setData",params:{name:"privacyDate",value:t}}),funcObj&&funcObj.message&&funcObj.message.closeMessage("privacypolicy"),funcObj.UIMain.updateInAppMsgReadyState({privacyCheckComplete:!0}),funcObj.dataAnalytics.sendData("privacy_agree",{screen:inSetupWizard?"setup":"main",privacyVersion:t})}function h(){funcObj.appcomm.appSend({method:"setData",params:{name:"privacyDate",value:""}})}var t,n,r={currentVersion:!1,newVersion:!1},i="privacyDate";this.clearPrivatePolicyDate=h,this.commitCurrentToNative=c,this.showPrivacyPolicy=l,s()};