!function(e){function n(){return Element.prototype.addEventListener?.toString()?.includes("isRocket")}function t(e,t,o,i){n(e)&&(void 0===i?i={isRocket:!0}:"boolean"==typeof i?i={capture:i,isRocket:!0}:"object"==typeof i&&(i={...i,isRocket:!0})),e.addEventListener(t,o,i)}function o(){return"https:"===window.location.protocol&&window.isSecureContext}function i(){if(document.currentScript&&document.currentScript.src)try{return new URL(document.currentScript.src).origin+"/"}catch(e){console.warn("Failed to parse currentScript.src:",e)}for(var e=document.getElementsByTagName("script"),n=0;n=145?"#000000":"#FFFFFF"}function r(e){return e?e.replace(/\.(png|jpeg|gif|webp|svg|bmp|tiff|ico)$/i,".jpg"):""}function s(){}function l(e,n,t){t&&(t.ariaHidden="true");var o=ee+1,i=o>=e.design.coModals.co_modal_impression_limit,a=o>=e.behavior.impressions_limit;window.__modal_open=!1,n.style.display="none",i&&s.createCookie(K+window.__inkind_num+"_comodal",!0,e.design.coModals.co_modal_delay_days),a&&s.createCookie(K+window.__inkind_num,!0,e.behavior.delay_days),s.createCookie(K+"_impression_num",o,e.behavior.delay_days?e.behavior.delay_days:365)}function d(e,n){return`${e}${e!==n?` and ${n}`:""}`}function c(e,n){const t=e.split("-"),o=n.split("-"),i=new Date(t[1]+"/"+t[2]+"/"+t[0]).setHours(0,0,0,0),a=new Date(o[1]+"/"+o[2]+"/"+o[0]).setHours(0,0,0,0),r=(new Date).setHours(0,0,0,0);return r>=i&&r<=a}function p(e,n,t,o){var i=!!document.documentMode,a=new XMLHttpRequest;i?((a=new XMLHttpRequest).open(n,e,!0),a.onload=function(){if(4===a.readyState)if(200===a.status){var t=JSON.parse(a.responseText);"GET"===n&&o?re(t,o):"GET"===n&&g(t),window.__inkind_impression=-1!==e.indexOf("impression")?t:null}else console.error(a.statusText)},a.onerror=function(){console.error(a.statusText)},a.send(t||null)):A((function(i){var a=z();fetch(e,{headers:{"X-InKind-Session":a,"X-Inkind-Device":i},method:n,body:t||null,mode:"cors"}).then((e=>{if(e.ok)return e.json()})).then((r=>{var s=new URL(e).pathname.split("/");if("subscribers"===s[1]){var l=JSON.stringify(r),d=JSON.parse(l),c=document.getElementById("frame").contentWindow.document.getElementById("success-header"),p=document.getElementById("frame").contentWindow.document.getElementById("success-button-label"),m=document.getElementById("frame").contentWindow.document.getElementById("success-message"),u=document.getElementById("frame").contentWindow.document.getElementById("success-sub"),f=document.getElementById("frame").contentWindow.document.getElementById("successForm");p&&(p.style.textAlign="center");var _={};t.forEach(((e,n)=>{_[n]=e}));var b=JSON.stringify({..._,sessionId:a,deviceId:i}),h=btoa(b),y="",x="non_offer"===Z?.design?.signUpModal?.modal_template;if(d?.offer_claim_data?.offer_url&&(y=`${d?.offer_claim_data?.offer_url}?token=${h}`),Z.design.successModal.link_to_offer&&("new"===d?.offer_claim_data?.offer_status||x)){p.target="_blank",p.style.display="block",p.style.textDecoration="none",p.href=y;const e=window.open(y);if(null==e||void 0===e){var w=y;setTimeout((function(){top.location=w}),10)}}else null!==d?.offer_claim_data?.offer_status&&!Z.design.successModal.link_to_offer&&("offer_campaign"===Z.design.signUpModal.modal_template||"offer_fixed"===Z.design.signUpModal.modal_template)||x?(p.target="_blank",p.style.display="block",p.style.textDecoration="none",p.href=y,d?.offer_claim_data?.message.includes("We'll send your offer shortly via email.")||d?.offer_claim_data?.message.includes("It looks like we already sent you this offer.")||(m.style.textAlign="center",m.innerHTML=d?.offer_claim_data?.message.replace("inKind app",'inKind app'),c.style.marginTop="25px",f.style.height=0,p.style.display="none",c.innerHTML="You're subscribed!",u.style.display="none",p.style.display="none")):"general"!==Z.design.signUpModal.modal_template||Z.design.successModal.link_to_offer||"new"!==d?.offer_claim_data?.offer_status?(!Z.design.successModal.link_to_offer&&Z.design.successModal.link_to_offer||null!==d?.offer_claim_data?.offer_status&&"used"!==d?.offer_claim_data?.offer_status)&&(!Z.design.successModal.link_to_offer&&Z.design.successModal.link_to_offer||"claimed"!==d?.offer_claim_data?.offer_status&&"partially_used"!==d?.offer_claim_data?.offer_status)||(d?.offer_claim_data?.message.includes("We'll send your offer shortly via email.")||d?.offer_claim_data?.message.includes("It looks like we already sent you this offer.")||(m.style.textAlign="center",m.innerHTML=d?.offer_claim_data?.message.replace("inKind app",'inKind app')),c.style.marginTop="25px",f.style.height=0,p.style.display="none",c.innerHTML="You're subscribed!",u.style.display="none"):(p.target="_blank",p.style.display="block",p.style.textDecoration="none",p.href=y);"GET"===n&&o?re(r,o):"GET"===n&&g(r),window.__inkind_impression=-1!==e.indexOf("impression")?r:null}"GET"===n&&o?re(r,o):"GET"===n&&g(r),s.includes("modal_impressions")&&(G=r),window.__inkind_impression=-1!==e.indexOf("impression")?r:null})).catch((e=>{console.log(e)}))}))}function m(e){var n=e[0].length,t=e[0].modalNum;for(let o=0;on&&(n=e[o].length,t=e[o].modalNum);return t}function g(e){if(restaurant=e,0!==e.length){var n=[];e:for(let r=0;r(e.comparison_type.includes("excludes_")?i:o).push(e)));for(let e=0;e")&&(e.style.lineHeight="1.42"))}function y(e,n,t,o,i){s.createCookie(K+"_impression_num",ee+1,o.behavior.delay_days?o.behavior.delay_days:365),e.animate(te,oe),i.ariaHidden="true",setTimeout((()=>{window.__modal_open=!1,e.style.display="none",n.className="iframe-unentered";const o=n.contentWindow.document.getElementsByTagName("body")[0];o.classList.remove("modal-body"),o.classList.add("fab-body"),t.style.display="flex"}),170)}function x(e,n,t,o,i){window.__modal_open=!0,e.style.display="block",e.style.width="400px",i.ariaHidden="false";const a=n.contentWindow.document.getElementsByTagName("body")[0];a.classList.remove("fab-body"),a.classList.add("modal-body"),e.style.boxShadow="0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65)",n.style.boxShadow="",e.style.borderTopLeftRadius=Math.floor(o.design.colorAndStyle.border_radius+1)+"px",e.style.borderTopRightRadius=Math.floor(o.design.colorAndStyle.border_radius+1)+"px",e.style.borderBottomLeftRadius=Math.floor(o.design.colorAndStyle.border_radius)+"px",e.style.borderBottomRightRadius=Math.floor(o.design.colorAndStyle.border_radius)+"px",e.style.maxWidth="100%",n.className="iframe-entered",t.style.display="none",e.animate(ne,oe)}function w(){let e=!1;var n;return n=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(e=!0),e}function v(e){for(;e&&"body"!==e.tagName;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function k(e,n){if(!("Tab"===e.key||9===e.keyCode)||!window.__modal_open)return;const t='button, [href], input:not([id*="utm"]), select, textarea, iframe, [tabindex]:not([tabindex="-1"])',o=Array.prototype.slice.call(n.querySelectorAll(t),0).filter((e=>"none"!==e.style.display&&!v(e)));o.unshift(document.getElementById("frame").contentWindow.document.querySelector("#iframe-flex"));const i=o[0],a=o[1],r=o[2],s=o[o.length-1],l=document.getElementById("frame").contentWindow.document;e.shiftKey?l.activeElement===r?(i.focus(),e.preventDefault()):l.activeElement===i?(a.focus(),e.preventDefault()):l.activeElement===a&&(s.focus(),e.preventDefault()):l.activeElement===i?(r.focus(),e.preventDefault()):l.activeElement===s?(a.focus(),e.preventDefault()):l.activeElement===a&&(i.focus(),e.preventDefault())}function C(e,n,o,i,a,r,d){t(n,"click",(function(n){!0===e.co_modal_show_after_click&&"co-modal-close"!==n.target.id&&s.createCookie(K+window.__inkind_num+"_comodal",!0,365)})),t(o,"click",(function(e){e.preventDefault(),l(i,a,d)})),t(r,"click",(function(){if(window.innerWidth>860){r.style.filter="none",n.classList.add("slide-to-center"),n&&(n.style.opacity=0);const e=r.offsetWidth/2;r.style.left=`calc(50% - ${e}px)`}else r.style.filter="none",n?.remove();const e=document.getElementById("frame").contentWindow.document.querySelector(".comodal-image-container");e&&e.classList.add("comodal-mobile-show");[].slice.call(document.getElementById("frame").contentWindow.document.getElementsByClassName("comodal-mobile-hide")).forEach((e=>{e.classList.remove("comodal-mobile-hide"),e.classList.add("comodal-mobile-show")})),setTimeout((()=>{n&&n.remove(),r.style.position="static"}),1e3)}),{once:!0}),t(r,"mouseenter",(function(){$(r,n)})),t(n,"mouseenter",(function(){$(n,r)}))}function M(e,n,t,o){const i=t.design.coModals;let a="url",s=i.co_modal_click_action.trim();const l=s.replace(/\D/g,"");l.length>9&&l.length<12&&(a="tel",s="tel:"+l);var d=_("a");o.style.transitionDuration=".5s",d.id="co-modal-body";var c=_("div"),p=_("div");p.id="co-modal-close",p.classList.add("close-button"),p.setAttribute("aria-label","close button"),o.style.marginBottom="0px";var m=Math.floor(t.design.colorAndStyle.border_radius)+"px";"tel"!==a||w()?(d.href=s,d.target="blank"):d.style.cursor="auto",h(c,d,"display:flex;flex-direction:row;justify-content:right;align-items:center;"),h(p,c,"line-height:16px;color:white;border-radius:50%;background-color:rgb(0,0,0,.8);text-align:center;border:0px;font-weight:100;font-size:20px;cursor:pointer;margin:12px;padding:0px;background-image:url("+F+"/close-ic.svg);background-size:80%;background-position:center;background-repeat:no-repeat;"),h(d,e,"width: 400px; transition-duration: .5s; box-shadow: 0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65); display: block; max-width: 100%; aspect-ratio: 80/49; background-color: white; background-size: cover;background-repeat: no-repeat; background-position: center; background-image: url("+r(i.co_modal_image_url)?.replace("upload/","upload/c_fill,w_800,h_490/")+"); border-radius: "+m),C(i,d,p,t,n,o,e)}function $(e,n){n.style.filter="brightness(30%)",t(e,"mouseleave",(function(){n.style.filter="none"}),{once:!0})}function L(e){const n=`; ${document.cookie}`.split(`; ${e}=`);if(2===n.length)return n.pop().split(";").shift()}function z(){let e=L(R);if(!e){e=B();const n=new Date;n.setTime(n.getTime()+60*N*1e3),document.cookie=`${R}=${e};expires=${n.toUTCString()};path=/`}return e}function B(){return(new Date).getTime()}function A(e){let n=L(O);if(n)return e(n),!0;var t=[navigator.userAgent,navigator.language,screen.colorDepth,window.innerWidth,screen.height,screen.availHeight,(new Date).getTime(),(new Date).getTimezoneOffset(),window.localStorage?Object.keys(localStorage).join(""):"",window.sessionStorage?Object.keys(sessionStorage).join(""):"",Array.prototype.slice.call(navigator.plugins).map((function(e){return e.name})).join(","),Array.prototype.slice.call(navigator.mimeTypes).map((function(e){return e.type})).join(",")],o=document.createElement("canvas"),i=o.getContext("2d");i.textBaseline="top",i.font="16px Arial",i.fillStyle="#f60",i.fillRect(125,1,62,20),i.fillStyle="#069",i.fillText("Browser Fingerprint",2,15),i.fillStyle="rgba(102, 200, 0, 0.7)",i.fillText("Browser Fingerprint",4,17);var a=o.toDataURL();t.push(a);var r=(new TextEncoder).encode(t.join(""));crypto.subtle.digest("SHA-256",r).then((function(n){var t=Array.from(new Uint8Array(n)).map((function(e){return e.toString(16).padStart(2,"0")})).join("");s.createCookie(O,t,P),e(t)})).catch((function(e){console.log(e)}))}function E(e){if(Array.isArray(e)&&e.length>0){var n=z();e[0].session_id=n}fetch(F+"/api/v5/events",{method:"POST",headers:{"Content-Type":"application/json","X-InKind-Session":n,"X-Inkind-Device":e[0].device_id},body:JSON.stringify({events:e,time:Date.now()})}).then((function(e){if(!e.ok)throw new Error(`HTTP error! Status: ${e.status}`)})).catch((function(e){console.log(e)}))}function T(e,n){function o(n,t){var o=t.getElementsByTagName("form")[n].querySelectorAll("input,select"),i="POST",a=new FormData;a.append("modal_impression_id",G?.modal_impression?.modal_impression_id),a.append("modal_template",e.design.signUpModal.modal_template);for(let e=0;e1)){let d="location_capture"===a?document.createElement("select"):document.createElement("input");if("SELECT"===d.tagName){d.required=!0,d.name="favorite_location_id";let n=new Option("Select your favorite location...","",!1,!0);n.disabled=!0,n.hidden=!0,d.add(n),e.design.locations.forEach((function(e){d.add(new Option(e.name,e.id))}))}"utmData"===o?(d.style.cssText="display:none",d.value=n[a]):(d.style.cssText="border: 1px inset rgba(0,0,0,0.15);width:100%;line-height:1.2;font-size:"+se.body_text_size+"px;padding:12px;margin-bottom:8px;box-sizing:border-box;border-radius:"+ge+";background-color:"+se.input_background_color,"ql"===se.font.split("-")[0]?d.classList.add(se.font):d.style.font=se.font);let c=a.substring(0,a.indexOf("_capture")),p=(c[0].toUpperCase()+c.substring(0,a.length).substring(1,c.length)).replace("_"," ");switch(d.ariaLabel=p,d.required=!0,"success"!==o&&"Email"!==p&&"utmData"!==o&&d.classList.add("comodal-mobile-hide"),p){case"Email":d.type="email",d.title="Please enter email in format xxxx@xxx.xxx","offer_campaign_v2"!==le?.modal_template&&"non_offer"!==le?.modal_template||t(d,"focus",(()=>{y.style.display="inline",oe.style.display="block"}));break;case"Phone number":i=!0,d.type="tel",t(d,"keyup",(function(){var e=/^((1)?[2-9]([0-9]){9}|(61)?(0)?[1-9]([0-9]){8}|(64)?(([0-9]){8,9}|02[0-9]{7,9}))$/;d.value.replace(/\D/g,"").match(e)?d.setCustomValidity(""):d.setCustomValidity("Please enter a valid phone number.")}));break;default:d.type="text"}if("name"===c){var s=d.cloneNode();d.id="first_name","ql"===se.font.split("-")[0]?d.classList.add(se.font):d.style.font=se.font,d.style.cssText="border: 1px inset rgba(0,0,0,0.15);width:49%;line-height:1.2;font-size:"+se.body_text_size+"px;padding:12px;margin-bottom:8px;box-sizing:border-box;border-radius:"+ge+";background-color:"+se.input_background_color,d.pattern="^[A-Za-z\\-' ]+$",d.title="Symbols and numbers not allowed.",d.placeholder="First Name",s.id="last_name","ql"===se.font.split("-")[0]?s.classList.add(se.font):s.style.font=se.font,s.style.cssText="border: 1px inset rgba(0,0,0,0.15);float:right;width:49%;line-height:1.2;font-size:"+se.body_text_size+"px;padding:12px;margin-bottom:8px;box-sizing:border-box;border-radius:"+ge+";background-color:"+se.input_background_color,s.pattern="^[A-Za-z\\-' ]+$",s.title="Symbols and numbers not allowed.",s.placeholder="Last Name",r.prepend(s),r.prepend(d)}else if("birthday"===c){var l=d.cloneNode();d.id="birthday_month","ql"===se.font.split("-")[0]?d.classList.add(se.font):d.style.font=se.font,d.style.cssText="border: 1px inset rgba(0,0,0,0.15);width:49%;line-height:1.2;font-size:"+se.body_text_size+"px;padding:12px;margin-bottom:8px;box-sizing:border-box;border-radius:"+ge+";background-color:"+se.input_background_color,d.placeholder="Birth Month (MM)",l.id="birthday_day","ql"===se.font.split("-")[0]?l.classList.add(se.font):l.style.font=se.font,l.style.cssText="border: 1px inset rgba(0,0,0,0.15);width:49%;float:right;line-height:1.2;font-size:"+se.body_text_size+"px;padding:12px;margin-bottom:8px;box-sizing:border-box;border-radius:"+ge+";background-color:"+se.input_background_color,l.title="Symbols not allowed.",l.placeholder="Birth Day (DD)",r.appendChild(d),r.appendChild(l)}else d.id=c,d.placeholder="Zip code"===p?p.replace("Zip code","Zip Code"):"Phone number"===p?p.replace("Phone number","Phone Number"):"Email"===p?"offer_campaign_v2"===le?.modal_template?"Enter email to claim":"Enter email to sign up":p,r.appendChild(d)}if("signup"===o){(y=_("div")).style.fontSize="12px",y.style.opacity="0.8";var c=a(se.background_color);y.style.color=c,y.style.textAlign="left",y.style.display="offer_campaign_v2"===le?.modal_template||"non_offer"===le?.modal_template?"none":"inline-block",y.style.lineHeight="1.2";var p,m,g="non_offer"===Z.design.signUpModal?.modal_template?"\n
\n Must subscribe via email, opt into inKind\u2019s text messaging, and download + create an account on the inKind app to participate.\n
\n
\n
\n ":"general"!==Z.design.signUpModal?.modal_template?`\n
\n Limited to new inKind users only. Must subscribe via email,\n opt into inKind's text messaging, and download +\n create an account on the inKind app to redeem. Offer terms apply\n \n
\n
\n
\n `:"",u=!1===Z.design.signUpModal?.cobranding_legal&&Z.design.signUpModal?.cobranding_rules_url?.length&&Z.design.signUpModal?.cobranding_rules_caption?.length>0?`\n \n ${Z.design?.signUpModal?.cobranding_rules_caption}\n
\n \n See Full Official Rules\n \n
\n
\n \n `:"",f=`
By continuing, I agree to receive ${i?"email and text":"marketing"} messages from ${d(Z.behavior.project_name,Z.behavior.brand_name)} ${!0===Z.design?.signUpModal?.cobranding_legal?"in partnership with inKind":""} ${i?"including marketing messages, at the phone number provided. Message frequency varies. Reply HELP for help or STOP to cancel. Message & data rates may apply.

By continuing, I also":"and"}`;!0===Z.design?.signUpModal?.cobranding_legal?(p=" consent to the inKind",m=` Terms of Service,\n \n Privacy Policy, and\n \n Notice of Financial Incentive.\n
`):(p=" consent to the ",m=Z.design.signUpModal?.cobranding_terms_url?.length>0&&Z.design.signUpModal?.cobranding_privacy_policy_url?.length>0?` Terms of Service\n and\n \n Privacy Policy\n .`:` 0?Z.design?.signUpModal?.cobranding_privacy_policy_url:Z.design?.signUpModal?.cobranding_terms_url}\n >Terms of Service and Privacy Policy.`);var b=f+p+m;y.innerHTML=g+u+b,y.classList.add("comodal-mobile-hide"),r.appendChild(y)}if(i&&"success"===o&&!Z.design.successModal.link_to_offer){var y=_("div");c=a(se.background_color);y.style.fontSize="12px",y.style.display="offer_campaign_v2"===le?.modal_template||"non_offer"===le?.modal_template?"none":"inline",y.style.padding="8px",y.style.color=a(se.background_color),y.style.textAlign="center",y.style.lineHeight="1.2";var x=`
By continuing, I agree to receive email and text messages from ${Z.behavior.project_name!==Z.behavior.brand_name?`${Z.behavior.project_name} and ${Z.behavior.brand_name}`:`${Z.behavior.project_name}`}, in partnership with inKind, including marketing messages, at the phone number provided. Message frequency varies. Reply HELP for help or STOP to cancel. Message & data rates may apply.
`;y.innerHTML=x,r.appendChild(y)}"signup"===o?h(oe,O,("offer_campaign_v2"===le?.modal_template||"non_offer"===le?.modal_template?"display:none;":"display:inline-block;")+"border:0px;width:100%;margin-top:15px;font-size:16px;padding:12px;box-sizing:border-box;font-size:1rem;font-weight:500;cursor:pointer;background-color:"+se.button_color+";color:"+se.button_text_color+";border-radius:"+ge,le.button_label,se.font):""!==de.success_button_label.trim()&&h(re,te,"border:0px;display:block;text-align:center;width:100%;font-size:16px;padding:12px;margin-top:15px;box-sizing:border-box;font-size:1rem;font-weight:500;cursor:pointer;background-color:"+se.button_color+";color:"+se.button_text_color+";border-radius:"+ge,de.success_button_label,se.font)}ee>=e.behavior.impressions_limit&&"signup_to_fab"===e.design.floatingAccessButton.fab_behaviour&&(e.design.floatingAccessButton.fab_behaviour="signup_modal");const m="co_modal_none"!==e.design.coModals.co_modal_configuration&&null===s.readCookie(K+n+"_comodal")&&!!c(e.design.coModals.co_modal_start_date,e.design.coModals.co_modal_end_date);if("no_display"!==e.design.signUpModal.signup_modal_display_position&&(m||null===s.readCookie(K+n))){var g=document.getElementsByTagName("body")[0],f=_("iframe");f.id="frame",f.title="A special welcome gift","no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?f.className="":"signup_to_fab"===e.design.floatingAccessButton.fab_behaviour?f.className="iframe-entered":"tiers"!==e.design.floatingAccessButton.fab_behaviour&&(f.className="iframe-unentered");var b=_("div"),w=_("div"),v=_("div"),C=_("div"),$=_("div");$.classList.add("comodal-image-container");var L=_("div"),z=_("div"),B=_("div"),T=_("img");T.src="https://res-5.cloudinary.com/"+H+"/image/upload/c_fit,w_320/"+e?.design?.colorAndStyle?.brand_image_url,T.alt=`${e?.behavior?.brand_name} logo`,T.classList.add("comodal-mobile-hide");var S=_("div"),q=_("div"),D=_("div"),I=_("button");I.classList.add("close-button"),I.setAttribute("aria-label","close button");var U=_("img"),j=_("div"),N=_("div"),P=_("div"),O=_("form"),R=_("div"),W=(_("div"),_("div"));W.id="success-header";var X=_("div");X.id="success-message",q.id="header-message",P.id="body-message",P.className="comodal-mobile-hide";var J=_("div"),V=_("div");V.id="iframe-flex",V.role="dialog",V.title="inKind Offer Popup Modal",V.ariaModal="true",V.ariaDescribedBy="Popup modal with inKind offer",V.ariaLabelledBy="inKind Popup Modal",J.id="success-sub";var Y=_("div"),Q=_("div"),ne=_("button");ne.classList.add("close-button"),ne.setAttribute("aria-label","success close button");var te=_("form");te.id="successForm";var oe=_("button"),ae=_("button");ae.className="show-fab-button",ae.setAttribute("aria-label","floating action button"),oe.id="signup-button-label",oe.classList.add("comodal-mobile-hide"),oe.setAttribute("aria-label",`${e?.design?.signUpModal?.button_label}`),Z=e;var re,se=e.design.colorAndStyle,le=e.design.signUpModal,de=e.design.successModal,ce=e.design.floatingAccessButton;if(ie(ce),"offer_campaign"===Z.design.signUpModal.modal_template||"offer_fixed"===Z.design.signUpModal.modal_template||"offer_campaign_v2"===Z.design.signUpModal.modal_template)(re=_("a")).id="success-button-label";else(re=_("button")).id="success-button-label";re.setAttribute("aria-label",`${e?.design?.successModal?.success_button_label}`);var pe=Math.floor(se.border_radius)+"px",me=se.border_radius<=0?0:Math.floor(se.border_radius+1)+"px",ge=Math.floor(se.border_radius/2)+"px";b.id="inkindmodal",U.src=r(se.header_image_url),U.alt=Z.design.signUpModal.image_alt_text,i(e.design.signUpModal.inputs,"signup"),i(e.design.successModal.inputs,"success"),i(u(e),"utmData"),h(b,g,"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?"background-color:rgb(8,8,8,0.75);z-index:2147483640;pointer-events:none;height:100%;width:100%;opacity:0%;align-items:center;justify-content:center;border:0;position:fixed;top:0px;-webkit-overflow-scrolling:touch;overflow-y:auto;":"tiers"!==e.design.floatingAccessButton.fab_behaviour?"z-index:2147483640;pointer-events:none;height:70px;width:70px;opacity:0%;align-items:center;justify-content:center;border:0;position:fixed;top:0px;-webkit-overflow-scrolling:touch;overflow-y:auto;":"background-color:rgb(8,8,8,0.75);z-index:2147483640;pointer-events:none;height:100%;width:100%;opacity:0%;align-items:center;justify-content:center;border:0;position:fixed;top:0px;-webkit-overflow-scrolling:touch;overflow-y:auto;"),h(f,b,"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?"background-color:transparent;width:100%;height:100vh;border:0px;position:fixed;left:0px;right:0px;max-width:none;":""),setTimeout((()=>{let i=_("title");i.textContent=`an opportunity to claim a special welcome gift for when you visit ${e?.behavior?.brand_name} and pay using the inKind app`,document.getElementById("frame").contentDocument.head.appendChild(i);var r=document.getElementById("frame").contentWindow.document,d=document.getElementById("frame").contentWindow.document.body;d?.focus(),"desktop_fab_none"!==e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"!==e.design.floatingAccessButton.mobile_display_location&&(d.style.padding="0px",d.classList.add("signup_to_fab"===e.design.floatingAccessButton.fab_behaviour?"modal-body":"fab-body"));var c=document.getElementById("frame").contentWindow.document.head,p=document.createElement("style");if(se.google_font_url){var g=r.createElement("link");g.setAttribute("href",se.google_font_url),g.rel="stylesheet",g.type="text/css",c.appendChild(g)}var u=se?.google_font_url?new URLSearchParams(se.google_font_url?.split("?")[1]).get("family")?.split(":")[0]:null,H=se?.google_font_url?u?".ql-font-"+u.replace(/\s/g,"").toLowerCase():"default-font":null,G=null===u?"":H+" { font-family: "+u+"; }" ;p.innerHTML="body ::placeholder { color: "+se.placeholder_text_color+"; } input { color: "+se.active_text_color+"; }"+G+`body::-webkit-scrollbar {\n display: none;\n }\n select:invalid {\n color: ${se.placeholder_text_color}\n }\n select {\n -moz-appearance:none;\n -webkit-appearance:none;\n appearance:none;\n background-image: url('${F}/round-keyboard_arrow_down-24px.svg');\n background-repeat: no-repeat;\n background-position-x: 96%;\n background-position-y: 50%;\n background-size: 10px auto;\n }\n .fab-body {\n min-height: 80px;\n background-color: ${se.background_color};\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n }\n .modal-body {\n background-color: rgba(8,8,8,0.75);\n }\n @media (hover: hover) {\n .fab-body:hover {\n background-color: ${se.button_color}\n }\n }\n .show-fab-button {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 2px;\n border-radius: ${"tiers"!==e.design.floatingAccessButton.fab_behaviour?"18px":"50%"};\n width: 76px;\n height: 76px;\n font-size: 12px;\n line-height: 12px;\n text-align: center;\n cursor: pointer;\n background-color: ${se.button_color};\n color: ${se.button_text_color};\n font-weight: bold;\n padding: 0;\n border: 0;\n appearance: none;\n -webkit-appearance: none;\n div {\n display: inline;\n }\n }\n .fab-offer-amount {\n font-size: 24px;\n line-height: 28px;\n }\n @media (hover: hover) {\n\n .show-fab-button:hover {\n background-color: ${se.button_text_color} !important;\n color: ${se.button_color} !important;\n transition: transform 0.3s;\n }\n }\n .slide-to-center {\n transition: left .5s linear;\n }\n\n p {\n margin-top: 0px;\n margin-bottom: 0px;\n }\n .ql-size-12px {\n font-size: 12px;\n }\n .ql-size-14px {\n font-size: 14px;\n }\n .ql-size-16px {\n font-size: 16px;\n }\n .ql-size-20px {\n font-size: 20px;\n }\n .ql-size-24px {\n font-size: 24px;\n }\n .ql-size-28px {\n font-size: 28px;\n }\n .ql-size-32px {\n font-size: 32px;\n }\n .ql-size-36px {\n font-size: 36px;\n }\n .ql-size-48px {\n font-size: 48px;\n }\n .ql-size-60px {\n font-size: 60px;\n }\n .ql-size-72px {\n font-size: 72px;\n }\n .ql-align-right {\n text-align: right;\n }\n .ql-align-center {\n text-align: center;\n }\n .ql-align-left {\n text-align: left;\n }\n .ql-align-justify {\n text-align: justify;\n }\n .ql-font-americantypewriter {\n font-family: "American Typewriter", serif;\n }\n .ql-font-andal\xe9mono {\n font-family: "Andale Mono", monospace;\n }\n .ql-font-arial {\n font-family: "Arial", sans-serif;\n }\n .ql-font-arialblack {\n font-family: "Arial Black", sans-serif;\n }\n .ql-font-courier {\n font-family: "Courier", monospace;\n }\n .ql-font-didot {\n font-family: "Didot", serif;\n }\n .ql-font-georgia {\n font-family: "Georgia", serif;\n }\n .ql-font-lucidaconsole {\n font-family: "Lucida Console", monospace;\n }\n .ql-font-luminari {\n font-family: "Luminari", sans-serif;\n }\n .ql-font-monaco {\n font-family: "Monaco", monospace;\n }\n .ql-font-tahoma {\n font-family: "Tahoma", sans-serif;\n }\n .ql-font-timesnewroman {\n font-family: "Times New Roman", serif;\n }\n .ql-font-trebuchet {\n font-family: "Trebuchet", sans-serif;\n }\n .ql-font-verdana {\n font-family: "Verdana", sans-serif;\n } body {\n min-height: calc(100vh - 16px);\n display: flex;\n align-items: ${"signup_center"===le.signup_modal_display_position||m&&null===s.readCookie(K+n)?"center":"flex-end"};\n justify-content: ${m&&null===s.readCookie(K+n)?"center":"signup_lower_left"===le.signup_modal_display_position?"start":"signup_lower_right"===le.signup_modal_display_position?"end":"center"};\n } .close-button {\n height: 35px;\n width: 35px;\n } #iframe-flex {\n display: flex;\n flex-direction: ${e.design.coModals.co_modal_stack?"column":"row"};\n align-items: start;\n justify-content: center;\n max-width: calc(100% - 10px);\n outline: none;\n border-radius: ${me} ${me} ${pe} ${pe};\n } #iframe-flex > * + * {\n margin-left: ${e.design.coModals.co_modal_stack?"0px":"32px"};\n margin-top: ${e.design.coModals.co_modal_stack?"32px":"0px"};\n } @media only screen and (max-width: 860px) {\n #iframe-flex {\n flex-direction: column;\n } #iframe-flex > * + * {\n margin-left: 0px;\n margin-top: 32px;\n }\n .close-button {\n height:20px;\n width:20px;\n }\n ${m?"\n .comodal-mobile-hide {\n max-height: 0px;\n padding-top: 0px!important;\n padding-bottom: 0px!important;\n margin-bottom: 0px!important;\n margin-top: 0px!important;\n border: 0px!important;\n overflow: hidden;\n transition: all .25s ease-in;\n }\n .comodal-image-container {\n max-height: 175px;\n overflow: hidden;\n transition: all .25s ease-in;\n }\n .comodal-mobile-show {\n transition: all .25s ease-in;\n max-height: 500px;\n }\n ":""}\n\n } @media only screen and (max-width: 448px) {\n body {\n margin: 0px;\n align-items: center;\n justify-content: center;\n max-width: 100%;\n }\n } #success-message, #body-message { color: ${a(se.background_color)} } #header-message {color: ${a(se.tout_background_color)}`,d.append(p);const ee=!!navigator.userAgent.match(/safari/i)&&!!navigator.vendor.match(/apple/i)&&!!navigator.maxTouchPoints;h(ae,d,"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location||"signup_to_fab"===e.design.floatingAccessButton.fab_behaviour?"display:none;":null,ae.innerHTML=`GET
${ce.offer_amount}
ON US`,se.font),h(V,d),null===s.readCookie(K+n)&&h(w,V,"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?`width:400px; box-shadow: 0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65); border-radius: ${me} ${me} ${pe} ${pe}; position: relative; left: 0px;top:0px;max-width:100%;${ee?"margin-bottom:100px;":""}font-family:`:"signup_modal"===e.design.floatingAccessButton.fab_behaviour?"display:none;":"signup_to_fab"===e.design.floatingAccessButton.fab_behaviour?`display: block; width: 400px; max-width: 100%; box-shadow: 0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65); border-top-left-radius: ${e.design.colorAndStyle.border_radius+1}px; border-top-right-radius: ${e.design.colorAndStyle.border_radius+1}px; border-bottom-left-radius: ${e.design.colorAndStyle.border_radius}px;border-bottom-right-radius: ${e.design.colorAndStyle.border_radius}px;`:`width:400px; box-shadow: 0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65); border-radius: ${me} ${me} ${pe} ${pe}; position: relative; left: 0px;top:0px;max-width:100%;${ee?"margin-bottom:100px;":""}font-family:`,null,se.font),h(v,w,"z-index:2147483641; 0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65); border-radius:"+pe+";background-color:"+se.background_color+";border-top-right-radius:"+me+";border-top-left-radius:"+me+";"),h(C,v,"border-bottom-left-radius:"+pe+";border-bottom-right-radius:"+pe+";"),h($,C,"position:relative;"),h(L,$,"position:absolute;height:50%;width:100%;z-index:200;"),h(z,$,"position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%;width:100%;display:flex;flex-direction:column;justify-content:space-evenly;overflow:hidden;"),h(B,z,`margin-left:8px;margin-right:8px;margin-bottom:${"offer_campaign_v2"===!le?.modal_template&&!0===le?.cobranding_legal?"24px":!0===le?.cobranding_legal&&"offer_campaign_v2"===le?.modal_template?"0px":""};margin-top:${!0===le?.cobranding_legal&&"offer_campaign_v2"===le?.modal_template?"24px":"0px"};display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;max-height:280px;gap:8px;`),"offer_campaign"===le?.modal_template&&se?.brand_image_url&&h(T,B,"width:160px;height:auto;"),("offer_campaign_v2"===le?.modal_template||"non_offer"===le?.modal_template)&&se?.brand_image_url&&h(T,B,"width:160px;height:auto;position:absolute;top:8px;"),le?.image_overlay_text&&h(q,B,"width:332px;",le.image_overlay_text),"offer_campaign"===le?.modal_template&&!0==!!le?.cobranding_legal&&h(S,$,"font-size:20px;line-height:28px;color:white;",`
REDEEMABLE WITH in kind
`),("offer_campaign_v2"===le?.modal_template||"non_offer"===le?.modal_template)&&!0==!!le?.cobranding_legal&&h(S,$,"font-size:20px;line-height:28px;color:white;",`
using the in kind rewards app
`),"non_offer"===le?.modal_template&&h(S,$,"font-size:20px;line-height:28px;color:white;",`
paying with the in kind rewards app
`),h(D,L,"display:flex;flex-direction:row;justify-content:right;align-items:center;"),h(I,D,"line-height:16px;color:white;border-radius:50%;background-color:transparent;text-align:center;border:0px;font-weight:400;font-size:20px;cursor:pointer;margin:12px;padding:0px;background-image:url("+F+"/close-ic.svg);background-size:80%;background-position:center;background-repeat:no-repeat;");var ie="offer_campaign"===Z.design.signUpModal.modal_template||"offer_campaign_v2"===Z.design.signUpModal.modal_template||"non_offer"===Z.design.signUpModal.modal_template?";height:230px;object-fit:cover;":"";se?.header_image_url?h(U,$,"width:100%;z-index:2147483640;border-top-left-radius:"+pe+";border-top-right-radius:"+pe+";font-size:"+se.body_text_size+"px;display:block;line-height:1.2"+ie):h(j,$,"width:100%;height:230px;z-index:2147483640;border-top-left-radius:"+pe+";border-top-right-radius:"+pe+";font-size:"+se.body_text_size+"px;background-color:"+se.tout_background_color+";display:block;line-height:1.2"),h(Y,R,"height:3%;width:100%;"+(window.innerWidth>1200?"":"right:7%;")),h(Q,Y,"display:flex;flex-direction:row;justify-content:right;align-items:center;position:relative;bottom:12px;left:7%;"),h(ne,Q,"line-height:16px;color:white;border-radius:50%;background-color:rgb(0,0,0,.8);font-size:20px;text-align:center;border:0px;font-weight:100;cursor:pointer;margin:12px;position:relative;right:3%;padding:0px;background-image:url("+F+"/close-ic.svg);background-size:80%;background-position:center;background-repeat:no-repeat;"),h(N,C,"padding:16px;overflow:auto;position:relative;border-bottom-left-radius:"+pe+";border-bottom-right-radius:"+pe),le.body_text.replace("

","").replace("

","").replace("
","").trim().length>0&&h(P,N,"padding-bottom:16px;",le.body_text),P.innerHTML=P.innerHTML.replace(/\n/g,"
"),h(O,N,"margin-bottom: 0px;"),h(R,v,"display:none;padding:16px;border-radius:"+pe),h(W,R,"font-size:32px;text-align:center;line-height:36px;font-weight:600;padding-bottom:20px;color:"+a(se.background_color),""),h(X,R,"",de.success_body),h(J,R,"font-size:"+se.body_text_size+"px;color:"+se.body_text_color,""),h(te,R,"margin-top:16px; margin-bottom: 0px; overflow:auto;"),m&&M(V,b,e,w),"signup_to_fab"!==e.design.floatingAccessButton.fab_behaviour&&"desktop_fab_none"!==e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"!==e.design.floatingAccessButton.mobile_display_location&&d.classList.add("fab-body"),t(document.getElementById("frame").contentWindow.document,"keydown",(n=>{k(n,window.__success_state?R:C),"Escape"===n.key&&"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?l(e,b,V):"Escape"===n.key&&"tiers"!==ce.fab_behaviour&&y(w,f,ae,e,V)})),t(I,"click",(function(n){n.preventDefault(),E([{subscriber_id:null,device_id:re,event_name:"close_modal",time:Date.now(),event_properties:{brand_id:e.behavior.brand_id},custom_fields:{brand_properties:[],project_properties:[]}}]),"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?l(e,b,V):"tiers"!==ce.fab_behaviour&&y(w,f,ae,e,V)})),t(ae,"click",(()=>{E([{subscriber_id:null,device_id:re,event_name:"click_fab",time:Date.now(),event_properties:{brand_id:e.behavior.brand_id,desktop_display_location:e.design.floatingAccessButton.desktop_display_location,mobile_display_location:e.design.floatingAccessButton.mobile_display_location},custom_fields:{brand_properties:[],project_properties:[]}}]),x(w,f,ae,e,V),document.getElementById("frame").contentWindow.document.querySelector("#iframe-flex").focus()})),t(ne,"click",(function(n){n.preventDefault,"no_display"!==e.design.signUpModal.signup_modal_display_position&&"desktop_fab_none"===e.design.floatingAccessButton.desktop_display_location&&"mobile_fab_mobile_none"===e.design.floatingAccessButton.mobile_display_location?l(e,b,V):"tiers"!==ce.fab_behaviour&&(y(w,f,ae,e,V),l(e,b,V))}));var re="";A((function(e){re=e})),e.experiment.flag_key&&e.experiment.variant&&E([{subscriber_id:null,device_id:re,event_name:"$exposure",time:Date.now(),event_properties:{flag_key:e.experiment.flag_key,variant:e.experiment.variant},custom_fields:{property_groups:[],user_properties:[],event_properties:[]}}]);var ge=document.getElementById("frame").contentWindow.document.getElementById("email");t(ge,"blur",(()=>{E([{subscriber_id:null,device_id:re,event_name:"enter_modal_email",time:Date.now(),event_properties:{email:ge.value,brand_id:Z.behavior.brand_id},custom_fields:{property_groups:[],user_properties:[],event_properties:[]}}])})),t(O,"submit",(function(n){n.preventDefault(),E([{subscriber_id:null,device_id:re,event_name:"submit_modal",time:Date.now(),event_properties:{email:ge.value,brand_id:Z.behavior.brand_id},custom_fields:{property_groups:[],user_properties:[],event_properties:[]}}]),o(0,f.contentWindow.document),document.getElementById("frame").contentWindow.document.getElementById("signup-button-label").disabled=!0,oe.style.opacity="0.2",setTimeout((()=>{C.style.display="none",R.style.display="block",window.__success_state=!0,V.focus()}),1e3),Object.values(e.design.successModal.inputs).every((e=>!1===e))&&(!0===e.behavior.show_after_submit&&s.createCookie(K+window.__inkind_num,!0,365),s.createCookie(K+window.__inkind_num,!0,e.behavior.delay_days)),this.style.color="red"})),t(d,"click",(function(n){!0===window.__success_state&&"BODY"===n.target.tagName&&l(e,b,V)})),t(te,"submit",(function(n){n.preventDefault(),o(1,f.contentWindow.document),b.style.opacity="0%",window.__modal_open=!1,setTimeout((function(){b.style.diplay="none"}),300),!0===e.behavior.show_after_submit&&s.createCookie(K+window.__inkind_num,!0,365),s.createCookie(K+window.__inkind_num,!0,e.behavior.delay_days)}));var ue=1e3*e.behavior.loading_delay;setTimeout((function(){b.style.opacity="100%",window.__modal_open=!0,V.ariaHidden="iframe-unentered"===f.className,V.tabIndex=1,b.style.transition="opacity .3s",frame.style.pointerEvents="auto",document.getElementById("frame").contentWindow.document.querySelector("#iframe-flex").focus()}),ue)}),200),window.ikmpl2||(window.ikmpl2=!0)}}function S(){U(),setInterval(D,6e4),setTimeout(q,800)}function q(){document.getElementById("frame")&&A((function(e){E([{subscriber_id:null,device_id:e,event_name:"view_modal",time:Date.now(),event_properties:{brand_id:X},custom_fields:{property_groups:[],user_properties:[],event_properties:[]}}])}))}function D(){const e=parseInt(L(W),10),n=(new Date).getTime();if(e&&n-e>j){const e=B();s.createCookie(R,e,N)}}function I(){const e=(new Date).getTime();s.createCookie(W,e,N)}function U(){["mousemove","click","keydown"].forEach((e=>{t(document,e,I)}))}const j=18e5,N=365,P=365,O="device_id",R="session_id",W="last_activity";if(e.__inkind_modal_loaded)return;e.__inkind_modal_loaded=!0;var F,H,Z,K="a0pc93l9";window.ikmpl1=!0,window.__modal_open=!1;var G,X,J={},V=window.location.href.replace(window.location.hash,"");if(-1!==V.indexOf("localhost")||-1!==window.location.hash.indexOf("inkind-local"))F="http://app.localhost:3000",H="equityeats-test";else if(window.location.hostname.endsWith("inkind-staging.com")||-1!==window.location.hash.indexOf("inkind-staging")){var Y=i();if(Y&&Y.includes("inkind-staging.com"))F=Y.replace(/\/$/,"");else{const e=window.location.hostname.split(".")[0];F=`https://app.${"inkind-staging"===e?"":e+"."}inkind-staging.com`}H="equityeats-test"}else F="https://app.inkind.com",H="equityeats";s.createCookie=function(e,n,t){if(!("number"==typeof t&&t<=0)){var o=new Date,i=o.getDate()+t;o.setDate(i);var a="session"===t?"":"; expires="+o.toGMTString();document.cookie=e+"="+n+a+"; path=/"}},s.readCookie=function(e){for(var n=e+"=",t=document.cookie.split(";"),o=0;o{let n=`\n .iframe-unentered {\n transition: transform 0.2s; \n position: fixed;\n border: none; z-index: 2147483640; padding: 0; width: 80px; height: 80px; border-radius: ${"tiers"!==e.fab_behaviour?"18px":"50%"}; box-shadow: 0 5px 10px rgba(0,0,0,.5);\n }\n @media only screen and (min-width: 1201px) {\n .iframe-unentered {\n ${b("desktop",e)} \n }\n }\n @media only screen and (max-width: 1200px) {\n .iframe-unentered {\n ${b("mobile",e)}\n }\n }\n @media (hover: hover) {\n .iframe-unentered:hover{\n transform: scale3d(1.05, 1.05, 1.05);\n }\n } \n @media only screen and (max-width: 799px) {\n .iframe-unentered {\n width: 80px;\n height: 80px;\n }\n }\n .iframe-entered {\n top:-1px; z-index:2147483645; background-color:transparent; border:none; position:fixed;height:100vh;width:100%;display: flex;\n }\n `,t=document.createElement("style");t.innerText=n,document.head.appendChild(t)},ae=async e=>{let n=_("iframe");n.id="frame",n.title="A special welcome gift",setTimeout((()=>{let n=_("title");n.textContent=`an opportunity to claim a special welcome gift for when you visit ${e?.behavior?.brand_name} and pay using the inKind app`,document.getElementById("frame").contentDocument.head.appendChild(n)}),500);let t=_("div"),o=_("img");o.alt="Fab image";let i=e.design.floatingAccessButton,a=e.design.signUpModal,r=e.behavior.slug,s=e.design.colorAndStyle;t.id="inkindmodal",o.src=i.fab_cta_image_url,bannerImage="https://res-2.cloudinary.com/"+H+"/image/upload/"+s.brand_image_url,A((function(n){e.experiment.flag_key&&e.experiment.variant&&E([{subscriber_id:null,device_id:n,event_name:"$exposure",time:Date.now(),event_properties:{flag_key:e.experiment.flag_key,variant:e.experiment.variant},custom_fields:{property_groups:[],user_properties:[],event_properties:[]}}]);let t={cas:s,fab:i,fabImg:o,mode:a.tiers_banner_mode,bannerImage:bannerImage};p(F+`/api/public/offers/${r}`,"GET",null,t)}))},re=(e,n)=>{const o=e,i=n.fabImg,a=n.fab,r=n.bannerImage,s=n.cas;ie(a);let l=document.getElementsByTagName("body")[0],d=_("iframe");d.id="frame",d.title="A special welcome gift",d.className="iframe-unentered";let c=_("div"),p=_("div"),m=_("div"),g=_("div"),u=_("button"),f=_("button");h(d,l),setTimeout((()=>{let e=_("title");e.textContent=`an opportunity to claim a special welcome gift for when you visit ${o.account} and pay using the inKind app`;let n=document.getElementById("frame").contentWindow.document.body;n?.focus(),n.style.margin="0px";let a=document.getElementById("frame").contentDocument;n.style.padding="0px",n.style.minHeight="100px";var b=new FontFace("Rethink-Sans-Medium","url("+F+"/assets/maps/RethinkSans-Medium.ttf)");let y=a.createElement("link");y.setAttribute("rel","stylesheet"),y.setAttribute("type","text/css"),y.setAttribute("href",b),a.head.appendChild(y),a.head.appendChild(e);let x="\n body {\n font:18px 'Rethink-San-Regular', sans-serif;\n }\n .show-button-entered{\n position: fixed;\n display: none;\n cursor: pointer; border: none; background-color:transparent; border-radius: 50%;\n }\n .show-button-unentered{\n cursor: pointer; position: fixed; border: none; background-color:transparent; border-radius: 50%; padding: 0px; transition: transform 0.2s;\n }\n .show-button-unentered > img{\n height:120px; width:120px; background-size:cover; position:relative;\n }\n\n\n .svg-text{\n fill:white;\n\n }\n .modal-content{\n width: 100%;\n display: flex;\n justify-content: center;\n flex-direction: column;\n\n margin: 0 auto;\n }\n .modal-logo{\n margin: 0 auto;\n width: 200px;\n padding: 24px 24px 0px;\n }\n hr{\n width: 99%;\n border-top: 1px solid whitesmoke;\n\n }\n\n\n .panel-options-wrapper {\n display: flex;\n flex-direction: column;\n padding: 22px 20px;\n background-color: #f3f4fb;\n border-bottom-left-radius: 12px;\n border-bottom-right-radius: 12px;\n }\n .panel-options-wrapper:not(:last-child){\n\n }\n .account-choice-wrapper{\n position: relative;\n transition: transform 0.2s;\n }\n @media (hover: hover) {\n .account-choice-wrapper:hover{\n transform: translate(0, -1px);\n }\n }\n .tiers-copy-text{\n padding: 16px 0;\n width: 200px;\n text-align: center;\n margin: 0 auto;\n }\n .ribbon {\n text-align: center;\n height: 22px;\n position: absolute;\n z-index: 1;\n top: -10px;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: auto;\n text-decoration: none;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .ribbon-text {\n letter-spacing: 2px;\n font:13px 'Rethink-San-Regular', sans-serif;\n font-weight: black;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n z-index: 40;\n position: absolute;\n left: 0;\n right: 0;\n color:white;\n top: -33.5px;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: auto;\n }\n .tier-button{\n position: relative;\n height: 70px;\n width: 100%;\n margin-bottom: 16px;\n border-radius: 12px;\n font:20px 'Rethink-San-Regular', sans-serif;\n font-weight: 400;\n background-color: black;\n border: none;\n color: white;\n cursor: pointer;\n }\n .button-chevron {\n position: absolute;\n right: 18px;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n }\n .chevron {\n width: 20px;\n height: 20px;\n }\n .tier-link{\n cursor: pointer;\n\n }\n strong{\n font-weight: 600\n }\n\n .tiers-learn-more-button{\n text-decoration: none;\n color: #8eaed0;\n background-color:white;\n border: none;\n border-top: 2px solid whitesmoke;\n font:18px 'Rethink-San-Regular', sans-serif;\n font-weight: 400;\n height: 60px;\n display:flex;\n align-items:center;\n justify-content: center;\n cursor: pointer;\n width: 100%;\n }\n @media (hover: hover) {\n .tiers-learn-more-button:hover{\n color: #7ea2c9;\n }\n }\n ",w=a.createElement("style");w.innerText=x,a.head.appendChild(w);const v=()=>{m.animate(te,oe),setTimeout((()=>{l.style.overflow="initial",c.style.display="none",window.__modal_open=!1,d.className="iframe-unentered",u.className="show-button-unentered"}),170)},k=()=>{l.style.overflow="hidden",d.className="iframe-entered",c.style.display="block",window.__modal_open=!0,m.animate(ne,oe),u.className="show-button-entered"};t(document.getElementById("frame").contentWindow.document,"keydown",(e=>{"Escape"===e.key&&(v(),document.removeEventListener("keydown",e))})),t(f,"click",(()=>{v()})),t(u,"click",(()=>{k()})),h(u,n,""),h(i,u,""),u.className="show-button-unentered",h(c,n,"overflow-y: auto; position:fixed;height:100%;width:100%;display:none; top: 0px; left: 0px; "),h(p,c,"width: 100%; height: 100%; padding: 0px; display: flex;"),h(m,p,`z-index:2147483641;${window.innerWidth>1200?"width:432px;":"width:350px;"} background-color: white; margin: auto; border-radius: 12px; box-shadow: 0 0px 2px rgba(255,255,255,0.85), 0 5px 15px rgba(0,0,0,.65); display:flex; flex-direction:column; position:relative;`),h(f,m,"background-color:white; border:none; color:white; cursor:pointer; position:absolute; right:20px; top: 20px; padding: 0; border-radius: 50%",'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '), h(g,m,"width: 100%;",`\n \n\n\n\n \n\n `),k(),setTimeout((()=>{document.getElementById("frame").contentWindow.document.querySelector("#iframe-flex").focus()}),170)}),200)},se=`?domain=${new URL(V).hostname.replace(/^www./,"")}`,le=window.location.hash.match(/modal-test-(\d+)$/);let de=`/api/v4/capture_modals${se}`;if(le){de+=`&modal_test_id=${le[1]}`}var ce=window.location.href.includes("#viainkind");ce&&s.createCookie(K+0,!0,"session"),o()&&!ce&&(S(),p(`${F}${de}`,"GET"))}(window);