var d=Object.defineProperty;var c=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var f=(e,t,a)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,i=(e,t)=>{for(var a in t||(t={}))m.call(t,a)&&f(e,a,t[a]);if(c)for(var a of c(t))u.call(t,a)&&f(e,a,t[a]);return e};import"./main-40.js";const h=(e,t,a,s,o,l,r)=>{console.log({allIntegURL:a});const n=[...e];if(r)n[l]=i(i({},e[l]),s),n.push({editItegration:!0}),t([...n]),o(a),console.log(a);else{const p=[...n];p.push(s),p.push({newItegration:!0}),t(p),o(a)}},w=e=>{const t={},a=window.location.href,s=window.opener.location.href,o=a.replace(`${s}/redirect`,"").split("&");o&&o.forEach(l=>{const r=l.split("=");r[1]&&(t[r[0]]=r[1])}),localStorage.setItem(`__bitforms_${e}`,JSON.stringify(t)),window.close()},_=(e,t,a,s,o)=>{const l=i({},t);o?s?l.relatedlists[o-1].upload_field_map.splice(e,0,{}):l.relatedlists[o-1].field_map.splice(e,0,{}):s?l.upload_field_map.splice(e,0,{}):l.field_map.splice(e,0,{}),a(i({},l))},v=(e,t,a,s,o)=>{const l=i({},t);o?s?l.relatedlists[o-1].upload_field_map.length>1&&l.relatedlists[o-1].upload_field_map.splice(e,1):l.relatedlists[o-1].field_map.length>1&&l.relatedlists[o-1].field_map.splice(e,1):s?l.upload_field_map.length>1&&l.upload_field_map.splice(e,1):l.field_map.length>1&&l.field_map.splice(e,1),a(i({},l))},x=(e,t,a,s,o,l)=>{const r=i({},a);l?o?r.relatedlists[l-1].upload_field_map[t][e.target.name]=e.target.value:r.relatedlists[l-1].field_map[t][e.target.name]=e.target.value:o?r.upload_field_map[t][e.target.name]=e.target.value:r.field_map[t][e.target.name]=e.target.value,e.target.value==="custom"&&(l?r.relatedlists[l-1].field_map[t].customValue="":r.field_map[t].customValue=""),s(i({},r))},y=(e,t,a,s,o)=>{const l=i({},a);o?l.relatedlists[o-1].field_map[t].customValue=e.target.value:l.field_map[t].customValue=e.target.value,s(i({},l))},k={integWrp:{mt:8,dy:"flex",ai:"start",flxp:1,gap:"10px"},availablePayment:{mt:8},itegCard:{w:240,b:"2px solid #e3eff8 ",brs:13,p:8,pn:"relative",tn:"border .2s, transform .2s",":hover":{bcr:"var(--blue)","& .action-wrp":{dy:"inline-block!important"}},":focus-within":{tm:"translateY(-3px)",bcr:"var(--blue)","& .action-wrp":{dy:"inline-block!important"}},mnh:145,mr:20},integPlus:{flx:"center",curp:1,h:125,cr:"var(--b-49-79)",":hover":{cr:"var(--blue)"}},integLogo:{w:80,h:80,b:"1px solid #e3eff8",brs:8,p:5},integTitle:{fs:15,dy:"block",fw:500,cr:"var(--dp-blue)",m:0,":hover":{cr:"var(--blue)"},":focus-visible":{focusOutline:1}},integSubtitle:{fs:12,cr:"var(--b-11-50)",dy:"inline-block",mb:5},actionWrp:{pn:"absolute",tp:5,rt:5,p:5,dy:"none"},actionBtn:{se:30,flxi:"center",b:"none",brs:"50%",p:5,curp:1,bd:"none",cr:"var(--blue)",oe:"none",":hover":{bd:"var(--b-49-91)"},":focus-visible":{focusOutline:1}},thumb:{w:120,h:150,brs:12,flxi:"center",fd:"column",b:"2px solid #e3eff8",ow:"hidden",m:10,tn:"border .2s, transform .2s",curp:1,pn:"relative",":hover":{tm:"translateY(-2px)",bcr:"var(--blue)","& .action-wrp":{dy:"inline-block!important"}},":focus-within":{tm:"translateY(-2px)",bcr:"var(--blue)","& .action-wrp":{dy:"inline-block!important"}}},thumbTitle:{bd:"hsl(240deg 85% 97%)",w:"105%",py:5,fs:12,ta:"center"},thumbImg:{mxw:"100px !important",mxh:"100px !important",m:"auto",p:12},thumbPro:{w:"100%",h:"100%",pn:"absolute",brs:10,bd:"#001e3850",flx:"center",fr:"drop-shadow(0 2px 1px black)"},thumbProTxt:{fs:14,fw:500,cr:"var(--white)",ta:"center",":hover":{textDecoration:"underline",cr:"hsl(214deg 100% 88%)"}},integCardDisabled:{pe:"none",us:"none","&>img":{fr:"grayscale(1) !important"},"&::before":{flx:"center",bd:"var(--b-63-18-67)",pn:"absolute",zx:9,ct:"Comming Soon",fs:12,fw:500,ts:"0px 0px 4px va(--black-0)",w:"100%",h:"100%"}}};export{k as a,h as b,y as c,_ as d,v as e,x as h,w as s};
