"use strict";(self.webpackChunkstudio_client=self.webpackChunkstudio_client||[]).push([[503],{8785:(t,e,o)=>{o.d(e,{Z:()=>p});var i=o(7638),r=o(4087),n=o(6013),l=o(3358),a=o(8163),d=o(985),s=o(5733),u=o(6107),c=o(3955);const p=function(t){function e(e,o,i){var r=t.call(this,e,o,i)||this;return(0,c.ku)(e,"acroListBox",[[u.Au,"PDFAcroListBox"]]),r.acroField=e,r}return(0,i.ZT)(e,t),e.prototype.getOptions=function(){for(var t=this.acroField.getOptions(),e=new Array(t.length),o=0,i=e.length;o1||1===o.length&&e)&&this.enableMultiselect();for(var r=new Array(o.length),n=0,l=o.length;n{o.d(e,{Z:()=>c});var i=o(7638),r=o(4087),n=o(3358),l=o(8163),a=o(985),d=o(5733),s=o(6107),u=o(3955);const c=function(t){function e(e,o,i){var r=t.call(this,e,o,i)||this;return(0,u.ku)(e,"acroRadioButton",[[s.Ym,"PDFAcroRadioButton"]]),r.acroField=e,r}return(0,i.ZT)(e,t),e.prototype.getOptions=function(){var t=this.acroField.getExportValues();if(t){for(var e=new Array(t.length),o=0,i=t.length;o{o.d(e,{Z:()=>a});var i=o(7638),r=o(3358),n=o(6107),l=o(3955);const a=function(t){function e(e,o,i){var r=t.call(this,e,o,i)||this;return(0,l.ku)(e,"acroSignature",[[n.uQ,"PDFAcroSignature"]]),r.acroField=e,r}return(0,i.ZT)(e,t),e.prototype.needsAppearancesUpdate=function(){return!1},e.of=function(t,o,i){return new e(t,o,i)},e}(r.Z)},2613:(t,e,o)=>{o.d(e,{Z:()=>f});var i=o(7638),r=o(4087),n=o(6013),l=o(3358),a=o(8163),d=o(985),s=o(5733),u=o(4755),c=o(1828),p=o(6719),h=o(6107),g=o(3955);const f=function(t){function e(e,o,i){var r=t.call(this,e,o,i)||this;return(0,g.ku)(e,"acroText",[[h._X,"PDFAcroText"]]),r.acroField=e,r}return(0,i.ZT)(e,t),e.prototype.getText=function(){var t=this.acroField.getValue();if(!t&&this.isRichFormatted())throw new u.E9(this.getName());return null==t?void 0:t.decodeText()},e.prototype.setText=function(t){(0,g.MU)(t,"text",["string"]);var e=this.getMaxLength();if(void 0!==e&&t&&t.length>e)throw new u.uo(t.length,e,this.getName());this.markAsDirty(),this.disableRichFormatting(),t?this.acroField.setValue(h.Ij.fromText(t)):this.acroField.removeValue()},e.prototype.getAlignment=function(){var t=this.acroField.getQuadding();return 0===t?p.H.Left:1===t?p.H.Center:2===t?p.H.Right:p.H.Left},e.prototype.setAlignment=function(t){(0,g.DA)(t,"alignment",p.H),this.markAsDirty(),this.acroField.setQuadding(t)},e.prototype.getMaxLength=function(){return this.acroField.getMaxLength()},e.prototype.setMaxLength=function(t){if((0,g.zo)(t,"maxLength",0,Number.MAX_SAFE_INTEGER),this.markAsDirty(),void 0===t)this.acroField.removeMaxLength();else{var e=this.getText();if(e&&e.length>t)throw new u._D(e.length,t,this.getName());this.acroField.setMaxLength(t)}},e.prototype.removeMaxLength=function(){this.markAsDirty(),this.acroField.removeMaxLength()},e.prototype.setImage=function(t){for(var e=this.getAlignment(),o=e===p.H.Center?c.C.Center:e===p.H.Right?c.C.Right:c.C.Left,i=this.acroField.getWidgets(),r=0,n=i.length;r{o.d(e,{DS:()=>b,E3:()=>A,HN:()=>m,S8:()=>F,TE:()=>c,gi:()=>y,oX:()=>C});var i=o(7638),r=o(1806),n=o(985),l=o(5733),a=o(8329),d=o(6719),s=o(486),u=o(3955),c=function(t){return"normal"in t?t:{normal:t}},p=/\/([^\0\t\n\f\r\ ]+)[\0\t\n\f\r\ ]+(\d*\.\d+|\d+)[\0\t\n\f\r\ ]+Tf/,h=function(t){var e,o,i=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",r=null!==(o=(0,u.JZ)(i,p).match)&&void 0!==o?o:[],n=Number(r[2]);return isFinite(n)?n:void 0},g=/(\d*\.\d+|\d+)[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]*(\d*\.\d+|\d+)?[\0\t\n\f\r\ ]+(g|rg|k)/,f=function(t){var e,o=null!==(e=t.getDefaultAppearance())&&void 0!==e?e:"",i=(0,u.JZ)(o,g).match,r=null!=i?i:[],l=r[1],a=r[2],d=r[3],s=r[4],c=r[5];return"g"===c&&l?(0,n.se)(Number(l)):"rg"===c&&l&&a&&d?(0,n.B8)(Number(l),Number(a),Number(d)):"k"===c&&l&&a&&d&&s?(0,n.Qn)(Number(l),Number(a),Number(d),Number(s)):void 0},v=function(t,e,o,i){var r;void 0===i&&(i=0);var l=[(0,n.l6)(e).toString(),(0,s.vE)(null!==(r=null==o?void 0:o.name)&&void 0!==r?r:"dummy__noop",i).toString()].join("\n");t.setDefaultAppearance(l)},F=function(t,e){var o,a,d,s=f(e),u=f(t.acroField),c=e.getRectangle(),p=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),g=null!==(o=null==h?void 0:h.getWidth())&&void 0!==o?o:0,F=(0,l.U6)(null==p?void 0:p.getRotation()),y=(0,l.bY)(c,F),b=y.width,m=y.height,C=(0,r.kc)((0,i.pi)((0,i.pi)({},c),{rotation:F})),A=(0,n.B8)(0,0,0),x=null!==(a=(0,n.p4)(null==p?void 0:p.getBorderColor()))&&void 0!==a?a:A,k=(0,n.p4)(null==p?void 0:p.getBackgroundColor()),S=(0,n.p4)(null==p?void 0:p.getBackgroundColor(),.8),T=null!==(d=null!=s?s:u)&&void 0!==d?d:A;v(s?e:t.acroField,T);var D={x:0+g/2,y:0+g/2,width:b-g,height:m-g,thickness:1.5,borderWidth:g,borderColor:x,markColor:T};return{normal:{on:(0,i.pr)(C,(0,r.lg)((0,i.pi)((0,i.pi)({},D),{color:k,filled:!0}))),off:(0,i.pr)(C,(0,r.lg)((0,i.pi)((0,i.pi)({},D),{color:k,filled:!1})))},down:{on:(0,i.pr)(C,(0,r.lg)((0,i.pi)((0,i.pi)({},D),{color:S,filled:!0}))),off:(0,i.pr)(C,(0,r.lg)((0,i.pi)((0,i.pi)({},D),{color:S,filled:!1})))}}},y=function(t,e){var o,a,d,s=f(e),u=f(t.acroField),c=e.getRectangle(),p=e.getAppearanceCharacteristics(),h=e.getBorderStyle(),g=null!==(o=null==h?void 0:h.getWidth())&&void 0!==o?o:0,F=(0,l.U6)(null==p?void 0:p.getRotation()),y=(0,l.bY)(c,F),b=y.width,m=y.height,C=(0,r.kc)((0,i.pi)((0,i.pi)({},c),{rotation:F})),A=(0,n.B8)(0,0,0),x=null!==(a=(0,n.p4)(null==p?void 0:p.getBorderColor()))&&void 0!==a?a:A,k=(0,n.p4)(null==p?void 0:p.getBackgroundColor()),S=(0,n.p4)(null==p?void 0:p.getBackgroundColor(),.8),T=null!==(d=null!=s?s:u)&&void 0!==d?d:A;v(s?e:t.acroField,T);var D={x:b/2,y:m/2,width:b-g,height:m-g,borderWidth:g,borderColor:x,dotColor:T};return{normal:{on:(0,i.pr)(C,(0,r.lt)((0,i.pi)((0,i.pi)({},D),{color:k,filled:!0}))),off:(0,i.pr)(C,(0,r.lt)((0,i.pi)((0,i.pi)({},D),{color:k,filled:!1})))},down:{on:(0,i.pr)(C,(0,r.lt)((0,i.pi)((0,i.pi)({},D),{color:S,filled:!0}))),off:(0,i.pr)(C,(0,r.lt)((0,i.pi)((0,i.pi)({},D),{color:S,filled:!1})))}}},b=function(t,e,o){var s,u,c,p,g,F=f(e),y=f(t.acroField),b=h(e),m=h(t.acroField),C=e.getRectangle(),A=e.getAppearanceCharacteristics(),x=e.getBorderStyle(),k=null==A?void 0:A.getCaptions(),S=null!==(s=null==k?void 0:k.normal)&&void 0!==s?s:"",T=null!==(c=null!==(u=null==k?void 0:k.down)&&void 0!==u?u:S)&&void 0!==c?c:"",D=null!==(p=null==x?void 0:x.getWidth())&&void 0!==p?p:0,w=(0,l.U6)(null==A?void 0:A.getRotation()),W=(0,l.bY)(C,w),B=W.width,M=W.height,O=(0,r.kc)((0,i.pi)((0,i.pi)({},C),{rotation:w})),R=(0,n.B8)(0,0,0),z=(0,n.p4)(null==A?void 0:A.getBorderColor()),L=(0,n.p4)(null==A?void 0:A.getBackgroundColor()),P=(0,n.p4)(null==A?void 0:A.getBackgroundColor(),.8),U={x:D,y:D,width:B-2*D,height:M-2*D},N=(0,a.v0)(S,{alignment:d.H.Center,fontSize:null!=b?b:m,font:o,bounds:U}),Z=(0,a.v0)(T,{alignment:d.H.Center,fontSize:null!=b?b:m,font:o,bounds:U}),V=Math.min(N.fontSize,Z.fontSize),E=null!==(g=null!=F?F:y)&&void 0!==g?g:R;v(F||void 0!==b?e:t.acroField,E,o,V);var H={x:0+D/2,y:0+D/2,width:B-D,height:M-D,borderWidth:D,borderColor:z,textColor:E,font:o.name,fontSize:V};return{normal:(0,i.pr)(O,(0,r.FC)((0,i.pi)((0,i.pi)({},H),{color:L,textLines:[N.line]}))),down:(0,i.pr)(O,(0,r.FC)((0,i.pi)((0,i.pi)({},H),{color:P,textLines:[Z.line]})))}},m=function(t,e,o){var d,s,u,c,p,g,F=f(e),y=f(t.acroField),b=h(e),m=h(t.acroField),C=e.getRectangle(),A=e.getAppearanceCharacteristics(),x=e.getBorderStyle(),k=null!==(d=t.getText())&&void 0!==d?d:"",S=null!==(s=null==x?void 0:x.getWidth())&&void 0!==s?s:0,T=(0,l.U6)(null==A?void 0:A.getRotation()),D=(0,l.bY)(C,T),w=D.width,W=D.height,B=(0,r.kc)((0,i.pi)((0,i.pi)({},C),{rotation:T})),M=(0,n.B8)(0,0,0),O=(0,n.p4)(null==A?void 0:A.getBorderColor()),R=(0,n.p4)(null==A?void 0:A.getBackgroundColor()),z=t.isCombed()?0:1,L={x:S+z,y:S+z,width:w-2*(S+z),height:W-2*(S+z)};if(t.isMultiline())p=(P=(0,a.jg)(k,{alignment:t.getAlignment(),fontSize:null!=b?b:m,font:o,bounds:L})).lines,g=P.fontSize;else if(t.isCombed()){p=(P=(0,a.qs)(k,{fontSize:null!=b?b:m,font:o,bounds:L,cellCount:null!==(u=t.getMaxLength())&&void 0!==u?u:0})).cells,g=P.fontSize}else{var P;p=[(P=(0,a.v0)(k,{alignment:t.getAlignment(),fontSize:null!=b?b:m,font:o,bounds:L})).line],g=P.fontSize}var U=null!==(c=null!=F?F:y)&&void 0!==c?c:M;v(F||void 0!==b?e:t.acroField,U,o,g);var N={x:0+S/2,y:0+S/2,width:w-S,height:W-S,borderWidth:null!=S?S:0,borderColor:O,textColor:U,font:o.name,fontSize:g,color:R,textLines:p,padding:z};return(0,i.pr)(B,(0,r.zh)(N))},C=function(t,e,o){var s,u,c,p=f(e),g=f(t.acroField),F=h(e),y=h(t.acroField),b=e.getRectangle(),m=e.getAppearanceCharacteristics(),C=e.getBorderStyle(),A=null!==(s=t.getSelected()[0])&&void 0!==s?s:"",x=null!==(u=null==C?void 0:C.getWidth())&&void 0!==u?u:0,k=(0,l.U6)(null==m?void 0:m.getRotation()),S=(0,l.bY)(b,k),T=S.width,D=S.height,w=(0,r.kc)((0,i.pi)((0,i.pi)({},b),{rotation:k})),W=(0,n.B8)(0,0,0),B=(0,n.p4)(null==m?void 0:m.getBorderColor()),M=(0,n.p4)(null==m?void 0:m.getBackgroundColor()),O={x:x+1,y:x+1,width:T-2*(x+1),height:D-2*(x+1)},R=(0,a.v0)(A,{alignment:d.H.Left,fontSize:null!=F?F:y,font:o,bounds:O}),z=R.line,L=R.fontSize,P=null!==(c=null!=p?p:g)&&void 0!==c?c:W;v(p||void 0!==F?e:t.acroField,P,o,L);var U={x:0+x/2,y:0+x/2,width:T-x,height:D-x,borderWidth:null!=x?x:0,borderColor:B,textColor:P,font:o.name,fontSize:L,color:M,textLines:[z],padding:1};return(0,i.pr)(w,(0,r.zh)(U))},A=function(t,e,o){var s,u,c=f(e),p=f(t.acroField),g=h(e),F=h(t.acroField),y=e.getRectangle(),b=e.getAppearanceCharacteristics(),m=e.getBorderStyle(),C=null!==(s=null==m?void 0:m.getWidth())&&void 0!==s?s:0,A=(0,l.U6)(null==b?void 0:b.getRotation()),x=(0,l.bY)(y,A),k=x.width,S=x.height,T=(0,r.kc)((0,i.pi)((0,i.pi)({},y),{rotation:A})),D=(0,n.B8)(0,0,0),w=(0,n.p4)(null==b?void 0:b.getBorderColor()),W=(0,n.p4)(null==b?void 0:b.getBackgroundColor()),B=t.getOptions(),M=t.getSelected();t.isSorted()&&B.sort();for(var O="",R=0,z=B.length;R{var i;o.d(e,{C:()=>i}),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(i||(i={}))},400:(t,e,o)=>{o.d(e,{C:()=>i.C});var i=o(1828)},9455:(t,e,o)=>{o.d(e,{Rj:()=>i.Z});o(8163),o(7685),o(4313),o(4671),o(3358),o(8418),o(8785),o(9462),o(3217),o(2613),o(8065),o(985),o(4755),o(400),o(3552),o(1806),o(486),o(5733),o(9135),o(7531),o(9874),o(5893);var i=o(5497);o(6013),o(5941),o(4087),o(7366),o(6789)}}]);