PageSourceSearch

https://www.bud.hu/build/assets/Button-B3uI-XbI.js

js bud.hu collected 2026-09-24 18:22:05 UTC 4,315 bytes, 1 lines download raw bytes

1import{_ as x,P as w,L as C,K as k,Y as D,M as O,r as l,c as p,o as i,w as s,b as r,a as e,d as _,e as d,t as c,b2 as P,F as B}from"./app-D8OumE21.js";import{d as M}from"./dialogDragClose-Blif7TPl.js";const T={name:"ModalEmbedded",setup(){},components:{DialogPanel:O,Dialog:D,TransitionChild:k,TransitionRoot:C,ButtonComponent:w},props:{item:{type:Object,required:!0},isOpen:{type:Boolean,default:!1}},mixins:[M],data(){return{}},created(){},methods:{toggleVisible(){this.$emit("popupClose")},buttonClick(n){n&&(n.startsWith(window.location.origin)||n.startsWith("/")?this.$inertia.visit(n):window.open(n,"_blank"))}},mounted(){},computed:{hasButtons(){return!!(this.item.instance_data.button1_text||this.item.instance_data.button2_text)}}},V={class:"fixed inset-0 overflow-y-auto"},E={class:"flex flex-col gap-6 min-h-0"},j={class:"flex items-center gap-6"},L={key:0,class:"min-h-[96px] min-w-[96px] h-[96px] w-[96px]"},N=["src","alt"],R={class:"text-h4 text-secondary font-bold"},F=["innerHTML"],H={key:0,class:"rounded-[8px] border border-solid border-border-secondary flex flex-cols justify-between items-center bg-surface-secondary p-6"},S={class:"text-body3 font-bold"},W={class:"text-body3 font-bold"},Y={class:"text-body3 text-neutral-600 shrink-0"},q={key:0,class:"absolute top-5 right-5 w-6 h-6 flex justify-center items-center cursor-pointer"};function z(n,o,t,h,f,a){const u=l("TransitionChild"),m=l("button-component"),y=l("DialogPanel"),g=l("Dialog"),v=l("TransitionRoot");return i(),p(v,{appear:"",show:t.isOpen,as:"template"},{default:s(()=>[r(g,{as:"div",class:"relative z-[1000]",onClose:a.toggleVisible},{default:s(()=>[r(u,{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s(()=>o[3]||(o[3]=[e("div",{class:"fixed inset-0 backdrop-blur-[2px] bg-neutral-1000/65"},null,-1)])),_:1,__:[3]}),e("div",V,[r(u,{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:s(()=>[r(y,{class:"w-full md:w-8/12 lg:w-7/12 xl:w-5/12 !max-h-[85vh] rounded-[16px] realtive modal-content fixed top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 p-8 bg-surface-primary flex flex-col"},{default:s(()=>[e("div",E,[e("div",j,[t.item.module_image_str?(i(),_("div",L,[e("img",{class:"h-full w-full object-cover rounded-[8px]",src:t.item.module_image_str,alt:t.item.subtitle},null,8,N)])):d("",!0),e("p",R,c(t.item.subtitle),1)]),e("div",{class:"rounded-[16px] wysiwyg overflow-y-auto min-h-0 max-h-[60vh]",innerHTML:t.item.instance_data.text},null,8,F),a.hasButtons?(i(),_("div",H,[t.item.instance_data.button1_text?(i(),p(m,{key:0,variant:"primary-brand",onClick:o[0]||(o[0]=b=>a.buttonClick(t.item.instance_data.button1_url))},{default:s(()=>[e("span",S,c(t.item.instance_data.button1_text),1)]),_:1})):d("",!0),t.item.instance_data.button2_text?(i(),p(m,{key:1,variant:"primary-brand",onClick:o[1]||(o[1]=b=>a.buttonClick(t.item.instance_data.button2_url))},{default:s(()=>[e("span",W,c(t.item.instance_data.button2_text),1)]),_:1})):d("",!0)])):d("",!0),e("div",Y,c(t.item.description),1)]),t.item.instance_data.closable==1?(i(),_("div",q,[e("img",{src:"/assets/icons/x-icon.svg",alt:"logo",class:"w-full h-full",onClick:o[2]||(o[2]=b=>a.toggleVisible())})])):d("",!0)]),_:1})]),_:1})])]),_:1},8,["onClose"])]),_:1},8,["show"])}
1const G=x(T,[["render",z]]),K={name:"PopupDefault",mixins:[P],components:{ModalEmbedded:G},data(){return{moduleData:this.module.instance_data,modalOpen:!1}},methods:{closeModal(){this.modalOpen=!1},buttonPopupClick(){this.modalOpen=!0}}},A=["alt"];function I(n,o,t,h,f,a){const u=l("ModalEmbedded");return i(),_(B,null,[e("button",{onClick:o[0]||(o[0]=(...m)=>a.buttonPopupClick&&a.buttonPopupClick(...m)),class:"button-component primary-brand min-w-[108px] py-0"},[e("span",null,c(n.module.instance_data.embed_button_text),1),e("img",{src:"/assets/icons/arrow_forward.svg",alt:n.trans("bud.show_more")},null,8,A)]),r(u,{item:this.module,onPopupClose:a.closeModal,isOpen:f.modalOpen},null,8,["item","onPopupClose","isOpen"])],64)}const U=x(K,[["render",I]]);export{U 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.