1import{_ as x}from"./BouncingDots.CQJZ1P1-.js";import{d as B,a as d,c as T,w as V,F as E,G as c,L as f,_ as i,Q as g,P as p,H as N,T as b,N as P,u as h,V as M,M as Q,a0 as D,aa as H,ab as $}from"./swiper-vue.iPC35nDh.js";import{e as v,_ as F}from"./entry.2ehg4ZD6.js";import{_ as y}from"./sprite.MSAEivaF.js";const u=e=>(H("data-v-d96fac9f"),e=e(),$(),e),O=y+"#icon-ar",R=y+"#icon-cross",q=["allow-pointer-events"],z=u(()=>i("span",{class:"el-button__label"},"AR View",-1)),G={key:1,class:"icon"},L=u(()=>i("use",{"xlink:href":O},null,-1)),U=[L],j={class:"ar-scan-card__content"},J=u(()=>i("p",null,"Scan the code below with your phone to view your configuration in AR.",-1)),K=u(()=>i("svg",{class:"icon"},[i("use",{"xlink:href":R})],-1)),W=[K],X=["src"],Y=B({__name:"ArScanCard",props:{viewQrCode:{type:String,default:null},loading:{type:Boolean,default:!1},height:{type:Number,default:null}},emits:["close","trigger"],setup(e,{emit:n}){const o=e,s=n,a=d(null),t=d(!1),r=d(!1),_=d(null),C=T(()=>t.value&&o.viewQrCode),w=l=>{t.value=!0,s("trigger",l),_.value=setTimeout(()=>{r.value=!0},200)},k=()=>{o.height&&(a.value.style.minHeight=`${o.height-2*(v("isMobile").value?0:32)}px`)},A=()=>{clearTimeout(_.value),t.value=!1,r.value=!1,s("close")};return V(()=>o.height,l=>{a.value&&(a.value.style.minHeight=`${l-2*(v("isMobile").value?0:32)}px`)},{immediate:!0}),E(()=>{clearTimeout(_.value)}),(l,I)=>{const S=x;return c(),f(D,null,[i("button",P(l.$attrs,{type:"button",class:["el-button el-button--secondary el-button--is-borderless el-button--ar",{"el-button--medium":("useState"in l?l.useState:h(v))("isMobile").value}],"allow-pointer-events":!e.loading,onClick:w}),[z,g(b,{name:"fade",mode:"out-in"},{default:p(()=>[e.loading?(c(),N(S,{key:0,class:"icon"})):(c(),f("svg",G,U))]),_:1})],16,q),g(b,{name:"ar-scan-card-fade",onEnter:k},{default:p(()=>[h(C)?(c(),f("div",{key:0,ref_key:"cardEl",ref:a,class:M(["ar-scan-card",{"is-content-visible":h(r)}])},[i("div",j,[i("div",{class:"ar-header"},[J,i("button",{type:"button",tabindex:"0",class:"el-icon-button el-icon-button--no-border ar-close-button",onClick:A},W)]),i("img",{src:e.viewQrCode,class:"ar-qr-code"},null,8,X)])],2)):Q("",!0)]),_:1})],64)}}}),ae=F(Y,[["__scopeId","data-v-d96fac9f"]]),m=e=>Array.isArray(e)?e==null?void 0:e.filter(n=>n.content&&n.content.length>0&&n.content[0].format==="data").reduce((n,o)=>(n[o.id]=o.content[0].data,n),{}):e,ie=(e,n)=>({...Array.isArray(e)?e==null?void 0:e.filter(o=>o.content&&o.content.length>0&&o.content[0].format==="data").reduce((o,s)=>(o[s.name]=s.content[0].data,o),{}):e,...Array.isArray(n)?n==null?void 0:n.reduce((o,s)=>(o[s.name]=s.value,o),{}):n}),Z=e=>{var n,o;return(o=(n=e==null?void 0:e.printed_part)==null?void 0:n.predefined_values)==null?void 0:o.find(s=>{var a;return s.value===((a=e.parameters)==null?void 0:a["predefined-value"])})},te=e=>{var n,o,s,a,t;return((s=m(e==null?void 0:e.outputs))==null?void 0:s[(o=(n=e==null?void 0:e.product)==null?void 0:n.manual)==null?void 0:o.dimensions_output_id])||((t=(a=e==null?void 0:e.product)==null?void 0:a.manual)==null?void 0:t.dimensions)},le=e=>{var o,s,a,t;const n=(s=(o=e==null?void 0:e.product)==null?void 0:o.views)==null?void 0:s.find(r=>r.printed_part);return((a=Z(e))==null?void 0:a.value)||((t=m(e==null?void 0:e.outputs))==null?void 0:t[n==null?void 0:n.dimensions_output_id])||(n==null?void 0:n.dimensions)};export{ae as _,te as a,ie as b,le as g,m as p};
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.