PageSourceSearch

https://www.qidimaker.com/assets/index-vhUOF2NH.js

js qidimaker.com collected 2026-10-04 11:12:27 UTC 3,514 bytes, 1 lines download raw bytes

1import{K as F,J as Q,r as U,c as H,l as N,w as M,S as P,G as C,H as d,L as I,e as n,P as E,u as r,a0 as O,I as m,N as $,M as y,E as L,$ as D,n as K,p as z}from"./vue-D5PZuFOG.js";import{n as T,p as j,q as A,Q as G,ax as J,v as W,ay as X,F as Y,az as Z}from"./main-DPvYjFjT.js";import{S as ee,_ as oe,T as te}from"./to-top-Dc5G2PUP.js";import{Q as se}from"./qidi-font-PND3zOAM.js";import{L as re}from"./LeftOutlined-B_CYgkDI.js";import{S as ae}from"./SearchOutlined-DpIw_M3q.js";import"./injectionKey-DGYNie3Z.js";import"./isNumeric-DjvBa-1E.js";import"./RightOutlined-CnsgBFoY.js";import"./useUpload-CLgToeC9.js";import"./uploadUseType-B9suhMu-.js";import"./cover-image-DqV0OQnx.js";import"./index-DZkK3pFF.js";const ne={class:"search"},le={class:"fs-16"},ce={key:2,class:"header-actions"},ie={class:"home-collection-btn__text fw-600"},ue={__name:"header",emits:["search"],setup(q,{emit:c}){const g=c,p=j(),v=A(),s=F(),o=Q();function u(e){const t=v.user?.id;return t?`${e}/${t}`:e}function _(){s.push({path:u("/studio/collections")})}const a=U(""),i=U("");function k(e=o.path){const t=W(e);return e===`/${t}/studio/models`}const R=H(()=>k()&&o.query.from_library==="true");function B(){X("home")}function V(e){Y()&&(e.preventDefault(),Z())}function b(){if(!k()){a.value="",i.value="";return}a.value=o.query.keyword||"",i.value=o.query.imageUrl||""}N(()=>{b()}),M([()=>o.path,()=>o.query],()=>{b()});function S(e={}){const t=e.keyword!==void 0?e.keyword:a.value,w=e.imageUrl!==void 0?e.imageUrl:i.value,l=t?.trim()||"",h=w||"";a.value=l,i.value=h;const x={...l?{keyword:l}:{},...h?{imageUrl:h}:{}};if(!k())s.push({path:"/studio/models",query:x});else{const f={...o.query};delete f.keyword,delete f.imageUrl,Object.assign(f,x),s.replace({path:o.path,query:f})}g("search",{keyword:l,imageUrl:h})}return(e,t)=>{const w=P("router-link");return d(),C("div",ne,[r(R)?(d(),C("a",{key:0,class:"home-back",href:"#",onClick:O(B,["prevent"])},[n(r(re)),m("span",le,$(e.$t("backToModelLibrary")),1)])):(d(),I(w,{key:1,class:"home-logo",to:"/studio","aria-label":e.$t("goHome"),onClickCapture:V},{default:y(()=>[n(r(G),{class:"home-logo__icon"}),n(r(se),{class:"home-logo__wordmark"})]),_:1},8,["aria-label"])),n(ee,{class:"search-input",modelValue:r(a),"onUpdate:modelValue":t[0]||(t[0]=l=>L(a)?a.value=l:null),"image-url":r(i),"onUpdate:imageUrl":t[1]||(t[1]=l=>L(i)?i.value=l:null),"allow-clear":"",placeholder:e.$t("searchModels"),onEnter:S,onClear:S},{prefix:y(()=>[n(r(ae),{class:"search-icon pointer",onClick:S})]),_:1},8,["modelValue","image-url","placeholder"]),r(p).isLogin?(d(),C("div",ce,[m("div",{class:"home-collection-btn",onClick:_},[n(r(J),{class:"home-collection-btn__icon"}),m("span",ie,$(e.$t("userFavorites")),1)])])):E("",!0)])}}},de=T(ue,[["__scopeId","data-v-3110ce6e"]]),me={class:"studio-layout__content"},pe={__name:"index",setup(q){const c=U(null);z("mainScrollEl",c);const g=Q(),p=(s="")=>s.split(/[?#]/)[0],v=(s="")=>/^\/(zh|en)\/studio(?:\/models|\/collections\/detail(?:\/[^/]+)?)?$/.test(s);return M(()=>g.fullPath,async(s,o)=>{const u=p(s);v(u)&&u===p(o)||(await K(),c.value&&c.value.scrollTo({top:0}))}),(s,o)=>{const u=P("router-view"),_=oe;return d(),I(_,{class:"studio-layout"},{default:y(()=>[m("div",{class:"studio-layout__main",ref_key:"mainRef",ref:c},[n(de,{class:"studio-layout__header"}),n(te,{target:r(c)},null,8,["target"]),m("div",me,[n(u,null,{default:y(({Component:a})=>[(d(),I(D(a)))]),_:1})])],512)]),_:1})}}},$e=T(pe,[["__scopeId","data-v-55f05920"]]);export{$e as default};

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.