1import{u as S,_ as w,P as c}from"./ProductActivationStepper.vue_vue_type_script_setup_true_lang-CVQFe6rc.js";import{u as R}from"./purchase-QYgXQDgW.js";import{d as k,u as P,C as D,di as A,dj as E,g as I,c as N,w as p,L as U,v as l,k as n,e as f,f as b,t as T,y as d,R as i,h as g,ad as y,o as B}from"./index-8pIADkX4.js";import"./organisationPurchasesApiClient-BWZNB7Kj.js";import"./CustomerActivationKeyPurchaseSelectForm.vue_vue_type_script_setup_true_lang-eveSMrnR.js";import"./purchasesApiClient-CDyntut9.js";import"./VCombobox-DrERIzSd.js";import"./VForm-BXRq0mL6.js";import"./VAlert-Br_SQuUp.js";import"./OrganisationConvertDemoDialog.vue_vue_type_script_setup_true_lang-lwcNJ0ob.js";import"./CountrySelector.vue_vue_type_script_setup_true_lang-BpERYtAY.js";import"./BaseFormDialog.vue_vue_type_script_setup_true_lang-CBTTpQM7.js";import"./BaseFormSubmitButton.vue_vue_type_script_setup_true_lang-DiEs760V.js";import"./organisation-Dt_Dg1Wl.js";import"./OrganisationDetailForm.vue_vue_type_script_setup_true_lang-DT44RrA5.js";import"./LanguageSelector.vue_vue_type_script_setup_true_lang-DVvLmiH7.js";import"./EducationCenterTagSelect.vue_vue_type_script_setup_true_lang-BtfpIaDA.js";import"./educationCenterTagsStore-sq_9fvic.js";import"./organisations-rslmYWNz.js";import"./organisationsStore-DWS8_Vfe.js";import"./productsApiClient-DQVBqLGW.js";import"./UserCreateFormFields.vue_vue_type_script_setup_true_lang-DfAPhgZL.js";import"./CustomerTermsCheckbox.vue_vue_type_script_setup_true_lang-DNdqALNt.js";import"./useAnalyticsFunnel-o6mcMoly.js";import"./productPackages-CPQ_Z6c3.js";import"./productPackagesStore-C004iYGF.js";import"./products-DZbzNCP3.js";import"./formattingHelper-pa1YE7b3.js";import"./dateFormatHelper-mgLNgQQt.js";import"./CustomerActivationKeyProductsSelectForm.vue_vue_type_script_setup_true_lang-sxl7fpMZ.js";import"./dynamic-import-helper-BheWnx7M.js";import"./VFileInput-CKJEzAmA.js";import"./purchaseActivationKeyPdf-DMjj9jid.js";import"./VStepper-CymJsOcL.js";import"./purchasesStore-CkD92Z1Z.js";const ht=k({__name:"PurchaseCreateView",setup(V){const{backPath:_}=R(),{t:a}=P(),e=S(),t=D(),C=A(),h=y(),o=l(()=>+h.params.organisationId),s=l(()=>o.value?c.CREATE_CUSTOMER_PURCHASE:c.NEW_ORDER);function m(){o.value?d.push({name:i.ORGANISATION_PURCHASES,params:{organisationId:o.value}}):d.push({name:i.PURCHASES})}return E(async(u,v,r)=>
1{if(u.name!==i.LOGIN&&!e.isDone){await C.confirm(a("general.general.confirmUnsavedChanges.title"),a("general.general.confirmUnsavedChanges.text"))?r():r(!1);return}r()}),I(async()=>{await e.init(s.value),t.currentOrganisation.id!==0?e.selectedCustomer={...t.currentOrganisation,isDemoCustomer:t.currentOrganisation.isDemoOrganisation}:o.value?(await t.getOrganisationBaseData(o.value),e.selectedCustomer={...t.currentOrganisation,isDemoCustomer:t.currentOrganisation.isDemoOrganisation}):e.selectedCustomer=null}),(u,v)=>{const r=g("router-back-button"),O=g("page-header");return B(),N(U,null,{default:p(()=>[n(r,{path:f(_)},null,8,["path"]),n(O,null,{default:p(()=>[b(T(f(a)("general.purchases.createTitle")),1)]),_:1}),n(w,{workflow:s.value,onDone:m,onCancel:m},null,8,["workflow"])]),_:1})}}});export{ht 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.