1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7253],{15452:(e,t,n)=>{n.d(t,{Close:()=>er,Content:()=>en,Description:()=>eo,Overlay:()=>et,Portal:()=>ee,Root:()=>Q,Title:()=>el,Trigger:()=>X});var l=n(12115),o=n(85185),r=n(6101),a=n(46081),s=n(61285),i=n(5845),d=n(19178),u=n(25519),c=n(34378),p=n(28905),f=n(63655),m=n(92293),h=n(58890),v=n(38168),g=n(99708),x=n(95155),j="Dialog",[b,w]=(0,a.A)(j),[y,C]=b(j),N=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:a,modal:d=!0}=e,u=l.useRef(null),c=l.useRef(null),[p,f]=(0,i.i)({prop:o,defaultProp:null!=r&&r,onChange:a,caller:j});return(0,x.jsx)(y,{scope:t,triggerRef:u,contentRef:c,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),open:p,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(e=>!e),[f]),modal:d,children:n})};N.displayName=j;var D="DialogTrigger",R=l.forwardRef((e,t)=>{let{__scopeDialog:n,...l}=e,a=C(D,n),s=(0,r.s)(t,a.triggerRef);return(0,x.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":H(a.open),...l,ref:s,onClick:(0,o.mK)(e.onClick,a.onOpenToggle)})});R.displayName=D;var O="DialogPortal",[I,T]=b(O,{forceMount:void 0}),k=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:r}=e,a=C(O,t);return(0,x.jsx)(I,{scope:t,forceMount:n,children:l.Children.map(o,e=>(0,x.jsx)(p.C,{present:n||a.open,children:(0,x.jsx)(c.Z,{asChild:!0,container:r,children:e})}))})};k.displayName=O;var F="DialogOverlay",E=l.forwardRef((e,t)=>{let n=T(F,e.__scopeDialog),{forceMount:l=n.forceMount,...o}=e,r=C(F,e.__scopeDialog);return r.modal?(0,x.jsx)(p.C,{present:l||r.open,children:(0,x.jsx)(P,{...o,ref:t})}):null});E.displayName=F;var _=(0,g.TL)("DialogOverlay.RemoveScroll"),P=l.forwardRef((e,t)=>{let{__scopeDialog:n,...l}=e,o=C(F,n);return(0,x.jsx)(h.A,{as:_,allowPinchZoom:!0,shards:[o.contentRef],children:(0,x.jsx)(f.sG.div,{"data-state":H(o.open),...l,ref:t,style:{pointerEvents:"auto",...l.style}})})}),A="DialogContent",S=l.forwardRef((e,t)=>{let n=T(A,e.__scopeDialog),{forceMount:l=n.forceMount,...o}=e,r=C(A,e.__scopeDialog);return(0,x.jsx)(p.C,{present:l||r.open,children:r.modal?(0,x.jsx)(B,{...o,ref:t}):(0,x.jsx)(M,{...o,ref:t})})});S.displayName=A;var B=l.forwardRef((e,t)=>{let n=C(A,e.__scopeDialog),a=l.useRef(null),s=(0,r.s)(t,n.contentRef,a);return l.useEffect(()=>{let e=a.current;
1if(e)return(0,v.Eq)(e)},[]),(0,x.jsx)(q,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),M=l.forwardRef((e,t)=>{let n=C(A,e.__scopeDialog),o=l.useRef(!1),r=l.useRef(!1);return(0,x.jsx)(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var l,a;null==(l=e.onCloseAutoFocus)||l.call(e,t),t.defaultPrevented||(o.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:t=>{var l,a;null==(l=e.onInteractOutside)||l.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));let s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),q=l.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,...i}=e,c=C(A,n),p=l.useRef(null),f=(0,r.s)(t,p);return(0,m.Oh)(),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(u.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:s,children:(0,x.jsx)(d.qW,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":H(c.open),...i,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)($,{titleId:c.titleId}),(0,x.jsx)(J,{contentRef:p,descriptionId:c.descriptionId})]})]})}),G="DialogTitle",K=l.forwardRef((e,t)=>{let{__scopeDialog:n,...l}=e,o=C(G,n);return(0,x.jsx)(f.sG.h2,{id:o.titleId,...l,ref:t})});K.displayName=G;var W="DialogDescription",Y=l.forwardRef((e,t)=>{let{__scopeDialog:n,...l}=e,o=C(W,n);return(0,x.jsx)(f.sG.p,{id:o.descriptionId,...l,ref:t})});Y.displayName=W;var Z="DialogClose",z=l.forwardRef((e,t)=>{let{__scopeDialog:n,...l}=e,r=C(Z,n);return(0,x.jsx)(f.sG.button,{type:"button",...l,ref:t,onClick:(0,o.mK)(e.onClick,()=>r.onOpenChange(!1))})});function H(e){return e?"open":"closed"}z.displayName=Z;var L="DialogTitleWarning",[U,V]=(0,a.q)(L,{contentName:A,titleName:G,docsSlug:"dialog"}),$=e=>{let{titleId:t}=e,n=V(L),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return l.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},J=e=>{let{contentRef:t,descriptionId:n}=e,o=V("DialogDescriptionWarning"),r="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return l.useEffect(()=>{var e;let l=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(r))},[r,t,n]),null},Q=N,X=R,ee=k,et=E,en=S,el=K,eo=Y,er=z},67253:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var l=n(95155),o=n(12115),r=n(35695),a=n(15452),s=n(95325),i=n(67703),d=n(47609),u=n(27773),c=n(42904),p=n(77151);let f=e=>{let t=(0,r.usePathname)(),[n,f]=(0,o.useState)((null==e?void 0:e.modalOpen)||!1),[m,h]=(0,o.useState)(null),v=void 0!==e.modalOpen,g=(0,r.useSearchParams)().get("showForm"),[x,j]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"true"!==g||n||v||x||(f(!0),j(!0))},[g,n,v,x]);let b=Object.assign({},e);return b.className="".concat(null==b?void 0:b.className," [:where(&)]:white-bg [:where(&)]:px-8 [:where(&)]:py-10 [:where(&)]:shadow-2xl"),b.titleClassName="".concat(null==b?void 0:b.titleClassName," [:where(&)]:text-2xl [:where(&)]:text-green-500"),b.descClassName="".concat(null==b?void 0:b.descClassName," [:where(&)]:text-black [:where(&)]:text-sm"),["buttonClassName","modalOpen","buttonText"].forEach(e=>{delete b[e]}),(null==e?void 0:e.modalButtonText)&&(b.buttonText=null==e?void 0:e.modalButtonText),(0,l.jsxs)(a.Root,{modal:!0,open:n,children:[(0,l.jsx)(a.Trigger,{asChild:!0,children:(0,l.jsx)(c.$,{onClick:()=>{(null==e?void 0:e.onClick)&&"function"==typeof(null==e?void 0:e.onClick)&&(null==e||e.onClick()),f(!0)},className:"".concat(e.buttonClassName),theme:"".concat((null==e?void 0:e.buttonTheme)||"primary"),children:e.buttonText})}),(0,l.jsx)(a.Portal,{children:(0,l.jsx)(a.Overlay,{className:"group/curtain modal-overlay",children:(0,l.jsxs)(a.Content,{onInteractOutside:()=>{f(!1)},className:"relative my-8 inset-0 z-61 m-auto block w-11/12 justify-center rounded-md py-6 sm:pointer-fine:h-fit md:w-8/12 lg:w-5/12 xl:w-4/12 2xl:w-3/12 ",children:[(null==e?void 0:e.modalTitle)?(0,l.jsx)(a.Title,{children:null==e?void 0:e.modalTitle}):(0,l.jsx)(a.Title,{className:"invisible hidden",asChild:!0,children:(0,l.jsx)("span",{children:"Demo Modal"})}),(0,l.jsx)("div",{children:(0,l.jsxs)(s.default,{onSuccessOverride:(null==e?void 0:e.showThankYouInputs)?async e=>{let{sfdcResponse:t,updateFormSubmitted:n}=e;h(null==t?void 0:t.id),n(!0)}:void 0,successState:(null==e?void 0:e.successState)?null==e?void 0:e.successState:(null==e?void 0:e.showThankYouInputs)?(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsxs)(u.A,{className:"flex w-full flex-row items-center gap-2 border-t-2 border-t-primary-200 pt-3",children:[(0,l.jsx)(p.A,{className:"text-large w-[36px] fill-primary-500 text-primary-500"}),(0,l.jsx)("span",{children:"Provide additional information about your practice."})]}),(0,l.jsx)(d.default,{leadId:m||void 0,className:"".concat(null==e?void 0:e.className," p-1"),thanksTextClassName:"neutral-90"})]}):null,...b,children:[t&&(0,l.jsx)(i.A,{inputType:"hidden",required:!1,label:"Notes",className:"Form--Input hidden",name:"notes",id:"Form--Notes","data-cy":"product-notes-input",value:"Demo Requested from the ".concat(t," page")}),null==e?void 0:e.children]})}),(null==e?void 0:e.subForm)&&(0,l.jsx)("span",{children:null==e?void 0:e.subForm})]})})})]})}},95325:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a});var l=n(95155),o=n(12115);let r=(0,n(55028).default)(()=>Promise.all([n.e(9268),n.e(6874),n.e(5444),n.e(4134),n.e(9669),n.e(8740),n.e(1341),n.e(7898),n.e(5585),n.e(5281),n.e(3960),n.e(2089),n.e(2477),n.e(5872),n.e(9767),n.e(8e3),n.e(4407)]).then(n.bind(n,74407)).then(e=>e.Main),{loadableGenerated:{webpack:()=>[74407]}}),a=e=>(0,l.jsx)(o.Suspense,{fallback:null,children:(0,l.jsx)(r,{...e,children:null==e?void 0:e.children})})}}]);
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.