var G=Object.defineProperty;var O=(a,o,e)=>o in a?G(a,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[o]=e;var F=(a,o,e)=>O(a,typeof o!="symbol"?o+"":o,e);import{n as I,H as _,a2 as W,a3 as S,t as d,q as l,a4 as v,A as f,a5 as b,v as r,E as D,p as A,x as k,y as u,C as R,F as E,G as K,a6 as P,_ as B,u as z,z as V,J as U,K as j,R as q,r as T,B as L,I as J,D as Z}from"./C-p8iwFB.js";import{E as H}from"./0J232JST.js";import{H as Q,C as M}from"./CeX-HMq3.js";import{_ as X}from"./CLiMtjFX.js";import{M as Y}from"./8PNSg5hx.js";const ee=["onKeydown"],te=["onKeydown"],ne={ref:"dropdown"},oe=["onClick","onKeydown"],se=I({__name:"AtomSelect",props:{options:{},value:{},placeholder:{},disabled:{type:Boolean},invalid:{},backgroundGrey:{type:Boolean},backgroundRed:{type:Boolean}},setup(a,{emit:o}){const e=a,i=o,t=_(e.value?e.value:e.placeholder?null:e.options.length>0?e.options[0]:null),s=_(!1),y=()=>{e.disabled||(s.value=!s.value)},w=n=>{t.value=n,s.value=!1,i(H.INPUT_CHANGE,n)},g=()=>{i(H.CLOSE,s.value),s.value=!1},c=()=>{const n=e.options.findIndex(m=>m===t.value);n{const n=e.options.findIndex(m=>m===t.value);n{const x=W("click-outside");return S((l(),d("div",{class:f(["wrapper mb-24",{"is-opened":s.value}]),onKeydown:[v(b(g,["exact"]),["esc"]),v(b(g,["shift"]),["tab"]),v(b(g,["exact"]),["tab"])]},[r("div",{class:f(["input",{"is-opened":s.value,disabled:n.disabled,"background-grey":n.backgroundGrey,"bg-primary-500":n.backgroundRed,"bg-base-white":!n.backgroundGrey&&!n.backgroundRed,...n.invalid}]),tabindex:"0",onClick:y,onKeydown:[v(b(y,["exact","prevent"]),["enter"]),v(b(y,["exact","prevent"]),["space"]),v(b(p,["prevent"]),["down"]),v(b(c,["prevent"]),["up"])]},[r("span",{class:f(["selected",{placeholder:n.placeholder&&!t.value}])},u(t.value?t.value.text||t.value.value.text:n.placeholder),3),n.disabled?k("",!0):(l(),A(R,{key:0,name:"arrow-down",class:f(["arrow",{dropped:s.value}])},null,8,["class"]))],42,te),S(r("ul",ne,[(l(!0),d(E,null,K(n.options,(h,C)=>(l(),d("li",{key:C,class:f({active:t.value===h}),tabindex:"0",onClick:$=>w(h),onKeydown:v(b($=>w(h),["exact","prevent"]),["enter"])},u(h.text),43,oe))),128))],512),[[P,s.value]]),D(n.$slots,"default",{},void 0,!0)],42,ee)),[[x,g]])}}}),Fe=B(se,[["__scopeId","data-v-b09b7cde"]]),ae={class:"file-input"},re=["id","accept"],le=["for"],ie={class:"text-grey-700"},ce={key:0,class:"mt-8"},de=["innerHTML"],ue=I({__name:"AtomFileInput",props:{inputId:{},accept:{},onload:{type:Function},backgroundGrey:{type:Boolean}},setup(a){const{t:o}=z(),e=a,i=_(o("global.forms.notChosen")),t=_(!1),s=_(""),y=_(null),w=c=>{var n;const p=((n=y.value)==null?void 0:n.files)||[];for(const m of p){if(e.accept){const C=g(m.name),$=e.accept;if($.includes(C))t.value=!1;else{t.value=!0,s.value=o("global.forms.errorFormat",{filename:m.name,formats:$.toUpperCase().replaceAll(",",", ")});continue}}const x=c.target.files[0];i.value=x.name;const h=new FileReader;h.onload=e.onload||null,h.readAsBinaryString(x)}},g=c=>{const p=/[^.]+$/.exec(c);return p&&p.length?`${p[0]}`:""};return(c,p)=>(l(),d("div",null,[r("div",ae,[r("input",{id:c.inputId,ref_key:"docRef",ref:y,class:"visually-hidden",type:"file",accept:c.accept,onChange:w},null,40,re),r("label",{class:f(["btn text-nowrap btn-outline-primary",{"background-grey":c.backgroundGrey}]),for:c.inputId},u(V(o)("global.forms.chooseFile")),11,le),r("span",ie,u(i.value),1)]),t.value?(l(),d("div",ce,[r("span",{class:"text-primary-500 text-body-extra-small",innerHTML:s.value},null,8,de)])):k("",!0)]))}}),Se=B(ue,[["__scopeId","data-v-cb9d1b64"]]);class pe extends Q{constructor(){super(...arguments);F(this,"api",{webapi:{branchWannabeCreate:(e,i={})=>this.request({path:"/webapi/v1/branch-wannabe/create",method:"POST",body:e,type:M.Json,format:"json",...i}),zboxWannabeCreate:(e,i={})=>this.request({path:"/webapi/v1/zbox-wannabe/create",method:"POST",body:e,type:M.Json,format:"json",...i})}})}}const N=()=>{const{baseUrl:a}=U(j.WEB_API_API);return new pe({baseUrl:`${a}`}).api.webapi},Te=async a=>N().branchWannabeCreate(a).then(o=>o).catch(()=>null),Le=async a=>N().zboxWannabeCreate(a).then(o=>o).catch(()=>null),ve={key:0,class:"text-title-red"},be={class:"heading"},me={class:"preserve-lines"},he=["innerHTML"],fe={class:"advantage-section"},_e={class:"texts-wrapper mt-48"},ye={key:0,class:"mb-lg-48 mb-32"},ge={key:0,class:"text-button-big mb-24"},ke=["innerHTML"],we=I({__name:"Advantages",props:{items:{}},setup(a){const o=_(!1);return q(()=>{const e=globalThis.$nuxt;e&&e.$on("showNotificationBar",i=>{o.value=i})}),(e,i)=>(l(),A(X,{content:e.items,class:"container"},{default:T(({data:t})=>[t.topBlockTitle?(l(),d("p",ve,u(t.topBlockTitle),1)):k("",!0),r("div",be,[r("h2",null,[r("span",me,u(t.headingTitle),1)]),r("div",{class:"heading-description text-grey-700 text-body-big",innerHTML:e.$renderStoryblokRichtext(t.headingDescription)},null,8,he)]),r("div",fe,[r("div",{class:f(["image-advantage-wrapper",{"add-space":o.value}])},[L(Y,{picture:t.picture,"video-url-path":t.videoLink},null,8,["picture","video-url-path"])],2),r("div",_e,[t.title?(l(),d("h4",ye,u(t.title),1)):k("",!0),(l(!0),d(E,null,K(t.items,s=>(l(),d("div",{key:s._uid,class:"advantage"},[L(R,{lg:"",name:s.icon,class:"text-primary-500 mb-24"},null,8,["name"]),s.title?(l(),d("p",ge,u(s.title),1)):k("",!0),r("div",{class:"text-grey-700 mb-0",innerHTML:e.$renderStoryblokRichtext(s.description)},null,8,ke)]))),128)),e.$renderStoryblokLink(t.btnLink)?(l(),A(J,{key:1,link:e.$renderStoryblokLink(t.btnLink),outline:""},{default:T(()=>[Z(u(t.textLink),1)]),_:2},1032,["link"])):k("",!0)])])]),_:1},8,["content"]))}}),He=B(we,[["__scopeId","data-v-144e08ed"]]);export{Fe as A,Se as a,He as b,Te as c,Le as d}; //# sourceMappingURL=CLwjSfuO.js.map