1"use strict";(globalThis.webpackChunkmater=globalThis.webpackChunkmater||[]).push([[3407],{62036(o,t,n){n.d(t,{A:()=>i});var e=n(34071);const a={name:"OnboardingConfirmModal"},l=Object.assign(a,{props:{visible:{type:Boolean,default:!1}},emits:["close"],setup:o=>({__sfc:!0,IubModal:e.A})});const i=(0,n(14486).A)(l,function(){var o=this,t=o._self._c;return t(o._self._setupProxy.IubModal,{attrs:{visible:o.visible,"hide-header":"","hide-footer":"",centered:"","dialog-class":"onboarding-confirm-modal"},on:{hide:function(t){return o.$emit("close")}}},[t("p",{staticClass:"onboarding-confirm-modal__body"},[o._t("default")],2),o._v(" "),t("div",{staticClass:"onboarding-confirm-modal__actions"},[o._t("actions")],2)])},[],!1,null,null,null).exports},60219(o,t,n){n.d(t,{A:()=>a});const e={__name:"OnboardingHelper",emits:["open"],setup:o=>({__sfc:!0})};const a=(0,n(14486).A)(e,function(){var o=this,t=o._self._c;o._self._setupProxy;return t("button",{staticClass:"onboarding-helper-label",attrs:{type:"button"},on:{click:function(t){return o.$emit("open")}}},[t("svg",{staticClass:"onboarding-helper-label__icon",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("circle",{attrs:{cx:"12",cy:"12",r:"11",stroke:"currentColor","stroke-width":"1.5"}}),o._v(" "),t("text",{attrs:{x:"12",y:"17","text-anchor":"middle","font-size":"13","font-weight":"600",fill:"currentColor","font-family":"inherit"}},[o._v("?")])]),o._v(" "),t("span",{staticClass:"onboarding-helper-label__text"},[o._t("default")],2)])},[],!1,null,"2f07f3b8",null).exports},24144(o,t,n){n.r(t),n.d(t,{default:()=>m});var e=n(85471),a=n(46857),l=n(32050),i=n(48890),s=n(68152),r=n(1858),c=n(83249),u=n(76004),d=n(97683),_=n(60219),b=n(84969),f=n(62036),p=n(79981);const g={__name:"ProjectLocation",setup(o){const t=(0,a.A)(),{t:n}=(0,l.A)(),{userDetectedCountry:g}=(0,e.WQ)("initialData",{}),{canGoBack:m,goBack:v,goNext:h,exitToFlow:y}=(0,u.A)(),{countryOptions:C,loadCountries:w,findCountryOption:k}=(0,d.A)(),x=(0,e.KR)(null),A=(0,e.KR)(!1),O=(0,e.KR)(!1);(0,e.wB)(C,o=>{if(x.value||!o.length)return;const n=t.state.business_country||g;n&&(x.value=k(n))},{immediate:!0});const T=(0,e.EW)(()=>t.getters.userType),B=(0,e.EW)(()=>!!x.value),M=(0,e.EW)(()=>T.value===c.Cy.AGENCY?n("onboarding_flow.location.confirm_modal.stay_agency"):n("onboarding_flow.location.confirm_modal.stay")),N=(0,e.EW)(()=>T.value===c.Cy.COMPANY?n("onboarding_flow.location.title_company"):n("onboarding_flow.location.title_basic")),G=(0,e.EW)(()=>T.value===c.Cy.AGENCY?n("onboarding_flow.location.help_dialog.body_agency"):T.value===c.Cy.COMPANY?n("onboarding_flow.location.help_dialog.body_company"):n("onboarding_flow.location.help_dialog.body_basic"));return(0,e.sV)(()=>{w()}),{__sfc:!0,store:t,t:n,userDetectedCountry:g,canGoBack:m,goBack:v,goNext:h,exitToFlow:y,countryOptions:C,loadCountries:w,findCountryOption:k,selectedCountry:x,showConfirmModal:A,showHelpDialog:O,userType:T,canGoNext:B,stayLabel:M,stepTitle:N,helpDialogBody:G,handleNext:function(){if(!B.value)return;const o=x.value.id!==t.state.business_country;t.commit("setValue",{path:c.G5.BUSINESS_COUNTRY,value:x.value.id}),o&&(t.commit("setValue",{path:c.G5.TARGET_REGIONS,value:null}),t.commit("setValue",{path:c.G5.TARGET_COUNTRIES,value:[]})),h()},handleConfirmLeave:function(){y()},IubMultiSelect:i.A,IubButton:s.A,TitleHeader:r.A,OnboardingHelper:_.A,OnboardingDialog:b.A,OnboardingConfirmModal:f.A,OnboardingFooter:p.A}}};const m=(0,n(14486).A)(g,function(){var o=this,t=o._self._c,n=o._self._setupProxy;return t("div",{staticClass:"location-step text-center"},[t(n.TitleHeader,{attrs:{title:n.stepTitle}}),o._v(" "),t(n.OnboardingHelper,{on:{open:function(o){n.showHelpDialog=!0}}},[o._v("\n "+o._s(o.$t("onboarding_flow.location.helper_label"))+"\n ")]),o._v(" "),t("div",{staticClass:"location-step__select-wrapper"},[t(n.IubMultiSelect,{attrs:{options:n.countryOptions,placeholder:o.$t("onboarding_flow.location.placeholder"),"show-labels":!1,label:"label","track-by":"id"},model:{value:n.selectedCountry,callback:function(o){n.selectedCountry=o},expression:"selectedCountry"}})],1),o._v(" "),t(n.OnboardingFooter,{attrs:{"can-go-back":n.canGoBack,"can-go-next":n.canGoNext},on:{back:n.goBack,next:n.handleNext}}),o._v(" "),t(n.IubButton,{staticClass:"location-step__configure-manually",attrs:{variant:"link"},on:{click:function(o){n.showConfirmModal=!0}}},[o._v("\n "+o._s(o.$t("onboarding_flow.location.configure_manually"))+"\n ")]),o._v(" "),t(n.OnboardingDialog,{attrs:{visible:n.showHelpDialog,title:n.t("onboarding_flow.location.help_dialog.title")},on:{close:function(o){n.showHelpDialog=!1}}},[t("div",{domProps:{innerHTML:o._s(n.helpDialogBody)}})]),o._v(" "),t(n.OnboardingConfirmModal,{attrs:{visible:n.showConfirmModal},on:{close:function(o){n.showConfirmModal=!1}},scopedSlots:o._u([{key:"actions",fn:function(){return[t(n.IubButton,{attrs:{variant:"blue",block:"","data-testid":"modal-stay"},on:{click:function(o){n.showConfirmModal=!1}}},[o._v("\n "+o._s(n.stayLabel)+"\n ")]),o._v(" "),t(n.IubButton,{attrs:{variant:"outline-blue",block:"","data-testid":"modal-skip"},on:{click:n.handleConfirmLeave}},[o._v("\n "+o._s(o.$t("onboarding_flow.location.confirm_modal.skip"))+"\n ")])]},proxy:!0}])},[o._v("\n "+o._s(o.$t("onboarding_flow.location.confirm_modal.body"))+"\n ")])],1)},[],!1,null,"5ab332c1",null).exports}}]);
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.