@pdfme/ui 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +24 -12
- package/dist/index.umd.js +2 -2
- package/dist/types/contexts.d.ts +2 -1
- package/package.json +1 -1
- package/src/i18n.ts +11 -0
package/dist/index.es.js
CHANGED
@@ -8918,7 +8918,8 @@ We.object({
|
|
8918
8918
|
"schemas.table.columnStyle": We.string(),
|
8919
8919
|
"schemas.date.format": We.string(),
|
8920
8920
|
"schemas.select.options": We.string(),
|
8921
|
-
"schemas.select.optionPlaceholder": We.string()
|
8921
|
+
"schemas.select.optionPlaceholder": We.string(),
|
8922
|
+
"schemas.radioGroup.groupName": We.string()
|
8922
8923
|
});
|
8923
8924
|
We.enum(["viewer", "form", "designer"]);
|
8924
8925
|
const Q2e = We.enum(["rgb", "cmyk"]).optional();
|
@@ -103277,7 +103278,8 @@ const Sst = {
|
|
103277
103278
|
"schemas.table.columnStyle": "Column Style",
|
103278
103279
|
"schemas.date.format": "Date Format",
|
103279
103280
|
"schemas.select.options": "Options",
|
103280
|
-
"schemas.select.optionPlaceholder": "Enter an option"
|
103281
|
+
"schemas.select.optionPlaceholder": "Enter an option",
|
103282
|
+
"schemas.radioGroup.groupName": "Group Name"
|
103281
103283
|
}, Ist = {
|
103282
103284
|
cancel: "取消",
|
103283
103285
|
close: "关闭",
|
@@ -103345,7 +103347,8 @@ const Sst = {
|
|
103345
103347
|
"schemas.table.columnStyle": "列样式",
|
103346
103348
|
"schemas.date.format": "日期格式",
|
103347
103349
|
"schemas.select.options": "选项",
|
103348
|
-
"schemas.select.optionPlaceholder": "请输入选项"
|
103350
|
+
"schemas.select.optionPlaceholder": "请输入选项",
|
103351
|
+
"schemas.radioGroup.groupName": "组名"
|
103349
103352
|
}, Bst = {
|
103350
103353
|
cancel: "キャンセル",
|
103351
103354
|
close: "閉じる",
|
@@ -103413,7 +103416,8 @@ const Sst = {
|
|
103413
103416
|
"schemas.table.columnStyle": "カラムスタイル",
|
103414
103417
|
"schemas.date.format": "日付形式",
|
103415
103418
|
"schemas.select.options": "オプション",
|
103416
|
-
"schemas.select.optionPlaceholder": "オプションを入力してください"
|
103419
|
+
"schemas.select.optionPlaceholder": "オプションを入力してください",
|
103420
|
+
"schemas.radioGroup.groupName": "グループ名"
|
103417
103421
|
}, Mst = {
|
103418
103422
|
cancel: "취소",
|
103419
103423
|
close: "닫기",
|
@@ -103481,7 +103485,8 @@ const Sst = {
|
|
103481
103485
|
"schemas.table.columnStyle": "열 스타일",
|
103482
103486
|
"schemas.date.format": "날짜 형식",
|
103483
103487
|
"schemas.select.options": "옵션",
|
103484
|
-
"schemas.select.optionPlaceholder": "옵션을 입력하세요"
|
103488
|
+
"schemas.select.optionPlaceholder": "옵션을 입력하세요",
|
103489
|
+
"schemas.radioGroup.groupName": "그룹 이름"
|
103485
103490
|
}, Rst = {
|
103486
103491
|
cancel: "إلغاء",
|
103487
103492
|
close: "إغلاق",
|
@@ -103549,7 +103554,8 @@ const Sst = {
|
|
103549
103554
|
"schemas.table.columnStyle": "أسلوب العمود",
|
103550
103555
|
"schemas.date.format": "تنسيق التاريخ",
|
103551
103556
|
"schemas.select.options": "خيارات",
|
103552
|
-
"schemas.select.optionPlaceholder": "أدخل خيارًا"
|
103557
|
+
"schemas.select.optionPlaceholder": "أدخل خيارًا",
|
103558
|
+
"schemas.radioGroup.groupName": "اسم المجموعة"
|
103553
103559
|
}, Pst = {
|
103554
103560
|
cancel: "ยกเลิก",
|
103555
103561
|
close: "ปิด",
|
@@ -103617,7 +103623,8 @@ const Sst = {
|
|
103617
103623
|
"schemas.table.columnStyle": "สไตล์คอลัมน์",
|
103618
103624
|
"schemas.date.format": "รูปแบบวันที่",
|
103619
103625
|
"schemas.select.options": "ตัวเลือก",
|
103620
|
-
"schemas.select.optionPlaceholder": "กรอกตัวเลือก"
|
103626
|
+
"schemas.select.optionPlaceholder": "กรอกตัวเลือก",
|
103627
|
+
"schemas.radioGroup.groupName": "ชื่อกลุ่ม"
|
103621
103628
|
}, Dst = {
|
103622
103629
|
cancel: "Annulla",
|
103623
103630
|
close: "Chiudi",
|
@@ -103685,7 +103692,8 @@ const Sst = {
|
|
103685
103692
|
"schemas.table.columnStyle": "Stile della Colonna",
|
103686
103693
|
"schemas.date.format": "Formato data",
|
103687
103694
|
"schemas.select.options": "Opzioni",
|
103688
|
-
"schemas.select.optionPlaceholder": "Inserisci un'opzione"
|
103695
|
+
"schemas.select.optionPlaceholder": "Inserisci un'opzione",
|
103696
|
+
"schemas.radioGroup.groupName": "Nome del Gruppo"
|
103689
103697
|
}, Tst = {
|
103690
103698
|
cancel: "Anuluj",
|
103691
103699
|
close: "Zamknij",
|
@@ -103753,7 +103761,8 @@ const Sst = {
|
|
103753
103761
|
"schemas.table.columnStyle": "Styl kolumny",
|
103754
103762
|
"schemas.date.format": "Format daty",
|
103755
103763
|
"schemas.select.options": "Opcje",
|
103756
|
-
"schemas.select.optionPlaceholder": "Wpisz opcję"
|
103764
|
+
"schemas.select.optionPlaceholder": "Wpisz opcję",
|
103765
|
+
"schemas.radioGroup.groupName": "Nazwa grupy"
|
103757
103766
|
}, Ost = {
|
103758
103767
|
cancel: "Abbrechen",
|
103759
103768
|
close: "Schließen",
|
@@ -103821,7 +103830,8 @@ const Sst = {
|
|
103821
103830
|
"schemas.table.columnStyle": "Spaltenstil",
|
103822
103831
|
"schemas.date.format": "Datumsformat",
|
103823
103832
|
"schemas.select.options": "Optionen",
|
103824
|
-
"schemas.select.optionPlaceholder": "Geben Sie eine Option ein"
|
103833
|
+
"schemas.select.optionPlaceholder": "Geben Sie eine Option ein",
|
103834
|
+
"schemas.radioGroup.groupName": "Gruppenname"
|
103825
103835
|
}, _st = {
|
103826
103836
|
cancel: "Cancelar",
|
103827
103837
|
close: "Cerrar",
|
@@ -103889,7 +103899,8 @@ const Sst = {
|
|
103889
103899
|
"schemas.table.columnStyle": "Estilo de columna",
|
103890
103900
|
"schemas.date.format": "Formato de fecha",
|
103891
103901
|
"schemas.select.options": "Opciones",
|
103892
|
-
"schemas.select.optionPlaceholder": "Ingrese una opción"
|
103902
|
+
"schemas.select.optionPlaceholder": "Ingrese una opción",
|
103903
|
+
"schemas.radioGroup.groupName": "Nombre del grupo"
|
103893
103904
|
}, kst = {
|
103894
103905
|
cancel: "Annuler",
|
103895
103906
|
close: "Fermer",
|
@@ -103957,7 +103968,8 @@ const Sst = {
|
|
103957
103968
|
"schemas.table.columnStyle": "Style de colonne",
|
103958
103969
|
"schemas.date.format": "Format de date",
|
103959
103970
|
"schemas.select.options": "Options",
|
103960
|
-
"schemas.select.optionPlaceholder": "Entrez une option"
|
103971
|
+
"schemas.select.optionPlaceholder": "Entrez une option",
|
103972
|
+
"schemas.radioGroup.groupName": "Nom du groupe"
|
103961
103973
|
}, UJ = {
|
103962
103974
|
en: Sst,
|
103963
103975
|
zh: Ist,
|
package/dist/index.umd.js
CHANGED
@@ -39,7 +39,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
39
39
|
*
|
40
40
|
* @author Feross Aboukhadijeh <https://feross.org>
|
41
41
|
* @license MIT
|
42
|
-
*/(function(e){const t=Yv,r=lO,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const re=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(re,H),re.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(re){if(re>i)throw new RangeError('The value "'+re+'" is invalid for option "size"');const H=new Uint8Array(re);return Object.setPrototypeOf(H,s.prototype),H}function s(re,H,G){if(typeof re=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(re)}return l(re,H,G)}s.poolSize=8192;function l(re,H,G){if(typeof re=="string")return f(re,H);if(ArrayBuffer.isView(re))return A(re);if(re==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(Se(re,ArrayBuffer)||re&&Se(re.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(re,SharedArrayBuffer)||re&&Se(re.buffer,SharedArrayBuffer)))return v(re,H,G);if(typeof re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=re.valueOf&&re.valueOf();if(oe!=null&&oe!==re)return s.from(oe,H,G);const me=g(re);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof re[Symbol.toPrimitive]=="function")return s.from(re[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}s.from=function(re,H,G){return l(re,H,G)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(re){if(typeof re!="number")throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function u(re,H,G){return c(re),re<=0?o(re):H!==void 0?typeof G=="string"?o(re).fill(H,G):o(re).fill(H):o(re)}s.alloc=function(re,H,G){return u(re,H,G)};function d(re){return c(re),o(re<0?0:m(re)|0)}s.allocUnsafe=function(re){return d(re)},s.allocUnsafeSlow=function(re){return d(re)};function f(re,H){if((typeof H!="string"||H==="")&&(H="utf8"),!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const G=b(re,H)|0;let oe=o(G);const me=oe.write(re,H);return me!==G&&(oe=oe.slice(0,me)),oe}function p(re){const H=re.length<0?0:m(re.length)|0,G=o(H);for(let oe=0;oe<H;oe+=1)G[oe]=re[oe]&255;return G}function A(re){if(Se(re,Uint8Array)){const H=new Uint8Array(re);return v(H.buffer,H.byteOffset,H.byteLength)}return p(re)}function v(re,H,G){if(H<0||re.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(re.byteLength<H+(G||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return H===void 0&&G===void 0?oe=new Uint8Array(re):G===void 0?oe=new Uint8Array(re,H):oe=new Uint8Array(re,H,G),Object.setPrototypeOf(oe,s.prototype),oe}function g(re){if(s.isBuffer(re)){const H=m(re.length)|0,G=o(H);return G.length===0||re.copy(G,0,0,H),G}if(re.length!==void 0)return typeof re.length!="number"||Ie(re.length)?o(0):p(re);if(re.type==="Buffer"&&Array.isArray(re.data))return p(re.data)}function m(re){if(re>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return re|0}function y(re){return+re!=re&&(re=0),s.alloc(+re)}s.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==s.prototype},s.compare=function(H,G){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),Se(G,Uint8Array)&&(G=s.from(G,G.offset,G.byteLength)),!s.isBuffer(H)||!s.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===G)return 0;let oe=H.length,me=G.length;for(let we=0,Ee=Math.min(oe,me);we<Ee;++we)if(H[we]!==G[we]){oe=H[we],me=G[we];break}return oe<me?-1:me<oe?1:0},s.isEncoding=function(H){switch(String(H).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(H,G){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return s.alloc(0);let oe;if(G===void 0)for(G=0,oe=0;oe<H.length;++oe)G+=H[oe].length;const me=s.allocUnsafe(G);let we=0;for(oe=0;oe<H.length;++oe){let Ee=H[oe];if(Se(Ee,Uint8Array))we+Ee.length>me.length?(s.isBuffer(Ee)||(Ee=s.from(Ee)),Ee.copy(me,we)):Uint8Array.prototype.set.call(me,Ee,we);else if(s.isBuffer(Ee))Ee.copy(me,we);else throw new TypeError('"list" argument must be an Array of Buffers');we+=Ee.length}return me};function b(re,H){if(s.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||Se(re,ArrayBuffer))return re.byteLength;if(typeof re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);const G=re.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&G===0)return 0;let me=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return de(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return ye(re).length;default:if(me)return oe?-1:de(re).length;H=(""+H).toLowerCase(),me=!0}}s.byteLength=b;function C(re,H,G){let oe=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(re||(re="utf8");;)switch(re){case"hex":return L(this,H,G);case"utf8":case"utf-8":return F(this,H,G);case"ascii":return M(this,H,G);case"latin1":case"binary":return T(this,H,G);case"base64":return O(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,H,G);default:if(oe)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),oe=!0}}s.prototype._isBuffer=!0;function w(re,H,G){const oe=re[H];re[H]=re[G],re[G]=oe}s.prototype.swap16=function(){const H=this.length;if(H%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;G<H;G+=2)w(this,G,G+1);return this},s.prototype.swap32=function(){const H=this.length;if(H%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let G=0;G<H;G+=4)w(this,G,G+3),w(this,G+1,G+2);return this},s.prototype.swap64=function(){const H=this.length;if(H%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let G=0;G<H;G+=8)w(this,G,G+7),w(this,G+1,G+6),w(this,G+2,G+5),w(this,G+3,G+4);return this},s.prototype.toString=function(){const H=this.length;return H===0?"":arguments.length===0?F(this,0,H):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(H){if(!s.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H?!0:s.compare(this,H)===0},s.prototype.inspect=function(){let H="";const G=e.INSPECT_MAX_BYTES;return H=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(H+=" ... "),"<Buffer "+H+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(H,G,oe,me,we){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(H))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof H);if(G===void 0&&(G=0),oe===void 0&&(oe=H?H.length:0),me===void 0&&(me=0),we===void 0&&(we=this.length),G<0||oe>H.length||me<0||we>this.length)throw new RangeError("out of range index");if(me>=we&&G>=oe)return 0;if(me>=we)return-1;if(G>=oe)return 1;if(G>>>=0,oe>>>=0,me>>>=0,we>>>=0,this===H)return 0;let Ee=we-me,xe=oe-G;const _e=Math.min(Ee,xe),Pe=this.slice(me,we),Be=H.slice(G,oe);for(let Oe=0;Oe<_e;++Oe)if(Pe[Oe]!==Be[Oe]){Ee=Pe[Oe],xe=Be[Oe];break}return Ee<xe?-1:xe<Ee?1:0};function x(re,H,G,oe,me){if(re.length===0)return-1;if(typeof G=="string"?(oe=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,Ie(G)&&(G=me?0:re.length-1),G<0&&(G=re.length+G),G>=re.length){if(me)return-1;G=re.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof H=="string"&&(H=s.from(H,oe)),s.isBuffer(H))return H.length===0?-1:E(re,H,G,oe,me);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(re,H,G):Uint8Array.prototype.lastIndexOf.call(re,H,G):E(re,[H],G,oe,me);throw new TypeError("val must be string, number or Buffer")}function E(re,H,G,oe,me){let we=1,Ee=re.length,xe=H.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if(re.length<2||H.length<2)return-1;we=2,Ee/=2,xe/=2,G/=2}function _e(Be,Oe){return we===1?Be[Oe]:Be.readUInt16BE(Oe*we)}let Pe;if(me){let Be=-1;for(Pe=G;Pe<Ee;Pe++)if(_e(re,Pe)===_e(H,Be===-1?0:Pe-Be)){if(Be===-1&&(Be=Pe),Pe-Be+1===xe)return Be*we}else Be!==-1&&(Pe-=Pe-Be),Be=-1}else for(G+xe>Ee&&(G=Ee-xe),Pe=G;Pe>=0;Pe--){let Be=!0;for(let Oe=0;Oe<xe;Oe++)if(_e(re,Pe+Oe)!==_e(H,Oe)){Be=!1;break}if(Be)return Pe}return-1}s.prototype.includes=function(H,G,oe){return this.indexOf(H,G,oe)!==-1},s.prototype.indexOf=function(H,G,oe){return x(this,H,G,oe,!0)},s.prototype.lastIndexOf=function(H,G,oe){return x(this,H,G,oe,!1)};function S(re,H,G,oe){G=Number(G)||0;const me=re.length-G;oe?(oe=Number(oe),oe>me&&(oe=me)):oe=me;const we=H.length;oe>we/2&&(oe=we/2);let Ee;for(Ee=0;Ee<oe;++Ee){const xe=parseInt(H.substr(Ee*2,2),16);if(Ie(xe))return Ee;re[G+Ee]=xe}return Ee}function I(re,H,G,oe){return Ce(de(H,re.length-G),re,G,oe)}function B(re,H,G,oe){return Ce(se(H),re,G,oe)}function R(re,H,G,oe){return Ce(ye(H),re,G,oe)}function _(re,H,G,oe){return Ce(pe(H,re.length-G),re,G,oe)}s.prototype.write=function(H,G,oe,me){if(G===void 0)me="utf8",oe=this.length,G=0;else if(oe===void 0&&typeof G=="string")me=G,oe=this.length,G=0;else if(isFinite(G))G=G>>>0,isFinite(oe)?(oe=oe>>>0,me===void 0&&(me="utf8")):(me=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const we=this.length-G;if((oe===void 0||oe>we)&&(oe=we),H.length>0&&(oe<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let Ee=!1;for(;;)switch(me){case"hex":return S(this,H,G,oe);case"utf8":case"utf-8":return I(this,H,G,oe);case"ascii":case"latin1":case"binary":return B(this,H,G,oe);case"base64":return R(this,H,G,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,H,G,oe);default:if(Ee)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(re,H,G){return H===0&&G===re.length?t.fromByteArray(re):t.fromByteArray(re.slice(H,G))}function F(re,H,G){G=Math.min(re.length,G);const oe=[];let me=H;for(;me<G;){const we=re[me];let Ee=null,xe=we>239?4:we>223?3:we>191?2:1;if(me+xe<=G){let _e,Pe,Be,Oe;switch(xe){case 1:we<128&&(Ee=we);break;case 2:_e=re[me+1],(_e&192)===128&&(Oe=(we&31)<<6|_e&63,Oe>127&&(Ee=Oe));break;case 3:_e=re[me+1],Pe=re[me+2],(_e&192)===128&&(Pe&192)===128&&(Oe=(we&15)<<12|(_e&63)<<6|Pe&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Ee=Oe));break;case 4:_e=re[me+1],Pe=re[me+2],Be=re[me+3],(_e&192)===128&&(Pe&192)===128&&(Be&192)===128&&(Oe=(we&15)<<18|(_e&63)<<12|(Pe&63)<<6|Be&63,Oe>65535&&Oe<1114112&&(Ee=Oe))}}Ee===null?(Ee=65533,xe=1):Ee>65535&&(Ee-=65536,oe.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),oe.push(Ee),me+=xe}return D(oe)}const k=4096;function D(re){const H=re.length;if(H<=k)return String.fromCharCode.apply(String,re);let G="",oe=0;for(;oe<H;)G+=String.fromCharCode.apply(String,re.slice(oe,oe+=k));return G}function M(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]&127);return oe}function T(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]);return oe}function L(re,H,G){const oe=re.length;(!H||H<0)&&(H=0),(!G||G<0||G>oe)&&(G=oe);let me="";for(let we=H;we<G;++we)me+=Re[re[we]];return me}function N(re,H,G){const oe=re.slice(H,G);let me="";for(let we=0;we<oe.length-1;we+=2)me+=String.fromCharCode(oe[we]+oe[we+1]*256);return me}s.prototype.slice=function(H,G){const oe=this.length;H=~~H,G=G===void 0?oe:~~G,H<0?(H+=oe,H<0&&(H=0)):H>oe&&(H=oe),G<0?(G+=oe,G<0&&(G=0)):G>oe&&(G=oe),G<H&&(G=H);const me=this.subarray(H,G);return Object.setPrototypeOf(me,s.prototype),me};function $(re,H,G){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+H>G)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return me},s.prototype.readUintBE=s.prototype.readUIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H+--G],we=1;for(;G>0&&(we*=256);)me+=this[H+--G]*we;return me},s.prototype.readUint8=s.prototype.readUInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]|this[H+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]<<8|this[H+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+this[H+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]*16777216+(this[H+1]<<16|this[H+2]<<8|this[H+3])},s.prototype.readBigUInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24,we=this[++H]+this[++H]*2**8+this[++H]*2**16+oe*2**24;return BigInt(me)+(BigInt(we)<<BigInt(32))}),s.prototype.readBigUInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G*2**24+this[++H]*2**16+this[++H]*2**8+this[++H],we=this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe;return(BigInt(me)<<BigInt(32))+BigInt(we)}),s.prototype.readIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return we*=128,me>=we&&(me-=Math.pow(2,8*G)),me},s.prototype.readIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=G,we=1,Ee=this[H+--me];for(;me>0&&(we*=256);)Ee+=this[H+--me]*we;return we*=128,Ee>=we&&(Ee-=Math.pow(2,8*G)),Ee},s.prototype.readInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]&128?(255-this[H]+1)*-1:this[H]},s.prototype.readInt16LE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H]|this[H+1]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt16BE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H+1]|this[H]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},s.prototype.readInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},s.prototype.readBigInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=this[H+4]+this[H+5]*2**8+this[H+6]*2**16+(oe<<24);return(BigInt(me)<<BigInt(32))+BigInt(G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24)}),s.prototype.readBigInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=(G<<24)+this[++H]*2**16+this[++H]*2**8+this[++H];return(BigInt(me)<<BigInt(32))+BigInt(this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe)}),s.prototype.readFloatLE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!0,23,4)},s.prototype.readFloatBE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!1,23,4)},s.prototype.readDoubleLE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!0,52,8)},s.prototype.readDoubleBE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!1,52,8)};function U(re,H,G,oe,me,we){if(!s.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>me||H<we)throw new RangeError('"value" argument is out of bounds');if(G+oe>re.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=1,Ee=0;for(this[G]=H&255;++Ee<oe&&(we*=256);)this[G+Ee]=H/we&255;return G+oe},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=oe-1,Ee=1;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)this[G+we]=H/Ee&255;return G+oe},s.prototype.writeUint8=s.prototype.writeUInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,255,0),this[G]=H&255,G+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G+3]=H>>>24,this[G+2]=H>>>16,this[G+1]=H>>>8,this[G]=H&255,G+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4};function Y(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,G}function V(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G+7]=we,we=we>>8,re[G+6]=we,we=we>>8,re[G+5]=we,we=we>>8,re[G+4]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G+3]=Ee,Ee=Ee>>8,re[G+2]=Ee,Ee=Ee>>8,re[G+1]=Ee,Ee=Ee>>8,re[G]=Ee,G+8}s.prototype.writeBigUInt64LE=De(function(H,G=0){return Y(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=De(function(H,G=0){return V(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=0,Ee=1,xe=0;for(this[G]=H&255;++we<oe&&(Ee*=256);)H<0&&xe===0&&this[G+we-1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=oe-1,Ee=1,xe=0;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)H<0&&xe===0&&this[G+we+1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,127,-128),H<0&&(H=255+H+1),this[G]=H&255,G+1},s.prototype.writeInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),this[G]=H&255,this[G+1]=H>>>8,this[G+2]=H>>>16,this[G+3]=H>>>24,G+4},s.prototype.writeInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4},s.prototype.writeBigInt64LE=De(function(H,G=0){return Y(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=De(function(H,G=0){return V(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(re,H,G,oe,me,we){if(G+oe>re.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ne(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,4),r.write(re,H,G,oe,23,4),G+4}s.prototype.writeFloatLE=function(H,G,oe){return ne(this,H,G,!0,oe)},s.prototype.writeFloatBE=function(H,G,oe){return ne(this,H,G,!1,oe)};function X(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,8),r.write(re,H,G,oe,52,8),G+8}s.prototype.writeDoubleLE=function(H,G,oe){return X(this,H,G,!0,oe)},s.prototype.writeDoubleBE=function(H,G,oe){return X(this,H,G,!1,oe)},s.prototype.copy=function(H,G,oe,me){if(!s.isBuffer(H))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!me&&me!==0&&(me=this.length),G>=H.length&&(G=H.length),G||(G=0),me>0&&me<oe&&(me=oe),me===oe||H.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),H.length-G<me-oe&&(me=H.length-G+oe);const we=me-oe;return this===H&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(G,oe,me):Uint8Array.prototype.set.call(H,this.subarray(oe,me),G),we},s.prototype.fill=function(H,G,oe,me){if(typeof H=="string"){if(typeof G=="string"?(me=G,G=0,oe=this.length):typeof oe=="string"&&(me=oe,oe=this.length),me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!s.isEncoding(me))throw new TypeError("Unknown encoding: "+me);if(H.length===1){const Ee=H.charCodeAt(0);(me==="utf8"&&Ee<128||me==="latin1")&&(H=Ee)}}else typeof H=="number"?H=H&255:typeof H=="boolean"&&(H=Number(H));if(G<0||this.length<G||this.length<oe)throw new RangeError("Out of range index");if(oe<=G)return this;G=G>>>0,oe=oe===void 0?this.length:oe>>>0,H||(H=0);let we;if(typeof H=="number")for(we=G;we<oe;++we)this[we]=H;else{const Ee=s.isBuffer(H)?H:s.from(H,me),xe=Ee.length;if(xe===0)throw new TypeError('The value "'+H+'" is invalid for argument "value"');for(we=0;we<oe-G;++we)this[we+G]=Ee[we%xe]}return this};const Q={};function z(re,H,G){Q[re]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:H.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${re}]`,this.stack,delete this.name}get code(){return re}set code(me){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:me,writable:!0})}toString(){return`${this.name} [${re}]: ${this.message}`}}}z("ERR_BUFFER_OUT_OF_BOUNDS",function(re){return re?`${re} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(re,H){return`The "${re}" argument must be of type number. Received type ${typeof H}`},TypeError),z("ERR_OUT_OF_RANGE",function(re,H,G){let oe=`The value of "${re}" is out of range.`,me=G;return Number.isInteger(G)&&Math.abs(G)>2**32?me=j(String(G)):typeof G=="bigint"&&(me=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(me=j(me)),me+="n"),oe+=` It must be ${H}. Received ${me}`,oe},RangeError);function j(re){let H="",G=re.length;const oe=re[0]==="-"?1:0;for(;G>=oe+4;G-=3)H=`_${re.slice(G-3,G)}${H}`;return`${re.slice(0,G)}${H}`}function W(re,H,G){q(H,"offset"),(re[H]===void 0||re[H+G]===void 0)&&te(H,re.length-(G+1))}function ee(re,H,G,oe,me,we){if(re>G||re<H){const Ee=typeof H=="bigint"?"n":"";let xe;throw H===0||H===BigInt(0)?xe=`>= 0${Ee} and < 2${Ee} ** ${(we+1)*8}${Ee}`:xe=`>= -(2${Ee} ** ${(we+1)*8-1}${Ee}) and < 2 ** ${(we+1)*8-1}${Ee}`,new Q.ERR_OUT_OF_RANGE("value",xe,re)}W(oe,me,we)}function q(re,H){if(typeof re!="number")throw new Q.ERR_INVALID_ARG_TYPE(H,"number",re)}function te(re,H,G){throw Math.floor(re)!==re?(q(re,G),new Q.ERR_OUT_OF_RANGE("offset","an integer",re)):H<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,re)}const ae=/[^+/0-9A-Za-z-_]/g;function ce(re){if(re=re.split("=")[0],re=re.trim().replace(ae,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function de(re,H){H=H||1/0;let G;const oe=re.length;let me=null;const we=[];for(let Ee=0;Ee<oe;++Ee){if(G=re.charCodeAt(Ee),G>55295&&G<57344){if(!me){if(G>56319){(H-=3)>-1&&we.push(239,191,189);continue}else if(Ee+1===oe){(H-=3)>-1&&we.push(239,191,189);continue}me=G;continue}if(G<56320){(H-=3)>-1&&we.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&(H-=3)>-1&&we.push(239,191,189);if(me=null,G<128){if((H-=1)<0)break;we.push(G)}else if(G<2048){if((H-=2)<0)break;we.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;we.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;we.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return we}function se(re){const H=[];for(let G=0;G<re.length;++G)H.push(re.charCodeAt(G)&255);return H}function pe(re,H){let G,oe,me;const we=[];for(let Ee=0;Ee<re.length&&!((H-=2)<0);++Ee)G=re.charCodeAt(Ee),oe=G>>8,me=G%256,we.push(me),we.push(oe);return we}function ye(re){return t.toByteArray(ce(re))}function Ce(re,H,G,oe){let me;for(me=0;me<oe&&!(me+G>=H.length||me>=re.length);++me)H[me+G]=re[me];return me}function Se(re,H){return re instanceof H||re!=null&&re.constructor!=null&&re.constructor.name!=null&&re.constructor.name===H.name}function Ie(re){return re!==re}const Re=function(){const re="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){const oe=G*16;for(let me=0;me<16;++me)H[oe+me]=re[G]+re[me]}return H}();function De(re){return typeof BigInt>"u"?Fe:re}function Fe(){throw new Error("BigInt not supported")}})(JB);const K2e=["en","zh","ja","ko","ar","th","pl","it","de","es","fr"],CK=We.enum(K2e);We.object({cancel:We.string(),close:We.string(),field:We.string(),fieldName:We.string(),align:We.string(),width:We.string(),opacity:We.string(),height:We.string(),rotate:We.string(),edit:We.string(),required:We.string(),editable:We.string(),plsInputName:We.string(),fieldMustUniq:We.string(),notUniq:We.string(),noKeyName:We.string(),fieldsList:We.string(),editField:We.string(),type:We.string(),errorOccurred:We.string(),errorBulkUpdateFieldName:We.string(),commitBulkUpdateFieldName:We.string(),bulkUpdateFieldName:We.string(),addPageAfter:We.string(),removePage:We.string(),removePageConfirm:We.string(),"validation.uniqueName":We.string(),"validation.hexColor":We.string(),"schemas.color":We.string(),"schemas.borderWidth":We.string(),"schemas.borderColor":We.string(),"schemas.backgroundColor":We.string(),"schemas.textColor":We.string(),"schemas.bgColor":We.string(),"schemas.horizontal":We.string(),"schemas.vertical":We.string(),"schemas.left":We.string(),"schemas.center":We.string(),"schemas.right":We.string(),"schemas.top":We.string(),"schemas.middle":We.string(),"schemas.bottom":We.string(),"schemas.padding":We.string(),"schemas.text.fontName":We.string(),"schemas.text.size":We.string(),"schemas.text.spacing":We.string(),"schemas.text.textAlign":We.string(),"schemas.text.verticalAlign":We.string(),"schemas.text.lineHeight":We.string(),"schemas.text.min":We.string(),"schemas.text.max":We.string(),"schemas.text.fit":We.string(),"schemas.text.dynamicFontSize":We.string(),"schemas.text.format":We.string(),"schemas.mvt.typingInstructions":We.string(),"schemas.mvt.sampleField":We.string(),"schemas.mvt.variablesSampleData":We.string(),"schemas.barcodes.barColor":We.string(),"schemas.barcodes.includetext":We.string(),"schemas.table.alternateBackgroundColor":We.string(),"schemas.table.tableStyle":We.string(),"schemas.table.headStyle":We.string(),"schemas.table.bodyStyle":We.string(),"schemas.table.columnStyle":We.string(),"schemas.date.format":We.string(),"schemas.select.options":We.string(),"schemas.select.optionPlaceholder":We.string()}),We.enum(["viewer","form","designer"]);const q2e=We.enum(["rgb","cmyk"]).optional();We.object({height:We.number(),width:We.number()});const e3=We.object({name:We.string(),type:We.string(),content:We.string().optional(),position:We.object({x:We.number(),y:We.number()}),width:We.number(),height:We.number(),rotate:We.number().optional(),opacity:We.number().optional(),readOnly:We.boolean().optional(),required:We.boolean().optional(),__bodyRange:We.object({start:We.number(),end:We.number().optional()}).optional(),__isSplit:We.boolean().optional()}).passthrough(),X2e=We.object({id:We.string()});e3.merge(X2e);const xK=We.any().refine(e=>e instanceof ArrayBuffer),EK=We.any().refine(e=>e instanceof Uint8Array),SK=We.object({width:We.number(),height:We.number(),padding:We.tuple([We.number(),We.number(),We.number(),We.number()]),staticSchema:We.array(e3).optional()}),Z2e=We.union([We.string(),xK,EK]),J2e=We.union([Z2e,SK]);We.array(We.record(e3));const eSe=We.array(We.array(e3)),IK=We.object({schemas:eSe,basePdf:J2e,pdfmeVersion:We.string().optional()}).passthrough(),cO=We.array(We.record(We.any())).min(1),tSe=We.record(We.object({data:We.union([We.string(),xK,EK]),fallback:We.boolean().optional(),subset:We.boolean().optional()})),uO=We.object({font:tSe.optional()}).passthrough(),BK=We.object({template:IK,options:uO.optional(),plugins:We.record(We.object({ui:We.any(),pdf:We.any(),propPanel:We.any()})).optional()}),rSe=uO.extend({colorType:q2e,author:We.string().optional(),creationDate:We.date().optional(),creator:We.string().optional(),keywords:We.array(We.string()).optional(),lang:CK.optional(),modificationDate:We.date().optional(),producer:We.string().optional(),subject:We.string().optional(),title:We.string().optional()});BK.extend({inputs:cO,options:rSe.optional()}).strict();const MK=uO.extend({lang:CK.optional(),labels:We.record(We.string(),We.string()).optional(),theme:We.record(We.string(),We.unknown()).optional(),icons:We.record(We.string(),We.string()).optional(),requiredByDefault:We.boolean().optional()}),nSe=We.any().refine(e=>e instanceof HTMLElement),dO=BK.extend({domContainer:nSe,options:MK.optional()}),iSe=dO.extend({inputs:cO}).strict(),aSe=dO.extend({}).strict(),Ma=e=>JSON.parse(JSON.stringify(e)),RK=e=>Array.from(new Set(e)),Kv=e=>{const t="",r=Object.entries(e).reduce((n,i)=>{const[a,o]=i;return!n&&o.fallback?a:n},t);if(r===t)throw Error("[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.");return r},wh=()=>({[eO]:{data:fO(zEe),fallback:!0}}),kd=e=>parseFloat(String(e))*HEe,$p=e=>e*QEe,PK=e=>e*jEe,DK=e=>parseFloat(String(e))*.26458333333333,oSe=e=>new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{n.result.startsWith("data:application/pdf;")?t(n.result):r(Error("[@pdfme/common] template.basePdf must be pdf data."))},n.readAsDataURL(e)}),TK=e=>/^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/i.test(e),_K=e=>{e.schemas&&Array.isArray(e.schemas)&&e.schemas.length>0&&!Array.isArray(e.schemas[0])&&(e.schemas=e.schemas.map(t=>Object.entries(t).map(([r,n])=>({...n,name:r}))))},OK=e=>typeof e=="string"&&!e.startsWith("data:application/pdf;")&&typeof window<"u"?fetch(e).then(r=>r.blob()).then(oSe).catch(r=>{throw r}):e,uc=e=>SK.safeParse(e).success,sSe=e=>JB.Buffer.from(e,"base64").toString("binary"),fO=e=>{const t=e.split(";base64,")[1]?e.split(";base64,")[1]:e,r=sSe(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i+=1)n[i]=r.charCodeAt(i);return n},lSe=e=>RK(e.map(t=>t.map(r=>r.fontName??"")).reduce((t,r)=>t.concat(r),[]).filter(Boolean)),cSe=e=>{const{font:t,template:{schemas:r}}=e,i=Object.values(t).reduce((s,l)=>l.fallback?s+1:s,0);if(i===0)throw Error(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
|
42
|
+
*/(function(e){const t=Yv,r=lO,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const re=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(re,H),re.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(re){if(re>i)throw new RangeError('The value "'+re+'" is invalid for option "size"');const H=new Uint8Array(re);return Object.setPrototypeOf(H,s.prototype),H}function s(re,H,G){if(typeof re=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(re)}return l(re,H,G)}s.poolSize=8192;function l(re,H,G){if(typeof re=="string")return f(re,H);if(ArrayBuffer.isView(re))return A(re);if(re==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re);if(Se(re,ArrayBuffer)||re&&Se(re.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(re,SharedArrayBuffer)||re&&Se(re.buffer,SharedArrayBuffer)))return v(re,H,G);if(typeof re=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const oe=re.valueOf&&re.valueOf();if(oe!=null&&oe!==re)return s.from(oe,H,G);const me=g(re);if(me)return me;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof re[Symbol.toPrimitive]=="function")return s.from(re[Symbol.toPrimitive]("string"),H,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof re)}s.from=function(re,H,G){return l(re,H,G)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(re){if(typeof re!="number")throw new TypeError('"size" argument must be of type number');if(re<0)throw new RangeError('The value "'+re+'" is invalid for option "size"')}function u(re,H,G){return c(re),re<=0?o(re):H!==void 0?typeof G=="string"?o(re).fill(H,G):o(re).fill(H):o(re)}s.alloc=function(re,H,G){return u(re,H,G)};function d(re){return c(re),o(re<0?0:m(re)|0)}s.allocUnsafe=function(re){return d(re)},s.allocUnsafeSlow=function(re){return d(re)};function f(re,H){if((typeof H!="string"||H==="")&&(H="utf8"),!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const G=b(re,H)|0;let oe=o(G);const me=oe.write(re,H);return me!==G&&(oe=oe.slice(0,me)),oe}function p(re){const H=re.length<0?0:m(re.length)|0,G=o(H);for(let oe=0;oe<H;oe+=1)G[oe]=re[oe]&255;return G}function A(re){if(Se(re,Uint8Array)){const H=new Uint8Array(re);return v(H.buffer,H.byteOffset,H.byteLength)}return p(re)}function v(re,H,G){if(H<0||re.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(re.byteLength<H+(G||0))throw new RangeError('"length" is outside of buffer bounds');let oe;return H===void 0&&G===void 0?oe=new Uint8Array(re):G===void 0?oe=new Uint8Array(re,H):oe=new Uint8Array(re,H,G),Object.setPrototypeOf(oe,s.prototype),oe}function g(re){if(s.isBuffer(re)){const H=m(re.length)|0,G=o(H);return G.length===0||re.copy(G,0,0,H),G}if(re.length!==void 0)return typeof re.length!="number"||Ie(re.length)?o(0):p(re);if(re.type==="Buffer"&&Array.isArray(re.data))return p(re.data)}function m(re){if(re>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return re|0}function y(re){return+re!=re&&(re=0),s.alloc(+re)}s.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==s.prototype},s.compare=function(H,G){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),Se(G,Uint8Array)&&(G=s.from(G,G.offset,G.byteLength)),!s.isBuffer(H)||!s.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===G)return 0;let oe=H.length,me=G.length;for(let we=0,Ee=Math.min(oe,me);we<Ee;++we)if(H[we]!==G[we]){oe=H[we],me=G[we];break}return oe<me?-1:me<oe?1:0},s.isEncoding=function(H){switch(String(H).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(H,G){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return s.alloc(0);let oe;if(G===void 0)for(G=0,oe=0;oe<H.length;++oe)G+=H[oe].length;const me=s.allocUnsafe(G);let we=0;for(oe=0;oe<H.length;++oe){let Ee=H[oe];if(Se(Ee,Uint8Array))we+Ee.length>me.length?(s.isBuffer(Ee)||(Ee=s.from(Ee)),Ee.copy(me,we)):Uint8Array.prototype.set.call(me,Ee,we);else if(s.isBuffer(Ee))Ee.copy(me,we);else throw new TypeError('"list" argument must be an Array of Buffers');we+=Ee.length}return me};function b(re,H){if(s.isBuffer(re))return re.length;if(ArrayBuffer.isView(re)||Se(re,ArrayBuffer))return re.byteLength;if(typeof re!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof re);const G=re.length,oe=arguments.length>2&&arguments[2]===!0;if(!oe&&G===0)return 0;let me=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return de(re).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return ye(re).length;default:if(me)return oe?-1:de(re).length;H=(""+H).toLowerCase(),me=!0}}s.byteLength=b;function C(re,H,G){let oe=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,H>>>=0,G<=H))return"";for(re||(re="utf8");;)switch(re){case"hex":return L(this,H,G);case"utf8":case"utf-8":return F(this,H,G);case"ascii":return M(this,H,G);case"latin1":case"binary":return T(this,H,G);case"base64":return O(this,H,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,H,G);default:if(oe)throw new TypeError("Unknown encoding: "+re);re=(re+"").toLowerCase(),oe=!0}}s.prototype._isBuffer=!0;function w(re,H,G){const oe=re[H];re[H]=re[G],re[G]=oe}s.prototype.swap16=function(){const H=this.length;if(H%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;G<H;G+=2)w(this,G,G+1);return this},s.prototype.swap32=function(){const H=this.length;if(H%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let G=0;G<H;G+=4)w(this,G,G+3),w(this,G+1,G+2);return this},s.prototype.swap64=function(){const H=this.length;if(H%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let G=0;G<H;G+=8)w(this,G,G+7),w(this,G+1,G+6),w(this,G+2,G+5),w(this,G+3,G+4);return this},s.prototype.toString=function(){const H=this.length;return H===0?"":arguments.length===0?F(this,0,H):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(H){if(!s.isBuffer(H))throw new TypeError("Argument must be a Buffer");return this===H?!0:s.compare(this,H)===0},s.prototype.inspect=function(){let H="";const G=e.INSPECT_MAX_BYTES;return H=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(H+=" ... "),"<Buffer "+H+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(H,G,oe,me,we){if(Se(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(H))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof H);if(G===void 0&&(G=0),oe===void 0&&(oe=H?H.length:0),me===void 0&&(me=0),we===void 0&&(we=this.length),G<0||oe>H.length||me<0||we>this.length)throw new RangeError("out of range index");if(me>=we&&G>=oe)return 0;if(me>=we)return-1;if(G>=oe)return 1;if(G>>>=0,oe>>>=0,me>>>=0,we>>>=0,this===H)return 0;let Ee=we-me,xe=oe-G;const _e=Math.min(Ee,xe),Pe=this.slice(me,we),Be=H.slice(G,oe);for(let Oe=0;Oe<_e;++Oe)if(Pe[Oe]!==Be[Oe]){Ee=Pe[Oe],xe=Be[Oe];break}return Ee<xe?-1:xe<Ee?1:0};function x(re,H,G,oe,me){if(re.length===0)return-1;if(typeof G=="string"?(oe=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,Ie(G)&&(G=me?0:re.length-1),G<0&&(G=re.length+G),G>=re.length){if(me)return-1;G=re.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof H=="string"&&(H=s.from(H,oe)),s.isBuffer(H))return H.length===0?-1:E(re,H,G,oe,me);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(re,H,G):Uint8Array.prototype.lastIndexOf.call(re,H,G):E(re,[H],G,oe,me);throw new TypeError("val must be string, number or Buffer")}function E(re,H,G,oe,me){let we=1,Ee=re.length,xe=H.length;if(oe!==void 0&&(oe=String(oe).toLowerCase(),oe==="ucs2"||oe==="ucs-2"||oe==="utf16le"||oe==="utf-16le")){if(re.length<2||H.length<2)return-1;we=2,Ee/=2,xe/=2,G/=2}function _e(Be,Oe){return we===1?Be[Oe]:Be.readUInt16BE(Oe*we)}let Pe;if(me){let Be=-1;for(Pe=G;Pe<Ee;Pe++)if(_e(re,Pe)===_e(H,Be===-1?0:Pe-Be)){if(Be===-1&&(Be=Pe),Pe-Be+1===xe)return Be*we}else Be!==-1&&(Pe-=Pe-Be),Be=-1}else for(G+xe>Ee&&(G=Ee-xe),Pe=G;Pe>=0;Pe--){let Be=!0;for(let Oe=0;Oe<xe;Oe++)if(_e(re,Pe+Oe)!==_e(H,Oe)){Be=!1;break}if(Be)return Pe}return-1}s.prototype.includes=function(H,G,oe){return this.indexOf(H,G,oe)!==-1},s.prototype.indexOf=function(H,G,oe){return x(this,H,G,oe,!0)},s.prototype.lastIndexOf=function(H,G,oe){return x(this,H,G,oe,!1)};function S(re,H,G,oe){G=Number(G)||0;const me=re.length-G;oe?(oe=Number(oe),oe>me&&(oe=me)):oe=me;const we=H.length;oe>we/2&&(oe=we/2);let Ee;for(Ee=0;Ee<oe;++Ee){const xe=parseInt(H.substr(Ee*2,2),16);if(Ie(xe))return Ee;re[G+Ee]=xe}return Ee}function I(re,H,G,oe){return Ce(de(H,re.length-G),re,G,oe)}function B(re,H,G,oe){return Ce(se(H),re,G,oe)}function R(re,H,G,oe){return Ce(ye(H),re,G,oe)}function _(re,H,G,oe){return Ce(pe(H,re.length-G),re,G,oe)}s.prototype.write=function(H,G,oe,me){if(G===void 0)me="utf8",oe=this.length,G=0;else if(oe===void 0&&typeof G=="string")me=G,oe=this.length,G=0;else if(isFinite(G))G=G>>>0,isFinite(oe)?(oe=oe>>>0,me===void 0&&(me="utf8")):(me=oe,oe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const we=this.length-G;if((oe===void 0||oe>we)&&(oe=we),H.length>0&&(oe<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let Ee=!1;for(;;)switch(me){case"hex":return S(this,H,G,oe);case"utf8":case"utf-8":return I(this,H,G,oe);case"ascii":case"latin1":case"binary":return B(this,H,G,oe);case"base64":return R(this,H,G,oe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,H,G,oe);default:if(Ee)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(re,H,G){return H===0&&G===re.length?t.fromByteArray(re):t.fromByteArray(re.slice(H,G))}function F(re,H,G){G=Math.min(re.length,G);const oe=[];let me=H;for(;me<G;){const we=re[me];let Ee=null,xe=we>239?4:we>223?3:we>191?2:1;if(me+xe<=G){let _e,Pe,Be,Oe;switch(xe){case 1:we<128&&(Ee=we);break;case 2:_e=re[me+1],(_e&192)===128&&(Oe=(we&31)<<6|_e&63,Oe>127&&(Ee=Oe));break;case 3:_e=re[me+1],Pe=re[me+2],(_e&192)===128&&(Pe&192)===128&&(Oe=(we&15)<<12|(_e&63)<<6|Pe&63,Oe>2047&&(Oe<55296||Oe>57343)&&(Ee=Oe));break;case 4:_e=re[me+1],Pe=re[me+2],Be=re[me+3],(_e&192)===128&&(Pe&192)===128&&(Be&192)===128&&(Oe=(we&15)<<18|(_e&63)<<12|(Pe&63)<<6|Be&63,Oe>65535&&Oe<1114112&&(Ee=Oe))}}Ee===null?(Ee=65533,xe=1):Ee>65535&&(Ee-=65536,oe.push(Ee>>>10&1023|55296),Ee=56320|Ee&1023),oe.push(Ee),me+=xe}return D(oe)}const k=4096;function D(re){const H=re.length;if(H<=k)return String.fromCharCode.apply(String,re);let G="",oe=0;for(;oe<H;)G+=String.fromCharCode.apply(String,re.slice(oe,oe+=k));return G}function M(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]&127);return oe}function T(re,H,G){let oe="";G=Math.min(re.length,G);for(let me=H;me<G;++me)oe+=String.fromCharCode(re[me]);return oe}function L(re,H,G){const oe=re.length;(!H||H<0)&&(H=0),(!G||G<0||G>oe)&&(G=oe);let me="";for(let we=H;we<G;++we)me+=Re[re[we]];return me}function N(re,H,G){const oe=re.slice(H,G);let me="";for(let we=0;we<oe.length-1;we+=2)me+=String.fromCharCode(oe[we]+oe[we+1]*256);return me}s.prototype.slice=function(H,G){const oe=this.length;H=~~H,G=G===void 0?oe:~~G,H<0?(H+=oe,H<0&&(H=0)):H>oe&&(H=oe),G<0?(G+=oe,G<0&&(G=0)):G>oe&&(G=oe),G<H&&(G=H);const me=this.subarray(H,G);return Object.setPrototypeOf(me,s.prototype),me};function $(re,H,G){if(re%1!==0||re<0)throw new RangeError("offset is not uint");if(re+H>G)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return me},s.prototype.readUintBE=s.prototype.readUIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H+--G],we=1;for(;G>0&&(we*=256);)me+=this[H+--G]*we;return me},s.prototype.readUint8=s.prototype.readUInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]|this[H+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(H,G){return H=H>>>0,G||$(H,2,this.length),this[H]<<8|this[H+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),(this[H]|this[H+1]<<8|this[H+2]<<16)+this[H+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]*16777216+(this[H+1]<<16|this[H+2]<<8|this[H+3])},s.prototype.readBigUInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24,we=this[++H]+this[++H]*2**8+this[++H]*2**16+oe*2**24;return BigInt(me)+(BigInt(we)<<BigInt(32))}),s.prototype.readBigUInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=G*2**24+this[++H]*2**16+this[++H]*2**8+this[++H],we=this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe;return(BigInt(me)<<BigInt(32))+BigInt(we)}),s.prototype.readIntLE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=this[H],we=1,Ee=0;for(;++Ee<G&&(we*=256);)me+=this[H+Ee]*we;return we*=128,me>=we&&(me-=Math.pow(2,8*G)),me},s.prototype.readIntBE=function(H,G,oe){H=H>>>0,G=G>>>0,oe||$(H,G,this.length);let me=G,we=1,Ee=this[H+--me];for(;me>0&&(we*=256);)Ee+=this[H+--me]*we;return we*=128,Ee>=we&&(Ee-=Math.pow(2,8*G)),Ee},s.prototype.readInt8=function(H,G){return H=H>>>0,G||$(H,1,this.length),this[H]&128?(255-this[H]+1)*-1:this[H]},s.prototype.readInt16LE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H]|this[H+1]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt16BE=function(H,G){H=H>>>0,G||$(H,2,this.length);const oe=this[H+1]|this[H]<<8;return oe&32768?oe|4294901760:oe},s.prototype.readInt32LE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]|this[H+1]<<8|this[H+2]<<16|this[H+3]<<24},s.prototype.readInt32BE=function(H,G){return H=H>>>0,G||$(H,4,this.length),this[H]<<24|this[H+1]<<16|this[H+2]<<8|this[H+3]},s.prototype.readBigInt64LE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=this[H+4]+this[H+5]*2**8+this[H+6]*2**16+(oe<<24);return(BigInt(me)<<BigInt(32))+BigInt(G+this[++H]*2**8+this[++H]*2**16+this[++H]*2**24)}),s.prototype.readBigInt64BE=De(function(H){H=H>>>0,q(H,"offset");const G=this[H],oe=this[H+7];(G===void 0||oe===void 0)&&te(H,this.length-8);const me=(G<<24)+this[++H]*2**16+this[++H]*2**8+this[++H];return(BigInt(me)<<BigInt(32))+BigInt(this[++H]*2**24+this[++H]*2**16+this[++H]*2**8+oe)}),s.prototype.readFloatLE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!0,23,4)},s.prototype.readFloatBE=function(H,G){return H=H>>>0,G||$(H,4,this.length),r.read(this,H,!1,23,4)},s.prototype.readDoubleLE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!0,52,8)},s.prototype.readDoubleBE=function(H,G){return H=H>>>0,G||$(H,8,this.length),r.read(this,H,!1,52,8)};function U(re,H,G,oe,me,we){if(!s.isBuffer(re))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>me||H<we)throw new RangeError('"value" argument is out of bounds');if(G+oe>re.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=1,Ee=0;for(this[G]=H&255;++Ee<oe&&(we*=256);)this[G+Ee]=H/we&255;return G+oe},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,oe=oe>>>0,!me){const xe=Math.pow(2,8*oe)-1;U(this,H,G,oe,xe,0)}let we=oe-1,Ee=1;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)this[G+we]=H/Ee&255;return G+oe},s.prototype.writeUint8=s.prototype.writeUInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,255,0),this[G]=H&255,G+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,65535,0),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G+3]=H>>>24,this[G+2]=H>>>16,this[G+1]=H>>>8,this[G]=H&255,G+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,4294967295,0),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4};function Y(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we,we=we>>8,re[G++]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,Ee=Ee>>8,re[G++]=Ee,G}function V(re,H,G,oe,me){ee(H,oe,me,re,G,7);let we=Number(H&BigInt(4294967295));re[G+7]=we,we=we>>8,re[G+6]=we,we=we>>8,re[G+5]=we,we=we>>8,re[G+4]=we;let Ee=Number(H>>BigInt(32)&BigInt(4294967295));return re[G+3]=Ee,Ee=Ee>>8,re[G+2]=Ee,Ee=Ee>>8,re[G+1]=Ee,Ee=Ee>>8,re[G]=Ee,G+8}s.prototype.writeBigUInt64LE=De(function(H,G=0){return Y(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=De(function(H,G=0){return V(this,H,G,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=0,Ee=1,xe=0;for(this[G]=H&255;++we<oe&&(Ee*=256);)H<0&&xe===0&&this[G+we-1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeIntBE=function(H,G,oe,me){if(H=+H,G=G>>>0,!me){const _e=Math.pow(2,8*oe-1);U(this,H,G,oe,_e-1,-_e)}let we=oe-1,Ee=1,xe=0;for(this[G+we]=H&255;--we>=0&&(Ee*=256);)H<0&&xe===0&&this[G+we+1]!==0&&(xe=1),this[G+we]=(H/Ee>>0)-xe&255;return G+oe},s.prototype.writeInt8=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,1,127,-128),H<0&&(H=255+H+1),this[G]=H&255,G+1},s.prototype.writeInt16LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H&255,this[G+1]=H>>>8,G+2},s.prototype.writeInt16BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,2,32767,-32768),this[G]=H>>>8,this[G+1]=H&255,G+2},s.prototype.writeInt32LE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),this[G]=H&255,this[G+1]=H>>>8,this[G+2]=H>>>16,this[G+3]=H>>>24,G+4},s.prototype.writeInt32BE=function(H,G,oe){return H=+H,G=G>>>0,oe||U(this,H,G,4,2147483647,-2147483648),H<0&&(H=4294967295+H+1),this[G]=H>>>24,this[G+1]=H>>>16,this[G+2]=H>>>8,this[G+3]=H&255,G+4},s.prototype.writeBigInt64LE=De(function(H,G=0){return Y(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=De(function(H,G=0){return V(this,H,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(re,H,G,oe,me,we){if(G+oe>re.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function ne(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,4),r.write(re,H,G,oe,23,4),G+4}s.prototype.writeFloatLE=function(H,G,oe){return ne(this,H,G,!0,oe)},s.prototype.writeFloatBE=function(H,G,oe){return ne(this,H,G,!1,oe)};function X(re,H,G,oe,me){return H=+H,G=G>>>0,me||K(re,H,G,8),r.write(re,H,G,oe,52,8),G+8}s.prototype.writeDoubleLE=function(H,G,oe){return X(this,H,G,!0,oe)},s.prototype.writeDoubleBE=function(H,G,oe){return X(this,H,G,!1,oe)},s.prototype.copy=function(H,G,oe,me){if(!s.isBuffer(H))throw new TypeError("argument should be a Buffer");if(oe||(oe=0),!me&&me!==0&&(me=this.length),G>=H.length&&(G=H.length),G||(G=0),me>0&&me<oe&&(me=oe),me===oe||H.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(oe<0||oe>=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),H.length-G<me-oe&&(me=H.length-G+oe);const we=me-oe;return this===H&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(G,oe,me):Uint8Array.prototype.set.call(H,this.subarray(oe,me),G),we},s.prototype.fill=function(H,G,oe,me){if(typeof H=="string"){if(typeof G=="string"?(me=G,G=0,oe=this.length):typeof oe=="string"&&(me=oe,oe=this.length),me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!s.isEncoding(me))throw new TypeError("Unknown encoding: "+me);if(H.length===1){const Ee=H.charCodeAt(0);(me==="utf8"&&Ee<128||me==="latin1")&&(H=Ee)}}else typeof H=="number"?H=H&255:typeof H=="boolean"&&(H=Number(H));if(G<0||this.length<G||this.length<oe)throw new RangeError("Out of range index");if(oe<=G)return this;G=G>>>0,oe=oe===void 0?this.length:oe>>>0,H||(H=0);let we;if(typeof H=="number")for(we=G;we<oe;++we)this[we]=H;else{const Ee=s.isBuffer(H)?H:s.from(H,me),xe=Ee.length;if(xe===0)throw new TypeError('The value "'+H+'" is invalid for argument "value"');for(we=0;we<oe-G;++we)this[we+G]=Ee[we%xe]}return this};const Q={};function z(re,H,G){Q[re]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:H.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${re}]`,this.stack,delete this.name}get code(){return re}set code(me){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:me,writable:!0})}toString(){return`${this.name} [${re}]: ${this.message}`}}}z("ERR_BUFFER_OUT_OF_BOUNDS",function(re){return re?`${re} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(re,H){return`The "${re}" argument must be of type number. Received type ${typeof H}`},TypeError),z("ERR_OUT_OF_RANGE",function(re,H,G){let oe=`The value of "${re}" is out of range.`,me=G;return Number.isInteger(G)&&Math.abs(G)>2**32?me=j(String(G)):typeof G=="bigint"&&(me=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&(me=j(me)),me+="n"),oe+=` It must be ${H}. Received ${me}`,oe},RangeError);function j(re){let H="",G=re.length;const oe=re[0]==="-"?1:0;for(;G>=oe+4;G-=3)H=`_${re.slice(G-3,G)}${H}`;return`${re.slice(0,G)}${H}`}function W(re,H,G){q(H,"offset"),(re[H]===void 0||re[H+G]===void 0)&&te(H,re.length-(G+1))}function ee(re,H,G,oe,me,we){if(re>G||re<H){const Ee=typeof H=="bigint"?"n":"";let xe;throw H===0||H===BigInt(0)?xe=`>= 0${Ee} and < 2${Ee} ** ${(we+1)*8}${Ee}`:xe=`>= -(2${Ee} ** ${(we+1)*8-1}${Ee}) and < 2 ** ${(we+1)*8-1}${Ee}`,new Q.ERR_OUT_OF_RANGE("value",xe,re)}W(oe,me,we)}function q(re,H){if(typeof re!="number")throw new Q.ERR_INVALID_ARG_TYPE(H,"number",re)}function te(re,H,G){throw Math.floor(re)!==re?(q(re,G),new Q.ERR_OUT_OF_RANGE("offset","an integer",re)):H<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,re)}const ae=/[^+/0-9A-Za-z-_]/g;function ce(re){if(re=re.split("=")[0],re=re.trim().replace(ae,""),re.length<2)return"";for(;re.length%4!==0;)re=re+"=";return re}function de(re,H){H=H||1/0;let G;const oe=re.length;let me=null;const we=[];for(let Ee=0;Ee<oe;++Ee){if(G=re.charCodeAt(Ee),G>55295&&G<57344){if(!me){if(G>56319){(H-=3)>-1&&we.push(239,191,189);continue}else if(Ee+1===oe){(H-=3)>-1&&we.push(239,191,189);continue}me=G;continue}if(G<56320){(H-=3)>-1&&we.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&(H-=3)>-1&&we.push(239,191,189);if(me=null,G<128){if((H-=1)<0)break;we.push(G)}else if(G<2048){if((H-=2)<0)break;we.push(G>>6|192,G&63|128)}else if(G<65536){if((H-=3)<0)break;we.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((H-=4)<0)break;we.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return we}function se(re){const H=[];for(let G=0;G<re.length;++G)H.push(re.charCodeAt(G)&255);return H}function pe(re,H){let G,oe,me;const we=[];for(let Ee=0;Ee<re.length&&!((H-=2)<0);++Ee)G=re.charCodeAt(Ee),oe=G>>8,me=G%256,we.push(me),we.push(oe);return we}function ye(re){return t.toByteArray(ce(re))}function Ce(re,H,G,oe){let me;for(me=0;me<oe&&!(me+G>=H.length||me>=re.length);++me)H[me+G]=re[me];return me}function Se(re,H){return re instanceof H||re!=null&&re.constructor!=null&&re.constructor.name!=null&&re.constructor.name===H.name}function Ie(re){return re!==re}const Re=function(){const re="0123456789abcdef",H=new Array(256);for(let G=0;G<16;++G){const oe=G*16;for(let me=0;me<16;++me)H[oe+me]=re[G]+re[me]}return H}();function De(re){return typeof BigInt>"u"?Fe:re}function Fe(){throw new Error("BigInt not supported")}})(JB);const K2e=["en","zh","ja","ko","ar","th","pl","it","de","es","fr"],CK=We.enum(K2e);We.object({cancel:We.string(),close:We.string(),field:We.string(),fieldName:We.string(),align:We.string(),width:We.string(),opacity:We.string(),height:We.string(),rotate:We.string(),edit:We.string(),required:We.string(),editable:We.string(),plsInputName:We.string(),fieldMustUniq:We.string(),notUniq:We.string(),noKeyName:We.string(),fieldsList:We.string(),editField:We.string(),type:We.string(),errorOccurred:We.string(),errorBulkUpdateFieldName:We.string(),commitBulkUpdateFieldName:We.string(),bulkUpdateFieldName:We.string(),addPageAfter:We.string(),removePage:We.string(),removePageConfirm:We.string(),"validation.uniqueName":We.string(),"validation.hexColor":We.string(),"schemas.color":We.string(),"schemas.borderWidth":We.string(),"schemas.borderColor":We.string(),"schemas.backgroundColor":We.string(),"schemas.textColor":We.string(),"schemas.bgColor":We.string(),"schemas.horizontal":We.string(),"schemas.vertical":We.string(),"schemas.left":We.string(),"schemas.center":We.string(),"schemas.right":We.string(),"schemas.top":We.string(),"schemas.middle":We.string(),"schemas.bottom":We.string(),"schemas.padding":We.string(),"schemas.text.fontName":We.string(),"schemas.text.size":We.string(),"schemas.text.spacing":We.string(),"schemas.text.textAlign":We.string(),"schemas.text.verticalAlign":We.string(),"schemas.text.lineHeight":We.string(),"schemas.text.min":We.string(),"schemas.text.max":We.string(),"schemas.text.fit":We.string(),"schemas.text.dynamicFontSize":We.string(),"schemas.text.format":We.string(),"schemas.mvt.typingInstructions":We.string(),"schemas.mvt.sampleField":We.string(),"schemas.mvt.variablesSampleData":We.string(),"schemas.barcodes.barColor":We.string(),"schemas.barcodes.includetext":We.string(),"schemas.table.alternateBackgroundColor":We.string(),"schemas.table.tableStyle":We.string(),"schemas.table.headStyle":We.string(),"schemas.table.bodyStyle":We.string(),"schemas.table.columnStyle":We.string(),"schemas.date.format":We.string(),"schemas.select.options":We.string(),"schemas.select.optionPlaceholder":We.string(),"schemas.radioGroup.groupName":We.string()}),We.enum(["viewer","form","designer"]);const q2e=We.enum(["rgb","cmyk"]).optional();We.object({height:We.number(),width:We.number()});const e3=We.object({name:We.string(),type:We.string(),content:We.string().optional(),position:We.object({x:We.number(),y:We.number()}),width:We.number(),height:We.number(),rotate:We.number().optional(),opacity:We.number().optional(),readOnly:We.boolean().optional(),required:We.boolean().optional(),__bodyRange:We.object({start:We.number(),end:We.number().optional()}).optional(),__isSplit:We.boolean().optional()}).passthrough(),X2e=We.object({id:We.string()});e3.merge(X2e);const xK=We.any().refine(e=>e instanceof ArrayBuffer),EK=We.any().refine(e=>e instanceof Uint8Array),SK=We.object({width:We.number(),height:We.number(),padding:We.tuple([We.number(),We.number(),We.number(),We.number()]),staticSchema:We.array(e3).optional()}),Z2e=We.union([We.string(),xK,EK]),J2e=We.union([Z2e,SK]);We.array(We.record(e3));const eSe=We.array(We.array(e3)),IK=We.object({schemas:eSe,basePdf:J2e,pdfmeVersion:We.string().optional()}).passthrough(),cO=We.array(We.record(We.any())).min(1),tSe=We.record(We.object({data:We.union([We.string(),xK,EK]),fallback:We.boolean().optional(),subset:We.boolean().optional()})),uO=We.object({font:tSe.optional()}).passthrough(),BK=We.object({template:IK,options:uO.optional(),plugins:We.record(We.object({ui:We.any(),pdf:We.any(),propPanel:We.any()})).optional()}),rSe=uO.extend({colorType:q2e,author:We.string().optional(),creationDate:We.date().optional(),creator:We.string().optional(),keywords:We.array(We.string()).optional(),lang:CK.optional(),modificationDate:We.date().optional(),producer:We.string().optional(),subject:We.string().optional(),title:We.string().optional()});BK.extend({inputs:cO,options:rSe.optional()}).strict();const MK=uO.extend({lang:CK.optional(),labels:We.record(We.string(),We.string()).optional(),theme:We.record(We.string(),We.unknown()).optional(),icons:We.record(We.string(),We.string()).optional(),requiredByDefault:We.boolean().optional()}),nSe=We.any().refine(e=>e instanceof HTMLElement),dO=BK.extend({domContainer:nSe,options:MK.optional()}),iSe=dO.extend({inputs:cO}).strict(),aSe=dO.extend({}).strict(),Ma=e=>JSON.parse(JSON.stringify(e)),RK=e=>Array.from(new Set(e)),Kv=e=>{const t="",r=Object.entries(e).reduce((n,i)=>{const[a,o]=i;return!n&&o.fallback?a:n},t);if(r===t)throw Error("[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.");return r},wh=()=>({[eO]:{data:fO(zEe),fallback:!0}}),kd=e=>parseFloat(String(e))*HEe,$p=e=>e*QEe,PK=e=>e*jEe,DK=e=>parseFloat(String(e))*.26458333333333,oSe=e=>new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{n.result.startsWith("data:application/pdf;")?t(n.result):r(Error("[@pdfme/common] template.basePdf must be pdf data."))},n.readAsDataURL(e)}),TK=e=>/^#(?:[A-Fa-f0-9]{3,4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/i.test(e),_K=e=>{e.schemas&&Array.isArray(e.schemas)&&e.schemas.length>0&&!Array.isArray(e.schemas[0])&&(e.schemas=e.schemas.map(t=>Object.entries(t).map(([r,n])=>({...n,name:r}))))},OK=e=>typeof e=="string"&&!e.startsWith("data:application/pdf;")&&typeof window<"u"?fetch(e).then(r=>r.blob()).then(oSe).catch(r=>{throw r}):e,uc=e=>SK.safeParse(e).success,sSe=e=>JB.Buffer.from(e,"base64").toString("binary"),fO=e=>{const t=e.split(";base64,")[1]?e.split(";base64,")[1]:e,r=sSe(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i+=1)n[i]=r.charCodeAt(i);return n},lSe=e=>RK(e.map(t=>t.map(r=>r.fontName??"")).reduce((t,r)=>t.concat(r),[]).filter(Boolean)),cSe=e=>{const{font:t,template:{schemas:r}}=e,i=Object.values(t).reduce((s,l)=>l.fallback?s+1:s,0);if(i===0)throw Error(`[@pdfme/common] fallback flag is not found in font. true fallback flag must be only one.
|
43
43
|
Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);if(i>1)throw Error(`[@pdfme/common] ${i} fallback flags found in font. true fallback flag must be only one.
|
44
44
|
Check this document: https://pdfme.com/docs/custom-fonts#about-font-type`);const a=lSe(r),o=Object.keys(t);if(a.some(s=>!o.includes(s)))throw Error(`[@pdfme/common] ${a.filter(s=>!o.includes(s)).join()} of template.schemas is not found in font.
|
45
45
|
Check this document: https://pdfme.com/docs/custom-fonts`)},uSe=e=>{const{plugins:t,template:{schemas:r}}=e,n=RK(r.map(a=>a.map(o=>o.type)).flat()),i=Object.values(t).map(a=>a==null?void 0:a.propPanel.defaultSchema.type);if(n.some(a=>!i.includes(a)))throw Error(`[@pdfme/common] ${n.filter(a=>!i.includes(a)).join()} of template.schemas is not found in plugins.`)},qv=(e,t)=>{try{t.parse(e)}catch(r){if(r instanceof We.ZodError){const i=r.issues.map(a=>`ERROR POSITION: ${a.path.join(".")}
|
@@ -525,7 +525,7 @@ html body {
|
|
525
525
|
${r}-eye,
|
526
526
|
${r}-download,
|
527
527
|
${r}-delete
|
528
|
-
`]:{zIndex:10,width:n,margin:`0 ${fe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},wot=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Cot=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},qr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},xot=Xr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:i,calc:a}=e,o=ur(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(n).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Cot(o),got(o),bot(o),yot(o),vot(o),mot(o),wot(o),Jx(o)]},e=>({actionsColor:e.colorTextDescription}));function SP(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function IP(e,t){const r=Qe(t),n=r.findIndex(i=>{let{uid:a}=i;return a===e.uid});return n===-1?r.push(e):r[n]=e,r}function c9(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function Eot(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const Sot=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Ehe=e=>e.indexOf("image/")===0,Iot=e=>{if(e.type&&!e.thumbUrl)return Ehe(e.type);const t=e.thumbUrl||e.url||"",r=Sot(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},b0=200;function Bot(e){return new Promise(t=>{if(!e.type||!Ehe(e.type)){t("");return}const r=document.createElement("canvas");r.width=b0,r.height=b0,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${b0}px; height: ${b0}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=b0,l=b0,c=0,u=0;a>o?(l=o*(b0/a),u=-(l-s)/2):(s=a*(b0/o),c=-(s-l)/2),n.drawImage(i,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Mot=h.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:A,showRemoveIcon:v,showDownloadIcon:g,previewIcon:m,removeIcon:y,downloadIcon:b,extra:C,onPreview:w,onDownload:x,onClose:E}=e;var S,I;const{status:B}=s,[R,_]=h.useState(B);h.useEffect(()=>{B!=="removed"&&_(B)},[B]);const[O,F]=h.useState(!1);h.useEffect(()=>{const q=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(q)}},[]);const k=u(s);let D=h.createElement("div",{className:`${r}-icon`},k);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(R==="uploading"||!s.thumbUrl&&!s.url){const q=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:R!=="uploading"});D=h.createElement("div",{className:q},k)}else{const q=p!=null&&p(s)?h.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):k,te=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:p&&!p(s)});D=h.createElement("a",{className:te,onClick:ae=>w(s,ae),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const M=Ae(`${r}-list-item`,`${r}-list-item-${R}`),T=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=(typeof v=="function"?v(s):v)?d((typeof y=="function"?y(s):y)||h.createElement(Qet,null),()=>E(s),r,a.removeFile,!0):null,N=(typeof g=="function"?g(s):g)&&R==="done"?d((typeof b=="function"?b(s):b)||h.createElement(Wet,null),()=>x(s),r,a.downloadFile):null,$=o!=="picture-card"&&o!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:Ae(`${r}-list-item-actions`,{picture:o==="picture"})},N,L),U=typeof C=="function"?C(s):C,Y=U&&h.createElement("span",{className:`${r}-list-item-extra`},U),V=Ae(`${r}-list-item-name`),K=s.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:s.name},T,{href:s.url,onClick:q=>w(s,q)}),s.name,Y):h.createElement("span",{key:"view",className:V,onClick:q=>w(s,q),title:s.name},s.name,Y),ne=(typeof A=="function"?A(s):A)&&(s.url||s.thumbUrl)?h.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>w(s,q),title:a.previewFile},typeof m=="function"?m(s):m||h.createElement(n$,null)):null,X=(o==="picture-card"||o==="picture-circle")&&R!=="uploading"&&h.createElement("span",{className:`${r}-list-item-actions`},ne,R==="done"&&N,L),{getPrefixCls:Q}=h.useContext(Pt),z=Q(),j=h.createElement("div",{className:M},D,K,$,X,O&&h.createElement(to,{motionName:`${z}-fade`,visible:R==="uploading",motionDeadline:2e3},q=>{let{className:te}=q;const ae="percent"in s?h.createElement(bet,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return h.createElement("div",{className:Ae(`${r}-list-item-progress`,te)},ae)})),W=s.response&&typeof s.response=="string"?s.response:((S=s.error)===null||S===void 0?void 0:S.statusText)||((I=s.error)===null||I===void 0?void 0:I.message)||a.uploadError,ee=R==="error"?h.createElement(Co,{title:W,getPopupContainer:q=>q.parentNode},j):j;return h.createElement("div",{className:Ae(`${r}-list-item-container`,n),style:i,ref:t},f?f(ee,s,l,{download:x.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):ee)}),Rot=(e,t)=>{const{listType:r="text",previewFile:n=Bot,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Iot,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:A=!1,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:x,disabled:E}=e,S=uN(),[I,B]=h.useState(!1),R=["picture-card","picture-circle"].includes(r);h.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",n==null||n(Y.originFileObj).then(V=>{Y.thumbUrl=V||"",S()}))})},[r,d,n]),h.useEffect(()=>{B(!0)},[]);const _=(Y,V)=>{if(i)return V.preventDefault(),i(Y)},O=Y=>{typeof a=="function"?a(Y):Y.url&&window.open(Y.url)},F=Y=>{o==null||o(Y)},k=Y=>{if(l)return l(Y,r);const V=Y.status==="uploading";if(r.startsWith("picture")){const K=r==="picture"?h.createElement(Wu,null):s.uploading,ne=c!=null&&c(Y)?h.createElement(_tt,null):h.createElement(itt,null);return V?K:ne}return V?h.createElement(Wu,null):h.createElement(Ptt,null)},D=(Y,V,K,ne,X)=>{const Q={type:"text",size:"small",title:ne,onClick:z=>{var j,W;V(),h.isValidElement(Y)&&((W=(j=Y.props).onClick)===null||W===void 0||W.call(j,z))},className:`${K}-list-item-action`};return X&&(Q.disabled=E),h.isValidElement(Y)?h.createElement(Or,Object.assign({},Q,{icon:da(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):h.createElement(Or,Object.assign({},Q),h.createElement("span",null,Y))};h.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:O}));const{getPrefixCls:M}=h.useContext(Pt),T=M("upload",u),L=M(),N=Ae(`${T}-list`,`${T}-list-${r}`),$=h.useMemo(()=>Pn(ub(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),U=Object.assign(Object.assign({},R?{}:$),{motionDeadline:2e3,motionName:`${T}-${R?"animate-inline":"animate"}`,keys:Qe(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:I});return h.createElement("div",{className:N},h.createElement(KL,Object.assign({},U,{component:!1}),Y=>{let{key:V,file:K,className:ne,style:X}=Y;return h.createElement(Mot,{key:V,locale:s,prefixCls:T,className:ne,style:X,file:K,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:A,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,iconRender:k,actionIconRender:D,itemRender:x,onPreview:_,onDownload:O,onClose:F})}),C&&h.createElement(to,Object.assign({},U,{visible:w,forceRender:!0}),Y=>{let{className:V,style:K}=Y;return da(C,ne=>({className:Ae(ne.className,V),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:V?"none":void 0}),ne.style)}))}))},Pot=h.forwardRef(Rot);var Dot=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,[])).next())})};const QE=`__LIST_IGNORE_${Date.now()}__`,Tot=(e,t)=>{const{fileList:r,defaultFileList:n,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:A,isImageUrl:v,progress:g,prefixCls:m,className:y,type:b="select",children:C,style:w,itemRender:x,maxCount:E,data:S={},multiple:I=!1,hasControlInside:B=!0,action:R="",accept:_="",supportServerRender:O=!0,rootClassName:F}=e,k=h.useContext(ca),D=f??k,[M,T]=Mr(n||[],{value:r,postState:xe=>xe??[]}),[L,N]=h.useState("drop"),$=h.useRef(null),U=h.useRef(null);h.useMemo(()=>{const xe=Date.now();(r||[]).forEach((_e,Pe)=>{!_e.uid&&!Object.isFrozen(_e)&&(_e.uid=`__AUTO__${xe}_${Pe}__`)})},[r]);const Y=(xe,_e,Pe)=>{let Be=Qe(_e),Oe=!1;E===1?Be=Be.slice(-1):E&&(Oe=Be.length>E,Be=Be.slice(0,E)),_n.flushSync(()=>{T(Be)});const Ze={file:xe,fileList:Be};Pe&&(Ze.event=Pe),(!Oe||xe.status==="removed"||Be.some(Et=>Et.uid===xe.uid))&&_n.flushSync(()=>{c==null||c(Ze)})},V=(xe,_e)=>Dot(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Be}=e;let Oe=xe;if(Pe){const Ze=yield Pe(xe,_e);if(Ze===!1)return!1;if(delete xe[QE],Ze===QE)return Object.defineProperty(xe,QE,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(Oe=Ze)}return Be&&(Oe=yield Be(Oe)),Oe}),K=xe=>{const _e=xe.filter(Oe=>!Oe.file[QE]);if(!_e.length)return;const Pe=_e.map(Oe=>SP(Oe.file));let Be=Qe(M);Pe.forEach(Oe=>{Be=IP(Oe,Be)}),Pe.forEach((Oe,Ze)=>{let Et=Oe;if(_e[Ze].parsedFile)Oe.status="uploading";else{const{originFileObj:tt}=Oe;let Ve;try{Ve=new File([tt],tt.name,{type:tt.type})}catch{Ve=new Blob([tt],{type:tt.type}),Ve.name=tt.name,Ve.lastModifiedDate=new Date,Ve.lastModified=new Date().getTime()}Ve.uid=Oe.uid,Et=Ve}Y(Et,Be)})},ne=(xe,_e,Pe)=>{try{typeof xe=="string"&&(xe=JSON.parse(xe))}catch{}if(!c9(_e,M))return;const Be=SP(_e);Be.status="done",Be.percent=100,Be.response=xe,Be.xhr=Pe;const Oe=IP(Be,M);Y(Be,Oe)},X=(xe,_e)=>{if(!c9(_e,M))return;const Pe=SP(_e);Pe.status="uploading",Pe.percent=xe.percent;const Be=IP(Pe,M);Y(Pe,Be,xe)},Q=(xe,_e,Pe)=>{if(!c9(Pe,M))return;const Be=SP(Pe);Be.error=xe,Be.response=_e,Be.status="error";const Oe=IP(Be,M);Y(Be,Oe)},z=xe=>{let _e;Promise.resolve(typeof i=="function"?i(xe):i).then(Pe=>{var Be;if(Pe===!1)return;const Oe=Eot(xe,M);Oe&&(_e=Object.assign(Object.assign({},xe),{status:"removed"}),M==null||M.forEach(Ze=>{const Et=_e.uid!==void 0?"uid":"name";Ze[Et]===_e[Et]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Be=$.current)===null||Be===void 0||Be.abort(_e),Y(_e,Oe))})},j=xe=>{N(xe.type),xe.type==="drop"&&(u==null||u(xe))};h.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:ne,onProgress:X,onError:Q,fileList:M,upload:$.current,nativeElement:U.current}));const{getPrefixCls:W,direction:ee,upload:q}=h.useContext(Pt),te=W("upload",m),ae=Object.assign(Object.assign({onBatchStart:K,onError:Q,onProgress:X,onSuccess:ne},e),{data:S,multiple:I,action:R,accept:_,supportServerRender:O,prefixCls:te,disabled:D,beforeUpload:V,onChange:void 0,hasControlInside:B});delete ae.className,delete ae.style,(!C||D)&&delete ae.id;const ce=`${te}-wrapper`,[de,se,pe]=xot(te,ce),[ye]=Qu("Upload",Ll.Upload),{showRemoveIcon:Ce,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,extra:re}=typeof a=="boolean"?{}:a,H=typeof Ce>"u"?!D:Ce,G=(xe,_e)=>a?h.createElement(Pot,{prefixCls:te,listType:o,items:M,previewFile:d,onPreview:s,onDownload:l,onRemove:z,showRemoveIcon:H,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,iconRender:A,extra:re,locale:Object.assign(Object.assign({},ye),p),isImageUrl:v,progress:g,appendAction:xe,appendActionVisible:_e,itemRender:x,disabled:D}):xe,oe=Ae(ce,y,F,se,pe,q==null?void 0:q.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:o==="picture-card",[`${te}-picture-circle-wrapper`]:o==="picture-circle"}),me=Object.assign(Object.assign({},q==null?void 0:q.style),w);if(b==="drag"){const xe=Ae(se,te,`${te}-drag`,{[`${te}-drag-uploading`]:M.some(_e=>_e.status==="uploading"),[`${te}-drag-hover`]:L==="dragover",[`${te}-disabled`]:D,[`${te}-rtl`]:ee==="rtl"});return de(h.createElement("span",{className:oe,ref:U},h.createElement("div",{className:xe,style:me,onDrop:j,onDragOver:j,onDragLeave:j},h.createElement(l9,Object.assign({},ae,{ref:$,className:`${te}-btn`}),h.createElement("div",{className:`${te}-drag-container`},C))),G()))}const we=Ae(te,`${te}-select`,{[`${te}-disabled`]:D}),Ee=h.createElement("div",{className:we,style:C?void 0:{display:"none"}},h.createElement(l9,Object.assign({},ae,{ref:$})));return de(o==="picture-card"||o==="picture-circle"?h.createElement("span",{className:oe,ref:U},G(Ee,!!C)):h.createElement("span",{className:oe,ref:U},Ee,G()))},She=h.forwardRef(Tot);var _ot=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Oot=h.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:i=!1}=e,a=_ot(e,["style","height","hasControlInside"]);return h.createElement(She,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),u9=She;u9.Dragger=Oot,u9.LIST_IGNORE=QE;const Ihe={en:{cancel:"Cancel",close:"Close",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",required:"Required",editable:"Editable",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",addPageAfter:"Add Page After",removePage:"Remove Current Page",removePageConfirm:"Are you sure you want to delete this page? This action cannot be undone.","validation.hexColor":"Please enter a valid hex color code.","validation.uniqueName":"Please enter a unique name.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.backgroundColor":"Background Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.padding":"Padding","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Add variables by typing words surrounded by curly brackets, e.g.","schemas.mvt.sampleField":"name","schemas.mvt.variablesSampleData":"Variables Sample Data","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text","schemas.table.alternateBackgroundColor":"Alternate Background Color","schemas.table.tableStyle":"Table Style","schemas.table.headStyle":"Header Style","schemas.table.bodyStyle":"Body Style","schemas.table.columnStyle":"Column Style","schemas.date.format":"Date Format","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Enter an option"},zh:{cancel:"取消",close:"关闭",field:"字段",fieldName:"名称",align:"对齐",width:"宽度",height:"高度",opacity:"透明度",rotate:"旋转",required:"必需的",editable:"可编辑的",edit:"编辑",plsInputName:"请输入名称",fieldMustUniq:"字段名称必须唯一",notUniq:"(名称不唯一)",noKeyName:"无名称",fieldsList:"字段列表",editField:"编辑字段",type:"类型",errorOccurred:"发生错误",errorBulkUpdateFieldName:"由于项目数量已更改,无法提交更改。",commitBulkUpdateFieldName:"提交更改",bulkUpdateFieldName:"批量更新字段名称",addPageAfter:"在之后添加页面",removePage:"删除当前页面",removePageConfirm:"您确定要删除此页面吗?此操作无法撤销。","validation.hexColor":"请输入有效的十六进制颜色代码。","validation.uniqueName":"请输入一个唯一的名称。","schemas.color":"颜色","schemas.borderWidth":"边框宽度","schemas.borderColor":"边框颜色","schemas.backgroundColor":"背景颜色","schemas.textColor":"文字颜色","schemas.bgColor":"背景颜色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中","schemas.right":"右","schemas.top":"顶","schemas.middle":"中间","schemas.bottom":"底","schemas.padding":"填充","schemas.text.fontName":"字体名称","schemas.text.size":"大小","schemas.text.spacing":"间距","schemas.text.textAlign":"文本对齐","schemas.text.verticalAlign":"垂直对齐","schemas.text.lineHeight":"行高","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"适应","schemas.text.dynamicFontSize":"动态字体大小","schemas.text.format":"格式","schemas.mvt.typingInstructions":"通过输入用花括号括起来的单词来添加变量,例如","schemas.mvt.sampleField":"姓名","schemas.mvt.variablesSampleData":"变量样本数据","schemas.barcodes.barColor":"条码颜色","schemas.barcodes.includetext":"包括文本","schemas.table.alternateBackgroundColor":"交替背景颜色","schemas.table.tableStyle":"表格样式","schemas.table.headStyle":"表头样式","schemas.table.bodyStyle":"表体样式","schemas.table.columnStyle":"列样式","schemas.date.format":"日期格式","schemas.select.options":"选项","schemas.select.optionPlaceholder":"请输入选项"},ja:{cancel:"キャンセル",close:"閉じる",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",required:"必須",editable:"編集可能",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",addPageAfter:"次にページを追加",removePage:"現在のページを削除",removePageConfirm:"ページを削除してもよろしいですか?この操作は元に戻せません。","validation.hexColor":"有効な16進数のカラーコードを入力してください。","validation.uniqueName":"一意の名前を入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.backgroundColor":"背景色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.padding":"パディング","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.text.format":"書式","schemas.mvt.typingInstructions":"中括弧で囲まれた単語を入力して変数を追加します。例:","schemas.mvt.sampleField":"名前","schemas.mvt.variablesSampleData":"変数サンプルデータ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める","schemas.table.alternateBackgroundColor":"交互の背景色","schemas.table.tableStyle":"テーブルスタイル","schemas.table.headStyle":"ヘッダースタイル","schemas.table.bodyStyle":"ボディスタイル","schemas.table.columnStyle":"カラムスタイル","schemas.date.format":"日付形式","schemas.select.options":"オプション","schemas.select.optionPlaceholder":"オプションを入力してください"},ko:{cancel:"취소",close:"닫기",field:"필드",fieldName:"이름",align:"정렬",width:"너비",height:"높이",opacity:"투명도",rotate:"회전",required:"필수의",editable:"편집 가능한",edit:"편집",plsInputName:"이름을 입력하세요",fieldMustUniq:"필드 이름은 유일해야 합니다",notUniq:"(유일하지 않은 이름)",noKeyName:"이름 없음",fieldsList:"필드 목록",editField:"필드 편집",type:"유형",errorOccurred:"오류 발생",errorBulkUpdateFieldName:"항목 수가 변경되어 변경을 커밋할 수 없습니다.",commitBulkUpdateFieldName:"변경 사항 커밋",bulkUpdateFieldName:"필드 이름 일괄 업데이트",addPageAfter:"다음에 페이지 추가",removePage:"현재 페이지 제거",removePageConfirm:"이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.","validation.hexColor":"유효한 16진수 색상 코드를 입력하세요.","validation.uniqueName":"고유한 이름을 입력하세요.","schemas.color":"색상","schemas.borderWidth":"테두리 너비","schemas.borderColor":"테두리 색상","schemas.backgroundColor":"배경색","schemas.textColor":"텍스트 색상","schemas.bgColor":"배경색","schemas.horizontal":"수평","schemas.vertical":"수직","schemas.left":"왼쪽","schemas.center":"중앙","schemas.right":"오른쪽","schemas.top":"상단","schemas.middle":"중간","schemas.bottom":"하단","schemas.padding":"패딩","schemas.text.fontName":"글꼴 이름","schemas.text.size":"크기","schemas.text.spacing":"간격","schemas.text.textAlign":"텍스트 정렬","schemas.text.verticalAlign":"수직 정렬","schemas.text.lineHeight":"줄 높이","schemas.text.min":"최소","schemas.text.max":"최대","schemas.text.fit":"맞춤","schemas.text.dynamicFontSize":"동적 폰트 크기","schemas.text.format":"형식","schemas.mvt.typingInstructions":"중괄호로 묶인 단어를 입력하여 변수를 추가하세요.","schemas.mvt.sampleField":"이름","schemas.mvt.variablesSampleData":"변수 샘플 데이터","schemas.barcodes.barColor":"바코드 색상","schemas.barcodes.includetext":"텍스트 포함","schemas.table.alternateBackgroundColor":"대체 배경색","schemas.table.tableStyle":"테이블 스타일","schemas.table.headStyle":"헤더 스타일","schemas.table.bodyStyle":"본문 스타일","schemas.table.columnStyle":"열 스타일","schemas.date.format":"날짜 형식","schemas.select.options":"옵션","schemas.select.optionPlaceholder":"옵션을 입력하세요"},ar:{cancel:"إلغاء",close:"إغلاق",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",required:"مطلوب",editable:"قابل للتحرير",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",addPageAfter:"إضافة صفحة بعد",removePage:"احذف الصفحة الحالية",removePageConfirm:"هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.","validation.hexColor":"الرجاء إدخال رمز لون سداسي عشري صالح.","validation.uniqueName":"الرجاء إدخال اسم فريد.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.backgroundColor":"لون الخلفية","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.padding":"التبطين","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.text.format":"تنسيق","schemas.mvt.typingInstructions":"قم بإضافة المتغيرات عن طريق كتابة الكلمات المحاطة بأقواس متعرجة، على سبيل المثال:","schemas.mvt.sampleField":"اسم","schemas.mvt.variablesSampleData":"بيانات عينة المتغيرات","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص","schemas.table.alternateBackgroundColor":"لون الخلفية البديل","schemas.table.tableStyle":"أسلوب الجدول","schemas.table.headStyle":"أسلوب الرأس","schemas.table.bodyStyle":"أسلوب الجسم","schemas.table.columnStyle":"أسلوب العمود","schemas.date.format":"تنسيق التاريخ","schemas.select.options":"خيارات","schemas.select.optionPlaceholder":"أدخل خيارًا"},th:{cancel:"ยกเลิก",close:"ปิด",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",required:"ที่จำเป็น",editable:"แก้ไขได้",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",addPageAfter:"เพิ่มหน้าถัดไป",removePage:"ลบหน้าปัจจุบัน",removePageConfirm:"คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้","validation.hexColor":"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","validation.uniqueName":"กรุณาระบุชื่อที่ไม่ซ้ำ","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.backgroundColor":"สีพื้นหลัง","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.padding":"การเพิ่มพื้นที่","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.text.format":"รูปแบบ","schemas.mvt.typingInstructions":"เพิ่มตัวแปรโดยพิมพ์คำที่ล้อมรอบด้วยวงเล็บปีกกา เช่น","schemas.mvt.sampleField":"ชื่อ","schemas.mvt.variablesSampleData":"ข้อมูลตัวอย่างตัวแปร","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ","schemas.table.alternateBackgroundColor":"สีพื้นหลังสลับกัน","schemas.table.tableStyle":"สไตล์ตาราง","schemas.table.headStyle":"สไตล์หัวข้อ","schemas.table.bodyStyle":"สไตล์เนื้อหา","schemas.table.columnStyle":"สไตล์คอลัมน์","schemas.date.format":"รูปแบบวันที่","schemas.select.options":"ตัวเลือก","schemas.select.optionPlaceholder":"กรอกตัวเลือก"},it:{cancel:"Annulla",close:"Chiudi",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",required:"Necessaria",editable:"Modificabile",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",addPageAfter:"Aggiungi pagina dopo",removePage:"Rimuovi la Pagina Corrente",removePageConfirm:"Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.","validation.hexColor":"Inserisci un codice colore esadecimale valido.","validation.uniqueName":"Inserisci un nome univoco.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.backgroundColor":"Colore di Sfondo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.padding":"Padding","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Aggiungi variabili digitando parole circondate da parentesi graffe, ad es.","schemas.mvt.sampleField":"nome","schemas.mvt.variablesSampleData":"Dati di esempio variabili","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo","schemas.table.alternateBackgroundColor":"Colore di Sfondo Alternato","schemas.table.tableStyle":"Stile della Tabella","schemas.table.headStyle":"Stile dell'Intestazione","schemas.table.bodyStyle":"Stile del Corpo","schemas.table.columnStyle":"Stile della Colonna","schemas.date.format":"Formato data","schemas.select.options":"Opzioni","schemas.select.optionPlaceholder":"Inserisci un'opzione"},pl:{cancel:"Anuluj",close:"Zamknij",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",required:"Wymagany",editable:"Edytowalny",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",addPageAfter:"Dodaj stronę po",removePage:"Usuń Bieżącą Stronę",removePageConfirm:"Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.","validation.hexColor":"Wprowadź poprawny kod koloru szesnastkowego.","validation.uniqueName":"Proszę wpisać unikalną nazwę.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.backgroundColor":"Kolor tła","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.padding":"Odsadzenie","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Dodaj zmienne, wpisując słowa ujęte w nawiasy klamrowe, np.","schemas.mvt.sampleField":"nazwa","schemas.mvt.variablesSampleData":"Zmienne Przykładowe dane","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst","schemas.table.alternateBackgroundColor":"Alternatywny kolor tła","schemas.table.tableStyle":"Styl tabeli","schemas.table.headStyle":"Styl nagłówka","schemas.table.bodyStyle":"Styl ciała","schemas.table.columnStyle":"Styl kolumny","schemas.date.format":"Format daty","schemas.select.options":"Opcje","schemas.select.optionPlaceholder":"Wpisz opcję"},de:{cancel:"Abbrechen",close:"Schließen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",required:"Erforderlich",editable:"Bearbeitbar",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",addPageAfter:"Seite danach hinzufügen",removePage:"Aktuelle Seite entfernen",removePageConfirm:"Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.","validation.hexColor":"Bitte geben Sie einen gültigen Hex-Farbcode ein.","validation.uniqueName":"Bitte geben Sie einen eindeutigen Namen ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.backgroundColor":"Hintergrundfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.padding":"Polsterung","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Fügen Sie Variablen hinzu, indem Sie Wörter in geschweiften Klammern eingeben, z. B.","schemas.mvt.sampleField":"Name","schemas.mvt.variablesSampleData":"Variablen Beispieldaten","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen","schemas.table.alternateBackgroundColor":"Wechselnde Hintergrundfarbe","schemas.table.tableStyle":"Tabellenstil","schemas.table.headStyle":"Kopfzeilenstil","schemas.table.bodyStyle":"Körperstil","schemas.table.columnStyle":"Spaltenstil","schemas.date.format":"Datumsformat","schemas.select.options":"Optionen","schemas.select.optionPlaceholder":"Geben Sie eine Option ein"},es:{cancel:"Cancelar",close:"Cerrar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",required:"Requerido",editable:"Editable",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",addPageAfter:"Insertar página",removePage:"Eliminar página actual",removePageConfirm:"¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.","validation.hexColor":"Introduce un código de color hexadecimal válido.","validation.uniqueName":"Por favor, introduzca un nombre único.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.backgroundColor":"Color de fondo","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.padding":"Relleno","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Agregue variables escribiendo palabras entre llaves, p.","schemas.mvt.sampleField":"nombre","schemas.mvt.variablesSampleData":"Variables Datos de muestra","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto","schemas.table.alternateBackgroundColor":"Color de fondo alternativo","schemas.table.tableStyle":"Estilo de tabla","schemas.table.headStyle":"Estilo de cabecera","schemas.table.bodyStyle":"Estilo de cuerpo","schemas.table.columnStyle":"Estilo de columna","schemas.date.format":"Formato de fecha","schemas.select.options":"Opciones","schemas.select.optionPlaceholder":"Ingrese una opción"},fr:{cancel:"Annuler",close:"Fermer",field:"Champ",fieldName:"Nom",align:"Aligner",width:"Largeur",height:"Hauteur",opacity:"Opacité",rotate:"Rotation",required:"Requis",editable:"Modifiable",edit:"Éditer",plsInputName:"Veuillez saisir le nom",fieldMustUniq:"Le nom du champ n'est pas unique",notUniq:"(Nombre non unique)",noKeyName:"Pas de nom",fieldsList:"Liste des champs",editField:"Éditer le champ",type:"Type",errorOccurred:"Une erreur est survenue",errorBulkUpdateFieldName:"Impossible de confirmer le changement car le nombre d'éléments a changé.",commitBulkUpdateFieldName:"Confirmer les changements",bulkUpdateFieldName:"Modifier les noms de champs en masse",addPageAfter:"Ajouter une page après",removePage:"Supprimer la page actuelle",removePageConfirm:"Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.","validation.hexColor":"Veuillez entrer un code couleur hexadécimal valide.","validation.uniqueName":"Veuillez saisir un nom unique.","schemas.color":"Couleur","schemas.borderWidth":"Largeur de la bordure","schemas.borderColor":"Couleur de la bordure","schemas.backgroundColor":"Couleur de fond","schemas.textColor":"Couleur du texte","schemas.bgColor":"Couleur de fond","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Gauche","schemas.center":"Centre","schemas.right":"Droite","schemas.top":"Haut","schemas.middle":"Milieu","schemas.bottom":"Bas","schemas.padding":"Zone de remplissage","schemas.text.fontName":"Nom de la police","schemas.text.size":"Taille","schemas.text.spacing":"Espacement","schemas.text.textAlign":"Alignement du texte","schemas.text.verticalAlign":"Alignement vertical","schemas.text.lineHeight":"Hauteur de ligne","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Ajustement","schemas.text.dynamicFontSize":"Taille de police dynamique","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Ajoutez des variables en tapant des mots entourés d'accolades, par ex.","schemas.mvt.sampleField":"nom","schemas.mvt.variablesSampleData":"Variables Exemples de données","schemas.barcodes.barColor":"Couleur de la barre","schemas.barcodes.includetext":"Inclure le texte","schemas.table.alternateBackgroundColor":"Couleur de fond alternative","schemas.table.tableStyle":"Style de tableau","schemas.table.headStyle":"Style d'en-tête","schemas.table.bodyStyle":"Style de corps","schemas.table.columnStyle":"Style de colonne","schemas.date.format":"Format de date","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Entrez une option"}},Bhe=e=>Ihe[e]||Ihe[TO],Mhe=(e,t)=>(t||Bhe(TO))[e],hf=h.createContext(Mhe),BP=h.createContext(wh()),y0=h.createContext(tne),HE=h.createContext({});function MP(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function kot(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function RP(e){return e!==null&&e>=0}function Fot(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Lot(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Rhe=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=MP(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},PP={scaleX:1,scaleY:1},Not=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const s=(t=a[r])!=null?t:n;if(!s)return null;if(i===r){const c=a[o];return c?{x:0,y:r<o?c.top+c.height-(s.top+s.height):c.top-s.top,...PP}:null}const l=$ot(a,i,r);return i>r&&i<=o?{x:0,y:-s.height-l,...PP}:i<r&&i>=o?{x:0,y:s.height+l,...PP}:{x:0,y:0,...PP}};function $ot(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const Phe="Sortable",Dhe=J.createContext({activeIndex:-1,containerId:Phe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Rhe,disabled:{draggable:!1,droppable:!1}});function jot(e){let{children:t,id:r,items:n,strategy:i=Rhe,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=$ne(),d=Ex(Phe,r),f=s.rect!==null,p=h.useMemo(()=>n.map(x=>typeof x=="object"&&"id"in x?x.id:x),[n]),A=o!=null,v=o?p.indexOf(o.id):-1,g=c?p.indexOf(c.id):-1,m=h.useRef(p),y=!Fot(p,m.current),b=g!==-1&&v===-1||y,C=Lot(a);Tl(()=>{y&&A&&u(p)},[y,p,A,u]),h.useEffect(()=>{m.current=p},[p]);const w=h.useMemo(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:b,items:p,overIndex:g,useDragOverlay:f,sortedRects:kot(p,l),strategy:i}),[v,d,C.draggable,C.droppable,b,p,g,l,f,i]);return J.createElement(Dhe.Provider,{value:w},t)}const Qot=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return MP(r,n,i).indexOf(t)},Hot=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===l},zot={duration:200,easing:"ease"},The="transform",Wot=Xh.Transition.toString({property:The,duration:0,easing:"linear"}),Vot={roleDescription:"sortable"};function Got(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(r);return Tl(()=>{if(!t&&r!==s.current&&n.current){const l=i.current;if(l){const c=Um(n.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&o(u)}}r!==s.current&&(s.current=r)},[t,r,n,i]),h.useEffect(()=>{a&&o(null)},[a]),a}function Yot(e){let{animateLayoutChanges:t=Hot,attributes:r,disabled:n,data:i,getNewIndex:a=Qot,id:o,strategy:s,resizeObserverConfig:l,transition:c=zot}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:A,sortedRects:v,overIndex:g,useDragOverlay:m,strategy:y}=h.useContext(Dhe),b=Uot(n,p),C=u.indexOf(o),w=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),x=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:S,isOver:I,setNodeRef:B}=xFe({id:o,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:R,activatorEvent:_,activeNodeRect:O,attributes:F,setNodeRef:k,listeners:D,isDragging:M,over:T,setActivatorNodeRef:L,transform:N}=Nne({id:o,data:w,attributes:{...Vot,...r},disabled:b.draggable}),$=s6e(B,k),U=!!R,Y=U&&!A&&RP(f)&&RP(g),V=!m&&M,K=V&&Y?N:null,X=Y?K??(s??y)({rects:v,activeNodeRect:O,activeIndex:f,overIndex:g,index:C}):null,Q=RP(f)&&RP(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,z=R==null?void 0:R.id,j=h.useRef({activeId:z,items:u,newIndex:Q,containerId:d}),W=u!==j.current.items,ee=t({active:R,containerId:d,isDragging:M,isSorting:U,id:o,index:C,items:u,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:c,wasDragging:j.current.activeId!=null}),q=Got({disabled:!ee,index:C,node:S,rect:E});return h.useEffect(()=>{U&&j.current.newIndex!==Q&&(j.current.newIndex=Q),d!==j.current.containerId&&(j.current.containerId=d),u!==j.current.items&&(j.current.items=u)},[U,Q,d,u]),h.useEffect(()=>{if(z===j.current.activeId)return;if(z&&!j.current.activeId){j.current.activeId=z;return}const ae=setTimeout(()=>{j.current.activeId=z},50);return()=>clearTimeout(ae)},[z]),{active:R,activeIndex:f,attributes:F,data:w,rect:E,index:C,newIndex:Q,items:u,isOver:I,isSorting:U,isDragging:M,listeners:D,node:S,overIndex:g,over:T,setNodeRef:$,setActivatorNodeRef:L,setDroppableNodeRef:B,setDraggableNodeRef:k,transform:q??X,transition:te()};function te(){if(q||W&&j.current.newIndex===C)return Wot;if(!(V&&!J4(_)||!c)&&(U||ee))return Xh.Transition.toString({...c,property:The})}}function Uot(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function DP(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Kot=[bn.Down,bn.Right,bn.Up,bn.Left],qot=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(Kot.includes(e.code)){if(e.preventDefault(),!r||!n)return;const l=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=i.get(d.id);if(f)switch(e.code){case bn.Down:n.top<f.top&&l.push(d);break;case bn.Up:n.top>f.top&&l.push(d);break;case bn.Left:n.left>f.left&&l.push(d);break;case bn.Right:n.left<f.left&&l.push(d);break}});const c=fne({active:r,collisionRect:n,droppableRects:i,droppableContainers:l,pointerCoordinates:null});let u=dne(c,"id");if(u===(o==null?void 0:o.id)&&c.length>1&&(u=c[1].id),u!=null){const d=a.get(r.id),f=a.get(u),p=f?i.get(f.id):null,A=f==null?void 0:f.node.current;if(A&&p&&d&&f){const g=rM(A).some((x,E)=>s[E]!==x),m=_he(d,f),y=Xot(d,f),b=g||!m?{x:0,y:0}:{x:y?n.width-p.width:0,y:y?n.height-p.height:0},C={x:p.left,y:p.top};return b.x&&b.y?C:Sx(C,b)}}}};function _he(e,t){return!DP(e)||!DP(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Xot(e,t){return!DP(e)||!DP(t)||!_he(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const{Text:Zot}=ff,d9=J.memo(J.forwardRef(({icon:e,value:t,status:r,title:n,required:i,readOnly:a,style:o,dragOverlay:s,onClick:l,onMouseEnter:c,onMouseLeave:u,dragging:d,fadeIn:f,listeners:p,sorting:A,transition:v,transform:g,...m},y)=>{const b=h.useContext(hf);h.useEffect(()=>{if(s)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[s]);const{x:C,y:w,scaleX:x,scaleY:E}=g||{x:0,y:0,scaleX:1,scaleY:1};return ke.jsx("li",{style:{marginTop:10,transition:v,transform:`translate(${C}px, ${w}px) scale(${x}, ${E})`},onMouseEnter:c,onMouseLeave:u,ref:y,children:ke.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",...o},...m,onClick:()=>l&&l(),children:[ke.jsx(Or,{...p,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:ke.jsx(rfe,{style:{cursor:"grab"}})}),e,ke.jsxs(Zot,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:n||"",children:[r===void 0?t:ke.jsxs("span",{children:[ke.jsx(Jet,{width:15,style:{marginRight:"0.5rem"}}),r==="is-warning"?b("noKeyName"):t,r==="is-danger"?b("notUniq"):""]}),a&&ke.jsx(mtt,{style:{marginLeft:"0.5rem"}}),i&&ke.jsx("span",{style:{color:"red",marginLeft:"0.5rem"},children:"*"})]})]})})})),Jot=e=>{const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current},Ohe=(e,t)=>Math.floor((e/t>1?1:e/t)*100)/100,khe=({template:e,size:t,zoomLevel:r})=>{const[n,i]=h.useState([]),[a,o]=h.useState([]),[s,l]=h.useState(0),[c,u]=h.useState(null),d=async f=>{const{template:{basePdf:p,schemas:A},size:v}=f;let g,m,y,b;if(uc(p)){const{width:w,height:x}=p;g=w*On,m=x*On,y=A.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),b=A.map(()=>({width:w,height:x}))}else{const w=await OK(p),x=cZ(w);b=await lZ(x),g=b[0].width*On,m=b[0].height*On,y=await u4e(x,g)}const C=Math.min(Ohe(v.width,g),Ohe(v.height-na,m));return{backgrounds:y,pageSizes:b,scale:C}};return h.useEffect(()=>{d({template:e,size:t}).then(({pageSizes:f,scale:p,backgrounds:A})=>{o(f),l(p),i(A)}).catch(f=>{u(f),console.error(`[@pdfme/ui] ${f}`)})},[e,t]),{backgrounds:n,pageSizes:a,scale:s*r,error:c,refresh:f=>d({template:f,size:t}).then(({pageSizes:p,scale:A,backgrounds:v})=>{o(p),l(A),i(v)})}},Fhe=({ref:e,pageSizes:t,scale:r,pageCursor:n,onChangePageCursor:i})=>{const a=h.useCallback(()=>{if(!t[0]||!e.current)return;const o=e.current.scrollTop,{top:s}=e.current.getBoundingClientRect(),l=t.reduce((u,d,f)=>{let p=(d.height*On+na)*r;return f===0?p+=s-p/2:p+=u[f-1],u.concat(p)},[]);let c=0;l.forEach((u,d)=>{o>u&&(c=d+1>=l.length?l.length-1:d+1)}),c!==n&&i(c)},[i,n,t,e,r]);h.useEffect(()=>{var o;return(o=e.current)==null||o.addEventListener("scroll",a),()=>{var s;(s=e.current)==null||s.removeEventListener("scroll",a)}},[e,a])},est=()=>{const[e,t]=h.useState(!1);return h.useEffect(()=>{const r=setTimeout(()=>t(!0),500);return()=>clearTimeout(r)},[]),e},tst=({pageCursor:e,pageSizes:t,activeElements:r,template:n,schemasList:i,changeSchemas:a,commitSchemas:o,removeSchemas:s,onSaveTemplate:l,past:c,future:u,setSchemasList:d,onEdit:f,onEditEnd:p})=>{const A=h.useRef(null),v=h.useCallback(()=>{const m=()=>{const b=r.map(C=>C.id);return i[e].filter(C=>b.includes(C.id))},y=b=>{const C=b==="undo",w=C?c:u;if(w.current.length<=0)return;(C?u:c).current.push(Ma(i[e]));const x=Ma(i);x[e]=w.current.pop(),d(x)};s4e({move:(b,C)=>{const w=t[e],x=m(),E=h4e({command:b,activeSchemas:x,pageSize:w,isShift:C});a(E)},copy:()=>{const b=m();b.length!==0&&(A.current=b)},paste:()=>{if(!A.current||A.current.length===0)return;const b=i[e],C=[],w=A.current.map(x=>{const E=uC(),S=f4e({copiedSchemaName:x.name,schema:b,stackUniqueSchemaNames:C}),{height:I,width:B,position:R}=x,_=t[e],O={x:R.x+10>_.width-B?_.width-B:R.x+10,y:R.y+10>_.height-I?_.height-I:R.y+10};return Object.assign(Ma(x),{id:E,name:S,position:O})});o(i[e].concat(w)),f(w.map(x=>document.getElementById(x.id))),A.current=w},redo:()=>y("redo"),undo:()=>y("undo"),save:()=>l&&l(Ik(i,n.basePdf)),remove:()=>s(m().map(b=>b.id)),esc:p,selectAll:()=>f(i[e].map(b=>document.getElementById(b.id)))})},[n,r,e,t,a,o,i,l,s,c,u,d,A,f,p]),g=h.useCallback(()=>{l4e()},[]);h.useEffect(()=>(v(),g),[v,g])},rst=(e,t,r,n)=>{const a=new DOMParser().parseFromString(e,"text/html"),o=s=>{(s.tagName==="SVG"||s.tagName==="svg")&&(s.setAttribute("width",r.toString()),s.setAttribute("height",r.toString())),Array.from(s.children).forEach(l=>o(l))};return Array.from(a.body.children).forEach(s=>o(s)),ke.jsx("div",{style:n,title:t,dangerouslySetInnerHTML:{__html:a.body.innerHTML}})},f9=e=>{var c;const{plugin:t,label:r,size:n,styles:i}=e,{token:a}=ga.useToken(),s=((c=h.useContext(HE).icons)==null?void 0:c[t.propPanel.defaultSchema.type])??t.icon,l={...i,color:a.colorText,display:"flex",justifyContent:"center"};return s?n?rst(s,r,n,l):ke.jsx("div",{style:l,title:r,dangerouslySetInnerHTML:{__html:s}}):ke.jsx("div",{style:{...i,overflow:"hidden",fontSize:10},title:r,children:r})},nst=({isSelected:e,style:t,onSelect:r,onEdit:n,schema:i,schemas:a,onMouseEnter:o,onMouseLeave:s})=>{const{token:l}=ga.useToken(),c=h.useContext(hf),u=h.useContext(y0),{setNodeRef:d,listeners:f,isDragging:p,isSorting:A,transform:v,transition:g}=Yot({id:i.id}),m=est(),y=p&&!m,b={...f,onClick:B=>r(i.id,B.shiftKey)},[C,w]=Object.entries(u).find(([B,R])=>(R==null?void 0:R.propPanel.defaultSchema.type)===i.type),x={width:20,marginRight:"0.5rem"};let E;i.name?a.find(B=>i.name&&B.name===i.name&&B.id!==i.id)&&(E="is-danger"):E="is-warning";let S=c("edit");E==="is-warning"?S=c("plsInputName"):E==="is-danger"&&(S=c("fieldMustUniq"));const I=e?{background:l.colorPrimary,opacity:A||p?.5:1}:{};return ke.jsx(d9,{ref:d,onMouseEnter:o,onMouseLeave:s,onClick:()=>n(i.id),icon:w&&ke.jsx(f9,{plugin:w,label:C,size:20,styles:x}),value:i.name,status:E,title:S,required:i.required,readOnly:i.readOnly,style:{...I,...t},dragging:p,sorting:A,transition:g,transform:v,fadeIn:y,listeners:b})},ist=e=>{const{token:t}=ga.useToken(),{schemas:r,onEdit:n,onSortEnd:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o}=e,[s,l]=h.useState([]),[c,u]=h.useState(null),[d,f]=h.useState(null),p=h.useContext(y0),A=w6e(cne(LF,{activationConstraint:{distance:15}}),cne(kF,{coordinateGetter:qot})),v=y=>s.map(b=>b.id).includes(y),g=(y,b)=>{if(b)if(v(y)){const C=s.filter(w=>w.id!==y);l(C)}else{const C=r.find(x=>x.id===y),w=s.concat(C);l(w)}else l([])},m=y=>{const b=typeof y=="string"?r.find(x=>x.id===y):y,[C,w]=Object.entries(p).find(([x,E])=>(E==null?void 0:E.propPanel.defaultSchema.type)===(b==null?void 0:b.type));return w?ke.jsx(f9,{plugin:w,label:C,size:20,styles:{marginRight:"0.5rem"}}):ke.jsx(ke.Fragment,{})};return ke.jsx(Fne,{sensors:A,collisionDetection:fne,onDragStart:({active:y})=>{f(String(y.id)),u(r),v(String(y.id))?s.length>0&&i(s.reduce((b,C)=>C.id===String(y.id)?b:b.filter(w=>w!==C),r)):l([])},onDragEnd:({active:y,over:b})=>{const C=(b==null?void 0:b.id)||"",w=r.map(E=>E.id).indexOf(String(y.id)),x=r.map(E=>E.id).indexOf(String(C));if(s.length){let E=[...r];E=MP(E,w,x),E.splice(x+1,0,...s.filter(S=>S.id!==d)),i(E),l([])}else w!==x&&i(MP(r,w,x));f(null)},onDragCancel:()=>{c&&i(c),f(null),u(null)},children:ke.jsxs(ke.Fragment,{children:[ke.jsx("div",{style:{height:"100%",overflowY:"auto"},children:ke.jsx(jot,{items:r,strategy:Not,children:ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:r.map(y=>ke.jsx(nst,{style:{border:`1px solid ${y.id===a?t.colorPrimary:"transparent"}`},schema:y,schemas:r,isSelected:v(y.id)||d===y.id,onEdit:n,onSelect:g,onMouseEnter:()=>o(y.id),onMouseLeave:()=>o(null)},y.id))})})}),_n.createPortal(ke.jsx(OFe,{adjustScale:!0,children:d?(()=>{const y=r.find(b=>b.id===d);return y?ke.jsxs(ke.Fragment,{children:[ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:ke.jsx(d9,{icon:m(d),value:y.name,required:y.required,readOnly:y.readOnly,style:{background:t.colorPrimary},dragOverlay:!0})}),ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:s.filter(b=>b.id!==d).map(b=>ke.jsx(d9,{icon:m(b),value:b.name,required:b.required,readOnly:b.readOnly,style:{background:t.colorPrimary},dragOverlay:!0},b.id))})]}):null})():null}),document.body)]})})},{Text:ast}=ff,{TextArea:ost}=zl,h9=40,sst=e=>{const{schemas:t,onSortEnd:r,onEdit:n,size:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o,changeSchemas:s}=e,{token:l}=ga.useToken(),c=h.useContext(hf),[u,d]=h.useState(!1),[f,p]=h.useState(""),A=dZ(i.height),v=()=>{const m=f.split(`
|
528
|
+
`]:{zIndex:10,width:n,margin:`0 ${fe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(a(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},wot=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Cot=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},qr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},xot=Xr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:i,calc:a}=e,o=ur(e,{uploadThumbnailSize:a(t).mul(2).equal(),uploadProgressOffset:a(a(r).div(2)).add(n).equal(),uploadPicCardSize:a(i).mul(2.55).equal()});return[Cot(o),got(o),bot(o),yot(o),vot(o),mot(o),wot(o),Jx(o)]},e=>({actionsColor:e.colorTextDescription}));function SP(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function IP(e,t){const r=Qe(t),n=r.findIndex(i=>{let{uid:a}=i;return a===e.uid});return n===-1?r.push(e):r[n]=e,r}function c9(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function Eot(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const Sot=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Ehe=e=>e.indexOf("image/")===0,Iot=e=>{if(e.type&&!e.thumbUrl)return Ehe(e.type);const t=e.thumbUrl||e.url||"",r=Sot(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},b0=200;function Bot(e){return new Promise(t=>{if(!e.type||!Ehe(e.type)){t("");return}const r=document.createElement("canvas");r.width=b0,r.height=b0,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${b0}px; height: ${b0}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=b0,l=b0,c=0,u=0;a>o?(l=o*(b0/a),u=-(l-s)/2):(s=a*(b0/o),c=-(s-l)/2),n.drawImage(i,c,u,s,l);const d=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(d)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.onload=()=>{a.result&&typeof a.result=="string"&&(i.src=a.result)},a.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const a=new FileReader;a.onload=()=>{a.result&&t(a.result)},a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const Mot=h.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,locale:a,listType:o,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:f,isImgUrl:p,showPreviewIcon:A,showRemoveIcon:v,showDownloadIcon:g,previewIcon:m,removeIcon:y,downloadIcon:b,extra:C,onPreview:w,onDownload:x,onClose:E}=e;var S,I;const{status:B}=s,[R,_]=h.useState(B);h.useEffect(()=>{B!=="removed"&&_(B)},[B]);const[O,F]=h.useState(!1);h.useEffect(()=>{const q=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(q)}},[]);const k=u(s);let D=h.createElement("div",{className:`${r}-icon`},k);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(R==="uploading"||!s.thumbUrl&&!s.url){const q=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:R!=="uploading"});D=h.createElement("div",{className:q},k)}else{const q=p!=null&&p(s)?h.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${r}-list-item-image`,crossOrigin:s.crossOrigin}):k,te=Ae(`${r}-list-item-thumbnail`,{[`${r}-list-item-file`]:p&&!p(s)});D=h.createElement("a",{className:te,onClick:ae=>w(s,ae),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},q)}const M=Ae(`${r}-list-item`,`${r}-list-item-${R}`),T=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,L=(typeof v=="function"?v(s):v)?d((typeof y=="function"?y(s):y)||h.createElement(Qet,null),()=>E(s),r,a.removeFile,!0):null,N=(typeof g=="function"?g(s):g)&&R==="done"?d((typeof b=="function"?b(s):b)||h.createElement(Wet,null),()=>x(s),r,a.downloadFile):null,$=o!=="picture-card"&&o!=="picture-circle"&&h.createElement("span",{key:"download-delete",className:Ae(`${r}-list-item-actions`,{picture:o==="picture"})},N,L),U=typeof C=="function"?C(s):C,Y=U&&h.createElement("span",{className:`${r}-list-item-extra`},U),V=Ae(`${r}-list-item-name`),K=s.url?h.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:V,title:s.name},T,{href:s.url,onClick:q=>w(s,q)}),s.name,Y):h.createElement("span",{key:"view",className:V,onClick:q=>w(s,q),title:s.name},s.name,Y),ne=(typeof A=="function"?A(s):A)&&(s.url||s.thumbUrl)?h.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:q=>w(s,q),title:a.previewFile},typeof m=="function"?m(s):m||h.createElement(n$,null)):null,X=(o==="picture-card"||o==="picture-circle")&&R!=="uploading"&&h.createElement("span",{className:`${r}-list-item-actions`},ne,R==="done"&&N,L),{getPrefixCls:Q}=h.useContext(Pt),z=Q(),j=h.createElement("div",{className:M},D,K,$,X,O&&h.createElement(to,{motionName:`${z}-fade`,visible:R==="uploading",motionDeadline:2e3},q=>{let{className:te}=q;const ae="percent"in s?h.createElement(bet,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return h.createElement("div",{className:Ae(`${r}-list-item-progress`,te)},ae)})),W=s.response&&typeof s.response=="string"?s.response:((S=s.error)===null||S===void 0?void 0:S.statusText)||((I=s.error)===null||I===void 0?void 0:I.message)||a.uploadError,ee=R==="error"?h.createElement(Co,{title:W,getPopupContainer:q=>q.parentNode},j):j;return h.createElement("div",{className:Ae(`${r}-list-item-container`,n),style:i,ref:t},f?f(ee,s,l,{download:x.bind(null,s),preview:w.bind(null,s),remove:E.bind(null,s)}):ee)}),Rot=(e,t)=>{const{listType:r="text",previewFile:n=Bot,onPreview:i,onDownload:a,onRemove:o,locale:s,iconRender:l,isImageUrl:c=Iot,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:p=!0,showDownloadIcon:A=!1,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,progress:b={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:w=!0,itemRender:x,disabled:E}=e,S=uN(),[I,B]=h.useState(!1),R=["picture-card","picture-circle"].includes(r);h.useEffect(()=>{r.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",n==null||n(Y.originFileObj).then(V=>{Y.thumbUrl=V||"",S()}))})},[r,d,n]),h.useEffect(()=>{B(!0)},[]);const _=(Y,V)=>{if(i)return V.preventDefault(),i(Y)},O=Y=>{typeof a=="function"?a(Y):Y.url&&window.open(Y.url)},F=Y=>{o==null||o(Y)},k=Y=>{if(l)return l(Y,r);const V=Y.status==="uploading";if(r.startsWith("picture")){const K=r==="picture"?h.createElement(Wu,null):s.uploading,ne=c!=null&&c(Y)?h.createElement(_tt,null):h.createElement(itt,null);return V?K:ne}return V?h.createElement(Wu,null):h.createElement(Ptt,null)},D=(Y,V,K,ne,X)=>{const Q={type:"text",size:"small",title:ne,onClick:z=>{var j,W;V(),h.isValidElement(Y)&&((W=(j=Y.props).onClick)===null||W===void 0||W.call(j,z))},className:`${K}-list-item-action`};return X&&(Q.disabled=E),h.isValidElement(Y)?h.createElement(Or,Object.assign({},Q,{icon:da(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):h.createElement(Or,Object.assign({},Q),h.createElement("span",null,Y))};h.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:O}));const{getPrefixCls:M}=h.useContext(Pt),T=M("upload",u),L=M(),N=Ae(`${T}-list`,`${T}-list-${r}`),$=h.useMemo(()=>Pn(ub(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),U=Object.assign(Object.assign({},R?{}:$),{motionDeadline:2e3,motionName:`${T}-${R?"animate-inline":"animate"}`,keys:Qe(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:I});return h.createElement("div",{className:N},h.createElement(KL,Object.assign({},U,{component:!1}),Y=>{let{key:V,file:K,className:ne,style:X}=Y;return h.createElement(Mot,{key:V,locale:s,prefixCls:T,className:ne,style:X,file:K,items:d,progress:b,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:p,showDownloadIcon:A,removeIcon:v,previewIcon:g,downloadIcon:m,extra:y,iconRender:k,actionIconRender:D,itemRender:x,onPreview:_,onDownload:O,onClose:F})}),C&&h.createElement(to,Object.assign({},U,{visible:w,forceRender:!0}),Y=>{let{className:V,style:K}=Y;return da(C,ne=>({className:Ae(ne.className,V),style:Object.assign(Object.assign(Object.assign({},K),{pointerEvents:V?"none":void 0}),ne.style)}))}))},Pot=h.forwardRef(Rot);var Dot=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,[])).next())})};const QE=`__LIST_IGNORE_${Date.now()}__`,Tot=(e,t)=>{const{fileList:r,defaultFileList:n,onRemove:i,showUploadList:a=!0,listType:o="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:f,locale:p,iconRender:A,isImageUrl:v,progress:g,prefixCls:m,className:y,type:b="select",children:C,style:w,itemRender:x,maxCount:E,data:S={},multiple:I=!1,hasControlInside:B=!0,action:R="",accept:_="",supportServerRender:O=!0,rootClassName:F}=e,k=h.useContext(ca),D=f??k,[M,T]=Mr(n||[],{value:r,postState:xe=>xe??[]}),[L,N]=h.useState("drop"),$=h.useRef(null),U=h.useRef(null);h.useMemo(()=>{const xe=Date.now();(r||[]).forEach((_e,Pe)=>{!_e.uid&&!Object.isFrozen(_e)&&(_e.uid=`__AUTO__${xe}_${Pe}__`)})},[r]);const Y=(xe,_e,Pe)=>{let Be=Qe(_e),Oe=!1;E===1?Be=Be.slice(-1):E&&(Oe=Be.length>E,Be=Be.slice(0,E)),_n.flushSync(()=>{T(Be)});const Ze={file:xe,fileList:Be};Pe&&(Ze.event=Pe),(!Oe||xe.status==="removed"||Be.some(Et=>Et.uid===xe.uid))&&_n.flushSync(()=>{c==null||c(Ze)})},V=(xe,_e)=>Dot(void 0,void 0,void 0,function*(){const{beforeUpload:Pe,transformFile:Be}=e;let Oe=xe;if(Pe){const Ze=yield Pe(xe,_e);if(Ze===!1)return!1;if(delete xe[QE],Ze===QE)return Object.defineProperty(xe,QE,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(Oe=Ze)}return Be&&(Oe=yield Be(Oe)),Oe}),K=xe=>{const _e=xe.filter(Oe=>!Oe.file[QE]);if(!_e.length)return;const Pe=_e.map(Oe=>SP(Oe.file));let Be=Qe(M);Pe.forEach(Oe=>{Be=IP(Oe,Be)}),Pe.forEach((Oe,Ze)=>{let Et=Oe;if(_e[Ze].parsedFile)Oe.status="uploading";else{const{originFileObj:tt}=Oe;let Ve;try{Ve=new File([tt],tt.name,{type:tt.type})}catch{Ve=new Blob([tt],{type:tt.type}),Ve.name=tt.name,Ve.lastModifiedDate=new Date,Ve.lastModified=new Date().getTime()}Ve.uid=Oe.uid,Et=Ve}Y(Et,Be)})},ne=(xe,_e,Pe)=>{try{typeof xe=="string"&&(xe=JSON.parse(xe))}catch{}if(!c9(_e,M))return;const Be=SP(_e);Be.status="done",Be.percent=100,Be.response=xe,Be.xhr=Pe;const Oe=IP(Be,M);Y(Be,Oe)},X=(xe,_e)=>{if(!c9(_e,M))return;const Pe=SP(_e);Pe.status="uploading",Pe.percent=xe.percent;const Be=IP(Pe,M);Y(Pe,Be,xe)},Q=(xe,_e,Pe)=>{if(!c9(Pe,M))return;const Be=SP(Pe);Be.error=xe,Be.response=_e,Be.status="error";const Oe=IP(Be,M);Y(Be,Oe)},z=xe=>{let _e;Promise.resolve(typeof i=="function"?i(xe):i).then(Pe=>{var Be;if(Pe===!1)return;const Oe=Eot(xe,M);Oe&&(_e=Object.assign(Object.assign({},xe),{status:"removed"}),M==null||M.forEach(Ze=>{const Et=_e.uid!==void 0?"uid":"name";Ze[Et]===_e[Et]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Be=$.current)===null||Be===void 0||Be.abort(_e),Y(_e,Oe))})},j=xe=>{N(xe.type),xe.type==="drop"&&(u==null||u(xe))};h.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:ne,onProgress:X,onError:Q,fileList:M,upload:$.current,nativeElement:U.current}));const{getPrefixCls:W,direction:ee,upload:q}=h.useContext(Pt),te=W("upload",m),ae=Object.assign(Object.assign({onBatchStart:K,onError:Q,onProgress:X,onSuccess:ne},e),{data:S,multiple:I,action:R,accept:_,supportServerRender:O,prefixCls:te,disabled:D,beforeUpload:V,onChange:void 0,hasControlInside:B});delete ae.className,delete ae.style,(!C||D)&&delete ae.id;const ce=`${te}-wrapper`,[de,se,pe]=xot(te,ce),[ye]=Qu("Upload",Ll.Upload),{showRemoveIcon:Ce,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,extra:re}=typeof a=="boolean"?{}:a,H=typeof Ce>"u"?!D:Ce,G=(xe,_e)=>a?h.createElement(Pot,{prefixCls:te,listType:o,items:M,previewFile:d,onPreview:s,onDownload:l,onRemove:z,showRemoveIcon:H,showPreviewIcon:Se,showDownloadIcon:Ie,removeIcon:Re,previewIcon:De,downloadIcon:Fe,iconRender:A,extra:re,locale:Object.assign(Object.assign({},ye),p),isImageUrl:v,progress:g,appendAction:xe,appendActionVisible:_e,itemRender:x,disabled:D}):xe,oe=Ae(ce,y,F,se,pe,q==null?void 0:q.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:o==="picture-card",[`${te}-picture-circle-wrapper`]:o==="picture-circle"}),me=Object.assign(Object.assign({},q==null?void 0:q.style),w);if(b==="drag"){const xe=Ae(se,te,`${te}-drag`,{[`${te}-drag-uploading`]:M.some(_e=>_e.status==="uploading"),[`${te}-drag-hover`]:L==="dragover",[`${te}-disabled`]:D,[`${te}-rtl`]:ee==="rtl"});return de(h.createElement("span",{className:oe,ref:U},h.createElement("div",{className:xe,style:me,onDrop:j,onDragOver:j,onDragLeave:j},h.createElement(l9,Object.assign({},ae,{ref:$,className:`${te}-btn`}),h.createElement("div",{className:`${te}-drag-container`},C))),G()))}const we=Ae(te,`${te}-select`,{[`${te}-disabled`]:D}),Ee=h.createElement("div",{className:we,style:C?void 0:{display:"none"}},h.createElement(l9,Object.assign({},ae,{ref:$})));return de(o==="picture-card"||o==="picture-circle"?h.createElement("span",{className:oe,ref:U},G(Ee,!!C)):h.createElement("span",{className:oe,ref:U},Ee,G()))},She=h.forwardRef(Tot);var _ot=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Oot=h.forwardRef((e,t)=>{var{style:r,height:n,hasControlInside:i=!1}=e,a=_ot(e,["style","height","hasControlInside"]);return h.createElement(She,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),u9=She;u9.Dragger=Oot,u9.LIST_IGNORE=QE;const Ihe={en:{cancel:"Cancel",close:"Close",field:"field",fieldName:"Name",align:"Align",width:"Width",height:"Height",opacity:"Opacity",rotate:"Rotate",required:"Required",editable:"Editable",edit:"Edit",plsInputName:"Please input name",fieldMustUniq:"Name of field is not unique",notUniq:"(Not unique name)",noKeyName:"No name",fieldsList:"Field List",editField:"Edit Field",type:"Type",errorOccurred:"An error occurred",errorBulkUpdateFieldName:"Cannot commit the change because the number of items has been changed.",commitBulkUpdateFieldName:"Commit Changes",bulkUpdateFieldName:"Bulk update field names",addPageAfter:"Add Page After",removePage:"Remove Current Page",removePageConfirm:"Are you sure you want to delete this page? This action cannot be undone.","validation.hexColor":"Please enter a valid hex color code.","validation.uniqueName":"Please enter a unique name.","schemas.color":"Color","schemas.borderWidth":"Border Width","schemas.borderColor":"Border Color","schemas.backgroundColor":"Background Color","schemas.textColor":"Text Color","schemas.bgColor":"Background Color","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Left","schemas.center":"Center","schemas.right":"Right","schemas.top":"Top","schemas.middle":"Middle","schemas.bottom":"Bottom","schemas.padding":"Padding","schemas.text.fontName":"Font Name","schemas.text.size":"Size","schemas.text.spacing":"Spacing","schemas.text.textAlign":"Text Align","schemas.text.verticalAlign":"Vertical Align","schemas.text.lineHeight":"Line Height","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Fit","schemas.text.dynamicFontSize":"Dynamic Font Size","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Add variables by typing words surrounded by curly brackets, e.g.","schemas.mvt.sampleField":"name","schemas.mvt.variablesSampleData":"Variables Sample Data","schemas.barcodes.barColor":"Bar Color","schemas.barcodes.includetext":"Include Text","schemas.table.alternateBackgroundColor":"Alternate Background Color","schemas.table.tableStyle":"Table Style","schemas.table.headStyle":"Header Style","schemas.table.bodyStyle":"Body Style","schemas.table.columnStyle":"Column Style","schemas.date.format":"Date Format","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Enter an option","schemas.radioGroup.groupName":"Group Name"},zh:{cancel:"取消",close:"关闭",field:"字段",fieldName:"名称",align:"对齐",width:"宽度",height:"高度",opacity:"透明度",rotate:"旋转",required:"必需的",editable:"可编辑的",edit:"编辑",plsInputName:"请输入名称",fieldMustUniq:"字段名称必须唯一",notUniq:"(名称不唯一)",noKeyName:"无名称",fieldsList:"字段列表",editField:"编辑字段",type:"类型",errorOccurred:"发生错误",errorBulkUpdateFieldName:"由于项目数量已更改,无法提交更改。",commitBulkUpdateFieldName:"提交更改",bulkUpdateFieldName:"批量更新字段名称",addPageAfter:"在之后添加页面",removePage:"删除当前页面",removePageConfirm:"您确定要删除此页面吗?此操作无法撤销。","validation.hexColor":"请输入有效的十六进制颜色代码。","validation.uniqueName":"请输入一个唯一的名称。","schemas.color":"颜色","schemas.borderWidth":"边框宽度","schemas.borderColor":"边框颜色","schemas.backgroundColor":"背景颜色","schemas.textColor":"文字颜色","schemas.bgColor":"背景颜色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中","schemas.right":"右","schemas.top":"顶","schemas.middle":"中间","schemas.bottom":"底","schemas.padding":"填充","schemas.text.fontName":"字体名称","schemas.text.size":"大小","schemas.text.spacing":"间距","schemas.text.textAlign":"文本对齐","schemas.text.verticalAlign":"垂直对齐","schemas.text.lineHeight":"行高","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"适应","schemas.text.dynamicFontSize":"动态字体大小","schemas.text.format":"格式","schemas.mvt.typingInstructions":"通过输入用花括号括起来的单词来添加变量,例如","schemas.mvt.sampleField":"姓名","schemas.mvt.variablesSampleData":"变量样本数据","schemas.barcodes.barColor":"条码颜色","schemas.barcodes.includetext":"包括文本","schemas.table.alternateBackgroundColor":"交替背景颜色","schemas.table.tableStyle":"表格样式","schemas.table.headStyle":"表头样式","schemas.table.bodyStyle":"表体样式","schemas.table.columnStyle":"列样式","schemas.date.format":"日期格式","schemas.select.options":"选项","schemas.select.optionPlaceholder":"请输入选项","schemas.radioGroup.groupName":"组名"},ja:{cancel:"キャンセル",close:"閉じる",field:"入力項目",fieldName:"項目名",align:"整列",width:"幅",height:"高さ",opacity:"不透明度",rotate:"回転",required:"必須",editable:"編集可能",edit:"編集する",plsInputName:"項目名を入力してください",fieldMustUniq:"他の入力項目名と被っています",notUniq:"(他の項目名と重複しています)",noKeyName:"項目名なし",fieldsList:"入力項目一覧",editField:"入力項目を編集",type:"タイプ",errorOccurred:"エラーが発生しました",errorBulkUpdateFieldName:"項目数が変更されているため変更をコミットできません。",commitBulkUpdateFieldName:"変更を反映",bulkUpdateFieldName:"項目名を一括変更",addPageAfter:"次にページを追加",removePage:"現在のページを削除",removePageConfirm:"ページを削除してもよろしいですか?この操作は元に戻せません。","validation.hexColor":"有効な16進数のカラーコードを入力してください。","validation.uniqueName":"一意の名前を入力してください。","schemas.color":"色","schemas.borderWidth":"枠線の太さ","schemas.borderColor":"枠線の色","schemas.backgroundColor":"背景色","schemas.textColor":"テキストの色","schemas.bgColor":"背景色","schemas.horizontal":"水平","schemas.vertical":"垂直","schemas.left":"左","schemas.center":"中央","schemas.right":"右","schemas.top":"上","schemas.middle":"中間","schemas.bottom":"下","schemas.padding":"パディング","schemas.text.fontName":"フォント名","schemas.text.size":"サイズ","schemas.text.spacing":"間隔","schemas.text.textAlign":"テキストの揃え","schemas.text.verticalAlign":"垂直方向の揃え","schemas.text.lineHeight":"行の高さ","schemas.text.min":"最小","schemas.text.max":"最大","schemas.text.fit":"フィット","schemas.text.dynamicFontSize":"動的フォントサイズ","schemas.text.format":"書式","schemas.mvt.typingInstructions":"中括弧で囲まれた単語を入力して変数を追加します。例:","schemas.mvt.sampleField":"名前","schemas.mvt.variablesSampleData":"変数サンプルデータ","schemas.barcodes.barColor":"バーの色","schemas.barcodes.includetext":"テキストを含める","schemas.table.alternateBackgroundColor":"交互の背景色","schemas.table.tableStyle":"テーブルスタイル","schemas.table.headStyle":"ヘッダースタイル","schemas.table.bodyStyle":"ボディスタイル","schemas.table.columnStyle":"カラムスタイル","schemas.date.format":"日付形式","schemas.select.options":"オプション","schemas.select.optionPlaceholder":"オプションを入力してください","schemas.radioGroup.groupName":"グループ名"},ko:{cancel:"취소",close:"닫기",field:"필드",fieldName:"이름",align:"정렬",width:"너비",height:"높이",opacity:"투명도",rotate:"회전",required:"필수의",editable:"편집 가능한",edit:"편집",plsInputName:"이름을 입력하세요",fieldMustUniq:"필드 이름은 유일해야 합니다",notUniq:"(유일하지 않은 이름)",noKeyName:"이름 없음",fieldsList:"필드 목록",editField:"필드 편집",type:"유형",errorOccurred:"오류 발생",errorBulkUpdateFieldName:"항목 수가 변경되어 변경을 커밋할 수 없습니다.",commitBulkUpdateFieldName:"변경 사항 커밋",bulkUpdateFieldName:"필드 이름 일괄 업데이트",addPageAfter:"다음에 페이지 추가",removePage:"현재 페이지 제거",removePageConfirm:"이 페이지를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.","validation.hexColor":"유효한 16진수 색상 코드를 입력하세요.","validation.uniqueName":"고유한 이름을 입력하세요.","schemas.color":"색상","schemas.borderWidth":"테두리 너비","schemas.borderColor":"테두리 색상","schemas.backgroundColor":"배경색","schemas.textColor":"텍스트 색상","schemas.bgColor":"배경색","schemas.horizontal":"수평","schemas.vertical":"수직","schemas.left":"왼쪽","schemas.center":"중앙","schemas.right":"오른쪽","schemas.top":"상단","schemas.middle":"중간","schemas.bottom":"하단","schemas.padding":"패딩","schemas.text.fontName":"글꼴 이름","schemas.text.size":"크기","schemas.text.spacing":"간격","schemas.text.textAlign":"텍스트 정렬","schemas.text.verticalAlign":"수직 정렬","schemas.text.lineHeight":"줄 높이","schemas.text.min":"최소","schemas.text.max":"최대","schemas.text.fit":"맞춤","schemas.text.dynamicFontSize":"동적 폰트 크기","schemas.text.format":"형식","schemas.mvt.typingInstructions":"중괄호로 묶인 단어를 입력하여 변수를 추가하세요.","schemas.mvt.sampleField":"이름","schemas.mvt.variablesSampleData":"변수 샘플 데이터","schemas.barcodes.barColor":"바코드 색상","schemas.barcodes.includetext":"텍스트 포함","schemas.table.alternateBackgroundColor":"대체 배경색","schemas.table.tableStyle":"테이블 스타일","schemas.table.headStyle":"헤더 스타일","schemas.table.bodyStyle":"본문 스타일","schemas.table.columnStyle":"열 스타일","schemas.date.format":"날짜 형식","schemas.select.options":"옵션","schemas.select.optionPlaceholder":"옵션을 입력하세요","schemas.radioGroup.groupName":"그룹 이름"},ar:{cancel:"إلغاء",close:"إغلاق",field:"الحقل",fieldName:"اسم الحقل",align:"محاذاة",width:"العرض",height:"الارتفاع",opacity:"الشفافية",rotate:"تدوير",required:"مطلوب",editable:"قابل للتحرير",edit:"تعديل",plsInputName:"الرجاء إدخال الاسم",fieldMustUniq:"يجب أن يكون الحقل فريداً",notUniq:"(غير فريد)",noKeyName:"لا يوجد اسم للحقل",fieldsList:"قائمة الحقول",editField:"تعديل الحقل",type:"النوع",errorOccurred:"حدث خطأ",errorBulkUpdateFieldName:"لا يمكن تنفيذ التغيير لأنه تم تغيير عدد العناصر.",commitBulkUpdateFieldName:"تنفيذ التغييرات",bulkUpdateFieldName:"تغيير الأسماء",addPageAfter:"إضافة صفحة بعد",removePage:"احذف الصفحة الحالية",removePageConfirm:"هل أنت متأكد من رغبتك في حذف هذه الصفحة؟ لا يمكن التراجع عن هذا الإجراء.","validation.hexColor":"الرجاء إدخال رمز لون سداسي عشري صالح.","validation.uniqueName":"الرجاء إدخال اسم فريد.","schemas.color":"اللون","schemas.borderWidth":"عرض الحدود","schemas.borderColor":"لون الحدود","schemas.backgroundColor":"لون الخلفية","schemas.textColor":"لون الخط","schemas.bgColor":"لون الخلفية","schemas.horizontal":"أفقي","schemas.vertical":"عمودي","schemas.left":"يسار","schemas.center":"مركز","schemas.right":"يمين","schemas.top":"أعلى","schemas.middle":"وسط","schemas.bottom":"أسفل","schemas.padding":"التبطين","schemas.text.fontName":"اسم الخط","schemas.text.size":"الحجم","schemas.text.spacing":"التباعد","schemas.text.textAlign":"محاذاة النص","schemas.text.verticalAlign":"محاذاة عمودية","schemas.text.lineHeight":"ارتفاع السطر","schemas.text.min":"الحد الأدنى","schemas.text.max":"الحد الأقصى","schemas.text.fit":"ملاءمة","schemas.text.dynamicFontSize":"حجم الخط الديناميكي","schemas.text.format":"تنسيق","schemas.mvt.typingInstructions":"قم بإضافة المتغيرات عن طريق كتابة الكلمات المحاطة بأقواس متعرجة، على سبيل المثال:","schemas.mvt.sampleField":"اسم","schemas.mvt.variablesSampleData":"بيانات عينة المتغيرات","schemas.barcodes.barColor":"لون الشريط","schemas.barcodes.includetext":"تضمين النص","schemas.table.alternateBackgroundColor":"لون الخلفية البديل","schemas.table.tableStyle":"أسلوب الجدول","schemas.table.headStyle":"أسلوب الرأس","schemas.table.bodyStyle":"أسلوب الجسم","schemas.table.columnStyle":"أسلوب العمود","schemas.date.format":"تنسيق التاريخ","schemas.select.options":"خيارات","schemas.select.optionPlaceholder":"أدخل خيارًا","schemas.radioGroup.groupName":"اسم المجموعة"},th:{cancel:"ยกเลิก",close:"ปิด",field:"ฟิลด์",fieldName:"ชื่อฟิลด์",align:"จัดเรียง",width:"ความกว้าง",height:"ความสูง",opacity:"ความทึบ",rotate:"หมุน",required:"ที่จำเป็น",editable:"แก้ไขได้",edit:"แก้ไข",plsInputName:"กรุณาใส่ชื่อ",fieldMustUniq:"ชื่อฟิลด์ต้องไม่ซ้ำกัน",notUniq:"(ชื่อฟิลด์ซ้ำกัน)",noKeyName:"ไม่มีชื่อ",fieldsList:"รายการฟิลด์ทั้งหมด",editField:"แก้ไขฟิลด์",type:"ประเภท",errorOccurred:"เกิดข้อผิดพลาด",errorBulkUpdateFieldName:"ไม่สามารถยืนยันการแก้ไขได้เนื่องจากจำนวนรายการมีการเปลี่ยนแปลง",commitBulkUpdateFieldName:"ยืนยันการแก้ไข",bulkUpdateFieldName:"แก้ไขชื่อฟิลด์เป็นชุด",addPageAfter:"เพิ่มหน้าถัดไป",removePage:"ลบหน้าปัจจุบัน",removePageConfirm:"คุณแน่ใจหรือไม่ว่าต้องการลบหน้านี้? การกระทำนี้ไม่สามารถย้อนกลับได้","validation.hexColor":"กรุณาใส่รหัสสีแบบฐานสิบหกที่ถูกต้อง","validation.uniqueName":"กรุณาระบุชื่อที่ไม่ซ้ำ","schemas.color":"สี","schemas.borderWidth":"ความกว้างของเส้นขอบ","schemas.borderColor":"สีขอบ","schemas.backgroundColor":"สีพื้นหลัง","schemas.textColor":"สีข้อความ","schemas.bgColor":"สีพื้นหลัง","schemas.horizontal":"แนวนอน","schemas.vertical":"แนวตั้ง","schemas.left":"ซ้าย","schemas.center":"ตรงกลาง","schemas.right":"ขวา","schemas.top":"ด้านบน","schemas.middle":"ตรงกลาง","schemas.bottom":"ด้านล่าง","schemas.padding":"การเพิ่มพื้นที่","schemas.text.fontName":"ชื่อแบบอักษร","schemas.text.size":"ขนาด","schemas.text.spacing":"ระยะห่าง","schemas.text.textAlign":"จัดแนวข้อความ","schemas.text.verticalAlign":"จัดแนวแนวตั้ง","schemas.text.lineHeight":"ความสูงของบรรทัด","schemas.text.min":"ต่ำสุด","schemas.text.max":"สูงสุด","schemas.text.fit":"พอดี","schemas.text.dynamicFontSize":"ขนาดตัวอักษรแบบไดนามิก","schemas.text.format":"รูปแบบ","schemas.mvt.typingInstructions":"เพิ่มตัวแปรโดยพิมพ์คำที่ล้อมรอบด้วยวงเล็บปีกกา เช่น","schemas.mvt.sampleField":"ชื่อ","schemas.mvt.variablesSampleData":"ข้อมูลตัวอย่างตัวแปร","schemas.barcodes.barColor":"สีบาร์","schemas.barcodes.includetext":"รวมข้อความ","schemas.table.alternateBackgroundColor":"สีพื้นหลังสลับกัน","schemas.table.tableStyle":"สไตล์ตาราง","schemas.table.headStyle":"สไตล์หัวข้อ","schemas.table.bodyStyle":"สไตล์เนื้อหา","schemas.table.columnStyle":"สไตล์คอลัมน์","schemas.date.format":"รูปแบบวันที่","schemas.select.options":"ตัวเลือก","schemas.select.optionPlaceholder":"กรอกตัวเลือก","schemas.radioGroup.groupName":"ชื่อกลุ่ม"},it:{cancel:"Annulla",close:"Chiudi",field:"Campo",fieldName:"Nome",align:"Allinea",width:"Larghezza",height:"Altezza",opacity:"Opacità",rotate:"Ruota",required:"Necessaria",editable:"Modificabile",edit:"Modifica",plsInputName:"Inserisci il nome per favore",fieldMustUniq:"Il nome del campo non è univoco",notUniq:"(Nome non univoco)",noKeyName:"Nessun nome",fieldsList:"Lista campi",editField:"Modifica campo",type:"Tipo",errorOccurred:"Riscontrato errore",errorBulkUpdateFieldName:"Non è possibile salvare le modifiche perché il numero di elementi è cambiato.",commitBulkUpdateFieldName:"Salva cambiamenti",bulkUpdateFieldName:"Modifica nomi campi in blocco",addPageAfter:"Aggiungi pagina dopo",removePage:"Rimuovi la Pagina Corrente",removePageConfirm:"Sei sicuro di voler eliminare questa pagina? Questa azione non può essere annullata.","validation.hexColor":"Inserisci un codice colore esadecimale valido.","validation.uniqueName":"Inserisci un nome univoco.","schemas.color":"Colore","schemas.borderWidth":"Spessore bordo","schemas.borderColor":"Colore bordo","schemas.backgroundColor":"Colore di Sfondo","schemas.textColor":"Colore testo","schemas.bgColor":"Colore sfondo","schemas.horizontal":"Orizzontale","schemas.vertical":"Verticale","schemas.left":"Sinistra","schemas.center":"Centro","schemas.right":"Destra","schemas.top":"Sopra","schemas.middle":"Medio","schemas.bottom":"Sotto","schemas.padding":"Padding","schemas.text.fontName":"Nome del font","schemas.text.size":"Dimensione","schemas.text.spacing":"Spaziatura","schemas.text.textAlign":"Allineamento testo","schemas.text.verticalAlign":"Allineamento verticale","schemas.text.lineHeight":"Altezza della linea","schemas.text.min":"Minimo","schemas.text.max":"Massimo","schemas.text.fit":"Adatta","schemas.text.dynamicFontSize":"Dimensione font dinamica","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Aggiungi variabili digitando parole circondate da parentesi graffe, ad es.","schemas.mvt.sampleField":"nome","schemas.mvt.variablesSampleData":"Dati di esempio variabili","schemas.barcodes.barColor":"Colore barra","schemas.barcodes.includetext":"Includi testo","schemas.table.alternateBackgroundColor":"Colore di Sfondo Alternato","schemas.table.tableStyle":"Stile della Tabella","schemas.table.headStyle":"Stile dell'Intestazione","schemas.table.bodyStyle":"Stile del Corpo","schemas.table.columnStyle":"Stile della Colonna","schemas.date.format":"Formato data","schemas.select.options":"Opzioni","schemas.select.optionPlaceholder":"Inserisci un'opzione","schemas.radioGroup.groupName":"Nome del Gruppo"},pl:{cancel:"Anuluj",close:"Zamknij",field:"pole",fieldName:"Klucz pola",align:"Wyrównanie",width:"Szerokość",height:"Wysokość",opacity:"przezroczystość",rotate:"Obrót",required:"Wymagany",editable:"Edytowalny",edit:"Edytuj",plsInputName:"Wymagane wprowadzenie klucza pola",fieldMustUniq:"Klucz pola nie jest unikalny",notUniq:"(Klucz pola nie jest unikalny)",noKeyName:"Brak nazwy klucza pola",fieldsList:"Lista pól",editField:"Edytuj pole",type:"Typ pola",errorOccurred:"Wystąpił błąd",errorBulkUpdateFieldName:"Nie można wprowadzić zmian ponieważ liczba elementów uległa zmianie.",commitBulkUpdateFieldName:"Zaakceptuj zmiany",bulkUpdateFieldName:"Masowo aktualizuj klucze pól",addPageAfter:"Dodaj stronę po",removePage:"Usuń Bieżącą Stronę",removePageConfirm:"Czy na pewno chcesz usunąć tę stronę? Tej operacji nie można cofnąć.","validation.hexColor":"Wprowadź poprawny kod koloru szesnastkowego.","validation.uniqueName":"Proszę wpisać unikalną nazwę.","schemas.color":"Kolor","schemas.borderWidth":"Szerokość obramowania","schemas.borderColor":"Kolor obramowania","schemas.backgroundColor":"Kolor tła","schemas.textColor":"Kolor tekstu","schemas.bgColor":"Kolor tła","schemas.horizontal":"Poziomo","schemas.vertical":"Pionowo","schemas.left":"Lewo","schemas.center":"Centrum","schemas.right":"Prawo","schemas.top":"Góra","schemas.middle":"Środek","schemas.bottom":"Dół","schemas.padding":"Odsadzenie","schemas.text.fontName":"Nazwa czcionki","schemas.text.size":"Rozmiar","schemas.text.spacing":"Odstępy","schemas.text.textAlign":"Wyrównanie tekstu","schemas.text.verticalAlign":"Wyrównanie pionowe","schemas.text.lineHeight":"Wysokość linii","schemas.text.min":"Minimum","schemas.text.max":"Maksimum","schemas.text.fit":"Dopasowanie","schemas.text.dynamicFontSize":"Dynamiczny rozmiar czcionki","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Dodaj zmienne, wpisując słowa ujęte w nawiasy klamrowe, np.","schemas.mvt.sampleField":"nazwa","schemas.mvt.variablesSampleData":"Zmienne Przykładowe dane","schemas.barcodes.barColor":"Kolor paska","schemas.barcodes.includetext":"Dołącz tekst","schemas.table.alternateBackgroundColor":"Alternatywny kolor tła","schemas.table.tableStyle":"Styl tabeli","schemas.table.headStyle":"Styl nagłówka","schemas.table.bodyStyle":"Styl ciała","schemas.table.columnStyle":"Styl kolumny","schemas.date.format":"Format daty","schemas.select.options":"Opcje","schemas.select.optionPlaceholder":"Wpisz opcję","schemas.radioGroup.groupName":"Nazwa grupy"},de:{cancel:"Abbrechen",close:"Schließen",field:"Feld",fieldName:"Name",align:"Ausrichten",width:"Breite",height:"Höhe",opacity:"Opazität",rotate:"Drehen",required:"Erforderlich",editable:"Bearbeitbar",edit:"Bearbeiten",plsInputName:"Bitte geben Sie einen Namen ein",fieldMustUniq:"Feldname ist nicht eindeutig",notUniq:"(Nicht eindeutiger Name)",noKeyName:"Kein Name",fieldsList:"Feldliste",editField:"Feld bearbeiten",type:"Typ",errorOccurred:"Ein Fehler ist aufgetreten",errorBulkUpdateFieldName:"Die Änderung kann nicht übernommen werden, weil die Anzahl der Elemente geändert wurde.",commitBulkUpdateFieldName:"Änderungen übernehmen",bulkUpdateFieldName:"Mehrfachaktualisierung der Feldnamen",addPageAfter:"Seite danach hinzufügen",removePage:"Aktuelle Seite entfernen",removePageConfirm:"Sind Sie sicher, dass Sie diese Seite löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden.","validation.hexColor":"Bitte geben Sie einen gültigen Hex-Farbcode ein.","validation.uniqueName":"Bitte geben Sie einen eindeutigen Namen ein.","schemas.color":"Farbe","schemas.borderWidth":"Rahmenbreite","schemas.borderColor":"Rahmenfarbe","schemas.backgroundColor":"Hintergrundfarbe","schemas.textColor":"Textfarbe","schemas.bgColor":"Hintergrundfarbe","schemas.horizontal":"Horizontal","schemas.vertical":"Vertikal","schemas.left":"Links","schemas.center":"Zentriert","schemas.right":"Rechts","schemas.top":"Oben","schemas.middle":"Mitte","schemas.bottom":"Unten","schemas.padding":"Polsterung","schemas.text.fontName":"Schriftart","schemas.text.size":"Größe","schemas.text.spacing":"Abstand","schemas.text.textAlign":"Ausrichtung","schemas.text.verticalAlign":"vert. Ausr.","schemas.text.lineHeight":"Zeilenhöhe","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Anpassen","schemas.text.dynamicFontSize":"Dynamische Schriftgröße","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Fügen Sie Variablen hinzu, indem Sie Wörter in geschweiften Klammern eingeben, z. B.","schemas.mvt.sampleField":"Name","schemas.mvt.variablesSampleData":"Variablen Beispieldaten","schemas.barcodes.barColor":"Strichcodefarbe","schemas.barcodes.includetext":"Text anzeigen","schemas.table.alternateBackgroundColor":"Wechselnde Hintergrundfarbe","schemas.table.tableStyle":"Tabellenstil","schemas.table.headStyle":"Kopfzeilenstil","schemas.table.bodyStyle":"Körperstil","schemas.table.columnStyle":"Spaltenstil","schemas.date.format":"Datumsformat","schemas.select.options":"Optionen","schemas.select.optionPlaceholder":"Geben Sie eine Option ein","schemas.radioGroup.groupName":"Gruppenname"},es:{cancel:"Cancelar",close:"Cerrar",field:"campo",fieldName:"Nombre",align:"Alinear",width:"Anchura",height:"Altura",opacity:"Opacidad",rotate:"Rotar",required:"Requerido",editable:"Editable",edit:"Editar",plsInputName:"Introduce el nombre",fieldMustUniq:"El nombre del campo no es único",notUniq:"(Nombre no único)",noKeyName:"Sin nombre",fieldsList:"Lista de campos",editField:"Editar campo",type:"Tipo",errorOccurred:"Ocurrió un error",errorBulkUpdateFieldName:"No se puede confirmar el cambio porque el número de elementos ha cambiado.",commitBulkUpdateFieldName:"Confirmar cambios",bulkUpdateFieldName:"Actualizar en bloque el nombre de los campos",addPageAfter:"Insertar página",removePage:"Eliminar página actual",removePageConfirm:"¿Estás seguro de que quieres eliminar esta página? Esta acción no se puede deshacer.","validation.hexColor":"Introduce un código de color hexadecimal válido.","validation.uniqueName":"Por favor, introduzca un nombre único.","schemas.color":"Color","schemas.borderWidth":"Ancho del borde","schemas.borderColor":"Color del borde","schemas.backgroundColor":"Color de fondo","schemas.textColor":"Color del texto","schemas.bgColor":"Color del fondo","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Izquierda","schemas.center":"Centro","schemas.right":"Derecha","schemas.top":"Arriba","schemas.middle":"Medio","schemas.bottom":"Abajo","schemas.padding":"Relleno","schemas.text.fontName":"Nombre de la fuente","schemas.text.size":"Tamaño","schemas.text.spacing":"Espaciado","schemas.text.textAlign":"Alineación del texto","schemas.text.verticalAlign":"Alineación vertical","schemas.text.lineHeight":"Altura de línea","schemas.text.min":"Mín","schemas.text.max":"Máx","schemas.text.fit":"Ajustar","schemas.text.dynamicFontSize":"Tamaño de fuente dinámico","schemas.text.format":"Formato","schemas.mvt.typingInstructions":"Agregue variables escribiendo palabras entre llaves, p.","schemas.mvt.sampleField":"nombre","schemas.mvt.variablesSampleData":"Variables Datos de muestra","schemas.barcodes.barColor":"Color de la barra","schemas.barcodes.includetext":"Incluir texto","schemas.table.alternateBackgroundColor":"Color de fondo alternativo","schemas.table.tableStyle":"Estilo de tabla","schemas.table.headStyle":"Estilo de cabecera","schemas.table.bodyStyle":"Estilo de cuerpo","schemas.table.columnStyle":"Estilo de columna","schemas.date.format":"Formato de fecha","schemas.select.options":"Opciones","schemas.select.optionPlaceholder":"Ingrese una opción","schemas.radioGroup.groupName":"Nombre del grupo"},fr:{cancel:"Annuler",close:"Fermer",field:"Champ",fieldName:"Nom",align:"Aligner",width:"Largeur",height:"Hauteur",opacity:"Opacité",rotate:"Rotation",required:"Requis",editable:"Modifiable",edit:"Éditer",plsInputName:"Veuillez saisir le nom",fieldMustUniq:"Le nom du champ n'est pas unique",notUniq:"(Nombre non unique)",noKeyName:"Pas de nom",fieldsList:"Liste des champs",editField:"Éditer le champ",type:"Type",errorOccurred:"Une erreur est survenue",errorBulkUpdateFieldName:"Impossible de confirmer le changement car le nombre d'éléments a changé.",commitBulkUpdateFieldName:"Confirmer les changements",bulkUpdateFieldName:"Modifier les noms de champs en masse",addPageAfter:"Ajouter une page après",removePage:"Supprimer la page actuelle",removePageConfirm:"Êtes-vous sûr de vouloir supprimer cette page ? Cette action est irréversible.","validation.hexColor":"Veuillez entrer un code couleur hexadécimal valide.","validation.uniqueName":"Veuillez saisir un nom unique.","schemas.color":"Couleur","schemas.borderWidth":"Largeur de la bordure","schemas.borderColor":"Couleur de la bordure","schemas.backgroundColor":"Couleur de fond","schemas.textColor":"Couleur du texte","schemas.bgColor":"Couleur de fond","schemas.horizontal":"Horizontal","schemas.vertical":"Vertical","schemas.left":"Gauche","schemas.center":"Centre","schemas.right":"Droite","schemas.top":"Haut","schemas.middle":"Milieu","schemas.bottom":"Bas","schemas.padding":"Zone de remplissage","schemas.text.fontName":"Nom de la police","schemas.text.size":"Taille","schemas.text.spacing":"Espacement","schemas.text.textAlign":"Alignement du texte","schemas.text.verticalAlign":"Alignement vertical","schemas.text.lineHeight":"Hauteur de ligne","schemas.text.min":"Min","schemas.text.max":"Max","schemas.text.fit":"Ajustement","schemas.text.dynamicFontSize":"Taille de police dynamique","schemas.text.format":"Format","schemas.mvt.typingInstructions":"Ajoutez des variables en tapant des mots entourés d'accolades, par ex.","schemas.mvt.sampleField":"nom","schemas.mvt.variablesSampleData":"Variables Exemples de données","schemas.barcodes.barColor":"Couleur de la barre","schemas.barcodes.includetext":"Inclure le texte","schemas.table.alternateBackgroundColor":"Couleur de fond alternative","schemas.table.tableStyle":"Style de tableau","schemas.table.headStyle":"Style d'en-tête","schemas.table.bodyStyle":"Style de corps","schemas.table.columnStyle":"Style de colonne","schemas.date.format":"Format de date","schemas.select.options":"Options","schemas.select.optionPlaceholder":"Entrez une option","schemas.radioGroup.groupName":"Nom du groupe"}},Bhe=e=>Ihe[e]||Ihe[TO],Mhe=(e,t)=>(t||Bhe(TO))[e],hf=h.createContext(Mhe),BP=h.createContext(wh()),y0=h.createContext(tne),HE=h.createContext({});function MP(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function kot(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function RP(e){return e!==null&&e>=0}function Fot(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Lot(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Rhe=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=MP(t,n,r),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},PP={scaleX:1,scaleY:1},Not=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const s=(t=a[r])!=null?t:n;if(!s)return null;if(i===r){const c=a[o];return c?{x:0,y:r<o?c.top+c.height-(s.top+s.height):c.top-s.top,...PP}:null}const l=$ot(a,i,r);return i>r&&i<=o?{x:0,y:-s.height-l,...PP}:i<r&&i>=o?{x:0,y:s.height+l,...PP}:{x:0,y:0,...PP}};function $ot(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const Phe="Sortable",Dhe=J.createContext({activeIndex:-1,containerId:Phe,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Rhe,disabled:{draggable:!1,droppable:!1}});function jot(e){let{children:t,id:r,items:n,strategy:i=Rhe,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=$ne(),d=Ex(Phe,r),f=s.rect!==null,p=h.useMemo(()=>n.map(x=>typeof x=="object"&&"id"in x?x.id:x),[n]),A=o!=null,v=o?p.indexOf(o.id):-1,g=c?p.indexOf(c.id):-1,m=h.useRef(p),y=!Fot(p,m.current),b=g!==-1&&v===-1||y,C=Lot(a);Tl(()=>{y&&A&&u(p)},[y,p,A,u]),h.useEffect(()=>{m.current=p},[p]);const w=h.useMemo(()=>({activeIndex:v,containerId:d,disabled:C,disableTransforms:b,items:p,overIndex:g,useDragOverlay:f,sortedRects:kot(p,l),strategy:i}),[v,d,C.draggable,C.droppable,b,p,g,l,f,i]);return J.createElement(Dhe.Provider,{value:w},t)}const Qot=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return MP(r,n,i).indexOf(t)},Hot=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!n||s!==a&&i===o?!1:r?!0:o!==i&&t===l},zot={duration:200,easing:"ease"},The="transform",Wot=Xh.Transition.toString({property:The,duration:0,easing:"linear"}),Vot={roleDescription:"sortable"};function Got(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=h.useState(null),s=h.useRef(r);return Tl(()=>{if(!t&&r!==s.current&&n.current){const l=i.current;if(l){const c=Um(n.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&o(u)}}r!==s.current&&(s.current=r)},[t,r,n,i]),h.useEffect(()=>{a&&o(null)},[a]),a}function Yot(e){let{animateLayoutChanges:t=Hot,attributes:r,disabled:n,data:i,getNewIndex:a=Qot,id:o,strategy:s,resizeObserverConfig:l,transition:c=zot}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:A,sortedRects:v,overIndex:g,useDragOverlay:m,strategy:y}=h.useContext(Dhe),b=Uot(n,p),C=u.indexOf(o),w=h.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),x=h.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:S,isOver:I,setNodeRef:B}=xFe({id:o,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...l}}),{active:R,activatorEvent:_,activeNodeRect:O,attributes:F,setNodeRef:k,listeners:D,isDragging:M,over:T,setActivatorNodeRef:L,transform:N}=Nne({id:o,data:w,attributes:{...Vot,...r},disabled:b.draggable}),$=s6e(B,k),U=!!R,Y=U&&!A&&RP(f)&&RP(g),V=!m&&M,K=V&&Y?N:null,X=Y?K??(s??y)({rects:v,activeNodeRect:O,activeIndex:f,overIndex:g,index:C}):null,Q=RP(f)&&RP(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,z=R==null?void 0:R.id,j=h.useRef({activeId:z,items:u,newIndex:Q,containerId:d}),W=u!==j.current.items,ee=t({active:R,containerId:d,isDragging:M,isSorting:U,id:o,index:C,items:u,newIndex:j.current.newIndex,previousItems:j.current.items,previousContainerId:j.current.containerId,transition:c,wasDragging:j.current.activeId!=null}),q=Got({disabled:!ee,index:C,node:S,rect:E});return h.useEffect(()=>{U&&j.current.newIndex!==Q&&(j.current.newIndex=Q),d!==j.current.containerId&&(j.current.containerId=d),u!==j.current.items&&(j.current.items=u)},[U,Q,d,u]),h.useEffect(()=>{if(z===j.current.activeId)return;if(z&&!j.current.activeId){j.current.activeId=z;return}const ae=setTimeout(()=>{j.current.activeId=z},50);return()=>clearTimeout(ae)},[z]),{active:R,activeIndex:f,attributes:F,data:w,rect:E,index:C,newIndex:Q,items:u,isOver:I,isSorting:U,isDragging:M,listeners:D,node:S,overIndex:g,over:T,setNodeRef:$,setActivatorNodeRef:L,setDroppableNodeRef:B,setDraggableNodeRef:k,transform:q??X,transition:te()};function te(){if(q||W&&j.current.newIndex===C)return Wot;if(!(V&&!J4(_)||!c)&&(U||ee))return Xh.Transition.toString({...c,property:The})}}function Uot(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}function DP(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Kot=[bn.Down,bn.Right,bn.Up,bn.Left],qot=(e,t)=>{let{context:{active:r,collisionRect:n,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(Kot.includes(e.code)){if(e.preventDefault(),!r||!n)return;const l=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=i.get(d.id);if(f)switch(e.code){case bn.Down:n.top<f.top&&l.push(d);break;case bn.Up:n.top>f.top&&l.push(d);break;case bn.Left:n.left>f.left&&l.push(d);break;case bn.Right:n.left<f.left&&l.push(d);break}});const c=fne({active:r,collisionRect:n,droppableRects:i,droppableContainers:l,pointerCoordinates:null});let u=dne(c,"id");if(u===(o==null?void 0:o.id)&&c.length>1&&(u=c[1].id),u!=null){const d=a.get(r.id),f=a.get(u),p=f?i.get(f.id):null,A=f==null?void 0:f.node.current;if(A&&p&&d&&f){const g=rM(A).some((x,E)=>s[E]!==x),m=_he(d,f),y=Xot(d,f),b=g||!m?{x:0,y:0}:{x:y?n.width-p.width:0,y:y?n.height-p.height:0},C={x:p.left,y:p.top};return b.x&&b.y?C:Sx(C,b)}}}};function _he(e,t){return!DP(e)||!DP(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Xot(e,t){return!DP(e)||!DP(t)||!_he(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const{Text:Zot}=ff,d9=J.memo(J.forwardRef(({icon:e,value:t,status:r,title:n,required:i,readOnly:a,style:o,dragOverlay:s,onClick:l,onMouseEnter:c,onMouseLeave:u,dragging:d,fadeIn:f,listeners:p,sorting:A,transition:v,transform:g,...m},y)=>{const b=h.useContext(hf);h.useEffect(()=>{if(s)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[s]);const{x:C,y:w,scaleX:x,scaleY:E}=g||{x:0,y:0,scaleX:1,scaleY:1};return ke.jsx("li",{style:{marginTop:10,transition:v,transform:`translate(${C}px, ${w}px) scale(${x}, ${E})`},onMouseEnter:c,onMouseLeave:u,ref:y,children:ke.jsxs("div",{style:{display:"flex",alignItems:"center",cursor:"pointer",...o},...m,onClick:()=>l&&l(),children:[ke.jsx(Or,{...p,style:{display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none",paddingLeft:"0.25rem"},icon:ke.jsx(rfe,{style:{cursor:"grab"}})}),e,ke.jsxs(Zot,{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",width:"100%"},title:n||"",children:[r===void 0?t:ke.jsxs("span",{children:[ke.jsx(Jet,{width:15,style:{marginRight:"0.5rem"}}),r==="is-warning"?b("noKeyName"):t,r==="is-danger"?b("notUniq"):""]}),a&&ke.jsx(mtt,{style:{marginLeft:"0.5rem"}}),i&&ke.jsx("span",{style:{color:"red",marginLeft:"0.5rem"},children:"*"})]})]})})})),Jot=e=>{const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current},Ohe=(e,t)=>Math.floor((e/t>1?1:e/t)*100)/100,khe=({template:e,size:t,zoomLevel:r})=>{const[n,i]=h.useState([]),[a,o]=h.useState([]),[s,l]=h.useState(0),[c,u]=h.useState(null),d=async f=>{const{template:{basePdf:p,schemas:A},size:v}=f;let g,m,y,b;if(uc(p)){const{width:w,height:x}=p;g=w*On,m=x*On,y=A.map(()=>"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII="),b=A.map(()=>({width:w,height:x}))}else{const w=await OK(p),x=cZ(w);b=await lZ(x),g=b[0].width*On,m=b[0].height*On,y=await u4e(x,g)}const C=Math.min(Ohe(v.width,g),Ohe(v.height-na,m));return{backgrounds:y,pageSizes:b,scale:C}};return h.useEffect(()=>{d({template:e,size:t}).then(({pageSizes:f,scale:p,backgrounds:A})=>{o(f),l(p),i(A)}).catch(f=>{u(f),console.error(`[@pdfme/ui] ${f}`)})},[e,t]),{backgrounds:n,pageSizes:a,scale:s*r,error:c,refresh:f=>d({template:f,size:t}).then(({pageSizes:p,scale:A,backgrounds:v})=>{o(p),l(A),i(v)})}},Fhe=({ref:e,pageSizes:t,scale:r,pageCursor:n,onChangePageCursor:i})=>{const a=h.useCallback(()=>{if(!t[0]||!e.current)return;const o=e.current.scrollTop,{top:s}=e.current.getBoundingClientRect(),l=t.reduce((u,d,f)=>{let p=(d.height*On+na)*r;return f===0?p+=s-p/2:p+=u[f-1],u.concat(p)},[]);let c=0;l.forEach((u,d)=>{o>u&&(c=d+1>=l.length?l.length-1:d+1)}),c!==n&&i(c)},[i,n,t,e,r]);h.useEffect(()=>{var o;return(o=e.current)==null||o.addEventListener("scroll",a),()=>{var s;(s=e.current)==null||s.removeEventListener("scroll",a)}},[e,a])},est=()=>{const[e,t]=h.useState(!1);return h.useEffect(()=>{const r=setTimeout(()=>t(!0),500);return()=>clearTimeout(r)},[]),e},tst=({pageCursor:e,pageSizes:t,activeElements:r,template:n,schemasList:i,changeSchemas:a,commitSchemas:o,removeSchemas:s,onSaveTemplate:l,past:c,future:u,setSchemasList:d,onEdit:f,onEditEnd:p})=>{const A=h.useRef(null),v=h.useCallback(()=>{const m=()=>{const b=r.map(C=>C.id);return i[e].filter(C=>b.includes(C.id))},y=b=>{const C=b==="undo",w=C?c:u;if(w.current.length<=0)return;(C?u:c).current.push(Ma(i[e]));const x=Ma(i);x[e]=w.current.pop(),d(x)};s4e({move:(b,C)=>{const w=t[e],x=m(),E=h4e({command:b,activeSchemas:x,pageSize:w,isShift:C});a(E)},copy:()=>{const b=m();b.length!==0&&(A.current=b)},paste:()=>{if(!A.current||A.current.length===0)return;const b=i[e],C=[],w=A.current.map(x=>{const E=uC(),S=f4e({copiedSchemaName:x.name,schema:b,stackUniqueSchemaNames:C}),{height:I,width:B,position:R}=x,_=t[e],O={x:R.x+10>_.width-B?_.width-B:R.x+10,y:R.y+10>_.height-I?_.height-I:R.y+10};return Object.assign(Ma(x),{id:E,name:S,position:O})});o(i[e].concat(w)),f(w.map(x=>document.getElementById(x.id))),A.current=w},redo:()=>y("redo"),undo:()=>y("undo"),save:()=>l&&l(Ik(i,n.basePdf)),remove:()=>s(m().map(b=>b.id)),esc:p,selectAll:()=>f(i[e].map(b=>document.getElementById(b.id)))})},[n,r,e,t,a,o,i,l,s,c,u,d,A,f,p]),g=h.useCallback(()=>{l4e()},[]);h.useEffect(()=>(v(),g),[v,g])},rst=(e,t,r,n)=>{const a=new DOMParser().parseFromString(e,"text/html"),o=s=>{(s.tagName==="SVG"||s.tagName==="svg")&&(s.setAttribute("width",r.toString()),s.setAttribute("height",r.toString())),Array.from(s.children).forEach(l=>o(l))};return Array.from(a.body.children).forEach(s=>o(s)),ke.jsx("div",{style:n,title:t,dangerouslySetInnerHTML:{__html:a.body.innerHTML}})},f9=e=>{var c;const{plugin:t,label:r,size:n,styles:i}=e,{token:a}=ga.useToken(),s=((c=h.useContext(HE).icons)==null?void 0:c[t.propPanel.defaultSchema.type])??t.icon,l={...i,color:a.colorText,display:"flex",justifyContent:"center"};return s?n?rst(s,r,n,l):ke.jsx("div",{style:l,title:r,dangerouslySetInnerHTML:{__html:s}}):ke.jsx("div",{style:{...i,overflow:"hidden",fontSize:10},title:r,children:r})},nst=({isSelected:e,style:t,onSelect:r,onEdit:n,schema:i,schemas:a,onMouseEnter:o,onMouseLeave:s})=>{const{token:l}=ga.useToken(),c=h.useContext(hf),u=h.useContext(y0),{setNodeRef:d,listeners:f,isDragging:p,isSorting:A,transform:v,transition:g}=Yot({id:i.id}),m=est(),y=p&&!m,b={...f,onClick:B=>r(i.id,B.shiftKey)},[C,w]=Object.entries(u).find(([B,R])=>(R==null?void 0:R.propPanel.defaultSchema.type)===i.type),x={width:20,marginRight:"0.5rem"};let E;i.name?a.find(B=>i.name&&B.name===i.name&&B.id!==i.id)&&(E="is-danger"):E="is-warning";let S=c("edit");E==="is-warning"?S=c("plsInputName"):E==="is-danger"&&(S=c("fieldMustUniq"));const I=e?{background:l.colorPrimary,opacity:A||p?.5:1}:{};return ke.jsx(d9,{ref:d,onMouseEnter:o,onMouseLeave:s,onClick:()=>n(i.id),icon:w&&ke.jsx(f9,{plugin:w,label:C,size:20,styles:x}),value:i.name,status:E,title:S,required:i.required,readOnly:i.readOnly,style:{...I,...t},dragging:p,sorting:A,transition:g,transform:v,fadeIn:y,listeners:b})},ist=e=>{const{token:t}=ga.useToken(),{schemas:r,onEdit:n,onSortEnd:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o}=e,[s,l]=h.useState([]),[c,u]=h.useState(null),[d,f]=h.useState(null),p=h.useContext(y0),A=w6e(cne(LF,{activationConstraint:{distance:15}}),cne(kF,{coordinateGetter:qot})),v=y=>s.map(b=>b.id).includes(y),g=(y,b)=>{if(b)if(v(y)){const C=s.filter(w=>w.id!==y);l(C)}else{const C=r.find(x=>x.id===y),w=s.concat(C);l(w)}else l([])},m=y=>{const b=typeof y=="string"?r.find(x=>x.id===y):y,[C,w]=Object.entries(p).find(([x,E])=>(E==null?void 0:E.propPanel.defaultSchema.type)===(b==null?void 0:b.type));return w?ke.jsx(f9,{plugin:w,label:C,size:20,styles:{marginRight:"0.5rem"}}):ke.jsx(ke.Fragment,{})};return ke.jsx(Fne,{sensors:A,collisionDetection:fne,onDragStart:({active:y})=>{f(String(y.id)),u(r),v(String(y.id))?s.length>0&&i(s.reduce((b,C)=>C.id===String(y.id)?b:b.filter(w=>w!==C),r)):l([])},onDragEnd:({active:y,over:b})=>{const C=(b==null?void 0:b.id)||"",w=r.map(E=>E.id).indexOf(String(y.id)),x=r.map(E=>E.id).indexOf(String(C));if(s.length){let E=[...r];E=MP(E,w,x),E.splice(x+1,0,...s.filter(S=>S.id!==d)),i(E),l([])}else w!==x&&i(MP(r,w,x));f(null)},onDragCancel:()=>{c&&i(c),f(null),u(null)},children:ke.jsxs(ke.Fragment,{children:[ke.jsx("div",{style:{height:"100%",overflowY:"auto"},children:ke.jsx(jot,{items:r,strategy:Not,children:ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none",borderRadius:5},children:r.map(y=>ke.jsx(nst,{style:{border:`1px solid ${y.id===a?t.colorPrimary:"transparent"}`},schema:y,schemas:r,isSelected:v(y.id)||d===y.id,onEdit:n,onSelect:g,onMouseEnter:()=>o(y.id),onMouseLeave:()=>o(null)},y.id))})})}),_n.createPortal(ke.jsx(OFe,{adjustScale:!0,children:d?(()=>{const y=r.find(b=>b.id===d);return y?ke.jsxs(ke.Fragment,{children:[ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:ke.jsx(d9,{icon:m(d),value:y.name,required:y.required,readOnly:y.readOnly,style:{background:t.colorPrimary},dragOverlay:!0})}),ke.jsx("ul",{style:{margin:0,padding:0,listStyle:"none"},children:s.filter(b=>b.id!==d).map(b=>ke.jsx(d9,{icon:m(b),value:b.name,required:b.required,readOnly:b.readOnly,style:{background:t.colorPrimary},dragOverlay:!0},b.id))})]}):null})():null}),document.body)]})})},{Text:ast}=ff,{TextArea:ost}=zl,h9=40,sst=e=>{const{schemas:t,onSortEnd:r,onEdit:n,size:i,hoveringSchemaId:a,onChangeHoveringSchemaId:o,changeSchemas:s}=e,{token:l}=ga.useToken(),c=h.useContext(hf),[u,d]=h.useState(!1),[f,p]=h.useState(""),A=dZ(i.height),v=()=>{const m=f.split(`
|
529
529
|
`);m.length!==t.length?alert(c("errorBulkUpdateFieldName")):(s(m.map((y,b)=>({key:"name",value:y,schemaId:t[b].id}))),d(!1))},g=()=>{p(t.map(m=>m.name).join(`
|
530
530
|
`)),d(!0)};return ke.jsxs("div",{children:[ke.jsx("div",{style:{height:h9,display:"flex",alignItems:"center"},children:ke.jsx(ast,{strong:!0,style:{textAlign:"center",width:"100%"},children:c("fieldsList")})}),ke.jsx(p0,{style:{marginTop:l.marginXS,marginBottom:l.marginXS}}),ke.jsxs("div",{style:{height:A-h9},children:[u?ke.jsx(ost,{wrap:"off",value:f,onChange:m=>p(m.target.value),style:{paddingLeft:30,height:A-h9,width:Gw-35,lineHeight:"2.75rem"}}):ke.jsx(ist,{schemas:t,hoveringSchemaId:a,onChangeHoveringSchemaId:o,onSortEnd:r,onEdit:n}),ke.jsx("div",{style:{paddingTop:"0.5rem",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:u?ke.jsxs(ke.Fragment,{children:[ke.jsx(Or,{size:"small",type:"text",onClick:v,children:ke.jsxs("u",{children:[" ",c("commitBulkUpdateFieldName")]})}),ke.jsx("span",{style:{margin:"0 1rem"},children:"/"}),ke.jsx(Or,{size:"small",type:"text",onClick:()=>d(!1),children:ke.jsxs("u",{children:[" ",c("cancel")]})})]}):ke.jsx(Or,{size:"small",type:"text",onClick:g,children:ke.jsxs("u",{children:[" ",c("bulkUpdateFieldName")]})})})]})]})};/*! *****************************************************************************
|
531
531
|
Copyright (c) Microsoft Corporation.
|
package/dist/types/contexts.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { Plugins, UIOptions } from '@pdfme/common';
|
3
|
-
export declare const I18nContext: import("react").Context<(key: "type" | "width" | "height" | "rotate" | "opacity" | "required" | "cancel" | "close" | "field" | "fieldName" | "align" | "edit" | "editable" | "plsInputName" | "fieldMustUniq" | "notUniq" | "noKeyName" | "fieldsList" | "editField" | "errorOccurred" | "errorBulkUpdateFieldName" | "commitBulkUpdateFieldName" | "bulkUpdateFieldName" | "addPageAfter" | "removePage" | "removePageConfirm" | "validation.uniqueName" | "validation.hexColor" | "schemas.color" | "schemas.borderWidth" | "schemas.borderColor" | "schemas.backgroundColor" | "schemas.textColor" | "schemas.bgColor" | "schemas.horizontal" | "schemas.vertical" | "schemas.left" | "schemas.center" | "schemas.right" | "schemas.top" | "schemas.middle" | "schemas.bottom" | "schemas.padding" | "schemas.text.fontName" | "schemas.text.size" | "schemas.text.spacing" | "schemas.text.textAlign" | "schemas.text.verticalAlign" | "schemas.text.lineHeight" | "schemas.text.min" | "schemas.text.max" | "schemas.text.fit" | "schemas.text.dynamicFontSize" | "schemas.text.format" | "schemas.mvt.typingInstructions" | "schemas.mvt.sampleField" | "schemas.mvt.variablesSampleData" | "schemas.barcodes.barColor" | "schemas.barcodes.includetext" | "schemas.table.alternateBackgroundColor" | "schemas.table.tableStyle" | "schemas.table.headStyle" | "schemas.table.bodyStyle" | "schemas.table.columnStyle" | "schemas.date.format" | "schemas.select.options" | "schemas.select.optionPlaceholder", dict?: {
|
3
|
+
export declare const I18nContext: import("react").Context<(key: "type" | "width" | "height" | "rotate" | "opacity" | "required" | "cancel" | "close" | "field" | "fieldName" | "align" | "edit" | "editable" | "plsInputName" | "fieldMustUniq" | "notUniq" | "noKeyName" | "fieldsList" | "editField" | "errorOccurred" | "errorBulkUpdateFieldName" | "commitBulkUpdateFieldName" | "bulkUpdateFieldName" | "addPageAfter" | "removePage" | "removePageConfirm" | "validation.uniqueName" | "validation.hexColor" | "schemas.color" | "schemas.borderWidth" | "schemas.borderColor" | "schemas.backgroundColor" | "schemas.textColor" | "schemas.bgColor" | "schemas.horizontal" | "schemas.vertical" | "schemas.left" | "schemas.center" | "schemas.right" | "schemas.top" | "schemas.middle" | "schemas.bottom" | "schemas.padding" | "schemas.text.fontName" | "schemas.text.size" | "schemas.text.spacing" | "schemas.text.textAlign" | "schemas.text.verticalAlign" | "schemas.text.lineHeight" | "schemas.text.min" | "schemas.text.max" | "schemas.text.fit" | "schemas.text.dynamicFontSize" | "schemas.text.format" | "schemas.mvt.typingInstructions" | "schemas.mvt.sampleField" | "schemas.mvt.variablesSampleData" | "schemas.barcodes.barColor" | "schemas.barcodes.includetext" | "schemas.table.alternateBackgroundColor" | "schemas.table.tableStyle" | "schemas.table.headStyle" | "schemas.table.bodyStyle" | "schemas.table.columnStyle" | "schemas.date.format" | "schemas.select.options" | "schemas.select.optionPlaceholder" | "schemas.radioGroup.groupName", dict?: {
|
4
4
|
cancel: string;
|
5
5
|
close: string;
|
6
6
|
field: string;
|
@@ -68,6 +68,7 @@ export declare const I18nContext: import("react").Context<(key: "type" | "width"
|
|
68
68
|
'schemas.date.format': string;
|
69
69
|
'schemas.select.options': string;
|
70
70
|
'schemas.select.optionPlaceholder': string;
|
71
|
+
'schemas.radioGroup.groupName': string;
|
71
72
|
} | undefined) => string>;
|
72
73
|
export declare const FontContext: import("react").Context<Record<string, {
|
73
74
|
data: string | ArrayBuffer | Uint8Array;
|
package/package.json
CHANGED
package/src/i18n.ts
CHANGED
@@ -71,6 +71,7 @@ const dictEn: { [key in keyof Dict]: string } = {
|
|
71
71
|
'schemas.date.format': 'Date Format',
|
72
72
|
'schemas.select.options': 'Options',
|
73
73
|
'schemas.select.optionPlaceholder': 'Enter an option',
|
74
|
+
'schemas.radioGroup.groupName': 'Group Name',
|
74
75
|
};
|
75
76
|
|
76
77
|
const dictZh: { [key in keyof Dict]: string } = {
|
@@ -141,6 +142,7 @@ const dictZh: { [key in keyof Dict]: string } = {
|
|
141
142
|
'schemas.date.format': '日期格式',
|
142
143
|
'schemas.select.options': '选项',
|
143
144
|
'schemas.select.optionPlaceholder': '请输入选项',
|
145
|
+
'schemas.radioGroup.groupName': '组名',
|
144
146
|
};
|
145
147
|
|
146
148
|
const dictJa: { [key in keyof Dict]: string } = {
|
@@ -211,6 +213,7 @@ const dictJa: { [key in keyof Dict]: string } = {
|
|
211
213
|
'schemas.date.format': '日付形式',
|
212
214
|
'schemas.select.options': 'オプション',
|
213
215
|
'schemas.select.optionPlaceholder': 'オプションを入力してください',
|
216
|
+
'schemas.radioGroup.groupName': 'グループ名',
|
214
217
|
};
|
215
218
|
|
216
219
|
const dictKo: { [key in keyof Dict]: string } = {
|
@@ -281,6 +284,7 @@ const dictKo: { [key in keyof Dict]: string } = {
|
|
281
284
|
'schemas.date.format': '날짜 형식',
|
282
285
|
'schemas.select.options': '옵션',
|
283
286
|
'schemas.select.optionPlaceholder': '옵션을 입력하세요',
|
287
|
+
'schemas.radioGroup.groupName': '그룹 이름',
|
284
288
|
};
|
285
289
|
|
286
290
|
const dictAr: { [key in keyof Dict]: string } = {
|
@@ -352,6 +356,7 @@ const dictAr: { [key in keyof Dict]: string } = {
|
|
352
356
|
'schemas.date.format': 'تنسيق التاريخ',
|
353
357
|
'schemas.select.options': 'خيارات',
|
354
358
|
'schemas.select.optionPlaceholder': 'أدخل خيارًا',
|
359
|
+
'schemas.radioGroup.groupName': 'اسم المجموعة',
|
355
360
|
};
|
356
361
|
|
357
362
|
const dictTh: { [key in keyof Dict]: string } = {
|
@@ -422,6 +427,7 @@ const dictTh: { [key in keyof Dict]: string } = {
|
|
422
427
|
'schemas.date.format': 'รูปแบบวันที่',
|
423
428
|
'schemas.select.options': 'ตัวเลือก',
|
424
429
|
'schemas.select.optionPlaceholder': 'กรอกตัวเลือก',
|
430
|
+
'schemas.radioGroup.groupName': 'ชื่อกลุ่ม',
|
425
431
|
};
|
426
432
|
|
427
433
|
const dictIt: { [key in keyof Dict]: string } = {
|
@@ -495,6 +501,7 @@ const dictIt: { [key in keyof Dict]: string } = {
|
|
495
501
|
'schemas.date.format': 'Formato data',
|
496
502
|
'schemas.select.options': 'Opzioni',
|
497
503
|
'schemas.select.optionPlaceholder': 'Inserisci un\'opzione',
|
504
|
+
'schemas.radioGroup.groupName': 'Nome del Gruppo',
|
498
505
|
};
|
499
506
|
|
500
507
|
const dictPl: { [key in keyof Dict]: string } = {
|
@@ -565,6 +572,7 @@ const dictPl: { [key in keyof Dict]: string } = {
|
|
565
572
|
'schemas.date.format': 'Format daty',
|
566
573
|
'schemas.select.options': 'Opcje',
|
567
574
|
'schemas.select.optionPlaceholder': 'Wpisz opcję',
|
575
|
+
'schemas.radioGroup.groupName': 'Nazwa grupy',
|
568
576
|
};
|
569
577
|
|
570
578
|
const dictDe: { [key in keyof Dict]: string } = {
|
@@ -638,6 +646,7 @@ const dictDe: { [key in keyof Dict]: string } = {
|
|
638
646
|
'schemas.date.format': 'Datumsformat',
|
639
647
|
'schemas.select.options': 'Optionen',
|
640
648
|
'schemas.select.optionPlaceholder': 'Geben Sie eine Option ein',
|
649
|
+
'schemas.radioGroup.groupName': 'Gruppenname',
|
641
650
|
};
|
642
651
|
|
643
652
|
const dictEs: { [key in keyof Dict]: string } = {
|
@@ -710,6 +719,7 @@ const dictEs: { [key in keyof Dict]: string } = {
|
|
710
719
|
'schemas.date.format': 'Formato de fecha',
|
711
720
|
'schemas.select.options': 'Opciones',
|
712
721
|
'schemas.select.optionPlaceholder': 'Ingrese una opción',
|
722
|
+
'schemas.radioGroup.groupName': 'Nombre del grupo',
|
713
723
|
};
|
714
724
|
|
715
725
|
const dictFr: { [key in keyof Dict]: string } = {
|
@@ -783,6 +793,7 @@ const dictFr: { [key in keyof Dict]: string } = {
|
|
783
793
|
'schemas.date.format': 'Format de date',
|
784
794
|
'schemas.select.options': 'Options',
|
785
795
|
'schemas.select.optionPlaceholder': 'Entrez une option',
|
796
|
+
'schemas.radioGroup.groupName': 'Nom du groupe',
|
786
797
|
};
|
787
798
|
|
788
799
|
const dictionaries: { [key in Lang]: Dict } = {
|