PageSourceSearch

https://merchant.vatcompliance.co/static/js/1182.41c44e2e.chunk.js

js vatcompliance.co collected 2026-09-24 09:46:56 UTC 38,739 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunklappa_app=self.webpackChunklappa_app||[]).push([[1182],{695:()=>{},10110:(e,r,t)=>{t.d(r,{EL:()=>m,NN:()=>l,RQ:()=>h,RU:()=>_,Zp:()=>a,aE:()=>f,db:()=>v,k7:()=>b,uT:()=>y});var i=t(95335);const l="clothing_textile",o="draft",a=e=>{var r;return"published"===String(null!==(r=null===e||void 0===e?void 0:e.status)&&void 0!==r?r:"").trim().toLowerCase()?"published":"draft"};function n(e){return"undefined"!==typeof File&&e instanceof File?e:e&&"object"===typeof e&&"undefined"!==typeof File&&e.file instanceof File?e.file:null}function u(e,r,t){const l=(0,i.WV)(t);l&&(e[r]=l)}function s(e,r,t){if(!Array.isArray(t))return;const l=t.map((e=>(0,i.WV)(e))).filter(Boolean);0!==l.length&&(e[r]=l)}function d(e,r,t){e[r]=(0,i.WV)(t)}function c(e,r,t){const l=(0,i.WV)(t);e[r]=l||null}function p(e,r,t){e[r]=Array.isArray(t)?t.map((e=>(0,i.WV)(e))).filter(Boolean):[]}function m(){let{productId:e,traceability:r={},manufacturer:t=null,importer:a=null,safety:n=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const d={country_specifics_id:e,product_name:(0,i.WV)(r.productName),status:o};return u(d,"batch",r.batchLotNumber),u(d,"size",r.size),u(d,"gross_weight",r.grossWeight),u(d,"gross_weight_unit",r.grossWeightUnit),u(d,"product_type",r.productType),u(d,"expiry_date",r.expiryDate),u(d,"country_of_origin_id",r.countryOfOrigin),u(d,"barcode",r.barcode),u(d,"colour_variant",r.colourVariant),u(d,"model",r.model),u(d,"gpc_code",r.gpcCode),t&&function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(e,"manufacturer_company_name",r.companyName),u(e,"business_name",r.businessName),u(e,"manufacturer_address_line",r.streetAddress),u(e,"manufacturer_postal_code",r.postalCode),u(e,"manufacturer_city",r.city),u(e,"manufacturer_country_id",r.country),u(e,"manufacturer_email",r.email)}(d,t),a&&function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!==r&&void 0!==r&&r.enabled&&(u(e,"importer_company_name",r.companyName),u(e,"importer_address_line",r.streetAddress),u(e,"importer_postal_code",r.postalCode),u(e,"importer_city",r.city),u(e,"importer_country_id",r.country),u(e,"importer_email",r.email))}(d,a),n&&function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isTextile:t=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u(e,"safety_information",r.safetyInformation),s(e,"approved_use_restrictions",r.approvedUseRestrictions),u(e,"maximum_liquid_temperature",r.maximumLiquidTemperature),u(e,"minimum_user_age",r.minimumUserAge),u(e,"other",r.other),t&&(s(e,"care_symbols",r.careSymbols),u(e,"additional_care_instructions",r.additionalCareInstructions))}(d,n,{isTextile:(0,i.WV)(r.productType)===l}),d}function v(){let{productId:e,traceability:r={},manufacturer:t=null,importer:o=null,safety:a=null,status:n="draft"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u={country_specifics_id:e,product_name:(0,i.WV)(r.productName),status:"published"===n?"published":"draft"};return d(u,"batch",r.batchLotNumber),d(u,"size",r.size),d(u,"product_type",r.productType),d(u,"barcode",r.barcode),d(u,"colour_variant",r.colourVariant),d(u,"model",r.model),d(u,"gpc_code",r.gpcCode),c(u,"gross_weight",r.grossWeight),c(u,"expiry_date",r.expiryDate),c(u,"country_of_origin_id",r.countryOfOrigin),d(u,"gross_weight_unit",r.grossWeightUnit),t&&function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};d(e,"manufacturer_company_name",r.companyName),d(e,"business_name",r.businessName),d(e,"manufacturer_address_line",r.streetAddress),d(e,"manufacturer_postal_code",r.postalCode),d(e,"manufacturer_city",r.city),c(e,"manufacturer_country_id",r.country),d(e,"manufacturer_email",r.email)}(u,t),null!=o&&function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!==r&&void 0!==r&&r.enabled?(d(e,"importer_company_name",r.companyName),d(e,"importer_address_line",r.streetAddress),d(e,"importer_postal_code",r.postalCode),d(e,"importer_city",r.city),c(e,"importer_country_id",r.country),d(e,"importer_email",r.email)):function(e){e.importer_company_name="",e.importer_address_line="",e.importer_postal_code="",e.importer_city="",e.importer_country_id=null,e.importer_email=""}(e)}(u,o),null!=a&&function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isTextile:t=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};d(e,"safety_information",r.safetyInformation),p(e,"approved_use_restrictions",r.approvedUseRestrictions),c(e,"maximum_liquid_temperature",r.maximumLiquidTemperature),d(e,"minimum_user_age",r.minimumUserAge),d(e,"other",r.other),t?(p(e,"care_symbols",r.careSymbols),d(e,"additional_care_instructions",r.additionalCareInstructions)):(e.care_symbols=[],e.additional_care_instructions="")}(u,a,{isTextile:(0,i.WV)(r.productType)===l}),u}function y(){let{brandLogoFile:e,productPhotoFile:r,declarationFile:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Boolean(n(e)||n(r)||n(t))}function b(){let{data:e,brandLogoFile:r,productPhotoFile:t,declarationFile:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const l=new FormData;l.append("data",JSON.stringify(null!==e&&void 0!==e?e:{}));const o=n(r);o&&l.append("label_file",o);const a=n(t);a&&l.append("photo_product",a);const u=n(i);return u&&l.append("declaration_of_conformity",u),l}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,i.WV)(e.componentType),t=(Array.isArray(e.fibres)?e.fibres:[]).map((e=>{const r=(0,i.WV)(null===e||void 0===e?void 0:e.fibreType),t=(0,i.WV)(null===e||void 0===e?void 0:e.percentage);return r&&t?{fibre_type:r,percentage:t}:null}
1)).filter(Boolean);return r&&0!==t.length?{component_type:r,fibres:t}:null}function g(e){return null===e||void 0===e?null:"boolean"===typeof e?e:"number"===typeof e&&Number.isFinite(e)?String(e):Array.isArray(e)?e.map((e=>g(e))):String(e).trim()}function _(e){if(null==e||"object"!==typeof e||Array.isArray(e))return null;const r={};return Object.keys(e).sort().forEach((t=>{const i=e[t];void 0!==i&&(r[t]=g(i))})),r}function h(e,r){const t=_(e),i=_(r);return null!=t&&null!=i&&JSON.stringify(t)===JSON.stringify(i)}},11582:(e,r,t)=>{t.d(r,{Ay:()=>v,CY:()=>a,Du:()=>u,Hf:()=>m,II:()=>p,K9:()=>o,YH:()=>s,k4:()=>l,yX:()=>n});t(39654);let i=0;const l=function(){return i+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"gpsr-fibre"}-${Date.now()}-${i}`},o=e=>null!=e&&""!==e&&!(e=>String(null!==e&&void 0!==e?e:"").startsWith("gpsr-textile-component-"))(e),a=()=>({id:l(),fibreType:"",percentage:""}),n=()=>({id:l("gpsr-textile-component"),componentType:"",fibres:[a()]}),u=()=>({components:[]}),s=e=>{var r;if(!e||"object"!==typeof e)return n();const t=Array.isArray(e.fibres)?e.fibres:[];return{id:e.id||l("gpsr-textile-component"),componentType:String(null!==(r=e.componentType)&&void 0!==r?r:""),fibres:t.length>0?t.map((e=>{var r;return{id:(null===e||void 0===e?void 0:e.id)||l(),fibreType:String(null!==(r=null===e||void 0===e?void 0:e.fibreType)&&void 0!==r?r:""),percentage:null==(null===e||void 0===e?void 0:e.percentage)||""===(null===e||void 0===e?void 0:e.percentage)?"":String(e.percentage)}})):[a()]}},d=e=>{const r=String(null!==e&&void 0!==e?e:"").trim().replace(",",".");if(!r)return null;const t=Number(r);return Number.isFinite(t)?t:null},c=e=>Math.round(100*e)/100,p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;const t=(Array.isArray(e)?e:[]).map((e=>{var t;const i=String(null!==(t=null===e||void 0===e?void 0:e.fibreType)&&void 0!==t?t:"").trim(),l=d(null===e||void 0===e?void 0:e.percentage);if(!i||null==l)return null;return`${"function"===typeof r&&r(i)||i} ${Number.isInteger(l)||Math.abs(l-Math.round(l))<.001?String(Math.round(l)):String(c(l))}%`})).filter(Boolean);return t.length>0?t.join(" \u2022 "):"\u2014"},m=e=>{const r=c(Number(e)||0);if(100===r)return"Total: 100%";if(r<100){return`Total: ${r}% \u2014 ${c(100-r)}% remaining`}return`Total: ${r}% \u2014 exceeds by ${c(r-100)}%`},v=e=>{var r;const t={componentType:"",fibres:{},total:""};String(null!==(r=null===e||void 0===e?void 0:e.componentType)&&void 0!==r?r:"").trim()||(t.componentType="Component type is required");const i=Array.isArray(null===e||void 0===e?void 0:e.fibres)?e.fibres:[],l=new Map;let o=0;i.forEach((e=>{var r,i;const a=null===e||void 0===e?void 0:e.id,n=String(null!==(r=null===e||void 0===e?void 0:e.fibreType)&&void 0!==r?r:"").trim(),u=String(null!==(i=null===e||void 0===e?void 0:e.percentage)&&void 0!==i?i:"").trim(),s=d(u),c={};n?l.has(n)?c.fibreType="Fibre type already selected":l.set(n,a):c.fibreType="Fibre type is required",u?null==s?c.percentage="Enter a valid number":s<=0?c.percentage="Must be greater than 0":s>100&&(c.percentage="Must be at most 100"):c.percentage="Percentage is required",0===Object.keys(c).length?o+=1:a&&(t.fibres[a]=c)})),o<1&&(t.total="Add at least one complete fibre row");const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const r=(Array.isArray(e)?e:[]).reduce(((e,r)=>{const t=d(null===r||void 0===r?void 0:r.percentage);return e+(null==t?0:t)}),0);return c(r)}(i);o>=1&&100!==a&&(t.total="Fibre percentages must total exactly 100%");return{isValid:!t.componentType&&!t.total&&0===Object.keys(t.fibres).length,errors:t,total:a}}},12294:(e,r,t)=>{t.d(r,{DN:()=>u,Hj:()=>c,LM:()=>l,_B:()=>o,bO:()=>n,dR:()=>d,yx:()=>s});t(39654);const i="no_warning_required",l="max_liquid_temperature",o="other",a=[["machine_wash","do_not_wash"],["hand_wash","do_not_wash"],["tumble_dry","do_not_tumble_dry"],["iron_at_low_temperature","do_not_iron"],["iron_at_medium_temperature","do_not_iron"],["iron_at_high_temperature","do_not_iron"],["professional_dry_clean","do_not_dry_clean"]],n=()=>({safetyInformation:"",approvedUseRestrictions:[],maximumLiquidTemperature:"",minimumUserAge:"",careSymbols:[],additionalCareInstructions:"",other:""}),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const r=[],t=new Set;
1return(Array.isArray(e)?e:[]).forEach((e=>{const i=String(null!==e&&void 0!==e?e:"").trim();i&&!t.has(i)&&(t.add(i),r.push(i))})),r.includes(i)&&r.length>1?r[r.length-1]===i?[i]:r.filter((e=>e!==i)):r},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t=[],i=new Set;(Array.isArray(e)?e:[]).forEach((e=>{const r=String(null!==e&&void 0!==e?e:"").trim();r&&!i.has(r)&&(i.add(r),t.push(r))}));const l=new Set((Array.isArray(r)?r:[]).map((e=>String(null!==e&&void 0!==e?e:"").trim())).filter(Boolean)),o=t.filter((e=>!l.has(e)));if(0===o.length)return t;let n=t;return o.forEach((e=>{const r=(e=>{const r=new Set;return a.forEach((t=>{let[i,l]=t;i===e&&r.add(l),l===e&&r.add(i)})),r})(e);0!==r.size&&(n=n.filter((t=>t===e||!r.has(t))))})),n},d=(e,r)=>(Array.isArray(e)?e:[]).some((e=>String(e)===String(r))),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={maximumLiquidTemperature:"",other:""},t=Array.isArray(e.approvedUseRestrictions)?e.approvedUseRestrictions:[];if(d(t,l)){var i;const t=String(null!==(i=e.maximumLiquidTemperature)&&void 0!==i?i:"").trim(),l=Number(t.replace(",","."));(!t||!Number.isFinite(l)||l<=0)&&(r.maximumLiquidTemperature="Enter a temperature greater than 0")}var a;d(t,o)&&(String(null!==(a=e.other)&&void 0!==a?a:"").trim()||(r.other="Enter a custom warning"));return{errors:r,isValid:!r.maximumLiquidTemperature&&!r.other}}
1},24984:(e,r,t)=>{t.d(r,{Zw:()=>p,aA:()=>c});var i=t(11582),l=t(12294),o=t(35042),a=t(39654),n=t(29370),u=t(35852);const s=e=>String(null!==e&&void 0!==e?e:"").trim(),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;const t="function"===typeof r?r(null===e||void 0===e?void 0:e.country):s(null===e||void 0===e?void 0:e.country);return[s(null===e||void 0===e?void 0:e.streetAddress),[s(null===e||void 0===e?void 0:e.postalCode),s(null===e||void 0===e?void 0:e.city)].filter(Boolean).join(" "),t].filter(Boolean).join(", ")},c=function(){let{traceability:e={},manufacturer:r={},representative:t={},importer:n={},fibreComposition:c={},safety:p={},resolveCountryLabel:m,qrCodeValue:v=null,qrCodeImage:y=null,labelUuid:b=null,brandLogoUrl:f=null,brandDisplayName:g=null,productCategoryOptions:_=[],weightUnitOptions:h=[],useRestrictionOptions:C=[],minimumUserAgeOptions:A=[],careSymbolOptions:N=[],fibreComponentTypeOptions:S=[],fibreTypeOptions:x=[],representativeTypeOptions:L=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const T="function"===typeof m?m:e=>s(e),w=e=>(0,a._d)(x,e),j=[{label:"Product",value:s(e.productName)},{label:"Lot",value:s(e.batchLotNumber)},{label:"Size",value:s(e.size)},{label:"Gross Weight",value:(()=>{const r=(0,u.Mp)(e.grossWeight);if(!r)return"";const t=s(e.grossWeightUnit);return t?`${r} ${t}`:r})()},{label:"SKU",value:s(e.sku)}].filter((e=>e.value)),k=s(e.productType),U=[{label:"Type of product",value:k?(O=k,(0,a._d)(_,O)||k):""},{label:"Country of origin",value:T(e.countryOfOrigin)},{label:"Expiry date",value:s(e.expiryDate)},{label:"GTIN, EAN or barcode",value:s(e.barcode)},{label:"Colour or variant",value:s(e.colourVariant)},{label:"Model",value:s(e.model)},{label:"GPC Code",value:s(e.gpcCode)}].filter((e=>e.value));var O;const P=s(r.businessName)||s(r.companyName),q=d(r,T),I=s(r.email);let R="",D="",E="";if(null!==t&&void 0!==t&&t.enabled)if("lappa"===t.mode)R=(e=>(0,a._d)(L,e))("lappa")||"Lappa";else{const e=t.custom||{};R=s(e.companyName),D=d(e,T),E=s(e.email)}const G=Boolean((null===t||void 0===t?void 0:t.enabled)&&(R||D||E)),B=s(null===n||void 0===n?void 0:n.companyName),W=d(n||{},T),F=s(null===n||void 0===n?void 0:n.email),V=Boolean((null===n||void 0===n?void 0:n.enabled)&&(B||W||F)),M=(0,o.bS)(e.productType),$=M?(Array.isArray(null===c||void 0===c?void 0:c.components)?c.components:[]).map((e=>{const r=(e=>(0,a._d)(S,e))(null===e||void 0===e?void 0:e.componentType),t=(0,i.II)(null===e||void 0===e?void 0:e.fibres,w);return r&&t&&"\u2014"!==t?{id:e.id,name:r,summary:t}:null})).filter(Boolean):[],z=Array.isArray(null===p||void 0===p?void 0:p.approvedUseRestrictions)?p.approvedUseRestrictions:[],H=M?(Array.isArray(null===p||void 0===p?void 0:p.careSymbols)?p.careSymbols:[]).map((e=>(e=>(0,a._d)(N,e))(e)||s(e))).filter(Boolean):[],J=M?s(null===p||void 0===p?void 0:p.additionalCareInstructions):"",Y=H.length>0||Boolean(J),K=[{label:"Safety information",value:s(null===p||void 0===p?void 0:p.safetyInformation)},{label:"Restrictions",value:z.map((e=>(e=>(0,a._d)(C,e))(e)||s(e))).filter(Boolean).join(" \u2022 ")},{label:"Minimum age",value:(()=>{const e=s(null===p||void 0===p?void 0:p.minimumUserAge);return e?(e=>(0,a._d)(A,e))(e)||e:""})()},{label:"Temperature",value:(()=>{if(!(0,l.dR)(z,l.LM))return"";const e=s(null===p||void 0===p?void 0:p.maximumLiquidTemperature);return e?`${e} \xb0C`:""})()},{label:"Warning",value:(0,l.dR)(z,l._B)?s(null===p||void 0===p?void 0:p.other):""}].filter((e=>e.value));return{productFields:j,productDetailFields:U,manufacturerName:P,manufacturerAddress:q,manufacturerEmail:I,showEuRepresentative:G,euRepresentativeName:R,euRepresentativeAddress:D,euRepresentativeEmail:E,showImporter:V,importerName:B,importerAddress:W,importerEmail:F,fibreComponents:$,careSymbols:H,additionalCareInstructions:J,showCareInstructions:Y,safetyFields:K,qrCodeValue:s(v)||null,qrCodeImage:s(y)||null,labelUuid:s(b)||null,brandLogoUrl:s(f)||null,brandDisplayName:s(g)||P||null,hasExtraParty:G||V,isDense:$.length>0||Y||K.length>0||U.length>0}},p=function(){var e,r;
1let{label:t,productSelects:i=null,resolveCountryLabel:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==t||"object"!==typeof t)return null;const u=(0,o.g6)(t,{}),d=(0,o.CM)(t),p=(0,o.W0)(t),m=i&&"object"===typeof i?i:{},v=s(p.brandLogo),y=v?(0,n.Ay)(v)||v:null;return c({traceability:u.traceability,manufacturer:u.manufacturer,representative:u.representative,importer:u.importer,fibreComposition:{components:(0,o.vY)(t.fibre_components)},safety:u.safety,resolveCountryLabel:l,qrCodeValue:d.qrCode,qrCodeImage:d.qrCodeImage,labelUuid:d.uuid,brandLogoUrl:y,brandDisplayName:s(null===(e=u.manufacturer)||void 0===e?void 0:e.businessName)||s(null===(r=u.manufacturer)||void 0===r?void 0:r.companyName)||null,productCategoryOptions:(0,a.Ok)(m.productCategories,a.$T),weightUnitOptions:(0,a.Ok)(m.weightUnits,a.G9),useRestrictionOptions:(0,a.Ok)(m.useRestrictions,a.hb),minimumUserAgeOptions:(0,a.Ok)(m.minimumUserAges,a.PQ),careSymbolOptions:(0,a.Ok)(m.careSymbols,a.Zx),fibreComponentTypeOptions:(0,a.Ok)(m.fibreComponentTypes,a._U),fibreTypeOptions:(0,a.Ok)(m.fibreTypes,a.CU),representativeTypeOptions:(0,a.Yw)(m.representativeTypes)})}},25355:(e,r,t)=>{t.d(r,{A:()=>v});var i=t(65043),l=t(91614),o=t(70579);function a(e){return String(null!==e&&void 0!==e?e:"").split(/\n|\u2022|;/g).map((e=>e.trim())).filter(Boolean)}function n(e){let{name:r,address:t,email:i}=e;return(0,o.jsxs)(o.Fragment,{children:[r?(0,o.jsx)("p",{className:"CreateGpsrLabelPage__gpsrCompactText",children:r}):null,t?(0,o.jsx)("p",{className:"CreateGpsrLabelPage__gpsrCompactText",children:t}):null,i?(0,o.jsx)("p",{className:"CreateGpsrLabelPage__gpsrCompactText",children:i}):null]})}function u(e){let{title:r,children:t,showDivider:i=!0,className:l=""}=e;return(0,o.jsxs)("section",{className:"CreateGpsrLabelPage__gpsrCompactSection"+(l?` ${l}`:""),children:[(0,o.jsxs)("div",{className:"CreateGpsrLabelPage__gpsrCompactSectionContent",children:[r?(0,o.jsx)("h4",{className:"CreateGpsrLabelPage__gpsrCompactSectionTitle",children:r}):null,t]}),i?(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactDivider","aria-hidden":"true"}):null]})}function s(e){let{showDivider:r=!1}=e;return(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactSection CreateGpsrLabelPage__gpsrCompactSection--empty","aria-hidden":"true",children:r?(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactDivider","aria-hidden":"true"}):null})}function d(e){let{qrCodeValue:r,showDivider:t=!1}=e;return(0,o.jsxs)("div",{className:"CreateGpsrLabelPage__gpsrCompactQrCell",children:[(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactQr",children:r?(0,o.jsx)(l.h,{value:r,size:218,level:"M",includeMargin:!1}):null}),t?(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactDivider","aria-hidden":"true"}):null]})}function c(e){let{logoUrl:r,onError:t}=e;return(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactLogoFrame",children:(0,o.jsx)("img",{src:r,alt:"",className:"CreateGpsrLabelPage__gpsrCompactLogoImage",onError:t})})}function p(e,r){return e?"logo"===e.type?(0,o.jsx)(u,{showDivider:r,className:"CreateGpsrLabelPage__gpsrCompactSection--logo",children:(0,o.jsx)(c,{logoUrl:e.logoUrl,onError:e.onError})}):(0,o.jsx)(u,{title:e.title,showDivider:r,children:e.content}):(0,o.jsx)(s,{showDivider:r})}const m={labelTitle:"Product Label (GPSR)",productTraceability:"Product Traceability",manufacturer:"Manufacturer / Brand Owner",authorizedRepresentative:"Authorized Representative",importer:"Importer",fibreComposition:"Fibre Composition",warningsAndInstructions:"Warnings and Instructions",generatedBy:"generated by Lappa.org"};function v(e){let{productFields:r=[],productDetailFields:t=[],manufacturerName:l="",manufacturerAddress:u="",manufacturerEmail:s="",showEuRepresentative:c=!1,euRepresentativeName:v="",euRepresentativeAddress:y="",euRepresentativeEmail:b="",showImporter:f=!1,importerName:g="",importerAddress:_="",importerEmail:h="",fibreComponents:C=[],careSymbols:A=[],additionalCareInstructions:N="",showCareInstructions:S=!1,safetyFields:x=[],qrCodeValue:L=null,brandLogoUrl:T=null,brandDisplayName:w="",isDense:j=!1,labelRef:k=null,copy:U=null}=e;const O={...m,...U&&"object"===typeof U?U:{}},[P,q]=(0,i.useState)(!1);(0,i.useEffect)((()=>{q(!1)}),[T]);const I=c||f,R=Array.isArray(C)&&C.length>0,D=Boolean(l)||Boolean(u)||Boolean(s),E=String(null!==T&&void 0!==T?T:"").trim(),G=Boolean(E)&&!P,B=[...Array.isArray(r)?r:[],...Array.isArray(t)?t:[]],W=[];S&&(Array.isArray(A)&&A.forEach((e=>{const r=String(null!==e&&void 0!==e?e:"").trim();r&&W.push(r)}
1)),a(N).forEach((e=>{W.push(e)}))),Array.isArray(x)&&x.forEach((e=>{a(null===e||void 0===e?void 0:e.value).forEach((e=>{W.push(e)}))}));const F=W.length>0,V=[];G&&V.push({type:"logo",key:"brand-logo",logoUrl:E,onError:()=>q(!0)}),V.push({type:"section",key:"traceability",title:O.productTraceability,content:(0,o.jsx)(o.Fragment,{children:B.map((e=>(0,o.jsxs)("p",{className:"CreateGpsrLabelPage__gpsrCompactText",children:[e.label,": ",e.value]},e.label)))})}),D&&V.push({type:"section",key:"manufacturer",title:O.manufacturer,content:(0,o.jsx)(n,{name:l,address:u,email:s})}),c&&V.push({type:"section",key:"eu-representative",title:O.authorizedRepresentative,content:(0,o.jsx)(n,{name:v,address:y,email:b})}),f&&V.push({type:"section",key:"importer",title:O.importer,content:(0,o.jsx)(n,{name:g,address:_,email:h})}),R&&V.push({type:"section",key:"fibre",title:O.fibreComposition,content:(0,o.jsx)("ul",{className:"CreateGpsrLabelPage__gpsrCompactComponentList",children:C.map((e=>(0,o.jsx)("li",{children:(0,o.jsxs)("p",{className:"CreateGpsrLabelPage__gpsrCompactText",children:[e.name,": ",e.summary]})},e.id)))})}),F&&V.push({type:"section",key:"warnings",title:O.warningsAndInstructions,content:(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactWarningList",children:W.map(((e,r)=>(0,o.jsx)("p",{className:"CreateGpsrLabelPage__gpsrCompactText",children:e},`${e}-${r}`)))})});const M=function(e){const r=[];let t=0;for(;t+1<e.length;)r.push({left:e[t],right:e[t+1]}),t+=2;return t<e.length?r.push({left:e[t],right:{type:"qr"}}):r.push({left:null,right:{type:"qr"}}),r}(V),$=M.length-1;return(0,o.jsxs)("article",{ref:k,className:`CreateGpsrLabelPage__gpsrCompactLabel${I?" CreateGpsrLabelPage__gpsrCompactLabel--withEu":""}${j?" CreateGpsrLabelPage__gpsrCompactLabel--dense":""}`,"aria-label":O.labelTitle,children:[(0,o.jsxs)("div",{className:"CreateGpsrLabelPage__gpsrCompactLabelInner",children:[(0,o.jsx)("header",{className:"CreateGpsrLabelPage__gpsrCompactHeader",children:(0,o.jsx)("h3",{className:"CreateGpsrLabelPage__gpsrCompactLabelTitle",children:O.labelTitle})}),(0,o.jsx)("div",{className:"CreateGpsrLabelPage__gpsrCompactLabelBody",children:M.map(((e,r)=>{var t;const l=r<$,a="qr"===(null===(t=e.right)||void 0===t?void 0:t.type);return(0,o.jsxs)(i.Fragment,{children:[p(e.left,l),a?(0,o.jsx)(d,{qrCodeValue:L,showDivider:l}):p(e.right,l)]},`gpsr-row-${r}`)}))})]}),(0,o.jsx)("p",{className:"CreateGpsrLabelPage__gpsrCompactLabelGenerated",children:O.generatedBy})]})}},35042:(e,r,t)=>{t.d(r,{CM:()=>v,M3:()=>C,R7:()=>d,To:()=>s,UF:()=>h,W0:()=>m,bS:()=>S,g6:()=>_,hA:()=>c,i4:()=>N,k3:()=>p,vY:()=>A});var i=t(95335),l=t(11582),o=t(10110),a=t(39654),n=t(35852);function u(e){if(null==e||"object"!==typeof e)return null;if(null!=e.country_specifics_id&&""!==e.country_specifics_id)return e.country_specifics_id;const r=e.country_specifics;return null==r||""===r?null:"object"!==typeof r?r:null!=r.id&&""!==r.id?r.id:null}function s(e,r){if(null==r||""===r)return null;const t=Array.isArray(e)?e:(i=e,Array.isArray(i)?i:Array.isArray(null===i||void 0===i?void 0:i.items)?i.items:Array.isArray(null===i||void 0===i?void 0:i.data)?i.data:Array.isArray(null===i||void 0===i?void 0:i.results)?i.results:[]);var i;const l=String(r);return t.find((e=>{const r=u(e);return null!=r&&""!==r&&String(r)===l}))||null}function d(e){return String(null!==e&&void 0!==e?e:"").trim().toLowerCase()}function c(e){const r=d(e);return r?"draft"===r?"Draft":r.split(/[_\s-]+/).filter(Boolean).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "):""}function p(e){const r=d(e);return r?"draft"===r?"View draft":"View digital label":"Create digital label"}function m(e){if(null==e||"object"!==typeof e)return{brandLogo:null,productPhoto:null,declarationOfConformity:null};const r=e=>{if(null==e)return null;const r=String(e).trim();return r||null};return{brandLogo:r(e.label_file),productPhoto:r(e.photo_product),declarationOfConformity:r(e.declaration_of_conformity)}}function v(e){if(null==e||"object"!==typeof e)return{uuid:null,qrCode:null,qrCodeImage:null};const r=e=>{if(null==e)return null;const r=String(e).trim();return r||null};return{uuid:r(e.uuid),qrCode:r(e.qr_code),qrCodeImage:r(e.qr_code_image)}}const y=e=>null==e||""===e?"":String(e),b=(e,r)=>{const t=y(e);return t||y(r)}
1,f=function(e){let{companyName:r,streetAddress:t,postalCode:i,city:l,country:o,email:a}=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{companyName:b(r,n.companyName),streetAddress:b(t,n.streetAddress),postalCode:b(i,n.postalCode),city:b(l,n.city),country:b(o,n.country),email:b(a,n.email)}},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.values(e).some((e=>""!==(0,i.WV)(e)))};function _(e){var r,t,l,o,s,d;let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const p=c.traceability&&"object"===typeof c.traceability?c.traceability:{},m=c.manufacturer&&"object"===typeof c.manufacturer?c.manufacturer:{},v=c.representative&&"object"===typeof c.representative?c.representative:{},_=c.importer&&"object"===typeof c.importer?c.importer:{},h=c.safety&&"object"===typeof c.safety?c.safety:{},C={businessName:b(null===e||void 0===e?void 0:e.business_name,m.businessName),...f({companyName:null===e||void 0===e?void 0:e.manufacturer_company_name,streetAddress:null===e||void 0===e?void 0:e.manufacturer_address_line,postalCode:null===e||void 0===e?void 0:e.manufacturer_postal_code,city:null===e||void 0===e?void 0:e.manufacturer_city,country:null!==(r=null===e||void 0===e?void 0:e.manufacturer_country)&&void 0!==r?r:null===e||void 0===e?void 0:e.manufacturer_country_id,email:null===e||void 0===e?void 0:e.manufacturer_email},m)},A=f({companyName:null===e||void 0===e?void 0:e.representative_company_name,streetAddress:null===e||void 0===e?void 0:e.representative_address_line,postalCode:null===e||void 0===e?void 0:e.representative_postal_code,city:null===e||void 0===e?void 0:e.representative_city,country:null!==(t=null===e||void 0===e?void 0:e.representative_country)&&void 0!==t?t:null===e||void 0===e?void 0:e.representative_country_id,email:null===e||void 0===e?void 0:e.representative_email},v.custom&&"object"===typeof v.custom?v.custom:(0,i.kt)()),N=null===e||void 0===e?void 0:e.representative_type,S=(0,a.ee)(N);let x;x=null==N||""===String(N).trim()?{enabled:!1,mode:"custom"===(0,a.ee)(v.mode)?"custom":"lappa",custom:A}:{enabled:!0,mode:"custom"===S?"custom":"lappa",custom:A};const L=f({companyName:null===e||void 0===e?void 0:e.importer_company_name,streetAddress:null===e||void 0===e?void 0:e.importer_address_line,postalCode:null===e||void 0===e?void 0:e.importer_postal_code,city:null===e||void 0===e?void 0:e.importer_city,country:null!==(l=null===e||void 0===e?void 0:e.importer_country)&&void 0!==l?l:null===e||void 0===e?void 0:e.importer_country_id,email:null===e||void 0===e?void 0:e.importer_email},_),T="boolean"===typeof _.enabled&&_.enabled,w={enabled:g(L)||T,...L},j=Array.isArray(null===e||void 0===e?void 0:e.approved_use_restrictions)?e.approved_use_restrictions.map((e=>y(e))).filter(Boolean):Array.isArray(h.approvedUseRestrictions)?h.approvedUseRestrictions:[];return{id:null!==(o=null===e||void 0===e?void 0:e.id)&&void 0!==o?o:null,countrySpecificsId:u(e),status:y(null===e||void 0===e?void 0:e.status),traceability:{productName:b(null===e||void 0===e?void 0:e.product_name,p.productName),batchLotNumber:b(null===e||void 0===e?void 0:e.batch,p.batchLotNumber),size:b(null===e||void 0===e?void 0:e.size,p.size),grossWeight:(0,n.B3)(b(null===e||void 0===e?void 0:e.gross_weight,p.grossWeight)),grossWeightUnit:b(null===e||void 0===e?void 0:e.gross_weight_unit,p.grossWeightUnit),productType:b(null===e||void 0===e?void 0:e.product_type,p.productType),expiryDate:b(null===e||void 0===e?void 0:e.expiry_date,p.expiryDate),countryOfOrigin:b(null!==(s=null===e||void 0===e?void 0:e.country_of_origin)&&void 0!==s?s:null===e||void 0===e?void 0:e.country_of_origin_id,p.countryOfOrigin),barcode:b(null===e||void 0===e?void 0:e.barcode,p.barcode),colourVariant:b(null===e||void 0===e?void 0:e.colour_variant,p.colourVariant),model:b(null===e||void 0===e?void 0:e.model,p.model),gpcCode:b(null===e||void 0===e?void 0:e.gpc_code,p.gpcCode),sku:y(p.sku),targetMarket:(0,i.RE)(null!==(d=null===e||void 0===e?void 0:e.target_market)&&void 0!==d?d:p.targetMarket)},manufacturer:C,representative:x,importer:w,safety:{safetyInformation:b(null===e||void 0===e?void 0:e.safety_information,h.safetyInformation),approvedUseRestrictions:j,maximumLiquidTemperature:b(null===e||void 0===e?void 0:e.maximum_liquid_temperature,h.maximumLiquidTemperature),other:b(null===e||void 0===e?void 0:e.other,h.other),minimumUserAge:b(null===e||void 0===e?void 0:e.minimum_user_age,h.minimumUserAge),careSymbols:Array.isArray(null===e||void 0===e?void 0:e.care_symbols)?e.care_symbols.map((e=>
1y(e))).filter(Boolean):Array.isArray(h.careSymbols)?h.careSymbols:[],additionalCareInstructions:b(null===e||void 0===e?void 0:e.additional_care_instructions,h.additionalCareInstructions)}}}function h(e){return null!=e&&"object"===typeof e&&!Array.isArray(e)&&(null!=e.id&&""!==String(e.id).trim())}function C(e){if(null==e||"object"!==typeof e)return null;const r=Array.isArray(e.fibres)?e.fibres:[],t=r.length>0?r.map((e=>{return{id:(0,l.k4)(),fibreType:y(null===e||void 0===e?void 0:e.fibre_type),percentage:(r=null===e||void 0===e?void 0:e.percentage,null==r||""===r?"":String(r).trim())};var r})):[{id:(0,l.k4)(),fibreType:"",percentage:""}];return{id:null!=e.id&&""!==String(e.id).trim()?String(e.id):(0,l.k4)("gpsr-textile-component"),componentType:y(e.component_type),fibres:t}}function A(e){return(Array.isArray(e)?e:Array.isArray(null===e||void 0===e?void 0:e.items)?e.items:Array.isArray(null===e||void 0===e?void 0:e.data)?e.data:Array.isArray(null===e||void 0===e?void 0:e.results)?e.results:[]).map((e=>C(e))).filter(Boolean)}function N(e,r){const t=(0,i.WV)(r);if(!t)return"";const l=(e||[]).find((e=>String(null===e||void 0===e?void 0:e.value)===String(t)));return null!=(null===l||void 0===l?void 0:l.label)&&""!==String(l.label).trim()?String(l.label):t}function S(e){return(0,i.WV)(e)===o.NN}},39654:(e,r,t)=>{t.d(r,{$T:()=>a,CU:()=>g,G9:()=>n,JS:()=>o,Ok:()=>l,PQ:()=>b,Yw:()=>m,Zx:()=>y,_U:()=>f,_d:()=>h,cO:()=>s,ee:()=>p,hb:()=>v,ks:()=>_});var i=t(35042);function l(e,r){return Array.isArray(e)&&e.length>0?e:r}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.map((e=>{var r;const t=String(null!==(r=null===e||void 0===e?void 0:e.code)&&void 0!==r?r:"").trim();return t?{value:t,label:e.name_no_article||e.name||t}:null})).filter(Boolean):[]}const a=[{value:"clothing_textile",label:"Clothing or textile"},{value:"toy",label:"Toy"},{value:"electrical_electronic",label:"Electrical or electronic"},{value:"battery",label:"Battery product"},{value:"protective_equipment",label:"Personal protective equipment"},{value:"furniture",label:"Furniture"},{value:"jewellery",label:"Jewellery"},{value:"childcare",label:"Childcare product"},{value:"cosmetic",label:"Cosmetic"},{value:"food_supplement",label:"Food or supplement"},{value:"medical",label:"Medical product"},{value:"machinery",label:"Machinery"},{value:"household",label:"General household product"},{value:"other",label:"Other"}],n=[{value:"g",label:"g"},{value:"kg",label:"kg"}],u={g:"g",kg:"kg"};function s(e){return Array.isArray(e)&&0!==e.length?e.map((e=>{var r,t,i;if(null==e||"object"!==typeof e)return e;const l=String(null!==(r=null!==(t=null!==(i=e.value)&&void 0!==i?i:e.id)&&void 0!==t?t:e.code)&&void 0!==r?r:"").trim(),o=u[l];return o?{...e,value:l||e.value,label:o}:e})):n}const d=[{value:"lappa",label:"Lappa"},{value:"custom",label:"Custom"}],c=new Set(["lappa","custom"]);function p(e){const r=String(null!==e&&void 0!==e?e:"").trim().toLowerCase();return r?"custom"===r?"custom":"lappa"===r?"lappa":"":""}function m(e){const r=l(e,d),t=(Array.isArray(r)?r:[]).map((e=>{var r,t,i,l,o;if(null==e||"object"!==typeof e)return null;const a=String(null!==(r=null!==(t=null!==(i=e.value)&&void 0!==i?i:e.id)&&void 0!==t?t:e.code)&&void 0!==r?r:"").trim(),n=p(a)||a;if(!n)return null;return{value:n,label:String(null!==(l=null!==(o=e.label)&&void 0!==o?o:e.name)&&void 0!==l?l:n).trim()||n}})).filter(Boolean).filter((e=>c.has(e.value)));return t.length>0?t:d}const v=[{value:"no_warning_required",label:"No special warning required"},{value:"cold_drinks_only",label:"Cold drinks only"},{value:"max_liquid_temperature",label:"Maximum liquid temperature"},{value:"no_carbonated_drinks",label:"Not suitable for carbonated drinks"},{value:"not_microwave_safe",label:"Not microwave-safe"},{value:"not_dishwasher_safe",label:"Not dishwasher-safe"},{value:"wash_before_first_use",label:"Wash before first use"},{value:"keep_away_from_heat",label:"Keep away from heat or open flame"},{value:"other",label:"Other warning"}],y=[{value:"machine_wash",label:"Machine wash"},{value:"hand_wash",label:"Hand wash"},{value:"do_not_wash",label:"Do not wash"},{value:"do_not_bleach",label:"Do not bleach"},{value:"tumble_dry",label:"Tumble dry"},{value:"do_not_tumble_dry",label:"Do not tumble dry"},{value:"dry_flat",label:"Dry flat"},{value:"line_dry",label:"Line dry"},{value:"iron_at_low_temperature",label:"Iron at low temperature"},{value:"iron_at_medium_temperature",label:"Iron at medium temperature"},{value:"iron_at_high_temperature",label:"Iron at high temperature"},{value:"do_not_iron",label:"Do not iron"},{value:"professional_dry_clean",label:"Professional dry clean"},{value:"do_not_dry_clean",label:"Do not dry clean"}],b=[{value:"no_minimum_age",label:"No minimum age"},{value:"0+",label:"0+"},{value:"3+",label:"3+"},{value:"6+",label:"6+"},{value:"8+",label:"8+"},{value:"12+",label:"12+"},{value:"14+",label:"14+"},{value:"16+",label:"16+"},{value:"18+",label:"18+"}],f=[{value:"main_fabric",label:"Main fabric"},{value:"lining",label:"Lining"},{value:"filling",label:"Filling"},{value:"trim",label:"Trim"},{value:"coating",label:"Coating"},{value:"other",label:"Other"}],g=[{value:"cotton",label:"Cotton"},{value:"flax_linen",label:"Flax (Linen)"},{value:"hemp",label:"Hemp"},{value:"jute",label:"Jute"},{value:"bamboo",label:"Bamboo"},{value:"ramie",label:"Ramie"},{value:"sisal",label:"Sisal"},{value:"wool",label:"Wool"},{value:"silk",label:"Silk"},{value:"cashmere",label:"Cashmere"},{value:"mohair",label:"Mohair"},{value:"alpaca",label:"Alpaca"},{value:"angora",label:"Angora"},{value:"camel_hair",label:"Camel Hair"},{value:"polyester",label:"Polyester"},{value:"nylon_polyamide",label:"Nylon (Polyamide)"},{value:"acrylic",label:"Acrylic"},{value:"spandex_elastane",label:"Spandex (Elastane)"},{value:"viscose_rayon",label:"Viscose (Rayon)"},{value:"lyocell_tencel",label:"Lyocell (Tencel)"}];function _(e){const r=String(null!==e&&void 0!==e?e:"").trim();if(!r)return"";const t=a.find((e=>e.label===r||e.value===r));return t?t.value:r}function h(e,r){return(0,i.i4)(e,r)}},55264:(e,r,t)=>{t.d(r,{$D:()=>n,C8:()=>i,Un:()=>o,ob:()=>a,v0:()=>l});t(39654);const i=44,l="fibre-composition",o=[{id:"files",label:"Files",description:"Upload brand logo, product photo and declaration of conformity."},{id:"traceability",label:"Product traceability",description:"Capture product identification and origin details."},{id:"manufacturer",label:"Manufacturer & Representative",description:"Confirm manufacturer details and Authorized Representative."},{id:l,label:"Fibre composition",description:"Describe fibre components and percentages."},{id:"safety",label:"Safety information",description:"Add product safety warnings, use restrictions and care instructions."},{id:"preview",label:"GPSR Label & Digital Link",description:"Review your completed label, print it, or copy the digital link."}],a=".pdf,application/pdf",n="g"},95335:(e,r,t)=>{t.d(r,{Ks:()=>c,RE:()=>a,WV:()=>l,Xc:()=>n,gX:()=>d,kt:()=>s,t$:()=>p,wB:()=>m});var i=t(55264);const l=e=>String(null!==e&&void 0!==e?e:"").trim(),o={EU:"European Union",GBR:"United Kingdom"},a=e=>(Array.isArray(e)?e:null==e||""===e?[]:[e]).map((e=>
1l(e))).filter(Boolean),n=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\u2014";const t=a(e);return 0===t.length?r:t.map((e=>o[e]||e)).join(", ")},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e.street,e.housenum,e.apartment].map((e=>String(null!==e&&void 0!==e?e:"").trim())).filter(Boolean).join(", ")},s=()=>({companyName:"",streetAddress:"",postalCode:"",city:"",country:"",email:""}),d=function(){var e,r,t,i,l,o;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=null!==a&&void 0!==a&&a.info&&"object"===typeof a.info?a.info:{};return{businessName:"",companyName:String(null!==(e=null===a||void 0===a?void 0:a.name)&&void 0!==e?e:"").trim(),streetAddress:u(n),postalCode:String(null!==(r=n.postcode)&&void 0!==r?r:"").trim(),city:String(null!==(t=n.locality)&&void 0!==t?t:"").trim(),country:String(null!==(i=null!==(l=null===a||void 0===a?void 0:a.country_id)&&void 0!==l?l:null===a||void 0===a?void 0:a.country)&&void 0!==i?i:"").trim(),email:String(null!==(o=null===a||void 0===a?void 0:a.email)&&void 0!==o?o:"").trim()}},c=function(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=null===r||void 0===r?void 0:r.representative_type,i={companyName:l(null===r||void 0===r?void 0:r.representative_company_name),streetAddress:l(null===r||void 0===r?void 0:r.representative_address_line),postalCode:l(null===r||void 0===r?void 0:r.representative_postal_code),city:l(null===r||void 0===r?void 0:r.representative_city),country:l(null!==(e=null===r||void 0===r?void 0:r.representative_country)&&void 0!==e?e:null===r||void 0===r?void 0:r.representative_country_id),email:l(null===r||void 0===r?void 0:r.representative_email)};return null==t||""===t?{enabled:!1,mode:"lappa",custom:i}:{enabled:!0,mode:"custom"===String(t)?"custom":"lappa",custom:i}},p=()=>({enabled:!1,...s()}),m=function(){var e,r;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{productName:l(null!==(e=t.name)&&void 0!==e?e:t.description),batchLotNumber:"",size:"",grossWeight:"",grossWeightUnit:i.$D,productType:"",expiryDate:"",barcode:"",colourVariant:"",model:"",gpcCode:"",sku:l(t.sku),countryOfOrigin:"",targetMarket:a(null!==(r=t.target_market)&&void 0!==r?r:t.targetMarket)}}}}]);
2//# sourceMappingURL=1182.41c44e2e.chunk.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.