let n=document.createElement("style");n.innerHTML="",document.head.appendChild(n);import{S as a,i as t,s,c as e,a as l,m as o,A as p,K as c,t as i,b as r,d as u,j as d,p as m,q as f,E as k,F as $,o as g,D as b,B as h,w as v,C as x,G as E,g as w,h as y,k as D,l as F,n as I,N as _,y as U,x as T,r as A,I as j,a0 as L,M as S,Y as C,J as P,H as R,Z as M,a1 as B,Q as N,_ as H,aa as V}from"./index.cb5ffa4a.js";import{S as G}from"./SkeletonText.28989bc7.js";import{a as O}from"./Button.f57ba194.js";import"./index.61886bfd.js";import{W as q,a as J,C as K,P as Q}from"./Preview.59330697.js";import"./ChevronDown16.515e09a9.js";import{C as W}from"./Close16.33f0ea2b.js";import{L as Y}from"./Loading.18e5cce5.js";import"./Column.33835c60.js";import"./Content.d0dcc478.js";import"./store.27d206a7.js";function Z(n){let a,t;const s=[{description:n[1]},n[3],{small:!0},{withOverlay:!1}];let d={};for(let n=0;n{b=null}),$());const e=10&s?p(h,[2&s&&{"aria-label":n[1]},2&s&&{title:n[1]},h[2],8&s&&c(n[3])]):{};t.$set(e)},i(n){s||(i(b),i(t.$$.fragment,n),s=!0)},o(n){r(b),r(t.$$.fragment,n),s=!1},d(n){b&&b.d(n),n&&g(a),u(t,n)}}}function X(n){let a,t;return a=new q({props:{class:"bx--file-invalid"}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function nn(n){let a,t;const s=[{"aria-label":n[1]},{title:n[1]},{class:"bx--file-complete"},n[3]];let d={};for(let n=0;n{l=null}),$()),"edit"===n[0]?o?(o.p(n,e),1&e&&i(o,1)):(o=z(n),o.c(),i(o,1),o.m(t.parentNode,t)):o&&(k(),r(o,1,1,()=>{o=null}),$()),"complete"===n[0]?p?(p.p(n,e),1&e&&i(p,1)):(p=nn(n),p.c(),i(p,1),p.m(s.parentNode,s)):p&&(k(),r(p,1,1,()=>{p=null}),$())},i(n){e||(i(l),i(o),i(p),e=!0)},o(n){r(l),r(o),r(p),e=!1},d(n){l&&l.d(n),n&&g(a),o&&o.d(n),n&&g(t),p&&p.d(n),n&&g(s)}}}function tn(n,a,t){const s=["status","iconDescription","invalid"];let e=h(a,s),{status:l="uploading"}=a,{iconDescription:o=""}=a,{invalid:p=!1}=a;return n.$$set=n=>{a=v(v({},a),x(n)),t(3,e=h(a,s)),"status"in n&&t(0,l=n.status),"iconDescription"in n&&t(1,o=n.iconDescription),"invalid"in n&&t(2,p=n.invalid)},[l,o,p,e,function(a){E(n,a)},function(a){E(n,a)}]}class sn extends a{constructor(n){super(),t(this,n,tn,an,s,{status:0,iconDescription:1,invalid:2})}}function en(n){let a,t,s,e,l,o,c,i,r,u=[{type:"file"},{tabindex:"-1"},{accept:n[2]},{disabled:n[4]},{id:n[9]},{multiple:n[3]},{name:n[10]},n[11]],k={};for(let n=0;n{n.value=null};function on(n,a,t){const s=["accept","multiple","disabled","disableLabelChanges","kind","labelText","role","tabindex","id","name","ref"];let e=h(a,s),{accept:l=[]}=a,{multiple:o=!1}=a,{disabled:p=!1}=a,{disableLabelChanges:c=!1}=a,{kind:i="primary"}=a,{labelText:r="Add file"}=a,{role:u="button"}=a,{tabindex:d="0"}=a,{id:m="ccs-"+Math.random().toString(36)}=a,{name:f=""}=a,{ref:k=null}=a;return n.$$set=n=>{a=v(v({},a),x(n)),t(11,e=h(a,s)),"accept"in n&&t(2,l=n.accept),"multiple"in n&&t(3,o=n.multiple),"disabled"in n&&t(4,p=n.disabled),"disableLabelChanges"in n&&t(5,c=n.disableLabelChanges),"kind"in n&&t(6,i=n.kind),"labelText"in n&&t(0,r=n.labelText),"role"in n&&t(7,u=n.role),"tabindex"in n&&t(8,d=n.tabindex),"id"in n&&t(9,m=n.id),"name"in n&&t(10,f=n.name),"ref"in n&&t(1,k=n.ref)},[r,k,l,o,p,c,i,u,d,m,f,e,function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},({key:n})=>{" "!==n&&"Enter"!==n||k.click()},function(n){R[n?"unshift":"push"](()=>{k=n,t(1,k)})},({target:n})=>{const a=n.files,s=a.length;a&&!c&&t(0,r=s>1?s+" files":a[0].name)}]}class pn extends a{constructor(n){super(),t(this,n,on,en,s,{accept:2,multiple:3,disabled:4,disableLabelChanges:5,kind:6,labelText:0,role:7,tabindex:8,id:9,name:10,ref:1})}}function cn(n,a,t){const s=n.slice();return s[9]=a[t],s[25]=t,s}function rn(n,a){let t,s,p,c,k,$,b,h,v=a[9]+"";return $=new sn({props:{iconDescription:a[8],status:a[1]}}),$.$on("keydown",a[18]),$.$on("keydown",(function(...n){return a[19](a[25],...n)})),$.$on("click",a[20]),$.$on("click",(function(...n){return a[21](a[25],...n)})),{key:n,first:null,c(){t=w("span"),s=w("p"),p=y(v),c=d(),k=w("span"),e($.$$.fragment),b=d(),this.h()},l(n){t=D(n,"SPAN",{});var a=F(t);s=D(a,"P",{});var e=F(s);p=I(e,v),e.forEach(g),c=m(a),k=D(a,"SPAN",{});var o=F(k);l($.$$.fragment,o),o.forEach(g),b=m(a),a.forEach(g),this.h()},h(){U(s,"bx--file-filename",!0),U(k,"bx--file__state-container",!0),U(t,"bx--file__selected-file",!0),this.first=t},m(n,a){f(n,t,a),A(t,s),A(s,p),A(t,c),A(t,k),o($,k,null),A(t,b),h=!0},p(n,t){a=n,(!h||1&t)&&v!==(v=a[9]+"")&&S(p,v);const s={};256&t&&(s.iconDescription=a[8]),2&t&&(s.status=a[1]),$.$set(s)},i(n){h||(i($.$$.fragment,n),h=!0)},o(n){r($.$$.fragment,n),h=!1},d(n){n&&g(t),u($)}}}function un(n){let a,t,s,c,b,h,x,E,_,L,C,R,B,N=[],V=new Map;E=new pn({props:{disableLabelChanges:!0,labelText:n[7],accept:n[2],name:n[9],multiple:n[3],kind:n[6]}}),E.$on("change",n[16]),E.$on("change",n[17]);let G=n[0];const O=n=>n[9];for(let a=0;a{p.length>$.length?k("add",p):k("remove",$.filter(n=>!p.includes(n))),$=[...p]});let $;return n.$$set=n=>{a=v(v({},a),x(n)),t(10,e=h(a,s)),"status"in n&&t(1,l=n.status),"accept"in n&&t(2,o=n.accept),"files"in n&&t(0,p=n.files),"multiple"in n&&t(3,c=n.multiple),"labelDescription"in n&&t(4,i=n.labelDescription),"labelTitle"in n&&t(5,r=n.labelTitle),"kind"in n&&t(6,u=n.kind),"buttonLabel"in n&&t(7,d=n.buttonLabel),"iconDescription"in n&&t(8,m=n.iconDescription),"name"in n&&t(9,f=n.name)},$=[],[p,l,o,c,i,r,u,d,m,f,e,()=>{t(0,p=[])},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},({target:n})=>{t(0,p=[...n.files].map(({name:n})=>n))},function(a){E(n,a)},(n,{key:a})=>{" "!==a&&"Enter"!==a||t(0,p=p.filter((a,t)=>t!==n))},function(a){E(n,a)},n=>{t(0,p=p.filter((a,t)=>t!==n))}]}class mn extends a{constructor(n){super(),t(this,n,dn,un,s,{status:1,accept:2,files:0,multiple:3,clearFiles:11,labelDescription:4,labelTitle:5,kind:6,buttonLabel:7,iconDescription:8,name:9})}get clearFiles(){return this.$$.ctx[11]}}function fn(n){let a,t,s,e,l=n[4]&&kn(n);return{c(){a=w("div"),t=w("div"),s=y(n[3]),e=d(),l&&l.c(),this.h()},l(o){a=D(o,"DIV",{});var p=F(a);t=D(p,"DIV",{});var c=F(t);s=I(c,n[3]),c.forEach(g),e=m(p),l&&l.l(p),p.forEach(g),this.h()},h(){U(t,"bx--form-requirement__title",!0),U(a,"bx--form-requirement",!0)},m(n,o){f(n,a,o),A(a,t),A(t,s),A(a,e),l&&l.m(a,null)},p(n,t){8&t&&S(s,n[3]),n[4]?l?l.p(n,t):(l=kn(n),l.c(),l.m(a,null)):l&&(l.d(1),l=null)},d(n){n&&g(a),l&&l.d()}}}function kn(n){let a,t;return{c(){a=w("p"),t=y(n[4]),this.h()},l(s){a=D(s,"P",{});var e=F(a);t=I(e,n[4]),e.forEach(g),this.h()},h(){U(a,"bx--form-requirement__supplement",!0)},m(n,s){f(n,a,s),A(a,t)},p(n,a){16&a&&S(t,n[4])},d(n){n&&g(a)}}}function $n(n){let a,t,s,c,k,$,b,h,x,E;$=new sn({props:{iconDescription:n[1],status:n[0],invalid:n[2]}}),$.$on("keydown",n[12]),$.$on("click",n[13]);let _=n[2]&&n[3]&&fn(n),L=[{id:n[5]},n[8]],C={};for(let n=0;n{a=v(v({},a),x(n)),t(8,e=h(a,s)),"status"in n&&t(0,l=n.status),"iconDescription"in n&&t(1,o=n.iconDescription),"invalid"in n&&t(2,p=n.invalid),"errorSubject"in n&&t(3,c=n.errorSubject),"errorBody"in n&&t(4,i=n.errorBody),"id"in n&&t(5,r=n.id),"name"in n&&t(6,u=n.name)},[l,o,p,c,i,r,u,d,e,function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},({key:n})=>{" "!==n&&"Enter"!==n||d("delete",r)},()=>{d("delete",r)}]}class bn extends a{constructor(n){super(),t(this,n,gn,$n,s,{status:0,iconDescription:1,invalid:2,errorSubject:3,errorBody:4,id:5,name:6})}}function hn(n){let a,t,s,e,l,o,c,i,r=[n[12]],u={};for(let n=0;n{n.value=null};function xn(n,a,t){const s=["accept","multiple","validateFiles","labelText","role","disabled","tabindex","id","name","ref"];let e=h(a,s),{accept:l=[]}=a,{multiple:o=!1}=a,{validateFiles:p=(n=>n)}=a,{labelText:c="Add file"}=a,{role:i="button"}=a,{disabled:r=!1}=a,{tabindex:u="0"}=a,{id:d="ccs-"+Math.random().toString(36)}=a,{name:m=""}=a,{ref:f=null}=a;const k=B();let $;return n.$$set=n=>{a=v(v({},a),x(n)),t(12,e=h(a,s)),"accept"in n&&t(1,l=n.accept),"multiple"in n&&t(2,o=n.multiple),"validateFiles"in n&&t(3,p=n.validateFiles),"labelText"in n&&t(4,c=n.labelText),"role"in n&&t(5,i=n.role),"disabled"in n&&t(6,r=n.disabled),"tabindex"in n&&t(7,u=n.tabindex),"id"in n&&t(8,d=n.id),"name"in n&&t(9,m=n.name),"ref"in n&&t(0,f=n.ref)},t(10,$=!1),[f,l,o,p,c,i,r,u,d,m,$,k,e,function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(n){R[n?"unshift":"push"](()=>{f=n,t(0,f)})},({target:n})=>{k("add",p(n.files))},({key:n})=>{" "!==n&&"Enter"!==n||f.click()},({dataTransfer:n})=>{r||(t(10,$=!0),n.dropEffect="copy")},({dataTransfer:n})=>{r||(t(10,$=!1),n.dropEffect="move")},({dataTransfer:n})=>{r||(t(10,$=!1),k("add",p(n.files)))}]}class En extends a{constructor(n){super(),t(this,n,xn,hn,s,{accept:1,multiple:2,validateFiles:3,labelText:4,role:5,disabled:6,tabindex:7,id:8,name:9,ref:0})}}function wn(n){let a,t,s,c,k,$,b,h,x;t=new G({props:{heading:!0,width:"100px"}}),c=new G({props:{width:"225px",class:"bx--label-description"}}),$=new O({});let E=[n[0]],y={};for(let n=0;n{a=v(v({},a),x(n)),t(0,e=h(a,s))},[e,function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)},function(a){E(n,a)}]}class Dn extends a{constructor(n){super(),t(this,n,yn,wn,s,{})}}function Fn(n){let a,t;return a=new pn({props:{labelText:"Add files"}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},p:C,i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function In(n){let a,t;return a=new mn({props:{multiple:!0,labelTitle:"Upload files",buttonLabel:"Add files",labelDescription:"Only JPEG files are accepted.",accept:[".jpg",".jpeg"],status:"complete"}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},p:C,i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function _n(n){let a,t;return a=new bn({props:{name:"README.md",status:"uploading"}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},p:C,i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function Un(n){let a,t;return a=new bn({props:{name:"README.md",status:"complete"}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},p:C,i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function Tn(n){let a,t;return a=new bn({props:{invalid:!0,name:"README.md",status:"edit"}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},p:C,i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function An(n){let a,t;return a=new En({props:{labelText:"Drag and drop files here or click to upload",multiple:!0}}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},p:C,i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function jn(n){let a,t;return a=new Dn({}),{c(){e(a.$$.fragment)},l(n){l(a.$$.fragment,n)},m(n,s){o(a,n,s),t=!0},i(n){t||(i(a.$$.fragment,n),t=!0)},o(n){r(a.$$.fragment,n),t=!1},d(n){u(a,n)}}}function Ln(n){let a,t,s,e,l,o,p,c,i,r,u,k,$,b,h,v,x,E,U,T,j,L,S,C,P,R,M,B,N,H,V,G,O,q;return{c(){a=w("div"),t=w("ul"),s=w("li"),e=w("a"),l=y("Usage"),o=d(),p=w("ul"),c=w("li"),i=w("a"),r=y("File uploader (button-only)"),u=d(),k=w("li"),$=w("a"),b=y("File uploader"),h=d(),v=w("li"),x=w("a"),E=y("Item (uploading)"),U=d(),T=w("li"),j=w("a"),L=y("Item (complete)"),S=d(),C=w("li"),P=w("a"),R=y("Item (invalid)"),M=d(),B=w("li"),N=w("a"),H=y("Drop container"),V=d(),G=w("li"),O=w("a"),q=y("Skeleton"),this.h()},l(n){a=D(n,"DIV",{slot:!0});var d=F(a);t=D(d,"UL",{class:!0});var f=F(t);s=D(f,"LI",{class:!0});var w=F(s);e=D(w,"A",{class:!0,href:!0});var y=F(e);l=I(y,"Usage"),y.forEach(g),o=m(w),p=D(w,"UL",{class:!0});var _=F(p);c=D(_,"LI",{class:!0});var A=F(c);i=D(A,"A",{class:!0,href:!0});var J=F(i);r=I(J,"File uploader (button-only)"),J.forEach(g),A.forEach(g),u=m(_),k=D(_,"LI",{class:!0});var K=F(k);$=D(K,"A",{class:!0,href:!0});var Q=F($);b=I(Q,"File uploader"),Q.forEach(g),K.forEach(g),h=m(_),v=D(_,"LI",{class:!0});var W=F(v);x=D(W,"A",{class:!0,href:!0});var Y=F(x);E=I(Y,"Item (uploading)"),Y.forEach(g),W.forEach(g),U=m(_),T=D(_,"LI",{class:!0});var Z=F(T);j=D(Z,"A",{class:!0,href:!0});var z=F(j);L=I(z,"Item (complete)"),z.forEach(g),Z.forEach(g),S=m(_),C=D(_,"LI",{class:!0});var X=F(C);P=D(X,"A",{class:!0,href:!0});var nn=F(P);R=I(nn,"Item (invalid)"),nn.forEach(g),X.forEach(g),M=m(_),B=D(_,"LI",{class:!0});var an=F(B);N=D(an,"A",{class:!0,href:!0});var tn=F(N);H=I(tn,"Drop container"),tn.forEach(g),an.forEach(g),V=m(_),G=D(_,"LI",{class:!0});var sn=F(G);O=D(sn,"A",{class:!0,href:!0});var en=F(O);q=I(en,"Skeleton"),en.forEach(g),sn.forEach(g),_.forEach(g),w.forEach(g),f.forEach(g),d.forEach(g),this.h()},h(){_(e,"class","bx--link"),_(e,"href","#usage"),_(i,"class","bx--link"),_(i,"href","#file-uploader-button-only"),_(c,"class","bx--list__item"),_($,"class","bx--link"),_($,"href","#file-uploader"),_(k,"class","bx--list__item"),_(x,"class","bx--link"),_(x,"href","#item-uploading"),_(v,"class","bx--list__item"),_(j,"class","bx--link"),_(j,"href","#item-complete"),_(T,"class","bx--list__item"),_(P,"class","bx--link"),_(P,"href","#item-invalid"),_(C,"class","bx--list__item"),_(N,"class","bx--link"),_(N,"href","#drop-container"),_(B,"class","bx--list__item"),_(O,"class","bx--link"),_(O,"href","#skeleton"),_(G,"class","bx--list__item"),_(p,"class","bx--list--unordered bx--list--nested"),_(s,"class","bx--list__item"),_(t,"class","bx--list--unordered"),_(a,"slot","aside")},m(n,d){f(n,a,d),A(a,t),A(t,s),A(s,e),A(e,l),A(s,o),A(s,p),A(p,c),A(c,i),A(i,r),A(p,u),A(p,k),A(k,$),A($,b),A(p,h),A(p,v),A(v,x),A(x,E),A(p,U),A(p,T),A(T,j),A(j,L),A(p,S),A(p,C),A(C,P),A(P,R),A(p,M),A(p,B),A(B,N),A(N,H),A(p,V),A(p,G),A(G,O),A(O,q)},d(n){n&&g(a)}}}function Sn(n){let a,t,s,p,c,k,$,b,h,v,x,E,U,T,j,L,S,C,P,R,M,B,N,H,V,G,O,q,J,K,W,Y,Z,z,X,nn;return p=new Q({props:{codeRaw:'