1/*! For license information please see foodCostCalculator-components-BusinessTypeCards.chunk.cf8361d7bddfaf9e745c.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunklightspeed_marketing=globalThis.webpackChunklightspeed_marketing||[]).push([[857,2829,4853,7229],{82499(e,t,n){n.r(t),n.d(t,{default:()=>u});var r=n(96540),o=n(84058),a=n.n(o),s=n(65321),c=n.n(s),i=n(7408),l=n(70283);const u=({businessType:e,handleBusinessType:t,businessTypeReq:n})=>{var o;const{signupData:s,errorData:u}=(0,l.useAppState)();return r.createElement("div",{className:"business-input"},(null==s?void 0:s.business_type_label)&&r.createElement("div",{className:"radio-label"},s.business_type_label,n&&r.createElement("div",{className:"error"},null==u?void 0:u.businessTypeReq)),r.createElement("div",{className:"radio-input-group"},null==s||null===(o=s.business_type_select)||void 0===o?void 0:o.filter(e=>0!==e.business_type.length).map((n,o)=>{const{business_type:s,label:l}=n,u=e===s;return r.createElement("label",{key:o,className:u?"checked":""},r.createElement("input",{name:s,type:"radio",id:l,onChange:t,checked:u,value:s}),i.default[a()(c()(s))],l)})))}},70283(e,t,n){n.r(t),n.d(t,{AppProvider:()=>i,useAppState:()=>l});var r=n(96540),o=n(18987),a=n(55731),s=n(56923);const c=(0,r.createContext)({}),i=({children:e,lexiconData:t})=>{const[n,i]=(0,r.useState)(""),[l,u]=(0,a.useLocalStorage)("kfcc_email",""),{isToggled:d,setToggle:p,toggle:g}=(0,s.useToggle)(!0),[m,f]=(0,r.useState)(!1),[v,h]=(0,r.useState)({country:"",country_code:""});(0,r.useEffect)(()=>{const e=window.location.hostname,t=e.includes("local");if(i("https://"+e),f(t),t)h({country:"Australia",country_code:"AU"});else try{h(JSON.parse(o.A.get("geoConfig")||"{}"))}catch(e){h({country:"",country_code:""})}},[]);const{settings_global:b,header:y,signup_section:_,calculator_section:C,margin_section:D,summary_section:k,error_section:S}=t||{};return r.createElement(c.Provider,{value:{email:l,setEmail:u,isMetric:d,setMetric:p,toggleMetric:g,lexiconData:t,globalData:b,headerData:y,signupData:_,calculatorData:C,marginData:D,summaryData:k,errorData:S,domain:n,isDevEnv:m,geoLocation:v}},e)},l=()=>(0,r.useContext)(c)},55731(e,t,n){n.r(t),n.d(t,{useLocalStorage:()=>o});var r=n(96540);function o(e,t){const[n,o]=(0,r.useState)(t);return(0,r.useEffect)(()=>{try{const t=window.localStorage.getItem(e);t&&o(JSON.parse(t))}catch(e){console.error(e)}},[e]),[n,(0,r.useCallback)(t=>{try{o(n=>{const r=t instanceof Function?t(n):t;return window.localStorage.setItem(e,JSON.stringify(r)),r})}catch(e){console.error(e)}},[e])]}},56923(e,t,n){n.r(t),n.d(t,{useToggle:()=>o});var r=n(96540);const o=e=>{const[t,n]=(0,r.useState)(e);return{isToggled:t,setToggle:n,toggle:()=>n(e=>!e)}}},18987(e,t,n){function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:()=>o});var o=function e(t,n){function o(e,o,a){if("undefined"!=typeof document){"number"==typeof(a=r({},n,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,!0!==a[c]&&(s+="="+a[c].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+s}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var a=n[o].split("="),s=a.slice(1).join("=");try{var c=decodeURIComponent(a[0]);if(r[c]=t.read(s,c),e===c)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
2URIComponent)}},{path:"/"})}}]); 3//# sourceMappingURL=foodCostCalculator-components-BusinessTypeCards.chunk.cf8361d7bddfaf9e745c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.