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CACnCQ,UAAW,kCACX,gBAAiB,qBAGNP,GAA0BI,EAAAA,EAAAA,SACrC,iBACA,cACA,eACA,qBACA,iBAGWH,GAAyBG,EAAAA,EAAAA,SACpC,iBACA,OACA,cACA,OACA,SAGWF,GAAgBE,EAAAA,EAAAA,SAAG,gBAAiB,MAAO,OAAQ,OAEnDD,GAAoBC,EAAAA,EAAAA,SAAG,YAAa,O,wJC/DpCI,gBAAe,W,OAAfA,C,EAQb,QAA2D,W,OAA3D,C,wBA/CkB,O,EACM,Q,IACU,M,MAGX,Q,MACL,Q,IACgB,O,mDAWlC,IAqBaA,EAAkB,SAACC,EAAkBC,GAChD,OAAKA,EAASC,QAIP,CAAEC,WAAYH,EAAMG,WAAYC,KAAMJ,EAAMI,MAH1C,CAAED,WAAYF,EAASE,WAAYC,KAAMH,EAASG,KAI7D,EAEA,GAAeC,EAAAA,EAAAA,SAAQN,EAARM,EA7BW,Y,IACxBD,EAAAA,EAAAA,KACAD,EAAAA,EAAAA,WACAG,EAAAA,EAAAA,UACAC,EAAAA,EAAAA,qBACAC,EAAAA,EAAAA,YAEA,OACE,SAACC,EAAAA,kBAAiB,C,UAChB,SAACC,EAAAA,QAAU,CACTC,UAAWP,EAAKO,WAAa,GAC7BC,UAAWT,EAAWU,KACtBC,QAAS,W,OAAMC,EAAAA,QAAMC,UAASC,EAAAA,EAAAA,oBAAkB,G,EAChDX,UAAWA,EACXC,qBAAsBA,EACtBC,YAAaA,KAIrB,G","sources":["webpack://webstaurantstore/./common/Form/inputStyles.ts","webpack://webstaurantstore/./productListing/LoginModalWrapper.tsx"],"sourcesContent":["import ct from \"class-types.macro\";\nimport { cls } from \"cls\";\n\nexport const inputBase = `${ct(\n \"appearance-none\",\n \"bg-white\",\n \"focus:bg-white\",\n \"bg-none\",\n \"focus:border-blue-300\",\n \"rounded\",\n \"border-solid\",\n \"border\",\n \"box-border\",\n \"text-sm\",\n \"m-0\",\n \"outline-none\",\n \"p-3\",\n \"focus:placeholder-transparent\",\n \"focus:shadow-blue\",\n \"w-full\",\n \"transition-all\",\n \"duration-200\"\n)} form-input`;\n\nexport const inputBaseOptionalClasses = cls(\"border-gray-300\");\n\nexport const inputError = ct(\"bg-red-100\", \"border-red-300\");\n\nexport const inputLabel = ct(\n \"block\",\n \"font-normal\",\n \"mb-1\",\n \"relative\",\n \"text-left\",\n \"text-gray-600\",\n \"transition-all\"\n);\n\nexport const inputMessageFont = ct(\"text-xs\");\n\nexport const inputMessage = ct(\n inputMessageFont,\n \"leading-4\",\n \"left-0\",\n \"bottom-2-1/2\"\n);\n\nexport const inputErrorMessage = ct(inputMessage, \"text-red-500\");\n\nexport const inputErrorMessageFont = ct(inputMessageFont, \"text-red-500\");\n\nconst selectInputIconBase = ct(\n \"pointer-events-none\",\n \"absolute\",\n \"top-0\",\n \"right-0\"\n);\n\nexport const selectInputIcon = ct(\"mt-8\", selectInputIconBase);\n\nexport const selectInputIconNoLabel = ct(\"mt-3\", selectInputIconBase);\n\nexport const inputIcon = ct(\n \"block\",\n \"mr-3\",\n \"absolute\",\n \"right-0\",\n \"bottom-0\",\n \"fill-current\",\n \"text-green-500\",\n \"hover:text-green-800\",\n \"transform\",\n \"-translate-y-full\"\n);\n\n/**\n * Per design, this will make IE 11 position it properly\n * IE 11 does not support calc when used in this way\n */\nexport const inputIconInlineStyles = {\n transform: \"translateY(calc(-25% - 1.5rem))\",\n \"-ms-transform\": \"translateY(-115%)\",\n};\n\nexport const inputButtonActionStyles = ct(\n \"bg-transparent\",\n \"border-none\",\n \"outline-none\",\n \"focus:outline-none\",\n \"text-gray-400\"\n);\n\nexport const inputCheckboxContainer = ct(\n \"cursor-pointer\",\n \"flex\",\n \"items-start\",\n \"mb-2\",\n \"gap-2\"\n);\n\nexport const inputCheckbox = ct(\"flex-shrink-0\", \"h-4\", \"mt-1\", \"w-4\");\n\nexport const inputCheckboxText = ct(\"flex-auto\", \"ml-1\");\n","import React from \"react\";\nimport { connect } from \"react-redux\";\nimport { ReCaptchaProvider } from \"@wss/re-captcha\";\nimport { User } from \"~/common/Store/models/User\";\nimport { RootState, LoginModalState } from \"~/common/Store/models/RootReadonly\";\nimport LoginModal from \"~/common/LoginModalContainer\";\nimport Store from \"~/common/Store\";\nimport { setLoginModalOpen } from \"~/common/Store/actions/loginModal\";\n\ninterface Props {\n mounted: boolean;\n user: User;\n loginModal: LoginModalState;\n targetURL?: string;\n loginSuccessCallback?: () => void;\n queryParams?: string;\n}\n\nconst LoginModalWrapper = ({\n user,\n loginModal,\n targetURL,\n loginSuccessCallback,\n queryParams,\n}: Props) => {\n return (\n \n Store.dispatch(setLoginModalOpen(false))}\n targetURL={targetURL}\n loginSuccessCallback={loginSuccessCallback}\n queryParams={queryParams}\n />\n \n );\n};\n\nexport const mapStateToProps = (state: RootState, ownProps: Props) => {\n if (!ownProps.mounted) {\n return { loginModal: ownProps.loginModal, user: ownProps.user };\n }\n\n return { loginModal: state.loginModal, user: state.user };\n};\n\nexport default connect(mapStateToProps)(LoginModalWrapper);\n"],"names":["inputBase","inputBaseOptionalClasses","inputError","inputLabel","inputMessageFont","inputMessage","inputErrorMessage","inputErrorMessageFont","selectInputIcon","selectInputIconNoLabel","inputIcon","inputIconInlineStyles","inputButtonActionStyles","inputCheckboxContainer","inputCheckbox","inputCheckboxText","ct","cls","selectInputIconBase","transform","mapStateToProps","state","ownProps","mounted","loginModal","user","connect","targetURL","loginSuccessCallback","queryParams","ReCaptchaProvider","LoginModal","csrfToken","modalOpen","open","onClose","Store","dispatch","setLoginModalOpen"],"sourceRoot":""}