1import{c as L,R as M,b as N,A as K,ax as S,t as T}from"./entry-BamniLrv.js";import{d as x,h as C,r as u,p as F,c as p,D as E,f as I,o as f,a as O,i as k,e as B,u as d,n as H,g as A}from"./vendors-BEoIbp2n.js";const R={class:"flex h-max w-full items-center justify-center p-2"},D=["title","height","onload"],U=x({__name:"EmailModal",async setup(b){let t,s;const{country:m,language:g}=L(),{customer:e,userData:l}=([t,s]=C(()=>M()),t=await t,s(),t),{ts:_}=N(),r=u(),i=u("0px"),h=a=>{i.value=a.height};F(i,a=>v(a));const v=a=>{const o=Number.parseInt(a.replaceAll("px",""));isNaN(o)||o<303&&window.scrollTo({top:0,behavior:"smooth"})},y=p(()=>{var a,n;return((a=e==null?void 0:e.value)==null?void 0:a.gender)==="male"?_("pdp.reserveInStore.personalInfo.gender.mr"):((n=e==null?void 0:e.value)==null?void 0:n.gender)==="female"?_("pdp.reserveInStore.personalInfo.gender.ms"):""}),V=p(()=>{var a;return{isoCode:m,language:g,action:"",userDetails:{data:[{Key:"nickname",Label:389,IsVisible:!0,Info:((a=l==null?void 0:l.value)==null?void 0:a.nickname)??null},{Key:"title",Label:329,IsVisible:!0,Info:y.value},{Key:"name",Label:156,IsVisible:!0,Info:(e==null?void 0:e.value.firstName)??""},{Key:"furiganaName",Label:157,IsVisible:!1,Info:null},{Key:"surname",Label:266,IsVisible:!0,Info:(e==null?void 0:e.value.lastName)??null},{Key:"furiganaSurname",Label:267,IsVisible:!1,Info:null},{Key:"email",Label:96,IsVisible:!0,Info:(e==null?void 0:e.value.email)??null},{Key:"gender",Label:114,IsVisible:!0,Info:e==null?void 0:e.value.gender},{Key:"birthday",Label:27,IsVisible:!0,Info:(e==null?void 0:e.value.dateOfBirth)??""},{Key:"country",Label:55,IsVisible:!0,Info:m}],statusCode:200}}}),c=u(!1),w=()=>{var n;if(!((n=r.value)!=null&&n.contentWindow))return;const a=JSON.parse(JSON.stringify(V.value));r.value.contentWindow.postMessage(a,"https://contactuspageembedded.armani.com")};return E(()=>{K(window,"message",a=>{a.origin==="https://contactuspageembedded.armani.com"&&(c.value=!0,a.data.action==="resize"&&h(a.data))})}),(a,n)=>{const o=S;return f(),I("div",R,[d(c)?k("",!0):(f(),O(o,{key:0})),B("iframe",{id:"contactFrame",ref_key:"contactFrame",ref:r,title:a.$ts("customerService.contactUs"),src:"https://contactuspageembedded.armani.com/Armani/ContactForm.html",frameborder:"0",class:H(["w-full md:mt-12",[{hidden:!d(c)}]]),height:d(i),onload:w()},null,10,D)])}}}),z={};function G(b,t){const s=U;return f(),I("div",null,[A(s)])}const X=T(z,[["render",G]]);export{X as default}; 2//# sourceMappingURL=contact-form-CkC46gnI.js.map
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.