{"product_id":"hidden-mugs","title":"Hidden Mugs","description":"\u003cp\u003eLooks like a pattern until you turn your mug sideways. Choose your hidden message, from Yorkshire favourites to some very sweary office humour.\u003c\/p\u003e\u003cp\u003eOne printed mug per order. Choose your message below. Delivery is calculated at checkout. Images are design previews.\u003c\/p\u003e\u003cdiv id=\"pp-mug-picker\" hidden\u003e\n\u003cbutton type=\"button\" class=\"button\" id=\"pp-create\" aria-controls=\"pp-custom\" aria-expanded=\"false\" style=\"margin-bottom:1rem\"\u003eCreate your own message\u003c\/button\u003e\u003cdiv id=\"pp-ready\"\u003e\n\u003clabel for=\"pp-saying\"\u003eChoose a ready-made saying\u003c\/label\u003e\u003cselect id=\"pp-saying\" style=\"display:block;width:100%;padding:12px;font:inherit\"\u003e\u003c\/select\u003e\n\u003c\/div\u003e\n\u003cdiv id=\"pp-custom\" hidden\u003e\n\u003clabel for=\"pp-words\"\u003eYour message\u003c\/label\u003e\u003cinput id=\"pp-words\" maxlength=\"48\" placeholder=\"Type your saying\" style=\"display:block;width:100%;padding:12px;font:inherit\"\u003e\u003csmall id=\"pp-hint\" aria-live=\"polite\"\u003e\u003c\/small\u003e \n\u003c\/div\u003e\n\u003cdiv id=\"pp-photos\" aria-live=\"polite\"\u003e\u003c\/div\u003e\n\u003cform action=\"\/cart\/add\" method=\"post\"\u003e\n\u003cinput type=\"hidden\" name=\"id\"\u003e\u003cinput type=\"hidden\" name=\"properties[Hidden message]\" disabled\u003e\u003clabel for=\"pp-order-qty\" style=\"display:block;margin:1.6rem 0 .5rem\"\u003eQuantity\u003c\/label\u003e\u003cdiv style=\"display:grid;grid-template-columns:7rem minmax(0,1fr);gap:1rem;align-items:stretch\"\u003e\n\u003cinput id=\"pp-order-qty\" type=\"number\" min=\"1\" step=\"1\" name=\"quantity\" value=\"1\" required style=\"box-sizing:border-box;width:100%;min-height:4.8rem;padding:.6rem;text-align:center;font:inherit;color:inherit;background:white;border:1px solid currentColor;border-radius:var(--inputs-radius,0)\"\u003e\u003cbutton class=\"button\" type=\"submit\" style=\"width:100%;min-width:0;min-height:4.8rem;margin:0\"\u003eAdd to cart\u003c\/button\u003e\n\u003c\/div\u003e\n\u003cp id=\"pp-order-status\" role=\"status\"\u003e\u003c\/p\u003e\n\u003c\/form\u003e\n\u003c\/div\u003e\u003cscript\u003e(()=\u003e{\nconst data=[{\"id\":\"59137132036440\",\"name\":\"I am surrounded by cunts\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-01-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-01-sideways.jpg?v=1794784040\"]},{\"id\":\"59137132069208\",\"name\":\"I am surrounded by idiots\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-02-upright.jpg?v=1794784040\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-02-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132101976\",\"name\":\"For fuck’s sake\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-03-upright.jpg?v=1794784040\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-03-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132134744\",\"name\":\"Fuck this shit\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-04-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-04-sideways.jpg?v=1794784040\"]},{\"id\":\"59137132167512\",\"name\":\"Fresh out of fucks\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-05-upright.jpg?v=1794784040\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-05-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132200280\",\"name\":\"Bollocks to Monday\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-06-upright.jpg?v=1794784040\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-06-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132233048\",\"name\":\"Not today, dickhead\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-07-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-07-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132265816\",\"name\":\"Absolutely knackered\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-08-upright.jpg?v=1794784040\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-08-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132298584\",\"name\":\"Could be worse\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-09-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-09-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132331352\",\"name\":\"Put the kettle on\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/Mug-10.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/Sideways-10.jpg?v=1794784044\"]},{\"id\":\"59137132364120\",\"name\":\"Tea first, talk later\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-11-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-11-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132396888\",\"name\":\"Do I look busy?\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-12-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-12-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132429656\",\"name\":\"My favourite human\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-13-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-13-sideways.jpg?v=1794784041\"]},{\"id\":\"59137132462424\",\"name\":\"Love you loads\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-14-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-14-sideways.jpg?v=1794784042\"]},{\"id\":\"59137132495192\",\"name\":\"You’re my cup of tea\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-15-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-15-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730099032\",\"name\":\"Oh do fuck off\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-17-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-17-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730164568\",\"name\":\"Grade A bellend\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-19-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-19-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730197336\",\"name\":\"Cunt of the month\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-20-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-20-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730230104\",\"name\":\"Gobshite on mute\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-21-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-21-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730262872\",\"name\":\"Resting twat face\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-22-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-22-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730295640\",\"name\":\"I liked you better on mute\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-23-upright.jpg?v=1794784043\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-23-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730328408\",\"name\":\"Stick it up your spreadsheet\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-24-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-24-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730361176\",\"name\":\"World’s okayest bastard\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-25-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-25-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730393944\",\"name\":\"Even my mug thinks you’re a knob\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-26-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-26-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730426712\",\"name\":\"Too early for this bollocks\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-27-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-27-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730459480\",\"name\":\"I’ve seen better heads on pints\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-28-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-28-sideways.jpg?v=1794784043\"]},{\"id\":\"59138730492248\",\"name\":\"Who put 50p in the dickhead?\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-29-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-29-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730525016\",\"name\":\"Your village wants its idiot back\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-30-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-30-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730557784\",\"name\":\"Head of fuck all\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-31-upright.jpg?v=1794784041\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-31-sideways.jpg?v=1794784041\"]},{\"id\":\"59138730590552\",\"name\":\"Absolute cockwomble\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-32-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-32-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730623320\",\"name\":\"What fresh bellend is this?\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-33-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-33-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730656088\",\"name\":\"My last fuck has left the building\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-34-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-34-sideways.jpg?v=1794784043\"]},{\"id\":\"59138730688856\",\"name\":\"Have a day off, you weapon\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-35-upright.jpg?v=1794784043\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-35-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730721624\",\"name\":\"Decaf? I’m already a prick\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-36-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-36-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730754392\",\"name\":\"This meeting needs a pub\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-37-upright.jpg?v=1794784043\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-37-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730787160\",\"name\":\"Nice spreadsheet, still bollocks\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-38-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-38-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730852696\",\"name\":\"I came. I saw. I put the kettle on.\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-40-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-40-sideways.jpg?v=1794784042\"]},{\"id\":\"59138730885464\",\"name\":\"Bollocks to the lot of you\",\"images\":[\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-41-upright.jpg?v=1794784042\",\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-41-sideways.jpg?v=1794784042\"]}],glyphs={\"0\":[741,[77.5,-8.5,662.5,750.5],[[\"m\",371,-8.5],[\"c\",600.3,-8.5,662.5,140.5,662.5,371],[\"c\",662.5,602.5,600.3,750.5,371,750.5],[\"c\",138.7,750.5,77.5,602.5,77.5,371],[\"c\",77.5,140.5,138.7,-8.5,371,-8.5],[\"h\"],[\"m\",371,76.5],[\"c\",204.1,76.5,172.5,199.7,172.5,371],[\"c\",172.5,544.3,204.1,662.5,371,662.5],[\"c\",536.9,662.5,568.5,544.3,568.5,371],[\"c\",568.5,199.7,536.9,76.5,371,76.5],[\"h\"]]],\"1\":[384,[37.5,2.5,265.5,738.5],[[\"m\",175.5,2.5],[\"l\",265.5,2.5],[\"l\",265.5,738.5],[\"l\",37.5,738.5],[\"l\",37.5,650.5],[\"l\",175.5,650.5],[\"h\"]]],\"2\":[604,[38.5,2.5,543.5,750.5],[[\"m\",38.5,2.5],[\"l\",543.5,2.5],[\"l\",543.5,83.5],[\"l\",164.8,83.5],[\"l\",363.3,273.8],[\"c\",484.1,389.7,532.5,452.8,532.5,564],[\"c\",532.5,696.7,454.2,750.5,297,750.5],[\"c\",181.3,750.5,110.9,730.7,48.4,697],[\"l\",89,621.4],[\"c\",133.1,645.3,208.7,665.5,289,665.5],[\"c\",399.9,665.5,440.5,631.2,440.5,555],[\"c\",440.5,470,397.8,424.2,285.7,317.2],[\"l\",38.5,79.9],[\"h\"]]],\"3\":[622,[20.5,-9.5,556.5,750.5],[[\"m\",297,-9.5],[\"c\",460.4,-9.5,556.5,39.5,556.5,212],[\"c\",556.5,329.4,525.3,386.8,437.5,407.7],[\"c\",504.4,428.1,535.5,478.7,535.5,578],[\"c\",535.5,706.5,457.3,750.5,299,750.5],[\"c\",205.3,750.5,108.9,729.6,39.6,687.2],[\"l\",88.7,616.3],[\"c\",143,648.3,222.7,667.5,291,667.5],[\"c\",402.7,667.5,445.5,640.4,445.5,561],[\"c\",445.5,474.8,402.8,442.5,275,442.5],[\"l\",169.5,442.5],[\"l\",169.5,360.5],[\"l\",277,360.5],[\"c\",431.2,360.5,466.5,313.8,466.5,219],[\"c\",466.5,106.6,413.7,72.5,293,72.5],[\"c\",210.6,72.5,144,92.7,66.9,134.7],[\"l\",20.5,60.9],[\"c\",106,11.3,185.3,-9.5,297,-9.5],[\"h\"]]],\"4\":[676,[50.5,2.5,640.5,738.5],[[\"m\",50.5,178.5],[\"l\",421.5,178.5],[\"l\",421.5,2.5],[\"l\",507.5,2.5],[\"l\",507.5,178.5],[\"l\",640.5,178.5],[\"l\",640.5,257.5],[\"l\",507.5,257.5],[\"l\",507.5,492.5],[\"l\",442.3,492.5],[\"l\",422.3,257.5],[\"l\",151.3,257.5],[\"l\",479.3,738.5],[\"l\",379.3,738.5],[\"l\",50.5,254.2],[\"h\"]]],\"5\":[646,[54.5,-8.5,599.5,738.5],[[\"m\",318,-8.5],[\"c\",481.6,-8.5,599.5,33.8,599.5,241],[\"c\",599.5,443.3,489.5,487.5,348,487.5],[\"c\",269.3,487.5,208.9,472.6,171.3,453.8],[\"l\",182.6,655.5],[\"l\",544.5,655.5],[\"l\",544.5,738.5],[\"l\",99.4,738.5],[\"l\",80.6,395.8],[\"l\",159.8,371.7],[\"c\",207.2,394.4,252.7,405.5,325,405.5],[\"c\",429.5,405.5,506.5,372.7,506.5,238],[\"c\",506.5,100.2,420.4,72.5,316,72.5],[\"c\",224.4,72.5,159.9,103.8,101.8,135.7],[\"l\",54.5,61.8],[\"c\",118.1,24.2,198.5,-8.5,318,-8.5],[\"h\"]]],\"6\":[700,[73.5,-8.5,640.5,738.5],[[\"m\",368,-8.5],[\"c\",573.7,-8.5,640.5,87.8,640.5,248],[\"c\",640.5,403.3,584.6,496.5,397,496.5],[\"c\",285.3,496.5,209.5,475.8,166.5,421.6],[\"c\",181.6,552.6,225.3,655.5,498,655.5],[\"l\",539.5,655.5],[\"l\",539.5,738.5],[\"l\",501,738.5],[\"c\",160.3,738.5,73.5,615.2,73.5,306],[\"c\",73.5,83,167,-8.5,368,-8.5],[\"h\"],[\"m\",369,71.5],[\"c\",243.3,71.5,168.5,119.6,168.5,263],[\"c\",168.5,368.4,250.3,419.5,369,419.5],[\"c\",508.4,419.5,549.5,349.7,549.5,245],[\"c\",549.5,140.4,512.5,71.5,369,71.5],[\"h\"]]],\"7\":[548,[21.5,2.5,527.5,738.5],[[\"m\",140.8,2.5],[\"l\",237.4,2.5],[\"l\",527.5,664.5],[\"l\",527.5,738.5],[\"l\",21.5,738.5],[\"l\",21.5,655.5],[\"l\",427.8,655.5],[\"h\"]]],\"8\":[707,[65.5,-11.5,641.5,750.5],[[\"m\",353,-11.5],[\"c\",561.9,-11.5,641.5,76,641.5,208],[\"c\",641.5,305.5,609.2,378.9,513.2,407],[\"c\",590.1,430,615.5,492.5,615.5,568],[\"c\",615.5,674.2,558.8,750.5,353,750.5],[\"c\",148.2,750.5,90.5,674.2,90.5,568],[\"c\",90.5,492.5,114.9,433,193.5,406.8],[\"c\",100.8,380.9,65.5,306.4,65.5,208],[\"c\",65.5,76,144.1,-11.5,353,-11.5],[\"h\"],[\"m\",353,67.5],[\"c\",217.1,67.5,158.5,118.9,158.5,215],[\"c\",158.5,311.1,217.1,362.5,353,362.5],[\"c\",488.9,362.5,548.5,311.1,548.5,215],[\"c\",548.5,118.9,488.9,67.5,353,67.5],[\"h\"],[\"m\",353,439.5],[\"c\",225,439.5,179.5,481.9,179.5,557],[\"c\",179.5,631.1,225,672.5,353,672.5],[\"c\",481,672.5,526.5,631.1,526.5,557],[\"c\",526.5,481.9,481,439.5,353,439.5],[\"h\"]]],\"9\":[700,[63.5,2.5,630.5,750.5],[[\"m\",163.5,2.5],[\"l\",203,2.5],[\"c\",543.7,2.5,630.5,126.8,630.5,436],[\"c\",630.5,659,537,750.5,336,750.5],[\"c\",130.3,750.5,63.5,652.2,63.5,492],[\"c\",63.5,340.7,119.5,243.5,307,243.5],[\"c\",419.7,243.5,493.6,264.2,537.5,318.2],[\"c\",522.5,188.4,480.7,83.5,205,83.5],[\"l\",163.5,83.5],[\"h\"],[\"m\",334,318.5],[\"c\",195.6,318.5,154.5,387.3,154.5,493],[\"c\",154.5,597.6,191.5,666.5,336,666.5],[\"c\",460.7,666.5,535.5,618.4,535.5,474],[\"c\",535.5,370.6,453.7,318.5,334,318.5],[\"h\"]]],\"A\":[741,[25.6875,2.5,715.3125,743.5],[[\"m\",25.7,2.5],[\"l\",121.3,2.5],[\"l\",182.3,158.5],[\"l\",555.7,158.5],[\"l\",616.7,2.5],[\"l\",715.3,2.5],[\"l\",420.3,743.5],[\"l\",320.7,743.5],[\"h\"],[\"m\",214.3,246.5],[\"l\",368,631.8],[\"l\",521.7,246.5],[\"h\"]]],\"B\":[717,[86.5,2.5,675.5,738.5],[[\"m\",86.5,2.5],[\"l\",405,2.5],[\"c\",584.4,2.5,675.5,52.5,675.5,205],[\"c\",675.5,308.4,648.2,365.9,556.8,388.7],[\"c\",631.1,412,656.5,472.5,656.5,558],[\"c\",656.5,681.8,583.1,738.5,411,738.5],[\"l\",86.5,738.5],[\"h\"],[\"m\",180.5,88.5],[\"l\",180.5,336.5],[\"l\",414,336.5],[\"c\",527.8,336.5,578.5,300.3,578.5,214],[\"c\",578.5,124.7,526.8,88.5,416,88.5],[\"h\"],[\"m\",180.5,425.5],[\"l\",180.5,651.5],[\"l\",414,651.5],[\"c\",518,651.5,559.5,614.1,559.5,544],[\"c\",559.5,474.3,528.4,425.5,414,425.5],[\"h\"]]],\"C\":[731,[43.5,-8.5,685.421875,750.5],[[\"m\",411,-8.5],[\"c\",560.2,-8.5,634.4,40,685.4,91],[\"l\",617,156.5],[\"c\",574.6,116,523.8,81.5,416,81.5],[\"c\",224.8,81.5,140.5,182.1,140.5,370],[\"c\",140.5,561,231.9,658.5,415,658.5],[\"c\",496.5,658.5,561.4,632.1,610.9,586.5],[\"l\",680.4,656],[\"c\",615.6,717.8,528.5,750.5,416,750.5],[\"c\",179,750.5,43.5,630.9,43.5,371],[\"c\",43.5,122.9,155.2,-8.5,411,-8.5],[\"h\"]]],\"D\":[761,[86.5,2.5,718.5,738.5],[[\"m\",86.5,2.5],[\"l\",321,2.5],[\"c\",603.2,2.5,718.5,89.2,718.5,371],[\"c\",718.5,657.8,613.2,738.5,332,738.5],[\"l\",86.5,738.5],[\"h\"],[\"m\",182.5,90.5],[\"l\",182.5,647.5],[\"l\",333,647.5],[\"c\",563.2,647.5,621.5,578.9,621.5,371],[\"c\",621.5,166,552.1,90.5,326,90.5],[\"h\"]]],\"E\":[652,[86.5,2.5,592.5,738.5],[[\"m\",86.5,2.5],[\"l\",592.5,2.5],[\"l\",592.5,90.5],[\"l\",182.5,90.5],[\"l\",182.5,337.5],[\"l\",578.5,337.5],[\"l\",578.5,428.5],[\"l\",182.5,428.5],[\"l\",182.5,646.5],[\"l\",588.5,646.5],[\"l\",588.5,738.5],[\"l\",86.5,738.5],[\"h\"]]],\"F\":[614,[86.5,2.5,574.5,738.5],[[\"m\",86.5,2.5],[\"l\",182.5,2.5],[\"l\",182.5,327.5],[\"l\",565.5,327.5],[\"l\",565.5,418.5],[\"l\",182.5,418.5],[\"l\",182.5,646.5],[\"l\",574.5,646.5],[\"l\",574.5,738.5],[\"l\",86.5,738.5],[\"h\"]]],\"G\":[783,[43.5,-8.5,739.5,750.5],[[\"m\",410,-8.5],[\"c\",680.4,-8.5,739.5,114.6,739.5,318],[\"l\",739.5,408.5],[\"l\",405.5,408.5],[\"l\",405.5,323.5],[\"l\",644.5,323.5],[\"l\",644.5,300],[\"c\",644.5,152.3,599.4,76.5,414,76.5],[\"c\",211.8,76.5,139.5,173.2,139.5,370],[\"c\",139.5,564,228.9,658.5,415,658.5],[\"c\",519.7,658.5,577.5,625,620.9,586.5],[\"l\",689.5,657],[\"c\",640.5,706,558.4,750.5,415,750.5],[\"c\",175.9,750.5,43.5,636.8,43.5,371],[\"c\",43.5,120.8,139.3,-8.5,410,-8.5],[\"h\"]]],\"H\":[787,[86.5,2.5,700.5,738.5],[[\"m\",86.5,2.5],[\"l\",182.5,2.5],[\"l\",182.5,337.5],[\"l\",604.5,337.5],[\"l\",604.5,2.5],[\"l\",700.5,2.5],[\"l\",700.5,738.5],[\"l\",604.5,738.5],[\"l\",604.5,432.5],[\"l\",182.5,432.5],[\"l\",182.5,738.5],[\"l\",86.5,738.5],[\"h\"]]],\"I\":[284,[94.5,2.5,189.5,738.5],[[\"m\",94.5,2.5],[\"l\",189.5,2.5],[\"l\",189.5,738.5],[\"l\",94.5,738.5],[\"h\"]]],\"J\":[414,[30.5,1.5,332.5,738.5],[[\"m\",112,1.5],[\"c\",254.2,1.5,332.5,55.3,332.5,216],[\"l\",332.5,738.5],[\"l\",237.5,738.5],[\"l\",237.5,220],[\"c\",237.5,130,201.1,90.5,101,90.5],[\"l\",30.5,90.5],[\"l\",30.5,2.4],[\"c\",57,1.5,69,1.5,112,1.5],[\"h\"]]],\"K\":[719,[86.5,2.5,679.34375,738.5],[[\"m\",570.3,2.5],[\"l\",679.3,2.5],[\"l\",382.8,449.2],[\"l\",642.4,738.5],[\"l\",533.1,738.5],[\"l\",180.5,345.5],[\"l\",180.5,738.5],[\"l\",86.5,738.5],[\"l\",86.5,2.5],[\"l\",180.5,2.5],[\"l\",180.5,223],[\"l\",320.3,379.1],[\"h\"]]],\"L\":[595,[86.5,2.5,568.5,738.5],[[\"m\",86.5,2.5],[\"l\",568.5,2.5],[\"l\",568.5,90.5],[\"l\",182.5,90.5],[\"l\",182.5,738.5],[\"l\",86.5,738.5],[\"h\"]]],\"M\":[931,[86.5,2.5,844.5,738.5],[[\"m\",86.5,2.5],[\"l\",178.5,2.5],[\"l\",178.5,583.4],[\"l\",423.7,2.5],[\"l\",504.3,2.5],[\"l\",750.5,584.3],[\"l\",750.5,2.5],[\"l\",844.5,2.5],[\"l\",844.5,738.5],[\"l\",718.7,738.5],[\"l\",466,135.5],[\"l\",214.3,738.5],[\"l\",86.5,738.5],[\"h\"]]],\"N\":[791,[86.5,2.5,704.5,738.5],[[\"m\",86.5,2.5],[\"l\",179.5,2.5],[\"l\",179.5,600.7],[\"l\",615.3,2.5],[\"l\",704.5,2.5],[\"l\",704.5,738.5],[\"l\",611.5,738.5],[\"l\",611.5,162.3],[\"l\",192.7,738.5],[\"l\",86.5,738.5],[\"h\"]]],\"O\":[839,[43.5,-9.5,794.5,750.5],[[\"m\",419,-9.5],[\"c\",655.1,-9.5,794.5,103.2,794.5,371],[\"c\",794.5,637.8,655.1,750.5,419,750.5],[\"c\",182.9,750.5,43.5,637.8,43.5,371],[\"c\",43.5,103.2,182.9,-9.5,419,-9.5],[\"h\"],[\"m\",419,79.5],[\"c\",224.8,79.5,140.5,184.1,140.5,369],[\"c\",140.5,553.9,224.8,658.5,419,658.5],[\"c\",613.2,658.5,698.5,553.9,698.5,369],[\"c\",698.5,184.1,613.2,79.5,419,79.5],[\"h\"]]],\"P\":[720,[86.5,2.5,676.5,738.5],[[\"m\",86.5,2.5],[\"l\",180.5,2.5],[\"l\",180.5,270.5],[\"l\",414,270.5],[\"c\",604.8,270.5,676.5,359.9,676.5,512],[\"c\",676.5,663,602.9,738.5,417,738.5],[\"l\",86.5,738.5],[\"h\"],[\"m\",180.5,359.5],[\"l\",180.5,649.5],[\"l\",415,649.5],[\"c\",525.7,649.5,580.5,617.4,580.5,507],[\"c\",580.5,398.7,523.8,359.5,417,359.5],[\"h\"]]],\"Q\":[839,[43.5,-184.5,794.5,750.5],[[\"m\",541,-184.5],[\"c\",566,-184.5,612,-183.5,620.5,-183.5],[\"l\",620.5,-101.5],[\"l\",541,-101.5],[\"c\",452.9,-101.5,434.5,-80.9,438.6,-3.6],[\"c\",671,2.5,794.5,111.1,794.5,371],[\"c\",794.5,637.8,663.1,750.5,419,750.5],[\"c\",175.9,750.5,43.5,637.8,43.5,371],[\"c\",43.5,132,148.2,21.4,346.6,0.2],[\"c\",338.6,-137.1,380.1,-184.5,541,-184.5],[\"h\"],[\"m\",419,79.5],[\"c\",217.7,79.5,140.5,184.2,140.5,369],[\"c\",140.5,553.8,217.7,658.5,419,658.5],[\"c\",620.2,658.5,698.5,553.8,698.5,369],[\"c\",698.5,184.2,620.2,79.5,419,79.5],[\"h\"]]],\"R\":[732,[86.5,2.5,671.5,738.5],[[\"m\",556.4,2.5],[\"l\",658.7,2.5],[\"l\",491.1,293.8],[\"c\",621.5,317.3,671.5,397.7,671.5,517],[\"c\",671.5,661,600.9,738.5,414,738.5],[\"l\",86.5,738.5],[\"l\",86.5,2.5],[\"l\",180.5,2.5],[\"l\",180.5,287.5],[\"l\",391.4,287.5],[\"h\"],[\"m\",180.5,375.5],[\"l\",180.5,649.5],[\"l\",410,649.5],[\"c\",516.6,649.5,574.5,620.5,574.5,513],[\"c\",574.5,405.5,514.6,375.5,413,375.5],[\"h\"]]],\"S\":[713,[39.4375,-7.5,657.5,750.5],[[\"m\",355,-7.5],[\"c\",568.1,-7.5,657.5,66.2,657.5,213],[\"c\",657.5,372,541.5,396.5,375.6,424.5],[\"c\",247.5,446.5,172.5,463,172.5,549],[\"c\",172.5,628.3,224.2,662.5,353,662.5],[\"c\",436.4,662.5,518.1,638.3,567.3,605.5],[\"l\",619.5,684.3],[\"c\",562.9,721.7,477.6,750.5,353,750.5],[\"c\",168.7,750.5,77.5,694.6,77.5,547],[\"c\",77.5,394.9,181.5,366.5,351.4,338.5],[\"c\",479.4,317.5,562.5,302.1,562.5,208],[\"c\",562.5,116.7,503.8,76.5,352,76.5],[\"c\",261.7,76.5,172,97.7,87.7,152.5],[\"l\",39.4,78.7],[\"c\",129,18.3,234.3,-7.5,355,-7.5],[\"h\"]]],\"T\":[693,[26.5,2.5,667.5,738.5],[[\"m\",298.5,2.5],[\"l\",395.5,2.5],[\"l\",395.5,646.5],[\"l\",667.5,646.5],[\"l\",667.5,738.5],[\"l\",26.5,738.5],[\"l\",26.5,646.5],[\"l\",298.5,646.5],[\"h\"]]],\"U\":[788,[81.5,-10.5,707.5,738.5],[[\"m\",393,-10.5],[\"c\",667.1,-10.5,707.5,126.4,707.5,272],[\"l\",707.5,738.5],[\"l\",614.5,738.5],[\"l\",614.5,284],[\"c\",614.5,160.4,573.5,79.5,394,79.5],[\"c\",215.4,79.5,177.5,162.5,177.5,284],[\"l\",177.5,738.5],[\"l\",81.5,738.5],[\"l\",81.5,272],[\"c\",81.5,127.3,118.9,-10.5,393,-10.5],[\"h\"]]],\"V\":[739,[26.671875,-2.5,713.3125,738.5],[[\"m\",319.7,-2.5],[\"l\",419.3,-2.5],[\"l\",713.3,738.5],[\"l\",612.7,738.5],[\"l\",371,115.1],[\"l\",127.3,738.5],[\"l\",26.7,738.5],[\"h\"]]],\"W\":[1083,[34.40625,-2.5,1048.59375,738.5],[[\"m\",268.8,-2.5],[\"l\",355.2,-2.5],[\"l\",542,584.2],[\"l\",729.8,-2.5],[\"l\",815.2,-2.5],[\"l\",1048.6,738.5],[\"l\",954.8,738.5],[\"l\",773,155.7],[\"l\",587.2,738.5],[\"l\",501.8,738.5],[\"l\",316,155.7],[\"l\",134.2,738.5],[\"l\",34.4,738.5],[\"h\"]]],\"X\":[728,[40.796875,2.5,688.1875,738.5],[[\"m\",580.3,2.5],[\"l\",688.2,2.5],[\"l\",416.9,388],[\"l\",663.2,738.5],[\"l\",557.3,738.5],[\"l\",367,459.6],[\"l\",171.7,738.5],[\"l\",65.8,738.5],[\"l\",310,388],[\"l\",40.8,2.5],[\"l\",146.7,2.5],[\"l\",360,316.4],[\"h\"]]],\"Y\":[716,[14.59375,2.5,700.40625,738.5],[[\"m\",310.5,2.5],[\"l\",405.5,2.5],[\"l\",405.5,282.7],[\"l\",700.4,738.5],[\"l\",601.4,738.5],[\"l\",359,367.4],[\"l\",118.6,738.5],[\"l\",14.6,738.5],[\"l\",310.5,280.7],[\"h\"]]],\"Z\":[672,[44.5,2.5,625.5,738.5],[[\"m\",44.5,2.5],[\"l\",625.5,2.5],[\"l\",625.5,90.5],[\"l\",165.8,90.5],[\"l\",614.5,653.9],[\"l\",614.5,738.5],[\"l\",61.5,738.5],[\"l\",61.5,646.5],[\"l\",495.2,646.5],[\"l\",44.5,79.1],[\"h\"]]],\" \":[230,null,[]],\".\":[253,[67.5,2.5,184.5,129.5],[[\"m\",67.5,2.5],[\"l\",184.5,2.5],[\"l\",184.5,129.5],[\"l\",67.5,129.5],[\"h\"]]],\",\":[253,[66.34375,-126.703125,184.5,129.5],[[\"m\",90.1,-126.7],[\"c\",169.2,-89.1,184.5,-59.4,184.5,34],[\"l\",184.5,129.5],[\"l\",67.5,129.5],[\"l\",67.5,2.5],[\"l\",127.5,2.5],[\"c\",127.5,-40,114.5,-54,66.3,-80],[\"h\"]]],\"!\":[370,[126.5,2.5,242.5,738.5],[[\"m\",126.5,2.5],[\"l\",242.5,2.5],[\"l\",242.5,127.5],[\"l\",126.5,127.5],[\"h\"],[\"m\",144.5,214.5],[\"l\",224.5,214.5],[\"l\",235.5,738.5],[\"l\",133.5,738.5],[\"h\"]]],\"?\":[674,[85.28125,2.5,593.5,750.5],[[\"m\",271.2,204.5],[\"l\",361.3,204.5],[\"c\",353.5,311.5,364.1,333.8,456.8,382.2],[\"c\",544.6,429.1,593.5,469.2,593.5,571],[\"c\",593.5,693.9,533,750.5,346,750.5],[\"c\",252.3,750.5,148.9,728.6,85.3,693.9],[\"l\",124.1,613.4],[\"c\",183.1,643.3,258.7,663.5,339,663.5],[\"c\",477.5,663.5,499.5,624.7,499.5,563],[\"c\",499.5,499.7,473.3,481.9,383.2,433.8],[\"c\",278.9,378.2,256.6,334.5,271.2,204.5],[\"h\"],[\"m\",257.5,2.5],[\"l\",374.5,2.5],[\"l\",374.5,115.5],[\"l\",257.5,115.5],[\"h\"]]],\"-\":[445,[50.5,270.5,392.5,356.5],[[\"m\",50.5,270.5],[\"l\",392.5,270.5],[\"l\",392.5,356.5],[\"l\",50.5,356.5],[\"h\"]]],\"’\":[253,[66.34375,473.328125,184.5,738.5],[[\"m\",90.1,473.3],[\"c\",169.1,511.9,184.5,545.5,184.5,642],[\"l\",184.5,738.5],[\"l\",67.5,738.5],[\"l\",67.5,608.5],[\"l\",127.5,608.5],[\"c\",127.5,563.2,114.7,546,66.3,520.9],[\"h\"]]],\"'\":[291,[97.5625,440.5,192.453125,739.5],[[\"m\",104.4,440.5],[\"l\",186.5,440.5],[\"l\",192.5,739.5],[\"l\",97.6,739.5],[\"h\"]]],\"\u0026\":[804,[46.5,-7.5,739.5,750.5],[[\"m\",301,-7.5],[\"c\",393.6,-7.5,461.8,13.2,516.8,57],[\"c\",594.8,10.4,656.2,2.5,729,2.5],[\"l\",739.5,2.5],[\"l\",739.5,85.5],[\"l\",732,85.5],[\"c\",689.9,85.5,643.3,88.5,578.3,123.1],[\"c\",628.8,195.1,661.6,291.7,692.9,413.2],[\"l\",614.8,432],[\"c\",584.4,318.3,555.2,230.9,510.5,167.4],[\"c\",488.4,185.1,467.3,203.1,444.3,225.2],[\"c\",397.2,269.3,353.9,324.6,319.5,384],[\"c\",407.8,431.2,490.5,482.4,490.5,586],[\"c\",490.5,701.9,439,750.5,334,750.5],[\"c\",229.9,750.5,164.5,699.8,164.5,586],[\"c\",164.5,534.3,178.4,477.8,203.2,418.9],[\"c\",119.4,372.9,46.5,310.8,46.5,200],[\"c\",46.5,53.1,116.9,-7.5,301,-7.5],[\"h\"],[\"m\",301,69.5],[\"c\",160.4,69.5,136.5,122.5,136.5,202],[\"c\",136.5,268,180.4,311,237.9,348.5],[\"c\",275.1,283.4,321.9,222.7,373.8,172.8],[\"c\",398.7,147.8,422.6,126.9,447.2,105.7],[\"c\",407,80.7,360.3,69.5,301,69.5],[\"h\"],[\"m\",252.5,586],[\"c\",252.5,642,277.9,669.5,334,669.5],[\"c\",390.3,669.5,409.5,641.8,409.5,586],[\"c\",409.5,525.7,354.3,486.9,285.8,449.5],[\"c\",264.6,499.2,252.5,545.7,252.5,586],[\"h\"]]],\":\":[273,[77.5,2.5,194.5,553.5],[[\"m\",77.5,2.5],[\"l\",194.5,2.5],[\"l\",194.5,125.5],[\"l\",77.5,125.5],[\"h\"],[\"m\",77.5,430.5],[\"l\",194.5,430.5],[\"l\",194.5,553.5],[\"l\",77.5,553.5],[\"h\"]]]},blank=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-hidden-mug-blank-preview.png?v=1794781644\",custom=\"59138836627800\";\nconst root=document.querySelector('#pp-mug-picker'),section=root.closest('product-info')||root.closest('.shopify-section'),pick=root.querySelector('select'),entry=root.querySelector('#pp-words'),box=root.querySelector('#pp-custom'),photos=root.querySelector('#pp-photos'),form=root.querySelector('form'),hint=root.querySelector('#pp-hint');\nconst choice=(text,id)=\u003epick.add(new Option(text,id));data.forEach(x=\u003echoice(x.name,x.id));\nconst q=new URLSearchParams(location.search).get('variant');let customOpen=q===custom;pick.value=data.some(x=\u003ex.id===q)?q:data[0].id;\nconst create=root.querySelector('#pp-create');\nfunction shape(message,personalised=false){\nlet chars=[...message.toUpperCase()],pos=0,left=Infinity,right=0,items=[];\nfor(const c of chars){const [advance,b,ops]=glyphs[c];if(b){left=Math.min(left,pos+b[0]);right=Math.max(right,pos+b[2]);let sy=\/[A-Z0-9]\/.test(c)?700\/(b[3]-b[1]):Math.min(1,700\/(b[3]-b[1]));let offset=\/[A-Z0-9]\/.test(c)?-b[1]*sy:Math.min(700-b[3]*sy,Math.max(0,-b[1]*sy));items.push({ops,pos,sy,offset})}pos+=advance}\nlet width=right-left,sx=77\/width;\nconst start=6;\nlet n=Math.max(1,Math.round(194\/(sx*700))),pitch=194\/n,paths=[];\nfor(let j=0;j\u003cn;j++){let edge=3+(j+1)*pitch;for(let g of items){let path=[];for(let [op,...points] of g.ops){let pts=[];for(let i=0;i\u003cpoints.length;i+=2){pts.push(+(edge-(points[i+1]*g.sy+g.offset)*pitch\/700).toFixed(4),+(start+(g.pos+points[i]-left)*sx).toFixed(4))}path.push([op,pts])}paths.push(path)}}return paths}\nfunction printFile(paths){let stream='q\\n2.834645669 0 0 2.834645669 14.173228346 8.503937008 cm\\n'+paths.map(path=\u003epath.map(([op,p])=\u003ep.join(' ')+' '+op).join('\\n')+'\\nf').join('\\n')+'\\nQ\\n';let objs=['\u003c\u003c \/Type \/Catalog \/Pages 2 0 R \u003e\u003e','\u003c\u003c \/Type \/Pages \/Count 1 \/Kids [3 0 R] \u003e\u003e','\u003c\u003c \/Type \/Page \/Parent 2 0 R \/MediaBox [0 0 595.27559055 269.29133858] \/Resources \u003c\u003c \u003e\u003e \/Contents 4 0 R \u003e\u003e','\u003c\u003c \/Length '+stream.length+' \u003e\u003e\\nstream\\n'+stream+'endstream'];let out='%PDF-1.4\\n',offset=[0];objs.forEach((s,i)=\u003e{offset.push(out.length);out+=(i+1)+' 0 obj\\n'+s+'\\nendobj\\n'});let start=out.length;out+='xref\\n0 5\\n0000000000 65535 f \\n'+offset.slice(1).map(n=\u003eString(n).padStart(10,'0')+' 00000 n \\n').join('')+'trailer\\n\u003c\u003c \/Size 5 \/Root 1 0 R \u003e\u003e\\nstartxref\\n'+start+'\\n%%EOF';return new Blob([out],{type:'application\/pdf'})}\nconst base=new Image();base.src=blank;let paths=[];\nfunction render(){\nlet own=customOpen,row=data.find(x=\u003ex.id===pick.value),s=own?entry.value.trim():row.name,valid=s.length\u0026\u0026[...s.toUpperCase()].every(c=\u003eglyphs[c]);box.hidden=!own;root.querySelector('#pp-ready').hidden=own;create.textContent=own?'Back to ready-made sayings':'Create your own message';create.setAttribute('aria-expanded',String(own));form.elements.id.value=own?custom:pick.value;let prop=form.elements['properties[Hidden message]'];prop.disabled=!own;prop.value=s;form.querySelector('button').disabled=own\u0026\u0026!valid;photos.replaceChildren();\nhint.textContent=!s?'Enter up to 48 characters.':valid?'':'Use letters A–Z, numbers or common punctuation.';paths=valid?shape(s,own):[];\nlet c=document.createElement('canvas');c.width=700;c.height=700;c.style='width:100%;display:block';c.setAttribute('aria-label','Preview of '+s);photos.append(c);let ctx=c.getContext('2d');if(!base.complete||!base.naturalWidth)return;ctx.drawImage(base,0,0,700,700);let w=document.createElement('canvas');w.width=1600;w.height=712;let ink=w.getContext('2d');ink.setTransform(8,0,0,-8,0,712);for(let path of paths){ink.beginPath();for(let [op,p] of path){if(op==='m')ink.moveTo(...p);else if(op==='l')ink.lineTo(...p);else if(op==='c')ink.bezierCurveTo(...p);else ink.closePath()}ink.fill()}ctx.globalAlpha=.89;for(let x=119;x\u003c488;x++){let t=(x\/1.4-216.5)\/132;if(Math.abs(t)\u003e=.994)continue;let arc=Math.sqrt(1-t*t),u=.5+Math.asin(t)*.196;ctx.drawImage(w,u*w.width,0,2,w.height,x,(82-arc)*1.4,1,(315+17*arc)*1.4)}\nconst turned=document.createElement('canvas');turned.width=c.height;turned.height=c.width;turned.style.cssText=c.style.cssText;turned.setAttribute('aria-label','Sideways preview of '+s);c.setAttribute('aria-label','Upright preview of '+s);const turn=turned.getContext('2d');turn.translate(turned.width,0);turn.rotate(Math.PI\/2);turn.drawImage(c,0,0);photos.replaceChildren();for(const [shot,label] of [[c,'Upright'],[turned,'Sideways']]){const figure=document.createElement('figure');figure.style.margin='0';const caption=document.createElement('figcaption');caption.textContent=label;figure.append(shot,caption);photos.append(figure)}}\nbase.onload=render;entry.oninput=render;pick.onchange=()=\u003e{let url=new URL(location.href);url.searchParams.set('variant',customOpen?custom:pick.value);history.replaceState({},'',url);render()};create.onclick=()=\u003e{customOpen=!customOpen;pick.onchange();if(customOpen)entry.focus()};form.addEventListener('submit',async event=\u003e{\nevent.preventDefault();if(form.dataset.sending)return;\nconst item=data.find(x=\u003ex.id===pick.value),message=customOpen?entry.value.trim():item.name;\nconst button=form.querySelector('button[type=submit]'),status=root.querySelector('#pp-order-status');\nform.dataset.sending='1';button.disabled=true;status.textContent='Adding your mug…';\ntry{\nconst payload=new FormData(form);\nconst artwork=printFile(shape(message,customOpen));\nconst filename='Hidden Mug - '+message.replace(\/[^a-z0-9 -]\/gi,'').trim()+' - 210x95mm.pdf';\nconst uploadPayload=new FormData();\nuploadPayload.append('properties[_DOWNLOAD PRINT PDF]',artwork,filename);\nfor(const [key,value] of payload.entries())uploadPayload.append(key,value);\nconst basePath=window.Shopify?.routes?.root||'\/';\nconst response=await fetch(basePath+'cart\/add.js',{method:'POST',body:uploadPayload,headers:{Accept:'application\/json'}});\nconst result=await response.json();\nif(!response.ok)throw new Error(result.description||'Unable to add this mug.');\nif(!result.properties?.['_DOWNLOAD PRINT PDF']){status.textContent='Your mug was added, but Shopify did not confirm its artwork. Please contact Pontefract Print before checkout.';return}location.assign(basePath+'cart');\n}catch(error){status.textContent=error.message||'Unable to add this mug. Please try again.';delete form.dataset.sending;button.disabled=false}\n});\nrender();let gallery=section.querySelector('.product__media-wrapper');if(gallery){gallery.replaceChildren(photos)}photos.style='display:grid;gap:12px;align-content:start';let native=section.querySelector('variant-selects');if(native)native.style.display='none';section.querySelectorAll('product-form,.product-form__quantity').forEach(el=\u003eel.style.display='none');root.hidden=false;\n})();\u003c\/script\u003e\n\n","brand":"Pontefract Print","offers":[{"title":"I am surrounded by cunts","offer_id":59137132036440,"sku":"PP-HM-01","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"I am surrounded by idiots","offer_id":59137132069208,"sku":"PP-HM-02","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"For fuck’s sake","offer_id":59137132101976,"sku":"PP-HM-03","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Fuck this shit","offer_id":59137132134744,"sku":"PP-HM-04","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Fresh out of fucks","offer_id":59137132167512,"sku":"PP-HM-05","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Bollocks to Monday","offer_id":59137132200280,"sku":"PP-HM-06","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Not today, dickhead","offer_id":59137132233048,"sku":"PP-HM-07","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Absolutely knackered","offer_id":59137132265816,"sku":"PP-HM-08","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Could be worse","offer_id":59137132298584,"sku":"PP-HM-09","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Put the kettle on","offer_id":59137132331352,"sku":"PP-HM-10","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Tea first, talk later","offer_id":59137132364120,"sku":"PP-HM-11","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Do I look busy?","offer_id":59137132396888,"sku":"PP-HM-12","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"My favourite human","offer_id":59137132429656,"sku":"PP-HM-13","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Love you loads","offer_id":59137132462424,"sku":"PP-HM-14","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"You’re my cup of tea","offer_id":59137132495192,"sku":"PP-HM-15","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Oh do fuck off","offer_id":59138730099032,"sku":"PP-HM-17","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Grade A bellend","offer_id":59138730164568,"sku":"PP-HM-19","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Cunt of the month","offer_id":59138730197336,"sku":"PP-HM-20","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Gobshite on mute","offer_id":59138730230104,"sku":"PP-HM-21","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Resting twat face","offer_id":59138730262872,"sku":"PP-HM-22","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"I liked you better on mute","offer_id":59138730295640,"sku":"PP-HM-23","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Stick it up your spreadsheet","offer_id":59138730328408,"sku":"PP-HM-24","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"World’s okayest bastard","offer_id":59138730361176,"sku":"PP-HM-25","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Even my mug thinks you’re a knob","offer_id":59138730393944,"sku":"PP-HM-26","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Too early for this bollocks","offer_id":59138730426712,"sku":"PP-HM-27","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"I’ve seen better heads on pints","offer_id":59138730459480,"sku":"PP-HM-28","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Who put 50p in the dickhead?","offer_id":59138730492248,"sku":"PP-HM-29","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Your village wants its idiot back","offer_id":59138730525016,"sku":"PP-HM-30","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Head of fuck all","offer_id":59138730557784,"sku":"PP-HM-31","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Absolute cockwomble","offer_id":59138730590552,"sku":"PP-HM-32","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"What fresh bellend is this?","offer_id":59138730623320,"sku":"PP-HM-33","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"My last fuck has left the building","offer_id":59138730656088,"sku":"PP-HM-34","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Have a day off, you weapon","offer_id":59138730688856,"sku":"PP-HM-35","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Decaf? I’m already a prick","offer_id":59138730721624,"sku":"PP-HM-36","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"This meeting needs a pub","offer_id":59138730754392,"sku":"PP-HM-37","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Nice spreadsheet, still bollocks","offer_id":59138730787160,"sku":"PP-HM-38","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"I came. I saw. I put the kettle on.","offer_id":59138730852696,"sku":"PP-HM-40","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Bollocks to the lot of you","offer_id":59138730885464,"sku":"PP-HM-41","price":11.25,"currency_code":"GBP","in_stock":true},{"title":"Create your own message","offer_id":59138836627800,"sku":"PP-HM-CUSTOM","price":11.25,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0892\/8975\/2920\/files\/pp-full-01-upright.jpg?v=1794784041","url":"https:\/\/pontefractprint.co.uk\/products\/hidden-mugs","provider":"Pontefract Print","version":"1.0","type":"link"}