PageSourceSearch

https://stcdn.leadconnectorhq.com/_preview/BJ4mUbL2.js

js leadconnectorhq.com collected 2026-09-24 07:27:00 UTC 20,120 bytes, 2 lines download raw bytes

1import{a1 as ht,ae as ct,af as ut,aP as dt,r as D,c as T,Y as G,D as F,M as _,N as w,ah as S,a5 as x,ai as H,aj as vt,ak as Y,al as O,ag as A,aF as mt,ap as K,az as ft,aA as pt,an as yt,ao as gt,av as X,bX as bt,bY as Q}from"./CqWH0BZP.js";import{m as _t}from"./DMCly52n.js";import{p as wt}from"./DLVtykdp.js";class I{constructor(t,i,e,s){if(isNaN(t)||isNaN(i))throw new Error(`Point is invalid: (${t}, ${i})`);this.x=+t,this.y=+i,this.pressure=e||0,this.time=s||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class j{static fromPoints(t,i){const e=this.calculateControlPoints(t[0],t[1],t[2]).c2,s=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new j(t[1],e,s,t[2],i.start,i.end)}static calculateControlPoints(t,i,e){const s=t.x-i.x,n=t.y-i.y,r=i.x-e.x,u=i.y-e.y,l={x:(t.x+i.x)/2,y:(t.y+i.y)/2},a={x:(i.x+e.x)/2,y:(i.y+e.y)/2},c=Math.sqrt(s*s+n*n),v=Math.sqrt(r*r+u*u),y=l.x-a.x,g=l.y-a.y,p=v/(c+v),b={x:a.x+y*p,y:a.y+g*p},P=i.x-b.x,E=i.y-b.y;return{c1:new I(l.x+P,l.y+E),c2:new I(a.x+P,a.y+E)}}constructor(t,i,e,s,n,r){this.startPoint=t,this.control2=i,this.control1=e,this.endPoint=s,this.startWidth=n,this.endWidth=r}length(){let t=0,i,e;for(let s=0;s<=10;s+=1){const n=s/10,r=this.point(n,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(n,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(s>0){const l=r-i,a=u-e;t+=Math.sqrt(l*l+a*a)}i=r,e=u}return t}point(t,i,e,s,n){return i*(1-t)*(1-t)*(1-t)+3*e*(1-t)*(1-t)*t+3*s*(1-t)*t*t+n*t*t*t}}class xt{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,i,e){this._et.addEventListener(t,i,e)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,i,e){this._et.removeEventListener(t,i,e)}}function Et(o,t=250){let i=0,e=null,s,n,r;const u=()=>{i=Date.now(),e=null,s=o.apply(n,r),e||(n=null,r=[])};return function(...l){const a=Date.now(),c=t-(a-i);return n=this,r=l,c<=0||c>t?(e&&(clearTimeout(e),e=null),i=a,s=o.apply(n,r),e||(n=null,r=[])):e||(e=window.setTimeout(u,c)),s}}class R extends xt{constructor(t,i={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{e.buttons===1&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{e.buttons===1&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),e.targetTouches.length===1){const s=e.changedTouches[0];this._strokeBegin(s)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const s=e.targetTouches[0];this._strokeMoveUpdate(s)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const s=e.changedTouches[0];this._strokeEnd(s)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle="throttle"in i?i.throttle:16,this.minDistance="minDistance"in i?i.minDistance:5,this.dotSize=i.dotSize||0,this.penColor=i.penColor||"black",this.backgroundColor=i.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=i.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in i?i.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?Et(R.prototype._strokeUpdate,this.throttle):R.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:i}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,i.width,i.height),t.fillRect(0,0,i.width,i.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,i={}){return new Promise((e,s)=>{const n=new Image,r=i.ratio||window.devicePixelRatio||1,u=i.width||this.canvas.width/r,l=i.height||this.canvas.height/r,a=i.xOffset||0,c=i.yOffset||0;this._reset(this._getPointGroupOptions()),n.onload=()=>{this._ctx.drawImage(n,a,c,u,l),e()},n.onerror=v=>{s(v)},n.crossOrigin="anonymous",n.src=t,this._isEmpty=!1})}toDataURL(t="image/png",i){return t==="image/svg+xml"?(typeof i!="object"&&(i=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(i))}`):(typeof i!="number"&&(i=void 0),this.canvas.toDataURL(t,i))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:i=!0}={}){i&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const i=this._getPointGroupOptions(),e=Object.assign(Object.assign({},i),{points:[]});this._data.push(e),this._reset(i),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const i=t.clientX,e=t.clientY,s=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,n=this._createPoint(i,e,s),r=this._data[this._data.length-1],u=r.points,l=u.length>0&&u[u.length-1],a=l?n.distanceTo(l)<=this.minDistance:!1,c=this._getPointGroupOptions(r);if(!l||!(l&&a)){const v=this._addPoint(n,c);l?v&&this._drawCurve(v,c):this._drawDot(n,c),u.push({time:n.time,x:n.x,y:n.y,pressure:n.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,i,e){const s=this.canvas.getBoundingClientRect();return new I(t-s.left,i-s.top,e,new Date().getTime())}_addPoint(t,i){const{_lastPoints:e}=this;if(e.push(t),e.length>2){e.length===3&&e.unshift(e[0]);const s=this._calculateCurveWidths(e[1],e[2],i),n=j.fromPoints(e,s);return e.shift(),n}return null}_calculateCurveWidths(t,i,e){const s=e.velocityFilterWeight*i.velocityFrom(t)+(1-e.velocityFilterWeight)*this._lastVelocity,n=this._strokeWidth(s,e),r={end:n,start:this._lastWidth};return this._lastVelocity=s,this._lastWidth=n,r}_strokeWidth(t,i){return Math.max(i.maxWidth/(t+1),i.minWidth)}_drawCurveSegment(t,i,e){const s=this._ctx;s.moveTo(t,i),s.arc(t,i,e,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,i){const e=this._ctx,s=t.endWidth-t.startWidth,n=Math.ceil(t.length())*2;e.beginPath(),e.fillStyle=i.penColor;for(let r=0;r<n;r+=1){const u=r/n,l=u*u,a=l*u,c=1-u,v=c*c,y=v*c;let g=y*t.startPoint.x;g+=3*v*u*t.control1.x,g+=3*c*l*t.control2.x,g+=a*t.endPoint.x;let p=y*t.startPoint.y;p+=3*v*u*t.control1.y,p+=3*c*l*t.control2.y,p+=a*t.endPoint.y;const b=Math.min(t.startWidth+a*s,i.maxWidth);this._drawCurveSegment(g,p,b)}e.closePath(),e.fill()}_drawDot(t,i){const e=this._ctx,s=i.dotSize>0?i.dotSize:(i.minWidth+i.maxWidth)/2;e.beginPath(),this._drawCurveSegment(t.x,t.y,s),e.closePath(),e.fillStyle=i.penColor,e.fill()}_fromData(t,i,e){for(const s of t){const{points:n}=s,r=this._getPointGroupOptions(s);if(n.length>1)for(let u=0;u<n.length;u+=1){const l=n[u],a=new I(l.x,l.y,l.pressure,l.time);u===0&&this._reset(r);const c=this._addPoint(a,r);c&&i(c,r)}else this._reset(r),e(n[0],r)}}
1toSVG({includeBackgroundColor:t=!1}={}){const i=this._data,e=Math.max(window.devicePixelRatio||1,1),s=0,n=0,r=this.canvas.width/e,u=this.canvas.height/e,l=document.createElementNS("http://www.w3.org/2000/svg","svg");if(l.setAttribute("xmlns","http://www.w3.org/2000/svg"),l.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),l.setAttribute("viewBox",`${s} ${n} ${r} ${u}`),l.setAttribute("width",r.toString()),l.setAttribute("height",u.toString()),t&&this.backgroundColor){const a=document.createElement("rect");a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("fill",this.backgroundColor),l.appendChild(a)}return this._fromData(i,(a,{penColor:c})=>{const v=document.createElement("path");if(!isNaN(a.control1.x)&&!isNaN(a.control1.y)&&!isNaN(a.control2.x)&&!isNaN(a.control2.y)){const y=`M ${a.startPoint.x.toFixed(3)},${a.startPoint.y.toFixed(3)} C ${a.control1.x.toFixed(3)},${a.control1.y.toFixed(3)} ${a.control2.x.toFixed(3)},${a.control2.y.toFixed(3)} ${a.endPoint.x.toFixed(3)},${a.endPoint.y.toFixed(3)}`;v.setAttribute("d",y),v.setAttribute("stroke-width",(a.endWidth*2.25).toFixed(3)),v.setAttribute("stroke",c),v.setAttribute("fill","none"),v.setAttribute("stroke-linecap","round"),l.appendChild(v)}},(a,{penColor:c,dotSize:v,minWidth:y,maxWidth:g})=>{const p=document.createElement("circle"),b=v>0?v:(y+g)/2;p.setAttribute("r",b.toString()),p.setAttribute("cx",a.x.toString()),p.setAttribute("cy",a.y.toString()),p.setAttribute("fill",c),l.appendChild(p)}),l.outerHTML}}function U(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?U=function(t){return typeof t}:U=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(o)}function kt(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function St(o,t){for(var i=0;i<t.length;i++){var e=t[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}}function Pt(o,t,i){return t&&St(o.prototype,t),o}function Z(o){return Ct(o)||Mt(o)||Lt(o)||Ot()}function Ct(o){if(Array.isArray(o))return B(o)}function Mt(o){if(typeof Symbol<"u"&&Symbol.iterator in Object(o))return Array.from(o)}function Lt(o,t){if(o){if(typeof o=="string")return B(o,t);var i=Object.prototype.toString.call(o).slice(8,-1);if(i==="Object"&&o.constructor&&(i=o.constructor.name),i==="Map"||i==="Set")return Array.from(o);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return B(o,t)}}function B(o,t){(t==null||t>o.length)&&(t=o.length);for(var i=0,e=new Array(t);i<t;i++)e[i]=o[i];return e}function Ot(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wt(o){var t;return typeof o=="function"?t={callback:o}:t=o,t}function Dt(o,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,s,n,r=function(u){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];if(n=a,!(e&&u===s)){var v=i.leading;typeof v=="function"&&(v=v(u,s)),(!e||u!==s)&&v&&o.apply(void 0,[u].concat(Z(n))),s=u,clearTimeout(e),e=setTimeout(function(){o.apply(void 0,[u].concat(Z(n))),e=0},t)}};return r._clear=function(){clearTimeout(e),e=null},r}function J(o,t){if(o===t)return!0;if(U(o)==="object"){for(var i in o)if(!J(o[i],t[i]))return!1;return!0}return!1}var Tt=(function(){function o(t,i,e){kt(this,o),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(i,e)}return Pt(o,[{key:"createObserver",value:function(t,i){var e=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Wt(t),this.callback=function(r,u){e.options.callback(r,u),r&&e.options.once&&(e.frozen=!0,e.destroyObserver())},this.callback&&this.options.throttle){var s=this.options.throttleOptions||{},n=s.leading;this.callback=Dt(this.callback,this.options.throttle,{leading:function(r){return n==="both"||n==="visible"&&r||n==="hidden"&&!r}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(r){var u=r[0];if(r.length>1){var l=r.find(function(c){return c.isIntersecting});l&&(u=l)}if(e.callback){var a=u.isIntersecting&&u.intersectionRatio>=e.threshold;if(a===e.oldResult)return;e.oldResult=a,e.callback(a,u)}},this.options.intersection),F(function(){e.observer&&e.observer.observe(e.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),o})();function tt(o,t,i){var e=t.value;if(e&&!(typeof IntersectionObserver>"u")){var s=new Tt(o,e,i);o._vue_visibilityState=s}}function At(o,t,i){var e=t.value,s=t.oldValue;if(!J(e,s)){var n=o._vue_visibilityState;if(!e){et(o);return}n?n.createObserver(e,i):tt(o,{value:e},i)}}function et(o){var t=o._vue_visibilityState;t&&(t.destroyObserver(),delete o._vue_visibilityState)}var Ft={beforeMount:tt,updated:At,unmounted:et};
2const zt=ht({__name:"SignatureElement",props:{kind:{type:String},item:{type:Object},formFieldsValue:{type:Object},formLabelVisible:{type:Boolean},formLabelAlignment:{type:String},errors:{type:Object,default:()=>({})},form:{type:Object,required:!1}},emits:["updateFormFieldsValue","addOrUpdateError"],setup(o,{expose:t,emit:i}){const e=Ft,s=ct(),{t:n}=ut(),r=o,{inputBorderStyle:u}=dt(()=>r.form),l=D(),a=D(),c=D(),v=D(!0),y=T(()=>{var h;return v.value&&((h=r.item)==null?void 0:h.placeholder)}),g=T(()=>r.kind=="form"),p=T(()=>r.kind=="survey"),b=T(()=>{var h;return r.errors[(h=r.item)==null?void 0:h.tag]}),P=i,E=(h,d)=>{P("addOrUpdateError",{tag:h,error:d})},C=()=>{var h,d;if(!r.item)return;const m=(h=r.formFieldsValue)==null?void 0:h[r.item.tag];r.item.required&&X(m)?E(r.item.tag,((d=r.item)==null?void 0:d.error)??n("is_required",{label:r.item.label})):E(r.item.tag,null)},V=()=>{var h,d;if(p.value||!r.item)return;const m=(h=r.formFieldsValue)==null?void 0:h[r.item.tag];r.item.required&&X(m)?E(r.item.tag,((d=r.item)==null?void 0:d.error)??n("is_required",{label:r.item.label})):E(r.item.tag,null)},it=(h,d)=>{if(!h||typeof h!="string"||!h.includes(","))throw new Error("Invalid data URL: data is missing or malformed");var m=h.split(",");if(!m[1]||m[1].trim().length===0)throw new Error("Invalid data URL: no image data found");const f=m[0].match(/:(.*?);/);if(!f||!f[1])throw new Error("Invalid data URL: MIME type not found");const W=f[1];let k;try{k=atob(m[1])}catch{throw new Error("Invalid data URL: base64 decoding failed")}var L=k.length;if(L===0)throw new Error("Invalid data URL: decoded image data is empty");const q=new Uint8Array(L);for(;L--;)q[L]=k.charCodeAt(L);return new File([q],d,{type:W})},ot=h=>{c.value.clear(),v.value=!0,M(h,null),V(),C()},$=()=>{F(()=>{const h=c.value.toData();l.value.width=a.value.offsetWidth,l.value.height=a.value.offsetHeight,c.value.clear(),c.value.fromData(h),v.value=c.value.isEmpty()})},rt=h=>{h&&($(),F(()=>N()))},M=(h,d)=>{P("updateFormFieldsValue",{tag:h,value:d})},z=h=>{const{isEmpty:d,data:m}=lt();if(v.value=d,!d&&m)try{const f=it(m,`sign-timestamp-${Math.floor(+new Date().getTime()/1e3).toString()}.png`);if(f.size<=0){M(h,null),C();return}M(h,f),V(),C()}catch{M(h,null),C()}else M(h,null),C()},st=h=>Q.includes(h),nt=(h,d)=>{c.value=new R(h,{...bt,...d});const m=()=>{v.value=!1};["mousedown","touchstart","pointerdown"].forEach(f=>{h.addEventListener(f,m,{passive:!0})}),N()},at=h=>new Promise((d,m)=>{const f=new FileReader;f.onload=()=>{d(f.result)},f.onerror=m,f.readAsDataURL(h)}),N=async()=>{var h;if(!c.value||!r.item)return;const d=(h=r.formFieldsValue)==null?void 0:h[r.item.tag];if(d&&d instanceof File)try{const m=await at(d);c.value.fromDataURL(m,{ratio:1,width:l.value.width,height:l.value.height})}catch{}},lt=(h=Q[0],d)=>{var m,f;const W={isEmpty:!1,data:void 0};if(!st(h))throw new Error("The Image type is incorrect!");const k=(m=c.value)==null?void 0:m.isEmpty();if(k===void 0)throw new Error("Canvas element is invalid!");return k?{...W,isEmpty:k}:{...W,data:(f=c.value)==null?void 0:f.toDataURL(h,d)}};return G(l,()=>{l.value&&nt(l.value),F(()=>{c.value&&(v.value=c.value.isEmpty())})}),G(()=>{var h,d;return(d=r.formFieldsValue)==null?void 0:d[(h=r.item)==null?void 0:h.tag]},async h=>{h&&h instanceof File&&c.value?await N():!h&&c.value&&c.value.clear()},{immediate:!1}),t({validate:V,item:r.item,resizeCanvas:$}),(h,d)=>o.item?(_(),w("div",{key:0,class:H([{"d-none":o.item.hidden},"form-builder--item"])},[p.value&&o.item.description!==void 0?(_(),w("label",{innerHTML:o.item.description,class:"item-description",key:"signature-description-"+S(s),for:o.item.tag},null,8,["innerHTML","for"])):x("",!0),o.formLabelVisible?(_(),w("label",{key:1,class:H([S(vt)(o.item.labelAlignment,o.formLabelAlignment),"field-label"]),for:o.item.tag},[Y(O(o.item.label)+" ",1),o.item.required?(_(),w("span",{key:0},"*")):x("",!0)],10,["for"])):x("",!0),A("div",{class:"flex-col"},[A("section",{onMouseleave:d[1]||(d[1]=m=>z(o.item.tag)),onBlur:d[2]||(d[2]=m=>z(o.item.tag)),onTouchend:d[3]||(d[3]=m=>z(o.item.tag)),class:"signature-container"},[mt(_t,null,{default:K(()=>[ft((_(),w("div",{class:"signature-wrapper",ref:m=>{a.value=m}},[A("canvas",{class:"signature-button",ref:m=>{l.value=m},style:pt({minHeight:"150px",...S(u)})},null,4),y.value&&o.item.placeholder?(_(),w("div",{key:0,class:"signature-placeholder"},O(o.item.placeholder),1)):x("",!0)])),[[S(e),{callback:rt,once:!0}]])]),_:1}),A("a",{"aria-label":S(n)("common.signature.clear"),class:"clear-button",onClick:d[0]||(d[0]=yt(m=>ot(o.item.tag),["prevent"]))},O(S(n)("common.signature.clear")),9,["aria-label"])],32),g.value?(_(),w("input",{key:0,class:"file-input",n
2ame:o.item.label,value:o.formFieldsValue[o.item.tag],id:o.item.tag},null,8,["name","value","id"])):x("",!0),o.item.shortLabel?(_(),gt(wt,{key:1},{default:K(()=>[Y(O(o.item.shortLabel),1)]),_:1})):x("",!0)]),b.value?(_(),w("div",{key:2,id:"error-container",class:"error"},O(b.value),1)):x("",!0)],2)):x("",!0)}});export{zt as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.