1var At=Object.defineProperty;var It=a=>{throw TypeError(a)};var Lt=(a,e,s)=>e in a?At(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var C=(a,e,s)=>Lt(a,typeof e!="symbol"?e+"":e,s);var je=(a,e,s)=>e.has(a)?It("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,s);import{g4 as K,bw as x,dV as nt,g as Ft,r as R,dC as Pt,B as F,aG as zt,aH as Ot,aI as Tt,aJ as Bt,c$ as Dt,dH as $t,aL as Ht,bA as Ut,aS as Qe,bu as Gt,cZ as Wt,dN as Vt,aQ as Xe,cW as be,u as rt,bJ as ot,j as o,T as Yt,p as Qt,J as Xt,gC as ge,Z as qt,bd as Kt,gD as qe,ba as X,b5 as _t,F as Zt,gE as Ke,ac as _e,aD as Jt,ab as Ze,gF as es,M as ts,aj as ss,b4 as ns,gG as rs,U as os}from"./index-DmLCkbDr.js";import{a as as,u as is}from"./notification-D1p5BiwV.js";import{c as ls}from"./copyToClipboard-B_tB-cSb.js";import{F as ke}from"./FeatureGate-DRn-y6z1.js";import{P as Ce}from"./ProBadge-DZXNwhtR.js";import{u as cs}from"./useGatedAction-BgOjwjkR.js";import{M as ds}from"./modalWidth-N5-V6szm.js";import{u as te}from"./useFormStore-5a1Z6-Vf.js";import{a as hs,n as us,j as Je}from"./useFormPublishHost-BiWLUo0-.js";import{u as ms}from"./useTrackSetupGuide-CMDYmDNm.js";import{u as fs}from"./useUpdateForm-wTlf4zls.js";import{S as gs}from"./index-BuZMQSUg.js";import{u as ps}from"./unwrap-BJ5vOFjj.js";import{u as xs}from"./useMutation-rlt4CoJ5.js";import{A as ws}from"./index-Bh6jLWAF.js";import{F as pe}from"./index-CfTvAsgI.js";import{S as Cs}from"./index-BNJz2F9v.js";import{I as xe}from"./index-DAChdOo0.js";import{T as et}from"./index-BOf4DWTd.js";import{S as bs}from"./index-C6nUm0A2.js";import{L as ys}from"./index-C-3nwU6I.js";import"./geoData-CeZWEAyh.js";import"./useFetchDomains-DTj_u7wu.js";import"./useQuery-r4zL184E.js";import"./put-BCnbieRd.js";import"./index-D0ipYD1F.js";import"./move-DmArKD2Z.js";import"./useIcons-DREsPnb_.js";import"./DownOutlined-q9ulZLEo.js";import"./SearchOutlined-DXvGypHx.js";import"./useForm-B36hm8KJ.js";import"./Addon-SMe01biG.js";import"./Input-DkRd1dLp.js";import"./EyeOutlined-DyAMSIhj.js";import"./Sider-CFgsAg3e.js";import"./LeftOutlined-B-Ttkmtd.js";function P(a,e,s){if(e<0||e>31||a>>>e)throw new RangeError("Value out of range");for(let t=e-1;t>=0;t--)s.push(a>>>t&1)}function q(a,e){return(a>>>e&1)!=0}function O(a){if(!a)throw new Error("Assertion error")}var Ie;const T=class T{constructor(e,s){C(this,"modeBits");C(this,"numBitsCharCount");this.modeBits=e,this.numBitsCharCount=s}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};Ie=new WeakMap,je(T,Ie,(()=>{K(T,"NUMERIC",new T(1,[10,12,14])),K(T,"ALPHANUMERIC",new T(2,[9,11,13])),K(T,"BYTE",new T(4,[8,16,16])),K(T,"KANJI",new T(8,[8,10,12])),K(T,"ECI",new T(7,[0,0,0]))})());let ie=T;var Le;const $=class ${constructor(e,s){C(this,"ordinal");C(this,"formatBits");this.ordinal=e,this.formatBits=s}};Le=new WeakMap,je($,Le,(()=>{K($,"LOW",new $(0,1)),K($,"MEDIUM",new $(1,0)),K($,"QUARTILE",new $(2,3)),K($,"HIGH",new $(3,2))})());let _=$;const y=class y{constructor(e,s,t){C(this,"mode");C(this,"numChars");C(this,"bitData");if(this.mode=e,this.numChars=s,this.bitData=t,s<0)throw new RangeError("Invalid argument");this.bitData=t.slice()}static makeBytes(e){const s=[];for(const t of e)P(t,8,s);return new y(ie.BYTE,e.length,s)}static makeNumeric(e){if(!y.isNumeric(e))throw new RangeError("String contains non-numeric characters");const s=[];for(let t=0;t<e.length;){const n=Math.min(e.length-t,3);P(parseInt(e.substring(t,t+n),10),n*3+1,s),t+=n}return new y(ie.NUMERIC,e.length,s)}static makeAlphanumeric(e){if(!y.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");const s=[];let t;for(t=0;t+2<=e.length;t+=2){let n=y.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t))*45;n+=y.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),P(n,11,s)}return t<e.length&&P(y.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,s),new y(ie.ALPHANUMERIC,e.length,s)}static makeSegments(e){return e==""?[]:y.isNumeric(e)?[y.makeNumeric(e)]:y.isAlphanumeric(e)?[y.makeAlphanumeric(e)]:[y.makeBytes(y.toUtf8ByteArray(e))]}static makeEci(e){const s=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)P(e,8,s);else if(e<16384)P(2,2,s),P(e,14,s);else if(e<1e6)P(6,3,s),P(e,21,s);else throw new RangeError("ECI assignment value out of range");return new y(ie.ECI,0,s)}static isNumeric(e){return y.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return y.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,s){let t=0;for(const n of e){const r=n.mode.numCharCountBits(s);if(n.numChars>=1<<r)return 1/0;t+=4+r+n.bitData.length}return t}static toUtf8ByteArray(e){const s=encodeURI(e),t=[];for(let n=0;n<s.length;n++)s.charAt(n)!="%"?t.push(s.charCodeAt(n)):(t.push(parseInt(s.substring(n+1,n+3),16)),n+=2);return t}};C(y,"NUMERIC_REGEX",/^[0-9]*$/),C(y,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),C(y,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");let le=y;const m=class m{constructor(e,s,t,n){C(this,"size");C(this,"mask");C(this,"modules",[]);C(this,"isFunction",[]);C(this,"version");C(this,"errorCorrectionLevel");let r=n;if(this.version=e,this.errorCorrectionLevel=s,e<m.MIN_VERSION||e>m.MAX_VERSION)throw new RangeError("Version value out of range");if(r<-1||r>7)throw new RangeError("Mask value out of range");this.size=e*4+17;const i=[];for(let d=0;d<this.size;d++)i.push(!1);for(let d=0;d<this.size;d++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const l=this.addEccAndInterleave(t);if(this.drawCodewords(l),r==-1){let d=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const f=this.getPenaltyScore();f<d&&(r=h,d=f),this.applyMask(h)}}O(0<=r&&r<=7),this.mask=r,this.applyMask(r),this.drawFormatBits(r),this.isFunction=[]}static encodeText(e,s){const t=le.makeSegments(e);return m.encodeSegments(t,s)}static encodeBinary(e,s){const t=le.makeBytes(e);return m.encodeSegments([t],s)}static encodeSegments(e,s,t=1,n=40,r=-1,i=!0){if(!(m.MIN_VERSION<=t&&t<=n&&n<=m.MAX_VERSION)||r<-1||r>7)throw new RangeError("Invalid value");let l,d;for(l=t;;l++){const g=m.getNumDataCodewords(l,s)*8,p=le.getTotalBits(e,l);if(p<=g){d=p;break}if(l>=n)throw new RangeError("Data too long")}let h=s;for(const g of[_.MEDIUM,_.QUARTILE,_.HIGH])i&&d<=m.getNumDataCodewords(l,g)*8&&(h=g);const f=[];for(const g of e){P(g.mode.modeBits,4,f),P(g.numChars,g.mode.numCharCountBits(l),f);for(const p of g.getData())f.push(p)}O(f.length==d);const w=m.getNumDataCodewords(l,h)*8;O(f.length<=w),P(0,Math.min(4,w-f.length),f),P(0,(8-f.length%8)%8,f),O(f.length%8==0);for(let g=236;f.length<w;g^=253)P(g,8,f);const u=[];for(;u.length*8<f.length;)u.push(0);return f.forEach((g,p)=>{u[p>>>3]|=g<<7-(p&7)}),new m(l,h,u,r)}getModule(e,s){return 0<=e&&e<this.size&&0<=s&&s<this.size&&this.modules[s][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let t=0;t<this.size;t++)this.setFunctionModule(6,t,t%2==0),this.setFunctionModule(t,6,t%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),s=e.length;for(let t=0;t<s;t++)for(let n=0;n<s;n++)t==0&&n==0||t==0&&n==s-1||t==s-1&&n==0||this.drawAlignmentPattern(e[t],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const s=this.errorCorrectionLevel.formatBits<<3|e;let t=s;for(let r=0;r<10;r++)t=t<<1^(t>>>9)*1335;const n=(s<<10|t)^21522;O(n>>>15==0);for(let r=0;r<=5;r++)this.setFunctionModule(8,r,q(n,r));this.setFunctionModule(8,7,q(n,6)),this.setFunctionModule(8,8,q(n,7)),this.setFunctionModule(7,8,q(n,8));for(let r=9;r<15;r++)this.setFunctionModule(14-r,8,q(n,r));for(let r=0;r<8;r++)this.setFunctionModule(this.size-1-r,8,q(n,r));for(let r=8;r<15;r++)this.setFunctionModule(8,this.size-15+r,q(n,r));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;const s=this.version<<12|e;O(s>>>18==0);for(let t=0;t<18;t++){const n=q(s,t),r=this.size-11+t%3,i=Math.floor(t/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}
1drawFinderPattern(e,s){for(let t=-4;t<=4;t++)for(let n=-4;n<=4;n++){const r=Math.max(Math.abs(n),Math.abs(t)),i=e+n,l=s+t;0<=i&&i<this.size&&0<=l&&l<this.size&&this.setFunctionModule(i,l,r!=2&&r!=4)}}drawAlignmentPattern(e,s){for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,s+t,Math.max(Math.abs(n),Math.abs(t))!=1)}setFunctionModule(e,s,t){this.modules[s][e]=t,this.isFunction[s][e]=!0}addEccAndInterleave(e){const s=this.version,t=this.errorCorrectionLevel;if(e.length!=m.getNumDataCodewords(s,t))throw new RangeError("Invalid argument");const n=m.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][s],r=m.ECC_CODEWORDS_PER_BLOCK[t.ordinal][s],i=Math.floor(m.getNumRawDataModules(s)/8),l=n-i%n,d=Math.floor(i/n),h=[],f=m.reedSolomonComputeDivisor(r);for(let u=0,g=0;u<n;u++){const p=e.slice(g,g+d-r+(u<l?0:1));g+=p.length;const j=m.reedSolomonComputeRemainder(p,f);u<l&&p.push(0),h.push(p.concat(j))}const w=[];for(let u=0;u<h[0].length;u++)h.forEach((g,p)=>{(u!=d-r||p>=l)&&w.push(g[u])});return O(w.length==i),w}drawCodewords(e){if(e.length!=Math.floor(m.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let t=this.size-1;t>=1;t-=2){t==6&&(t=5);for(let n=0;n<this.size;n++)for(let r=0;r<2;r++){const i=t-r,d=(t+1&2)==0?this.size-1-n:n;!this.isFunction[d][i]&&s<e.length*8&&(this.modules[d][i]=q(e[s>>>3],7-(s&7)),s++)}}O(s==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let t=0;t<this.size;t++){let n;switch(e){case 0:n=(t+s)%2==0;break;case 1:n=s%2==0;break;case 2:n=t%3==0;break;case 3:n=(t+s)%3==0;break;case 4:n=(Math.floor(t/3)+Math.floor(s/2))%2==0;break;case 5:n=t*s%2+t*s%3==0;break;case 6:n=(t*s%2+t*s%3)%2==0;break;case 7:n=((t+s)%2+t*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][t]&&n&&(this.modules[s][t]=!this.modules[s][t])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let i=!1,l=0;const d=[0,0,0,0,0,0,0];for(let h=0;h<this.size;h++)this.modules[r][h]==i?(l++,l==5?e+=m.PENALTY_N1:l>5&&e++):(this.finderPenaltyAddHistory(l,d),i||(e+=this.finderPenaltyCountPatterns(d)*m.PENALTY_N3),i=this.modules[r][h],l=1);e+=this.finderPenaltyTerminateAndCount(i,l,d)*m.PENALTY_N3}for(let r=0;r<this.size;r++){let i=!1,l=0;const d=[0,0,0,0,0,0,0];for(let h=0;h<this.size;h++)this.modules[h][r]==i?(l++,l==5?e+=m.PENALTY_N1:l>5&&e++):(this.finderPenaltyAddHistory(l,d),i||(e+=this.finderPenaltyCountPatterns(d)*m.PENALTY_N3),i=this.modules[h][r],l=1);e+=this.finderPenaltyTerminateAndCount(i,l,d)*m.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let i=0;i<this.size-1;i++){const l=this.modules[r][i];l==this.modules[r][i+1]&&l==this.modules[r+1][i]&&l==this.modules[r+1][i+1]&&(e+=m.PENALTY_N2)}let s=0;for(const r of this.modules)s=r.reduce((i,l)=>i+(l?1:0),s);const t=this.size*this.size,n=Math.ceil(Math.abs(s*20-t*10)/t)-1;return O(0<=n&&n<=9),e+=n*m.PENALTY_N4,O(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,t=[6];for(let n=this.size-7;t.length<e;n-=s)t.splice(1,0,n);return t}}static getNumRawDataModules(e){if(e<m.MIN_VERSION||e>m.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;s-=(25*t-10)*t-55,e>=7&&(s-=36)}return O(208<=s&&s<=29648),s}static getNumDataCodewords(e,s){return Math.floor(m.getNumRawDataModules(e)/8)-m.ECC_CODEWORDS_PER_BLOCK[s.ordinal][e]*m.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");const s=[];for(let n=0;n<e-1;n++)s.push(0);s.push(1);let t=1;for(let n=0;n<e;n++){for(let r=0;r<s.length;r++)s[r]=m.reedSolomonMultiply(s[r],t),r+1<s.length&&(s[r]^=s[r+1]);t=m.reedSolomonMultiply(t,2)}return s}static reedSolomonComputeRemainder(e,s){const t=s.map(()=>0);for(const n of e){const r=n^t.shift();t.push(0),s.forEach((i,l)=>{t[l]^=m.reedSolomonMultiply(i,r)})}return t}static reedSolomonMultiply(e,s){if(e>>>8||s>>>8)throw new RangeError("Byte out of range");let t=0;for(let n=7;n>=0;n--)t=t<<1^(t>>>7)*285,t^=(s>>>n&1)*e;return O(t>>>8==0),t}finderPenaltyCountPatterns(e){const s=e[1];O(s<=this.size*3);const t=s>0&&e[2]==s&&e[3]==s*3&&e[4]==s&&e[5]==s;return(t&&e[0]>=s*4&&e[6]>=s?1:0)+(t&&e[6]>=s*4&&e[0]>=s?1:0)}finderPenaltyTerminateAndCount(e,s,t){let n=s;return e&&(this.finderPenaltyAddHistory(n,t),n=0),n+=this.size,this.finderPenaltyAddHistory(n,t),this.finderPenaltyCountPatterns(t)}finderPenaltyAddHistory(e,s){let t=e;s[0]==0&&(t+=this.size),s.pop(),s.unshift(t)}};C(m,"MIN_VERSION",1),C(m,"MAX_VERSION",40),C(m,"PENALTY_N1",3),C(m,"PENALTY_N2",3),C(m,"PENALTY_N3",40),C(m,"PENALTY_N4",10),C(m,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),C(m,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);let Me=m;const vs={L:_.LOW,M:_.MEDIUM,Q:_.QUARTILE,H:_.HIGH},at=128,it="L",lt="#FFFFFF",ct="#000000",dt=!1,ht=1,Es=4,Ss=0,Rs=.1,ut=(a,e=0)=>{const s=[];return a.forEach((t,n)=>{let r=null;t.forEach((i,l)=>{if(!i&&r!==null){s.push(`M${r+e} ${n+e}h${l-r}v1H${r+e}z`),r=null;return}if(l===t.length-1){if(!i)return;r===null?s.push(`M${l+e},${n+e} h1v1H${l+e}z`):s.push(`M${r+e},${n+e} h${l+1-r}v1H${r+e}z`);return}i&&r===null&&(r=l)})}),s.join("")},mt=(a,e)=>a.slice().map((s,t)=>t<e.y||t>=e.y+e.h?s:s.map((n,r)=>r<e.x||r>=e.x+e.w?n:!1)),Ns=(a,e,s,t)=>{if(t==null)return null;const n=a.length+s*2,r=Math.floor(e*Rs),i=n/e,l=(t.width||r)*i,d=(t.height||r)*i,h=t.x==null?a.length/2-l/2:t.x*i,f=t.y==null?a.length/2-d/2:t.y*i,w=t.opacity==null?1:t.opacity;let u=null;if(t.excavate){const p=Math.floor(h),j=Math.floor(f),k=Math.ceil(l+h-p),v=Math.ceil(d+f-j);u={x:p,y:j,w:k,h:v}}const g=t.crossOrigin;return{x:h,y:f,h:d,w:l,excavation:u,opacity:w,crossOrigin:g}},js=(a,e)=>e!=null?Math.max(Math.floor(e),0):a?Es:Ss,ks=(()=>{try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}
1)(),ft=a=>{const{value:e,level:s,minVersion:t,includeMargin:n,marginSize:r,imageSettings:i,size:l,boostLevel:d}=a,h=x.useMemo(()=>{const w=(Array.isArray(e)?e:[e]).reduce((u,g)=>(u.push(...le.makeSegments(g)),u),[]);return Me.encodeSegments(w,vs[s],t,void 0,void 0,d)},[e,s,t,d]);return x.useMemo(()=>{const f=h.getModules(),w=js(n,r),u=f.length+w*2,g=Ns(f,l,w,i);return{cells:f,margin:w,numCells:u,calculatedImageSettings:g,qrcode:h}},[h,l,i,n,r])},Ms=x.forwardRef((a,e)=>{const{value:s,size:t=at,level:n=it,bgColor:r=lt,fgColor:i=ct,includeMargin:l=dt,minVersion:d=ht,marginSize:h,style:f,imageSettings:w,boostLevel:u,...g}=a,p=w==null?void 0:w.src,j=x.useRef(null),k=x.useRef(null),v=x.useCallback(I=>{j.current=I,typeof e=="function"?e(I):e&&(e.current=I)},[e]),[,z]=x.useState(!1),{margin:M,cells:A,numCells:Z,calculatedImageSettings:S}=ft({value:s,level:n,minVersion:d,includeMargin:l,marginSize:h,imageSettings:w,size:t,boostLevel:u});x.useEffect(()=>{if(j.current){const I=j.current,N=I.getContext("2d");if(!N)return;let Y=A;const H=k.current,J=S!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWidth!==0;J&&S.excavation!=null&&(Y=mt(A,S.excavation));const Q=window.devicePixelRatio||1;I.height=I.width=t*Q;const L=t/Z*Q;N.scale(L,L),N.fillStyle=r,N.fillRect(0,0,Z,Z),N.fillStyle=i,ks?N.fill(new Path2D(ut(Y,M))):A.forEach((ce,U)=>{ce.forEach((de,ee)=>{de&&N.fillRect(ee+M,U+M,1,1)})}),S&&(N.globalAlpha=S.opacity),J&&N.drawImage(H,S.x+M,S.y+M,S.w,S.h)}}),x.useEffect(()=>{z(!1)},[p]);const W={height:t,width:t,...f};let V=null;return p!=null&&(V=x.createElement("img",{alt:"QR-Code",src:p,key:p,style:{display:"none"},onLoad:()=>{z(!0)},ref:k,crossOrigin:S==null?void 0:S.crossOrigin})),x.createElement(x.Fragment,null,x.createElement("canvas",nt({style:W,height:t,width:t,ref:v,role:"img"},g)),V)}),As=x.forwardRef((a,e)=>{const{value:s,size:t=at,level:n=it,bgColor:r=lt,fgColor:i=ct,includeMargin:l=dt,minVersion:d=ht,title:h,marginSize:f,imageSettings:w,boostLevel:u,...g}=a,{margin:p,cells:j,numCells:k,calculatedImageSettings:v}=ft({value:s,level:n,minVersion:d,includeMargin:l,marginSize:f,imageSettings:w,size:t,boostLevel:u});let z=j,M=null;w!=null&&v!=null&&(v.excavation!=null&&(z=mt(j,v.excavation)),M=x.createElement("image",{href:w.src,height:v.h,width:v.w,x:v.x+p,y:v.y+p,preserveAspectRatio:"none",opacity:v.opacity,crossOrigin:v.crossOrigin}));const A=ut(z,p);return x.createElement("svg",nt({height:t,width:t,viewBox:`0 0 ${k} ${k}`,ref:e,role:"img"},g),!!h&&x.createElement("title",null,h),x.createElement("path",{fill:r,d:`M0,0 h${k}v${k}H0z`,shapeRendering:"crispEdges"}),x.createElement("path",{fill:i,d:A,shapeRendering:"crispEdges"}),M)});var we={},tt;function Is(){if(tt)return we;tt=1,Object.defineProperty(we,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43
1c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};return we.default=a,we}var Ls=Is();const Fs=Ft(Ls);function Ae(){return Ae=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var t in s)Object.prototype.hasOwnProperty.call(s,t)&&(a[t]=s[t])}return a},Ae.apply(this,arguments)}const Ps=(a,e)=>R.createElement(Pt,Ae({},a,{ref:e,icon:Fs})),zs=R.forwardRef(Ps),Os=x.createElement(bs,null);function Ts({prefixCls:a,locale:e,onRefresh:s,statusRender:t,status:n}){const r=x.createElement(x.Fragment,null,x.createElement("p",{className:`${a}-expired`},e==null?void 0:e.expired),s&&x.createElement(F,{type:"link",icon:x.createElement(zs,null),onClick:s},e==null?void 0:e.refresh)),i=x.createElement("p",{className:`${a}-scanned`},e==null?void 0:e.scanned),l={expired:r,loading:Os,scanned:i};return(t??(f=>l[f.status]))({status:n,locale:e,onRefresh:s})}const Bs=a=>{const{componentCls:e,lineWidth:s,lineType:t,colorSplit:n}=a;return{[e]:{...Bt(a),display:"flex",justifyContent:"center",alignItems:"center",padding:a.paddingSM,backgroundColor:a.colorWhite,borderRadius:a.borderRadiusLG,border:`${Tt(s)} ${t} ${n}`,position:"relative",overflow:"hidden",[`& > ${e}-cover`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:a.colorText,lineHeight:a.lineHeight,background:a.QRCodeCoverBackgroundColor,textAlign:"center",[`& > ${e}-expired, & > ${e}-scanned`]:{color:a.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:a.marginXS,fontSize:a.controlHeight}},[`${e}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},Ds=a=>({QRCodeCoverBackgroundColor:new Dt(a.colorBgContainer).setA(.96).toRgbString()}),$s=zt("QRCode",a=>{const e=Ot(a,{QRCodeTextColor:a.colorText});return Bs(e)},Ds),Hs=a=>{const[,e]=$t(),{value:s,type:t="canvas",icon:n="",size:r=160,iconSize:i,color:l=e.colorText,errorLevel:d="M",status:h="active",bordered:f=!0,onRefresh:w,style:u,className:g,rootClassName:p,prefixCls:j,bgColor:k="transparent",marginSize:v,statusRender:z,classNames:M,styles:A,boostLevel:Z,...S}=a,{getPrefixCls:W,className:V,style:I,classNames:N,styles:Y}=Ht("qrcode"),H={...a,bgColor:k,type:t,size:r,status:h,bordered:f,errorLevel:d},[J,Q]=Ut([N,M],[Y,A],{props:H}),L=W("qrcode",j),[ce,U]=$s(L),de={src:n,x:void 0,y:void 0,height:Qe(i)?i:(i==null?void 0:i.height)??40,width:Qe(i)?i:(i==null?void 0:i.width)??40,excavate:!0,crossOrigin:"anonymous"},ee=Gt(S,!0),se=Wt(S,Object.keys(ee)),he={value:s,size:r,level:d,bgColor:k,fgColor:l,style:{width:u==null?void 0:u.width,height:u==null?void 0:u.height},imageSettings:n?de:void 0,marginSize:v,boostLevel:Z,...ee},[ne]=Vt("QRCode");if(!s)return null;const re=Xe(L,g,p,ce,U,V,J.root,{[`${L}-borderless`]:!f}),ye={backgroundColor:k,...Q.root,...I,...u,width:(u==null?void 0:u.width)??r,height:(u==null?void 0:u.height)??r};return x.createElement("div",{...se,className:re,style:ye},h!=="active"&&x.createElement("div",{className:Xe(`${L}-cover`,J.cover),style:Q.cover},x.createElement(Ts,{prefixCls:L,locale:ne,status:h,onRefresh:w,statusRender:z})),t==="canvas"?x.createElement(Ms,{...he}):x.createElement(As,{...he}))};function Us(a){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(a)}function Gs(a){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(a)}function Ws(a){return be({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(a)}function Vs(a){return be({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"},child:[]}]})(a)}function Ys(){const{t:a}=rt(),e=te(n=>n.embedAllowedDomains),s=te(n=>n.setForm),{isEnabled:t}=ot();return o.jsxs("div",{children:[o.jsxs("div",{className:"mb-2 flex items-center gap-2 text-sm font-semibold",children:[a("Where this form can be embedded"),!t("embed_code")&&o.jsx(Ce,{variant:"inline"})]}),o.jsx(ke,{featureKey:"embed_code",label:"Embedding",className:"w-full items-start",hideBadge:!0,children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx(gs,{mode:"tags",value:e,onCh
1ange:n=>s({embedAllowedDomains:n}),open:!1,tokenSeparators:[","," "],placeholder:a("Add a domain, e.g. shop.mybrand.com"),style:{width:"100%"}}),o.jsx(Yt.Text,{type:"secondary",className:"text-xs",children:a("Leave empty to allow embedding on any site. Add domains to allow only those.")})]})})]})}function Qs(a){return xs({mutationFn:()=>Qt(`forms/${a}/cache/refresh`,{},!0).then(ps)})}function Xs({workspaceBaseUrl:a,formBaseUrl:e,formId:s,shareId:t,formHasDedicatedDomain:n}){const r=us(a),i=Je(e,n,t)??t,l=Je(e,n,s)??s;let d="/payment-form-embed.js";return r&&(d=new URL("/payment-form-embed.js",r).toString()),{shareLink:i,uuidFormLink:l,embedScriptUrl:d,embedFormUrl:`${l}?embedded=true`}}const qs=[{key:"facebook",label:"Facebook",tooltip:"Facebook",background:"#1877F2",icon:o.jsx(Vs,{className:"size-4 text-white"})},{key:"linkedin",label:"LinkedIn",tooltip:"LinkedIn",background:"#0A66C2",icon:o.jsx(Ws,{className:"size-4 text-white"})},{key:"whatsapp",label:"WhatsApp",tooltip:"WhatsApp",background:"#25D366",icon:o.jsx(Gs,{className:"size-4 text-white"})},{key:"x",label:"X",tooltip:"X (Twitter)",background:"#000000",icon:o.jsx(Us,{className:"size-4 text-white"})}];function Ks({formUUID:a}){const{t:e}=rt(),s=as(),t=is(),n=te(c=>c.name),r=te(c=>c.slug),i=te(c=>c.setForm),l=te(c=>!c.isSaved||!!c.updatedFormData),d=Xt(c=>c.theme),h=R.useRef(null),[f,w]=R.useState(!1),{isEnabled:u}=ot(),g=u("embed_code"),p=u("share_qr_code"),j=u("custom_url_slug"),{trackStep:k}=ms(),[v,z]=R.useState(!1),[M,A]=R.useState(""),[Z,S]=R.useState(""),[W,V]=R.useState(!1),[I,N]=R.useState(null),[Y,H]=R.useState(null),[J,Q]=R.useState(!1),[L,ce]=R.useState(null),[U,de]=R.useState(null),[ee,se]=R.useState(null),[he,ne]=R.useState(null),re=n||a,ye=ge(re),ue=ge(r??""),Fe=ue.length>0,ve=Fe&&j,G=ve?ue:a,{updateForm:Pe}=fs(),Ee=Qs(a),{workspaceBaseUrl:ze,formBaseUrl:oe,formHasDedicatedDomain:me}=hs(a);R.useEffect(()=>{A(G),S(c=>ue||c),z(!1)},[G,ue]);const Se=ge(M),gt=ve&&Se===G,pt=Se.length>0&&Se!==G,xt=e(W?"Applying...":gt?"Applied":"Apply"),{shareLink:ae,embedScriptUrl:Oe,embedFormUrl:Te}=R.useMemo(()=>Xs({workspaceBaseUrl:ze,formBaseUrl:oe,formId:a,shareId:G,formHasDedicatedDomain:me}),[ze,oe,a,G,me]),Be=oe?oe.length>36?`...${oe.slice(-33)}`:oe:"",De=!v&&!me,$e=d==="dark"?{height:40,fontWeight:500}:{height:40,backgroundColor:"#F4F3FF",borderColor:"#D4D0FC",color:"var(--ant-color-primary)",fontWeight:500},wt=(re==null?void 0:re.trim())||e("Check this out"),Ct=e(`Hi! I just created a form. Please click the link below and complete this form. 2 {{link}} 3`,{link:ae}),He=R.useMemo(()=>{const c=L?` data-width="${L}"`:"",b=U?` data-height="${U}"`:"";return`<script src="${Oe}" data-payment-form-id="${a}" data-form-url="${Te}"${c}${b}><\/script>`},[Oe,a,Te,L,U]),bt=()=>{se(L),ne(U),Q(!0)},yt=()=>{ce(ee),de(he),Q(!1)},vt=()=>{se(L),ne(U),Q(!1)},Et=()=>{se(null),ne(null)},Ue=()=>{k({form:a,step:"publish_form"}).catch(()=>{})},fe=c=>{const b=window.open(c,"_blank","noopener,noreferrer,width=600,height=600");if(!b&&b!==null){t(e("Popup blocked"),e("Allow popups in your browser to share on social networks"));return}Ue()},St=c=>{const b=encodeURIComponent(ae),B=encodeURIComponent(wt),E=encodeURIComponent(Ct);switch(c){case"facebook":fe(`https://www.facebook.com/sharer/sharer.php?u=${b}"e=${B}`);return;case"linkedin":fe(`https://www.linkedin.com/sharing/share-offsite/?url=${b}`);return;case"whatsapp":fe(`https://wa.me/?text=${E}`);return;case"x":fe(`https://x.com/intent/tweet?text=${E}`);return}},Rt=()=>{var We;const c=(We=h.current)==null?void 0:We.querySelector("canvas");if(!c)return;const b=4,B=10,E=document.createElement("canvas"),D=E.getContext("2d");D&&(E.width=(c.width+B*2)*b,E.height=(c.height+B*2)*b,D.fillStyle="#ffffff",D.fillRect(0,0,E.width,E.height),D.scale(b,b),D.drawImage(c,B,B),E.toBlob(Ve=>{if(!Ve)return;const Ye=URL.createObjectURL(Ve),Ne=document.createElement("a");Ne.download="qr-code.png",Ne.href=Ye,Ne.click(),URL.revokeObjectURL(Ye),s("Success",e("QR Code downloaded!"))}))},Ge=async(c,b)=>{if(!await ls(c)){t(e("Copy failed"),e("Could not copy to clipboard"));return}H(b),setTimeout(()=>{H(B=>B===b?null:B)},1200)},Nt=async()=>{var b,B;const c=ge(M);if(!c){t(e("Invalid ID"),e("Share link id cannot be empty"));return}V(!0);try{const E=await Pe({id:a,slug:c});if(!(E!=null&&E.status)){const D=(B=(b=E==null?void 0:E.errors)==null?void 0:b.slug)==null?void 0:B[0];D?N(D):t(e("Error"),(E==null?void 0:E.message)||e("Failed to save slug"));return}i({slug:c}),S(c),z(!1),s(e("Success"),e("Slug saved successfully"))}catch(E){const D=E;t(e("Error"),(D==null?void 0:D.message)||e("Failed to save slug")),A(G)}finally{V(!1)}},Re=cs("custom_url_slug",()=>{N(null),A(ve?G:Z||ue||ye||G),z(!0)},"Custom slug"),jt=()=>{N(null),A(G),z(!1)},kt=async()=>{V(!0);try{const c=await Pe({id:a,slug:null});if(!(c!=null&&c.status)){const b=(c==null?void 0:c.message)||e("Failed to reset share link");t(e("Error"),b);return}i({slug:null}),A(a),z(!1),s(e("Success"),e("Share link reset to UUID"))}catch(c){const b=c;t(e("Error"),(b==null?void 0:b.message)||e("Failed to reset share link"))}finally{V(!1)}},Mt=async()=>{try{await Ee.mutateAsync(),s(e("Success"),e("Live form cache refreshed"))}catch(c){t(e("Error"),c instanceof Error?c.message:e("Could not refresh the live form."))}};return o.jsx("div",{className:"flex justify-center",children:o.jsxs("div",{className:"flex w-full max-w-3xl flex-col gap-4",children:[l&&o.jsx(ws,{type:"warning",showIcon:!0,title:e("You have unsaved changes"),description:e("Click Save & Preview before sharing this form so your latest updates are published.")}),o.jsx(qt,{className:"w-full",styles:{body:{padding:32}},children:o.jsxs("div",{className:"flex flex-col gap-8",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"mb-2 flex items-center justify-between gap-2",children:[o.jsx("span",{className:"text-sm font-semibold",children:e("Share Link")}),o.jsx(F,{type:"link",href:ae,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 p-0 text-sm font-medium whitespace-nowrap",style:{color:"var(--ant-color-primary)"},onClick:Ue,icon:o.jsx(Kt,{className:"size-4"}),children:e("Open in New Tab")})]}),o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-stretch gap-2",children:[o.jsx("div",{className:"flex-1",children:o.jsx(pe.Item,{className:"mb-0",validateStatus:I?"error":void 0,help:v?I:void 0,children:v?Be?o.jsxs(Cs.Compact,{style:{width:"100%"},children:[o.jsxs("span",{className:"inline-flex h-10 max-w-23 items-center border border-r-0 border-neutral-200 dark:border-neutral-700 bg-neutral-200 dark:bg-neutral-800 px-3 text-neutral-600 dar
3k:text-neutral-400 sm:max-w-47.5",style:I?{borderColor:"var(--ant-color-error)"}:void 0,children:[o.jsx("span",{className:"truncate",children:Be}),o.jsx("span",{className:"shrink-0",children:"/"})]}),o.jsx(xe,{value:M,status:I?"error":void 0,onChange:c=>{N(null),A(qe(c.target.value))},autoFocus:!0,onFocus:c=>c.target.select(),style:{height:40,width:"100%"}})]}):o.jsx(xe,{value:M,status:I?"error":void 0,onChange:c=>{N(null),A(qe(c.target.value))},autoFocus:!0,onFocus:c=>c.target.select(),style:{height:40,width:"100%"}}):o.jsx(xe,{value:ae,readOnly:!0,style:{height:40}})})}),v?o.jsxs(o.Fragment,{children:[o.jsx(X,{title:e("Cancel"),children:o.jsx(F,{icon:o.jsx(_t,{size:16}),className:"w-10 min-w-10",style:{height:40,paddingInline:0},onClick:jt,"aria-label":e("Cancel share link edit")})}),o.jsx(X,{title:e("Apply for custom slug"),children:o.jsx(F,{type:"primary",icon:o.jsx(Zt,{size:16}),loading:W,disabled:W||!pt,style:{height:40},onClick:Nt,children:xt})})]}):o.jsx(X,{title:e(Y==="share"?"Copied":"Copy"),children:o.jsx(F,{icon:Y==="share"?o.jsx(Ke,{size:16}):o.jsx(_e,{size:16}),className:"w-10 min-w-10",style:{height:40,paddingInline:0},onClick:()=>Ge(ae,"share"),"aria-label":e("Copy share link")})}),De?o.jsx(X,{title:Re.entitled?e("Edit Custom Slug"):e("Unlock custom slug"),children:o.jsxs("span",{className:"relative inline-flex",children:[o.jsx(F,{...Re.props,icon:o.jsx(Jt,{size:16}),className:"w-10 min-w-10",style:{height:40,paddingInline:0},"aria-label":e("Edit share link id")}),!Re.entitled&&o.jsx(Ce,{variant:"corner"})]})}):null,De&&Fe?o.jsx(X,{title:e("Reset to UUID format URL"),children:o.jsx(F,{icon:o.jsx(Ze,{size:16}),className:"w-10 min-w-10",loading:W,disabled:W,style:{height:40,paddingInline:0},onClick:kt,"aria-label":e("Reset share link id")})}):null]}
3),me&&!v&&o.jsx("span",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:e("This form is served at your domainâs root, so its link needs no page path.")})]})]}),o.jsxs("div",{children:[o.jsxs("div",{className:"mb-2 flex items-center gap-2 text-sm font-semibold",children:[e("Embed Code"),!g&&o.jsx(Ce,{variant:"inline"})]}),o.jsx(ke,{featureKey:"embed_code",label:"Embedding",className:"w-full items-start",hideBadge:!0,children:o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx("div",{className:"flex flex-col gap-2",children:o.jsxs("div",{className:"flex items-stretch gap-2",children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx(xe,{value:He,readOnly:!0,style:{height:40}})}),o.jsx(X,{title:e(Y==="embed"?"Copied":"Copy"),children:o.jsx(F,{icon:Y==="embed"?o.jsx(Ke,{size:16}):o.jsx(_e,{size:16}),className:"w-10 min-w-10",style:{height:40,paddingInline:0},onClick:()=>Ge(He,"embed"),"aria-label":e("Copy embed code")})}),o.jsx(X,{title:e("Customize embed size"),children:o.jsx(F,{icon:o.jsx(es,{size:16}),className:"w-10 min-w-10",style:{height:40,paddingInline:0,...L||U?{borderColor:"var(--ant-color-primary)",color:"var(--ant-color-primary)"}:{}},onClick:bt,"aria-label":e("Customize embed size")})})]})})})})]}),o.jsx(ts,{title:e("Customize Embed Size"),open:J,onCancel:vt,footer:[o.jsx(F,{icon:o.jsx(Ze,{size:16}),onClick:Et,children:e("Reset")},"reset"),o.jsx(F,{type:"primary",onClick:yt,children:e("Apply")},"apply")],width:ds.md,destroyOnHidden:!0,children:o.jsx(pe,{layout:"vertical",className:"py-4",children:o.jsxs("div",{className:"flex gap-10",children:[o.jsx(pe.Item,{label:e("Width"),className:"flex-1 mb-0",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(et,{min:100,max:9999,value:ee,onChange:c=>se(c),placeholder:e("e.g. 800"),style:{flex:1,height:40}}
3),o.jsx("span",{className:"text-sm text-neutral-600 dark:text-neutral-400 shrink-0",children:"px"})]})}),o.jsx(pe.Item,{label:e("Height"),className:"flex-1 mb-0",children:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(et,{min:100,max:9999,value:he,onChange:c=>ne(c),placeholder:e("e.g. 600"),style:{flex:1,height:40}}),o.jsx("span",{className:"text-sm text-neutral-600 dark:text-neutral-400 shrink-0",children:"px"})]})})]})})}),o.jsx(Ys,{}),o.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[o.jsxs("div",{children:[o.jsx("div",{className:"text-sm font-semibold",children:e("Form cache")}),o.jsx("div",{className:"text-xs text-neutral-600 dark:text-neutral-400",children:e("Refresh if visitors still see an older version of your form.")})]}),o.jsx(X,{title:e("Reloads the latest saved version for visitors. Save your changes before refreshing."),trigger:["hover","focus"],children:o.jsx(F,{icon:o.jsx(ss,{size:16}),loading:Ee.isPending,disabled:Ee.isPending,onClick:Mt,children:e("Refresh form cache")})})]}),o.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[o.jsx("div",{className:"text-sm font-semibold",children:e("Share in Social Media")}),o.jsx("div",{className:"flex flex-wrap gap-2",children:qs.map(c=>o.jsx(X,{title:c.tooltip,children:o.jsx("button",{type:"button","aria-label":e("Share on {{network}}",{network:c.label}),onClick:()=>St(c.key),className:"flex h-9 w-9 items-center justify-center rounded-full border-none outline-hidden transition-opacity hover:opacity-80",style:{background:c.background,cursor:"pointer"},children:c.icon})},c.key))})]}),o.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[o.jsxs("div",{className:"flex items-center gap-2 pt-2 text-sm font-semibold",children:[e("Share via QR Code"),!p&&o.jsx(Ce,{variant:"inline"})]}),o.jsx("div",{className:"flex flex-col items-stretch gap-3 sm:w-80 sm:items-end",children:f?o.jsxs(o.Fragment,{children:[o.jsx("div",{ref:h,className:"self-center",children:o.jsx(Hs,{value:ae,size:180,errorLevel:"H",color:"#000000",bgColor:"#ffffff"})}),o.jsx(F,{type:"primary",icon:o.jsx(ns,{size:16}),onClick:Rt,block:!0,children:e("Download PNG")})]}):o.jsx("div",{className:"self-stretch sm:self-end",children:p?o.jsx(F,{type:"default",onClick:()=>w(!0),block:!0,style:$e,children:e("Generate QR Code")}):o.jsx(ke,{featureKey:"share_qr_code",label:"QR code sharing",className:"w-full",hideBadge:!0,children:o.jsx(F,{type:"default",onClick:()=>w(!0),block:!0,style:$e,children:e("Generate QR Code")})})})})]})]})})]})})}const{Content:st}=ys;function On(){const{id:a}=rs.useParams();return te(s=>s.initialFormSaved)?o.jsx(st,{children:o.jsx(Ks,{formUUID:a})}):o.jsx(st,{children:o.jsx("div",{className:"flex justify-center",children:o.jsx("div",{className:"w-full max-w-3xl",children:o.jsx(os.Input,{active:!0,style:{height:200}})})})})}export{On as component};
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.