PageSourceSearch

https://www.leidenvrijwilligerswerk.nl/js/js/YesNoModalButton.js

js leidenvrijwilligerswerk.nl collected 2026-10-08 06:41:30 UTC 3,395 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8622,3877],{5034:(t,e,o)=>{o.r(e),o.d(e,{default:()=>s});const n={props:{showClose:{default:!0},footerClass:{type:String,default:"modal-card-foot"},showFooter:{type:Boolean,default:!0}},created:function(){var t=this;this.escapeHandler=function(e){"Escape"===e.key&&t.close()},document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vh"),document.addEventListener("keydown",this.escapeHandler)},destroyed:function(){document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.removeEventListener("keydown",this.escapeHandler)},methods:{close:function(){this.$emit("close")}}};const s=(0,o(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal is-active"},[e("div",{staticClass:"modal-background"}),t._v(" "),e("div",{staticClass:"modal-card",on:{click:function(t){t.stopPropagation()}}},[e("header",{staticClass:"modal-card-head"},[t._t("header"),t._v(" "),t.showClose?e("button",{staticClass:"delete",on:{click:t.close}}):t._e()],2),t._v(" "),e("section",{staticClass:"modal-card-body"},[t._t("body")],2),t._v(" "),t.showFooter?e("footer",{class:t.footerClass},[t._t("footer")],2):t._e()])])}),[],!1,null,null,null).exports},3220:(t,e,o)=>{o.r(e),o.d(e,{default:()=>s});const n={components:{"modal-component":o(5034).default},data:function(){return{loading:!1,open:!1}},methods:{closeModal:function(){this.open=!1},onConfirm:function(){this.loading=!0,this.$refs.button.firstChild.click(),this.$emit("confirm"),this.open=!1}}};const s=(0,o(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"inline-block has-cursor-pointer",on:{click:function(e){t.open=!t.open},mouseover:function(e){return t.$refs.button.firstChild.focus()},mouseleave:function(e){return t.$refs.button.firstChild.blur()}}},[e("div",{ref:"button",staticClass:"no-pointer-events inline-block"},[t._t("button")],2)]),t._v(" "),t.open?e("modal-component",{attrs:{"show-close":!1},on:{close:t.closeModal},scopedSlots:t._u([{key:"header",fn:function(){return[e("h3",[t._t("header")],2)]},proxy:!0},{key:"body",fn:function(){return[e("h3",[t._t("body")],2)]},proxy:!0}],null,!0)},[t._v(" "),t._v(" "),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"button is-link",on:{click:t.closeModal}},[t._v("Nee")]),t._v(" "),e("a",{staticClass:"button is-danger",class:{"is-loading":t.loading},on:{click:t.onConfirm}},[t._v("Ja\n            ")])])]):t._e()],1)}),[],!1,null,null,null).exports},4486:(t,e,o)=>{function n(t,e,o,n,s,i,r,l){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=o,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),r?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=a):s&&(a=l?function(){s.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:s),a)if(c.functional){c._injectStyles=a;var d=c.render;c.render=function(t,e){return a.call(e),d(t,e)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,a):[a]}return{exports:t,options:c}}o.d(e,{A:()=>n})}}]);
2//# sourceMappingURL=YesNoModalButton.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.