1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2191],{1935:(e,t,r)=>{r.d(t,{Ao:()=>a,eC:()=>d,xT:()=>l});var n=r(91167),s=r(45159),i=r(62715),o=r(74335);function l(){var e=(0,i.GV)(function(e){return e.page.hasTakeoverAd}),t=(0,n._)((0,s.useState)(),2),r=t[0],o=t[1],l=(0,s.useCallback)(function(e){o(e)},[o]),a=(0,n._)((0,s.useState)(!1),2),d=a[0],u=a[1];return(0,s.useEffect)(function(){if(r&&window.IntersectionObserver&&!e){var t=new IntersectionObserver(function(e){var t=(0,n._)(e,1)[0];u(window.innerHeight>r.getBoundingClientRect().top&&!t.isIntersecting)},{root:null,rootMargin:"0px",threshold:1e-5});return t.observe(r),function(){t.disconnect()}}},[r,e]),[l,d]}function a(){var e=(0,s.useContext)(o.A).forcedStyle;return"object"==typeof e?e:e?{mobile:e,wide:e}:void 0}function d(){var e=(0,n._)((0,s.useState)(null),2),t=e[0],r=e[1];return(0,s.useEffect)(function(){r("1"===new URLSearchParams(window.location.search).get("force_external"))},[]),t}},14606:(e,t,r)=>{r.d(t,{_:()=>C,e:()=>j});var n,s=r(76367),i=r(30694),o=r(22514),l=r(91167),a=r(98952),d=r(45159),u=r(3976),c=r(36667),f=r(23912),m=r(35409),h=r(90722),v=r(38659),p=r(14695),g=r(86645),x=r(27579),E=r(54429),_=r(84465),b=r(82728);function N(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:y)!==d.Fragment||1===d.Children.count(e.children)}var S=(0,d.createContext)(null);S.displayName="TransitionContext";var O=((n=O||{}).Visible="visible",n.Hidden="hidden",n),w=(0,d.createContext)(null);function A(e){return"children"in e?A(e.children):e.current.filter(function(e){return null!==e.el.current}).filter(function(e){return"visible"===e.state}).length>0}function I(e,t){var r=(0,h.Y)(e),n=(0,d.useRef)([]),s=(0,f.a)(),i=(0,u.L)(),o=(0,c._)(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.mK.Hidden,o=n.current.findIndex(function(t){return t.el===e});-1!==o&&((0,_.Y)(t,{[b.mK.Unmount](){n.current.splice(o,1)},[b.mK.Hidden](){n.current[o].state="hidden"}}),i.microTask(function(){var e;!A(n)&&s.current&&(null==(e=r.current)||e.call(r))}))}),a=(0,c._)(function(e){var t=n.current.find(function(t){return t.el===e});return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),function(){return o(e,b.mK.Unmount)}}),m=(0,d.useRef)([]),v=(0,d.useRef)(Promise.resolve()),p=(0,d.useRef)({enter:[],leave:[]}),g=(0,c._)(function(e,r,n){m.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(function(t){return(0,l._)(t,1)[0]!==e})),null==t||t.chains.current[r].push([e,new Promise(function(e){m.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(function(e){Promise.all(p.current[r].map(function(e){var t=(0,l._)(e,2);return t[0],t[1]})).then(function(){return e()})}
1)]),"enter"===r?v.current=v.current.then(function(){return null==t?void 0:t.wait.current}).then(function(){return n(r)}):n(r)}),x=(0,c._)(function(e,t,r){Promise.all(p.current[t].splice(0).map(function(e){var t=(0,l._)(e,2);return t[0],t[1]})).then(function(){var e;null==(e=m.current.shift())||e()}).then(function(){return r(t)})});return(0,d.useMemo)(function(){return{children:n,register:a,unregister:o,onStart:g,onStop:x,wait:v,chains:p}},[a,o,n,g,x,p,v])}w.displayName="NestingContext";var y=d.Fragment,R=b.Ac.RenderStrategy,L=(0,b.FX)(function(e,t){var r=e.show,n=e.appear,u=void 0!==n&&n,f=e.unmount,h=(0,o._)(e,["show","appear","unmount"]),g=(0,d.useRef)(null),E=N(e),_=p.P.apply(void 0,(0,a._)(E?[g,t]:null===t?[]:[t]));(0,v.g)();var O=(0,x.O_)();if(void 0===r&&null!==O&&(r=(O&x.Uw.Open)===x.Uw.Open),void 0===r)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");var y=(0,l._)((0,d.useState)(r?"visible":"hidden"),2),L=y[0],C=y[1],j=I(function(){r||C("hidden")}),B=(0,l._)((0,d.useState)(!0),2),D=B[0],P=B[1],k=(0,d.useRef)([r]);(0,m.s)(function(){!1!==D&&k.current[k.current.length-1]!==r&&(k.current.push(r),P(!1))},[k,r]);var U=(0,d.useMemo)(function(){return{show:r,appear:u,initial:D}},[r,u,D]);(0,m.s)(function(){r?C("visible"):A(j)||null===g.current||C("hidden")},[r,j]);var F={unmount:void 0===f||f},Y=(0,c._)(function(){var t;D&&P(!1),null==(t=e.beforeEnter)||t.call(e)}),V=(0,c._)(function(){var t;D&&P(!1),null==(t=e.beforeLeave)||t.call(e)}),M=(0,b.Ci)();return d.createElement(w.Provider,{value:j},d.createElement(S.Provider,{value:U},M({ourProps:(0,i._)((0,s._)({},F),{as:d.Fragment,children:d.createElement(T,(0,i._)((0,s._)({ref:_},F,h),{beforeEnter:Y,beforeLeave:V}))}),theirProps:{},defaultTag:d.Fragment,features:R,visible:"visible"===L,name:"Transition"})))}),T=(0,b.FX)(function(e,t){var r,n,i=e.transition,u=void 0===i||i,f=e.beforeEnter,h=e.afterEnter,O=e.beforeLeave,L=e.afterLeave,T=e.enter,C=e.enterFrom,j=e.enterTo,B=e.entered,D=e.leave,P=e.leaveFrom,k=e.leaveTo,U=(0,o._)(e,["transition","beforeEnter","afterEnter","beforeLeave","afterLeave","enter","enterFrom","enterTo","entered","leave","leaveFrom","leaveTo"]),F=(0,l._)((0,d.useState)(null),2),Y=F[0],V=F[1],M=(0,d.useRef)(null),H=N(e),G=p.P.apply(void 0,(0,a._)(H?[M,t,V]:null===t?[]:[t])),q=null==(r=U.unmount)||r?b.mK.Unmount:b.mK.Hidden,W=function(){var e=(0,d.useContext)(S);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),z=W.show,K=W.appear,Q=W.initial,Z=(0,l._)((0,d.useState)(z?"visible":"hidden"),2),X=Z[0],$=Z[1],J=function(){var e=(0,d.useContext)(w);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),ee=J.register,et=J.unregister;(0,m.s)(function(){return ee(M)},[ee,M]),(0,m.s)(function(){if(q===b.mK.Hidden&&M.current)return z&&"visible"!==X?void $("visible"):(0,_.Y)(X,{hidden:function(){return et(M)},visible:function(){return ee(M)}})},[X,M,ee,et,z,q]);var er=(0,v.g)();(0,m.s)(function(){if(H&&er&&"visible"===X&&null===M.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[M,X,er,H]);var en=Q&&!K,es=K&&z&&Q,ei=(0,d.useRef)(!1),eo=I(function(){ei.current||($("hidden"),et(M))},J),el=(0,c._)(function(e){ei.current=!0,eo.onStart(M,e?"enter":"leave",function(e){"enter"===e?null==f||f():"leave"===e&&(null==O||O())})}),ea=(0,c._)(function(e){var t=e?"enter":"leave";ei.current=!1,eo.onStop(M,t,function(e){"enter"===e?null==h||h():"leave"===e&&(null==L||L())}),"leave"!==t||A(eo)||($("hidden"),et(M))});(0,d.useEffect)(function(){H&&u||(el(z),ea(z))},[z,H,u]);var ed=!(!u||!H||!er||en),eu=(0,l._)((0,g.p)(ed,Y,z,{start:el,end:ea}),2)[1],ec=(0,b.oE)((0,s._)({ref:G,className:(null==(n=(0,E.x)(U.className,es&&T,es&&C,eu.enter&&T,eu.enter&&eu.closed&&C,eu.enter&&!eu.closed&&j,eu.leave&&D,eu.leave&&!eu.closed&&P,eu.leave&&eu.closed&&k,!eu.transition&&z&&B))?void 0:n.trim())||void 0},(0,g.B)(eu))),ef=0;"visible"===X&&(ef|=x.Uw.Open),"hidden"===X&&(ef|=x.Uw.Closed),eu.enter&&(ef|=x.Uw.Opening),eu.leave&&(ef|=x.Uw.Closing);var em=(0,b.Ci)();return d.createElement(w.Provider,{value:eo},d.createElement(x.El,{value:ef},em({ourProps:ec,theirProps:U,defaultTag:y,features:R,visible:"visible"===X,name:"Transition.Child"})))}),C=(0,b.FX)(function(e,t){var r=null!==(0,d.useContext)(S),n=null!==(0,x.O_)();return d.createElement(d.Fragment,null,!r&&n?d.createElement(L,(0,s._)({ref:t},e)):d.createElement(T,(0,s._)({ref:t},e)))}),j=Object.assign(L,{Child:C,Root:L})},23912:(e,t,r)=>{r.d(t,{a:()=>i});var n=r(45159),s=r(35409);function i(){var e=(0,n.useRef)(!1);return(0,s.s)(function(){return e.current=!0,function(){e.current=!1}},[]),e}},39361:(e,t,r)=>{r.r(t),r.d(t,{CompleteProfileTemplate:()=>q,default:()=>W});var n,s=r(76367),i=r(30694),o=r(91167),l=r(60143),a=r(14606),d=r(45159),u=r(95345),c=r(62715),f=r(70044),m=r(80293),h=r(59533),v=r(64095),p=r(54504),g=r(85406),x=r
1(49303),E=r(29722),_=r(68919),b=r(622),N=r(62129);function S(e){var t=e.children,r=e.className,n=e.containerClassName,s=(0,o._)((0,d.useState)(!1),2),i=s[0],a=s[1],u=(0,p.QK)()===N.bq.MOBILE;return(0,l.jsxs)("div",{className:"relative inline-block",children:[(0,l.jsx)("button",{"aria-controls":"tooltip-content","aria-expanded":i,"aria-haspopup":"dialog","aria-label":"Information Tooltip Button",className:"cursor-pointer",onClick:function(){return a(!i)},onMouseEnter:function(){return!u&&a(!0)},onMouseLeave:function(){return!u&&a(!1)},type:"button",children:(0,l.jsx)("svg",{fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",children:(0,l.jsx)("path",{d:"M9.83333 12.3333H9V9H8.16667M9 5.66667H9.00833M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9Z",stroke:"#9CA3AF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}),i&&(0,l.jsxs)("div",{className:(0,b.QP)("absolute left-1/2 top-full z-40 flex -translate-x-1/2",n),children:[(0,l.jsx)("div",{className:(0,E.A)("mt-2 min-h-fit cursor-pointer list-inside list-disc flex-col gap-y-1 rounded border border-gray-300 bg-white py-3 pl-4 pr-5 text-xs text-gray-600 shadow-md",r),id:"tooltip-content",children:t}),(0,l.jsx)("div",{className:"absolute left-1/2 top-1 z-50 -ml-1 size-2 rotate-45 border-l border-t border-gray-300 bg-white"})]})]})}var O=r(63233),w={ba_zip:v.dO.DELIVERY_POSTCODE,billing_address:v.dO.BILLING_ADDRESS,billing_postcode:v.dO.BILLING_POSTCODE,billing_state:v.dO.BILLING_STATE,billing_suburb:v.dO.BILLING_SUBURB,"contact-number":v.dO.CONTACT_NUMBER,postcode:v.dO.DELIVERY_POSTCODE,send_address:v.dO.DELIVERY_ADDRESS,send_postcode:v.dO.DELIVERY_POSTCODE,send_state:v.dO.DELIVERY_STATE,send_suburb:v.dO.DELIVERY_SUBURB};function A(e){var t=e.checkboxClassName,r=e.checked,n=e.customText,s=e.labelClassName,i=e.setField,o=e.text;return(0,l.jsxs)("label",{className:(0,b.QP)("flex cursor-pointer select-none flex-row gap-x-2 text-sm leading-5 text-gray-800",s),htmlFor:o,children:[(0,l.jsx)("input",{checked:r,className:(0,b.QP)("m-0 mt-0.5 size-4.5 cursor-pointer appearance-none rounded border-2 border-black/25 bg-white checked:border-0 checked:bg-green-600 checked:text-green-600",t),id:o,name:o,onChange:function(e){i(e.currentTarget.checked)},type:"checkbox"}),null!=n?n:o]})}function I(e){var t=e.disabled,r=e.errors,n=e.fieldName,s=e.fields,i=e.maxlength,a=e.name,u=e.ref,c=e.setErrors,f=e.setField,m=e.show,h=void 0===m||m,v=e.skeleton,p=e.type,g=s[n],x=r.filter(function(e){return e.field===n}),_=(0,o._)((0,d.useState)(!1),2),b=_[0],N=_[1],S=null!=p?p:"text";return"password"===p&&b&&(S="text"),(0,l.jsxs)("div",{className:(0,E.A)({hidden:!h&&!v,"pointer-events-none select-none":!h}),children:[(0,l.jsxs)("div",{className:"relative inline-block text-sm font-semibold leading-3",children:[v&&!h&&(0,l.jsx)("div",{className:"absolute size-full bg-white",children:(0,l.jsx)("div",{className:"size-full animate-pulse bg-gray-300"})}),(0,l.jsx)("span",{className:(0,E.A)({"opacity-0":!h}),children:a})]}),(0,l.jsxs)("div",{className:"relative mt-2",children:[v&&!h&&(0,l.jsx)("div",{className:"absolute size-full bg-white",children:(0,l.jsx)("div",{className:"size-full animate-pulse bg-gray-300"})}),t?(0,l.jsx)("input",{className:(0,E.A)("w-full text-ellipsis rounded border border-gray-400 py-3 pl-5 text-sm leading-4 placeholder:leading-4 placeholder:text-gray-400",{"opacity-0":!h}),disabled:!0,name:n,placeholder:g}):(0,l.jsx)("input",{className:(0,E.A)("w-full text-ellipsis rounded border py-3 pl-5 text-sm leading-4 placeholder:leading-4 placeholder:text-gray-500",x.length>0?"border-red-500 pr-12":"border-gray-900 pr-5",{"opacity-0":!h}),disabled:!h,maxLength:i,name:n,onChange:function(e){return f(n,e.target.value)},onFocus:function(){return c(r.filter(function(e){return e.field!==n}))},ref:u,type:S,value:g}),"password"===p&&0===x.length&&(0,l.jsx)("button",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-sm font-medium",onClick:function(){return N(function(e){return!e})},type:"button",children:b?"Hide":"Show"}),x.length>0&&(0,l.jsx)("div",{className:"absolute right-4 top-1/2 -translate-y-1/2",children:(0,l.jsx)("svg",{fill:"none",height:"24",width:"24",children:(0,l.jsx)("path",{clipRule:"evenodd",d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2ZM13 13V7h-2v6h2Zm0 4v-2h-2v2h2Zm-9-5c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z",fill:"#DC2626",fillRule:"evenodd"})})})]}),x.length>0&&(0,l.jsx)("div",{className:"mt-2 flex flex-col gap-y-2 text-sm font-medium text-red-600",children:x.map(function(e){return(0,l.jsxs)("div",{children:[e.message.slice(0,1).toUpperCase(),e.message.slice(1)]},e.message)})})]})}var y={message:function(e){return"".concat(e," must only contain numbers")}
1,validator:function(e){return/^\+?[0-9]+$/.test(e)}},R={[v.dO.FIRST_NAME]:{name:"First Name"},[v.dO.LAST_NAME]:{name:"Last Name"},[v.dO.CONTACT_NUMBER]:{name:"Contact Number",tests:[y]},[v.dO.PASSWORD]:{name:"Password",onlyIfCanSetPassword:!0,optional:!0},[v.dO.DELIVERY_ADDRESS]:{name:"Address",onlyIfAddressRequired:!0},[v.dO.DELIVERY_POSTCODE]:{name:"Postcode",tests:[y]},[v.dO.DELIVERY_STATE]:{name:"State",onlyIfAddressRequired:!0},[v.dO.DELIVERY_SUBURB]:{name:"Suburb",onlyIfAddressRequired:!0},[v.dO.BILLING_ADDRESS]:{name:"Billing Address",onlyIfAddressRequired:!0,onlyIfNotBillingSameAsDelivery:!0},[v.dO.BILLING_POSTCODE]:{name:"Billing Postcode",onlyIfAddressRequired:!0,onlyIfNotBillingSameAsDelivery:!0,tests:[y]},[v.dO.BILLING_STATE]:{name:"Billing State",onlyIfAddressRequired:!0,onlyIfNotBillingSameAsDelivery:!0},[v.dO.BILLING_SUBURB]:{name:"Billing Suburb",onlyIfAddressRequired:!0,onlyIfNotBillingSameAsDelivery:!0},[v.dO.REGIONAL_BIRTH_YEAR]:{name:"Birth Year",tests:[y,{message:function(e){return"".concat(e," must be within the range 1900-2099")},validator:function(e){return/^([^0-9]|19|20)/.test(e)}},{message:function(e){return"".concat(e," must be 4 digits long")},validator:function(e){return/^.{4}$/.test(e)}}]}};function L(e){var t=e.canSetPassword,r=void 0!==t&&t,n=e.fieldValues,s=e.fieldsToValidate,i=e.isAddressRequired,o=void 0!==i&&i,l=e.isBillingSameAsDelivery,a=void 0!==l&&l,d=[];return s.forEach(function(e){var t,s,i=R[e],l=null==(t=n[e])?void 0:t.trim();if(i&&(!i.onlyIfCanSetPassword||r)&&(!i.onlyIfAddressRequired||o)&&(!i.onlyIfNotBillingSameAsDelivery||!a)){if(!l||""===l.trim()){if(i.optional)return;d.push({field:e,message:"".concat(i.name," can not be empty")});return}null==(s=i.tests)||s.forEach(function(t){t.validator(l)||d.push({field:e,message:t.message(i.name)})})}}),d}function T(e){return Object.keys(e).reduce(function(t,r){return r===v.dO.CONTACT_NUMBER?t[r]=e[r].replaceAll(/\s+/g,""):t[r]=e[r].trim(),t},{})}function C(e){if(e){var t=document.getElementsByName(e)[0];if(t){var r=t.offsetParent;window.scrollTo({behavior:"smooth",top:r?r.offsetTop-72:0})}}}function j(e){var t=e.addressRequired,r=e.agsPropertyProduce,n=e.children,s=e.extendedProfile,i=e.fields,a=e.nextScreen,f=e.setField,m=e.showAlpaBusiness,h=e.showBillingAddressToggle,b=e.showCorpBusiness,N=e.supportsEnrichment,y=(0,o._)((0,d.useState)([]),2),R=y[0],j=y[1],B=(0,o._)((0,d.useState)(!0),2),D=B[0],P=B[1],k=(0,o._)((0,d.useState)(!1),2),U=k[0],F=k[1],Y=(0,o._)((0,d.useState)(!1),2),V=Y[0],M=Y[1],H=(0,o._)((0,d.useState)(!0),2),G=H[0],q=H[1],W=(0,o._)((0,d.useState)(!1),2),z=W[0],K=W[1],Q=(0,c.GV)(function(e){return e.piano.initialized}),Z=(0,c.GV)(function(e){return e.piano.user}),X=(0,c.GV)(function(e){return e.features.supporterSite.enabled}),$=(null==Z?void 0:Z.passwordType)==="passwordless"||(null==Z?void 0:Z.passwordType)==="passwordExpired",J=(0,d.useRef)(null),ee=(0,d.useCallback)(function(){q(function(e){return!e})},[q]);function et(e){(0,O.qE)({action:"continue_button_click",label:e,section:"step_1",trigger:"complete_new_profile"})}var er=(0,d.useCallback)(function(e){e.forEach(function(e){et("server_error:".concat(e.message))}),j(e)},[j]),en=(0,d.useCallback)(function(){return(0,g._)(function(){var e,t,n,s,o;return(0,x.YH)(this,function(l){switch(l.label){case 0:return[4,(0,u.Nl)()];case 1:if(!(e=l.sent().pianoId.getToken()))return et("validation_error:session_timed_out"),(0,v.jL)(),[2];if(t=i[v.dO.PASSWORD],(n=L({canSetPassword:$,fieldValues:T(i),fieldsToValidate:[v.dO.BILLING_ADDRESS,v.dO.BILLING_POSTCODE,v.dO.BILLING_STATE,v.dO.BILLING_SUBURB,v.dO.CONTACT_NUMBER,v.dO.DELIVERY_ADDRESS,v.dO.DELIVERY_POSTCODE,v.dO.DELIVERY_STATE,v.dO.DELIVERY_SUBURB,v.dO.FIRST_NAME,v.dO.LAST_NAME,v.dO.PASSWORD],isAddressRequired:V,isBillingSameAsDelivery:G})).length>0)return j(n),C(null==(s=n[0])?void 0:s.field),et("validation_error:".concat(n.map(function(e){return e.field}).join(","))),[2];F(!0),l.label=2;case 2:return l.trys.push([2,6,,7]),[4,function(e){return(0,g._)(function(e){var t,r,n,s,i,o,l,a;return(0,x.YH)(this,function(d){switch(d.label){case 0:return t=e.accessToken,r=e.agsPropertyProduce,n=e.canSetPassword,s=e.fields,i=e.isBillingSameAsDelivery,o=e.password,l=e.setErrors,[4,(0,v.DM)({accessToken:t,agsPropertyProduce:r,alpaBusiness:s[v.dO.ALPA_BUSINESS]||void 0,anonymousSupporter:["true","false"].includes(s[v.dO.ANONYMOUS_SUPPORTER])?"true"===s[v.dO.ANONYMOUS_SUPPORTER]:void 0,billingAddress:s[i?v.dO.DELIVERY_ADDRESS:v.dO.BILLING_ADDRESS],billingPostcode:s[i?v.dO.DELIVERY_POSTCODE:v.dO.BILLING_POSTCODE],billingState:s[i?v.dO.DELIVERY_STATE:v.dO.BILLING_STATE],billingSuburb:s[i?v.dO.DELIVERY_SUBURB:v.dO.BILLING_SUBURB],contactNumber:s[v.dO.CONTACT_NUMBER],corpAbn:s[v.dO.CORP_ABN]||void 0,corpBusiness:s[v.dO.CORP_BUSINESS]||void 0,deliveryAddress:s[v.dO.DELIVERY_ADDRESS],deliveryPostcode:s[v.dO.DELIVERY_POSTCODE],deliveryState:s[v.dO.DELIVERY_STATE],deliverySuburb:s[v.dO.DELIVERY_SUBURB],firstName:s[v.dO.FIRST_NAME],isBillingSameAsDelivery:i,lastName:s[v.dO.LAST_NAME]})];case 1:if(!(a=d.sent()).success)return(0,v.ug)({errors:a.errors,setErrors:l}),[2,!1];if(!n||""===o.trim())return[2,!0];return[4,function(e){return(0,g._)(function(e){var t,r,n,s;return(0,x.YH)(this,function(i){switch(i.label){case 0:if(t=e.accessToken,r=e.password,n=e.setErrors,!t)return[2,!1];return[4,(0,v._k)({accessToken:t,password:r})];case 1:if((s=i.sent()).success)return[2,!0];return(0,v.ug)({errors:s.errors,setErrors:n}),[2,!1]}})}).apply(this,arguments)}({accessToken:t,password:o,setErrors:l})];case 2:return[2,d.sent()]}})}).apply(this,arguments)}({accessToken:e,agsPropertyProduce:r,canSetPassword:$,fields:i,isBillingSameAsDelivery:G,password:t,setErrors:er})];case 3:var d;if(!l.sent())return F(!1),[2];if(o=!1,!($&&t))return[3,5];return K(!0),[4,(d=e,(0,g._)(function(){var e,t;return(0,x.YH)(this,function(r){switch(r.label){case 0:return r.trys.push([0,8,,9]),[4,(0,v.HU)({accessToken:d})];case 1:if(!(e=r.sent()).success)return[3,6];t=e.data.accessToken,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,(0,v._2)(t)];case 3:return r.sent(),[2,!0];case 4:return console.error(r.sent()),[2,!1];case 5:return[3,7];case 6:return[2,!1];case 7:return[3,9];case 8:return r.sent(),(0,v.Gd)("Unable to connect to authentication server"),[2,!1];case 9:return[2]}})})())];case 4:o=!l.sent(),l.label=5;case 5:return(0,O.qE)({action:"continue",section:"step_1",trigger:"complete_new_profile"}),a(o),[3,7];case 6:return console.error(l.sent()),(0,v.Gd)("Unable to connect to authentication server"),et("validation_error:unable_to_connect"),F(!1),[3,7];case 7:return[2]}})})()},[G,i,$,V,er,r,a]);return(0,d.useEffect)(function(){(0,O.qE)({action:"profile_stage_impressions",section:"step_1",trigger:"complete_new_profile"})},[]),(0,d.useEffect)(function(){var e;null==(e=J.current)||e.focus()},[J]),(0,d.useEffect)(function(){!Q||Z||z||(0,v.jL)()}
1,[z,Q,Z]),(0,d.useEffect)(function(){var e,r="true"===(0,v.qz)("isPrint"),n=null==(e=(0,v.qz)("termDescription"))?void 0:e.includes("addressRequired");M(r||n||t||!1)},[t]),(0,p.H5)(function(){if(Q&&Z&&s){var e,t;return P(!1),f(v.dO.EMAIL,Z.email),f(v.dO.FIRST_NAME,null!=(e=Z.firstName)?e:""),f(v.dO.LAST_NAME,null!=(t=Z.lastName)?t:""),s.custom_field_values.forEach(function(e){var t=e.field_name.toLowerCase(),r=e.value;if("is_billing_and_send_address_equal"===t)q("true"===r);else{var n=w[t];n&&f(n,r)}}),!0}return!1},[Q,Z,f,s]),(0,l.jsxs)("div",{className:"w-full md:max-w-xs",children:[N&&(0,l.jsxs)("div",{className:"mt-6 text-sm leading-6 text-gray-600",children:["Step 1/",m||b?"3":"2"]}),(0,l.jsx)("div",{className:(0,E.A)("text-xl font-semibold md:text-2xl",{"mt-2":N,"mt-7":!N}),children:"Complete profile"}),(0,l.jsxs)("form",{className:"w-full",onSubmit:function(e){e.preventDefault(),en().catch(console.error)},children:[(0,l.jsxs)("div",{className:"mt-5 flex flex-col gap-y-3",children:[!D&&m&&(0,l.jsx)(I,{errors:R,fieldName:v.dO.ALPA_BUSINESS,fields:i,name:"ALPA Registered Business Name",setErrors:j,setField:f}),!D&&b&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I,{errors:R,fieldName:v.dO.CORP_BUSINESS,fields:i,name:"Registered Business Name",setErrors:j,setField:f}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.CORP_ABN,fields:i,name:"ABN",setErrors:j,setField:f})]}),(0,l.jsx)(I,{disabled:!0,errors:R,fieldName:v.dO.EMAIL,fields:i,name:"Email",setErrors:j,setField:f,show:!D,skeleton:!0}),$&&(0,l.jsx)(I,{errors:R,fieldName:v.dO.PASSWORD,fields:i,name:"Password (optional)",setErrors:j,setField:f,show:!D,type:"password"}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.FIRST_NAME,fields:i,name:"First Name",ref:J,setErrors:j,setField:f,show:!D,skeleton:!0}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.LAST_NAME,fields:i,name:"Last Name",setErrors:j,setField:f,show:!D,skeleton:!0}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.CONTACT_NUMBER,fields:i,name:"Contact Number",setErrors:j,setField:f,show:!D,skeleton:!0,type:"tel"}),V?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I,{errors:R,fieldName:v.dO.DELIVERY_ADDRESS,fields:i,name:"Delivery Address",setErrors:j,setField:f,show:!D,skeleton:!0}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.DELIVERY_SUBURB,fields:i,name:"Suburb",setErrors:j,setField:f,show:!D,skeleton:!0}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.DELIVERY_STATE,fields:i,name:"State",setErrors:j,setField:f,show:!D,skeleton:!0}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.DELIVERY_POSTCODE,fields:i,maxlength:4,name:"Postcode",setErrors:j,setField:f,show:!D,skeleton:!0}),h&&(0,l.jsx)("div",{children:(0,l.jsxs)("button",{className:"flex w-full items-center gap-x-3 py-3",onClick:ee,type:"button",children:[(0,l.jsx)("div",{className:"text-left text-base leading-6 text-gray-600",children:"Use same details for billing address"}),(0,l.jsx)("div",{className:(0,E.A)("relative h-6 w-[52px] rounded-full transition-all duration-200 ease-in",G?"bg-green-600":"bg-gray-200"),children:(0,l.jsx)("div",{className:(0,E.A)("absolute top-0.5 flex size-5 items-center justify-center rounded-full bg-white shadow transition-all duration-200 ease-in",G?"left-5.5":"left-0.5")})})]})}),!G&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I,{errors:R,fieldName:v.dO.BILLING_ADDRESS,fields:i,name:"Billing Address",setErrors:j,setField:f,show:!D}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.BILLING_SUBURB,fields:i,name:"Billing Suburb",setErrors:j,setField:f,show:!D}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.BILLING_STATE,fields:i,name:"Billing State",setErrors:j,setField:f,show:!D}),(0,l.jsx)(I,{errors:R,fieldName:v.dO.BILLING_POSTCODE,fields:i,maxlength:4,name:"Billing Postcode",setErrors:j,setField:f,show:!D})]})]}):(0,l.jsx)(I,{errors:R,fieldName:v.dO.DELIVERY_POSTCODE,fields:i,maxlength:4,name:"Postcode",setErrors:j,setField:f,show:!D,skeleton:!0}),X&&!D&&(0,l.jsxs)("div",{className:"whitespace-nowrap",children:[(0,l.jsx)(A,{checked:"true"===i[v.dO.ANONYMOUS_SUPPORTER],customText:"I would like my support to be anonymous",labelClassName:"inline-flex items-center",setField:function(e){return f(v.dO.ANONYMOUS_SUPPORTER,e.toString())},text:"Anonymous Supporter"}),(0,l.jsx)("div",{className:"ml-3 inline-block",children:(0,l.jsx)(S,{className:"w-60",containerClassName:"-translate-x-[115%]",children:(0,l.jsx)("p",{className:"whitespace-normal",children:"From time to time we might publicly thank our supporters. If you don't want to be thanked publicly please check this box."})})})]}),n]}),(0,l.jsx)(_.A,{bgColor:"bg-red-600 disabled:bg-gray-300",className:(0,E.A)("mb-8 mt-5",{"opacity-0":D}),desktopFullWidth:!0,disabled:D||U,fontSize:"text-sm",height:"h-10.5 md:h-10.5 lg:h-10.5",hoverColor:"hover:bg-red-700 disabled:hover:bg-gray-300",mobileFullWidth:!0,text:"Continue",textColor:"text-white",type:"submit"})]})]})}var B=r(98952);function D(e){(0,O.qE)({action:"finish_button_click",label:e,section:"step_2",trigger:"complete_new_profile"})}var P=["I own a farm","I manage a farm","I work on a farm","I have a hobby farm or lifestyle property","My family are farmers","I supply farm equipment or products","I provide consulting or support services to farms","None of the above, I'm not involved with farming"],k=["Beef","Sheep","Other livestock","Broadacre Cropping","Horticultural Cropping","Other"],U=["I volunteer in [region]","I'm a member of a local sporting club","I'm a supporter of a local sports team","I own my home in [region]","I rent my home in [region]","I own a business in [region]","I work in [region]","My children go to primary school here","My children go to secondary sc
1hool here","I have an interest in [region] but do not currently live there"];function F(e,t){var r=e.split(/;/g);return t.map(function(e){return r.includes(e)})}function Y(e,t,r){var n=(0,B._)(e);return n[t]=r,n}function V(e,t){return e.map(function(e,r){return e?t[r]:""}).filter(function(e){return""!==e})}var M={[f.gk.NONE]:void 0,[f.gk.AGS]:function(e){var t=e.extendedProfile,r=e.isSubmitting,n=e.submit,s=(0,o._)((0,d.useState)(Array(P.length).fill(!1)),2),i=s[0],a=s[1],u=(0,o._)((0,d.useState)(Array(k.length).fill(!1)),2),c=u[0],f=u[1],m=P.length-1,h=i.some(function(e,t){return e&&t!==m});return(0,p.H5)(function(){return!!t&&(t.custom_field_values.forEach(function(e){var t=e.field_name.toLowerCase(),r=e.value;switch(t){case"farming_involvement":a(F(r,P));break;case"farming_sectors":f(F(r,k))}}),!0)},[t]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mt-3 text-xl font-semibold md:text-2xl",children:"Final step to improve your experience"}),(0,l.jsxs)("form",{className:"mt-5 flex w-full flex-col gap-y-4",onSubmit:function(e){e.preventDefault(),n({farmingInvolvement:V(i,P),farmingSectors:V(c,k)})},children:[(0,l.jsx)("div",{className:"pb-1 text-sm font-semibold leading-5 text-gray-900",children:"Which of the following best describes your involvement in farming (tick all boxes that apply):"}),P.map(function(e,t){return(0,l.jsx)(A,{checked:i[t],setField:function(e){!function(e,t){if(e===m){a(Y(Array(P.length).fill(!1),e,t)),f(Array(k.length).fill(!1));return}var r=Y(i,e,t);t&&(r[m]=!1),a(r)}(t,e)},text:e},e)}),h&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"pb-1 pt-3 text-sm font-semibold leading-5 text-gray-900",children:"Which farming sectors are relevant to your business? (tick all answers that apply):"}),k.map(function(e,t){return(0,l.jsx)(A,{checked:c[t],setField:function(e){f(Y(c,t,e))},text:e},e)})]}),(0,l.jsx)(_.A,{bgColor:"bg-red-600 disabled:bg-gray-300",className:"mb-8 mt-6",desktopFullWidth:!0,disabled:r,fontSize:"text-sm",height:"h-10.5 md:h-10.5 lg:h-10.5",hoverColor:"hover:bg-red-700 disabled:hover:bg-gray-300",mobileFullWidth:!0,text:"Finish",textColor:"text-white",type:"submit"})]})]})},[f.gk.REGIONALS]:function(e){var t=e.errors,r=e.extendedProfile,n=e.fields,s=e.isSubmitting,i=e.setErrors,a=e.setField,u=e.submit,c=(0,o._)((0,d.useState)(Array(U.length).fill(!1)),2),f=c[0],m=c[1],h=(0,p.G0)();return(0,p.H5)(function(){return!!r&&(r.custom_field_values.forEach(function(e){var t=e.field_name.toLowerCase(),r=e.value;switch(t){case"regional_connections":m(F(r,U));break;case"regional_birth_year":a(v.dO.REGIONAL_BIRTH_YEAR,r)}}),!0)},[r,a]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mt-3 text-xl font-semibold md:text-2xl",children:"Please help us improve your experience by answering the following questions"}),(0,l.jsxs)("form",{className:"mt-5 flex w-full flex-col gap-y-4",onSubmit:function(e){e.preventDefault(),function(){var e,t=T(n),r=L({fieldValues:t,fieldsToValidate:[v.dO.REGIONAL_BIRTH_YEAR]});if(r.length>0){i(r),C(null==(e=r[0])?void 0:e.field),D("validation_error:".concat(r.map(function(e){return e.field}).join(",")));return}u({regionalBirthYear:t.birth_year,regionalConnections:V(f,U)})}()},children:[(0,l.jsx)(I,{errors:t,fieldName:v.dO.REGIONAL_BIRTH_YEAR,fields:n,maxlength:4,name:"In what year were you born",setErrors:i,setField:a}),(0,l.jsxs)("div",{className:"pb-1 text-sm font-semibold leading-5 text-gray-900",children:["It helps us to understand your connection to ",h," and how you engage with our community. Please tick"," ",(0,l.jsx)("span",{className:"font-bold",children:"all of the following"})," that apply:"]}),U.map(function(e,t){return(0,l.jsx)(A,{checked:f[t],setField:function(e){m(Y(f,t,e))},text:e.replaceAll(/\[region\]/g,h)},e)}),(0,l.jsx)(_.A,{bgColor:"bg-red-600 disabled:bg-gray-300",className:"mb-8 mt-6",desktopFullWidth:!0,disabled:s,fontSize:"text-sm",height:"h-10.5 md:h-10.5 lg:h-10.5",hoverColor:"hover:bg-red-700 disabled:hover:bg-gray-300",mobileFullWidth:!0,text:"Finish",textColor:"text-white",type:"submit"})]})]})}};function H(e){var t=e.enrichment,r=e.extendedProfile,n=e.fields,i=e.nextScreen,a=e.setField,c=e.showAdditionalStep,f=(0,o._)((0,d.useState)([]),2),m=f[0],h=f[1],p=(0,o._)((0,d.useState)(!1),2),E=p[0],_=p[1],b=(0,d.useCallback)(function(e){e.forEach(function(e){D("server_error:".concat(e.message))}),h(e)},[h]),N=(0,d.useCallback)(function(e){(0,u.s7)(function(t){return(0,g._)(function(){var r;return(0,x.YH)(this,function(n){switch(n.label){case 0:if(!(r=t.pianoId.getToken()))return D("val
1idation_error:session_timed_out"),(0,v.jL)(),[2];return _(!0),[4,function(e){return(0,g._)(function(e){var t,r,n,s,i,o,l;return(0,x.YH)(this,function(a){switch(a.label){case 0:return t=e.accessToken,r=e.farmingInvolvement,n=e.farmingSectors,s=e.regionalBirthYear,i=e.regionalConnections,o=e.setErrors,[4,(0,v.DM)({accessToken:t,farmingInvolvement:r,farmingSectors:n,regionalBirthYear:s,regionalConnections:i})];case 1:return(l=a.sent()).success||(0,v.ug)({errors:l.errors,setErrors:o}),[2,l.success]}})}).apply(this,arguments)}((0,s._)({accessToken:r,setErrors:b},e))];case 1:if(!n.sent())return _(!1),[2];return(0,O.qE)({action:"finish",section:"step_2",trigger:"complete_new_profile"}),i(),[2]}})})()})},[i,b]);(0,d.useEffect)(function(){(0,O.qE)({action:"profile_stage_impressions",section:"step_2",trigger:"complete_new_profile"})},[]);var S=M[t];return S?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"mt-6 text-sm leading-6 text-gray-600",children:["Step 2/",c?"3":"2"]}),(0,l.jsx)(S,{errors:m,extendedProfile:r,fields:n,isSubmitting:E,setErrors:b,setField:a,submit:N})]}):null}var G=((n={})[n.SHOW_PROFILE=0]="SHOW_PROFILE",n[n.SHOW_ENRICHMENT=1]="SHOW_ENRICHMENT",n);function q(e){var t=e.addressRequired,r=e.agsPropertyProduce,n=e.children,g=e.showBillingAddressToggle,x=(0,c.GV)(function(e){return e.features.piano.enabled&&e.features.piano.data.completeProfileEnrichments||f.gk.NONE}),E=(0,c.GV)(function(e){return e.features.piano}),_=(0,o._)((0,d.useState)(G.SHOW_PROFILE),2),b=_[0],N=_[1],S=(0,o._)((0,d.useState)(void 0),2),O=S[0],w=S[1],A=(0,o._)((0,d.useState)(void 0),2),I=A[0],y=A[1],R=(0,o._)((0,d.useState)(!1),2),L=R[0],T=R[1],C=(0,o._)((0,d.useState)(!1),2),B=C[0],D=C[1],P=(0,o._)((0,d.useState)({[v.dO.BILLING_ADDRESS]:"",[v.dO.BILLING_POSTCODE]:"",[v.dO.BILLING_STATE]:"",[v.dO.BILLING_SUBURB]:"",[v.dO.CONFIRM_PASSWORD]:"",[v.dO.CONTACT_NUMBER]:"",[v.dO.CORP_ABN]:"",[v.dO.CORP_BUSINESS]:"",[v.dO.DELIVERY_ADDRESS]:"",[v.dO.DELIVERY_POSTCODE]:"",[v.dO.DELIVERY_STATE]:"",[v.dO.DELIVERY_SUBURB]:"",[v.dO.EMAIL]:"",[v.dO.FIRST_NAME]:"",[v.dO.LAST_NAME]:"",[v.dO.PASSWORD]:"",[v.dO.POSTCODE]:"",[v.dO.REGIONAL_BIRTH_YEAR]:"",[v.dO.ALPA_BUSINESS]:"",[v.dO.ANONYMOUS_SUPPORTER]:""}),2),k=P[0],U=P[1],F=(0,d.useCallback)(function(e,t){U(function(r){return(0,i._)((0,s._)({},r),{[e]:t})})},[U]),Y=x!==f.gk.NONE,V="true"===(0,v.qz)("purchase"),M=(0,v.qz)("selectedTermIdx"),q=V?(0,s._)({msg:"access"},M&&{selectedTermIdx:M}):{msg:"profile"};return((0,p.Am)({offset:80}),(0,p.H5)(function(){return(0,u.s7)(function(e){e.pianoId.loadExtendedUser({extendedUserLoaded:function(e){w(e)}})}),!0},[]),(0,p.H5)(function(){return Y&&(0,u.s7)(function(e){e.pianoId.loadExtendedUser({extendedUserLoaded:function(e){y(e)},formName:"enrichments"})}),!0},[Y]),(0,p.H5)(function(){var e=new URLSearchParams(window.location.search).get("source")||"";return"alpa"===e.toLowerCase()?T(!0):"corp"===e.toLowerCase()&&D(!0),!0},[]),E.enabled)?(0,l.jsx)(m.A,{footer:null,free:!0,hideSmartBanner:!0,nav:(0,l.jsx)(h.A,{enableLogoClick:!1,showContact:!1,showHelp:!1,showLogin:!1,showPageName:!1}),showGutterAd:!1,showNavigationAd:!1,showOutages:!1,children:(0,l.jsx)("div",{className:"flex min-h-[calc(100vh-64px)] flex-col justify-between",children:(0,l.jsx)("div",{className:"flex justify-center border-t border-gray-300 px-4 transition-opacity",children:(0,l.jsxs)("div",{className:"relative w-full max-w-375 px-4 font-inter text-gray-900",children:[(0,l.jsx)(a.e,{show:b===G.SHOW_PROFILE,children:(0,l.jsx)("div",{className:"w-full transition-opacity duration-500 ease-in-out data-[leave]:absolute data-[closed]:opacity-0",children:(0,l.jsx)(j,{addressRequired:void 0!==t&&t,agsPropertyProduce:r,extendedProfile:O,fields:k,nextScreen:function(e){if(e){var t,r=(0,v.wx)(),n=r&&!r.includes("complete-profile")?r:"/";(0,v.aL)(n);return}if(Y){N(G.SHOW_ENRICHMENT),null==(t=window)||t.scrollTo({behavior:"smooth",top:0});return}(0,v.zy)({additionalParams:q})},setField:F,showAlpaBusiness:L,showBillingAddressToggle:void 0===g||g,showCorpBusiness:B,supportsEnrichment:Y,children:n})})}),(0,l.jsx)(a.e,{show:b===G.SHOW_ENRICHMENT,children:(0,l.jsx)("div",{className:"transition-opacity duration-500 ease-in-out data-[closed]:opacity-0 data-[enter]:delay-500",children:(0,l.jsx)(H,{enrichment:x,extendedProfile:I,fields:k,nextScreen:function(){(0,v.zy)({additionalParams:q})},setField:F,showAdditionalStep:L||B})})})]})})})}):null}function W(){return(0,l.jsx)(q,{})}},59533:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(91167),s=r(60143),i=r(29722),o=r(70011),l=r(50064),a=r(62715),d=r(1935),u=r(63233),c=r(65019),f=r(88650),m=r(68558);function h(e){var t=e.enableLogoClick,r=e.helpHref,h=void 0===r?void 0:r,v=e.showContact,p=e.showHelp,g=void 0===p||p,x=e.showLogin,E=void 0!==x&&x,_=e.showPageName,b=e.sticky,N=(0,a.GV)(function(e){return e.page.name}),S=(0,a.GV)(function(e){return e.piano.user}),O=(0,n._)((0,d.xT)(),2),w=O[0],A=O[1],I=E&&!A,y=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"mr-3 text-gray-900",children:"Already have an account?"}),(0,s.jsx)("button",{className:"text-blue-600 visited:text-blue-600 hover:text-blue-600",onClick:l.Lz,type:"button",children:"Login"})]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"h-0 w-full",ref:w}),(0,s.jsx)("div",{className:(0,i.A)("top-0 z-30 w-full bg-white px-6 md:shadow-md",void 0===b||b?"sticky":"relative",{"border-b border-solid border-gray-200":I,"shadow-md":!I}),children:(0,s.jsxs)("div",{className:"relative mx-auto flex h-16 w-full max-w-container items-center justify-between",children:[(void 0===_||_)&&(0,s.jsx)("div",{className:"hidden whitespace-nowrap bg-white px-2 font-inter text-xs font-semibold uppercase leading-10 text-gray-900 md:block",children:N}),(0,s.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,s.jsx)(f.A,{className:"h-9 w-56",type:m.e.DEFAULT,withLink:void 0===t||t})}),(0,s.jsxs)("div",{className:"hidden flex-row md:flex",children:[(void 0===v||v)&&(0,s.jsx)(c.A,{className:(0,i.A)("text-xs no-underline",{"mr-6":E||g}),hideVisited:!0,href:"/contact/",onClick:function(){(0,u.qE)({action:"subscribe_page_stage",label:"header_contact_link_click"})},children:"Contact"}),g&&(h?(0,s.jsx)(c.A,{className:(0,i.A)("text-xs no-underline",{"mr-6":E}),hideVisited:!0,href:h,onClick:function(){(0,u.qE)({action:"subscribe_page_stage",label:"header_help_link_click"})},children:"Help"}):(0,s.jsx)(o.A,{className:(0,i.A)("text-xs no-underline",{"mr-6":E}),hideVisited:!0,onClick:function(){(0,u.qE)({action:"subscribe_page_stage",label:"header_help_link_click"})},children:"Help"})),E&&!(null==S?void 0:S.valid)&&(0,s.jsx)("div",{className:"hidden flex-row font-inter text-xs md:flex",children:y})]})]})}),E&&!(null==S?void 0:S.valid)&&(0,s.jsx)("div",{className:"flex h-10 flex-row items-center justify-center font-inter text-xs md:hidden",children:y})]})}},68558:(e,t,r)=>{r.d(t,{e:()=>o,s:()=>i});var n,s,i=((n={})[n.DEFAULT=0]="DEFAULT",n[n.LABEL_WITH_SQUARE_LOGO=1]="LABEL_WITH_SQUARE_LOGO",n),o=((s={})[s.DEFAULT=0]="DEFAULT",s[s.SQUARE=1]="SQUARE",s[s.UNDERLINED=2]="UNDERLINED",s[s.UNDERLINED_BLACK=3]="UNDERLINED_BLACK",s)},88650:(e,t,r)=>{r.d(t,{A:()=>a});var n=r(60143),s=r(29722);r(45159);var i=r(62715),o=r(65019),l=r(68558);function a(e){var t=e.className,r=e.imageClassName,a=e.type,d=e.url,u=e.withLink,c=(0,i.GV)(function(e){return e.conf}),f=c.logoSvgOnly,m=c.logoSvgSquare,h=c.logoSvgUnderline,v=c.logoSvgUnderlineBlack,p=c.name,g={[l.e.DEFAULT]:f,[l.e.SQUARE]:m,[l.e.UNDERLINED]:h,[l.e.UNDERLINED_BLACK]:v}[a],x=(0,n.jsx)("img",{alt:p,className:(0,s.A)("size-full max-h-full max-w-full object-contain",r),src:g||void 0});return void 0===u||u?(0,n.jsx)(o.A,{className:(0,s.A)("block",t),"data-testid":"logo",href:void 0===d?"/":d,children:x}):(0,n.jsx)("div",{className:t,"data-testid":"logo",children:x})}},94831:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(22514),s=r(91167),i=r(19927),o=r(45159);let l=o.forwardRef(function(e,t){var r=(0,i._)([e,t]),l=r[0],a=r.slice(1),d=l.title,u=l.titleId,c=(0,n._)(l,["title","titleId"]),f=(0,s._)(a,1)[0];return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:f,"aria-labelledby":u},c),d?o.createElement("title",{id:u},d):null,o.createElement("path",{d:"M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"}))})}}]);
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.