1import{_ as A}from"./Dy3LfvPU.js";import{u as B,h as E}from"./CXOtJu_3.js";import{d as F,u as N,o as S,n as d,a as T,c,e as t,f as R,t as r,m as b,h as U,i as u,j as p,k as v,p as V,b as i,s as $,l as G}from"./K65TjnDd.js";import{p as H,e as K}from"./DTDho3ye.js";import"./CRAQyBMh.js";const L={class:"page-shell contact-step-page"},M={key:0,class:"contact-step-panel","aria-labelledby":"catalog-confirm-title"},P={class:"contact-confirmation"},j={key:0,class:"contact-submit-error",role:"alert"},q={class:"contact-form__actions"},I=["disabled"],O=["disabled"],W={key:1,class:"contact-step-loading"},z="catalog_download_submit",_="has-recaptcha-badge",ta=F({__name:"confirm",setup(J){const m=G(),{form:s,restoreCatalogDownloadForm:h,saveCatalogDownloadForm:w,resetCatalogDownloadForm:y,markCatalogDownloadCompleted:C}=B(),g=p(!1),e=p(!1),n=p(""),f=v(()=>{const o=(m.public.contactApiUrl||"").replace(/\/$/,"");return o.endsWith("/contact")?`${o.slice(0,-8)}/catalog-download`:""}),l=v(()=>m.public.recaptchaSiteKey);N({title:`ã«ã¿ãã°è«æ±å
容ã®ç¢ºèª | ${$.companyName}`,meta:[{name:"robots",content:"noindex, nofollow, noarchive"},{name:"googlebot",content:"noindex, nofollow, noarchive"}]}),S(async()=>{if(h(),!E(s.value)){await d("/download",{replace:!0});return}g.value=!0,l.value&&(document.body.classList.add(_),H(l.value).catch(()=>{}))}),T(()=>{document.body.classList.remove(_)});const k=async()=>{w(),await d("/download")},D=async()=>{if(!e.value){if(!f.value){n.value="ç¾å¨ã®ãã¬ãã¥ã¼ç°å¢ã§ã¯ã«ã¿ãã°ã®éä¿¡ã忢ãã¦ãã¾ããå
¥åã»ç¢ºèªç»é¢ã®ã¿ã確èªããã ãã¾ãã";return}e.value=!0,n.value="";try{const o=l.value?await K(l.value,z):"";if(!o)throw new Error("è¿·æéä¿¡é²æ¢æ©è½ã®è¨å®ãå®äºãã¦ãã¾ããã");await $fetch(f.value,{method:"POST",body:{...s.value,recaptchaToken:o}}),V("catalog_download_complete"),C(),y(),await d("/download/thanks")}catch(o){const a=o;n.value=a.data?.message||a.statusMessage||a.message||"éä¿¡ã§ãã¾ããã§ãããæéãããã¦ãããä¸åº¦ã試ããã ããã"}finally{e.value=!1}}};return(o,a)=>{const x=A;return i(),c("main",L,[g.value?(i(),c("section",M,[a[2]||(a[2]=t("p",{class:"contact-step-page__label"},"Catalog Download",-1)),a[3]||(a[3]=t("h1",{id:"catalog-confirm-title"},"éä¿¡å
容ã®ã確èª",-1)),a[4]||(a[4]=t("p",null,"以ä¸ã®å
容ã§ãããããã°ãããã®å
容ã§éä¿¡ããããæ¼ãã¦ãã ããã",-1)),R(x,{current:2}),t("dl",P,[a[0]||(a[0]=t("dt",null,"伿¥å",-1)),t("dd",null,r(b(s).company||"ï¼å
¥åãªãï¼"),1),a[1]||(a[1]=t("dt",null,"ã¡ã¼ã«ã¢ãã¬ã¹",-1)),t("dd",null,r(b(s).email),1)]),n.value?(i(),c("p",j,r(n.value),1)):U("",!0),a[5]||(a[5]=t("p",{class:"contact-recaptcha-notice"},[u(" ãã®ãµã¤ãã¯reCAPTCHAã«ãã£ã¦ä¿è·ããã¦ãããGoogleã® "),t("a",{href:"https://policies.google.com/privacy",target:"_blank",rel:"noopener noreferrer"},"ãã©ã¤ãã·ã¼ããªã·ã¼"),u("㨠"),t("a",{href:"https://policies.google.com/terms",target:"_blank",rel:"noopener noreferrer"},"å©ç¨è¦ç´"),u("ãé©ç¨ããã¾ãã ")],-1)),t("div",q,[t("button",{class:"btn btn-secondary",type:"button",disabled:e.value,onClick:k},"å
¥åå
容ãä¿®æ£ãã",8,I),t("button",{class:"btn btn-primary",type:"button",disabled:e.value,onClick:D},r(e.value?"éä¿¡ãã¦ãã¾ãâ¦":"ãã®å
容ã§éä¿¡ãã"),9,O)])])):(i(),c("p",W,"å
¥åå
容ã確èªãã¦ãã¾ãã"))])}}});export{ta 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.