"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/getPageConfig.js");require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/libraries/request.js"),require("../../common/store/useWorkStore.js"),require("../../common/libraries/setTabBar.js"),require("../../common/libraries/apiLoading.js");const r=e.defineComponent({__name:"hs-private-policy",props:{isAgree:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},policyName:{type:String,default:"隐私政策名称"},activeColor:{type:String,default:"#2A7EFB"}},emits:["update:isAgree","clickPolicy","clickCheckbox"],setup(r,{emit:i}){const s=r,t=e.ref([]),a=e.ref(!1);s.isAgree?t.value=["isAgree"]:t.value=[],e.watch((()=>null==s?void 0:s.isAgree),(()=>{t.value?t.value=["isAgree"]:t.value=[]}));const l=()=>{i("clickPolicy")},u=()=>{if(s.isDisabled)return i("clickCheckbox"),void i("update:isAgree",!1);console.log(t.value,"isAgree.value"),a.value?a.value=!1:a.value=!0,i("update:isAgree",a.value)};return(r,i)=>({a:a.value,b:e.unref(o.getStyleColorValueInfo)(),c:e.o(u),d:e.t(s.policyName),e:e.o(l),f:e.s(e.unref(o.getStyleColorInfo)())})}}),i=e._export_sfc(r,[["__scopeId","data-v-71631d05"]]);wx.createComponent(i);
