※メールマガジンの配信停止については、当社が配信するメールマガジンに掲載している当該リンクから、登録者本人の希望によって可能となります。",eg:"例:sample@example.com"},{id:113,key:"email_confirmation",title:"email_confirmation",required:!0,subject:"メールアドレス(確認用)",type:"free",content:"email",eg:"例:sample@example.com",preventPaste:!0}]),t=Object(l["A"])(!0),e=Object(l["A"])({}),a=Object(l["A"])({}),n=Object(l["A"])(""),S=Object(W["c"])(),r=Object(q["b"])(),c="https://zipcloud.ibsnet.co.jp/api/search?zipcode=",U=function(A){uA()(c+A,{timeout:1e4,nonce:"",referrerPolicy:""}).then((function(A){return A.json()})).then((function(p){400!==p.status&&null!==p.results&&(n.value=A,o("prefecture",p.results[0]["address1"]),o("address_1",p.results[0]["address2"]),o("address_2",p.results[0]["address3"]),e.value["prefecture"]=p.results[0]["address1"],e.value["address_1"]=p.results[0]["address2"],e.value["address_2"]=p.results[0]["address3"])}))["catch"]((function(A){console.warn(A)}))};Object(l["M"])((function(){for(var A=r.getters.post.data||{},l=!1,e=0;e
=0?p.content:"text",content:p.content,onChange:function(A){return o(p.key,A)},modelValue:A.$store.getters.post.data[p.key],customMessage:a.value[p.key]},null,8,["preventPaste","label","required","name","placeholder","hint","type","content","onChange","modelValue","customMessage"])):Object(l["e"])("",!0),"single"==p.type?(Object(l["v"])(),Object(l["d"])(L,{key:3,groups:!0,label:p.subject,required:p.required,options:p.choices,name:p.title,onChange:function(A){return o(p.key,A)},modelValue:A.$store.getters.post.data[p.key]},null,8,["label","required","options","name","onChange","modelValue"])):Object(l["e"])("",!0),"multi"==p.type?(Object(l["v"])(),Object(l["d"])(M,{key:4,label:p.subject,required:p.required,options:p.choices,name:p.title,onChange:function(A){return o(p.key,A)},modelValue:Object.values(A.$store.getters.post.data[p.key]||{})},null,8,["label","required","options","name","onChange","modelValue"])):Object(l["e"])("",!0),"single-dropdown"==p.type?(Object(l["v"])(),Object(l["d"])(Ep,{key:5,label:p.subject,required:p.required,options:p.choices,name:p.title,onChange:function(A){return o(p.key,A)},modelValue:A.$store.getters.post.data[p.key]},null,8,["label","required","options","name","onChange","modelValue"])):Object(l["e"])("",!0)]}))})),128)),Object(l["g"])("div",gp,[Object(l["j"])(G,{type:"submit",onClick:T,text:"戻る",class:"button-submit disabled mt2 mr"}),Object(l["j"])(G,{type:"submit",onClick:i,text:"登録内容を確認する",class:"button-submit mt2",disabled:t.value},null,8,["disabled"])])])])}}});const Xp=fp;var Qp=Xp,vp=t("2909"),Bp=(t("a15b"),t("277d"),t("0d03"),t("d3b7"),t("fd32")),Yp=t.n(Bp),Fp={postback:function(){var A=Object(u["a"])(Object(b["a"])().mark((function A(p,t,l){var e,a,n,S=arguments;return Object(b["a"])().wrap((function(A){while(1)switch(A.prev=A.next){case 0:return e=S.length>3&&void 0!==S[3]&&S[3],a=JSON.stringify(t),n={memory_state:p.memoryState,memory_name:p.memoryName,type:"postback",user_id:p.userId,timestamp:(new Date).getTime(),postback:a},A.prev=3,A.next=6,fetch(p.postbackUrl,{method:"POST",body:JSON.stringify(n),headers:{"Content-Type":"application/x-www-form-urlencoded"}});case 6:A.sent,A.next=14;break;case 9:throw A.prev=9,A.t0=A["catch"](3),console.error("LIFF postback error."),console.error(A.t0),A.t0;case 14:if(!l){A.next=17;break}return A.next=17,Yp.a.sendMessages([{type:"text",text:l}]).then((function(){e&&Yp.a.closeWindow()}))["catch"]((function(A){console.error("LIFF SendMessages error."),console.error(A)}));case 17:case"end":return A.stop()}}),A,null,[[3,9]])})));function p(p,t,l){return A.apply(this,arguments)}return p}(),close:function(){var A=Object(u["a"])(Object(b["a"])().mark((function A(){return Object(b["a"])().wrap((function(A){while(1)switch(A.prev=A.next){case 0:Yp.a.closeWindow();case 1:case"end":return A.stop()}}),A)})));function p(){return A.apply(this,arguments)}return p}()},hp=Fp,wp=function(A){return Object(l["y"])("data-v-ddefbb74"),A=A(),Object(l["w"])(),A},Gp={id:"#cloak"},Dp=wp((function(){return Object(l["g"])("h1",{class:"heading"},"入力内容確認",-1)})),_p=wp((function(){return Object(l["g"])("div",{class:"padding-width"},[Object(l["g"])("p",null,"入力内容をご確認ください。")],-1)})),$p={class:"mt2"},At={class:"item-header-container padding-width"},pt={class:"mt1 item-sub-header-container"},tt={class:"mt2 padding-width"},lt={class:"center-container"},et=Object(l["k"])({__name:"ConfirmView",setup:function(A){var p=Object(q["b"])(),t=Object(W["c"])(),e=Object(l["n"])("liffSettings"),a=p.getters.post,n=Object(l["A"])(a.data||{}),S=(Object(l["A"])(Object.keys(a.data||{})),Object(l["A"])([{id:1,key:"q1",subject:"「ヒロインメイク マイクロマスカラ アドバンストフィルム」は知っていましたか?"},{id:2,key:"q2",subject:"現在、あなたが使用しているマスカラのタイプはどれ?"},{id:3,key:"q3",subject:"現在、あなたが使用しているマスカラのブランドはどれ?"},{id:100,subject:"氏名",key:"fullname"},{id:102,key:"gender",subject:"性別"},{id:103,key:"dob",subject:"生年月日"},{id:106,key:"zipcode",subject:"郵便番号"},{id:107,key:"prefecture",subject:"都道府県"},{id:108,key:"address_1",subject:"市区郡"},{id:109,key:"address_2",subject:"町名・番地"},{id:110,key:"address_3",subject:"建物名"},{id:111,key:"tel",subject:"電話番号"},{id:112,key:"email",subject:"メールアドレス"},{id:113,key:"email_confirmation",subject:"メールアドレス(確認用)"}]));Object(l["s"])((function(){var A=p.getters.post;n.value=A.data,0==Object.keys(n.value).length&&t.push("/")}));var r=function(A,p){var t=Object(vp["a"])(p);return p.indexOf("その他")>=0&&(t[p.indexOf("その他")]=t[p.indexOf("その他")]+": "+n.value[A+"_other"]),t.join(", ")},c=function(){t.push("personal")},U=function(){var A=p.getters.post.data||[];A["id"]="20230301";var l=A["fullname"].split(" "),a=A["dob"].split(" ");A["firstName"]=l[1]||"",A["lastName"]=l[0]||"",A["dob_y"]=(a[0]||"").replace("年",""),A["dob_m"]=(a[1]||"").replace("月",""),A["dob_d"]=(a[2]||"").replace("日",""),delete A["fullname"],delete A["dob"],hp.postback(e,A,"応募フォームの回答を送信しました",!1),t.push("success")};return function(A,p){return Object(l["v"])(),Object(l["f"])("div",Gp,[Object(l["g"])("section",null,[Dp,_p,(Object(l["v"])(!0),Object(l["f"])(l["a"],null,Object(l["B"])(S.value,(function(p,t){return Object(l["C"])(A.$slots,"default",{key:t},(function(){return[Object(l["g"])("div",$p,[Object(l["g"])("div",At,[Object(l["g"])("div",pt,[Object(l["g"])("p",null,Object(l["F"])(p.subject),1)])]),Object(l["g"])("div",tt,[Object(l["g"])("div",null,Object(l["F"])(Array.isArray(n.value[p.key])?r(p.key,n.value[p.key]):n.value[p.key]),1)])])]}))})),128)),Object(l["g"])("div",lt,[Object(l["j"])(G,{type:"submit",onClick:c,text:"戻る",class:"button-submit disabled mt2 mr"}),Object(l["j"])(G,{type:"submit",onClick:U,text:"送信する",class:"button-submit mt2"})])])])}}});t("d819");const at=S()(et,[["__scopeId","data-v-ddefbb74"]]);var nt=at,St={id:"#cloak"},rt=Object(l["h"])('',1),ct=[rt],Ut=Object(l["k"])({__name:"SuccessView",setup:function(A){var p=Object(q["b"])(),t=Object(W["c"])();return Object(l["s"])((function(){var A=p.getters.post,l=A.data||{};0==Object.keys(l).length&&t.push("/")})),function(A,p){return Object(l["v"])(),Object(l["f"])("div",St,ct)}}});const Wt=Ut;var Kt=Wt,jt=[{path:"/",name:"input",component:jA},{path:"/personal",name:"personal",component:Qp},{path:"/confirm",name:"confirm",component:nt},{path:"/success",name:"success",component:Kt}],bt=Object(W["a"])({history:Object(W["b"])(),routes:jt,scrollBehavior:function(A,p,t){return t||{top:0}}}),ut=bt,qt=Object(q["a"])({state:{post:{data:{}}},mutations:{setPost:function(A,p){A.post=p}},actions:{changePost:function(A,p){A.commit("setPost",p)}},getters:{post:function(A){return A.post}},modules:{}}),it=(t("1e09"),{memoryState:"liff",memoryName:"isehan_kissme_survey",postbackUrl:"https://rebot.jp/api/line/dea07c602cb74bb8b34d81585bec3f36/liff/8df06b8ff0c64e0da939fd5bbcab71c7/receive",liffId:"1653866966-VwpaAp5J",userId:""}),Tt=Object(l["c"])(U).use(qt).use(ut).provide("liffSettings",it);Yp.a.init({liffId:it.liffId}).then((function(){var A=Yp.a.getContext();A&&(it.userId=A.userId),Tt.mount("#app")}))["catch"]((function(A){Yp.a.isInClient()?console.error(A):(console.warn("Here is not in LINE. That's why this liff-app does not work correctly."),Tt.mount("#app"))}))},d819:function(A,p,t){"use strict";t("b383")},dba7:function(A,p,t){"use strict";t("7a07")},e685:function(A,p,t){var l=t("24fb");p=l(!1),p.push([A.i,".item-input-other[data-v-176f8792]{margin-left:1rem}",""]),A.exports=p}});
//# sourceMappingURL=/js/app.2233e230.js.mapWe're sorry but アンケート doesn't work properly without JavaScript enabled. Please enable it to continue.