"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[4711,1835],{71835:function(t,e,i){i.r(e),i.d(e,{default:function(){return m}});var s=i(66252),o=i(49963);const l=(0,s._)("span",{class:"icon iconfont icon-guanbi"},null,-1),n=[l],a={class:"history_detail_content scroll_style"},r={class:"history_img_item"},c=["src"];function u(t,e,i,l,u,d){const h=(0,s.up)("a-modal");return(0,s.wg)(),(0,s.j4)(h,{class:"hsitory_detail_modal_component",visible:t.hsitoryDetailShow,"onUpdate:visible":e[1]||(e[1]=e=>t.hsitoryDetailShow=e),footer:null,title:t.collectionName,width:"80%",maskClosable:!1,keyboard:!1,centered:!0},{closeIcon:(0,s.w5)((()=>[(0,s._)("div",{class:"close_icon",onClick:e[0]||(e[0]=(0,o.iM)((e=>t.changeDetailShow()),["stop"]))},n)])),default:(0,s.w5)((()=>[(0,s._)("div",a,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(t.groupDetails,(t=>((0,s.wg)(),(0,s.iD)("div",{class:"history_img_block",key:t},[(0,s._)("div",r,[(0,s._)("img",{class:"element_img",src:t.url},null,8,c)])])))),128))])])),_:1},8,["visible","title"])}var d=(0,s.aZ)({props:{groupDetails:{default:{}},collectionName:{default:""}},setup(){},data(){return{hsitoryDetailShow:!1}},methods:{changeDetailShow(){this.hsitoryDetailShow=!this.hsitoryDetailShow}}}),h=i(83744);const p=(0,h.Z)(d,[["render",u]]);var m=p},54711:function(t,e,i){i.r(e),i.d(e,{default:function(){return y}});var s=i(66252),o=i(49963);const l={class:"identification_page"},n=(0,s.Uk)("序号："),a=(0,s._)("div",null,[(0,s.Uk)("密钥："),(0,s._)("input",{type:"text"})],-1);function r(t,e,i,r,c,u){return(0,s.wg)(),(0,s.iD)("div",l,[(0,s._)("div",null,[n,(0,s.wy)((0,s._)("input",{"onUpdate:modelValue":e[0]||(e[0]=e=>t.setId=e),type:"text",autofocus:""},null,512),[[o.nr,t.setId]])]),a,(0,s._)("div",{class:"button",onClick:e[1]||(e[1]=e=>t.setFingerprint2("set"))},"记录浏览器标识"),(0,s._)("div",{class:"button",onClick:e[2]||(e[2]=e=>t.setFingerprint2("put"))},"更新浏览器标识"),(0,s._)("div",{class:"button",onClick:e[3]||(e[3]=e=>t.setFingerprint2("delete"))},"注销浏览器标识")])}var c=i(2262),u=i(32339),d=i(71835),h=i(74961),p=i(61446),m=i(96803),f=i(68820),w=i.n(f),_=(0,s.aZ)({components:{HistoryDetail:d["default"],RobotAssist:m["default"]},setup(){let t=(0,c.iH)([]),e={},i=(0,c.iH)(0),s=(0,c.iH)(!1),o=(0,c.iH)();return{collectionList:t,userInfo:e,status:i,voluntarily:s,setId:o}},data(){return{}},mounted(){},methods:{async setFingerprint2(t){let e="";await new Promise(((t,i)=>{w().get((function(i){const s=i.map((function(t,e){return 0===e?t.value.replace(/\bNetType\/\w+\b/,""):t.value}));e=w().x64hash128(s.join(""),31),t("")}))}));let i={browserIdentifiers:e,id:this.setId};if("set"==t||"put"==t){let s=h.V.httpUrls.addNoLoginRequiredNew;"put"==t&&(s=h.V.httpUrls.updateNoLoginRequiredNew),h.V.axiosPost(s,i).then((t=>{localStorage.setItem("murmurStr",e);const i=t,s=new Blob([i],{type:"text/html"}),o=document.createElement("a");o.href=URL.createObjectURL(s),o.download="AiDA.html",o.click(),p.ZP.success("Created successfully")})).catch((t=>{}))}else i.id="",h.V.axiosPost(h.V.httpUrls.deleteNoLoginRequiredNew,i).then((t=>{p.ZP.success("successfully delete"),localStorage.removeItem("murmurStr"),localStorage.removeItem("id"),(0,u.d8)("isMurmur",!1),(0,u.$m)("token")})).catch((t=>{}))}}}),g=i(83744);const v=(0,g.Z)(_,[["render",r]]);var y=v}}]);