PageSourceSearch

https://otypo.de/_nuxt/CKJCcCNu2.js

js otypo.de collected 2026-10-08 03:06:54 UTC 55,325 bytes, 10 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BEqPW3De2.js","./WCVDKeko.js","./B8y8BWMa.js","./Dn5PMFBz.js","./other-styles.DemvdtaJ.css","./BSu4Q5qC.js","./DgBOw7Id.js","./t7WpbYVX.js","./BYtHwcsl.js","./C3X79py4.js","./DZYi3a7m.js","./6MxDToDj.js","./B8T3vahi.js","./iBwRVZDr.js","./4bDgs8yL.js","./DwZYEHCQ.js","./CXpljZ4d.js"])))=>i.map(i=>d[i]);
2(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`a6fafdec27`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`5648135d-eb00-4d19-a29f-dac6d218d863`,e._sentryDebugIdIdentifier=`sentry-dbid-5648135d-eb00-4d19-a29f-dac6d218d863`)}catch{}})();import{o as e,r as t}from"./B8y8BWMa.js";import{$t as n,Bn as r,C as i,Cn as a,Cr as o,Dr as s,En as c,Gn as l,Jn as u,Kn as d,Kt as f,On as p,Or as m,Qn as h,Tn as g,Tr as _,Wn as v,_n as y,bn as b,fn as x,gn as S,gr as C,kt as w,on as T,or as E,pn as D,rr as ee,tn as te,tt as ne,vn as O,xn as k,yn as A,z as j}from"./WCVDKeko.js";/* empty css        */import{J as M,P as N,T as P,Y as F,et as I,g as re,r as L,v as ie,y as ae,z as R}from"./BSu4Q5qC.js";import{G as oe,H as se,J as ce,h as le}from"./DgBOw7Id.js";import{Y as z}from"./C3X79py4.js";import{t as ue}from"./iBwRVZDr.js";import{t as B}from"./CXpljZ4d.js";import"./DCAUs8sP.js";import{t as V}from"./BmQ7DwT6.js";/* empty css        */import{t as de}from"./BjsqzF-W2.js";import{t as fe}from"./esmkrJlO2.js";import{t as H}from"./BEa5XjAY2.js";import{t as U}from"./CYVvjWAR2.js";import{t as W}from"./LmGM6VNP2.js";import{t as pe}from"./C_yOALV0.js";import{n as G}from"./DjQ6L8lx.js";n();var me={key:0,class:`strapi-model-manager`},he={class:`strapi-button --edit`},ge={class:`strapi-button --edit`},_e={class:`strapi-button --duplicate`},K={key:0,class:`strapi-button --delete`},ve={key:1,class:`strapi-button --add`},q=B({__name:`StrapiModelActionButtons`,props:{cardId:{type:String,default:null},modelId:{type:[Number,String],required:!0},slug:{type:String,required:!0},type:{type:String,required:!0},forceEditionMode:{type:Boolean,default:!1},mode:{type:String,default:`listing`,validator:e=>[`listing`,`model-manager`].includes(e)}},emits:[`deleteModel`,`addModel`],setup(e,{emit:t}){let n=e,r=t,i=w(),a=re(),s=y(()=>n.mode===`model-manager`),c=y(()=>a.isEditionMode||n.forceEditionMode),l=y(()=>!i?.path?.startsWith(`/tools/models-manager`)&&!n.forceEditionMode),u=y(()=>[`/cart`,`/checkout`,`/success`,`/account`].some(e=>i?.path?.startsWith(e))),p=y(()=>de.value&&c.value&&!u.value),m={stamp:`api::stamp-model.stamp-model`,stamping:`api::stamp-model.stamp-model`,sign:`api::sign-model.sign-model`},h=f().public.DEV_MODE?`http://localhost:1338/admin/`:`${f().public.STRAPI_ENDPOINT_MAIN}/admin/`,_=()=>{navigator.clipboard.writeText(n.slug)},v=()=>{window.open(`${h}content-manager/collection-types/${m[n.type]}/${n.modelId}`)},x=()=>{window.open(`${h}content-manager/collection-types/${m[n.type]}/clone/${n.modelId}`)},S=()=>{r(`deleteModel`,n.cardId)},C=()=>{r(`addModel`,n.cardId)};return(e,t)=>{let n=V;return o(p)?(d(),k(`div`,me,[O(`div`,he,[g(n,{icon:`visibility-active`,onClick:v})]),O(`div`,ge,[g(n,{icon:`text-fields`,onClick:_})]),O(`div`,_e,[g(n,{icon:`duplicate`,onClick:x})]),o(l)&&!o(s)?(d(),k(`div`,K,[g(n,{icon:`close`,onClick:S})])):b(``,!0),o(s)?(d(),k(`div`,ve,[g(n,{icon:`add`,onClick:C})])):b(``,!0)])):b(``,!0)}}},[[`__scopeId`,`data-v-e57b3a5f`]]);n();var ye={class:`thickness-svg-defs`},be=[`id`],xe=[`id`],Se=[`viewBox`,`innerHTML`],J=B({__name:`ItemThickness`,props:{config:{type:Object,required:!0}},setup(e){T(e=>({dc49d6bc:e.thicknessGradientId,v0965d8ae:e.thicknessBorderGradientId}));let t=e,n=C(-20),r=C(.1),i=C(.7),a=y(()=>z()),c=y(()=>P.methods.$_signHelpers_thickness(t.config)),l=y(()=>Math.floor(c.value/r.value*i.value)),f=y(()=>N.methods.$_vectorHelper_hasMask(t.config)),p=y(()=>N.methods.$_vectorHelper_getVectorViewBox(t.config.mask,t.config)),m=y(()=>N.methods.$_vectorHelper_hasMask(t.config)?N.methods.$_vectorHelper_getMask(t.config.mask,t.config)?.verticalThicknessScaling||3:1.1),h=y(()=>
2{if(f.value){let e=N.methods.$_vectorHelper_getVectorClipPath(t.config.mask,t.config),n=``,i=N.methods.$_vectorHelper_getVectorViewBox(t.config.mask,t.config),[a,o]=i?i.split(` `).slice(2).map(Number):[t.config.width,t.config.height],s=(t.config.width/a+t.config.height/o)/1.5,c=r.value/s;for(let t=l.value;t>=1;t--){let r=document.createElement(`div`);r.innerHTML=e.trim();let i=r.firstChild,a=`translate(${t*c*-1} ${t*c*m.value})`,o=l.value-t;i.setAttribute(`transform`,a),i.setAttribute(`z-index`,o),n+=i.outerHTML}return n}return null});return(t,i)=>(d(),k(`div`,{class:`item-thickness-wrapper`,style:s({"--thickness":`${o(c)}mm`,"--side-color":o(P).methods.$_signHelpers_sideColor(e.config),"--side-color-shade":o(R)(o(P).methods.$_signHelpers_sideColor(e.config),o(n)),"--border-color":o(P).methods.$_signHelpers_borderColor(e.config),"--border-color-shade":o(R)(o(P).methods.$_signHelpers_borderColor(e.config),o(n))})},[o(f)?(d(),k(D,{key:1},[(d(),k(`svg`,ye,[O(`defs`,null,[O(`linearGradient`,{id:`thickness-side-gradient-${o(a)}`,x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`},[...i[0]||=[O(`stop`,{offset:`0%`,"stop-color":`var(--side-color-shade)`},null,-1),O(`stop`,{offset:`100%`,"stop-color":`var(--side-color)`},null,-1)]],8,be),O(`linearGradient`,{id:`thickness-border-gradient-${o(a)}`,x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`},[...i[1]||=[O(`stop`,{offset:`0%`,"stop-color":`var(--border-color-shade)`},null,-1),O(`stop`,{offset:`100%`,"stop-color":`var(--border-color)`},null,-1)]],8,xe)])])),(d(),k(`svg`,{class:_([`mask-thickness`,{"has-doubled-border":o(P).methods.$_signHelpers_hasDoubledBorder(e.config),"has-first-border":o(P).methods.$_signHelpers_hasBorder(e.config)}]),preserveAspectRatio:`none`,viewBox:o(p),innerHTML:o(h)},null,10,Se))],64)):(d(),k(`div`,{key:0,class:_([`item-thickness`,{"has-doubled-border":o(P).methods.$_signHelpers_hasDoubledBorder(e.config),"has-first-border":o(P).methods.$_signHelpers_hasBorder(e.config)}]),style:s({"border-radius":o(P).methods.$_signHelpers_borderRadius(e.config)})},[(d(!0),k(D,null,u(o(l),e=>(d(),k(`div`,{key:`layer-${e}`,class:`thickness-layer`,style:s({transform:`translateX(${e*o(r)*-1}mm) translateY(${e*o(r)*o(m)}mm)`,zIndex:o(l)-e})},null,4))),128))],6))],4))}},[[`__scopeId`,`data-v-056e99e8`]]);n();var Y={"aria-hidden":`true`,class:`cutout-defs`,style:{position:`absolute`,left:`-9999px`,top:`-9999px`,width:`1px`,height:`1px`,overflow:`visible`,"pointer-events":`none`}},Ce=[`id`],we=[`offset`,`stop-color`],Te=[`id`],Ee=[`fill`],X=[`fill`],De=[`href`],Oe=[`id`,`width`,`height`],Z=[`width`,`height`,`fill`],ke=[`href`,`width`,`height`],Ae={__name:`CutoutDef
2s`,props:{pattern:{type:Object,default:null}},setup(e){let t=e,n=y(()=>{let e=t.pattern?.specular;return e?[...e.matchAll(/(#[0-9a-f]{3,8}|rgba?\([^)]+\))\s+([\d.]+)%/gi)].map(e=>({color:e[1],offset:`${e[2]}%`})):[]});return(t,r)=>{let i=j;return d(),A(i,null,{default:E(()=>[e.pattern?(d(),A(S,{key:0,to:`body`},[(d(),k(`svg`,Y,[O(`defs`,null,[e.pattern&&e.pattern.specular?(d(),k(`linearGradient`,{key:0,id:e.pattern.id+`-spec`,x1:`0`,y1:`0`,x2:`0`,y2:`1`},[(d(!0),k(D,null,u(o(n),(e,t)=>(d(),k(`stop`,{key:`spec-${t}`,offset:e.offset,"stop-color":e.color},null,8,we))),128))],8,Ce)):b(``,!0),e.pattern&&(e.pattern.effect||e.pattern.specular)?(d(),k(`pattern`,{key:1,id:e.pattern.id,patternUnits:`objectBoundingBox`,patternContentUnits:`objectBoundingBox`,x:`0`,y:`0`,width:`1`,height:`1`},[O(`rect`,{width:`1`,height:`1`,fill:e.pattern.color},null,8,Ee),e.pattern.specular?(d(),k(`rect`,{key:0,width:`1`,height:`1`,fill:`url(#${e.pattern.id}-spec)`},null,8,X)):b(``,!0),e.pattern.effect?(d(),k(`image`,{key:1,href:e.pattern.effect.image,x:`0`,y:`0`,width:`1`,height:`1`,preserveAspectRatio:`none`},null,8,De)):b(``,!0)],8,Te)):e.pattern?(d(),k(`pattern`,{key:2,id:e.pattern.id,patternUnits:`userSpaceOnUse`,width:e.pattern.texture?e.pattern.texture.size:e.pattern.plateWidth,height:e.pattern.texture?e.pattern.texture.size:e.pattern.plateHeight},[O(`rect`,{width:e.pattern.texture?e.pattern.texture.size:e.pattern.plateWidth,height:e.pattern.texture?e.pattern.texture.size:e.pattern.plateHeight,fill:e.pattern.color},null,8,Z),e.pattern.texture?(d(),k(`image`,{key:0,href:e.pattern.texture.image,width:e.pattern.texture.size,height:e.pattern.texture.size},null,8,ke)):b(``,!0)],8,Oe)):b(``,!0)])]))])):b(``,!0)]),_:1})}}};n();var je={class:`dns`},Me=2,Ne=3,Pe=B({__name:`SignatureDiscountOtypo`,props:{item:{type:Object,required:!0},bleeding:{type:Number,default:0}},setup(e){T(e=>({v21590e76:o(u),v29ec2c4a:o(l)}));let t=e,{t:n}=i(),r=y(()=>{let e=n(`VARIOUS_CONFIG_WEBSITE_DOMAIN`).split(`.`);return e.shift(),`.${e.join(`.`)}`}),a=y(()=>[`laiton`,`aluminium`,`laiton3mm`].includes(t.item.config.material)),c=y(()=>L().ruler),l=y(()=>`${t.bleeding}mm`),u=y(()=>`${a.value?Ne:Me}mm`),f=e=>{let t={...e};return t.color!==`custom`||!t.bgColor?P.methods.$_signHelpers_textColor(t):(([e,t,n])=>e*.299+t*.587+n*.114>186?`#000000`:`#ffffff`)(ue.hex.rgb(t.bgColor))},p=y(()=>({color:f(t.item.config)})),h=y(()=>({fill:f(t.item.config)}));return(i,a)=>(d(),A(te,{name:`fade`,mode:`out-in`,appear:``},{default:E(()=>[t.item?.discount?.flag===`signature`?(d(),k(`div`,{key:0,class:_([`signature-discount-otypo`,{"with-bleeding":e.bleeding>0}]),style:s(o(p))},[O(`div`,{class:`wrapper`,style:s({...o(P).methods.$_signHelpers_background(t.item.config),...o(c)?{backgroundImage:`none`}:{},backgroundPosition:`center bottom`})},[O(`span`,null,m(o(n)(`SIGN_DISCOUNT_MENTION_TAG`)),1),(d(),k(`svg`,{class:`logo`,style:s(o(h)),preserveAspectRatio:`xMidYMid meet`,viewBox:`0 0 217 47`,xmlns:`http://www.w3.org/2000/svg`},[...a[0]||=[O(`path`,{d:`M97.8812 0.544014C98.1777 0.544014 98.4107 0.631051 98.5801 0.805125C98.7496 0.9792 98.8343 1.21855 98.8343 1.52318V10.1398C98.8343 10.4445 98.7496 10.6838 98.5801 10.8579C98.4107 11.032 98.1777 11.119 97.8812 11.119H87.2065C86.9947 11.119 86.8888 11.2278 86.8888 11.4454V45.2592C86.8888 45.5639 86.804 45.8032 86.6346 45.9773C86.4652 46.1514 86.2322 46.2384 85.9357 46.2384H75.8963C75.5998 46.2384 75.3668 46.1514 75.1974 45.9773C75.028 45.8032 74.9432 45.5639 74.9432 45.2592V11.4454C74.9432 11.2278 74.8373 11.119 74.6255 11.119H64.2685C63.972 11.119 63.739 11.032 63.5696 10.8579C63.4001 10.6838 63.3154 10.4445 63.3154 10.1398V1.52318C63.3154 1.21855 63.4001 0.9792 63.5696 0.805125C63.739 0.631051 63.972 0.544014 64.2685 0.544014H97.8812Z`},null,-1),O(`path`,{d:`M115.592 46.1079C115.295 46.1079 115.062 46.0208 114.893 45.8467C114.723 45.6727 114.638 45.4333 114.638 45.1287V30.7023L114.575 30.3106L101.613 1.71901L101.486 1.19679C101.486 0.761606 101.761 0.544014 102.312 0.544014H113.241C113.791 0.544014 114.172 0.805125 114.384 1.32735L120.421 16.9287C120.548 17.2333 120.675 17.2333 120.802 16.9287L126.838 1.32735C127.05 0.805125 127.431 0.544014 127.982 0.544014H138.974C139.525 0.544014 139.8 0.761606 139.8 1.19679
2L139.673 1.71901L126.584 30.3106C126.542 30.3977 126.52 30.5282 126.52 30.7023V45.1287C126.52 45.4333 126.436 45.6727 126.266 45.8467C126.097 46.0208 125.864 46.1079 125.567 46.1079H115.592Z`},null,-1),O(`path`,{d:`M163.206 0.544014C166.214 0.544014 168.861 1.17503 171.149 2.43707C173.436 3.65559 175.194 5.41809 176.423 7.72456C177.694 9.98752 178.329 12.5986 178.329 15.5579C178.329 18.4736 177.672 21.0412 176.359 23.2607C175.046 25.4801 173.203 27.1991 170.831 28.4176C168.459 29.6361 165.727 30.2454 162.635 30.2454H155.899C155.687 30.2454 155.582 30.3542 155.582 30.5718V45.2592C155.582 45.5639 155.497 45.8032 155.327 45.9773C155.158 46.1514 154.925 46.2384 154.628 46.2384H144.589C144.293 46.2384 144.06 46.1514 143.89 45.9773C143.721 45.8032 143.636 45.5639 143.636 45.2592V1.52318C143.636 1.21855 143.721 0.9792 143.89 0.805125C144.06 0.631051 144.293 0.544014 144.589 0.544014H163.206ZM161.237 20.4537C162.804 20.4537 164.054 20.0403 164.985 19.2134C165.96 18.3431 166.447 17.2116 166.447 15.819C166.447 14.3829 165.96 13.2297 164.985 12.3593C164.054 11.4889 162.804 11.0537 161.237 11.0537H155.899C155.687 11.0537 155.582 11.1625 155.582 11.3801V20.1273C155.582 20.3449 155.687 20.4537 155.899 20.4537H161.237Z`},null,-1),O(`path`,{d:`M197.98 46.973C194.938 46.8303 192.213 46.1213 189.805 44.8458C187.136 43.3662 185.06 41.3208 183.578 38.7097C182.095 36.0551 181.354 32.987 181.354 29.5055V17.2333C181.354 13.8389 182.095 10.8361 183.578 8.22502C185.06 5.61391 187.136 3.5903 189.805 2.15419C192.213 0.878744 194.938 0.169676 197.98 0.0269864C198.854 -0.0139774 199.763 -0.00806645 200.628 0.0430874C203.575 0.217427 206.194 0.921127 208.486 2.15419C211.197 3.5903 213.293 5.61391 214.776 8.22502C216.259 10.8361 217 13.8389 217 17.2333V29.5055C217 32.987 216.259 36.0551 214.776 38.7097C213.293 41.3208 211.197 43.3662 208.486 44.8458C206.194 46.0789 203.575 46.7826 200.628 46.9569C199.763 47.0081 198.854 47.014 197.98 46.973ZM200.628 36.3364C201.731 36.0918 202.656 35.5556 203.402 34.7278C204.504 33.5092 205.054 31.8991 205.054 29.8972V17.1028C205.054 15.1009 204.504 13.5125 203.402 12.3375C202.656 11.479 201.731 10.9229 200.628 10.6693C199.767 10.4714 198.85 10.4537 197.98 10.6094C196.763 10.8276 195.732 11.4036 194.888 12.3375C193.829 13.5125 193.3 15.1009 193.3 17.1028V29.8972C193.3 31.8991 193.829 33.5092 194.888 34.7278C195.732 35.6283 196.763 36.1838 197.98 36.3941C198.85 36.5444 199.766 36.5275 200.628 36.3364Z`},null,-1),O(`path`,{d:`M16.6263 46.973C13.5837 46.8303 10.8586 46.1213 8.45083 44.8458C5.78215 43.3662 3.70651 41.3208 2.2239 38.7097C0.741301 36.0551 0 32.987 0 29.5055V17.2333C0 13.8389 0.741301 10.8361 2.2239 8.22502C3.70651 5.61391 5.78215 3.5903 8.45083 2.15419C10.8586 0.878744 13.5837 0.169676 16.6263 0.0269864C17.4998 -0.0139774 44.8841 -0.00806645 45.7489 0.0430874C48.696 0.217427 51.3153 0.921127 53.6067 2.15419C56.3177 3.5903 58.4145 5.61391 59.8971 8.22502C61.3797 10.8361 62.121 13.8389 62.121 17.2333V29.5055C62.121 32.987 61.3797 36.0551 59.8971 38.7097C58.4145 41.3208 56.3177 43.3662 53.6067 44.8458C51.3153 46.0789 48.696 46.7826 45.7489 46.9569C44.8841 47.0081 17.4998 47.014 16.6263 46.973ZM45.7489 36.3364C46.8525 36.0918 47.7773 35.5556 48.5234 34.7278C49.6248 33.5092 50.1755 31.8991 50.1755 29.8972V17.1028C50.1755 15.1009 49.6248 13.5125 48.5234 12.3375C47.7773 11.479 46.8525 10.9229 45.7489 10.6693C44.8878 10.4714 17.4956 10.4537 16.6263 10.6094C15.4089 10.8276 14.3782 11.4036 13.534 12.3375C12.475 13.5125 11.9455 15.1009 11.9455 17.1028V29.8972C11.9455 31.8991 12.475 33.5092 13.534 34.7278C14.3782 35.6283 15.4089 36.1838 16.6263 36.3941C17.4963 36.5444 44.8865 36.5275 45.7489 36.3364Z`},null,-1)]],4)),O(`span`,je,m(o(r)),1)],4)],6)):b(``,!0)]),_:1}))}},[[`__scopeId`,`data-v-b04ff552`]]);n();var Fe={props:{image:{type:[String,Object],default:``},extruded:{type:Number,default:0},castingSurface:{type:String,default:`matt`}},emits:[`decorator:loaded`],computed:{depthOffsetString(){return this.extruded/4+`mm`},appearanceStyle(){return{filter:`drop-shadow( -${this.extruded*.1}mm ${this.extruded*.2}mm 2px rgb(0 0 0 / 16%)) 
3        drop-shadow(-${this.extruded*.3}mm ${this.extruded*.3}mm 6px rgb(0 0 0 / 10%)) 
4        drop-shadow(${this.extruded*.3}mm -${this.extruded*.2}mm 2px rgb(255 255 255 / 10%))`}}},methods:{getMainImageTransform(){return{top:`-`+this.depthOffsetString,left:this.depthOffsetString}},getDepthTransform(e,t){return{bottom:this.extruded/4/e*t+`mm`,left:this.extruded/4/e*t+`mm`}}}},Ie={class:`decorator-image`},Le=[`src`,`alt`],Re=[`src`,`alt`],ze=[`src`,`alt`];function Be(e,t,n,r,i,a){return d(),k(`div`,Ie,[n.castingSurface===`gross`&&n.extruded?(d(),k(`img`,{key:0,class:`image-reflection`,src:n.image.src,alt:n.image.alt},null,8,Le)):b(``,!0),n.extruded?(d(),k(D,{key:1},u([0,1,2,3],e=>
4O(`img`,{key:`depth-image-layer-${e}`,class:`image-depth depth-layer`,src:n.image.src,alt:n.image.alt,style:s({...a.getDepthTransform(4,e),...e===0?a.appearanceStyle:{}})},null,12,Re)),64)):b(``,!0),O(`img`,{class:`image-top`,src:n.image.src,alt:n.image.alt,style:s({width:n.image.width||null,...a.getMainImageTransform(),...n.extruded?{}:a.appearanceStyle}),onLoad:t[0]||=t=>e.$emit(`decorator:loaded`)},null,44,ze)])}var Q=Object.assign(B(Fe,[[`render`,Be],[`__scopeId`,`data-v-d39189ad`]]),{__name:`DecoratorImage`});n();function Ve({getElement:e,getEl:t,getContentEl:n,getDomSubElement:r=()=>null,getDomMainElement:i=()=>null,getInkRect:a=()=>null}){let o=L(),s=y(()=>o.invertedZoom);function c(){let n=e(),r=t();return{top:n.position.top,left:n.position.left,width:r?.clientWidth||n.size?.width,height:r?.clientHeight||n.size?.height}}function l({top:r,left:i,width:a,height:o}){let c=e(),l=t(),u=n();return{top:(r-u.getBoundingClientRect().top)*s.value||c.position.top,left:(i-u.getBoundingClientRect().left)*s.value||c.position.left,width:a*s.value||l.clientWidth,height:o*s.value||l.clientHeight}}function u(){let{top:e,left:t,width:n,height:r}=c();return{baseTop:e,baseLeft:t,baseWidth:n,baseHeight:r}}function d(){if(!e().position.rotate){let{top:e,left:t,width:n,height:r}=c();return{displayTop:e,displayLeft:t,displayWidth:n,displayHeight:r}}let{top:n,left:r,width:i,height:a}=l(t().getBoundingClientRect());return{displayTop:n,displayLeft:r,displayWidth:i,displayHeight:a}}function f(){let e=r();if(!e)return null;let{top:t,left:n,width:i,height:a}=l(e.getBoundingClientRect());return{baseTop:t,baseLeft:n,baseWidth:i,baseHeight:a}}function p(){let e=r();if(!e)return null;let{top:t,left:n,width:i,height:a}=l(e.getBoundingClientRect());return{displayTop:t,displayLeft:n,displayWidth:i,displayHeight:a}}function m({evt:t,corner:n,line:r,lineHeight:i},a){let o=e(),s=a===`subElement`?{...f(),...p()}:{...u(),...d()};return{x:t.clientX||t.touches[0].clientX,y:t.clientY||t.touches[0].clientY,corner:n,line:r,lineHeight:i,rotate:o.position?.rotate||0,...o.font?{fontSize:o.font.size}:{},...s}}function h({evt:e,sticky:t}){let n=r(),o=i(),s=n?f():u(),c=n?p():d(),m=n?null:a(),h=m?g(m):null;return{element:{...s,...h||c,otherCenter:n?{vertical:{middle:l(o.getBoundingClientRect()).top+l(o.getBoundingClientRect()).height/2}}:null},x:e.touches?e.touches[0].clientX:e.clientX,y:e.touches?e.touches[0].clientY:e.clientY,sticky:t}}function g(e){let t=n().getBoundingClientRect();return{displayTop:(e.top-t.top)*s.value,displayLeft:(e.left-t.left)*s.value,displayWidth:e.width*s.value,displayHeight:e.height*s.value}}return{elementBaseRect:u,elementDisplayRect:d,getElementInitialResizeOffset:m,getElementInitialDragOffset:h}}var $={computeSizeRatio(e,t,n,r,i,a,o=0){let s=(n+Math.min(t*n/r,e))/n,c=s*n,l=s*r;return(c<o||l<o)&&(s=o/Math.min(n,r),c=s*n,l=s*r),c>Math.max(i,n)&&(c=Math.max(i,n),s=c/n,l=s*r),l>Math.max(a,r)&&(l=Math.max(a,n),s=l/r),s},computeSizeRatios(e,t,n,r,i,a,o=0){let s=(n+e)/n,c=(r+t)/r,l=s*n,u=c*r;return l<o&&(s=o/n,l=s*n),u<o&&(c=o/r,u=c*r),l>Math.max(i,n)&&(l=Math.max(i,n),s=l/n),u>Math.max(a,r)&&(u=Math.max(a,n),c=u/r),{x:s,y:c,fixed:this.computeSizeRatio(e,t,n,r,i,a,o)}},computeLengthtRatio(e,t,n,r=0){let i=(t+Math.min(e*t/t))/t,a=i*t;return a<r&&(i=r/t,a=i*t),a>Math.max(n,t)&&(a=Math.max(n,t),i=a/t),i},getDistanceFromCollision(e,t,n){return e.reduce((e,{value:i,position:a})=>{if(!t)return e;let o;if(t[a].length){let e=r(t[a][0],i,n),s=r(t[a][1],i,n);o=Math.abs(e)<Math.abs(s)?e:s}else o=r(t[a],i,n);return Math.abs(o)<Math.abs(e)?o:e},1e4);function r(e,t,n){return e-t*n}},getDiffFromInititalOffset(e,t,n){let{x:r=t.x,y:i=t.y}=this.getCoordinate(e),a=this.getAxisDiff(r,t.x)*n,o=this.getAxisDiff(i,t.y)*n,s=t.rotate||0,c=a,l=o;if(s){let e=-s*Math.PI/180,t=Math.cos(e),n=Math.sin(e);c=a*t-o*n,l=a*n+o*t}return{diffFromOrigin:{x:c,y:l},currentRectPosition:{horizontal:{begining:t.displayLeft+a,middle:t.displayLeft+a+t.displayWidth/2,end:t.displayLeft+a+t.displayWidth},vertical:{begining:t.displayTop+o,middle:t.otherCenter?[t.displayTop+o+t.displayHeight/2,o+t.otherCenter.vertical.middle]:t.displayTo
4p+o+t.displayHeight/2,end:t.displayTop+o+t.displayHeight}}}},getCoordinate(e){return e?{x:e.clientX||(e.touches?e.touches[0].clientX:0),y:e.clientY||(e.touches?e.touches[0].clientY:0)}:{}},getAxisDiff(e,t,n=!1){return(e-t)*(n?-1:1)},getCompoundedLength(e,t){return e+t},getElementSize(e){return{width:F(e.clientWidth),height:F(e.clientHeight),unit:`mm`}},addMoveDragHandler(e){document.addEventListener(`mousemove`,e),document.addEventListener(`touchmove`,e)},removeMoveDragHandler(e){document.removeEventListener(`mousemove`,e),document.removeEventListener(`touchmove`,e)},addEndDragHandler(e){document.addEventListener(`mouseup`,e),document.addEventListener(`touchend`,e),document.addEventListener(`mouseleave`,e)},removeEndDragHandler(e){document.removeEventListener(`mouseup`,e),document.removeEventListener(`touchend`,e),document.removeEventListener(`mouseleave`,e)},magnetizeMm(e,{stepMm:t,toleranceMm:n,disabled:r=!1}={}){if(r||!t)return e;let i=Math.round(e/t)*t;return Math.abs(e-i)<=(n??t/2)?i:e},addKeyDownHandler(e){document.addEventListener(`keydown`,e)},addKeyUpHandler(e){document.addEventListener(`keyup`,e)},removeKeyDownHandler(e){document.removeEventListener(`keydown`,e)},removeKeyUpHandler(e){document.removeEventListener(`keyup`,e)}};n();var He=4;function Ue(e,t,n,r){let i=e+t;return i<n?t-(i-n):i>r?t-(i-r):t}function We({getElement:e,modifyPosition:t,emit:n,getContentEl:r,getElementInitialDragOffset:i}){let a=L(),o=y(()=>a.invertedZoom),s=y(()=>a.collisions),c={x:0,y:0,element:{baseTop:0,baseLeft:0,baseWidth:0,baseHeight:0},sticky:!0},l={x:0,y:0},u=C(!1),d=y(()=>!!u.value);function f(e){let t=e.shiftKey?10:1;switch(e.code){case`ArrowUp`:g({x:0,y:0-t});break;case`ArrowDown`:g({x:0,y:t});break;case`ArrowLeft`:g({x:0-t,y:0});break;case`ArrowRight`:g({x:t,y:0})}}function p(){n(`moving`,!1)}function m(){document.addEventListener(`keydown`,f),document.addEventListener(`keyup`,p)}function h(){document.removeEventListener(`keydown`,f),document.removeEventListener(`keyup`,p)}function g({x:e,y:t,silent:r=!1}){r||n(`moving`,!0),c=i({evt:{clientX:0,clientY:0},sticky:!1}),b(null,{x:e/o.value,y:t/o.value,sticky:!1,silent:r})}function _(t,n=!0){let r=e();!r.position||r.locked||t&&t.touches&&t.touches.length>1||(l={x:t?.clientX??t?.touches?.[0]?.clientX??0,y:t?.clientY??t?.touches?.[0]?.clientY??0},c=i({evt:t,sticky:n}),$.addMoveDragHandler(b),$.addEndDragHandler(v))}function v(){n(`moving`,!1),$.removeMoveDragHandler(b),$.removeEndDragHandler(v),u.value=!1}function b(e,t=null){if(e&&e.touches&&e.touches.length>1&&v(),e&&!u.value){let t=e.clientX??e.touches?.[0]?.clientX??0,r=e.clientY??e.touches?.[0]?.clientY??0;if(Math.hypot(t-l.x,r-l.y)<He)return;u.value=!0,n(`moving`,!0)}let i=r();i&&T(S(x(e,t,i)),t)}function x(e,t,n){let r=t?t.x:e.clientX||(e.touches?e.touches[0].clientX:0),i=t?t.y:e.clientY||(e.touches?e.touches[0].clientY:0),{currentRectPosition:a}=$.getDiffFromInititalOffset(e,{...c.element,...c},o.value);return{x:(r-c.x)*o.value,y:(i-c.y)*o.value,origElement:c.element,container:{width:n.clientWidth,height:n.clientHeight},collisions:s.value,currentRectPosition:a,sticky:c.sticky}}function S({x:e,y:t,origElement:n,container:r,collisions:i,currentRectPosition:a,sticky:o}){return{left:n.baseLeft+w(n.baseLeft,e,{sticky:o,collisions:i.verticals,intersectAxis:a.horizontal},{min:0-n.baseWidth/2,max:r.width-n.baseWidth/2}),top:n.baseTop+w(n.baseTop,t,{sticky:o,collisions:i.horizontals,intersectAxis:a.vertical},{min:0-n.baseHeight/2,max:r.height-n.baseHeight/2})}}function w(e,t,{sticky:n,collisions:r,intersectAxis:i},{min:a,max:s}){if(n){let e=8*o.value,n=$.getDistanceFromCollision(r,i,o.value);Math.abs(n)<e&&(t-=n)}return Ue(e,t,a,s)}function T(e,n){t({...c.element.position,...e},n&&n.silent)}return{isMoving:d,canMove:m,cannotMove:h,startDrag:_,moveProgramatically:g}}var Ge={setup(){return{editorStore:L()}},data(){return{resizeOffset:{x:0,y:0,baseWidth:0,baseHeight:0,baseTop:0,baseLeft:0,baseScale:1,baseShifted:{top:0,left:0},displayWidth:0,displayHeight:0,corner:``},resizing:!1,shiftPressed:!1}},computed:{invertedZoom(){return this.editorStore.invertedZoom},editorCurrentConfig(){return this.editorStore.editorCurrentConfig},isCorner(){return(e=this.resizeOffset.corner)=>e.includes(`-`)},$_holeResize_isResizing(){return!!this.resizing}},watch:{isShiftPressed(e){this.shiftPressed=e}},methods:{setShiftPressed(e){return this.editorStore.setShiftPressed(e)},$_holeResize_startDrag({evt:e,corner:t}){this.isCorner(t)&&this.setShiftPressed(e.shiftKey),this.$emit(`moving`,!0),this.resizeOffset={...this.$_elementRect_getElementInitialResizeOffset({evt:e,corner:t}),diameter:this.element.diameter,baseScale:this.element.custom&&this.element.custom.cropInfos&&this.element.custom.cropInfos.originalToDisplayRatio,baseShifted:this.element.custom&&this.element.custom.cropInfos?this.element.custom.cropInfos:{top:0,left:0}},$.addMoveDragHandler(this.$_holeResize_moveDrag),$.addEndDragHandler(this.$_holeResize_endDrag),this.resizing=!0}
4,$_holeResize_endDrag(){this.setShiftPressed(!1),this.$emit(`moving`,!1),$.removeMoveDragHandler(this.$_holeResize_moveDrag),$.removeEndDragHandler(this.$_holeResize_endDrag),this.resizing=!1},$_holeResize_moveDrag(e){let t=this.$_holeResize_computeSizeRatio(e);this.$_holeResize_applyRatio(Object.assign({ratios:t},this.resizeOffset))},$_holeResize_computeSizeRatio(e){let{diffFromOrigin:t}=$.getDiffFromInititalOffset(e,this.resizeOffset,this.invertedZoom),n=this.resizeOffset.corner.split(`-`),r=n[0],i=this.isCorner()?n[1]:n[0];return $.computeSizeRatios(t.x*([`bottom`,`top`].includes(r)?0:r===`right`?2:-2),t.y*([`left`,`right`].includes(i)?0:i===`bottom`?2:-2),this.resizeOffset.displayWidth,this.resizeOffset.displayHeight,this.$parent.$refs.content.clientWidth*2,this.$parent.$refs.content.clientHeight*2,this.editorCurrentConfig.imageMinSize)},$_holeResize_applyRatio({ratios:e={x:0,y:0,fixed:0},baseTop:t,baseLeft:n,baseWidth:r,baseHeight:i,diameter:a,baseScale:o,baseShifted:s={top:0,left:0}}){let c=this.shiftPressed&&this.isCorner()||this.element.fixedRatio!==!1;this.modifyCustomHole({position:Object.assign({},this.element.position,{top:t-(i*(c?e.fixed:e.y)-i)/2,left:n-(r*(c?e.fixed:e.x)-r)/2}),size:{width:r*(c?e.fixed:e.x),height:i*(c?e.fixed:e.y)},diameter:Math.round(a*(c?e.fixed:e.x)*10)/10,...this.element.custom?{custom:{...this.element.custom,cropInfos:{...this.element.custom.cropInfos,top:s.top*(c?e.fixed:e.y),left:s.left*(c?e.fixed:e.x),originalToDisplayRatio:o*e.fixed}}}:{}})}}};n();var Ke=[`id`],qe=B({__name:`DecoratorField`,props:{decorator:{type:Object,required:!0},item:{type:Object,required:!0},clickable:{type:Boolean,default:!1}},emits:[`moving`],setup(e,{expose:t,emit:n}){let i=e,a=n,c=L(),f=ie(),m=ae().POSITION_OFFSET_LIMIT,h=p(),g=C(.1),b=C(.5),x=C(1.1),S=C(-20),w=y(()=>P.methods.$_signHelpers_materialData(i.item.config.material)),T=y(()=>Math.floor(E.value/g.value*b.value)+1),E=y(()=>P.methods.$_signHelpers_thickness(i.item.config)),te=y(()=>c.editorAction),ne=y(()=>c.ruler),j=y(()=>c.isEltFocused(`custom-hole`,V.value)),N=y(()=>i.item.elements),I=y(()=>N.value[V.value]),re=y(()=>i.decorator.top),oe=y(()=>i.decorator.customPositions?.top),se=y(()=>i.decorator.bottom),ce=y(()=>i.decorator.left),le=y(()=>i.decorator.customPositions?.left),z=y(()=>i.decorator.customDiameter),ue=y(()=>!!i.decorator.locked),B=y(()=>i.decorator.right),V=y(()=>i.decorator.index),de=y(()=>i.decorator.holePreset),fe=y(()=>i.decorator.transform),H=y(()=>i.item.config?.fixing?.name===`feet`),U=y(()=>i.item.config.fixing?.options?.holes===`custom`),W=y(()=>I.value?.id||null),pe=y(()=>P.methods.$_signHelpers_getCustomHoleList(N.value)),G=y(()=>P.methods.$_signHelpers_getFixingDecoratorImage(i.item.config)),me=y(()=>P.methods.$_signHelpers_getFixingDecoratorHole(i.item.config)),he=y(()=>P.methods.$_signHelpers_holeVolumeEffect(i.item.config)),ge=y(()=>P.methods.$_signHelpers_editorBackground({...i.item})),_e=()=>I.value,K=()=>h.proxy.$parent?.$refs?.content||null,ve=Ve({getElement:_e,getEl:()=>h.proxy.$el,getContentEl:K});ee(j,e=>{e&&Oe()}),ee(te,([e,t]=[])=>{if(!(!e||!j.value))switch(e){case`modifyCustomHole`:Y(t);break;case`clickSelectedDecorator`:xe(t);break;case`startDrag`:Se(t);break;case`startResize`:J(t);break;case`modifyEntrax`:Ee(t);break;case`modifyPosition`:if(t&&typeof t.index==`number`&&t.index!==V.value)return;Te(typeof t?.position==`object`?t.position:t)}}),v(()=>{Oe(),j.value&&j.value.displace&&Z.moveProgramatically(j.value.displace),j.value&&j.value.fixOversize&&r(()=>X())}),l(()=>{Z.cannotMove()});let q=e=>f.modifyElement(e),ye=(e,t)=>{i.clickable&&(t.stopPropagation(),t.preventDefault(),j.value?c.removeFocusedItem({type:`custom-hole`,index:P.methods.$_signHelpers_getAllElementsIndex(N.value,e)}):c.focusElement({type:`custom-hole`,index:P.methods.$_signHelpers_getAllElementsIndex(N.value,e),id:e,state:`selected`,exclusive:!t.shiftKey}),ne.value||c.setRulerStatus(!0))},be=e=>{i.clickable&&e.stopPropagation()},xe=e=>{j.value&&c.removeFocusedItem({type:`custom-hole`,index:e})},Se=e=>{j.value||c.focusElement({type:`custom-hole`,index:V.value,holeIndex:holeIndex.value,exclusive:!e.shiftKey}),e?.altKey&&c.duplicateElement(),ue.value||Z.startDrag(e,c.focusedItems.length===1)},J=({evt:e,corner:t})=>{Ge.methods.$_holeResize_startDrag({evt:e,corner:t,diameter})},Y=e=>{q({patch:e,index:V.value,type:`custom-hole`})},Ce=y(()=>{let e=i.item?.config;return!e?.width||!e?.height?null:P.methods.$_signHelpers_dimensions(e)}),we=e=>{let t={...I.value.position,...e};if(!U.value||!Ce.value)return t;let{width:n,height:r}=Ce.value,i=(I.value?.diameter??0)/2,a=m+i,o=n-m-i,s=m+i,c=r-m-i;if(typeof t.left==`number`){let e=F(t.left);t.left=M(Math.max(a,Math.min(o,e)),!1)}
4if(typeof t.top==`number`){let e=F(t.top);t.top=M(Math.max(s,Math.min(c,e)),!1)}return t},Te=e=>{if(!e||typeof e!=`object`)return;let t=we(e);Y({position:t})},Ee=({index:e,patch:{entrax:t}})=>{if(e!==V.value)return;let n=Number(t);if(!Number.isFinite(n))return;let r=(c.focusedItems||[]).filter(({type:e})=>e===`custom-hole`);if(r.length!==2)return;let[i,a]=r.map(({index:e})=>e).sort((e,t)=>e-t),o=N.value[i],s=N.value[a];if(!o?.position||!s?.position)return;let l=s.position.left-o.position.left,u=s.position.top-o.position.top,d=Math.abs(l)>=Math.abs(u),f=M(n),p=(d?l===0?1:Math.sign(l):u===0?1:Math.sign(u))*f/2;if(d){let e=(o.position.left+s.position.left)/2,t=V.value===i?e-p:e+p;Y({position:{...I.value.position,left:t}})}else{let e=(o.position.top+s.position.top)/2,t=V.value===i?e-p:e+p;Y({position:{...I.value.position,top:t}})}},X=()=>{if(!U.value)return;let e=ve.elementDisplayRect(),t={width:K()?.clientWidth||0,height:K()?.clientHeight||0};if(!t.width||!t.height){setTimeout(X,100);return}let n=1,i=e.displayHeight;if(e.displayWidth>t.width&&(n=t.width/e.displayWidth,i=n*e.displayHeight),i>t.height&&(n=t.height/e.displayHeight),n!==1){let e=I.value.custom&&I.value.custom.cropInfos?I.value.custom.cropInfos.originalToDisplayRatio||I.value.size.width/I.value.baseSize.width:null;Ge.methods.$_holeResize_applyRatio({ratios:{x:n,y:n,fixed:n},baseTop:I.value.position.top,baseLeft:I.value.position.left,baseWidth:I.value.size.width,baseHeight:I.value.size.height,baseScale:e}),r(()=>X());return}let a={x:0,y:0};e.displayLeft<M(m)+e.displayWidth/2&&(a.x=M(m)+e.displayWidth/2-e.displayLeft),e.displayLeft+M(m)>t.width&&(a.x=t.width-M(m)-e.displayLeft),e.displayTop<M(m)+e.displayHeight/2&&(a.y=M(m)+e.displayHeight/2-e.displayTo
4p),e.displayTop+M(m)>t.height&&(a.y=t.height-M(m)-e.displayTop),(a.x!==0||a.y!==0)&&Y({position:Object.assign({},I.value.position,{top:I.value.position.top+a.y,left:I.value.position.left+a.x})})},De=e=>({rect:document.querySelector(`.item-display`)?.querySelector(`[id='${e}']`)?.getBoundingClientRect()}),Oe=()=>{if(!j.value)return;let e=De(j.value.id)?.rect;if(!e)return;let t=pe.value.map(({id:e,...t})=>({...t,id:e,...De(e)})).filter(({id:e})=>e!==j.value.id).map(({rect:e})=>e),n=e.left+e.width/2,r=e.top+e.height/2,i=e.width/2,a=t.reduce((e,t)=>{if(!t)return e;let a=t.left+t.width/2,o=t.top+t.height/2,s=t.width/2;return Math.sqrt((a-n)**2+(o-r)**2)<i+s&&e.push(!0),e},[]);q({patch:{collisionError:a.some(e=>!!e)},index:V.value,type:`custom-hole`})},Z=We({getElement:_e,modifyPosition:Te,emit:a,getContentEl:K,getElementInitialDragOffset:ve.getElementInitialDragOffset});return t({index:V}),(e,t)=>{let n=Q;return d(),k(`div`,{id:o(W),ref:`decorator`,class:_([`decorator`,{"--locked":o(ue),"--selected":o(U)&&o(j),"--custom":o(U),"--foot":o(H)}]),style:s({top:o(re),right:o(B),bottom:o(se),left:o(ce),...o(oe)?{top:`${o(oe)}px`}:{},...o(le)?{left:`${o(le)}px`}:{},transform:`${o(fe)} ${o(H)?o(de)===`right-corner-foot`?`scaleX(-1)`:``:o(G)?`scale(0.5)`:``}`,...o(me)&&!o(G)?{...o(me)}:{},...o(z)?{width:`${o(z)}mm`,height:`${o(z)}mm`}:{}}),onClick:t[0]||=e=>be(e),onMousedown:t[1]||=e=>ye(o(W),e),onTouchstart:t[2]||=e=>ye(o(W),e)},[o(G)?(d(),A(n,{key:0,image:o(G).image,extruded:o(G).extruded,"casting-surface":o(G).castingSurface},null,8,[`image`,`extruded`,`casting-surface`])):o(P).methods.$_signHelpers_hasThickness(i.item.config)?(d(),k(`div`,{key:1,class:_([`thickness-layers`,{"has-doubled-border":o(P).methods.$_signHelpers_hasDoubledBorder(i.item.config),"has-first-border":o(P).methods.$_signHelpers_hasBorder(i.item.config),"has-shadow":o(P).methods.$_signHelpers_hasShadow(i.item.config)}]),style:s({"--side-color":o(P).methods.$_signHelpers_sideColor(i.item.config),"--side-color-shade":o(R)(o(P).methods.$_signHelpers_sideColor(i.item.config),o(S)),"--border-color":o(P).methods.$_signHelpers_borderColor(i.item.config),"--border-color-shade":o(R)(o(P).methods.$_signHelpers_borderColor(i.item.config),o(S))})},[(d(!0),k(D,null,u(o(T),e=>(d(),k(`div`,{key:`layer-${e}`,class:_({"thickness-layer":e!==o(T),"hole-background":e===o(T)}),style:s({transform:`translateX(${e*o(g)*-1}mm) translateY(${e*o(g)*o(x)}mm)`,...e===o(T)?{...o(ge)}:{}})},null,6))),128))],6)):(d(),k(`div`,{key:2,class:_([`thickness-layers has-shadow`,{"white-shadow":[`plexitrans`].includes(o(w).type)}])},[O(`div`,{class:`hole-background`,style:s({...o(ge),...o(he)})},null,4)],2))],46,Ke)}}},[[`__scopeId`,`data-v-3a0f4a69`]]);n();var Je={key:0,class:`editor-xxltresholds-separators`},Ye=[`height`],Xe=[`stroke-dasharray`,`stroke-width`],Ze=[`width`],Qe=[`stroke-dasharray`,`stroke-width`],$e=B({__name:`EditorXXLTresholdsSeparators`,props:{config:{type:Object,required:!0},stroke:{type:Number,default:4}},setup(e){let t=e,n=y(()=>P.methods.$_signHelpers_materialData(t.config.material)),r=y(()=>n.value?.tresholdXXL||{}),i=y(()=>{let e=r.value?.height,n=t.config.height;return Math.floor(n/e)}),a=y(()=>{let e=r.value?.width,n=t.config.width;return Math.floor(n/e)}),c=y(()=>e=>`${100/(a.value+1)*e}%`),l=y(()=>e=>`${100/(i.value+1)*e}%`),f=y(()=>`${t.stroke*2} , ${t.stroke*1}`);return(e,n)=>(d(),A(te,{name:`fade`,appear:``},{default:E(()=>[o(i)||o(a)?(d(),k(`div`,Je,[o(i)?(d(!0),k(D,{key:0},u(o(i),e=>(d(),k(`div`,{key:`horizontal-${e}`,class:`editor-separator separator-horizontal`,style:s(o(i)>1?{top:o(l)(e)}:{})},[(d(),k(`svg`,{height:t.stroke,width:`1000000`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[O(`line`,{"stroke-dasharray":o(f),x1:`0`,y1:`1`,x2:`1000000`,y2:`1`,"stroke-width":t.stroke},null,8,Xe)],8,Ye))],4))),128)):b(``,!0),o(a)?(d(!0),k(D,{key:1},u(o(a),e=>(d(),k(`div`,{key:`vertical-${e}`,class:`editor-separator separator-vertical`,style:s(o(a)>1?{left:o(c)(e)}:{})},[(d(),k(`svg`,{width:t.stroke,height:`1000000`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[O(`line`,{"stroke-dasharray":o(f),x1:`1`,y1:`0`,x2:`1`,y2:`1000000`,"stroke-width":t.stroke},null,8,Qe)],8,Ze))],4))),128)):b(``,!0)])):b(``,!0)]),_:1}))}},[[`__scopeId`,`data-v-a1667e23`]]);n();var et={props:{colors:{type:Array,required:!0}}},tt={width:`0`,height:`0`,class:`image-filters`},nt=[`id`],rt=[`flood-color`];function it(e,t,n,r,i,o){return d(),k(`svg`,tt,[(d(!0),k(D,null,u(n.colors,e=>(d(),k(`filter`,{key:`black-replace-`+e,id:`black-replace-`+e,"color-interpolation-filters":`sRGB`},[t[0]||=a(`<feComponentTransfer data-v-84bc42d8><feFuncR tableValues="1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" type="discrete" data-v-84bc42d8></feFuncR><feFuncG tableValues="1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" type="discrete" data-v-84bc42d8></feFuncG><feFuncB tableValues="1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0" type="discrete" data-v-84bc42d8></feFuncB></feComponentTransfer><feColorMatrix type="matrix" values="1 0 0 0 0
5                0 1 0 0 0
6                0 0 1 0 0
7                1 1 1 1 -3" result="selectedColor" data-v-84bc42d8></feColorMatrix><feComposite operator="out" in="SourceGraphic" result="notSelectedColor" data-v-84bc42d8></feComposite>`,3),O(`feFlood`,{"flood-color":e,"flood-opacity":`1`},null,8,rt),t[1]||=O(`feComposite`,{operator:`in`,in2:`selectedColor`},null,-1),t[2]||=O(`feComposite`,{operator:`over`,in2:`notSelectedColor`},null,-1)],8,nt))),128)),t[3]||=a(`<filter id="white-replace" color-interpolation-filters="sRGB" data-v-84bc42d8><feComponentTransfer data-v-84bc42d8><feFuncR tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1" type="discrete" data-v-84bc42d8></feFuncR><feFuncG tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1" type="discrete" data-v-84bc42d8></feFuncG><feFuncB tableValues="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1" type="discrete" data-v-84bc42d8></feFuncB></feComponentTransfer><feColorMatrix type="matrix" values="1 0 0 0 0
8               0 1 0 0 0
9               0 0 1 0 0
10               1 1 1 1 -3" result="selectedColor" data-v-84bc42d8></feColorMatrix><feComposite operator="out" in="SourceGraphic" result="notSelectedColor" data-v-84bc42d8></feComposite><feFlood flood-color="white" flood-opacity="0" data-v-84bc42d8></feFlood><feComposite operator="in" in2="selectedColor" data-v-84bc42d8></feComposite><feComposite operator="over" in2="notSelectedColor" data-v-84bc42d8></feComposite></filter>`,1)])}var at=Object.assign(B(et,[[`render`,it],[`__scopeId`,`data-v-84bc42d8`]]),{__name:`ImageFilters`}),ot=t({default:()=>bt});n();var st=e(se()),ct=c(()=>ne(()=>import(`./BEqPW3De2.js`).then(e=>e.default||e),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url)),lt=.55,ut=900,dt=.62,ft=1.2,pt={components:{ItemBorder:fe,ItemRoundedText:H,ItemText:U,ItemImage:W,ItemQRCode:pe,ImageFilters:at,DecoratorImage:Q,EditorXXLTresholdsSeparators:$e,ItemThickness:J},mixins:[G,P],props:{item:{type:Object,required:!0},adjustHeight:{type:Boolean,default:!1},padding:{type:Number,default:0},centeredPreview:{type:Boolean,default:!1},heightOffset:{type:Number,default:null},itemPreviewMode:{type:Boolean,default:!1},small:{type:Boolean,default:!1},fixedSize:{type:Boolean,default:!1},simplePreview:{type:Boolean,default:!1},freeHand:{type:Boolean,default:!1},freeHandPositions:{type:Object,default:()=>{}},forcedZoom:{type:Number,default:null}},emits:[`zoom:setted`],setup(){return{editorStore:L()}},data(){return{thicknesses:[6,3,2],zoom:1,initialWidth:null,targetWidth:null,time:0,maxZoom:1,observer:null,checkSizeRaf:null,resizeDebounceRaf:null}},computed:{showXXLTresholds(){return this.editorStore.showXXLTresholds},defaultConfig(){return I.getter.getDefaultConfigByItem(this.item)},imageFiltersColor(){return this.$_itemDisplay_getImageFiltersColor(this.defaultConfig)},isAdjusted(){return this.adjustHeight||typeof this.heightOffset==`number`},isStampingPreview(){return this.itemPreviewMode&&this.item===`stamping`},initialZoom(){let{width:e}=this.$_itemDisplay_getItemDimensions({...this.item.content,type:this.item.type});return e},isSign(){return this.item.type===`sign`},isCutout(){return this.isSign&&!!this.item.config.cutout},cutoutNo3d(){return this.isCutout&&!oe(this.item)},cutoutTextScale(){return ce(this.item?.config)},cutoutSceneShadow(){return!this.isCutout||!this.itemPreviewMode||this.$_itemDisplay_itemStyles?.filter?null:`drop-shadow(-1.5mm 1.5mm 2mm rgba(0, 0, 0, 0.26)) drop-shadow(-4.5mm 4.5mm 8mm rgba(0, 0, 0, 0.17))`},cutoutPattern(){return this.isSign?P.methods.$_signHelpers_cutoutPattern(this.item.config):null},cutoutReliefCss(){return this.isSign?P.methods.$_signHelpers_cutoutReliefCss(this.item.config):null},cutoutBevelCss(){return this.isSign?P.methods.$_signHelpers_cutoutBevelCss(this.item.config):null},isWoodAndMonochrome(){return!this.item.config.quadricolor&&this.item.config.material===`bois`},hasThickness(){return this.$_signHelpers_hasThickness(this.item.config)},hasMask(){return N.methods.$_vectorHelper_hasMask(this.item.config)},hasBevel(){return this.item.config?.finishes?.beveled},fixingIsFeet(){return this.item.config.fixing?.name===`feet`},fixingIsStand(){return this.item.config.fixing?.name===`stand`},getMaskScale(){return`scale(calc(1 / ${N.methods.$_vectorHelper_getMask(this.item.config.mask,this.item.config).width}), calc(1 / ${N.methods.$_vectorHelper_getMask(this.item.config.mask,this.item.config).height}))`},getMaskBorder(){return N.methods.$_vectorHelper_getVectorClipPath(this.item.config.mask,this.item.config).trim()},getMaskViewBox(){return N.methods.$_vectorHelper_getVectorViewBox(this.item.config.mask,this.item.config)},getZoom(){return this.forcedZoom??this.zoom},getOffset(){return this.freeHandPositions?.x&&this.freeHandPositions?.y?this.freeHandPositions:{x:0,y:0}},maskID(){return`clip-path-${this.item.id}-preview-${this.randomID}`},randomID(){return Math.random()*1e3},showTresholdsSeparators(){return this.$_signHelpers_isXXLMode(this.item.config)&&!!this.showXXLTresholds},customHoles(){return this.$_signHelpers_isCustomHole(this.item.config)},allElements(){return this.item.elements},customHolesList(){return this.$_signHelpers_getCustomHoleList(this.allElements)}},mounted(){this.observer=new ResizeObserver(()=>{this.resizeDebounceRaf&&cancelAnimationFrame(this.resizeDebounceRaf),this.resizeDebounceRaf=requestAnimationFrame(this.handlePreviewResize)}),this.isStampingPreview||window.addEventListener(`resize`,this.handleResize),this.$nextTick(()=>{this.handlePreviewResize(),this.$refs.itemContainer&&this.observer.observe(this.$refs.itemContainer)})},unmounted(){window.removeEventListener(`resize`,this.handleResize),this.observer&&this.observer.disconnect(),this.checkSizeRaf&&cancelAnimationFrame(this.checkSizeRaf),this.resizeDebounceRaf&&cancelAnimationFrame(this.resizeDebounceRaf)},methods:{handlePreviewResize(){this.isStampingPreview||this.handleResize(),this.initialWidth=this.$refs.item?.getBoundingClientRect().width,this.targetWidth=this.initialWidth*this.zoom,this.checkSize(),this.isStampingPreview&&this.targetWidth<200&&(this.zoom=1.5)},handleResize(){if(!this.$refs.item||!this.$el.parentElement)return;let e=window.innerWidth,t=this.getPadding(e),n=(this.$el.parentElement.parentElement&&this.$el.parentElement.parentElement.parentElement)?.getBoundingClientRect(),r=this.$el.parentElement.clientWidth,i=r-2*t,a=this.$el.parentElement.clientHeight-2*t,o=typeof this.heightOffset==`number`&&n?n.height-2*this.padding-this.heightOffset:a,s=this.$refs.item.clientWidth,c=this.$refs.item.clientHeight,{clientWidth:l,clientHeight:u}=this.$_itemDisplay_decoratorAsBase&&(this.$refs.DecoratorImage?.[0]||this.$refs.DecoratorImage||this.$refs.DecoratorField?.[0]||this.$refs.DecoratorField)||{};this.maxZoom=this.fixedSize?1:r/s-(this.small?0:-.1);let d=Math.max(s,l||0),f=Math.max(c,c+(u||0)),p={width:i/d,height:a/f,visibleHeight:o/c};if(this.zoom=Math.min(Math.min(p.width,p.visibleHeight,this.maxZoom),this.adjustHeight?Math.min(p.height,this.maxZoom):this.maxZoom),this.isCutout&&this.itemPreviewMode&&this.item.config.width>0&&this.item.config.height>0){let e=le(this.item.config);if(e.width>0&&e.height>0){let t=e.width>=ut?dt:lt;this.zoom=Math.min(this.zoom,t*ft*i/(s*e.width/this.item.config.width),t*a/(c*e.height/this.item.config.height))}}},getPadding(e){switch(!0){case e>=660:return this.padding*2;case e>=420:return this.padding*1.5;default:return this.padding}},checkSize(){this.time+=1;let e=this.time>=5,[t,n]=[this.targetWidth-10,this.targetWidth+10];if(this.$refs.item&&!mt(this.$refs.item?.getBoundingClientRect().width,[t,n])&&!e){this.checkSizeRaf=requestAnimationFrame(this.checkSize);return}this.$nextTick(()=>this.$emit(`zoom:setted`,this.zoom))},getHash(){return(0,st.default)(this.item)},typeComponent(e){switch(e){case`rounded-text`:return`ItemRoundedText`;case`qrcode`:return`ItemQRCode`}if(e)return`Item`+e.charAt(0).toUpperCase()+e.slice(1)},getAllElementsIndex(e){return this.$_signHelpers_getAllElementsIndex(this.allElements,e)}}};function mt(e,[t,n]){return e>=t&&e<=n}var ht=[`src`],gt=[`viewBox`],_t=[`id`,`innerHTML`],vt=[`viewBox`,`innerHTML`];function yt(e,t,n,r,i,a){let o=q,c=j,l=J,f=Ae,p=fe,m=H,v=U,y=W,S=ct,C=Pe,w=qe,T=Q,ee=$e,te=at;return d(),k(`div`,{class:_([[{"--adjust-height":a.isAdjusted},`--type-`+n.item.type],`item-preview`]),style:s({"--item-offset-x":`${a.getOffset.x}px`,"--item-offset-y":`${a.getOffset.y}px`}),translate:`no`},[g(c,null,{default:E(()=>[n.item&&n.item.documentId?(d(),A(o,{key:0,"mod
10el-id":n.item.documentId,slug:n.item.name,type:n.item.type,"force-edition-mode":!0,onClick:t[0]||=x(()=>{},[`stop`,`prevent`])},null,8,[`model-id`,`slug`,`type`])):b(``,!0)]),_:1}),e.$_itemDisplay_decoratorAsBase&&!n.simplePreview&&!(a.isSign&&n.item.config.cutout)?(d(),k(`div`,{key:0,class:_([`item-shadows`,{"--stand":a.fixingIsStand}]),style:s({transform:`translate(var(--item-offset-x), var(--item-offset-y)) scale(${a.getZoom})`,width:`${e.$_itemDisplay_dimensions.width}mm`,height:`${e.$_itemDisplay_dimensions.height}mm`})},[...t[3]||=[O(`div`,{class:`shadow shadow-soft`},null,-1),O(`div`,{class:`shadow shadow-hard`},null,-1)]],6)):b(``,!0),e.$_itemDisplay_isDecoratable&&e.$_itemDisplay_decoratorImage.subImage?(d(),k(`div`,{key:1,class:`item-sub-decorators`,style:s({transform:`translate(var(--item-offset-x), var(--item-offset-y)) scale(${a.getZoom})`,width:`${e.$_itemDisplay_dimensions.width}mm`,height:`${e.$_itemDisplay_dimensions.height}mm`})},[(d(!0),k(D,null,u(e.$_itemDisplay_decoratorPositions,({top:t,right:n,bottom:r,left:i,transform:o},c)=>(d(),k(`img`,{key:`decorator-sub-`+c,class:_([`decorator`,{"--foot":a.fixingIsFeet}]),src:e.$_itemDisplay_decoratorImage.subImage.src,style:s({top:t,right:n,bottom:r,left:i,transform:`${o} ${a.fixingIsFeet?c===`right-corner-foot`?`scaleX(-1)`:``:`scale(0.5)`}`,width:e.$_itemDisplay_decoratorImage.subImage.width||null})},null,14,ht))),128))],4)):b(``,!0),O(`div`,{ref:`itemContainer`,class:_([`item-container`,e.$_itemDisplay_containerClasses]),style:s({...e.$_itemDisplay_containerStyles})},[a.isSign&&a.hasMask&&n.item.config.maskCustom?.name?(d(),k(`svg`,{key:0,width:`0`,height:`0`,preserveAspectRatio:`none`,class:`custom-clip-path`,viewBox:a.getMaskViewBox},[O(`clipPath`,{id:`clip-path-${n.item.config.maskCustom.name}`,clipPathUnits:`objectBoundingBox`,style:s({transform:a.getMaskScale}),innerHTML:a.getMaskBorder},null,12,_t)],8,gt)):b(``,!0),a.isSign&&a.hasThickness&&!n.item.config.cutout?(d(),A(l,{key:1,config:n.item.config,style:s({width:`${e.$_itemDisplay_dimensions.width}mm`,height:`${e.$_itemDisplay_dimensions.height}mm`,transform:`translate(var(--item-offset-x), var(--item-offset-y)) scale(${a.getZoom})`})},null,8,[`config`,`style`])):b(``,!0),O(`div`,{ref:`item`,style:s({transform:`translate(var(--item-offset-x), var(--item-offset-y)) scale(${a.getZoom})`,width:`${e.$_itemDisplay_dimensions.width}mm`,height:`${e.$_itemDisplay_dimensions.height}mm`,color:e.$_itemDisplay_contentColor,padding:(n.item.securityZone||a.defaultConfig.securityZone)+`mm`,"font-size":a.defaultConfig.fontSize.default+`mm`,"-webkit-text-stroke-color":e.$_itemDisplay_contentColor,...e.$_itemDisplay_itemStyles,...a.cutoutPattern?{"--cutout-pat-url":`url(#${a.cutoutPattern.id})`}:{},...a.cutoutReliefCss?{"--cutout-relief-css":a.cutoutReliefCss}:{},...a.cutoutBevelCss?{"--cutout-bevel-css":a.cutoutBevelCss}:{},...a.isCutout?{"--cutout-text-scale":a.cutoutTextScale}:{},...a.cutoutSceneShadow?{filter:a.cutoutSceneShadow}:{}}),class:_([{"--cutout":a.isCutout,"--ios-cutout":a.isCutout&&e.iosCutoutMode,"--cutout-no-3d":a.cutoutNo3d,...e.$_itemDisplay_itemClasses},`item`])},[g(f,{pattern:a.cutoutPattern},null,8,[`pattern`]),O(`div`,{ref:`content`,class:_([{"--monochrome-wood":a.isSign&&a.isWoodAndMonochrome},`content`])},[(d(!0),k(D,null,u(n.item.elements||[],(t,r)=>(d(),A(h(a.typeComponent(t.eltType)),{key:`element-${t.id}-${r}`,border:t,"rounded-text":t,text:t,image:t,"qr-element":t,item:n.item,"mask-id":a.maskID,color:e.$_itemDisplay_contentColor,"item-id":n.item.id||a.getHash(),"default-config":a.defaultConfig,cutout:a.isCutout},null,8,[`border`,`rounded-text`,`text`,`image`,`qr-element`,`item`,`mask-id`,`color`,`item-id`,`default-config`,`cutout`]))),128)),(d(!0),k(D,null,u(n.item.borders||[],t=>(d(),A(p,{key:`itemBorder-${t.id}`,ref_for:!0,ref:`itemBorder`,border:t,color:e.$_itemDisplay_contentColor,"default-config":a.defaultConfig},null,8,[`border`,`color`,`default-config`]))),128)),(d(!0),k(D,null,u(n.item[`rounded-texts`]||[],t=>(d(),A(m,{key:`itemRoundedText-${t.id}`,ref_for:!0,ref:`itemRoundedText`,"rounded-text":t,color:e.$_itemDisplay_contentColor,"item-id":n.item.id||a.getHash(),"default-config":a.defaultConfig},null,8,[`rounded-text`,`color`,`item-id`,`default-config`]))),128)),(d(!0),k(D,null,u(n.item.texts||[],e=>(d(),A(v,{key:`itemText-${e.id}`,ref_for:!0,ref:`itemText`,text:e,"default-config":a.defaultConfig},null,8,[`text`,`default-config`]))),128)),(d(!0),k(D,null,u(n.item.images||[],t=>(d(),A(y,{key:`itemImage-${t.id}`,ref_for:!0,ref:`itemImage`,image:t,color:e.$_itemDisplay_contentColor,"default-config":a.defaultConfig,cutout:a.isCutout}
10,null,8,[`image`,`color`,`default-config`,`cutout`]))),128)),e.$_itemDisplay_embededContent?(d(),A(S,{key:0,ref:`itemEmbededContent`,class:`--shift-top-left --cursor-inherit`,config:e.$_itemDisplay_embededContent,color:e.$_itemDisplay_innerColor},null,8,[`config`,`color`])):b(``,!0)],2),a.isSign&&!n.item.config.cutout?(d(),A(C,{key:0,class:`signature-otypo`,item:n.item},null,8,[`item`])):b(``,!0)],6),a.isSign&&a.hasBevel&&a.hasMask?(d(),k(`svg`,{key:2,class:`mask-bevel`,preserveAspectRatio:`none`,viewBox:a.getMaskViewBox,style:s({width:`calc(${e.$_itemDisplay_dimensions.width}mm + .5px - var(--bevel-thickness))`,height:`calc(${e.$_itemDisplay_dimensions.height}mm + .5px - var(--bevel-thickness))`,transform:`translate(var(--item-offset-x), var(--item-offset-y)) scale(${a.getZoom}) ${e.isIE?`translate(-50%, -50%)`:``}`,...e.$_itemDisplay_bevelVariable}),innerHTML:a.getMaskBorder},null,12,vt)):b(``,!0)],6),e.$_itemDisplay_isDecoratable?(d(),k(`div`,{key:2,class:`item-decorators`,style:s({transform:`translate(var(--item-offset-x), var(--item-offset-y)) scale(${a.getZoom})`,width:`${e.$_itemDisplay_dimensions.width}mm`,height:`${e.$_itemDisplay_dimensions.height}mm`})},[a.customHoles?(d(!0),k(D,{key:0},u(a.customHolesList,({id:r,position:i,diameter:o},s)=>(d(),A(w,{ref_for:!0,ref:`DecoratorField`,key:`decorator-custom-${r}`,item:n.item,decorator:{index:a.getAllElementsIndex(r),holeIndex:s,customPositions:i,customDiameter:o},onMoving:t[1]||=t=>e.moving=t},null,8,[`item`,`decorator`]))),128)):(d(!0),k(D,{key:1},u(e.$_itemDisplay_decoratorPositions,({top:r,right:i,bottom:a,left:o,transform:s},c)=>(d(),A(w,{key:`decorator-`+c,ref_for:!0,ref:`DecoratorField`,item:n.item,decorator:{top:r,right:i,bottom:a,left:o,transform:s,holePreset:c},onMoving:t[2]||=t=>e.moving=t},null,8,[`item`,`decorator`]))),128)),Object.entries(e.$_itemDisplay_decoratorPositions).length===0?(d(),k(`div`,{key:2,ref:`DecoratorImage`,class:_([`decorator`,{"--stand":a.fixingIsStand}])},[g(T,{image:e.$_itemDisplay_decoratorImage.image,extruded:e.$_itemDisplay_decoratorImage.extruded,"casting-surface":e.$_itemDisplay_decoratorImage.castingSurface},null,8,[`image`,`extruded`,`casting-surface`])],2)):b(``,!0)],4)):b(``,!0),a.showTresholdsSeparators?(d(),A(ee,{key:3,config:n.item.config,stroke:2,style:s({width:e.$_itemDisplay_dimensions.width*a.getZoom+`mm`,height:e.$_itemDisplay_dimensions.height*a.getZoom+`mm`,transform:`translate(var(--item-offset-x), var(--item-offset-y))`})},null,8,[`config`,`style`])):b(``,!0),a.imageFiltersColor.length?(d(),A(te,{key:4,colors:a.imageFiltersColor},null,8,[`colors`])):b(``,!0)],6)}var bt=Object.assign(B(pt,[[`render`,yt],[`__scopeId`,`data-v-8a95d75a`]]),{__name:`ItemPreview`});export{qe as a,Ve as c,Ae as d,J as f,$e as i,Q as l,ot as n,We as o,q as p,at as r,$ as s,bt as t,Pe 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.