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AK0C,EAAK,CAAElG,KAAM,SAAUwD,KAAAA,GAAO,EAClDlE,WAAY,WAAF,OAAQ4G,EAAK,aAAa,IAGrCD,EAAMI,QAAQ,sCACdJ,EAAM5C,QAAQ8F,eAAetB,UAC5B3I,EAAAA,cAACgM,EAAe,CAAC7C,SAAS,mCAAmCC,aAAa,QACxE,KAEHrC,EAAMI,QAAQ,qCACfJ,EAAM5C,QAAQ8F,eAAetB,UAAUsD,OAAS,EAC9CjM,EAAAA,cAACgM,EAAe,CAAC7C,SAAS,2BAA2BC,aAAa,QAChE,KAGV,ECvDe,SAAS8C,IACtB,OACElM,EAAAA,cAACmM,EAAAA,GAAM,KACLnM,EAAAA,cAACoM,EAAAA,GAAK,CAACjH,KAAK,SAASkH,OAAO,EAAMC,UAAW/F,IAC7CvG,EAAAA,cAACoM,EAAAA,GAAK,CAACjH,KAAK,oBAAoBkH,OAAO,EAAMC,UAAWX,IAG9D,CCAA,SAASY,EAAWtK,EAAIqK,IALxB,SAAiBrK,EAAIuJ,GACnB,IAAMgB,EAAO3J,SAASgI,eAAe5I,GAC9BuK,GAAOhB,EAAKgB,EACrB,CAGEC,CAAQxK,GAAI,SAACN,GACX+K,EAAAA,OAAgBJ,EAAW3K,EAAEgL,YAAY9J,SAAS+J,cAAc,QAClE,GACF,CACA/J,SAASgK,iBAAiB,oBAAoB,WAC5CN,EACE,OACAvM,EAAAA,cAAC8M,EAAAA,cAAa,KACZ9M,EAAAA,cAAC+M,IAAY,MACb/M,EAAAA,cAACkM,EAAG,OAGV,G","sources":["webpack://editorder/./app/javascript/installer/util/twMerge.ts","webpack://editorder/./app/javascript/installer/components/Card/index.tsx","webpack://editorder/./app/javascript/installer/components/Reveal/index.tsx","webpack://editorder/./app/javascript/installer/components/SubmitButton/index.tsx","webpack://editorder/./app/javascript/installer/components/LoginForm/index.tsx","webpack://editorder/./app/javascript/installer/hooks/useQueryParams.ts","webpack://editorder/./app/javascript/installer/axios.ts","webpack://editorder/./app/javascript/installer/pages/LoginPage/machine.ts","webpack://editorder/./app/javascript/installer/pages/LoginPage/LoginPage.tsx","webpack://editorder/./app/javascript/installer/components/Typography/Paragraph.tsx","webpack://editorder/./app/javascript/installer/components/SignUpForm/index.tsx","webpack://editorder/./app/javascript/installer/components/Badge/index.tsx","webpack://editorder/./app/javascript/installer/components/UsageQuestionForm/index.tsx","webpack://editorder/./app/javascript/installer/hooks/useShopifyRedirect.ts","webpack://editorder/./app/javascript/installer/pages/SignupPage/ShopifyRedirect.tsx","webpack://editorder/./app/javascript/installer/pages/SignupPage/machine.ts","webpack://editorder/./app/javascript/installer/pages/SignupPage/shopifyConfig.ts","webpack://editorder/./app/javascript/installer/pages/SignupPage/useAxios.ts","webpack://editorder/./app/javascript/installer/pages/SignupPage/SignupPage.tsx","webpack://editorder/./app/javascript/installer/app.tsx","webpack://editorder/./app/javascript/installer/index.tsx"],"sourcesContent":["import { extendTailwindMerge } from \"tailwind-merge\";\n\nconst twMerge = extendTailwindMerge({\n prefix: \"tw-\",\n});\n\nexport default twMerge;\n","import React from \"react\";\n\nimport twMerge from \"installer/util/twMerge\";\n\nexport default function Card({\n className,\n children,\n}: {\n className?: string;\n children: React.ReactNode;\n}) {\n return (\n
\n
\n {children}\n
\n
\n );\n}\n","import React from \"react\";\n\nimport { Transition } from \"@headlessui/react\";\n\ninterface Props {\n show: boolean;\n children: React.ReactNode;\n afterLeave: () => void;\n}\n\nexport default function Reveal({ show, afterLeave, children }: Props) {\n return (\n \n {children}\n \n );\n}\n","import React from \"react\";\n\nconst SubmitButton = ({\n inProgress,\n children,\n}: {\n inProgress?: boolean;\n children: React.ReactNode;\n}) => {\n return (\n \n {inProgress ? (\n \n \n \n \n ) : null}\n {children}\n \n );\n};\n\nexport default SubmitButton;\n","import React from \"react\";\n\nimport Card from \"installer/components/Card\";\nimport Reveal from \"installer/components/Reveal\";\nimport SubmitButton from \"installer/components/SubmitButton\";\n\nexport default function LoginForm({\n show,\n onSubmit,\n inProgress,\n afterLeave,\n}: {\n show: boolean;\n inProgress: boolean;\n onSubmit: (data: FormData) => void;\n afterLeave: () => void;\n}) {\n return (\n <>\n \n \n {\n e.preventDefault();\n onSubmit(new FormData(e.currentTarget));\n return false;\n }}\n >\n
\n \n Enter your shop domain to log in or install Cleverific\n \n
\n \n \n .myshopify.com\n \n
\n
\n\n
\n Install Cleverific\n
\n \n
\n
\n \n );\n}\n","import { useMemo } from \"react\";\nimport { useLocation } from \"react-router-dom\";\n\nexport default function useQueryParams() {\n const { search } = useLocation();\n\n return useMemo(() => Object.fromEntries(new URLSearchParams(search).entries()), [search]);\n}\n","import axios from \"axios\";\nimport applyCaseMiddleware from \"axios-case-converter\";\n\nconst token = document.querySelector(\"meta[name='csrf-token']\");\n\nconst AxiosClient = applyCaseMiddleware(\n axios.create({\n headers: {\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": token ? token.getAttribute(\"content\") : \"csrf_token_missing\",\n },\n }),\n {\n ignoreHeaders: true,\n },\n);\n\nexport default AxiosClient;\n","import { MutableRefObject } from \"react\";\n\nimport AxiosClient from \"installer/axios\";\nimport { assign, createMachine } from \"xstate\";\n\nconst machine = createMachine(\n {\n id: \"installer\",\n initial: \"start\",\n states: {\n start: {\n initial: \"initialize\",\n states: {\n initialize: {\n always: [{ target: \"inProgress\", cond: \"isShopParamPresent\" }, { target: \"idle\" }],\n },\n idle: {\n on: {\n submit: {\n target: \"inProgress\",\n },\n },\n },\n inProgress: {\n initial: \"submitting\",\n states: {\n submitting: {\n invoke: {\n id: \"getShop\",\n src: (context, event) => {\n if (event.type === \"submit\") {\n const shop = event.data.get(\"myshopifyDomain\");\n return AxiosClient.post(\"/installer/login\", { shop });\n }\n\n // This event type is the result of the `always` transition\n if (event.type === \"xstate.init\") {\n const shop = context.queryParams.shop;\n return AxiosClient.post(\"/installer/login\", { shop });\n }\n },\n onDone: {\n target: \"checking\",\n actions: assign({\n loginResponse: (context, event) => event.data.data,\n csrfToken: (context, event) => event.data.config.headers[\"X-CSRF-Token\"],\n }),\n },\n onError: {\n target: \"#installer.start.idle\",\n actions: assign({\n error: [\n {\n path: \"myshopifyDomain\",\n message: \"There was a problem with your request. Please try again.\",\n },\n ],\n }),\n },\n },\n },\n checking: {\n after: {\n 50: { actions: [\"submitLoginForm\"] },\n },\n },\n },\n },\n },\n },\n installed: {\n on: {\n redirectInstalled: {\n target: \"done\",\n },\n },\n },\n done: {\n type: \"final\",\n },\n },\n schema: {\n context: {} as {\n queryParams?: { shop?: string };\n loginFormRef?: MutableRefObject;\n loginResponse?: {\n login?: string;\n signup?: string;\n };\n signupResponse?: {\n id?: string;\n shopifyDomain?: string;\n };\n error?: Array<{ [k: string]: string }>;\n csrfToken?: string;\n },\n events: {} as\n | { type: \"submit\"; data: FormData }\n | { type: \"redirectInstalled\" }\n | { type: \"createShop\" }\n | { type: \"next\" }\n | { type: \"afterLeave\" }\n | { type: \"xstate.init\" },\n },\n context: {},\n predictableActionArguments: true,\n preserveActionOrder: true,\n },\n {\n actions: {\n submitLoginForm: (context, event) => {\n context.loginFormRef.current.submit();\n },\n },\n guards: {\n isInstalled: (context) => {\n return !!context?.loginResponse?.login;\n },\n isShopParamPresent: (context) => {\n return !!context?.queryParams?.shop;\n },\n },\n },\n);\n\nexport default machine;\n","import React, { useRef } from \"react\";\n\nimport { useMachine } from \"@xstate/react\";\nimport LoginForm from \"installer/components/LoginForm\";\nimport useQueryParams from \"installer/hooks/useQueryParams\";\nimport logo from \"installer/img/logo.svg\";\n\nimport machine from \"./machine\";\n\nexport default function LoginPage() {\n const queryParams = useQueryParams();\n const loginFormRef = useRef(null);\n const [state, send] = useMachine(machine, { context: { queryParams, loginFormRef } });\n\n return (\n
\n
\n \"Cleverific\"\n
\n\n send({ type: \"submit\", data })}\n afterLeave={() => send(\"afterLeave\")}\n />\n\n
\n \n\n {state.matches(\"start.inProgress.checking\") ? (\n \n ) : null}\n \n
\n );\n}\n","import React from \"react\";\n\nimport twMerge from \"installer/util/twMerge\";\n\nexport default function Paragraph({\n className,\n children,\n}: {\n className?: string;\n children: React.ReactNode;\n}) {\n return (\n

\n {children}\n

\n );\n}\n","import React, { useState } from \"react\";\n\nimport Card from \"installer/components/Card\";\nimport Reveal from \"installer/components/Reveal\";\nimport SubmitButton from \"installer/components/SubmitButton\";\nimport Paragraph from \"installer/components/Typography/Paragraph\";\n\nexport default function SignUpForm({\n show,\n onSubmit,\n inProgress,\n afterLeave,\n shopifyDomain,\n signupErrors,\n}: {\n show: boolean;\n onSubmit: (data: FormData) => void;\n inProgress?: boolean;\n afterLeave: () => void;\n shopifyDomain: string;\n signupErrors: { promoCode?: Array };\n}) {\n const [roleOtherSelected, setRoleOtherSelected] = useState(false);\n const [hasPromoCode, setHasPromoCode] = useState(false);\n const checkOther = (e) => {\n setRoleOtherSelected(() => e?.currentTarget?.value === \"Other\");\n };\n\n return (\n <>\n \n \n {\n e.preventDefault();\n onSubmit(new FormData(e.currentTarget));\n return false;\n }}\n >\n
\n

\n Installing Cleverific\n

\n\n \n Full name\n \n
\n \n \n
\n
\n\n
\n \n Email address\n \n
\n \n
\n
\n\n
\n \n
\n \n \n \n \n \n \n \n \n \n \n \n\n {roleOtherSelected ? (\n
\n \n
\n ) : null}\n
\n
\n\n
\n \n How did you hear about us?\n \n We read every response. This is super helpful for us to know!\n
\n \n
\n\n {!hasPromoCode ? (\n \n {\n event.preventDefault();\n setHasPromoCode(true);\n }}\n >\n {\" \"}\n Have a promo code?{\" \"}\n \n \n ) : null}\n
\n\n {hasPromoCode ? (\n
\n \n Promo code\n \n
\n \n {signupErrors?.promoCode ? (\n

{signupErrors.promoCode[0]}

\n ) : null}\n
\n
\n ) : null}\n\n
\n \n \n I accept and agree to the{\" \"}\n \n Terms of Service\n {\" \"}\n and{\" \"}\n \n Privacy Policy\n {\" \"}\n for Cleverific. For merchants in the European Economic Area (EEA), please also see\n our{\" \"}\n \n GDPR and Data Processing Addendum\n \n \n
\n\n
\n Continue\n
\n \n
\n
\n \n );\n}\n","import React, { useState } from \"react\";\n\nexport default function Badge({ children }: { children: string }) {\n const [isSelected, setSelected] = useState(false);\n\n return (\n <>\n {!isSelected ? (\n setSelected((selected) => !selected)}\n className=\"tw-mb-2 tw-mr-2 tw-block tw-cursor-pointer tw-border tw-border-gray-100 hover:tw-border-sky-600 tw-items-center tw-rounded-full tw-bg-gray-100 tw-px-3 tw-py-0.5 tw-text-lg tw-font-medium tw-text-gray-800\"\n >\n \n {children}\n \n ) : null}\n\n {isSelected ? (\n setSelected((selected) => !selected)}\n className=\"tw-mb-2 tw-mr-2 tw-block tw-cursor-pointer tw-border tw-border-sky-100 hover:tw-border-sky-600 tw-items-center tw-rounded-full tw-bg-sky-100 tw-px-3 tw-py-0.5 tw-text-lg tw-font-medium tw-text-gray-800\"\n >\n \n {children}\n \n ) : null}\n \n );\n}\n","import React from \"react\";\n\nimport Badge from \"installer/components/Badge\";\nimport Card from \"installer/components/Card\";\nimport Reveal from \"installer/components/Reveal\";\nimport SubmitButton from \"installer/components/SubmitButton\";\nimport Paragraph from \"installer/components/Typography/Paragraph\";\n\nexport default function UsageQuestionForm({\n show,\n onSubmit,\n inProgress,\n afterLeave,\n}: {\n show: boolean;\n inProgress: boolean;\n onSubmit: (data: FormData) => void;\n afterLeave: () => void;\n}) {\n return (\n \n \n {\n e.preventDefault();\n onSubmit(new FormData(e.currentTarget));\n return false;\n }}\n >\n
\n

\n How do you plan to use Cleverific?\n

\n\n
\n Check all that apply\n
\n\n
\n
\n Order editing\n Automatically expand bundles\n Automate free gift with purchase\n Customer Portal\n Customer self-service editing\n
\n
\n Wholesale ordering\n Custom orders\n Sales team\n Subscriptions\n Preorders\n
\n
\n
\n\n
\n Continue\n
\n \n
\n
\n );\n}\n","import { useAppBridge } from \"@shopify/app-bridge-react\";\nimport { Redirect } from \"@shopify/app-bridge/actions\";\n\nexport const useShopifyRedirect = ({\n location,\n redirectType,\n}: {\n location: string;\n redirectType: \"admin\" | \"remote\" | \"app\";\n}) => {\n const app = useAppBridge();\n const redirect = Redirect.create(app);\n\n return () => {\n if (redirectType === \"admin\") {\n redirect.dispatch(Redirect.Action.ADMIN_PATH, location.replace(\"/admin\", \"\"));\n } else if (redirectType === \"remote\") {\n redirect.dispatch(Redirect.Action.REMOTE, location);\n } else {\n redirect.dispatch(Redirect.Action.APP, location);\n }\n };\n};\n\nexport default useShopifyRedirect;\n","import { useShopifyRedirect } from \"installer/hooks/useShopifyRedirect\";\n\nconst ShopifyRedirect = ({\n location,\n redirectType,\n}: {\n location: string;\n redirectType: \"admin\" | \"remote\" | \"app\";\n}) => {\n const redirect = useShopifyRedirect({ location, redirectType });\n\n redirect();\n return null;\n};\n\nexport default ShopifyRedirect;\n","import { MutableRefObject } from \"react\";\n\nimport { AxiosInstance } from \"axios\";\nimport { assign, createMachine } from \"xstate\";\n\nconst machine = createMachine(\n {\n id: \"installer\",\n initial: \"newSignUp\",\n states: {\n done: {\n type: \"final\",\n },\n newSignUp: {\n initial: \"idle\",\n states: {\n idle: {\n on: {\n submit: {\n target: \"inProgress\",\n },\n },\n },\n inProgress: {\n initial: \"submitting\",\n states: {\n submitting: {\n invoke: {\n id: \"submitSignUp\",\n src: (context, event) => {\n if (event.type === \"submit\") {\n const data = Object.fromEntries(event.data.entries());\n return context.axios.post(\"/installer/signup\", { signupSurvey: data });\n }\n },\n onDone: {\n target: \"leaving\",\n actions: assign({\n signupResponse: (context, event) => event.data.data,\n }),\n },\n onError: {\n target: \"#installer.newSignUp.idle\",\n actions: assign({\n signupErrors: (context, event) => event.data.response.data,\n }),\n },\n },\n },\n leaving: {\n on: {\n afterLeave: {\n target: \"#installer.usageQuestion\",\n },\n },\n },\n },\n },\n },\n },\n usageQuestion: {\n initial: \"idle\",\n states: {\n idle: {\n on: {\n submit: {\n target: \"inProgress\",\n },\n },\n },\n inProgress: {\n initial: \"submitting\",\n states: {\n submitting: {\n invoke: {\n id: \"submitUsageQuestion\",\n src: (context, event) => {\n if (event.type === \"submit\") {\n const data = {\n id: context.signupResponse.id,\n interests: event.data.getAll(\"interests\"),\n };\n return context.axios.put(\"/installer/signup/\", { signupSurvey: data });\n }\n },\n onDone: {\n target: \"leaving\",\n },\n onError: {\n target: \"leaving\",\n },\n },\n },\n leaving: {},\n },\n },\n },\n },\n },\n schema: {\n context: {} as {\n axios?: AxiosInstance;\n queryParams?: { shop?: string };\n loginFormRef?: MutableRefObject;\n loginResponse?: {\n login?: string;\n signup?: string;\n };\n signupResponse?: {\n id?: string;\n shopifyDomain?: string;\n promoCode?: string;\n };\n signupErrors?: {\n promoCode?: Array;\n };\n error?: Array<{ [k: string]: string }>;\n csrfToken?: string;\n },\n events: {} as\n | { type: \"submit\"; data: FormData }\n | { type: \"redirectInstalled\" }\n | { type: \"createShop\" }\n | { type: \"next\" }\n | { type: \"afterLeave\" }\n | { type: \"xstate.init\" },\n },\n context: {},\n predictableActionArguments: true,\n preserveActionOrder: true,\n },\n {\n actions: {\n submitLoginForm: (context, event) => {\n context.loginFormRef.current.submit();\n },\n },\n guards: {\n isInstalled: (context) => {\n return !!context?.loginResponse?.login;\n },\n isShopParamPresent: (context) => {\n return !!context?.queryParams?.shop;\n },\n },\n },\n);\n\nexport default machine;\n","const shopifyConfig = () => {\n try {\n const dataset = document.getElementById(\"shopify-app-init\").dataset;\n const { apiKey, testEncodedHostname, hostAttr } = dataset;\n const forceRedirect = dataset.forceRedirect === \"true\";\n const host = getHost(testEncodedHostname || hostAttr);\n\n return {\n apiKey,\n host,\n forceRedirect,\n };\n } catch (e) {\n throw \"Shopify app initialization keys not found\";\n }\n};\n\nconst getHost = (testEncodedHostname) => {\n const hostParam = new URLSearchParams(window.location.search).get(\"host\");\n\n if (process.env.RAILS_ENV === \"test\") {\n return testEncodedHostname;\n } else if (hostParam) {\n return hostParam;\n } else {\n return testEncodedHostname;\n }\n};\n\nexport default shopifyConfig;\n","import { useAppBridge } from \"@shopify/app-bridge-react\";\nimport { getSessionToken } from \"@shopify/app-bridge/utilities\";\nimport axios from \"axios\";\nimport applyCaseMiddleware from \"axios-case-converter\";\n\nexport default function usequeryparams() {\n const appBridge = useAppBridge();\n\n const AxiosClient = applyCaseMiddleware(\n axios.create({\n headers: {\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"Content-Type\": \"application/json\",\n },\n }),\n );\n\n const sessionTokenProxy = (config) => {\n if (process.env.RAILS_ENV === \"test\") {\n return new Promise((resolve, _reject) => {\n resolve(\"test-jwt-authentication-token\");\n });\n }\n\n return getSessionToken(appBridge);\n };\n\n AxiosClient.interceptors.request.use((config) => {\n return sessionTokenProxy(config) // requires an App Bridge instance\n .then((token: string) => {\n config.headers.Authorization = `Bearer ${token}`;\n return config;\n });\n });\n\n return AxiosClient;\n}\n","import React, { useRef } from \"react\";\n\nimport { Provider } from \"@shopify/app-bridge-react\";\nimport { useMachine } from \"@xstate/react\";\nimport SignUpForm from \"installer/components/SignUpForm\";\nimport UsageQuestionForm from \"installer/components/UsageQuestionForm\";\nimport useQueryParams from \"installer/hooks/useQueryParams\";\nimport logo from \"installer/img/logo.svg\";\n\nimport ShopifyRedirect from \"./ShopifyRedirect\";\nimport machine from \"./machine\";\nimport shopifyConfig from \"./shopifyConfig\";\nimport useAxios from \"./useAxios\";\n\nexport default function SignupPage() {\n return (\n \n \n \n );\n}\n\nconst Contents = () => {\n const queryParams = useQueryParams();\n const loginFormRef = useRef(null);\n const axios = useAxios();\n const [state, send] = useMachine(machine, { context: { queryParams, loginFormRef, axios } });\n\n return (\n
\n
\n \"Cleverific\"\n
\n\n send({ type: \"submit\", data })}\n afterLeave={() => send(\"afterLeave\")}\n shopifyDomain={state.context?.loginResponse?.signup}\n signupErrors={state.context.signupErrors}\n />\n\n send({ type: \"submit\", data })}\n afterLeave={() => send(\"afterLeave\")}\n />\n\n {state.matches(\"usageQuestion.inProgress.leaving\") &&\n !state.context.signupResponse.promoCode ? (\n \n ) : null}\n\n {state.matches(\"usageQuestion.inProgress.leaving\") &&\n state.context.signupResponse.promoCode.length > 0 ? (\n \n ) : null}\n
\n );\n};\n","import React, { useRef } from \"react\";\nimport { Route, Switch } from \"react-router-dom\";\n\nimport LoginPage from \"./pages/LoginPage/LoginPage\";\nimport SignupPage from \"./pages/SignupPage/SignupPage\";\n\nexport default function App() {\n return (\n \n \n \n \n );\n}\n","import * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport ScrollMemory from \"react-router-scroll-memory\";\n\nimport App from \"installer/app\";\nimport \"installer/css/tailwind.css\";\n\nfunction getElem(id, then) {\n const elem = document.getElementById(id);\n return elem ? then(elem) : elem;\n}\n\nfunction renderInto(id, component) {\n getElem(id, (e) => {\n ReactDOM.render(component, e.appendChild(document.createElement(\"div\")));\n });\n}\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n renderInto(\n \"root\",\n \n \n \n ,\n );\n});\n"],"names":["extendTailwindMerge","prefix","Card","_ref","className","children","React","twMerge","Reveal","show","afterLeave","Transition","appear","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","inProgress","type","disabled","xmlns","fill","viewBox","cx","cy","r","stroke","strokeWidth","d","LoginForm","onSubmit","e","preventDefault","FormData","currentTarget","htmlFor","name","id","required","SubmitButton","useQueryParams","search","useLocation","useMemo","Object","fromEntries","URLSearchParams","entries","token","document","querySelector","applyCaseMiddleware","axios","create","headers","getAttribute","ignoreHeaders","createMachine","initial","states","start","initialize","always","target","cond","idle","on","submit","submitting","invoke","src","context","event","shop","data","get","AxiosClient","post","queryParams","onDone","actions","assign","loginResponse","csrfToken","config","onError","error","path","message","checking","after","installed","redirectInstalled","done","schema","events","predictableActionArguments","preserveActionOrder","submitLoginForm","loginFormRef","current","guards","isInstalled","_context$loginRespons","login","isShopParamPresent","_context$queryParams","LoginPage","_state$context","_state$context2","useRef","_useMachine2","_slicedToArray","useMachine","machine","state","send","logo","alt","matches","action","method","ref","value","signup","Paragraph","SignUpForm","shopifyDomain","signupErrors","_useState2","useState","roleOtherSelected","setRoleOtherSelected","_useState4","hasPromoCode","setHasPromoCode","autoComplete","defaultValue","onChange","_e$currentTarget","placeholder","href","onClick","promoCode","Badge","isSelected","setSelected","selected","defaultChecked","UsageQuestionForm","useShopifyRedirect","location","redirectType","app","useAppBridge","redirect","Redirect","dispatch","Action","ADMIN_PATH","replace","REMOTE","APP","newSignUp","signupSurvey","signupResponse","response","leaving","usageQuestion","interests","getAll","put","getHost","testEncodedHostname","hostParam","window","dataset","getElementById","apiKey","hostAttr","forceRedirect","host","usequeryparams","appBridge","interceptors","request","use","getSessionToken","then","Authorization","concat","SignupPage","Provider","shopifyConfig","Contents","useAxios","ShopifyRedirect","length","App","Switch","Route","exact","component","renderInto","elem","getElem","ReactDOM","appendChild","createElement","addEventListener","BrowserRouter","ScrollMemory"],"sourceRoot":""}