import{r,j as t}from"./router.chunk.YsRm4bSN.js";import{aJ as s,az as o,J as e}from"./main.chunk.N-eZ2ybB.js";import{k as i}from"./forms.chunk.Bz8aaTWe.js";import{d as c}from"./template.chunk.DPZ5D-on.js";import{O as m}from"./option-keys.chunk.CTqS8AT8.js";import{P as n,a as p}from"./pdf-receipt.chunk.DweY_jAg.js";import{u}from"./template-layout-context.chunk.B1U8ZWnY.js";import{a}from"./use-update-dirty-state.chunk.Bh3v76yr.js";import"./react-jsx-runtime.chunk.ATkk6v2S.js";import"./react.js";import"./react-dom-client.chunk.BMQ1litG.js";import"./react-dom.js";import"./wordpress.chunk.BVds2GcU.js";import"./pdf-core.chunk.D33I_Wdh.js";import"./ui-radix.chunk.Xzokq_Gv.js";import"./utils.chunk.C1IATKsN.js";import"./icons.chunk.BwnSC3zE.js";import"./date-utils.chunk.DWRtWTmT.js";import"./radio-group.chunk.BTBtVnZk.js";import"./separator.chunk.3HcpyIlz.js";import"./media-field.chunk.B--jhwMa.js";import"./media.chunk.BUcAGRSV.js";import"./charts.chunk.BbweDdoQ.js";import"./range-slider-field.chunk.lLx6oBQy.js";import"./pro-color-picker-input.chunk.c0Q1A8Ua.js";import"./pro-badge.chunk.PstHsVdU.js";import"./editor-field.chunk.851uyGBn.js";import"./use-currency.chunk.QE--bLc6.js";import"./pro-checkbox-input.chunk.CXHxe_1k.js";const j=()=>{const j=r.useRef(null),k=s(m.PDF_ANNUAL_RECEIPT_TEMPLATE),h=i({resolver:e(p)}),{registerForm:d}=u();r.useEffect(()=>{const r=d(m.PDF_ANNUAL_RECEIPT_TEMPLATE,h);return()=>{r()}},[d]),a(h);const f=r.useMemo(()=>k.data?k.data:null,[k.data]);return k.isLoading||k.isPending?t.jsx(o,{}):t.jsx(c,{form:h,ref:j,children:t.jsx(n,{pdfReceiptTemplate:f,isAnnualReceiptTemplate:!0})})};export{j as default};
