<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
		function ready(fn) {
			  if (document.readyState != 'loading'){
				fn();
			  } else {
				document.addEventListener('DOMContentLoaded', fn);
			  }
			}
		 (function(){
			ready(function() {
			try {
				var idx = $('form[action*="/cart/add"] *[name="id"]:eq(0)').val();
				if ( idx == undefined ){
					idx = $('form[action*="/cart/add"] *[name="id"]:eq(0) option:selected').val();
					if ( idx == undefined ){
						idx=0;
						//return false;
					}
				}
				var product_handle_check = product_detail.handle;
				if (product_handle_check.substr(product_handle_check.length - 10) == 'customized'){
					if ( typeof product_ori_id != undefined &amp;&amp; typeof product_ori_handle != undefined ) {
						$('body').html('&lt;p&gt;Loading..&lt;/p&gt;');
						var the_link_direct = '/apps/customify/view/' + product_ori_handle + '/' + product_ori_id + '?variant=' + idx + '&amp;domain=' + window.location.hostname;
						window.location = the_link_direct;
						return false;
					}
				}
				$('form[action*="/cart/add"]').on('click', '#customify-link' , function(e){
					 e.preventDefault();
					var inputQty = $( this ).closest('form').find('input[name=quantity]');
					if(inputQty.length == 0){inputQty = $('input[name=quantity]')}
							idx = $('select[name=id]').length &gt; 0 ? $('select[name=id]').val() : $('input[name=id]').val();
							var qty = '1';
							qty = (inputQty.length &gt; 0 &amp;&amp; inputQty.val() != '') ? inputQty.val() : '1';
							var the_link = '/apps/customify/view/' + $(this).data('handle') + '/' + $(this).data('product') + '?variant=' + idx + '&amp;qty='+ qty + '&amp;domain=' + window.location.hostname;
							window.location = the_link;
							return false;
				});
			}
			catch(err) {
				console.error(err.message);
			}
				 var result = {"status":"no","setting":{"keep_addtocart":"0","redirect_instant":"0","keep_buybutton":"1","customize_it":"Customize it"}}
				 if ( result.status == 'yes' )
						{
				 			if('b4d3ca-74'!='customify' &amp;&amp; window.CST_IMAGE_ELEMENT){
								document.dispatchEvent(new Event('cstRunDirect'))
								return;
							}
				 			if('b4d3ca-74'=='customify' &amp;&amp; result.setting.is_onloadProduct ==1 &amp;&amp; window.CST_IMAGE_ELEMENT){
								document.dispatchEvent(new Event('cstRunDirect'))
								return;
							}
							keep_addtocart = result.setting.keep_addtocart;
							keep_buybutton = result.setting.keep_buybutton;
							redirect_instant = result.setting.redirect_instant;
							var the_link = '/apps/customify/view/' + product_detail.handle + '/' + product_detail.id + '?variant=' + idx + '&amp;domain=' + window.location.hostname;
							if ( redirect_instant == 1 ) {
							window.location = the_link;
							return false;
							}
							if ( $('#add-to-cart').length &gt; 0 )
							var the_button = $('#add-to-cart');
							else if ( $('button[name=add]').length &gt; 0 )
							var the_button = $('button[name=add]');
							else
							var the_button =  $('form[action*="/cart/add"] button[type="submit"]').length &gt; 0 ? $('form[action*="/cart/add"] button[type="submit"]') : $('form[action*="/cart/add"] input[type="submit"]');
							the_button.hide();
							var the_class = the_button.attr('class');
							if ( the_class != undefined ) {
							the_class = the_class.replace('add-to-cart','');
							the_class = the_class.replace('hidden','');
							}
							else
							{
								the_class = 'btn button';
							}
							var the_style = '';
							button_width = the_button.width() * 1;
							if ( keep_addtocart == 1 ) {
								if ( button_width &gt; 200 )
								the_style = 'style="clear: both; margin-top: 10px;"';
								else
								the_style = 'style="margin-left: 10px;"';
							}
							console.warn('check wheter the customify custom container available..');
							if ($('#customify-container').length &gt; 0 )
							{
							the_class = $('#customify-container').data('class');
							$('#customify-container').html('&lt;a  data-handle="' + product_detail.handle + '"  data-product="' + product_detail.id + '"  id="customify-link" class="' + the_class + '" href="' + the_link + '" &gt;' + result.setting.customize_it + '&lt;/a&gt;');
							}
							else
							{
							$('&lt;a ' + the_style + ' data-handle="' + product_detail.handle + '"  data-product="' + product_detail.id + '"  id="customify-link" class="' + the_class + '" href="' + the_link + '" &gt;' + result.setting.customize_it + '&lt;/a&gt;').insertAfter(the_button);
							}
							if(keep_buybutton == 0){
								$('.shopify-payment-button').css('display','none');
								document.dispatchEvent(new Event('cstHideBuyButton'))
							}
							if ( the_button.attr('data-show') == undefined &amp;&amp; keep_addtocart == 0 ) {
							$('form[action*="/cart/add"] *[type="submit"]').hide();
							the_button.hide();
							document.dispatchEvent(new Event('cstHideAddToCart'))
							$('body').append('&lt;style&gt;form[action*="/cart/add"] *[type="submit"] { display:none!important; visibility: hidden }&lt;/style&gt;');
							}
							else
							the_button.show();
							if (typeof customify_callback !== 'undefined' &amp;&amp; typeof customify_callback === 'function') {
								customify_callback();
							}
						}
						else {
							$('form[action*="/cart/add"] *[type="submit"]').show();
						}
					});
		   })();</pre></body></html>