PageSourceSearch

https://theprintbar.com/assets/utils-rt4OdhCA.js

js theprintbar.com collected 2026-10-02 07:05:01 UTC 3,301 bytes, 2 lines download raw bytes

1import{j as t,G as u,k as r}from"./fields-x7hmW9EE.js";import{g as w}from"./file-DArfWVL8.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="9328704a-a9fe-4b06-9ade-626d97e608ca",e._sentryDebugIdIdentifier="sentry-dbid-9328704a-a9fe-4b06-9ade-626d97e608ca")}catch{}function C(e,s){const D=[],c=Math.ceil(e.length/s);let f=0;for(;f<e.length;)D.push(e.slice(f,f+c)),f+=c;return D}function i(e){return e!=null&&(typeof e!="string"||!!e)}function M(e){switch(e){case u.Dtf:case u.Dtf:case t.Dtf:return"Direct to Film";case r.Emb:case t.Emb:case t.Emb:return"Embroidery";case r.Scr:case t.Scr:case t.Scr:return"Screen Printing";case r.Dtg:case u.Dtg:case t.Dtg:default:return"Digital Printing"}}const n=e=>{var s,D;return!!e&&(l(e)?!!((s=e.artwork)!=null&&s.filesize):h(e)?!!e.design:!!((D=e.artwork)!=null&&D.size))},k=(e,s)=>e&&(!s||n(e))&&(l(e)?e.decoration===u.Dtg:(e==null?void 0:e.type)===r.Dtg||(e==null?void 0:e.type)===t.Dtg),y=(e,s)=>e&&(!s||n(e))&&(l(e)?e.decoration===u.Dtf:(e==null?void 0:e.type)===r.Dtf||(e==null?void 0:e.type)===t.Dtf),x=(e,s)=>e&&(!s||n(e))&&(l(e)?e.decoration===u.Scr:(e==null?void 0:e.type)===r.Scr||(e==null?void 0:e.type)===t.Scr),a=(e,s)=>e&&(!s||n(e))&&(l(e)?e.decoration===u.Emb:(e==null?void 0:e.type)===r.Emb||(e==null?void 0:e.type)===t.Emb),h=e=>!!e.id&&!!e.design,l=e=>!!(e.id&&e.artwork&&e.decoration);function A(e,s){return s!=null&&s.customDecorationMaxColours?s.customDecorationMaxColours:!e||e===r.Dtg||e===r.Dtf?0:e===r.Emb?8:6}function q(e,s){return s!=null&&s.customDecorationMaxColours?s.customDecorationMaxColours:!e||k(e)||y(e)?0:a(e)?8:6}function G(e){var g;const{width:s,height:D,left:c,top:f,stitches:m,requestedColours:b}=h(e)||l(e)?e:e.meta;return{width:s,height:D,left:c,top:f,stitches:m,requestedColours:b,colours:(h(e)||l(e)?((g=e.colours.structure)==null?void 0:g.filter(i))||[]:e.meta.colours)||[]}}function R(e){return!e.artwork||!e.artwork.size?"":w(e.meta.trueview||e.artwork)}function E(e,s){if(s!=null&&s.customDecorationName)return"bg-blue-bright";switch(e){case u.Dtg:case t.Dtg:case r.Dtg:return"bg-blue-bright";case u.Scr:case t.Scr:case r.Scr:return"bg-pink";case u.Emb:case t.Emb:case r.Emb:return"bg-orange";case u.Dtf:case t.Dtf:case r.Dtf:return"bg-yellow";default:return"bg-purple"}}function P(e,s,D){let c="",f="",m,b,g;if(D!=null&&D.customDecorationName)return{title:D.customDecorationName,icon:D.customDecorationIcon||s.dtgIcon,text:D.customDecorationDescription||""};switch(e){case u.Dtg:case t.Dtg:case r.Dtg:c=s.dtgTitle,f=s.dtgShortDescription,b=s.dtgIcon,m=s.dtgArtworkRequirements;break;case u.Scr:case t.Scr:case r.Scr:c=s.scrTitle,f=s.scrShortDescription,b=s.scrIcon,m=s.scrArtworkRequirements;break;case u.Emb:case t.Emb:case r.Emb:c=s.embTitle,f=s.embShortDescription,b=s.embIcon,m=s.embArtworkRequirements;break;case u.Dtf:case t.Dtf:case r.Dtf:c=s.dtfTitle,f=s.dtfShortDescription,b=s.dtfIcon,m=s.dtfArtworkRequirements;break}return g=E(e,D),{title:c,text:f,icon:b,artworkRequirements:m,bgColour:g}}export{l as a,h as b,G as c,P as d,x as e,a as f,M as g,k as h,i,y as j,E as k,A as l,q as m,R as n,C as o};
2//# sourceMappingURL=utils-rt4OdhCA.js.map

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.