"use strict";const e=require("../../common/vendor.js");if(!Array){(e.resolveComponent("u-checkbox")+e.resolveComponent("u-checkbox-group"))()}Math||((()=>"../../node-modules/uview-plus/components/u-checkbox/u-checkbox.js")+(()=>"../../node-modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js"))();const o=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(o,{emit:l}){const c=o,i=e.ref([]);c.isAgree?i.value=["isAgree"]:i.value=[],e.watch(()=>null==c?void 0:c.isAgree,()=>{i.value?i.value=["isAgree"]:i.value=[]});const t=()=>{l("clickPolicy")},u=()=>{var e;if(c.isDisabled)return l("clickCheckbox"),i.value=[],void l("update:isAgree",!1);let o=!1;(null==(e=i.value)?void 0:e.length)?(i.value=[],o=!1):(i.value=["isAgree"],o=!0),l("update:isAgree",o)};return(o,l)=>({a:e.p({shape:"circle",activeColor:null==c?void 0:c.activeColor,name:"isAgree"}),b:e.o(u),c:e.p({modelValue:i.value}),d:e.o(u),e:e.t(c.policyName),f:e.o(t)})}}),l=e._export_sfc(o,[["__scopeId","data-v-921dfb30"]]);wx.createComponent(l);
