From 0e066a1395ca8d072e897de5f8ff83b6932e3c82 Mon Sep 17 00:00:00 2001 From: James Pigott Date: Wed, 5 Jul 2023 09:17:41 +0100 Subject: [PATCH] build prod assets --- resources/dist/build/assets/addon-d503415a.css | 1 + resources/dist/build/assets/addon-d7b6ee05.js | 3 +++ resources/dist/build/manifest.json | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 resources/dist/build/assets/addon-d503415a.css create mode 100644 resources/dist/build/assets/addon-d7b6ee05.js create mode 100644 resources/dist/build/manifest.json diff --git a/resources/dist/build/assets/addon-d503415a.css b/resources/dist/build/assets/addon-d503415a.css new file mode 100644 index 0000000..1bc0bdc --- /dev/null +++ b/resources/dist/build/assets/addon-d503415a.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute}.relative{position:relative}.-right-1\.5{right:-.375rem}.top-\[calc\(50\%-12px\)\]{top:calc(50% - 12px)}.-right-1{right:-.25rem}.col-span-2{grid-column:span 2 / span 2}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.h-6{height:1.5rem}.w-full{width:100%}.w-6{width:1.5rem}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.fill-white{fill:#fff}.p-2{padding:.5rem}.p-1{padding:.25rem}.pr-2{padding-right:.5rem}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.group:hover .group-hover\:fill-gray-200{fill:#e5e7eb} diff --git a/resources/dist/build/assets/addon-d7b6ee05.js b/resources/dist/build/assets/addon-d7b6ee05.js new file mode 100644 index 0000000..f5fe652 --- /dev/null +++ b/resources/dist/build/assets/addon-d7b6ee05.js @@ -0,0 +1,3 @@ +function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:pe}=Object.prototype,{getPrototypeOf:X}=Object,G=(e=>t=>{const n=pe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>G(t)===e),$=e=>t=>typeof t===e,{isArray:x}=Array,T=$("undefined");function Pe(e){return e!==null&&!T(e)&&e.constructor!==null&&!T(e.constructor)&&R(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const me=O("ArrayBuffer");function De(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&me(e.buffer),t}const Be=$("string"),R=$("function"),he=$("number"),Q=e=>e!==null&&typeof e=="object",Ue=e=>e===!0||e===!1,D=e=>{if(G(e)!=="object")return!1;const t=X(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Le=O("Date"),je=O("File"),$e=O("Blob"),Me=O("FileList"),He=e=>Q(e)&&R(e.pipe),Ie=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||pe.call(e)===t||R(e.toString)&&e.toString()===t)},qe=O("URLSearchParams"),ze=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function F(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),x(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ye=typeof self>"u"?typeof global>"u"?globalThis:global:self,be=e=>!T(e)&&e!==ye;function V(){const{caseless:e}=be(this)&&this||{},t={},n=(r,o)=>{const s=e&&_e(t,o)||o;D(t[s])&&D(r)?t[s]=V(t[s],r):D(r)?t[s]=V({},r):x(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(F(t,(o,s)=>{n&&R(o)?e[s]=de(o,n):e[s]=o},{allOwnKeys:r}),e),Ve=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),We=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ke=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&X(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ge=e=>{if(!e)return null;if(x(e))return e;let t=e.length;if(!he(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Qe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&X(Uint8Array)),Ye=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Ze=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},et=O("HTMLFormElement"),tt=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nt=O("RegExp"),we=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};F(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},rt=e=>{we(e,(t,n)=>{if(R(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(R(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},st=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return x(e)?r(e):r(String(e).split(t)),n},ot=()=>{},it=(e,t)=>(e=+e,Number.isFinite(e)?e:t),at=e=>{const t=new Array(10),n=(r,o)=>{if(Q(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=x(r)?[]:{};return F(r,(i,c)=>{const u=n(i,o+1);!T(u)&&(s[c]=u)}),t[o]=void 0,s}}return r};return n(e,0)},a={isArray:x,isArrayBuffer:me,isBuffer:Pe,isFormData:Ie,isArrayBufferView:De,isString:Be,isNumber:he,isBoolean:Ue,isObject:Q,isPlainObject:D,isUndefined:T,isDate:Le,isFile:je,isBlob:$e,isRegExp:nt,isFunction:R,isStream:He,isURLSearchParams:qe,isTypedArray:Qe,isFileList:Me,forEach:F,merge:V,extend:Je,trim:ze,stripBOM:Ve,inherits:We,toFlatObject:Ke,kindOf:G,kindOfTest:O,endsWith:Xe,toArray:Ge,forEachEntry:Ye,matchAll:Ze,isHTMLForm:et,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:we,freezeMethods:rt,toObjectSet:st,toCamelCase:tt,noop:ot,toFiniteNumber:it,findKey:_e,global:ye,isContextDefined:be,toJSONObject:at};function h(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}a.inherits(h,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ge=h.prototype,Ee={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ee[e]={value:e}});Object.defineProperties(h,Ee);Object.defineProperty(ge,"isAxiosError",{value:!0});h.from=(e,t,n,r,o,s)=>{const i=Object.create(ge);return a.toFlatObject(e,i,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),h.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function ct(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lt=typeof self=="object"?self.FormData:window.FormData;const ut=ct(lt);function W(e){return a.isPlainObject(e)||a.isArray(e)}function ve(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function re(e,t,n){return e?e.concat(t).map(function(o,s){return o=ve(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function ft(e){return a.isArray(e)&&!e.some(W)}const dt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function pt(e){return e&&a.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function M(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new(ut||FormData),n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,E){return!a.isUndefined(E[m])});const r=n.metaTokens,o=n.visitor||f,s=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&pt(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(a.isDate(d))return d.toISOString();if(!u&&a.isBlob(d))throw new h("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(d)||a.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,m,E){let w=d;if(d&&!E&&typeof d=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),d=JSON.stringify(d);else if(a.isArray(d)&&ft(d)||a.isFileList(d)||a.endsWith(m,"[]")&&(w=a.toArray(d)))return m=ve(m),w.forEach(function(P,Ne){!(a.isUndefined(P)||P===null)&&t.append(i===!0?re([m],Ne,s):i===null?m:m+"[]",l(P))}),!1}return W(d)?!0:(t.append(re(E,m,s),l(d)),!1)}const p=[],_=Object.assign(dt,{defaultVisitor:f,convertValue:l,isVisitable:W});function y(d,m){if(!a.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(d),a.forEach(d,function(w,A){(!(a.isUndefined(w)||w===null)&&o.call(t,w,a.isString(A)?A.trim():A,m,_))===!0&&y(w,m?m.concat(A):[A])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function se(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Y(e,t){this._pairs=[],e&&M(e,this,t)}const Oe=Y.prototype;Oe.append=function(t,n){this._pairs.push([t,n])};Oe.toString=function(t){const n=t?function(r){return t.call(this,r,se)}:se;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function mt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Se(e,t,n){if(!t)return e;const r=n&&n.encode||mt,o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class ht{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const oe=ht,Re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_t=typeof URLSearchParams<"u"?URLSearchParams:Y,yt=FormData,bt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),wt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),g={isBrowser:!0,classes:{URLSearchParams:_t,FormData:yt,Blob},isStandardBrowserEnv:bt,isStandardBrowserWebWorkerEnv:wt,protocols:["http","https","file","blob","url","data"]};function gt(e,t){return M(e,new g.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return g.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Et(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vt(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,u?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=vt(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Et(r),o,n,0)}),n}return null}const Ot={"Content-Type":void 0};function St(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const H={transitional:Re,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o&&o?JSON.stringify(Ae(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gt(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return M(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),St(t)):t}],transformResponse:[function(t){const n=this.transitional||H.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?h.from(c,h.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g.classes.FormData,Blob:g.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){H.headers[t]={}});a.forEach(["post","put","patch"],function(t){H.headers[t]=a.merge(Ot)});const Z=H,Rt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),At=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Rt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ie=Symbol("internals");function k(e){return e&&String(e).trim().toLowerCase()}function B(e){return e===!1||e==null?e:a.isArray(e)?e.map(B):String(e)}function Ct(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function xt(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function ae(e,t,n,r){if(a.isFunction(r))return r.call(this,t,n);if(a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function kt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Tt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class I{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,u,l){const f=k(u);if(!f)throw new Error("header name must be a non-empty string");const p=a.findKey(o,f);(!p||o[p]===void 0||l===!0||l===void 0&&o[p]!==!1)&&(o[p||u]=B(c))}const i=(c,u)=>a.forEach(c,(l,f)=>s(l,f,u));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!xt(t)?i(At(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=k(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Ct(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=k(t),t){const r=a.findKey(this,t);return!!(r&&(!n||ae(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=k(i),i){const c=a.findKey(r,i);c&&(!n||ae(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=B(o),delete n[s];return}const c=t?kt(s):String(s).trim();c!==s&&delete n[s],n[c]=B(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ie]=this[ie]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=k(i);r[c]||(Tt(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);a.freezeMethods(I.prototype);a.freezeMethods(I);const v=I;function q(e,t){const n=this||Z,r=t||n,o=v.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Ce(e){return!!(e&&e.__CANCEL__)}function N(e,t,n){h.call(this,e??"canceled",h.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(N,h,{__CANCEL__:!0});const Ft=null;function Nt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new h("Request failed with status code "+n.status,[h.ERR_BAD_REQUEST,h.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Pt=g.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,c){const u=[];u.push(n+"="+encodeURIComponent(r)),a.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),a.isString(s)&&u.push("path="+s),a.isString(i)&&u.push("domain="+i),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Dt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function xe(e,t){return e&&!Dt(t)?Bt(e,t):t}const Ut=g.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const c=a.isString(i)?o(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function Lt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),f=r[s];i||(i=l),n[o]=u,r[o]=l;let p=s,_=0;for(;p!==o;)_+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,c=s-n,u=r(c),l=s<=i;n=s;const f={loaded:s,total:i,progress:i?s/i:void 0,bytes:c,rate:u||void 0,estimated:u&&i&&l?(i-s)/u:void 0,event:o};f[t?"download":"upload"]=!0,e(f)}}const $t=typeof XMLHttpRequest<"u",Mt=$t&&function(e){return new Promise(function(n,r){let o=e.data;const s=v.from(e.headers).normalize(),i=e.responseType;let c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}a.isFormData(o)&&(g.isStandardBrowserEnv||g.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(y+":"+d))}const f=xe(e.baseURL,e.url);l.open(e.method.toUpperCase(),Se(f,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const y=v.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:y,config:e,request:l};Nt(function(w){n(w),u()},function(w){r(w),u()},m),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){l&&(r(new h("Request aborted",h.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new h("Network Error",h.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let d=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Re;e.timeoutErrorMessage&&(d=e.timeoutErrorMessage),r(new h(d,m.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,l)),l=null},g.isStandardBrowserEnv){const y=(e.withCredentials||Ut(f))&&e.xsrfCookieName&&Pt.read(e.xsrfCookieName);y&&s.set(e.xsrfHeaderName,y)}o===void 0&&s.setContentType(null),"setRequestHeader"in l&&a.forEach(s.toJSON(),function(d,m){l.setRequestHeader(m,d)}),a.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",ce(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",ce(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=y=>{l&&(r(!y||y.type?new N(null,e,l):y),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const _=Lt(f);if(_&&g.protocols.indexOf(_)===-1){r(new h("Unsupported protocol "+_+":",h.ERR_BAD_REQUEST,e));return}l.send(o||null)})},U={http:Ft,xhr:Mt};a.forEach(U,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ht={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof v?e.toJSON():e;function C(e,t){t=t||{};const n={};function r(l,f,p){return a.isPlainObject(l)&&a.isPlainObject(f)?a.merge.call({caseless:p},l,f):a.isPlainObject(f)?a.merge({},f):a.isArray(f)?f.slice():f}function o(l,f,p){if(a.isUndefined(f)){if(!a.isUndefined(l))return r(void 0,l,p)}else return r(l,f,p)}function s(l,f){if(!a.isUndefined(f))return r(void 0,f)}function i(l,f){if(a.isUndefined(f)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,f)}function c(l,f,p){if(p in t)return r(l,f);if(p in e)return r(void 0,l)}const u={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,f)=>o(ue(l),ue(f),!0)};return a.forEach(Object.keys(e).concat(Object.keys(t)),function(f){const p=u[f]||o,_=p(e[f],t[f],f);a.isUndefined(_)&&p!==c||(n[f]=_)}),n}const ke="1.2.1",ee={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ee[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const fe={};ee.transitional=function(t,n,r){function o(s,i){return"[Axios v"+ke+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new h(o(i," has been removed"+(n?" in "+n:"")),h.ERR_DEPRECATED);return n&&!fe[i]&&(fe[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};function It(e,t,n){if(typeof e!="object")throw new h("options must be an object",h.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],u=c===void 0||i(c,s,e);if(u!==!0)throw new h("option "+s+" must be "+u,h.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new h("Unknown option "+s,h.ERR_BAD_OPTION)}}const K={assertOptions:It,validators:ee},S=K.validators;class j{constructor(t){this.defaults=t,this.interceptors={request:new oe,response:new oe}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=C(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&K.assertOptions(r,{silentJSONParsing:S.transitional(S.boolean),forcedJSONParsing:S.transitional(S.boolean),clarifyTimeoutError:S.transitional(S.boolean)},!1),o!==void 0&&K.assertOptions(o,{encode:S.function,serialize:S.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&a.merge(s.common,s[n.method]),i&&a.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),n.headers=v.concat(i,s);const c=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let f,p=0,_;if(!u){const d=[le.bind(this),void 0];for(d.unshift.apply(d,c),d.push.apply(d,l),_=d.length,f=Promise.resolve(n);p<_;)f=f.then(d[p++],d[p++]);return f}_=c.length;let y=n;for(p=0;p<_;){const d=c[p++],m=c[p++];try{y=d(y)}catch(E){m.call(this,E);break}}try{f=le.call(this,y)}catch(d){return Promise.reject(d)}for(p=0,_=l.length;p<_;)f=f.then(l[p++],l[p++]);return f}getUri(t){t=C(this.defaults,t);const n=xe(t.baseURL,t.url);return Se(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(C(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,c){return this.request(C(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});const L=j;class te{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new N(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new te(function(o){t=o}),cancel:t}}}const qt=te;function zt(e){return function(n){return e.apply(null,n)}}function Jt(e){return a.isObject(e)&&e.isAxiosError===!0}function Te(e){const t=new L(e),n=de(L.prototype.request,t);return a.extend(n,L.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Te(C(e,o))},n}const b=Te(Z);b.Axios=L;b.CanceledError=N;b.CancelToken=qt;b.isCancel=Ce;b.VERSION=ke;b.toFormData=M;b.AxiosError=h;b.Cancel=b.CanceledError;b.all=function(t){return Promise.all(t)};b.spread=zt;b.isAxiosError=Jt;b.mergeConfig=C;b.AxiosHeaders=v;b.formToJSON=e=>Ae(a.isHTMLForm(e)?new FormData(e):e);b.default=b;const J=b;function Fe(e,t,n,r,o,s,i,c){var u=typeof e=="function"?e.options:e;t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s);var l;if(i?(l=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),o&&o.call(this,_),_&&_._registeredComponents&&_._registeredComponents.add(i)},u._ssrRegister=l):o&&(l=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(y,d){return l.call(d),f(y,d)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:u}}const Vt={props:["form","form_fields","meta"],data(){return{convertkit_fields:[{value:"form",label:"Form"},{value:"email",label:"Email"},{value:"tags",label:"Tags"},{value:"first_name",label:"First Name"},{value:"custom_field",label:"Custom Field"}],mappedFields:[{label:"Form",convertkit_name:"form",can_remove:!1,form_field:null,custom_value:null},{label:"Email",convertkit_name:"email",can_remove:!1,form_field:null,custom_value:null}],forms:[],tags:[],custom_fields:[]}},methods:{addField(){this.mappedFields.push({label:null,convertkit_name:null,can_remove:!0,form_field:null,custom_value:null,selected_tags:[]})},removeField(e){this.mappedFields.splice(e,1)},update(){this.$emit("mappingUpdated",this.mappedFields)},getForms(){this.forms.length||J.get(cp_url("/convertkit/get-forms")).then(e=>{this.forms=e.data}).catch(e=>{console.error(e)})},getTags(){this.tags.length||J.get(cp_url("/convertkit/get-tags")).then(e=>{this.tags=e.data}).catch(e=>{console.error(e)})},getCustomFields(){this.custom_fields.length||J.get(cp_url("/convertkit/get-custom-fields")).then(e=>{this.custom_fields=e.data}).catch(e=>{console.error(e)})},getPlaceholder(e){return __("convertkit::settings.field_mapping.custom_value")}},mounted(){var e;(e=this.form)!=null&&e.mappings&&(this.mappedFields=this.form.mappings),this.getForms(),this.getTags(),this.getCustomFields()}};var Wt=function(){var t=this,n=t._self._c;return n("div",{staticClass:"border rounded-lg p-2 shadow-sm"},[t._v(" "+t._s(t.__("convertkit::settings.field_mapping.form_title",{name:t.form.label}))+" "),n("div",{staticClass:"flex flex-col items-start"},[t._l(t.mappedFields,function(r,o){return n("div",{key:o,staticClass:"w-full border p-1 my-1 rounded-lg relative grid grid-cols-2 gap-2 pr-2"},[n("div",{staticClass:"w-full"},[n("label",{domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.convertkit_field"))}}),n("select",{directives:[{name:"model",rawName:"v-model",value:r.convertkit_name,expression:"field.convertkit_name"}],staticClass:"input-text",attrs:{disabled:!r.can_remove,required:""},on:{input:t.update,change:function(s){var i=Array.prototype.filter.call(s.target.options,function(c){return c.selected}).map(function(c){var u="_value"in c?c._value:c.value;return u});t.$set(r,"convertkit_name",s.target.multiple?i:i[0])}}},t._l(t.convertkit_fields,function(s,i){return n("option",{key:i,domProps:{value:s.value,textContent:t._s(s.label)}})}),0)]),n("div",{staticClass:"w-full"},[n("label",{domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.form_field"))}}),r.convertkit_name!="form"?n("select",{directives:[{name:"model",rawName:"v-model",value:r.form_field,expression:"field.form_field"}],staticClass:"input-text",attrs:{required:""},on:{input:t.update,change:function(s){var i=Array.prototype.filter.call(s.target.options,function(c){return c.selected}).map(function(c){var u="_value"in c?c._value:c.value;return u});t.$set(r,"form_field",s.target.multiple?i:i[0])}}},[t._l(t.form_fields,function(s,i){return n("option",{key:i,domProps:{value:s.handle,textContent:t._s(s.display)}})}),n("option",{attrs:{value:"custom_value"},domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.custom_value"))}}),n("option",{attrs:{value:"HTTP_REFERER"},domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.http_referer"))}})],2):n("select",{directives:[{name:"model",rawName:"v-model",value:r.form_field,expression:"field.form_field"}],staticClass:"input-text",attrs:{required:""},on:{input:t.update,change:function(s){var i=Array.prototype.filter.call(s.target.options,function(c){return c.selected}).map(function(c){var u="_value"in c?c._value:c.value;return u});t.$set(r,"form_field",s.target.multiple?i:i[0])}}},t._l(t.forms,function(s){return n("option",{key:s.id,domProps:{value:s.id,textContent:t._s(s.name)}})}),0)]),r.convertkit_name=="custom_field"?n("div",{staticClass:"w-full"},[n("label",{domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.custom_field_key"))}}),n("select",{directives:[{name:"model",rawName:"v-model",value:r.custom_key,expression:"field.custom_key"}],staticClass:"input-text",attrs:{required:""},on:{input:t.update,change:function(s){var i=Array.prototype.filter.call(s.target.options,function(c){return c.selected}).map(function(c){var u="_value"in c?c._value:c.value;return u});t.$set(r,"custom_key",s.target.multiple?i:i[0])}}},t._l(t.custom_fields,function(s){return n("option",{key:s.id,domProps:{value:s.key,textContent:t._s(s.name)}})}),0)]):t._e(),r.form_field=="custom_value"&&r.convertkit_name!="tags"?n("div",{staticClass:"w-full",class:{"col-span-2":r.convertkit_name!="custom_field"}},[n("label",{domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.custom_value"))}}),n("text-input",{attrs:{placeholder:t.getPlaceholder(r)},model:{value:r.custom_value,callback:function(s){t.$set(r,"custom_value",s)},expression:"field.custom_value"}})],1):t._e(),r.convertkit_name=="tags"&&r.form_field=="custom_value"?n("div",{staticClass:"w-full col-span-2"},t._l(t.tags,function(s){return n("label",{key:s.id},[n("input",{directives:[{name:"model",rawName:"v-model",value:r.selected_tags,expression:"field.selected_tags"}],attrs:{type:"checkbox",id:s.id},domProps:{value:s.id,checked:Array.isArray(r.selected_tags)?t._i(r.selected_tags,s.id)>-1:r.selected_tags},on:{change:function(i){var c=r.selected_tags,u=i.target,l=!!u.checked;if(Array.isArray(c)){var f=s.id,p=t._i(c,f);u.checked?p<0&&t.$set(r,"selected_tags",c.concat([f])):p>-1&&t.$set(r,"selected_tags",c.slice(0,p).concat(c.slice(p+1)))}else t.$set(r,"selected_tags",l)}}}),t._v(" "+t._s(s.name)+" ")])}),0):t._e(),r.can_remove?n("button",{staticClass:"absolute -right-1.5 top-[calc(50%-12px)] group",attrs:{"aria-label":"Remove Field"},on:{click:function(s){return t.removeField(o)}}},[n("svg",{staticClass:"fill-white w-6 h-6 text-gray-700 group-hover:fill-gray-200 transition-all",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"}},[n("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e()])}),n("button",{staticClass:"btn inline-block ml-auto mr-0",domProps:{textContent:t._s(t.__("convertkit::settings.field_mapping.add_field"))},on:{click:t.addField}})],2)])},Kt=[],Xt=Fe(Vt,Wt,Kt,!1,null,null,null,null);const Gt=Xt.exports,Qt={mixins:[Fieldtype],components:{FieldMapping:Gt},data(){return{input:{selectedForms:[]}}},methods:{handleFormSelection(e){if(e.target.checked)this.input.selectedForms.push(this.meta.forms[e.target.value]);else{let t=this.input.selectedForms.findIndex(n=>n.value===e.target.value);this.input.selectedForms.splice(t,1)}this.update(this.input)},handleUpdatedMapping(e,t){t.mappings=e,this.update(this.input)}},mounted(){var e;(e=this.value)!=null&&e.selectedForms&&this.value.selectedForms.forEach(t=>{this.input.selectedForms.push(t)})}};var Yt=function(){var t=this,n=t._self._c;return n("div",[n("div",t._l(t.meta.forms,function(r){return n("label",{key:r.value},[n("input",{directives:[{name:"model",rawName:"v-model",value:r.checked,expression:"form.checked"}],attrs:{type:"checkbox"},domProps:{value:r.value,checked:Array.isArray(r.checked)?t._i(r.checked,r.value)>-1:r.checked},on:{change:[function(o){var s=r.checked,i=o.target,c=!!i.checked;if(Array.isArray(s)){var u=r.value,l=t._i(s,u);i.checked?l<0&&t.$set(r,"checked",s.concat([u])):l>-1&&t.$set(r,"checked",s.slice(0,l).concat(s.slice(l+1)))}else t.$set(r,"checked",c)},t.handleFormSelection]}}),t._v(" "+t._s(r.label)+" ")])}),0),t.input.selectedForms.length?n("div",{staticClass:"field-inner mt-2"},[n("div",{staticClass:"flex flex-col gap-2"},t._l(t.input.selectedForms,function(r){return n("field-mapping",{key:r.value,attrs:{form:r,form_fields:t.meta.forms[r.value].fields,meta:t.meta},on:{mappingUpdated:function(o){return t.handleUpdatedMapping(o,r)}}})}),1)]):t._e()])},Zt=[],en=Fe(Qt,Yt,Zt,!1,null,null,null,null);const tn=en.exports;Statamic.booting(()=>{Statamic.component("form_mapping-fieldtype",tn)}); diff --git a/resources/dist/build/manifest.json b/resources/dist/build/manifest.json new file mode 100644 index 0000000..9093602 --- /dev/null +++ b/resources/dist/build/manifest.json @@ -0,0 +1,12 @@ +{ + "resources/css/addon.css": { + "file": "assets/addon-d503415a.css", + "isEntry": true, + "src": "resources/css/addon.css" + }, + "resources/js/addon.js": { + "file": "assets/addon-d7b6ee05.js", + "isEntry": true, + "src": "resources/js/addon.js" + } +} \ No newline at end of file