(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/zero-privacy/components/zero-privacy/zero-privacy"],{1074:function(e,t,n){"use strict";(function(e){var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("2eee")),r=i(n("c973")),o={name:"zero-privacy",emits:["agree","disagree","needAuthorization"],props:{position:{type:String,default:"center"},color:{type:String,default:"#0396FF"},bgcolor:{type:String,default:"#ffffff"},onNeed:{type:Boolean,default:!0},hideTabBar:{type:Boolean,default:!1},title:{type:String,default:"用户隐私保护提示"},predesc:{type:String,default:"使用前请仔细阅读"},subdesc:{type:String,default:"当您点击同意后，即表示您已理解并同意该条款内容，该条款将对您产生法律约束力。如您拒绝，将无法使用该服务。"},privacyContractNameCustom:{type:String,default:""},agreeBtnText:{type:String,default:"同意"},disagreeBtnText:{type:String,default:"拒绝"},tips:{type:String,default:"拒绝将无法使用该功能"}},data:function(){return{resolvePrivacyAuthorization:null,showPrivacy:!1,privacyContractName:""}},methods:{open:function(t){this.hideTabBar&&e.hideTabBar({success:function(e){},fail:function(e){}}),this.privacyContractName=t,this.showPrivacy=!0},close:function(){this.showPrivacy=!1,this.hideTabBar&&e.showTabBar({success:function(e){},fail:function(e){}})},handleAgree:function(){this.onNeed&&this.resolvePrivacyAuthorization({buttonId:"agree-btn",event:"agree"}),this.close(),this.$emit("agree")},handleRefuse:function(){this.onNeed&&this.resolvePrivacyAuthorization({event:"disagree"}),this.close(),this.$emit("disagree")},handleOpenPrivacyContract:function(){e.openPrivacyContract({success:function(e){},fail:function(e){}})},checkPrivacySetting:function(){var t=this;e.getPrivacySetting&&e.getPrivacySetting({success:function(n){console.log("getPrivacySetting",n),!1!==n.needAuthorization?(t.$emit("needAuthorization",!0),t.onNeed?e.onNeedPrivacyAuthorization((function(e){t.open(n.privacyContractName),t.resolvePrivacyAuthorization=e})):t.open(n.privacyContractName)):t.$emit("needAuthorization",!1)},fail:function(){},complete:function(){}})}},created:function(){var e=this;return(0,r.default)(a.default.mark((function t(){return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.checkPrivacySetting();case 2:case"end":return t.stop()}}),t)})))()}};t.default=o}).call(this,n("543d")["default"])},"24ad":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this.$createElement;this._self._c},a=[]},"8e2f":function(e,t,n){"use strict";var i=n("fb03"),a=n.n(i);a.a},beb0:function(e,t,n){"use strict";n.r(t);var i=n("24ad"),a=n("eb6c");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("8e2f");var o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},eb6c:function(e,t,n){"use strict";n.r(t);var i=n("1074"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},fb03:function(e,t,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/zero-privacy/components/zero-privacy/zero-privacy-create-component',
    {
        'uni_modules/zero-privacy/components/zero-privacy/zero-privacy-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("beb0"))
        })
    },
    [['uni_modules/zero-privacy/components/zero-privacy/zero-privacy-create-component']]
]);
