PageSourceSearch

https://packiro.com/_next/static/chunks/2655.f35aa714b1451731.js

js packiro.com collected 2026-09-25 07:13:56 UTC 14,157 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2655],{95614:(e,r,t)=>{t.d(r,{f:()=>A});var l=t(21962),n=t(26210),o=t(7767),s=t(5365),i=t(18701),a=t(80838),c=t(63843),d=t(81352),h=t(43242),p=t(22900),x=t(89434);let u=e=>{var r;if("PDFCheckImages"!==e.__typename)return[];let t=null===(r=e.pdfCheckImagesResult)||void 0===r?void 0:r.forbidden_images;return(null==t?void 0:t.length)?t.flatMap(e=>{var r;return(null!==(r=e.previews)&&void 0!==r?r:[]).filter(e=>"preview-1024.png"===e.name).map(e=>"".concat("https://artwork.packiro.com","/v1/media/").concat(e.path))}):[]},f=e=>{var r;if("PDFCheckFonts"!==e.__typename)return[];let t=null===(r=e.pdfCheckFontsResult)||void 0===r?void 0:r.text_boxes;return(null==t?void 0:t.length)?t.filter(e=>null!=e&&"string"==typeof e.text&&e.text.length>0).map(e=>e.text):[]},m=async e=>{let r=new AbortController,t=setTimeout(()=>r.abort(),1e4);try{let t=await fetch(e,{signal:r.signal});if(!t.ok)return;let l=await t.blob();return new Promise(e=>{let r=new FileReader;r.onloadend=()=>e(r.result),r.onerror=()=>e(void 0),r.readAsDataURL(l)})}catch(e){console.error("Image fetch failed:",e);return}finally{clearTimeout(t)}},w=e=>{let[r,t]=(0,n.useState)({}),l=(0,n.useMemo)(()=>[...new Set(e.flatMap(u))],[e]);return(0,n.useEffect)(()=>{if(0===l.length)return;let e=!1;return Promise.all(l.map(async e=>[e,await m(e)])).then(r=>{e||t(Object.fromEntries(r.filter(e=>null!=e[1])))}),()=>{e=!0}},[l]),r},g={width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"flex-start",marginBottom:16},j={flexDirection:"row",flexWrap:"wrap",gap:10},k={border:"1px solid #ccc",padding:4},y={width:140,height:140,objectFit:"contain"},v={width:28,height:32},C=e=>{let{failedChecks:r,successfulChecks:t,locale:n,t:s,imageDataUris:a}=e,c=n?h.PX[n]:"en";return(0,l.jsx)(o.yo,{children:(0,l.jsxs)(o.YW,{size:"A4",style:p.R.page,children:[(0,l.jsxs)(o.Ss,{style:p.R.headerSection,children:[(0,l.jsx)(o._V,{src:"/assets/artwork-report/Report-error.png",style:p.R.img}),(0,l.jsx)(o.EY,{style:p.R.headline,children:s("artwork.error.report.pdf.title")}),(0,l.jsx)(o.EY,{style:p.R.subHeadline,children:s("artwork.error.report.pdf.subtitle")})]}),(0,l.jsxs)(o.Ss,{style:{marginBottom:16},children:[(0,l.jsxs)(o.Ss,{style:g,children:[(0,l.jsx)(o._V,{src:"/assets/artwork-report/Wrong.png",style:v}),(0,l.jsx)(o.EY,{style:p.R.errorText,children:s("artwork.error.report.pdf.error")})]}),r.map((e,t)=>{let d=(0,i.createReadableStatusCode)(e,c),h=u(e),x=f(e);return(0,l.jsxs)(o.Ss,{style:t!==r.length-1?p.R.borders:void 0,children:[(0,l.jsx)(o.EY,{style:p.R.errorType,children:(0,i.createCheckTitle)(e,c)}),d&&"string"==typeof d&&(0,l.jsx)(o.EY,{style:p.R.errorDesc,children:d}),d&&"string"!=typeof d&&d.error&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.EY,{style:p.R.errorDesc,children:[(0,l.jsxs)(o.EY,{style:p.R.descTitle,children:[s("artwork.error.value"),":"]})," ",d.error]}),(0,l.jsxs)(o.EY,{style:p.R.errorDesc,children:[(0,l.jsxs)(o.EY,{style:p.R.descTitle,children:[s("artwork.solution"),":"]})," ",d.solution,". ",d.info]}),d.pages&&(0,l.jsx)(o.EY,{style:p.R.errorDesc,children:(0,l.jsx)(o.N_,{src:"https://packiro.com/".concat(n).concat(d.pages),style:p.R.link,children:s("artwork.design.guidelines.with.video")})})]}),h.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.EY,{style:p.R.errorDesc,children:s("artwork.error.report.pdf.images",{count:h.length})}),(0,l.jsx)(o.Ss,{style:j,children:h.map((e,r)=>{let t=a[e];return t&&(0,l.jsx)(o.Ss,{style:k,children:(0,l.jsx)(o._V,{src:t,style:y})},r)})})]}),x.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.EY,{style:p.R.errorDesc,children:s("artwork.error.report.pdf.textBoxes",{count:x.length})}),(0,l.jsx)(o.Ss,{style:{marginTop:4},children:x.map((e,r)=>(0,l.jsxs)(o.EY,{style:p.R.errorDesc,children:["• ",e]},r))})]})]},t)})]}),(0,l.jsxs)(o.Ss,{style:{paddingBottom:150},children:[(0,l.jsxs)(o.Ss,{style:g,children:[(0,l.jsx)(o._V,{src:"/assets/artwork-report/Right.png",style:v}),(0,l.jsx)(o.EY,{style:p.R.successText,children:s("artwork.error.report.pdf.checks")})]}),t.map((e,r)=>(0,l.jsx)(o.Ss,{style:r!==t.length-1?p.R.borders:void 0,children:(0,l.jsx)(o.EY,{style:p.R.successType,children:(0,i.createCheckTitle)(e,c)})},r))]}),(0,l.jsx)(o.Ss,{style:p.R.footer,children:(0,l.jsx)(o._V,{src:"/assets/artwork-report/Packiro-Logo.png",style:p.R.footerImage})})]})})},A=e=>{let{failedChecks:r,successfulChecks:t}=e,{locale:n,t:i}=(0,d.f)(),h=w(r);return(0,l.jsx)(a.A,{children:(0,l.jsx)(o.XP,{document:(0,l.jsx)(C,{locale:n,t:i,failedChecks:r,successfulChecks:t,imageDataUris:h}),fileName:"Artwork-Error-Report-".concat((0,x.fm)(new Date),".pdf"),children:e=>{let{loading:r}=e;return r?(0,l.jsx)(c.A,{size:"small",disabled:!0,variant:"outlined",startIcon:(0,l.jsx)(s.f5,{width:24}),children:i("artworkUpload.checkFailed.loadingReport")}):(0,l.jsx)(c.A,{size:"small","data-cy":"artworkUpload:checkFailed.downloadReport.btn",variant:"outlined",id:"download_design_report_button",startIcon:(0,l.jsx)(s.f5,{width:18}),children:i("artworkUpload.checkFailed.downloadReport")})}})})}},43242:(e,r,t)=>{t.d(r,{Ay:()=>F,PX:()=>R});
1var l=t(21962),n=t(18701),o=t(54986),s=t(80838),i=t(97302),a=t(85208),c=t(63843),d=t(26210),h=t(5365),p=t(49236),x=t(81352),u=t(95614),f=t(19283),m=t(75715),w=t(28965),g=t(40860),j=t(93357),k=t(42545),y=t(66851),v=t(53537),C=t(51492),A=t(51753),b=t(78308);let R={en:"en","de-de":"de","fr-fr":"en","nl-nl":"en","it-it":"en"},S=(e,r)=>e.map(e=>{var t;let l=(0,n.createReadableStatusCode)(e,r),o="string"!=typeof l,s=null!==(t=(0,n.createCheckTitle)(e,r))&&void 0!==t?t:"";return"string"==typeof l?{title:s,description:l,isError:!1}:{title:s,error:l.error,solution:l.info?"".concat(l.solution,". ").concat(l.info):l.solution,isError:o}}),F=e=>{var r,t;let{SuccessComponent:F,hideActions:U=!1}=e,{checks:D,artworkUploadDate:E,addons:T,variant:_,setSuccessfulCheck:Y,uploadTrackingOptions:I,isPrintable:P,artworkId:L,uploadFileInfo:H,uploadFailed:V,onReset:M}=(0,p.gD)(),{open:N}=(0,b.e)({onDrop:M}),{getImportantPageUrl:Z}=(0,A.du)(),{palette:B}=(0,o.A)(),{Link:O,t:W,locale:z}=(0,x.f)(),G=null!==(r=R[z])&&void 0!==r?r:"en",[X,Q]=(0,d.useState)(!1);if((0,d.useEffect)(()=>{var e;if((null==D?void 0:D.length)===0||!H)return;let r=null!==(e=null==D?void 0:D.filter(e=>(0,v.G)(e,G)))&&void 0!==e?e:[];0===r.length&&!1===P&&(0,g.m)({error:{message:"Artwork has no errors and it's not printable",details:{artworkId:L,checks:D}},options:{feature:"artwork-upload",type:"info",component:"ArtworkSummary",extra:{context:"No failed checks and isPrintable is false",artworkId:L,checks:D}}}),Y(0===r.length);let t=r.map(e=>{var r;let t=(0,n.createReadableStatusCode)(e,"en"),l="";return t&&"string"==typeof t&&(l=t),t&&"string"!=typeof t&&t.error&&(l=t.error),{name:null!==(r=(0,n.createCheckTitle)(e,"en"))&&void 0!==r?r:"",description:l}});(0,f.ZZ)(!0,H,E,0===r.length,t.length>0?t.map(e=>e.name):void 0,I)},[D,G,Y,I,E,P,L,H]),!D)return null;let q=D.filter(e=>(0,v.G)(e,G)),J=D.filter(e=>!(0,v.G)(e,G)),K=q.length>0,$=W("staticwords.contacts.phone");return(K&&void 0===P&&(0,g.m)({error:{message:"Artwork has no errors and isPrintable is undefined",details:{artworkId:L,checks:D}},options:{feature:"artwork-upload",type:"info",component:"ArtworkSummary",extra:{context:"No failed checks and isPrintable is undefined",artworkId:L,checks:D}}}),V)?(0,l.jsx)(s.A,{textAlign:"center",children:(0,l.jsxs)(i.A,{direction:"column",alignItems:"center",gap:3,children:[(0,l.jsx)(s.A,{children:(0,l.jsx)(j.P,{width:57,color:B.error.main})}),(0,l.jsx)(a.A,{variant:"h5",component:"p",color:B.error.main,children:W("artworkUpload.uploadFailed")}),(0,l.jsx)(a.A,{variant:"body1",component:"p",whiteSpace:"pre-wrap",children:W.rich("artworkUpload.uploadFailedDescription",{link:e=>{var r;return(0,l.jsx)(O,{href:null!==(r=Z("CONTACT"))&&void 0!==r?r:"#",target:"_blank",style:{textDecoration:"underline",textUnderlineOffset:3},children:e})}})}),(0,l.jsx)(c.A,{variant:"contained",color:"primary",onClick:()=>N(),children:W("artworkUpload.uploadYourArtwork")})]})}):(0,l.jsx)(s.A,{textAlign:"center",children:(0,l.jsxs)(s.A,{children:[(0,l.jsxs)(s.A,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,l.jsx)(s.A,{display:"flex",justifyContent:"center",mr:2,ml:-2,children:K||!1===P?(0,l.jsx)(j.P,{width:57,color:B.error.main}):(0,l.jsx)(h.oF,{width:32,color:B.labels.primary.text})}),(0,l.jsx)(a.A,{variant:"h5",component:"p",color:K||!1===P?B.error.main:B.primary.darkHover,whiteSpace:"pre-wrap",children:K||!1===P?W("artworkUpload.checkFailed.value"):W("artworkUpload.checkSuccessful.value")})]}),!K&&!1===P&&(0,l.jsxs)(s.A,{maxWidth:482,mx:"auto",mb:4,children:[(0,l.jsx)(a.A,{mt:3,mb:4,children:W("artworkUpload.checkFailed.notPrintable")}),(0,l.jsx)(a.A,{variant:"h5",pb:4,children:"Error 10"}),(0,l.jsxs)(i.A,{p:4,gap:4,bgcolor:B.neutral.grey100,maxWidth:394,mx:"auto",borderRadius:2,children:[(0,l.jsx)(a.A,{variant:"body1",children:W("staticwords.contacts.workingHours")}),(0,l.jsxs)(i.A,{gap:2,textAlign:"left",children:[(0,l.jsxs)(i.A,{direction:"row",gap:2,alignItems:"center",children:[(0,l.jsx)(h.hF,{width:18,height:18}),(0,l.jsx)(s.A,{component:"span",children:$})]}),(0,l.jsx)(O,{href:null!==(t=Z("CONTACT"))&&void 0!==t?t:"#",color:B.neutral.white,children:(0,l.jsxs)(i.A,{direction:"row",gap:2,alignItems:"center",children:[(0,l.jsx)(w.P,{width:18,height:18}),(0,l.jsx)(s.A,{component:"span",sx:{textDecoration:"underline",textUnderlineOffset:3},children:W("staticwords.contactInfo")})]})})]})]})]}),(K||X)&&(0,l.jsx)(s.A,{mt:4,children:(0,l.jsx)(C.l,{"data-cy":"artworkUpload:accordion.mainChecks",items:S(K?q:J,G)})}),!K&&P&&(0,l.jsxs)(s.A,{children:[(0,l.jsx)(c.A,{"data-cy":"artworkUpload:checkSuccessful.showResults.btn",variant:"text",sx:{mb:4},endIcon:(0,l.jsx)(h.yQ,{width:18,sx:{transform:X?"rotate(180deg)":"rotate(0)"}}),onClick:()=>Q(!X),children:X?W("artworkUpload.checkSuccessful.hideResults"):W("artworkUpload.checkSuccessful.showResults")}),F]}),K&&(0,l.jsxs)(s.A,{children:[(0,l.jsx)(s.A,{mb:8,mt:3,mx:2.25,children:(0,l.jsxs)(s.A,{display:"flex",alignItems:"center",children:[(0,l.jsx)(h.V3,{width:23,height:23}),(0,l.jsx)(a.A,{variant:"body1/bold",display:"flex",ml:2,children:W("artworkUpload.checkFailed.contactSupport")}),(0,l.jsx)(O,{href:"/".concat(z).concat(W("artworkUpload.guideline.url")),target:"_blank",style:{color:B.neutral.grey900},children:(0,l.jsxs)(a.A,{variant:"body1",mx:1,component:"span",sx:{textDecoration:"underline",textUnderlineOffset:4,textDecorationThickness:1},children:[W("staticwords.printguide"),","]})}),(0,l.jsx)(m.n,{withIcon:!1,renderAs:"TextButton",artworkVariant:_,add
1ons:T,sx:{color:B.neutral.grey900},children:(0,l.jsx)(a.A,{variant:"body1",children:W("artworkUpload.downloadTemplate")})})]})}),!U&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(s.A,{display:"flex",gap:4,justifyContent:"start",mb:10,children:[(0,l.jsx)(u.f,{failedChecks:q,successfulChecks:J}),(0,l.jsx)(c.A,{size:"small",variant:"outlined",startIcon:(0,l.jsx)(k.V,{width:18,height:18}),onClick:()=>{navigator.clipboard.writeText(window.location.href).then(()=>{(0,y.M8)(W("artworkUpload.checkFailed.linkCopied"),{variant:"success"})}).catch(async e=>{await (0,g.m)({error:e,options:{feature:"Design upload. Copy current url to clipboard",type:"error",component:"Failed to copy URL"}})})},children:W("artworkUpload.checkFailed.copyLink")})]}),(0,l.jsx)(a.A,{mt:3,mb:4,textAlign:"left",children:W("artworkUpload.checkFailed.details")})]})]})]})})}},42545:(e,r,t)=>{t.d(r,{V:()=>o});var l=t(21962),n=t(80838);t(26210);let o=e=>(0,l.jsx)(n.A,{component:"svg",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,l.jsx)("path",{fillRule:"evenodd","clip-rule":"evenodd",d:"M14.2944 3.70555C13.3537 2.76482 11.8283 2.76482 10.8876 3.70555L7.47055 7.12255C6.52982 8.06329 6.52982 9.58871 7.47055 10.5294C7.66582 10.7247 7.66582 11.0413 7.47055 11.2366C7.27529 11.4318 6.95871 11.4318 6.76345 11.2366C5.43218 9.90529 5.43218 7.74671 6.76345 6.41545L10.1804 2.99845C11.5117 1.66718 13.6703 1.66718 15.0016 2.99845C16.3328 4.32971 16.3328 6.48829 15.0016 7.81955C14.8063 8.01482 14.4897 8.01482 14.2944 7.81955C14.0992 7.62429 14.0992 7.30771 14.2944 7.11245C15.2352 6.17171 15.2352 4.64629 14.2944 3.70555ZM10.5294 6.76345C10.7247 6.56818 11.0413 6.56818 11.2366 6.76345C12.5678 8.09471 12.5678 10.2533 11.2366 11.5846L7.81955 15.0016C6.48829 16.3328 4.32971 16.3328 2.99845 15.0016C1.66718 13.6703 1.66718 11.5117 2.99845 10.1804C3.19371 9.98519 3.51029 9.98519 3.70555 10.1804C3.90082 10.3757 3.90082 10.6923 3.70555 10.8876C2.76482 11.8283 2.76482 13.3537 3.70555 14.2944C4.64629 15.2352 6.17171 15.2352 7.11245 14.2944L10.5294 10.8774C11.4702 9.93671 11.4702 8.41129 10.5294 7.47055C10.3342 7.27529 10.3342 6.95871 10.5294 6.76345Z",fill:"#127F7D"})})},28965:(e,r,t)=>{t.d(r,{P:()=>o});var l=t(21962),n=t(80838);t(26210);let o=e=>(0,l.jsxs)(n.A,{component:"svg",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.33984 4.75977C4.33984 4.48362 4.5637 4.25977 4.83984 4.25977H13.1598C13.436 4.25977 13.6598 4.48362 13.6598 4.75977C13.6598 5.03591 13.436 5.25977 13.1598 5.25977H4.83984C4.5637 5.25977 4.33984 5.03591 4.33984 4.75977Z",fill:"currentColor"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 5.25977C3.95869 5.25977 3.51783 5.68987 3.50053 6.22698L3.5154 6.23594L9.00007 9.66982L14.4847 6.23594L14.4995 6.22706C14.4822 5.68991 14.0413 5.25977 13.5 5.25977H13.1601H4.84009H4.5ZM4.84009 4.25977H13.1601H13.5C14.6046 4.25977 15.5 5.1552 15.5 6.25977V12.1598C15.5 13.2643 14.6046 14.1598 13.5 14.1598H4.5C3.39543 14.1598 2.5 13.2643 2.5 12.1598V6.25977C2.5 5.1552 3.39543 4.25977 4.5 4.25977H4.84009ZM3.5 12.1598V7.40613L8.73474 10.6835C8.89703 10.7851 9.1031 10.7851 9.2654 10.6835L14.5 7.40621V12.1598C14.5 12.712 14.0523 13.1598 13.5 13.1598H4.5C3.94772 13.1598 3.5 12.712 3.5 12.1598Z",fill:"currentColor"})]})},53537:(e,r,t)=>{t.d(r,{G:()=>n});var l=t(18701);let n=(e,r)=>"string"!=typeof(0,l.createReadableStatusCode)(e,r)}}]);

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.