{
  "version": 3,
  "sources": ["/cdn/shop/t/2/assets/custom-prints-variants.js?cp=20260719thisday3"],
  "sourcesContent": ["(function(){\"use strict\";var ISLAND_ID=\"cp-variants-data\",STYLE_ID=\"cpv-styles\",OPTION_NAME=\"Size\",$=function(sel,root){return(root||document).querySelector(sel)},esc=function(s){return String(s).replace(/[&<>\"]/g,function(c){return{\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\"}[c]})},norm=function(s){return String(s==null?\"\":s).replace(/[\u2033\u201D\u201C\u2019\u2018]/g,'\"').replace(/[\u00D7]/g,\"x\").replace(/[\"']/g,\"\").replace(/\\s+/g,\" \").trim().toLowerCase()},money=function(cents){var n=Number(cents)||0,v=(n/100).toFixed(2),parts=v.split(\".\");return parts[0]=parts[0].replace(/\\B(?=(\\d{3})+(?!\\d))/g,\",\"),\"$\"+parts.join(\".\")};function readVariants(){var el=document.getElementById(ISLAND_ID);if(!el)return null;try{var data=JSON.parse(el.textContent||el.innerText||\"{}\");if(data&&Array.isArray(data.variants)&&data.variants.length)return data.variants}catch(err){console.warn(\"[cpv] could not parse variants island\",err)}return null}function nativeInputs(){var inputs=Array.prototype.slice.call(document.querySelectorAll('input[name=\"'+OPTION_NAME+'\"]'));return inputs.filter(function(i){return i.type===\"radio\"})}function nativeValue(input){var v=input.value;if(v==null||v===\"\"){var lbl=input.closest(\"label\")||input.id&&document.querySelector('label[for=\"'+input.id+'\"]');lbl&&(v=lbl.textContent)}return v}function nativeFieldset(){var i=nativeInputs()[0];return i?i.closest(\"fieldset\")||i.closest(\"variant-selects\")||i.parentElement:null}function injectStyles(){if(!document.getElementById(STYLE_ID)){var css=[\"#cpv-root, #cpv-root * { box-sizing:border-box; }\",\"#cpv-root { --cpv-ink:currentColor; --cpv-muted:#8a8580; --cpv-line:#e7e2d9; --cpv-bg:#fff; --cpv-soft:#faf8f4; --cpv-accent:#1a1a1a; --cpv-sel-bg:#f4f4f3;\",\"  font-family:inherit; color:var(--cpv-ink); margin:0 0 16px; display:block; }\",\"#cpv-root .cpv-title { font-weight:600; font-size:15px; margin:0 0 10px; }\",\"#cpv-root .cpv-list { display:flex; flex-direction:column; gap:10px; margin:0; padding:0; }\",\"#cpv-root .cpv-card { display:flex; align-items:center; gap:12px; width:100%; text-align:left;\",\"  background:var(--cpv-bg); border:1.5px solid var(--cpv-line); border-radius:14px; padding:14px 16px;\",\"  cursor:pointer; font-family:inherit; color:inherit; transition:border-color .15s, background .15s, box-shadow .15s; }\",\"#cpv-root .cpv-card:hover { border-color:#cfc6b4; }\",\"#cpv-root .cpv-card:focus-visible { outline:2px solid var(--cpv-accent); outline-offset:2px; }\",\"#cpv-root .cpv-card.cpv-sel { border-color:var(--cpv-accent); background:var(--cpv-sel-bg); box-shadow:0 0 0 1px var(--cpv-accent); }\",\"#cpv-root .cpv-radio { flex:none; width:22px; height:22px; border-radius:50%; border:2px solid #cfc6b4; background:#fff; position:relative; transition:border-color .15s; }\",\"#cpv-root .cpv-card.cpv-sel .cpv-radio { border-color:var(--cpv-accent); }\",\"#cpv-root .cpv-card.cpv-sel .cpv-radio::after { content:''; position:absolute; inset:3px; border-radius:50%; background:var(--cpv-accent); }\",\"#cpv-root .cpv-emoji { flex:none; font-size:22px; line-height:1; width:26px; text-align:center; }\",\"#cpv-root .cpv-mid { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }\",\"#cpv-root .cpv-name { font-weight:700; font-size:16px; letter-spacing:.2px; color:#1a1a1a; }\",\"#cpv-root .cpv-size { font-size:12px; color:var(--cpv-muted); margin-top:2px; }\",\"#cpv-root .cpv-right { flex:none; text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }\",\"#cpv-root .cpv-price { font-weight:400; font-size:17px; font-variant-numeric:tabular-nums; color:#1a1a1a; }\",\"#cpv-root .cpv-compare { font-size:13px; color:var(--cpv-muted); text-decoration:line-through; font-variant-numeric:tabular-nums; }\",\"#cpv-root .cpv-card.cpv-soldout { opacity:.5; cursor:not-allowed; }\",\"@media (max-width:480px){ #cpv-root .cpv-card { padding:12px 13px; gap:10px; } #cpv-root .cpv-name { font-size:15px; } #cpv-root .cpv-price { font-size:16px; } }\",\".cpv-native-hidden { position:absolute !important; width:1px !important; min-width:0 !important; max-width:1px !important; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; padding:0; margin:-1px; border:0; }\"].join(\"\\n\"),style=document.createElement(\"style\");style.id=STYLE_ID,style.textContent=css,document.head.appendChild(style)}}function emojiFor(variant){var n=norm(variant.title);return/\\b32\\s*x\\s*32\\b/.test(n)?\"\\uD83D\\uDC51\":\"\\uD83D\\uDDBC\\uFE0F\"}var NAME_BY_SIZE={\"12 x 12\":\"Canvas Print Small\",\"16 x 16\":\"Canvas Print Medium\",\"20 x 20\":\"Canvas Print Large\",\"10 x 10\":\"Canvas Print Small\",\"14 x 14\":\"Canvas Print Medium\",\"18 x 18\":\"Canvas Print Large\"};function nameFor(variant){return NAME_BY_SIZE[norm(variant.title)]||\"Canvas Print\"}function App(){var variants=readVariants(),inputs=nativeInputs();if(!variants||!inputs.length)return;if(variants.some(function(v){return String(v.title==null?\"\":v.title).indexOf(\" / \")>=0}))return;var fieldset=nativeFieldset();if(!fieldset)return;injectStyles();function inputByLabel(label){var target=norm(label),found=null;return nativeInputs().forEach(function(inp){norm(nativeValue(inp))===target&&(found=inp)}),found}fieldset.classList.add(\"cpv-native-hidden\");var root=document.getElementById(\"cpv-root\");root||(root=document.createElement(\"div\"),root.id=\"cpv-root\",fieldset.parentNode.insertBefore(root,fieldset));var cards=[];function render(){root.innerHTML=\"\";var title=document.createElement(\"div\");title.className=\"cpv-title\",title.textContent=\"Choose your size\",root.appendChild(title);var list=document.createElement(\"div\");list.className=\"cpv-list\",list.setAttribute(\"role\",\"radiogroup\"),list.setAttribute(\"aria-label\",\"Size\"),root.appendChild(list),cards=[],variants.forEach(function(v){var input=inputByLabel(v.title),soldOut=v.available===!1,card=document.createElement(\"button\");card.type=\"button\",card.className=\"cpv-card\"+(soldOut?\" cpv-soldout\":\"\"),card.setAttribute(\"role\",\"radio\"),card.setAttribute(\"aria-checked\",\"false\"),soldOut&&card.setAttribute(\"aria-disabled\",\"true\"),card.innerHTML='<span class=\"cpv-radio\" aria-hidden=\"true\"></span><span class=\"cpv-emoji\" aria-hidden=\"true\">'+emojiFor(v)+'</span><span class=\"cpv-mid\"><span class=\"cpv-name\">'+esc(nameFor(v))+'</span><span class=\"cpv-size\">'+esc(v.title)+(soldOut?\" \\xB7 Sold out\":\"\")+'</span></span><span class=\"cpv-right\"><span class=\"cpv-price\">'+money(v.price)+\"</span>\"+(v.compareAt&&v.compareAt>v.price?'<span class=\"cpv-compare\">'+money(v.compareAt)+\"</span>\":\"\")+\"</span>\",soldOut||card.addEventListener(\"click\",function(){selectVariant(v)}),list.appendChild(card),cards.push({el:card,variant:v,input:input})}),syncFromNative()}function selectVariant(v){var input=inputByLabel(v.title);if(!input){console.warn(\"[cpv] no native radio for\",v.title);return}input.checked||(input.checked=!0),input.dispatchEvent(new Event(\"input\",{bubbles:!0})),input.dispatchEvent(new Event(\"change\",{bubbles:!0})),paintSelection(norm(v.title))}function currentNativeLabel(){var checked=null;return nativeInputs().forEach(function(inp){inp.checked&&(checked=inp)}),checked?norm(nativeValue(checked)):null}function paintSelection(normLabel){cards.forEach(function(c){var on=norm(c.variant.title)===normLabel;c.el.classList.toggle(\"cpv-sel\",on),c.el.setAttribute(\"aria-checked\",on?\"true\":\"false\")})}function syncFromNative(){paintSelection(currentNativeLabel())}nativeInputs().forEach(function(inp){inp.addEventListener(\"change\",syncFromNative)});var vs=fieldset.closest(\"variant-selects\")||fieldset;try{new MutationObserver(function(){var fs=nativeFieldset();fs&&!fs.classList.contains(\"cpv-native-hidden\")&&fs.classList.add(\"cpv-native-hidden\"),syncFromNative()}).observe(vs,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[\"checked\"]})}catch(e){}render()}function boot(){try{App()}catch(err){console.warn(\"[cpv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