1import{r as w,R as et,p as H}from"./vendor-3b63c367.js";import{j as o,c as he,a as tt,p as ot}from"./index-ec2b83ec.js";import"../index-generated.js";import{_ as nt,u as it}from"./downshift.esm-8eb45185.js";import{I as st}from"./Icon-d4232180.js";/*! 2 * @preserve 3 * 4 * @module iframe-resizer/core 5.3.1 (esm) - 2024-09-12 5 * 6 * @license GPL-3.0 for non-commercial use only. 7 * For commercial use, you must purchase a license from 8 * https://iframe-resizer.com/pricing 9 * 10 * @description Keep same and cross domain iFrames sized to their content 11 * 12 * @author David J. Bradshaw <[email protected]> 13 * 14 * @see {@link https://iframe-resizer.com} 15 * 16 * @copyright (c) 2013 - 2024, David J. Bradshaw. All rights reserved. 17 */const pe="5.3.1",ie="[iFrameSizer]",ae=ie.length,rt=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),se=(n,e,a,d)=>n.addEventListener(e,a,d||!1),at=(n,e,a)=>n.removeEventListener(e,a,!1),fe=n=>{if(!n)return"";let e=-559038744,a=1103547984;for(let d,t=0;t<n.length;t++)d=n.codePointAt(t),e=Math.imul(e^d,2246822519),a=Math.imul(a^d,3266489917);return e^=Math.imul(e^a>>>15,1935289751),a^=Math.imul(a^e>>>15,3405138345),e^=a>>>16,a^=e>>>16,(2097152*(a>>>0)+(e>>>11)).toString(36)},re=n=>n.replaceAll(/[A-Za-z]/g,e=>String.fromCodePoint((e<="Z"?90:122)>=(e=e.codePointAt(0)+19)?e:e-26)),lt=["<iy><yi>Puchspk Spjluzl Rlf</><iy><iy>","<iy><yi>Tpzzpun Spjluzl Rlf</><iy><iy>","Aopz spiyhyf pz hchpshisl dpao ivao Jvttlyjphs huk Vwlu-Zvbyjl spjluzlz.<iy><iy><i>Jvttlyjphs Spjluzl</><iy>Mvy jvttlyjphs bzl, <p>pmyhtl-ylzpgly</> ylxbpylz h svd jvza vul aptl spjluzl mll. Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>.<iy><iy><i>Vwlu Zvbyjl Spjluzl</><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-jvttlyjphs vwlu zvbyjl wyvqlja aolu fvb jhu bzl pa mvy myll bukly aol alytz vm aol NWS C3 Spjluzl. Av jvumpyt fvb hjjlwa aolzl alytz, wslhzl zla aol <i>spjluzl</> rlf pu <p>pmyhtl-ylzpgly</> vwapvuz av <i>NWSc3</>.<iy><iy>Mvy tvyl pumvythapvu wslhzl zll: <b>oaawz://pmyhtl-ylzpgly.jvt/nws</>","<i>NWSc3 Spjluzl Clyzpvu</><iy><iy>Aopz clyzpvu vm <p>pmyhtl-ylzpgly</> pz ilpun bzlk bukly aol alytz vm aol <i>NWS C3</> spjluzl. Aopz spjluzl hssvdz fvb av bzl <p>pmyhtl-ylzpgly</> pu Vwlu Zvbyjl wyvqljaz, iba pa ylxbpylz fvby wyvqlja av il wbispj, wyvcpkl haaypibapvu huk il spjluzlk bukly clyzpvu 3 vy shaly vm aol NUB Nlulyhs Wbispj Spjluzl.<iy><iy>Pm fvb hyl bzpun aopz spiyhyf pu h uvu-vwlu zvbyjl wyvqlja vy dlizpal, fvb dpss ullk av wbyjohzl h svd jvza vul aptl jvttlyjphs spjluzl.<iy><iy>Mvy tvyl pumvythapvu cpzpa <b>oaawz://pmyhtl-ylzpgly.jvt/wypjpun</>."],ct=["NWSc3","zvsv","wyv","ibzpulzz","vlt"],ye=Object.fromEntries(["2cgs7fdf4xb","1c9ctcccr4z","1q2pc4eebgb","ueokt0969w","w2zxchhgqz","1umuxblj2e5"].map((n,e)=>[n,Math.max(0,e-1)])),le=n=>re(lt[n]),dt=n=>{const e=n[re("spjluzl")];if(!e)return-1;const a=e.split("-");let d=function(t=""){let s=-2;const c=fe(re(t));return c in ye&&(s=ye[c]),s}(a[0]);return d===0||(t=>t[2]===fe(t[0]+t[1]))(a)||(d=-2),d},je="[iframe-resizer]",ut=n=>`${je}[${function(e){var a;return window.top===window.self?`Parent page: ${e}`:(a=window==null?void 0:window.parentIFrame)!=null&&a.getId?`${window.parentIFrame.getId()}: ${e}`:`Nested parent page: ${e}`}(n)}]`,Y=(n,...e)=>((a,d,...t)=>window==null?void 0:window.console[a](ut(d),...t))("warn",n,...e),_=(n,e)=>console==null?void 0:console.warn((a=>d=>window.chrome?a(d.replaceAll("<br>",` 18`).replaceAll("<rb>","\x1B[31;1m").replaceAll("</>","\x1B[m").replaceAll("<b>","\x1B[1m").replaceAll("<i>","\x1B[3m").replaceAll("<u>","\x1B[4m")):a(d.replaceAll("<br>",` 19`).replaceAll(/<[/a-z]+>/gi,"")))((a=>(...d)=>[`${je}[${a}]`,...d].join(" "))(n))(e)),i={},ge=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyPadding:null,checkOrigin:!0,direction:"vertical",inPageLinks:!1,heightCalculationMethod:"auto",id:"iFrameResizer",log:!1,license:void 0,mouseEvents:!0,offsetHeight:null,offsetWidth:null,postMessageTarget:null,sameDomain:!1,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,waitForLoad:!1,widthCalculationMethod:"auto",onClose:()=>!0,onClosed(){},onInit:!1,onMessage:null,onMouseEnter(){},onMouseLeave(){},onReady:n=>{typeof i[n.id].onInit=="function"&&(_(n.id,` 20\x1B[31;1mDeprecated Option\x1B[m 21 22The \x1B[1monInit()\x1B[m function is deprecated and has been replaced with \x1B[1monReady()\x1B[m. It will be removed in a future version of iFrame Resizer. 23 `),i[n.id].onInit(n))},onResized(){},onScroll:()=>!0}),L={position:null,version:pe};function be(n){function e(){Ce(h),ve(),G("onResized",h)}function a(r){return r.boxSizing!=="border-box"?0:(r.paddingTop?parseInt(r.paddingTop,10):0)+(r.paddingBottom?parseInt(r.paddingBottom,10):0)}function d(r){return r.boxSizing!=="border-box"?0:(r.borderTopWidth?parseInt(r.borderTopWidth,10):0)+(r.borderBottomWidth?parseInt(r.borderBottomWidth,10):0)}const t=r=>
23x.slice(x.indexOf(":")+7+r),s=(r,p)=>(g,m)=>{const u={};var b,N;b=function(){B(`Send ${r} (${g})`,`${r}:${p()}`,m)},u[N=m]||(b(),u[N]=requestAnimationFrame(()=>{u[N]=null}))},c=(r,p)=>()=>{let g=!1;const m=q=>()=>{i[D]?g&&g!==q||(r(q,D),g=q,requestAnimationFrame(()=>{g=!1})):T()},u=m("scroll"),b=m("resize window");function N(q,te){te(window,"scroll",u),te(window,"resize",b)}function T(){N(0,at),C.disconnect(),ee.disconnect()}const D=z,C=new ResizeObserver(m("page observed")),ee=new ResizeObserver(m("iframe observed"));N(0,se),C.observe(document.body,{attributes:!0,childList:!0,subtree:!0}),ee.observe(i[D].iframe,{attributes:!0,childList:!1,subtree:!1}),i[D]&&(i[D][`stop${p}`]=T)},f=r=>()=>{r in i[z]&&(i[z][r](),delete i[z][r])},y=s("pageInfo",function(){const r=document.body.getBoundingClientRect(),p=h.iframe.getBoundingClientRect(),{scrollY:g,scrollX:m,innerHeight:u,innerWidth:b}=window,{clientHeight:N,clientWidth:T}=document.documentElement;return JSON.stringify({iframeHeight:p.height,iframeWidth:p.width,clientHeight:Math.max(N,u||0),clientWidth:Math.max(T,b||0),offsetTop:parseInt(p.top-r.top,10),offsetLeft:parseInt(p.left-r.left,10),scrollTop:g,scrollLeft:m,documentHeight:N,documentWidth:T,windowHeight:u,windowWidth:b})}),j=s("parentInfo",function(){const{iframe:r}=h,{scrollWidth:p,scrollHeight:g}=document.documentElement,{width:m,height:u,offsetLeft:b,offsetTop:N,pageLeft:T,pageTop:D,scale:C}=window.visualViewport;return JSON.stringify({iframe:r.getBoundingClientRect(),document:{scrollWidth:p,scrollHeight:g},viewport:{width:m,height:u,offsetLeft:b,offsetTop:N,pageLeft:T,pageTop:D,scale:C}})}),P=c(y,"PageInfo"),A=c(j,"ParentInfo"),$=f("stopPageInfo"),k=f("stopParentInfo");function V(r){const p=r.getBoundingClientRect();return Pe(),{x:Number(p.left)+Number(L.position.x),y:Number(p.top)+Number(L.position.y)}}function v(r){const p=r?V(h.iframe):{x:0,y:0},g=((u,b)=>({x:u.width+b.x,y:u.height+b.y}))(h,p),m=window.parentIframe||window.parentIFrame;m?function(u,b){u["scrollTo"+(r?"Offset":"")](b.x,b.y)}(m,g):function(u){L.position=u,W(z)}(g)}function W(r){var u;const{x:p,y:g}=L.position,m=(u=i[r])==null?void 0:u.iframe;G("onScroll",{iframe:m,top:g,left:p,x:p,y:g})!==!1?ve():Ee()}function J(r){let p={};if(h.width===0&&h.height===0){const g=t(9).split(":");p={x:g[1],y:g[0]}}else p={x:h.width,y:h.height};G(r,{iframe:h.iframe,screenX:Number(p.x),screenY:Number(p.y),type:h.type})}const G=(r,p)=>de(z,r,p);let x=n.data,h={},z=null;x!=="[iFrameResizerChild]Ready"?ie===`${x}`.slice(0,ae)&&x.slice(ae).split(":")[0]in i&&(h=function(){var u;const r=x.slice(ae).split(":"),p=r[1]?Number(r[1]):0,g=(u=i[r[0]])==null?void 0:u.iframe,m=getComputedStyle(g);return{iframe:g,id:r[0],height:p+a(m)+d(m),width:Number(r[2]),type:r[3],msg:r[4]}}(),z=h.id,z?(function(r){if(!i[r])throw new Error(`${h.type} No settings for ${r}. Message was: ${x}`)}(z),h.type in{true:1,false:1,undefined:1}||(i[z].loaded=!0,(h.iframe!==null||(Y(z,`The iframe (${h.id}) was not found.`),0))&&function(){var m;const{origin:r,sameDomain:p}=n;if(p)return!0;let g=(m=i[z])==null?void 0:m.checkOrigin;if(g&&`${r}`!="null"&&!(g.constructor===Array?function(){let u=0,b=!1;for(;u<g.length;u++)if(g[u]===r){b=!0;break}return b}():function(){var b;const u=(b=i[z])==null?void 0:b.remoteHost;return r===u}()))throw new Error(`Unexpected message received from: ${r} for ${h.iframe.id}. Message was: ${n.data}. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.`);return!0}()&&function(){var g;switch((g=i[z])!=null&&g.firstRun&&i[z]&&(i[z].firstRun=!1),h.type){case"close":Te(h.iframe);break;case"message":p=t(6),G("onMessage",{iframe:h.iframe,message:JSON.parse(p)});break;case"mouseenter":J("onMouseEnter");break;case"mouseleave":J("onMouseLeave");break;case"autoResize":i[z].autoResize=JSON.parse(t(9));break;case"scrollBy":(function(){const m=h.width,u=h.height;(window.parentIframe||window).scrollBy(m,u)})();break;case"scrollTo":v(!1);break;case"scrollToOffset":v(!0);break;case"pageInfo":y("start",z),P();break;case"parentInfo":j("start",z),A();break;case"pageInfoStop":$();break;case"parentInfoStop":k();break;case"inPageLink":(function(m){const u=m.split("#")[1]||"",b=decodeURIComponent(u);let N=document.getElementById(b)||document.getElementsByName(b)[0];N?function(){const T=V(N);L.position={x:T.x,y:T.y},W(z),window.location.hash=u}():window.top!==window.self&&window.parentIFrame&&window.parentIFrame.moveToAnchor(u)})(t(9));break;case"title":(function(m,u){var b;(b=i[u])!=null&&b.syncTitle&&(i[u].iframe.title=m)})(h.msg,z);break;case"reset":ke(h);break;case"init":e(),function(m){var u,b,N;try{i[m].sameDomain=!!((N=(b=(u=i[m])==null?void 0:u.iframe)==null?void 0:b.contentWindow)!=null&&N.iframeChildListener)}catch{i[m].sameDomain=!1}}(z),(r=h.msg)!==pe&&(r!==void 0||_(z,`<rb>Legacy version detected in iframe</> 24 25Detected legacy version of child page script. It is recommended to update the page in the iframe to use <b>@iframe-resizer/child</>. 26 27See <u>https://iframe-resizer.com/setup/#child-page-setup</> for more details. 28`)),ue=!0,G("onReady",h.iframe);break;default:if(h.width===0&&h.height===0)return void Y(z,`Unsupported message received (${h.type}), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`);if(h.width===0||h.height===0||document.hidden)return;e()}var r,p}())):Y("","iframeResizer received messageData without id, message was: ",x)):Object.keys(i).forEac
28h(r=>{i[r].mode>=0&&B("iFrame requested init",Ie(r),r)})}function de(n,e,a){let d=null,t=null;if(i[n]){if(d=i[n][e],typeof d!="function")throw new TypeError(`${e} on iFrame[${n}] is not a function`);e==="onClose"||e==="onScroll"?t=d(a):setTimeout(()=>d(a))}return t}function Ne(n){const{id:e}=n;delete i[e]}function Te(n){const{id:e}=n;if(de(e,"onClose",e)!==!1){try{n.parentNode&&n.remove()}catch(a){Y(e,a)}de(e,"onClosed",e),Ne(n)}}function Pe(n){L.position===null&&(L.position={x:window.scrollX,y:window.scrollY})}function Ee(){L.position=null}function ve(n){L.position!==null&&(window.scrollTo(L.position.x,L.position.y),Ee())}function ke(n){Pe(n.id),Ce(n),B("reset","reset",n.id)}function Ce(n){function e(s){const c=`${n[s]}px`;n.iframe.style[s]=c}const{id:a}=n,{sizeHeight:d,sizeWidth:t}=i[a];d&&e("height"),t&&e("width")}function B(n,e,a,d){var t,s;i[a]&&((t=i[a])!=null&&t.postMessageTarget?function(){const{iframe:c,postMessageTarget:f,sameDomain:y,targetOrigin:j}=i[a];if(y)try{return void c.contentWindow.iframeChildListener(ie+e)}catch{}f.postMessage(ie+e,j)}():Y(a,`[${n}] IFrame(${a}) not found`),d&&((s=i[a])!=null&&s.warningTimeout)&&(i[a].msgTimeout=setTimeout(function(){if(i[a]===void 0)return;const{iframe:c,loaded:f,loadErrorShown:y,waitForLoad:j}=i[a],{sandbox:P}=c;f||y||(i[a].loadErrorShown=!0,_(a,` 29<rb>No response from iFrame</> 30 31The iframe (<i>${a}</>) has not responded within ${i[a].warningTimeout/1e3} seconds. Check <b>@iframe-resizer/child</> package has been loaded in the iframe. 32${j?` 33The <b>waitForLoad</> option is currently set to <i>'true'</>. If the iframe loads before the JavaScript runs, this option will prevent <i>iframe-resizer</> from initialising. To disable this, set the <b>waitForLoad</> option to <i>'false'</>. 34`:""} 35${!((P==null?void 0:P.length)>0)||P.contains("allow-scripts")&&P.contains("allow-same-origin")?"":"The iframe has the <b>sandbox</> attribute, please ensure it contains both the <i>'allow-same-origin'</> and <i>'allow-scripts'</> values."} 36 37This message can be ignored if everything is working, or you can set the <b>warningTimeout</> option to a higher value or zero to suppress this warning. 38`))},i[a].warningTimeout)))}function Ie(n){const e=i[n];return[n,"8",e.sizeWidth,e.log,"32",!0,e.autoResize,e.bodyMargin,e.heightCalculationMethod,e.bodyBackground,e.bodyPadding,e.tolerance,e.inPageLinks,"child",e.widthCalculationMethod,e.mouseEvents,e.offsetHeight,e.offsetWidth,e.sizeHeight,e.license,L.version,e.mode].join(":")}let we=0,ue=!1,xe=!1;const pt=n=>e=>{function a(s){if(!s)return{};if(typeof s!="object")throw new TypeError("Options is not an object");return("sizeWidth"in s||"sizeHeight"in s||"autoResize"in s)&&_(t,`<rb>Deprecated Option</> 39 40The <b>sizeWidth</>, <b>sizeHeight</> and <b>autoResize</> options have been replaced with new <b>direction</> option which expects values of <i>"vertical"</>, <i>"horizontal"</> or <i>"horizontal"</>. 41`),s}function d(s){var f,y;const c=(y=(f=i[s])==null?void 0:f.iframe)==null?void 0:y.title;return c===""||c===void 0}const t=function(s){if(s&&typeof s!="string")throw new TypeError("Invalid id for iFrame. Expected String");return s!==""&&s||(s=function(){let c=(n==null?void 0:n.id)||ge.id+we++;return document.getElementById(c)!==null&&(c+=we++),c}(),e.id=s,(n||{}).log),s}(e.id);return t in i&&"iFrameResizer"in e?Y(t,"Ignored iFrame, already setup."):(function(s){var c,f;i[t]={iframe:e,firstRun:!0,remoteHost:e==null?void 0:e.src.split("/").slice(0,3).join("/"),...ge,...a(s),mode:dt(s),syncTitle:d(t)},function(){const{direction:y}=i[t];if(y==="horizontal")return i[t].sizeWidth=!0,void(i[t].sizeHeight=!1);if(y==="none")return i[t].sizeWidth=!1,i[t].sizeHeight=!1,void(i[t].autoResize=!1);if(y!=="vertical")throw new TypeError(t,`Direction value of "${y}" is not valid`)}(),(c=(s==null?void 0:s.offsetSize)||(s==null?void 0:s.offset))&&(i[t].direction==="vertical"?i[t].offsetHeight=c:i[t].offsetWidth=c),s!=null&&s.offset&&_(t,`<rb>Deprecated option</> 42 43 The <b>offset</> option has been renamed to <b>offsetSize</>. Use of the old name will be removed in a future version of <i>iframe-resizer</>.`),i[t].postMessageTarget===null&&(i[t].postMessageTarget=e.contentWindow),i[t].targetOrigin=i[t].checkOrigin===!0?(f=i[t].remoteHost)===""||f.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":f:"*"}(n),function(){const{mode:s}=i[t];var c;s<0&&_("Parent",`${le(s+2)}${le(2)}`),xe||s<0||(xe=!0,c=`v${pe} (${(f=>re(ct[f]))(s)})`,console.info(`%c[iframe-resizer] ${c}`,"font-weight: bold;"),s<1&&_("Parent",le(3)))}(),ht(),function(){var s,c;switch(e.style.overflow=((s=i[t])==null?void 0:s.scrolling)===!1?"hidden":"auto",(c=i[t])==null?void 0:c.scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=i[t]?i[t].scrolling:"no"}}(),function(){const{bodyMargin:s}=i[t];typeof s!="number"&&s!=="0"||(i[t].bodyMargin=`${s}px`)}(),function(s){const{id:c}=e,{mode:f,waitForLoad:y}=i[c];f!==-1&&f!==-2&&(se(e,"load",function(){B("iFrame.onload",`${s}:${ue}`,c,!0),function(){var A,$;const j=(A=i[t])==null?void 0:A.firstRun,P=(($=i[t])==null?void 0:$.heightCalculationMethod)in rt;!j&&P&&ke({iframe:e,height:0,width:0,type:"init"})}()}),y===!1&&B("init",`${s}:${ue}`,c,!0))}(Ie(t)),function(){if(i[t]){const{iframe:s}=i[t],c={close:Te.bind(null,s),disconnect:Ne.bind(null,s),removeListeners(){_(t,` 44<rb>Deprecated Method Name</> 45 46The \x1B[removeListeners()</> method has been renamed to \x1B[disconnect()</>. 47`),this.disconnect()},resize:B.bind(null,"Window resize","resize",t),moveToAnchor(f){B("Move to anchor",`moveToAnchor:${f}`,t)},sendMessage(f){B("Send Message",`message:${f=JSON.stringify(f)}`,t)}};s.iframeResizer=c,s.iFrameResizer=c}}()),e==null?void 0:e.iFrameResizer};function mt(){document.hidden===!1&&function(n,e){const a=d=>{var t,s;return((t=i[d])==null?void 0:t.autoResize)&&!((s=i[d])!=null&&s.firstRun)};
47Object.keys(i).forEach(function(d){a(d)&&B(n,e,d)})}("Tab Visible","resize")}const ht=(n=>{let e=!1;return function(){return e?void 0:(e=!0,Reflect.apply(n,this,arguments))}})(()=>{se(window,"message",be),se(document,"visibilitychange",mt),window.iframeParentListener=n=>setTimeout(()=>be({data:n,sameDomain:!0}))});/*! 48 * @preserve 49 * 50 * @module iframe-resizer/react 5.3.1 (esm) - 2024-09-12 51 * 52 * @license GPL-3.0 for non-commercial use only. 53 * For commercial use, you must purchase a license from 54 * https://iframe-resizer.com/pricing 55 * 56 * @description Keep same and cross domain iFrames sized to their content 57 * 58 * @author David J. Bradshaw <[email protected]> 59 * 60 * @see {@link https://iframe-resizer.com} 61 * 62 * @copyright (c) 2013 - 2024, David J. Bradshaw. All rights reserved. 63 */const ft=n=>{const{license:e,bodyBackground:a,bodyMargin:d,bodyPadding:t,checkOrigin:s,direction:c,inPageLinks:f,log:y,offset:j,offsetHeight:P,offsetWidth:A,scrolling:$,tolerance:k,warningTimeout:V,waitForLoad:v,onClosed:W,onReady:J,onMessage:G,onResized:x,...h}=n;return h};function ze(n){const{forwardRef:e,...a}=n,d=ft(a),t=w.useRef(null),s=()=>{var c;return console.warn(`[iframe-resizer/react][${(c=t==null?void 0:t.current)==null?void 0:c.id}] Close event ignored, to remove the iframe update your React component.`),!1};return w.useEffect(()=>{const c=t.current,f=pt({...a,onClose:s})(c);return()=>f==null?void 0:f.disconnect()},[]),w.useImperativeHandle(e,()=>({getRef:()=>t,getElement:()=>t.current,resize:()=>t.current.iframeResizer.resize(),moveToAnchor:c=>t.current.iframeResizer.moveToAnchor(c),sendMessage:(c,f)=>{t.current.iframeResizer.sendMessage(c,f)}})),et.createElement("iframe",nt({},d,{ref:t}))}const yt=[{value:"United States",label:"United States"},{value:"Canada",label:"Canada"},{value:"United Kingdom",label:"United Kingdom"},{value:"Spain",label:"Spain"},{value:"France",label:"France"},{value:"Australia",label:"Australia"},{value:"Italy",label:"Italy"},{value:"Austria",label:"Austria"},{value:"Other",label:"Other"}],gt=[{value:"1-7 (Solo/Small Group)",label:"1-7 (Solo/Small Group)"},{value:"8-20 (Emerging Group)",label:"8-20 (Emerging Group)"},{value:"21+ (Large Group/DSO)",label:"21+ (Large Group/DSO)"}],bt=[{value:"General Dentistry",label:"General Dentistry"},{value:"Periodontics",label:"Periodontics"},{value:"Orthodontics",label:"Orthodontics"},{value:"Endodontics",label:"Endodontics"},{value:"Oral and Maxillofacial Surgery",label:"Oral and Maxillofacial Surgery"}],Se=[{pmsName:"None",practiceType:"Any",competitor:!1},{pmsName:"Dentrix",practiceType:"General Dentistry",competitor:!1},{pmsName:"Dentrix Ascend",practiceType:"General Dentistry",competitor:!1},{pmsName:"Dentrix Enterprise",practiceType:"General Dentistry",competitor:!1},{pmsName:"Dentally",practiceType:"General Dentistry",competitor:!1},{pmsName:"Power Practice",practiceType:"General Dentistry",competitor:!1},{pmsName:"Eaglesoft",practiceType:"General Dentistry",competitor:!0},{pmsName:"Denticon",practiceType:"General Dentistry",competitor:!0},{pmsName:"OpenDental",practiceType:"General Dentistry",competitor:!0},{pmsName:"Curve",practiceType:"General Dentistry",competitor:!0},{pmsName:"PerioVision",practiceType:"Periodontics",competitor:!1},{pmsName:"OMSVision",practiceType:"Oral and Maxillofacial Surgery",competitor:!1},{pmsName:"Ortho2 Edge Cloud",practiceType:"Orthodontics",competitor:!1},{pmsName:"PBS Endo",practiceType:"Endodontics",competitor:!1},{pmsName:"EndoVision",practiceType:"Endodontics",competitor:!1},{pmsName:"Other",practiceType:"Any",competitor:!0}],vt=[{goal:"Increase Production",locations:["Any"],pms:["Any"]},{goal:"Reduce Insurance Headaches",locations:["Any"],pms:["None","Dentrix","Dentrix Enterprise","PBS Endo","EndoVision","Ortho2 Edge Cloud","PerioVision","OMSVision","Eaglesoft","Denticon","OpenDental","Curve","Other"]},{goal:"Get Paid Faster",locations:["Any"],pms:["Dentrix","Dentrix Enterprise","PBS Endo","EndoVision","Ortho2 Edge Cloud","PerioVision","OMSVision"]},{goal:"Improve Office Efficiency",locations:["Any"],pms:["Any"]},{goal:"Attract & Retain Staff",locations:["Any"],pms:["None","Dentrix","Dentrix Ascend","Eaglesoft","Denticon","OpenDental","Curve","Other"]},{goal:"Improve Care",locations:["Any"],pms:["None","Dentrix","Dentrix Ascend","Eaglesoft","Denticon","OpenDental","Curve","Other"]},{goal:"Position for Growth",locations:["8-20 (Emerging Group)","21+ (Large Group/DSO)"],pms:["Any"]}],wt=[{id:2,suite:"Digital Presence Suite",goals:["Increase Production"],goalException:[],locations:["Any"],practiceTypes:["Any"],pms:["Any"],pmsException:[]},{id:3,suite:"Profitability Insights Suite",goals:["Increase Production","Improve Office Efficiency"],goalException:[],locations:["Any"],practiceTypes:["Any"],pms:["Any"],pmsException:[]},{id:5,suite:"Clinical Technology Suite",goals:["Increase Production","Attract & Retain Staff","Improve Care"],goalException:[],locations:["Any"],practiceTypes:["General Dentistry"],pms:["Dentrix","Dentrix Ascend"],pmsException:[]},{id:6,suite:"Eligibility and Claims Processing Suite",goals:["Reduce Insurance Headaches","Get Paid Faster"],goalException:["Get Paid Faster"],locations:["Any"],practiceTypes:["Any"],pms:["Dentrix","Dentrix Enterprise","EndoVision","PBS Endo","Ortho2 Edge Cloud","PerioVision","OMSVision","Eaglesoft","Denticon","OpenDental","Curve","Other"],pmsException:["De
63ntrix"]},{id:7,suite:"Billing and Payments Suite",goals:["Get Paid Faster"],goalException:[],locations:["Any"],practiceTypes:["Any"],pms:["Dentrix"],pmsException:[]},{id:8,suite:"TechCentral IT Support",goals:["Attract & Retain Staff","Improve Office Efficiency"],goalException:[],locations:["Any"],practiceTypes:["Any"],pms:["Any"],pmsException:[]},{id:9,suite:"Dental Practice Consulting",goals:["Position for Growth"],goalException:[],locations:["8-20 (Emerging Group)","21+ (Large Group/DSO)"],practiceTypes:["Any"],pms:["Any"],pmsException:[]},{id:10,suite:"Practice Growth Suite",goals:["Increase Production","Position for Growth"],goalException:[],locations:["Any"],practiceTypes:["Any"],pms:["None","Dentrix Ascend","Dentrix Enterprise","EndoVision","PBSEndo","Ortho2 Edge Cloud","PerioVision","OMSVision","Eaglesoft","Denticon","OpenDental","Curve","Other"],pmsException:[]},{id:12,suite:"Lighthouse 360",goals:["Improve Office Efficiency"],goalException:[],locations:["Any"],practiceTypes:["Endodontics","Orthodontics","Periodontics","Oral and Maxillofacial Surgery"],pms:["EndoVision","PBSEndo","Ortho2 Edge Cloud","PerioVision","OMSVision"],pmsException:[]}],xt=[{id:1,recoPms:"Dentrix Ascend",practiceType:"General Dentistry"},{id:2,recoPms:"PBS Endo",practiceType:"Endodontics"},{id:3,recoPms:"Ortho2 Edge Cloud",practiceType:"Orthodontics"},{id:4,recoPms:"PerioVision",practiceType:"Periodontics"},{id:5,recoPms:"OMSVision",practiceType:"Oral and Maxillofacial Surgery"}],Q=n=>{const{label:e,placeholder:a,items:d,styleClasses:t,onChange:s,appSelectedItem:c}=n,{isOpen:f,selectedItem:y,getToggleButtonProps:j,getLabelProps:P,getMenuProps:A,highlightedIndex:$,getItemProps:k,toggleMenu:V}=it({initialSelectedItem:c,items:d,onSelectedItemChange:v=>{s&&v.selectedItem!==void 0&&s(v.selectedItem)}});return o.jsxs("div",{className:t,children:[o.jsx("label",{...P(),children:e}),o.jsxs("button",{type:"button",className:"dropdown-select__toggle",onClick:V,"aria-expanded":f,...j({"aria-label":y==null?void 0:y.label}),children:[(y==null?void 0:y.label)??a,o.jsx(st,{iconName:"chevron-down",className:"icon icon--chevron-down"})]}),o.jsx("div",{className:"dropdown-select__dropdown--wrapper",children:o.jsx("ul",{...A(),className:he("dropdown-select__dropdown",{"dropdown-open":f}),tabIndex:"0",children:f&&(d==null?void 0:d.map((v,W)=>o.jsxs("li",{className:he("dropdown__item",{"dropdown__item--active":$===W,"dropdown__item--selected":(y==null?void 0:y.value)===(v==null?void 0:v.value)}),...k({index:W,item:v}),tabIndex:"0",children:[(y==null?void 0:y.value)===(v==null?void 0:v.value)&&o.jsx("svg",{focusable:"false",className:"icon-check","aria-hidden":"true",children:o.jsx("use",{xlinkHref:"/assets/img/svg-sprite.svg#check"})}),v==null?void 0:v.label]},W)))})})]})},zt=n=>{const{activeItem:e,totalItems:a}=n;return o.jsx("ul",{className:"stepper",children:Array.from(Array(a)).map((d,t)=>o.jsxs("li",{className:t+1<=e?"active":"",children:[t+1,o.jsx("span",{className:"pill"})]},t))})},St={nonUsRedirectPath:H.string.isRequired,pardotBasePath:H.string,marketoBasePath:H.string,resultsPageBasePath:H.string.isRequired,iframeResizerLicenseKey:H.string.isRequired,useMarketo:H.bool.isRequired,marketoOrgId:H.string,marketoFormId:H.string},Ae=n=>{const{nonUsRedirectPath:e,pardotBasePath:a,marketoBasePath:d="/Byos/ByosForm",resultsPageBasePath:t,iframeResizerLicenseKey:s,useMarketo:c,marketoOrgId:f="937-ZEL-365",marketoFormId:y}=n,[j,P]=w.useState(0),[A,$]=w.useState(""),[k,V]=w.useState(""),[v,W]=w.useState(""),[J,G]=w.useState([]),[x,h]=w.useState(""),[z,r]=w.useState(!1),[p,g]=w.useState(""),[m,u]=w.useState(!1),[b,N]=w.useState([]),[T,D]=w.useState(!0),[C,ee]=w.useState(""),[q,te]=w.useState([]),[oe,Oe]=w.useState(0),[Le,Me]=w.useState(),[Re,De]=w.useState(),[Fe,$e]=w.useState(),[We,Be]=w.useState(),[Ge,He]=w.useState(),[_e,Ve]=w.useState(""),qe=w.useRef(6),M=w.useRef(null);w.useEffect(()=>{const l=window.location.host;l&&Ve(l)},[]),w.useEffect(()=>{v!==""&&G(Ye(v))},[v]),w.useEffect(()=>{r(x==="Other"),x!==""&&u(Ue(x)),x!==""&&k!==""&&N(Je(k,x))},[x,k]),w.useEffect(()=>{C!==""&&k!==""&&v!==""&&x!==""&&te(Ze(C,k,v,x))},[C,k,v,x]),w.useEffect(()=>{Oe(Ke(v,m,x,T))},[v,m,x,T]);const Z=(l,O,R,E)=>{l!==""?(O(l==null?void 0:l.value),R({value:l==null?void 0:l.value,label:l==null?void 0:l.label})):(O(E),R({value:l==null?void 0:l.value,label:l==null?void 0:l.label}))},Ue=l=>Se.map(E=>
63E.pmsName===l&&E.competitor===!0).filter(E=>E!==!1).includes(!0),Ye=l=>Se.map(I=>(I.practiceType===l||I.practiceType==="Any")&&I.pmsName).filter(I=>I!==!1).map(I=>({value:I,label:I})),Je=(l,O)=>vt.map(S=>(S.locations.includes(l)||S.locations.includes("Any"))&&(S.pms.includes(O)||S.pms.includes("Any"))&&S.goal).filter(S=>S!==!1).map(S=>({value:S,label:S})),Ze=(l,O,R,E)=>wt.map(S=>S.goals.includes(l)&&!(S.goalException.includes(l)&&S.pmsException.includes(E))&&(S.locations.includes(O)||S.locations.includes("Any"))&&(S.practiceTypes.includes(R)||S.practiceTypes.includes("Any"))&&(S.pms.includes(E)||S.pms.includes("Any"))&&S.id).filter(S=>S!==!1),Ke=(l,O,R,E)=>{if((O||R==="None")&&E){const S=xt.map(ne=>ne.practiceType===l&&ne.id).filter(ne=>ne!==!1);return S.length>0?S[0]:0}},K=()=>P(l=>l+=1),X=()=>P(l=>l>0?l-=1:l=0),F=l=>{l.scrollIntoView()},me=q.length>0?q.join(","):[],Xe=a+"?numLocations="+k+"&topgoal="+(C!==""?C.toLowerCase().replace(/\s+/g,"-"):"")+"&Specialty="+v+"&Current_PM_Software="+x+(x==="Other"?(p!==""?"-":"")+p.replace(/\W/gi," ").toLowerCase().replace(/\s+/g,"-"):"")+"&redirect_url="+t+"?results=[["+me+"]"+(oe!==void 0?",["+oe+"]":",[]")+"]",Qe="https://"+_e+d+"?org_id="+f+"&form_id="+y+"&numLocations="+k+"&topgoal="+(C!==""?C.toLowerCase().replace(/\s+/g,"-"):"")+"&Specialty="+v+"&Current_PM_Software="+x+(x==="Other"?(p!==""?"-":"")+p.replace(/\W/gi," ").toLowerCase().replace(/\s+/g,"-"):"")+"&redirect_url="+t+"?results=[["+me+"]"+(oe!==void 0?",["+oe+"]":",[]")+"]",U=(l,O,R,E,I)=>window.dataLayer.push({event:"byo_solution_step_complete",step_number:l,step_question:O,step_selection:R,step_question_2:E!==void 0?E:"none",step_selection_2:I!==void 0?I:"none"});return o.jsxs("div",{className:"build-your-own-solution theme-light-blue",ref:M,children:[o.jsx(zt,{activeItem:j+1,totalItems:qe.current}),o.jsxs("form",{method:"post",className:"form",children:[j===0&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"question-block",children:[o.jsx("h2",{className:"h3 title",children:"Where is your practice?"}),o.jsx(Q,{label:"Practice Location",placeholder:"Select one",items:yt,styleClasses:"byos-dropdown",onChange:l=>Z(l,$,Me,""),appSelectedItem:Le})]}),o.jsx("div",{className:"button-wrapper single-button--end",children:A!==""?o.jsx(o.Fragment,{children:A!=="United States"?o.jsx("button",{type:"button",className:"button button-primary",onClick:()=>{location.href=e,U(j+1,"Where is your practice?",A)},children:"Next"}):o.jsx("button",{type:"button",onClick:()=>{K(),F(M.current),U(j+1,"Where is your practice?",A)},className:"button button-primary",children:"Next"})}):o.jsx("button",{type:"button",className:"button button-primary",disabled:!0,children:"Next"})})]}),j===1&&A==="United States"&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"question-block",children:[o.jsx("h2",{className:"h3 title",children:"How many locations are there in your practice?"}),o.jsx(Q,{label:"Total Locations",placeholder:"Select one",items:gt,styleClasses:"byos-dropdown",onChange:l=>Z(l,V,De,""),appSelectedItem:Re})]}),o.jsxs("div",{className:"button-wrapper",children:[o.jsxs("button",{type:"button",onClick:()=>{X(),F(M.current)},className:"link link-primary",children:["<"," Back"]}),k!==""?o.jsx("button",{type:"button",onClick:()=>{K(),F(M.current),U(j+1,"How many locations are there in your practice?",k)},className:"button button-primary",children:"Next"}):o.jsx("button",{type:"button",disabled:!0,className:"button button-primary",children:"Next"})]})]}),j===2&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"question-block",children:[o.jsx("h2",{className:"h3 title",children:"What type of dentistry do you provide?"}),o.jsx(Q,{label:"Type of Dentistry",placeholder:"Select one",items:bt,styleClasses:"byos-dropdown",onChange:l=>Z(l,W,$e,""),appSelectedItem:Fe})]}),o.jsxs("div",{className:"button-wrapper",children:[o.jsxs("button",{type:"button",onClick:()=>{X(),F(M.current)},className:"link link-primary",children:["<"," Back"]}),v!==""?o.jsx("button",{type:"button",onClick:()=>{K(),F(M.current),U(j+1,"What type of dentistry do you provide?",v)},className:"button button-primary",children:"Next"}):o.jsx("button",{type:"button",className:"button button-primary",disabled:!0,children:"Next"})]})]}),j===3&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"question-block",children:[o.jsx("h2",{className:"h3 title",children:"What practice management system do currently use?"}),o.jsx(Q,{label:"Select your system",placeholder:"Select one",items:J,styleClasses:"byos-dropdown",onChange:l=>Z(l,h,Be,""),appSelectedItem:We}),z&&o.jsxs("label",{className:"label-with-text ui-label-s",children:[o.jsx("span",{children:"Enter your PMS Name"}),o.jsx("input",{value:p,type:"text",name:"customPmsName",onChange:l=>g(l.target.value)})]}),m&&o.jsxs("fieldset",{className:"subsequent-question",children:[o.jsx("legend",{className:"h3 title",children:"Are you open to new Practice Management Software?"}),o.jsxs("div",{className:"radio-buttons-wrapper",children:[o.jsxs("label",{className:"form-control",children:[o.jsx("input",{type:"radio",name:"open-to-new-software",value:!0,onChange:l=>D(l.target.value.toLowerCase()==="true"),checked:T===!0}),o.jsx("div",{className:"custom",children:"Yes"})]}),o.jsxs("label",{className:"form-control",children:[o.jsx("input",{type:"radio",name:"open-to-new-software",value:!1,onChange:l=>D(l.target.value.toLowerCase()==="true"),checked:T===!1}),o.jsx("div",{className:"custom",children:"No"})]})]})]})]}),o.jsxs("div",{className:"button-wrapper",children:[o.jsxs("button",{type:"button",onClick:()=>{X(),F(M.current)},className:"link link-primary",children:["<"," Back"]}),x!==""?o.jsx("button",{type:"button",onClick:()=>{K(),F(M.current),U(j+1,"What practice management system do currently use?",x==="Other"?x+(p!==""?": "+p:""):x,m?"Are you open to new Practice Management Software?":"none",T?"Yes":"No")},className:"button button-primary",children:"Next"}):o.jsx("button",{type:"button",className:"button button-primary",disabled:!0,children:"Next"})]})]}),j===4&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"question-block",children:[o.jsx("h2",{className:"h3 title",children:"What is your top business goal?"}),o.jsx(Q,{label:"Select your top priority goal.",placeholder:"Select one",items:b,styleClasses:"byos-dropdown",onChange:l=>Z(l,ee,He,""),appSelectedItem:Ge})]}),o.jsxs("div",{className:"button-wrapper",children:[o.jsxs("button",{type:"button",onClick:()=>{X(),F(M.current)},className:"link link-primary",children:["<"," Back"]}),C!==""?o.jsx("button",{type:"button",onClick:()=>{K(),F(M.current),U(j+1,"What is your top business goal?",C,m?"Are you open to new Practice Management Software?":"none",T?"Yes":"No")},className:"button button-primary",children:"Next"}):o.jsx("button",{type:"submit",className:"button button-primary",disabled:!0,children:"Next"})]})]}),j===5&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"question-block",children:[o.jsx("h2",{className:"h3 title",children:"One more step and you're done!"}),o.jsx("p",{className:"subtitle-2",children:"Please provide your contact information so a solution expert can review your goals and recommendations with you."}
63),c?o.jsx(ze,{className:"iframe--pardot-form",license:s,src:Qe,style:{width:"100%",height:"100vh"},waitForLoad:!0}):o.jsx(ze,{className:"iframe--pardot-form",license:s,src:Xe,style:{width:"100%",height:"100vh"},waitForLoad:!0})]}),o.jsx("div",{className:"button-wrapper",children:o.jsxs("button",{type:"button",onClick:()=>{X(),F(M.current)},className:"link link-primary",children:["<"," Back"]})})]})]})]})};Ae.propTypes=St;let ce=null;const Ct=n=>{ce=tt(ce,n),ce.render(o.jsx(Ae,{...ot(n.dataset).model}))};export{Ct as default};
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.