PageSourceSearch

https://cdn.pacdora.com/_pacui/assets/useModelPanel-DRvGd1mYsr.js

js pacdora.com collected 2026-10-03 22:13:36 UTC 2,217 bytes, 1 lines download raw bytes

1import{At as e,On as t}from"./src-D9GYhO4rRw.js";import{an as n,ft as r}from"./vue-DR-_0DQxXA.js";import{l as i}from"./pacdora-3d-wnulKoNRJ_.js";import{t as a}from"./knifeEffect-CaNYtT_v6k.js";import{n as o}from"./Constant-DGqXw_lvC1.js";import{w as s,y as c}from"./api-B8Y66gIssQ.js";import{d as l}from"./useModels--g8QQh9ZUt.js";import{t as u}from"./Unit-DfLcslHzBb.js";var d=n([]),f=n();r(()=>f.value===i.Decorator),r(()=>f.value===i.Base);var p=r(()=>f.value===i.Project),m=r(()=>[i.Group,i.TempGroup].includes(f.value||0)),h=n(),g=n(``),_=n(new Map),v=n({position:{x:0,y:0,z:0},rotation:{x:0,y:0,z:0},scale:{x:0,y:0,z:0}}),y=n(!0),b=n(!1),x=n([]),S=n(!1),C=n(null),{project:w}=l(),T=r(()=>{var t,n,r;let i=((t=w.value)==null?void 0:t.cate)||{image:``},a=((n=w.value)==null?void 0:n.unit_type)||o,s=(e,t)=>t===`in`?e.replace(/\:(\d+\.?\d*)mm/g,(e,t)=>`:${new u(Number(t)).mm2inch(4)}in`):e.replace(`:`,`:`);return(((r=w.value)==null||(r=r.cate)==null?void 0:r.size_options)??[]).map(t=>{let n=s(t.shortDesc,a),r=s(t.fullDesc,a),o=null,c=r.match(/capacity[\:|\:](\s*\d+((ml)|g))/);return c&&(o=c[1]),{image:e(t.previewImgPath||i.image,{width:200,height:200}),hoverImage:e(t.previewImgPath||i.image,{width:300,height:300}),title:n,breif:r,sizeName:t.sizeName,capacity:(t==null?void 0:t.suggestVolumn)||o,__raw:t}})}),E=async e=>{let t=e.cate.cate_no;return await c(t)},D=(e,t)=>{var n,r;if(!e)return t||``;let i=(n=_.value)==null?void 0:n.get(e==null||(r=e.cate)==null?void 0:r.cate_no),a=(i==null?void 0:i.find(t=>t.id===e.blankSettingId))||(i==null?void 0:i[0]);return(a==null?void 0:a.image)||e.custom_model_cover||t||``};function O(){return{setReplaceCover:e=>{var t;g.value=D(w.value,e)||((t=w.value)==null||(t=t.cate)==null?void 0:t.image)||``},updateSizeProject:async(e,t=!0)=>{let n=await s({...e});if(n.waring)return[n];if(t)return[n,await a({bleed:e==null?void 0:e.bleedline,export_type:`project`,id:e==null?void 0:e.id})]},fetchRelatedModelInfo:async e=>{try{let n=await t({projectId:e});C.value=(n==null?void 0:n.relatedModelInfo)||null}catch(e){console.error(e),C.value=null}}}}export{O as _,p as a,d as c,g as d,f,x as g,v as h,m as i,_ as l,T as m,D as n,y as o,b as p,E as r,S as s,h as t,C 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.