PageSourceSearch

https://www.aiphotoenhancer.pro/js/BaseMultipleCheck-erO-u0w2.js

js aiphotoenhancer.pro collected 2026-10-07 21:51:21 UTC 2,182 bytes, 1 lines download raw bytes

1import{d as v}from"./vendor-pinia-gCJIfMdB.js";import{r as R,N as y,O as T,P as w,Q as x,_ as F}from"./app-l6M31lK3.js";import{a as I}from"./vendor-axios-DcNlVx-A.js";import{v as O}from"./vendor-uuid-C6aID195.js";import{w as $}from"./vendor-@vue/runtime-dom-C3W0DJio.js";import{x as k,C as h,N as u,F as B,$ as E,m as M}from"./vendor-@vue/runtime-core-BpgkoJKw.js";import{p as S,M as C}from"./vendor-@vue/shared-CqFqUu5o.js";const Y=v("fileOssUploadStore",{state:()=>({fileUploadToURL:""}),actions:{generateNewFileName(e){const n=Date.now(),o=e.lastIndexOf(".");if(o===-1)return`${e}_${n}`;const t=e.substring(0,o),s=e.substring(o+1);return`${t}_${n}.${s}`},setFileUploadToURL(e){this.fileUploadToURL=e},async fileUploadToURLAction(e,n,o,t){var a,m,i;if(R()){t&&t();return}const s=document.createElement("img");let d=URL.createObjectURL(e);s.onload=()=>{URL.revokeObjectURL(s.src),this.fileWidth=s.naturalWidth,this.fileHeight=s.naturalHeight},s.onerror=()=>{URL.revokeObjectURL(s.src)},s.src=d;try{const{type:r,size:U,name:f}=e,_=r||y,c=f.split("."),L=c!=null&&c.length?c[c.length-1]:"",g=this.generateNewFileName(f),p=await T({assetType:_.split("/")[0],extension:L,mimeType:_,contentSize:U,fileName:g,projectId:await w.generate(e,n.clientId)||O()});if(p.code==200)if((a=p.data)!=null&&a.uploadUrl)try{const l=await I.put(p.data.uploadUrl,e,{headers:{"Content-Type":e.type,"x-goog-content-length-range":"0,1024000000"},withCredentials:!0});this.fileUploadToURL=(m=l==null?void 0:l.data)==null?void 0:m.mediaLink,o&&o()}catch{t&&t()}else this.fileUploadToURL=(i=p.data)==null?void 0:i.fileUrl,o&&o();else t&&t()}catch(r){if(x(r)){t&&t();return}t&&t()}}}}),N={class:"BaseMultipleCheck"},j=["onClick"],A=k({__name:"BaseMultipleCheck",props:{multipleCheckList:{type:Array,default:()=>[]}},emits:["change:value"],setup(e,{emit:n}){const o=e,t=M(()=>o.multipleCheckList),s=n,d=a=>{s("change:value",a)};return(a,m)=>(h(),u("div",N,[(h(!0),u(B,null,E(t.value,(i,r)=>(h(),u("div",{class:S(["multipleCheckItem",i.checked?"multipleCheckItemActive":""]),key:r,onClick:$(U=>d(i),["stop","prevent"])},C(i.name),11,j))),128))]))}}),q=F(A,[["__scopeId","data-v-ba6ddb1e"]]);export{q as B,Y as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.