404 Not Found

[] 404 Not Found t.map((([t,e])=>`form[action*=’/${t}’]:not([data-nocaptcha=’true’]) input[name=’form_type’][value=’${e}’]`)).join(‘,’),a=t=>()=>t?[…document.querySelectorAll(t)].map((t=>t.form)):[];function s(){const t=[…o],e=r(t);return a(e)}const i=’password’,u=’form_key’,d=[‘recaptcha-v3-token’,’g-recaptcha-response’,’h-captcha-response’,i],f=()=>{try{return window.sessionStorage}catch{return}},m=’__shopify_v’,_=t=>t.elements[u];function p(t,e,n=!1){try{const o=window.sessionStorage,c=JSON.parse(o.getItem(e)),{data:r}=function(t){const{data:e,action:n}=t;return t[m]||n?{data:e,action:n}:{data:t,action:n}}(c);for(const[e,n]of Object.entries(r))t.elements[e]&&(t.elements[e].value=n);n&&o.removeItem(e)}catch(o){console.error(‘form repopulation failed’,{error:o})}}const l=’form_type’,E=’cptcha’;function T(t){t.dataset[E]=!0}const w=window,h=w.document,L=’Shopify’,v=’ce_forms’,y=’captcha’;let A=!1;((t,e)=>{const n=(g=’f06e6c50-85a8-45c8-87d0-21a2b65856fe’,I=’https://cdn.shopify.com/shopifycloud/storefront-forms-hcaptcha/ce_storefront_forms_captcha_hcaptcha.v1.5.2.iife.js’,D={infoText:’Protected by hCaptcha’,privacyText:’Privacy’,termsText:’Terms’},(t,e,n)=>{const o=w[L][v],c=o.bindForm;if(c)return c(t,g,e,D).then(n);var r;o.q.push([[t,g,e,D],n]),r=I,A||(h.body.append(Object.assign(h.createElement(‘script’),{id:’captcha-provider’,async:!0,src:r})),A=!0)});var g,I,D;w[L]=w[L]||{},w[L][v]=w[L][v]||{},w[L][v].q=[],w[L][y]=w[L][y]||{},w[L][y].protect=function(t,e){n(t,void 0,e),T(t)},Object.freeze(w[L][y]),function(t,e,n,w,h,L){const[v,y,A,g]=function(t,e,n){const i=e?o:[],u=t?c:[],d=[…i,…u],f=r(d),m=r(i),_=r(d.filter((([t,e])=>n.includes(e))));return[a(f),a(m),a(_),s()]}(w,h,L),I=t=>{const e=t.target;return e instanceof HTMLFormElement?e:e&&e.form},D=t=>v().includes(t);t.addEventListener(‘submit’,(t=>{const e=I(t);if(!e)return;const n=D(e)&&!e.dataset.hcaptchaBound&&!e.dataset.recaptchaBound,o=_(e),c=g().includes(e)&&(!o||!o.value);(n||c)&&t.preventDefault(),c&&!n&&(function(t){try{if(!f())return;!function(t){const e=f();if(!e)return;const n=_(t);if(!n)return;const o=n.value;o&&e.removeItem(o)}(t);const e=Array.from(Array(32),(()=>Math.random().toString(36)[2])).join(”);!function(t,e){_(t)||t.append(Object.assign(document.createElement(‘input’),{type:’hidden’,name:u})),t.elements[u].value=e}(t,e),function(t,e){const n=f();if(!n)return;const o=[…t.querySelectorAll(`input[type=’${i}’]`)].map((({name:t})=>t)),c=[…d,…o],r={};for(const[a,s]of new FormData(t).entries())c.includes(a)||(r[a]=s);n.setItem(e,JSON.stringify({[m]:1,action:t.action,data:r}))}(t,e)}catch(e){console.error(‘failed to persist form’,e)}}(e),e.submit())}));const S=(t,e)=>{t&&!t.dataset[E]&&(n(t,e.some((e=>e===t))),T(t))};for(const o of[‘focusin’,’change’])t.addEventListener(o,(t=>{const e=I(t);D(e)&&S(e,y())}));const B=e.get(‘form_key’),M=e.get(l),P=B&&M;t.addEventListener(‘DOMContentLoaded’,(()=>{const t=y();if(P)for(const e of t)e.elements[l].value===M&&p(e,B);[…new Set([…A(),…v().filter((t=>’true’===t.dataset.shopifyCaptcha))])].forEach((e=>S(e,t)))}))}(h,new URLSearchParams(w.location.search),n,t,e,[‘guest_login’])})(!0,!0)}();]]> x.name == ‘_s’).description;} catch {var session_token_from_headers = undefined;}var session_cookie_matches = document.cookie.match(/_shopify_s=([^;]*)/);var session_token_from_cookie = session_cookie_matches && session_cookie_matches.length === 2 ? session_cookie_matches[1] : “”;var session_token = session_token_from_headers || session_token_from_cookie || “”;function handle_abandonment_event(e) {var entries = performance.getEntries().filter(function(entry) {return /monorail-edge.shopifysvc.com/.test(entry.name);});if (!window.abandonment_tracked && entries.length === 0) {window.abandonment_tracked = true;var currentMs = Date.now();var navigation_start = performance.timing.navigationStart;var payload = {shop_id: 8049655898,url: window.location.href,navigation_start,duration: currentMs – navigation_start,session_token,page_type: “404”};window.navigator.sendBeacon(“https://monorail-edge.shopifysvc.com/v1/produce”, JSON.stringify({schema_id: “online_store_buyer_site_abandonment/1.1”,payload: payload,metadata: {event_created_at_ms: currentMs,event_sent_at_ms: currentMs}}));}}window.addEventListener(‘pagehide’, handle_abandonment_event);}}());]]> 4&&void 0!==arguments[4]?arguments[4]:{};if(!Boolean(null==(i=null==(a=window.Shopify)?void 0:a.analytics)?void 0:i.replayQueue)){var a,i;window.Shopify=window.Shopify||{};var t=window.Shopify;t.analytics=t.analytics||{};var s=t.analytics;s.replayQueue=[],s.publish=function(e,d,r){return s.replayQueue.push([e,d,r]),!0};try{self.performance.mark(“wpm:start”)}catch(e){}var l,u,c,m,p,f,h,g,y,w,v,b,S,P=(u=(l={modern:/Edge?/(1{2}[4-9]|1[2-9]d|[2-9]d{2}|d{4,}).d+(.d+|)|Firefox/(1{2}[4-9]|1[2-9]d|[2-9]d{2}|d{4,}).d+(.d+|)|Chrom(ium|e)/(9{2}|d{3,}).d+(.d+|)|(Maci|X1{2}).+ Version/(15.d+|(1[6-9]|[2-9]d|d{3,}).d+)([,.]d+|)( (w+)|)( Mobile/w+|) Safari/|Chrome.+OPR/(9{2}|d{3,}).d+.d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(15[._]d+|(1[6-9]|[2-9]d|d{3,})[._]d+)([._]d+|)|Android:?[ /-](13[3-9]|1[4-9]d|[2-9]d{2}|d{4,})(.d+|)(.d+|)|Android.+Firefox/(13[5-9]|1[4-9]d|[2-9]d{2}|d{4,}).d+(.d+|)|Android.+Chrom(ium|e)/(13[3-9]|1[4-9]d|[2-9]d{2}|d{4,}).d+(.d+|)|SamsungBrowser/([2-9]d|d{3,}).d+/,legacy:/Edge?/(1[6-9]|[2-9]d|d{3,}).d+(.d+|)|Firefox/(5[4-9]|[6-9]d|d{3,}).d+(.d+|)|Chrom(ium|e)/(5[1-9]|[6-9]d|d{3,}).d+(.d+|)([d.]+$|.*Safari/(?![d.]+ Edge/[d.]+$))|(Maci|X1{2}).+ Version/(10.d+|(1[1-9]|[2-9]d|d{3,}).d+)([,.]d+|)( (w+)|)( Mobile/w+|) Safari/|Chrome.+OPR/(3[89]|[4-9]d|d{3,}).d+.d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(10[._]d+|(1[1-9]|[2-9]d|d{3,})[._]d+)([._]d+|)|Android:?[ /-](13[3-9]|1[4-9]d|[2-9]d{2}|d{4,})(.d+|)(.d+|)|Mobile Safari.+OPR/([89]d|d{3,}).d+.d+|Android.+Firefox/(13[5-9]|1[4-9]d|[2-9]d{2}|d{4,}).d+(.d+|)|Android.+Chrom(ium|e)/(13[3-9]|1[4-9]d|[2-9]d{2}|d{4,}).d+(.d+|)|Android.+(UC? ?Browser|UCWEB|U3)[ /]?(15.([5-9]|d{2,})|(1[6-9]|[2-9]d|d{3,}).d+).d+|SamsungBrowser/(5.d+|([6-9]|d{2,}).d+)|Android.+MQ{2}Browser/(14(.(9|d{2,})|)|(1[5-9]|[2-9]d|d{3,})(.d+|))(.d+|)|K[Aa][Ii]OS/(3.d+|([4-9]|d{2,}).d+)(.d+|)/}).modern,c=l.legacy,(m=navigator.userAgent).match(u)?”modern”:m.match(c)?”legacy”:”unknown”),C=”modern”===P?”modern”:”legacy”,_=(null!=n?n:{modern:””,legacy:””})[C],O=[(p={baseUrl:d,hashVersion:r,buildTarget:C}).baseUrl,”/wpm”,”/b”,p.hashVersion,”modern”===p.buildTarget?”m”:”l”,”.js”].join(“”),U=(f={version:r,bundleTarget:P,surface:e.surface,pageUrl:self.location.href,monorailEndpoint:e.monorailEndpoint},h=f.version,g=f.bundleTarget,y=f.surface,w=f.pageUrl,v=f.monorailEndpoint,{emit:function(e){var d=e.status,r=e.errorMsg,n=(new Date).getTime(),o=JSON.stringify({metadata:{event_sent_at_ms:n},events:[{schema_id:”web_pixels_manager_load/3.1″,payload:{version:h,bundle_target:g,page_url:w,status:d,surface:y,error_msg:r},metadata:{event_created_at_ms:n}}]});if(!v)return console&&console.warn&&console.warn(“[Web Pixels Manager] No Monorail endpoint provided, skipping logging.”),!1;try{return self.navigator.sendBeacon.bind(self.navigator)(v,o)}catch(e){}var a=new XMLHttpRequest;try{return a.open(“POST”,v,!0),a.setRequestHeader(“Content-Type”,”text/plain”),a.send(o),!0}catch(e){return console&&console.warn&&console.warn(“[Web Pixels Manager] Got an unhandled error while logging to Monorail.”),!1}}});try{o.browserTarget=P,function(e){var d=e.src,r=e.async,n=void 0===r||r,o=e.onload,a=e.onerror,i=e.sri,t=e.scriptDataAttributes,s=void 0===t?{}:t,l=document.createElement(“script”),u=document.querySelector(“head”),c=document.querySelector(“body”);if(l.async=n,l.src=d,i&&(l.integrity=i,l.crossOrigin=”anonymous”),s)for(var m in s)if(Object.prototype.hasOwnProperty.call(s,m))try{l.dataset[m]=s[m]}catch(e){}if(o&&l.addEventListener(“load”,o),a&&l.addEventListener(“error”,a),u)u.appendChild(l);else{if(!c)throw new Error(“Did not find a head or body element to append the script”);c.appendChild(l)}}({src:O,async:!0,onload:function(){if(!function(){var e,d;return Boolean(null==(d=null==(e=window.Shopify)?void 0:e.analytics)?void 0:d.initialized)}()){var d=window.webPixelsManager.init(e)||void 0;if(d){var r=window.Shopify.analytics;r.replayQueue.forEach(function(e){var r=e[0],n=e[1],o=e[2];d.publishCustomEvent(r,n,o)}),r.replayQueue=[],r.publish=d.publishCustomEvent,r.visitor=d.visitor,r.initialized=!0}}},onerror:function(){return U.emit({status:”failed”,errorMsg:””.concat(O,” has failed to load”)})},sri:(b=_,S=/^sha384-[A-Za-z0-9+/=]+$/,”string”==typeof b&&S.test(b)?_:””),scriptDataAttributes:o}),U.emit({status:”loading”})}catch(e){U.emit({status:”failed”,errorMsg:(null==e?void 0:e.message)||”Unknown error”})}}}}();wpmLoader({shopId: 8049655898,storefrontBaseUrl: “https://honestecommerce.com”,extensionsBaseUrl: “https://extensions.shopifycdn.com/cdn/shopifycloud/web-pixels-manager”,monorailEndpoint: “https://monorail-edge.shopifysvc.com/unstable/produce_batch”,surface: “storefront-renderer”,enabledBetaFlags: [“d5bdd5d0”],webPixelsConfigList: [{“id”:”shopify-app-pixel”,”configuration”:”{}”,”eventPayloadVersion”:”v1″,”runtimeContext”:”STRICT”,”scriptVersion”:”0460″,”apiClientId”:”shopify-pixel”,”type”:”APP”,”privacyPurposes”:[“ANALYTICS”,”MARKETING”]},{“id”:”shopify-custom-pixel”,”eventPayloadVersion”:”v1″,”runtimeContext”:”LAX”,”scriptVersion”:”0460″,”apiClientId”:”shopify-pixel”,”type”:”CUSTOM”,”privacyPurposes”:[“ANALYTICS”,”MARKETING”]}],isMerchantRequest: false,initData: {“shop”:{“name”:”Honest Ecommerce”,”paymentSettings”:{“currencyCode”:”USD”},”myshopifyDomain”:”france-demo-ee.myshopify.com”,”countryCode”:”US”,”storefrontUrl”:”https://honestecommerce.com”},”customer”:null,”cart”:null,”checkout”:null,”productVariants”:[],”products”:[],”purchasingCompany”:null,”page”:{“pageType”:null,”resourceId”:null}},},”https://honestecommerce.com/cdn”,”48f264e1w8fb36573pab670d30m380d3b3c”,{“modern”:””,”legacy”:””},{“trekkieShim”:true,”apiClientId”:”580111″,”themeId”:”136273461338″,”shopId”:”8049655898″,”storefrontBaseUrl”:”https://honestecommerce.com”,”extensionBaseUrl”:”https://extensions.shopifycdn.com/cdn/shopifycloud/web-pixels-manager”,”surface”:”storefront-renderer”,”enabledBetaFlags”:”[“d5bdd5d0″]”,”isMerchantRequest”:”false”,”hashVersion”:”48f264e1w8fb36573pab670d30m380d3b3c”,”publish”:”custom”,”events”:”[[“page_viewed”,{}]]”});})();]]> Skip to content

{ if (!response.ok) { throw new Error(‘Network response was not ok’); } return response.json(); // Need to return this }) .then(data => { if (data.redirectUrl) { window.location.href = data.redirectUrl; } }) .catch(error => console.error(‘Error logging 404:’, error)); ]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *