PageSourceSearch

https://app.dropmatic.ai/_next/static/chunks/pages/shopify/confirm-24f255fc5d6f1570.js

js dropmatic.ai collected 2026-10-05 15:22:02 UTC 12,418 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[140],{5390:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shopify/confirm",function(){return t(42371)}])},63010:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});var s=t(41844),a=t(6962),l=t(67872);function n(e){return(0,s.jsx)("div",{className:"lg:border lg:border-gray-200 hidden lg:block lg:dark:border-gray-800 dark:bg-gray-800",children:(0,s.jsx)("nav",{"aria-label":"Progress",children:(0,s.jsx)("ol",{role:"list",className:"overflow-hidden rounded-md lg:flex",children:e.steps.map((r,t)=>(0,s.jsx)("li",{className:"relative overflow-hidden lg:flex-1",children:(0,s.jsxs)("div",{className:(0,l.AK)(0===t?"border-b-0":"",t===e.steps.length-1?"border-t-0":"","border border-gray-200 overflow-hidden lg:border-0 dark:border-gray-500"),children:[t+1<e.activeFormStep?(0,s.jsxs)("span",{className:(0,l.AK)(e.isDisabled?"group hover:cursor-not-allowed":"group hover:cursor-pointer"),onClick:()=>e.isDisabled?"":e.setActiveFormStep(t+1),children:[(0,s.jsx)("span",{className:(0,l.AK)(e.isDisabled?"group-hover:bg-gray-500":"group-hover:bg-gray-300","absolute top-0 left-0 h-full w-1 bg-transparent lg:bottom-0 lg:top-auto lg:h-1 lg:w-full"),"aria-hidden":"true"}),(0,s.jsxs)("span",{className:(0,l.AK)(0!==t?"lg:pl-9":"","px-6 py-5 flex items-start text-sm font-medium"),children:[(0,s.jsx)("span",{className:"flex-shrink-0",children:(0,s.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-indigo-600 dark:bg-indigo-500",children:(0,s.jsx)(a,{className:"h-6 w-6 text-white","aria-hidden":"true"})})}),(0,s.jsxs)("span",{className:"mt-0.5 ml-4 flex min-w-0 flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-medium dark:text-gray-100",children:r.name}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r.description})]})]})]}):t+1===e.activeFormStep?(0,s.jsxs)("span",{"aria-current":"step",className:"hover:cursor-pointer",children:[(0,s.jsx)("span",{className:"absolute top-0 left-0 h-full w-1 bg-indigo-600 lg:bottom-0 lg:top-auto lg:h-1 lg:w-full dark:bg-indigo-400","aria-hidden":"true"}),(0,s.jsxs)("span",{className:(0,l.AK)(0!==t?"lg:pl-9":"","px-6 py-5 flex items-start text-sm font-medium"),children:[(0,s.jsx)("span",{className:"flex-shrink-0",children:(0,s.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-full border-2 border-indigo-600 dark:border-indigo-400",children:(0,s.jsx)("span",{className:"text-indigo-600 dark:text-indigo-400",children:t+1})})}),(0,s.jsxs)("span",{className:"mt-0.5 ml-4 flex min-w-0 flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-indigo-600 dark:text-indigo-400",children:r.name}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r.description})]})]})]}):(0,s.jsxs)("span",{className:"group hover:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"absolute top-0 left-0 h-full w-1 bg-transparent group-hover:bg-gray-200 lg:bottom-0 lg:top-auto lg:h-1 lg:w-full dark:group-hover:bg-gray-600","aria-hidden":"true"}),(0,s.jsxs)("span",{className:(0,l.AK)(0!==t?"lg:pl-9":"","px-6 py-5 flex items-start text-sm font-medium"),children:[(0,s.jsx)("span",{className:"flex-shrink-0",children:(0,s.jsx)("span",{className:"flex h-10 w-10 items-center justify-center rounded-full border-2 border-gray-300",children:(0,s.jsx)("span",{className:"text-gray-500 dark:text-gray-400",children:t+1})})}),(0,s.jsxs)("span",{className:"mt-0.5 ml-4 flex min-w-0 flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r.name}),(0,s.jsx)("span",{className:"text-sm font-medium text-gray-500 dark:text-gray-400",children:r.description})]})]})]}),0!==t?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"absolute inset-0 top-0 left-0 hidden w-3 lg:block ","aria-hidden":"true",children:(0,s.jsx)("svg",{className:"h-full w-full text-gray-300 dark:text-gray-700",viewBox:"0 0 12 82",fill:"none",preserveAspectRatio:"none",children:(0,s.jsx)("path",{d:"M0.5 0V31L10.5 41L0.5 51V82",stroke:"currentcolor",vectorEffect:"non-scaling-stroke"})})})}):null]})},t))})})})}},46471:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var s=t(41844),a=t(86501);t(55784);
1var l=t(22754),n=t(85484),i=t(67872);function o(){return(0,s.jsx)(a.x7,{position:"top-right",children:e=>(0,s.jsx)("div",{className:(0,i.AK)("".concat(e.visible?"animate-enter":"animate-leave","  max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto\n ring-1 ring-black ring-opacity-5 overflow-hidden dark:border-gray-600 dark:bg-gray-700")),children:(0,s.jsx)("div",{className:"p-4",children:(0,s.jsxs)("div",{className:"flex items-center",children:[e.type?(0,s.jsx)("div",{className:"flex-shrink-0 mr-2",children:"success"===e.type?(0,s.jsx)(l,{className:"h-6 w-6 text-green-400","aria-hidden":"true"}):"error"===e.type?(0,s.jsx)(n,{className:"h-6 w-6 text-red-400","aria-hidden":"true"}):null}):null,(0,s.jsx)("div",{className:"w-0 flex-1 flex justify-between",children:(0,s.jsx)("p",{className:"w-0 flex-1 text-sm font-medium text-gray-900 dark:text-gray-200",children:(0,a.GK)(e.message,e)})})]})})})})}},73565:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});var s=t(41844);t(55784);var a=t(67872);let l={color:"primary",type:"button"};function n(e){let{children:r,isLoading:t,loadingText:n,...i}={...e={...l,...e},disabled:e.disabled||e.isLoading,className:(0,a.AK)("disabled:cursor-not-allowed disabled:opacity-75 inline-flex items-center px-4 py-2 focus:ring-indigo-500 text-sm font-medium rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2","primary"===e.color?"bg-indigo-600 hover:bg-indigo-700 text-white border border-transparent dark:bg-indigo-500 dark:hover:bg-indigo-600":"danger"==e.color?"bg-red-600 inline-flex w-full justify-center rounded-md px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 sm:ml-3 sm:w-auto dark:bg-red-500 dark:hover:bg-red-600":"bg-white text-gray-700 hover:bg-gray-50 border border-gray-300 dark:bg-white/10 dark:hover:bg-white/20 dark:text-white dark:border-transparent",e.className?e.className:"")};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("button",{...i,children:[t?(0,s.jsxs)("svg",{className:"animate-spin -ml-1 mr-3 h-3 w-3 ".concat("white"===e.color?"text-gray-300":"text-white"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}):null,t&&n?n:r]})})}},25161:function(e,r,t){"use strict";t.d(r,{Z:function(){return n}});var s=t(41844);t(55784);var a=t(54257);let l={type:"text"};function n(e){e={...l,...e};let{error:r,label:t,helpText:n,...i}={...e,className:"appearance-none block w-full px-3 py-2 border \n      rounded-md shadow-sm \n      focus:outline-none\n      sm:text-sm\n      placeholder-gray-400\n      dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-indigo-500 dark:focus:border-indigo-500\n      ".concat(e.error?"border-red-300 text-red-900 focus:ring-red-500 focus:border-red-500":"border-gray-300 focus:ring-indigo-500 focus:border-indigo-500"," ").concat(e.className)};return(0,s.jsxs)("div",{children:[(0,s.jsx)(a.Z,{htmlFor:e.name,children:e.label}),(0,s.jsxs)("div",{className:"".concat(e.label?"mt-1":""),children:[(0,s.jsx)("input",{...i}),e.error||e.helpText?(0,s.jsx)("p",{className:"".concat(e.error?"text-red-500 dark:text-red-400":"text-gray-500"," text-xs mt-2"),children:e.error?e.error.message:e.helpText}):null]})]})}},54257:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var s=t(41844);function a(e){let{children:r,hasNormalFontWeight:t,...a}={...e,className:"block text-sm dark:text-white ".concat(e.hasNormalFontWeight?"":"font-medium"," text-gray-700 ").concat(e.className?e.className:"")};return(0,s.jsx)("label",{...a,children:e.children})}t(55784)},61539:function(e,r,t){"use strict";t.d(r,{Z:function(){return i}});var s=t(41844),a=t(11355),l=t(55784);let n={};function i(e){e={...n,...e};let[r,t]=l.useState(!1);return(0,l.useEffect)(()=>{t(!0)}),(0,s.jsx)(a.u,{className:"flex flex-col flex-1",show:r,enter:"transition-opacity duration-350",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-350",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:e.children})}},42371:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return S}});var s=t(41844),a=t(55784),l=t(33299),n=t(63010),i=t(67872),o=t(46471),d=t(61539),c=t(23691),m=t(25675),x=t.n(m),u=t(87536),h=t(25161),g=t(73565),p=t(47533),f=t(16310),b=t(99386),y=t(47041),j=t(41664),v=t.n(j),N=t(39332),w=t(5152),k=t.n(w);let C=k()(()=>t.e(174).then(t.bind(t,66174)),{loadableGenerated:{webpack:()=>[66174]},ssr:!1}),_=e=>{let{data:r}=(0,l.useSession)(),[t,m]=(0,a.useState)(3),j=(0,a.useContext)(c.S),{axios:w}=(0,b.Z)(),[k,_]=(0,a.useState)(!1),{control:S,handleSubmit:A,setError:Z}=(0,u.cI)({mode:"onBlur",resolver:(0,p.X)(f.Ry({email:f.Z_().email("Email must be a valid email").required("Email is required")})),defaultValues:{email:e.email}}),F=r=>{_(!0),w.post("shopify-app-installations/".concat(e.id,"/confirm"),{email:r.email}).then(async e=>{(0,y.deleteCookie)("shopifyAppInstallationId"),await (0,l.signIn)("accessToken",e.data)}).catch(e=>{e.response.data.email&&Z("email",{type:"manual",message:e.response.data.email[0]})}).finally(()=>{_(!1)})};return(0,s.jsx)(d.Z,{children:(0,s.jsxs)("div",{className:"".concat(j.theme," flex flex-col flex-1"),children:[(0,s.jsx)(n.Z,{isDisabled:!0,activeFormStep:t,
1setActiveFormStep:m,steps:[{name:"Select platform",description:"Select platform you would like to connect"},{name:"Connect store",description:"Select shopify store"},{name:"Confirm",description:"Confirm your contact details"}]}),(0,s.jsx)("div",{className:"w-full flex flex-col justify-center flex-1 mx-auto px-4 sm:px-6 lg:px-8 dark:bg-gray-900",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,s.jsx)("div",{className:3===t?"":"hidden",children:(0,s.jsxs)("div",{className:"flex space-y-8 min-h-full flex-col justify-center sm:px-6 lg:px-8",children:[(0,s.jsx)(x(),{className:"w-16 h-auto",width:"16",height:"16",src:"https://gvrassets.nyc3.cdn.digitaloceanspaces.com/obsidian/logo-dark.svg",alt:(0,i.PO)()}),(0,s.jsx)("h2",{className:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-200",children:"Confirm your email"}),(0,s.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,s.jsx)("div",{className:"sm:rounded-lg",children:(0,s.jsxs)("form",{className:"space-y-8",children:[(0,s.jsx)(u.Qr,{control:S,render:e=>{let{field:{onChange:r,onBlur:t,name:a,value:l},fieldState:{error:n}}=e;return(0,s.jsx)("div",{children:(0,s.jsx)(h.Z,{type:"email",label:"Email*",name:a,value:l,onChange:r,onBlur:t,required:!0,error:n})})},name:"email"}),(0,s.jsx)("div",{children:(0,s.jsx)(g.Z,{isLoading:k,loadingText:"Connecting...",type:"submit",color:"primary",className:"flex w-full justify-center rounded-md bg-indigo-600 py-2 px-3 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",onClick:A(F),children:"Confirm email"})})]})})})]})})})}),(0,s.jsx)("div",{className:"bg-white flex flex-shrink-0 p-4 sticky bottom-0 dark:bg-gray-700",children:(0,s.jsxs)("div",{className:"px-4 py-1",children:[(0,s.jsxs)("span",{className:"text-sm font-medium text-gray-900 dark:text-white cursor-pointer",children:["Connected to",(0,s.jsxs)(v(),{className:"text-indigo-400 ml-1",href:"https://".concat(e.shop),target:"_blank",children:["https://",e.shop]})]}),(0,s.jsx)("p",{className:"text-gray-600 cursor-pointer text-xs font-medium group-hover:text-gray-200 dark:text-gray-300",onClick:()=>{(0,y.deleteCookie)("shopifyAppInstallationId"),(0,N.redirect)("/")},children:"Log out"})]})}),(0,s.jsx)(o.Z,{}),(0,s.jsx)(C,{})]})})};_.requiresAuth=!1,_.requiresWorkspace=!1;var S=!0;r.default=_}},function(e){e.O(0,[328,216,664,307,888,179],function(){return e(e.s=5390)}),_N_E=e.O()}]);

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.