@paperless/core 3.26.3 → 3.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/{p-1f450945.js → p-2aa8ae3e.js} +1 -1
- package/dist/build/p-62feca51.entry.js +1 -0
- package/dist/build/p-73102cbf.entry.js +1 -0
- package/dist/build/p-BM1GAQNk.js +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/create-in-memory-file-DbvbYIM5.js +11 -0
- package/dist/cjs/p-attachment.cjs.entry.js +15 -10
- package/dist/cjs/p-dropzone.cjs.entry.js +11 -6
- package/dist/collection/components/molecules/attachment/attachment.component.js +15 -11
- package/dist/collection/components/molecules/dropzone/dropzone.component.js +11 -7
- package/dist/collection/utils/create-in-memory-file.js +7 -0
- package/dist/components/p-BM1GAQNk.js +1 -0
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-dropzone.js +1 -1
- package/dist/esm/create-in-memory-file-BM1GAQNk.js +9 -0
- package/dist/esm/p-attachment.entry.js +15 -10
- package/dist/esm/p-dropzone.entry.js +11 -6
- package/dist/index.html +1 -1
- package/dist/paperless/p-62feca51.entry.js +1 -0
- package/dist/paperless/p-73102cbf.entry.js +1 -0
- package/dist/paperless/p-BM1GAQNk.js +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/utils/create-in-memory-file.d.ts +1 -0
- package/hydrate/index.js +31 -16
- package/hydrate/index.mjs +31 -16
- package/package.json +1 -1
- package/dist/build/p-56ceed87.entry.js +0 -1
- package/dist/build/p-8ae7f9fd.entry.js +0 -1
- package/dist/paperless/p-56ceed87.entry.js +0 -1
- package/dist/paperless/p-8ae7f9fd.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createInMemoryFile: (file: File) => Promise<File>;
|
package/hydrate/index.js
CHANGED
|
@@ -8797,6 +8797,7 @@ const isApple = () => {
|
|
|
8797
8797
|
const os = getOS();
|
|
8798
8798
|
return os === 'MacOS' || os === 'iOS';
|
|
8799
8799
|
};
|
|
8800
|
+
const isIOS = () => getOS() === 'iOS';
|
|
8800
8801
|
|
|
8801
8802
|
var bundleCjs = {};
|
|
8802
8803
|
|
|
@@ -11713,6 +11714,14 @@ class Accordion {
|
|
|
11713
11714
|
}; }
|
|
11714
11715
|
}
|
|
11715
11716
|
|
|
11717
|
+
const createInMemoryFile = async (file) => {
|
|
11718
|
+
const buffer = await file.arrayBuffer();
|
|
11719
|
+
return new File([buffer], file.name, {
|
|
11720
|
+
type: file.type,
|
|
11721
|
+
lastModified: file.lastModified,
|
|
11722
|
+
});
|
|
11723
|
+
};
|
|
11724
|
+
|
|
11716
11725
|
const attachmentComponentCss = () => `.block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
11717
11726
|
|
|
11718
11727
|
const attachment = cva([
|
|
@@ -11821,27 +11830,27 @@ class Attachment {
|
|
|
11821
11830
|
_fileRef;
|
|
11822
11831
|
_cameraFileRef;
|
|
11823
11832
|
render() {
|
|
11824
|
-
let prefix = (hAsync("p-icon", { key: '
|
|
11833
|
+
let prefix = (hAsync("p-icon", { key: '10285d486437ba3870cdd91296faf9fb7002f2d3', class: 'text-storm-300', variant: 'attachment' }));
|
|
11825
11834
|
if (this.error) {
|
|
11826
|
-
prefix = (hAsync("p-icon", { key: '
|
|
11835
|
+
prefix = (hAsync("p-icon", { key: 'be603b213dd89ba91ddca27948c30ef5690c6dae', class: 'text-negative-red-500', variant: 'warning' }));
|
|
11827
11836
|
}
|
|
11828
11837
|
const isTouch = isTouchDevice();
|
|
11829
11838
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
11830
|
-
return (hAsync(Fragment, { key: '
|
|
11839
|
+
return (hAsync(Fragment, { key: '6d8dfa9032c3ebf5d3d0896da0193a9f191b9d3d' }, hAsync("p-field-container", { key: '231515bc76104edda85c9aadbb05c2fd14efddaf', error: this.error, forceShowTooltip: !!this.error?.length, helper: this.helper, label: this.label, required: this.required, variant: 'write' }, hAsync("div", { key: '97ce8501f82dee2068f7b6596634a60d953a0926', class: 'flex w-full items-start gap-2', slot: 'content' }, hAsync("div", { key: '585a50f0970829d43c910def5f192acf9cdc8806', class: attachment({
|
|
11831
11840
|
click: this.mode === 'write' && !this.value?.length,
|
|
11832
11841
|
error: !!this.error?.length,
|
|
11833
|
-
}), onClick: () => this._uploadClick() }, prefix, hAsync("span", { key: '
|
|
11842
|
+
}), onClick: () => this._uploadClick() }, prefix, hAsync("span", { key: 'ac3500a4d59adcfc647aa2bbf9aa061ec515f668', class: cn(baseText, `
|
|
11834
11843
|
peer
|
|
11835
11844
|
empty:hidden
|
|
11836
11845
|
dark:text-white
|
|
11837
|
-
`) }, this.value), hAsync("span", { key: '
|
|
11846
|
+
`) }, this.value), hAsync("span", { key: '83974418061f528c5b345d781a4c880a8d895945', class: cn(baseText, `
|
|
11838
11847
|
hidden
|
|
11839
11848
|
peer-empty:block
|
|
11840
|
-
`) }, this.placeholder)), hAsync("p-tooltip", { key: '
|
|
11849
|
+
`) }, this.placeholder)), hAsync("p-tooltip", { key: 'c7a26d0b30414ce214ef662f73977397abfe5100', class: 'w-8', content: this.mode === 'read'
|
|
11841
11850
|
? this.downloadTooltip
|
|
11842
11851
|
: this.value?.length
|
|
11843
11852
|
? this.deleteTooltip
|
|
11844
|
-
: this.uploadTooltip }, hAsync("p-button", { key: '
|
|
11853
|
+
: this.uploadTooltip }, hAsync("p-button", { key: 'd416923d8256a0e63ceb03fa5e2c4ac252d84853', disabled: this.loading, icon: this.mode === 'read'
|
|
11845
11854
|
? 'download'
|
|
11846
11855
|
: this.value?.length
|
|
11847
11856
|
? 'trash'
|
|
@@ -11852,7 +11861,7 @@ class Attachment {
|
|
|
11852
11861
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
11853
11862
|
this.mode === 'write' &&
|
|
11854
11863
|
isTouch &&
|
|
11855
|
-
!this.value?.length && (hAsync("p-tooltip", { key: '
|
|
11864
|
+
!this.value?.length && (hAsync("p-tooltip", { key: 'db24edf1d1a355f264fa2bb8987d50f25f89cf74', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, hAsync("p-button", { key: '4d2c3cf22bb3c6d51ee08870ca7ebb11a89e68ab', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '758601a857f1469833affb3754ce0ed37dcc8859', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), hAsync("input", { key: '503dfee74980663694fd69c51ab225ddd02064db', accept: 'image/*', capture: 'true', class: 'hidden', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
11856
11865
|
}
|
|
11857
11866
|
_uploadClick() {
|
|
11858
11867
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -11869,7 +11878,7 @@ class Attachment {
|
|
|
11869
11878
|
}
|
|
11870
11879
|
this._cameraFileRef?.click();
|
|
11871
11880
|
}
|
|
11872
|
-
_onFileChange(ev) {
|
|
11881
|
+
async _onFileChange(ev) {
|
|
11873
11882
|
const target = ev.target;
|
|
11874
11883
|
const file = target.files?.[0];
|
|
11875
11884
|
if (file) {
|
|
@@ -11879,7 +11888,10 @@ class Attachment {
|
|
|
11879
11888
|
reader.readAsDataURL(file);
|
|
11880
11889
|
}
|
|
11881
11890
|
}
|
|
11882
|
-
_onLoad(file, result) {
|
|
11891
|
+
async _onLoad(file, result) {
|
|
11892
|
+
if (isIOS()) {
|
|
11893
|
+
file = await createInMemoryFile(file);
|
|
11894
|
+
}
|
|
11883
11895
|
this.upload.emit({
|
|
11884
11896
|
fileId: this.fileId,
|
|
11885
11897
|
result,
|
|
@@ -95337,20 +95349,20 @@ class Dropzone {
|
|
|
95337
95349
|
}
|
|
95338
95350
|
render() {
|
|
95339
95351
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
95340
|
-
return (hAsync(ThemedHost, { key: '
|
|
95352
|
+
return (hAsync(ThemedHost, { key: 'c6f88f85d81564f5b7ccf1975459438661af7609' }, hAsync("div", { key: '11f20ce6fcd35a6345c5155795b55c18e5c3cac9', class: dropzone({
|
|
95341
95353
|
isOver: this._isOver,
|
|
95342
95354
|
uploaded: this.uploaded,
|
|
95343
|
-
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '
|
|
95355
|
+
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: 'd918748e6844067135182c910cafe8fb3e587aca', class: cn(`
|
|
95344
95356
|
group-hover/dropzone:text-indigo-900
|
|
95345
95357
|
dark:group-hover/dropzone:text-indigo-700
|
|
95346
95358
|
`, {
|
|
95347
95359
|
'text-positive-green-800': this.uploaded,
|
|
95348
95360
|
'text-storm-300 dark:text-hurricane-200': !this._isOver && !this.uploaded,
|
|
95349
95361
|
'text-indigo-900 dark:text-indigo-700': this._isOver,
|
|
95350
|
-
}), variant: this.icon })), this.loading && hAsync("p-loader", { key: '
|
|
95362
|
+
}), variant: this.icon })), this.loading && hAsync("p-loader", { key: 'd4dcb00af7b74f03b4f0978f6bba148b580538eb' }), hasContent && (hAsync("p", { key: '75cad556940a980662c3e34387731230d1a70394', class: cn('m-0 p-0 text-lg font-bold', {
|
|
95351
95363
|
'dark:text-white': !this.uploaded || this._isOver,
|
|
95352
95364
|
'text-storm-500': this.uploaded && !this._isOver,
|
|
95353
|
-
}) }, hAsync("slot", { key: '
|
|
95365
|
+
}) }, hAsync("slot", { key: 'e9ef30d5b51c35916ab37b9205fdc908f1b8c55e' }))), this.uploaded && !this._isOver && (hAsync("div", { key: '978618ceb4aaf7f77f57ec15e34a5a22e0f8095d', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'b3c3c6512aa60a3ceeb06dcaaaaf5336d899e032', variant: 'check-circle' }), hAsync("span", { key: '1ca309ed4b3f26fbd15f97458322b8e238f5f0fa', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: '8849ffd2f74bc18ce78c87321e169ce59d2269b6', class: cn([
|
|
95354
95366
|
'flex flex-col text-center',
|
|
95355
95367
|
'group-hover/dropzone:opacity-50',
|
|
95356
95368
|
`
|
|
@@ -95359,7 +95371,7 @@ class Dropzone {
|
|
|
95359
95371
|
`,
|
|
95360
95372
|
], {
|
|
95361
95373
|
'opacity-50': this._isOver,
|
|
95362
|
-
}) }, hAsync("span", { key: '
|
|
95374
|
+
}) }, hAsync("span", { key: '7f40836b007ec452f712a8f023d0a62f63525071', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: '05f29c41557b567aefb4ae821d8fc8ae48d1b0ff', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: '40455d1a8ac6e7c233ff096cad44a6d479af48e7', accept: this.acceptGroup == 'any' ? '' : 'image/*', class: 'hidden', multiple: this.allowMultiple === true ? true : undefined, ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
95363
95375
|
}
|
|
95364
95376
|
onDrop(ev) {
|
|
95365
95377
|
const files = this._getFiles(ev);
|
|
@@ -95431,7 +95443,10 @@ class Dropzone {
|
|
|
95431
95443
|
reader.addEventListener('load', (e) => this._onLoad(file, e?.currentTarget?.result));
|
|
95432
95444
|
reader.readAsDataURL(file);
|
|
95433
95445
|
}
|
|
95434
|
-
_onLoad(file, result) {
|
|
95446
|
+
async _onLoad(file, result) {
|
|
95447
|
+
if (isIOS()) {
|
|
95448
|
+
file = await createInMemoryFile(file);
|
|
95449
|
+
}
|
|
95435
95450
|
this._results.push({
|
|
95436
95451
|
file,
|
|
95437
95452
|
result,
|
package/hydrate/index.mjs
CHANGED
|
@@ -8795,6 +8795,7 @@ const isApple = () => {
|
|
|
8795
8795
|
const os = getOS();
|
|
8796
8796
|
return os === 'MacOS' || os === 'iOS';
|
|
8797
8797
|
};
|
|
8798
|
+
const isIOS = () => getOS() === 'iOS';
|
|
8798
8799
|
|
|
8799
8800
|
var bundleCjs = {};
|
|
8800
8801
|
|
|
@@ -11711,6 +11712,14 @@ class Accordion {
|
|
|
11711
11712
|
}; }
|
|
11712
11713
|
}
|
|
11713
11714
|
|
|
11715
|
+
const createInMemoryFile = async (file) => {
|
|
11716
|
+
const buffer = await file.arrayBuffer();
|
|
11717
|
+
return new File([buffer], file.name, {
|
|
11718
|
+
type: file.type,
|
|
11719
|
+
lastModified: file.lastModified,
|
|
11720
|
+
});
|
|
11721
|
+
};
|
|
11722
|
+
|
|
11714
11723
|
const attachmentComponentCss = () => `.block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}`;
|
|
11715
11724
|
|
|
11716
11725
|
const attachment = cva([
|
|
@@ -11819,27 +11828,27 @@ class Attachment {
|
|
|
11819
11828
|
_fileRef;
|
|
11820
11829
|
_cameraFileRef;
|
|
11821
11830
|
render() {
|
|
11822
|
-
let prefix = (hAsync("p-icon", { key: '
|
|
11831
|
+
let prefix = (hAsync("p-icon", { key: '10285d486437ba3870cdd91296faf9fb7002f2d3', class: 'text-storm-300', variant: 'attachment' }));
|
|
11823
11832
|
if (this.error) {
|
|
11824
|
-
prefix = (hAsync("p-icon", { key: '
|
|
11833
|
+
prefix = (hAsync("p-icon", { key: 'be603b213dd89ba91ddca27948c30ef5690c6dae', class: 'text-negative-red-500', variant: 'warning' }));
|
|
11825
11834
|
}
|
|
11826
11835
|
const isTouch = isTouchDevice();
|
|
11827
11836
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
11828
|
-
return (hAsync(Fragment, { key: '
|
|
11837
|
+
return (hAsync(Fragment, { key: '6d8dfa9032c3ebf5d3d0896da0193a9f191b9d3d' }, hAsync("p-field-container", { key: '231515bc76104edda85c9aadbb05c2fd14efddaf', error: this.error, forceShowTooltip: !!this.error?.length, helper: this.helper, label: this.label, required: this.required, variant: 'write' }, hAsync("div", { key: '97ce8501f82dee2068f7b6596634a60d953a0926', class: 'flex w-full items-start gap-2', slot: 'content' }, hAsync("div", { key: '585a50f0970829d43c910def5f192acf9cdc8806', class: attachment({
|
|
11829
11838
|
click: this.mode === 'write' && !this.value?.length,
|
|
11830
11839
|
error: !!this.error?.length,
|
|
11831
|
-
}), onClick: () => this._uploadClick() }, prefix, hAsync("span", { key: '
|
|
11840
|
+
}), onClick: () => this._uploadClick() }, prefix, hAsync("span", { key: 'ac3500a4d59adcfc647aa2bbf9aa061ec515f668', class: cn(baseText, `
|
|
11832
11841
|
peer
|
|
11833
11842
|
empty:hidden
|
|
11834
11843
|
dark:text-white
|
|
11835
|
-
`) }, this.value), hAsync("span", { key: '
|
|
11844
|
+
`) }, this.value), hAsync("span", { key: '83974418061f528c5b345d781a4c880a8d895945', class: cn(baseText, `
|
|
11836
11845
|
hidden
|
|
11837
11846
|
peer-empty:block
|
|
11838
|
-
`) }, this.placeholder)), hAsync("p-tooltip", { key: '
|
|
11847
|
+
`) }, this.placeholder)), hAsync("p-tooltip", { key: 'c7a26d0b30414ce214ef662f73977397abfe5100', class: 'w-8', content: this.mode === 'read'
|
|
11839
11848
|
? this.downloadTooltip
|
|
11840
11849
|
: this.value?.length
|
|
11841
11850
|
? this.deleteTooltip
|
|
11842
|
-
: this.uploadTooltip }, hAsync("p-button", { key: '
|
|
11851
|
+
: this.uploadTooltip }, hAsync("p-button", { key: 'd416923d8256a0e63ceb03fa5e2c4ac252d84853', disabled: this.loading, icon: this.mode === 'read'
|
|
11843
11852
|
? 'download'
|
|
11844
11853
|
: this.value?.length
|
|
11845
11854
|
? 'trash'
|
|
@@ -11850,7 +11859,7 @@ class Attachment {
|
|
|
11850
11859
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
11851
11860
|
this.mode === 'write' &&
|
|
11852
11861
|
isTouch &&
|
|
11853
|
-
!this.value?.length && (hAsync("p-tooltip", { key: '
|
|
11862
|
+
!this.value?.length && (hAsync("p-tooltip", { key: 'db24edf1d1a355f264fa2bb8987d50f25f89cf74', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, hAsync("p-button", { key: '4d2c3cf22bb3c6d51ee08870ca7ebb11a89e68ab', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '758601a857f1469833affb3754ce0ed37dcc8859', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), hAsync("input", { key: '503dfee74980663694fd69c51ab225ddd02064db', accept: 'image/*', capture: 'true', class: 'hidden', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
11854
11863
|
}
|
|
11855
11864
|
_uploadClick() {
|
|
11856
11865
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -11867,7 +11876,7 @@ class Attachment {
|
|
|
11867
11876
|
}
|
|
11868
11877
|
this._cameraFileRef?.click();
|
|
11869
11878
|
}
|
|
11870
|
-
_onFileChange(ev) {
|
|
11879
|
+
async _onFileChange(ev) {
|
|
11871
11880
|
const target = ev.target;
|
|
11872
11881
|
const file = target.files?.[0];
|
|
11873
11882
|
if (file) {
|
|
@@ -11877,7 +11886,10 @@ class Attachment {
|
|
|
11877
11886
|
reader.readAsDataURL(file);
|
|
11878
11887
|
}
|
|
11879
11888
|
}
|
|
11880
|
-
_onLoad(file, result) {
|
|
11889
|
+
async _onLoad(file, result) {
|
|
11890
|
+
if (isIOS()) {
|
|
11891
|
+
file = await createInMemoryFile(file);
|
|
11892
|
+
}
|
|
11881
11893
|
this.upload.emit({
|
|
11882
11894
|
fileId: this.fileId,
|
|
11883
11895
|
result,
|
|
@@ -95335,20 +95347,20 @@ class Dropzone {
|
|
|
95335
95347
|
}
|
|
95336
95348
|
render() {
|
|
95337
95349
|
const hasContent = this._el.innerHTML?.length > 0;
|
|
95338
|
-
return (hAsync(ThemedHost, { key: '
|
|
95350
|
+
return (hAsync(ThemedHost, { key: 'c6f88f85d81564f5b7ccf1975459438661af7609' }, hAsync("div", { key: '11f20ce6fcd35a6345c5155795b55c18e5c3cac9', class: dropzone({
|
|
95339
95351
|
isOver: this._isOver,
|
|
95340
95352
|
uploaded: this.uploaded,
|
|
95341
|
-
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: '
|
|
95353
|
+
}), onClick: () => this._uploadClick() }, !this.loading && this.showIcon && (hAsync("p-icon", { key: 'd918748e6844067135182c910cafe8fb3e587aca', class: cn(`
|
|
95342
95354
|
group-hover/dropzone:text-indigo-900
|
|
95343
95355
|
dark:group-hover/dropzone:text-indigo-700
|
|
95344
95356
|
`, {
|
|
95345
95357
|
'text-positive-green-800': this.uploaded,
|
|
95346
95358
|
'text-storm-300 dark:text-hurricane-200': !this._isOver && !this.uploaded,
|
|
95347
95359
|
'text-indigo-900 dark:text-indigo-700': this._isOver,
|
|
95348
|
-
}), variant: this.icon })), this.loading && hAsync("p-loader", { key: '
|
|
95360
|
+
}), variant: this.icon })), this.loading && hAsync("p-loader", { key: 'd4dcb00af7b74f03b4f0978f6bba148b580538eb' }), hasContent && (hAsync("p", { key: '75cad556940a980662c3e34387731230d1a70394', class: cn('m-0 p-0 text-lg font-bold', {
|
|
95349
95361
|
'dark:text-white': !this.uploaded || this._isOver,
|
|
95350
95362
|
'text-storm-500': this.uploaded && !this._isOver,
|
|
95351
|
-
}) }, hAsync("slot", { key: '
|
|
95363
|
+
}) }, hAsync("slot", { key: 'e9ef30d5b51c35916ab37b9205fdc908f1b8c55e' }))), this.uploaded && !this._isOver && (hAsync("div", { key: '978618ceb4aaf7f77f57ec15e34a5a22e0f8095d', class: 'flex items-center gap-2 text-positive-green-800' }, hAsync("p-icon", { key: 'b3c3c6512aa60a3ceeb06dcaaaaf5336d899e032', variant: 'check-circle' }), hAsync("span", { key: '1ca309ed4b3f26fbd15f97458322b8e238f5f0fa', class: 'font-medium' }, this.addedString))), (!this.uploaded || this._isOver) && (hAsync("div", { key: '8849ffd2f74bc18ce78c87321e169ce59d2269b6', class: cn([
|
|
95352
95364
|
'flex flex-col text-center',
|
|
95353
95365
|
'group-hover/dropzone:opacity-50',
|
|
95354
95366
|
`
|
|
@@ -95357,7 +95369,7 @@ class Dropzone {
|
|
|
95357
95369
|
`,
|
|
95358
95370
|
], {
|
|
95359
95371
|
'opacity-50': this._isOver,
|
|
95360
|
-
}) }, hAsync("span", { key: '
|
|
95372
|
+
}) }, hAsync("span", { key: '7f40836b007ec452f712a8f023d0a62f63525071', class: 'font-medium' }, this.dragFileString), hAsync("span", { key: '05f29c41557b567aefb4ae821d8fc8ae48d1b0ff', class: 'font-normal' }, this.orClickString)))), hAsync("input", { key: '40455d1a8ac6e7c233ff096cad44a6d479af48e7', accept: this.acceptGroup == 'any' ? '' : 'image/*', class: 'hidden', multiple: this.allowMultiple === true ? true : undefined, ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
95361
95373
|
}
|
|
95362
95374
|
onDrop(ev) {
|
|
95363
95375
|
const files = this._getFiles(ev);
|
|
@@ -95429,7 +95441,10 @@ class Dropzone {
|
|
|
95429
95441
|
reader.addEventListener('load', (e) => this._onLoad(file, e?.currentTarget?.result));
|
|
95430
95442
|
reader.readAsDataURL(file);
|
|
95431
95443
|
}
|
|
95432
|
-
_onLoad(file, result) {
|
|
95444
|
+
async _onLoad(file, result) {
|
|
95445
|
+
if (isIOS()) {
|
|
95446
|
+
file = await createInMemoryFile(file);
|
|
95447
|
+
}
|
|
95433
95448
|
this._results.push({
|
|
95434
95449
|
file,
|
|
95435
95450
|
result,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,a as e,d as r,h as o}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as d}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const h=a(["group/dropzone","flex h-inherit w-full flex-col items-center justify-center gap-2","cursor-pointer","rounded-lg","border","p-4"],{variants:{uploaded:{false:"border-dashed",true:"border-solid"},isOver:{true:["border-dashed","border-indigo-500 bg-indigo-50","dark:border-indigo-700 dark:bg-indigo-700/10"],false:""}},compoundVariants:[{uploaded:!0,isOver:!1,class:["border-solid border-positive-green-500 bg-positive-green-50"]},{uploaded:!1,isOver:!1,class:["border-white-800 bg-white-600","hover:border-indigo-500 hover:bg-indigo-50","\n dark:border-white/10 dark:bg-white/5\n dark:hover:border-indigo-700 dark:hover:bg-indigo-700/10\n "]}]}),c=class{constructor(r){t(this,r),this.upload=e(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;addedString="Toegevoegd";dragFileString="Sleep je bestand hierheen";orClickString="of klik om te uploaden";upload;get _el(){return r(this)}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=t=>t.preventDefault();componentWillRender(){if(!this._isOver&&this._documentBlocked)return document.removeEventListener("drop",this._preventDefault),document.removeEventListener("dragover",this._preventDefault),void(this._documentBlocked=!1);this._isOver&&(document.addEventListener("drop",this._preventDefault),document.addEventListener("dragover",this._preventDefault),this._documentBlocked=!0)}render(){const t=this._el.innerHTML?.length>0;return o(d,{key:"7c1db4cb49b8699a6aa11ffb0b6fe4d496dabee2"},o("div",{key:"a059feda628b54161629ea0e05dbbfb0fa8e4aba",class:h({isOver:this._isOver,uploaded:this.uploaded}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&o("p-icon",{key:"79d280c89d5274171ba689463491ab9386712353",class:i("\n group-hover/dropzone:text-indigo-900\n dark:group-hover/dropzone:text-indigo-700\n ",{"text-positive-green-800":this.uploaded,"text-storm-300 dark:text-hurricane-200":!this._isOver&&!this.uploaded,"text-indigo-900 dark:text-indigo-700":this._isOver}),variant:this.icon}),this.loading&&o("p-loader",{key:"7c28c02bada55efe9d2045b3a42a7c3c2139ee76"}),t&&o("p",{key:"78208423e2b95c23a5303f8fca3300e06b5b4d86",class:i("m-0 p-0 text-lg font-bold",{"dark:text-white":!this.uploaded||this._isOver,"text-storm-500":this.uploaded&&!this._isOver})},o("slot",{key:"c0656e295223d620af579278f1c763eb7f368acf"})),this.uploaded&&!this._isOver&&o("div",{key:"e5ebd90b568883a025118f3df155188b21f1f67e",class:"flex items-center gap-2 text-positive-green-800"},o("p-icon",{key:"782fc223bd7de1a5d2e7e78bce753e32160fb477",variant:"check-circle"}),o("span",{key:"063369d8309f4d992b53d8db3165d4f9ed663992",class:"font-medium"},this.addedString)),(!this.uploaded||this._isOver)&&o("div",{key:"c05af902cc62cfdbb7feea9de5aabf567c6d22f5",class:i(["flex flex-col text-center","group-hover/dropzone:opacity-50","\n text-storm-300\n dark:text-hurricane-300\n "],{"opacity-50":this._isOver})},o("span",{key:"c9ec4e45968281ce5c2033264ff7c972b25bd799",class:"font-medium"},this.dragFileString),o("span",{key:"bc2aac22c381cdb7d5cbfaa42627f57d08cab115",class:"font-normal"},this.orClickString))),o("input",{key:"d7569817461cc246b0d17e9f8cf238ea169ad436",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:t=>this._fileRef=t,type:"file",onChange:t=>this._onFileChange(t)}))}onDrop(t){const e=this._getFiles(t);e?.length&&(this._isOver=!1,this._processFiles(e))}onDragOver(t){this._isFilesEvent(t)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(t){return!!t.dataTransfer&&0!==[...t.dataTransfer.items].filter((t=>"file"===t.kind)).length}_getFiles(t){if(!this._isFilesEvent(t))return;const e=t.dataTransfer?.files??[];return 0!==e.length?[...e]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(t){const e=t.target;if(!e.files)return;const r=[...e.files];r?.length&&this._processFiles(r)}_processFiles(t){this._results=[],this.allowMultiple||(t=[t[0]]),this._filesToProcess=t.length;for(const e of t)this._processFile(e)}_processFile(t){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(t,e?.currentTarget?.result))),e.readAsDataURL(t)}_onLoad(t,e){if(this._results.push({file:t,result:e}),this._results?.length<this._filesToProcess)return;const r={fileId:this.fileId,results:this._results};1!==this._results.length&&this.allowMultiple||(r.file=this._results[0].file,r.result=this._results[0].result),this.upload.emit(r),this._fileRef&&(this._fileRef.value=""),this.loading=!1}};c.style="*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.flex{display:flex}.hidden{display:none}.h-inherit{height:inherit}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-positive-green-500{--tw-border-opacity:1;border-color:rgb(92 195 14/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-indigo-700{--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:border-indigo-500:hover{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:opacity-50{opacity:.5}.dark\\:border-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-indigo-700:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:border-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-indigo-700:hover:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}";export{c as p_dropzone}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,a as t,h as r,F as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{e as o}from"./p-CWO2YJCh.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const s=i(["flex flex-1 items-center justify-start gap-2","h-8 min-w-0 rounded-lg px-2","border border-solid","bg-white-600 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"],{variants:{click:{false:null,true:"cursor-pointer"},error:{false:"\n border-storm-100\n dark:border-white/15\n ",true:"\n border-negative-red-500\n dark:border-negative-red-alternative\n "}}}),h=class{constructor(r){e(this,r),this.upload=t(this,"upload",3),this.download=t(this,"download",3),this.delete=t(this,"delete",3)}enableCameraOnMobile=!1;value;fileId;accept=null;label;helper;required=!0;mode="read";placeholder="Upload a file...";cameraTooltip="Camera";downloadTooltip="Download";uploadTooltip="Upload";deleteTooltip="Delete";loading=!1;error;upload;download;delete;_fileRef;_cameraFileRef;render(){let e=r("p-icon",{key:"92543de0489a337c848126766f819db2fd41d71a",class:"text-storm-300",variant:"attachment"});this.error&&(e=r("p-icon",{key:"054ab596512483fadb5ef423d3af05a1245a7897",class:"text-negative-red-500",variant:"warning"}));const t=o(),i="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm";return r(a,{key:"dfc02ee49966fa6009702b16c5e5ec70d881cf75"},r("p-field-container",{key:"5f68f5218a1ee05b02a3744a9189c42ec4bd6d9e",error:this.error,forceShowTooltip:!!this.error?.length,helper:this.helper,label:this.label,required:this.required,variant:"write"},r("div",{key:"959c70c73218f0c2b07b6645f2fcfe8b1ce9224d",class:"flex w-full items-start gap-2",slot:"content"},r("div",{key:"e6d80d5d7d14d0acedb3d957e19032bf27c9b375",class:s({click:"write"===this.mode&&!this.value?.length,error:!!this.error?.length}),onClick:()=>this._uploadClick()},e,r("span",{key:"7e7f35e5e13a026f75771dde94cbdc55b4fc3739",class:d(i,"\n peer\n empty:hidden\n dark:text-white\n ")},this.value),r("span",{key:"74f7181ec319d38f6bf3a9ba55b8a506a80be964",class:d(i,"\n hidden\n peer-empty:block\n ")},this.placeholder)),r("p-tooltip",{key:"ea7aba4d71cf0843b31b2a7b777de62ed2e1a313",class:"w-8",content:"read"===this.mode?this.downloadTooltip:this.value?.length?this.deleteTooltip:this.uploadTooltip},r("p-button",{key:"f581f7d0988cc99b0c6697778592b90c9191dc1a",disabled:this.loading,icon:"read"===this.mode?"download":this.value?.length?"trash":"upload",iconOnly:!0,loading:this.loading,slot:"trigger",variant:"secondary",onOnClick:()=>"write"!==this.mode||this.value?.length?("read"===this.mode?this.download:this.delete).emit():this._uploadClick()})),this.enableCameraOnMobile&&"write"===this.mode&&t&&!this.value?.length&&r("p-tooltip",{key:"c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7",class:"\n w-8\n desktop-xs:hidden\n ",content:this.cameraTooltip},r("p-button",{key:"fb5e43cbd06718b6169648b248195b0530a886fb",icon:"camera",iconOnly:!0,slot:"trigger",variant:"secondary",onOnClick:()=>this._cameraClick()})))),r("input",{key:"ccd2a070b8d0cc7f829b806265a9fd12250953a4",accept:Array.isArray(this.accept)?this.accept?.join(","):this.accept,class:"hidden",ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}),r("input",{key:"915a250d2be98c55bf180ac7eb79038d7001b006",accept:"image/*",capture:"true",class:"hidden",ref:e=>this._cameraFileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}_uploadClick(){this._fileRef&&"write"===this.mode&&!this.value?.length&&this._fileRef.click()}_cameraClick(){this.enableCameraOnMobile&&o()&&this._cameraFileRef&&"write"===this.mode&&this._cameraFileRef?.click()}_onFileChange(e){const t=e.target,r=t.files?.[0];if(r){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(r,e?.currentTarget?.result))),e.readAsDataURL(r)}}_onLoad(e,t){this.upload.emit({fileId:this.fileId,result:t,file:e}),this._fileRef&&(this._fileRef.value=""),this._cameraFileRef&&(this._cameraFileRef.value=""),this.loading=!1}};h.style=".block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{h as p_attachment}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,a as e,d as r,h as o}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as d}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const h=a(["group/dropzone","flex h-inherit w-full flex-col items-center justify-center gap-2","cursor-pointer","rounded-lg","border","p-4"],{variants:{uploaded:{false:"border-dashed",true:"border-solid"},isOver:{true:["border-dashed","border-indigo-500 bg-indigo-50","dark:border-indigo-700 dark:bg-indigo-700/10"],false:""}},compoundVariants:[{uploaded:!0,isOver:!1,class:["border-solid border-positive-green-500 bg-positive-green-50"]},{uploaded:!1,isOver:!1,class:["border-white-800 bg-white-600","hover:border-indigo-500 hover:bg-indigo-50","\n dark:border-white/10 dark:bg-white/5\n dark:hover:border-indigo-700 dark:hover:bg-indigo-700/10\n "]}]}),c=class{constructor(r){t(this,r),this.upload=e(this,"upload",3)}icon="file-export";showIcon=!0;acceptGroup="any";fileId;loading=!1;allowMultiple=!0;uploaded=!1;addedString="Toegevoegd";dragFileString="Sleep je bestand hierheen";orClickString="of klik om te uploaden";upload;get _el(){return r(this)}_isOver=!1;_fileRef;_filesToProcess=0;_results=[];_documentBlocked=!1;_preventDefault=t=>t.preventDefault();componentWillRender(){if(!this._isOver&&this._documentBlocked)return document.removeEventListener("drop",this._preventDefault),document.removeEventListener("dragover",this._preventDefault),void(this._documentBlocked=!1);this._isOver&&(document.addEventListener("drop",this._preventDefault),document.addEventListener("dragover",this._preventDefault),this._documentBlocked=!0)}render(){const t=this._el.innerHTML?.length>0;return o(d,{key:"7c1db4cb49b8699a6aa11ffb0b6fe4d496dabee2"},o("div",{key:"a059feda628b54161629ea0e05dbbfb0fa8e4aba",class:h({isOver:this._isOver,uploaded:this.uploaded}),onClick:()=>this._uploadClick()},!this.loading&&this.showIcon&&o("p-icon",{key:"79d280c89d5274171ba689463491ab9386712353",class:i("\n group-hover/dropzone:text-indigo-900\n dark:group-hover/dropzone:text-indigo-700\n ",{"text-positive-green-800":this.uploaded,"text-storm-300 dark:text-hurricane-200":!this._isOver&&!this.uploaded,"text-indigo-900 dark:text-indigo-700":this._isOver}),variant:this.icon}),this.loading&&o("p-loader",{key:"7c28c02bada55efe9d2045b3a42a7c3c2139ee76"}),t&&o("p",{key:"78208423e2b95c23a5303f8fca3300e06b5b4d86",class:i("m-0 p-0 text-lg font-bold",{"dark:text-white":!this.uploaded||this._isOver,"text-storm-500":this.uploaded&&!this._isOver})},o("slot",{key:"c0656e295223d620af579278f1c763eb7f368acf"})),this.uploaded&&!this._isOver&&o("div",{key:"e5ebd90b568883a025118f3df155188b21f1f67e",class:"flex items-center gap-2 text-positive-green-800"},o("p-icon",{key:"782fc223bd7de1a5d2e7e78bce753e32160fb477",variant:"check-circle"}),o("span",{key:"063369d8309f4d992b53d8db3165d4f9ed663992",class:"font-medium"},this.addedString)),(!this.uploaded||this._isOver)&&o("div",{key:"c05af902cc62cfdbb7feea9de5aabf567c6d22f5",class:i(["flex flex-col text-center","group-hover/dropzone:opacity-50","\n text-storm-300\n dark:text-hurricane-300\n "],{"opacity-50":this._isOver})},o("span",{key:"c9ec4e45968281ce5c2033264ff7c972b25bd799",class:"font-medium"},this.dragFileString),o("span",{key:"bc2aac22c381cdb7d5cbfaa42627f57d08cab115",class:"font-normal"},this.orClickString))),o("input",{key:"d7569817461cc246b0d17e9f8cf238ea169ad436",accept:"any"==this.acceptGroup?"":"image/*",class:"hidden",multiple:!0===this.allowMultiple||void 0,ref:t=>this._fileRef=t,type:"file",onChange:t=>this._onFileChange(t)}))}onDrop(t){const e=this._getFiles(t);e?.length&&(this._isOver=!1,this._processFiles(e))}onDragOver(t){this._isFilesEvent(t)&&(this._isOver=!0)}onDragLeave(){this._isOver=!1}_isFilesEvent(t){return!!t.dataTransfer&&0!==[...t.dataTransfer.items].filter((t=>"file"===t.kind)).length}_getFiles(t){if(!this._isFilesEvent(t))return;const e=t.dataTransfer?.files??[];return 0!==e.length?[...e]:void 0}_uploadClick(){this._fileRef&&this._fileRef.click()}_onFileChange(t){const e=t.target;if(!e.files)return;const r=[...e.files];r?.length&&this._processFiles(r)}_processFiles(t){this._results=[],this.allowMultiple||(t=[t[0]]),this._filesToProcess=t.length;for(const e of t)this._processFile(e)}_processFile(t){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(t,e?.currentTarget?.result))),e.readAsDataURL(t)}_onLoad(t,e){if(this._results.push({file:t,result:e}),this._results?.length<this._filesToProcess)return;const r={fileId:this.fileId,results:this._results};1!==this._results.length&&this.allowMultiple||(r.file=this._results[0].file,r.result=this._results[0].result),this.upload.emit(r),this._fileRef&&(this._fileRef.value=""),this.loading=!1}};c.style="*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.flex{display:flex}.hidden{display:none}.h-inherit{height:inherit}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-indigo-500{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.border-positive-green-500{--tw-border-opacity:1;border-color:rgb(92 195 14/var(--tw-border-opacity,1))}.border-white-800{--tw-border-opacity:1;border-color:rgb(228 227 227/var(--tw-border-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-positive-green-50{--tw-bg-opacity:1;background-color:rgb(234 253 227/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.p-4{padding:1rem}.text-center{text-align:center}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-hurricane-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-indigo-700{--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.text-positive-green-800{--tw-text-opacity:1;color:rgb(47 100 7/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-50{opacity:.5}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:border-indigo-500:hover{--tw-border-opacity:1;border-color:rgb(142 179 251/var(--tw-border-opacity,1))}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:text-indigo-900{--tw-text-opacity:1;color:rgb(19 73 182/var(--tw-text-opacity,1))}.group\\/dropzone:hover .group-hover\\/dropzone\\:opacity-50{opacity:.5}.dark\\:border-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-indigo-700:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:border-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:border-white\\/10:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.1)}.dark\\:bg-indigo-700\\/10:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:border-indigo-700:hover:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(47 111 240/var(--tw-border-opacity,1))}.dark\\:hover\\:bg-indigo-700\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(47,111,240,.1)}.group\\/dropzone:hover .dark\\:group-hover\\/dropzone\\:text-indigo-700:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(47 111 240/var(--tw-text-opacity,1))}";export{c as p_dropzone}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,a as t,h as r,F as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{e as o}from"./p-CWO2YJCh.js";import{c as d}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const s=i(["flex flex-1 items-center justify-start gap-2","h-8 min-w-0 rounded-lg px-2","border border-solid","bg-white-600 text-storm-200","dark:bg-white/15 dark:text-hurricane-200"],{variants:{click:{false:null,true:"cursor-pointer"},error:{false:"\n border-storm-100\n dark:border-white/15\n ",true:"\n border-negative-red-500\n dark:border-negative-red-alternative\n "}}}),h=class{constructor(r){e(this,r),this.upload=t(this,"upload",3),this.download=t(this,"download",3),this.delete=t(this,"delete",3)}enableCameraOnMobile=!1;value;fileId;accept=null;label;helper;required=!0;mode="read";placeholder="Upload a file...";cameraTooltip="Camera";downloadTooltip="Download";uploadTooltip="Upload";deleteTooltip="Delete";loading=!1;error;upload;download;delete;_fileRef;_cameraFileRef;render(){let e=r("p-icon",{key:"92543de0489a337c848126766f819db2fd41d71a",class:"text-storm-300",variant:"attachment"});this.error&&(e=r("p-icon",{key:"054ab596512483fadb5ef423d3af05a1245a7897",class:"text-negative-red-500",variant:"warning"}));const t=o(),i="min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm";return r(a,{key:"dfc02ee49966fa6009702b16c5e5ec70d881cf75"},r("p-field-container",{key:"5f68f5218a1ee05b02a3744a9189c42ec4bd6d9e",error:this.error,forceShowTooltip:!!this.error?.length,helper:this.helper,label:this.label,required:this.required,variant:"write"},r("div",{key:"959c70c73218f0c2b07b6645f2fcfe8b1ce9224d",class:"flex w-full items-start gap-2",slot:"content"},r("div",{key:"e6d80d5d7d14d0acedb3d957e19032bf27c9b375",class:s({click:"write"===this.mode&&!this.value?.length,error:!!this.error?.length}),onClick:()=>this._uploadClick()},e,r("span",{key:"7e7f35e5e13a026f75771dde94cbdc55b4fc3739",class:d(i,"\n peer\n empty:hidden\n dark:text-white\n ")},this.value),r("span",{key:"74f7181ec319d38f6bf3a9ba55b8a506a80be964",class:d(i,"\n hidden\n peer-empty:block\n ")},this.placeholder)),r("p-tooltip",{key:"ea7aba4d71cf0843b31b2a7b777de62ed2e1a313",class:"w-8",content:"read"===this.mode?this.downloadTooltip:this.value?.length?this.deleteTooltip:this.uploadTooltip},r("p-button",{key:"f581f7d0988cc99b0c6697778592b90c9191dc1a",disabled:this.loading,icon:"read"===this.mode?"download":this.value?.length?"trash":"upload",iconOnly:!0,loading:this.loading,slot:"trigger",variant:"secondary",onOnClick:()=>"write"!==this.mode||this.value?.length?("read"===this.mode?this.download:this.delete).emit():this._uploadClick()})),this.enableCameraOnMobile&&"write"===this.mode&&t&&!this.value?.length&&r("p-tooltip",{key:"c1c6fb8cc84e89e3dd274c1af6b8cefc3a9b39e7",class:"\n w-8\n desktop-xs:hidden\n ",content:this.cameraTooltip},r("p-button",{key:"fb5e43cbd06718b6169648b248195b0530a886fb",icon:"camera",iconOnly:!0,slot:"trigger",variant:"secondary",onOnClick:()=>this._cameraClick()})))),r("input",{key:"ccd2a070b8d0cc7f829b806265a9fd12250953a4",accept:Array.isArray(this.accept)?this.accept?.join(","):this.accept,class:"hidden",ref:e=>this._fileRef=e,type:"file",onChange:e=>this._onFileChange(e)}),r("input",{key:"915a250d2be98c55bf180ac7eb79038d7001b006",accept:"image/*",capture:"true",class:"hidden",ref:e=>this._cameraFileRef=e,type:"file",onChange:e=>this._onFileChange(e)}))}_uploadClick(){this._fileRef&&"write"===this.mode&&!this.value?.length&&this._fileRef.click()}_cameraClick(){this.enableCameraOnMobile&&o()&&this._cameraFileRef&&"write"===this.mode&&this._cameraFileRef?.click()}_onFileChange(e){const t=e.target,r=t.files?.[0];if(r){this.loading=!0;const e=new FileReader;e.addEventListener("load",(e=>this._onLoad(r,e?.currentTarget?.result))),e.readAsDataURL(r)}}_onLoad(e,t){this.upload.emit({fileId:this.fileId,result:t,file:e}),this._fileRef&&(this._fileRef.value=""),this._cameraFileRef&&(this._cameraFileRef.value=""),this.loading=!1}};h.style=".block{display:block}*{box-sizing:border-box}:host{display:block;width:100%}.static{position:static}.flex{display:flex}.hidden{display:none}.h-8{height:2rem}.w-8{width:2rem}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.empty\\:hidden:empty{display:none}.peer:empty~.peer-empty\\:block{display:block}@media (min-width:64rem){.desktop-xs\\:hidden{display:none}}.dark\\:border-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(255 92 92/var(--tw-border-opacity,1))}.dark\\:border-white\\/15:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.15)}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{h as p_attachment}
|