(function(){"use strict";function f(t,n,e,i,r,s,g,a){var o=typeof t=="function"?t.options:t;return n&&(o.render=n,o.staticRenderFns=e,o._compiled=!0),{exports:t,options:o}}const l={__name:"Web2PrintBtn",props:{htmlPageString:String,cssPath:String,printFormat:String,pageId:String},setup(t){const{htmlPageString:n,cssPath:e,printFormat:i,pageId:r}=t;async function s(){const a={method:"POST",body:JSON.stringify({html:n,cssPath:e,printFormat:i,pageId:r})},c=await(await fetch("/web2print.json",a)).json();console.log(c),c.success&&window.panel.view.reload()}return{__sfc:!0,getPdf:s}}};var u=function(){var n=this,e=n._self._c,i=n._self._setupProxy;return e("k-button",{attrs:{variant:"filled"},on:{click:function(r){return i.getPdf()}}},[n._v("Générer")])},_=[],d=f(l,u,_);const p=d.exports;window.panel.plugin("studio-variable/web2print",{fields:{web2print:p}})})();