@heycater/qualification-funnel 1.19.16 → 1.19.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/heycater-funnel.iife.js +1 -1
- package/dist/index.cjs.js +61 -61
- package/dist/index.esm.js +96 -114
- package/package.json +1 -1
|
@@ -1376,7 +1376,7 @@
|
|
|
1376
1376
|
.MuiInputBase-inputMultiline {
|
|
1377
1377
|
cursor: auto;
|
|
1378
1378
|
}
|
|
1379
|
-
`;function mq({field:e,form:t,helperText:n,label:r="",placeholder:o="",required:i=!1,type:a="text",autocomplete:s="off",multiline:l=!1,inputRef:u}){const{formHelperText:c,showError:d}=function({field:e,form:{errors:t,touched:n},helperText:r}){const{t:o}=Vd(),i=sB(t,e.name),a=sB(n,e.name)&&!!i;return{showError:a,formHelperText:a&&o(i)||r}}({field:e,form:t,helperText:n});return C.jsxs(Jm,{error:d,required:i,children:[r&&C.jsx(tg,{htmlFor:e.name,children:r}),l?C.jsx(pq,{...e,autoComplete:s,placeholder:o,ref:u}):C.jsx(eg,{...e,type:a,autoComplete:s,placeholder:o,ref:u}),C.jsx(ng,{children:c})]})}function gq({label:e,name:t,formik:n,helperText:r}){const{t:o}=Vd(),i=n.errors.phone,a
|
|
1379
|
+
`;function mq({field:e,form:t,helperText:n,label:r="",placeholder:o="",required:i=!1,type:a="text",autocomplete:s="off",multiline:l=!1,inputRef:u}){const{formHelperText:c,showError:d}=function({field:e,form:{errors:t,touched:n},helperText:r}){const{t:o}=Vd(),i=sB(t,e.name),a=sB(n,e.name)&&!!i;return{showError:a,formHelperText:a&&o(i)||r}}({field:e,form:t,helperText:n});return C.jsxs(Jm,{error:d,required:i,children:[r&&C.jsx(tg,{htmlFor:e.name,children:r}),l?C.jsx(pq,{...e,autoComplete:s,placeholder:o,ref:u}):C.jsx(eg,{...e,type:a,autoComplete:s,placeholder:o,ref:u}),C.jsx(ng,{children:c})]})}function gq({label:e,name:t,formik:n,helperText:r}){const{t:o}=Vd(),i=LE(),a=n.errors.phone,s=a?o(a):a,l=n.values.phone,u=n.touched.phone,c=i?"+44":"+49",d=i?"+44 20 7946 0958":"+49 30 56837200";return C.jsxs(C.Fragment,{children:[C.jsx(tg,{required:!0,htmlFor:t,children:e}),C.jsx(vq,{name:t,type:"tel",value:l,onChange:e=>{let t=e.target.value;t=t.replace(/[^\d+\s-]/g,""),t.startsWith("+")||(t=c+t.replace(/^\+/,"")),n.setFieldValue("phone",t,!0)},onBlur:()=>n.setFieldTouched("phone",!0),placeholder:d,$hasError:Boolean(u&&s)}),s&&u&&C.jsx(ng,{error:s,children:(f=s,f?f.charAt(0).toUpperCase()+f.slice(1):"")}),r&&C.jsx(ng,{children:r})]});var f}const vq=_p(eg)`
|
|
1380
1380
|
border-color: ${e=>e.$hasError?e.theme.palette.error.main:"transparent"};
|
|
1381
1381
|
`;function yq({isUkLead:e=!1}){const{actions:t}=KO(),n=_E(),{t:r}=Vd("qualification");return C.jsxs(C.Fragment,{children:[C.jsx(Fm,{display:"flex",justifyContent:"end",children:C.jsx(Fm,{px:2,children:C.jsx(Us,{onClick:()=>{t.initialize(),e?n.push("/en/catering-london"):n.push(`/${n.locale}`)},"aria-label":"back",component:"span",children:C.jsx(PM,{})})})}),C.jsx(Cq,{children:C.jsx(Fm,{width:"100%",children:C.jsxs(xq,{children:[C.jsx(Fm,{textAlign:"center",children:C.jsx("img",{src:PE("/artifacts/images/confetti.gif"),width:120,height:120,alt:""})}),C.jsx(bq,{children:r("embeddedFunnel.success.title")}),C.jsx(Fm,{mt:4,children:C.jsx(wq,{children:r("embeddedFunnel.success.subtitle")})})]})})})]})}const bq=_p(Qm)`
|
|
1382
1382
|
font-size: 20px;
|