@ncino/web-components 2.2.0-preview.8 → 3.0.0-preview.2
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/components/input/gator/dropdown/input-dropdown.gator.js +27 -12
- package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +22 -2
- package/dist/components/input/gator/input-file/input-file.gator.js +21 -9
- package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
- package/dist/components/input/index.gator.js +1 -1
- package/dist/components/input/index.js +1 -1
- package/dist/components/list/gator/list/list.gator.js +3 -2
- package/dist/components/list/index.js +1 -1
- package/dist/types/components/input/gator/dropdown/input-dropdown.gator.d.ts +15 -1
- package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.d.ts +1 -1
- package/package.json +9 -6
- package/web-types.json +166 -146
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{a as v,x as l}from"../../../../assets/index-chunk2.js";import"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/add-link.js";import"../../../icon/gator/templates/airplane.js";import"../../../icon/gator/templates/alarm.js";import"../../../icon/gator/templates/apartment.js";import"../../../icon/gator/templates/arrow-around.js";import"../../../icon/gator/templates/arrow-down.js";import"../../../icon/gator/templates/arrow-left.js";import"../../../icon/gator/templates/arrow-line-left.js";import"../../../icon/gator/templates/arrow-line-right.js";import"../../../icon/gator/templates/arrow-right.js";import"../../../icon/gator/templates/arrow-up.js";import"../../../icon/gator/templates/bank.js";import"../../../icon/gator/templates/bell.js";import"../../../icon/gator/templates/bell-disabled.js";import"../../../icon/gator/templates/binoculars.js";import"../../../icon/gator/templates/book.js";import"../../../icon/gator/templates/box.js";import"../../../icon/gator/templates/cake.js";import"../../../icon/gator/templates/calculator.js";import"../../../icon/gator/templates/calendar.js";import"../../../icon/gator/templates/camera.js";import"../../../icon/gator/templates/caret-up-down.js";import"../../../icon/gator/templates/case.js";import"../../../icon/gator/templates/chart-rise.js";import"../../../icon/gator/templates/chat.js";import"../../../icon/gator/templates/check.js";import"../../../icon/gator/templates/check-circle.js";import"../../../icon/gator/templates/checkbox.js";import"../../../icon/gator/templates/checkbox-selected.js";import"../../../icon/gator/templates/chevron-down.js";import"../../../icon/gator/templates/chevron-left.js";import"../../../icon/gator/templates/chevron-right.js";import"../../../icon/gator/templates/chevron-up.js";import"../../../icon/gator/templates/circle.js";import"../../../icon/gator/templates/circle-arrow-down.js";import"../../../icon/gator/templates/circle-arrow-left.js";import"../../../icon/gator/templates/circle-arrow-right.js";import"../../../icon/gator/templates/circle-arrow-up.js";import"../../../icon/gator/templates/circle-filled.js";import"../../../icon/gator/templates/city.js";import"../../../icon/gator/templates/clipboard.js";import"../../../icon/gator/templates/clock.js";import"../../../icon/gator/templates/clock-clockwise.js";import"../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../icon/gator/templates/collapse.js";import"../../../icon/gator/templates/cone.js";import"../../../icon/gator/templates/contact-info.js";import"../../../icon/gator/templates/copy.js";import"../../../icon/gator/templates/credit-card.js";import"../../../icon/gator/templates/crop.js";import"../../../icon/gator/templates/crosshairs.js";import"../../../icon/gator/templates/currency-dollar-simple.js";import"../../../icon/gator/templates/currency-eur.js";import"../../../icon/gator/templates/currency-gbp.js";import"../../../icon/gator/templates/currency-inr.js";import"../../../icon/gator/templates/currency-jpy.js";import"../../../icon/gator/templates/currency-krw.js";import"../../../icon/gator/templates/currency-kzt.js";import"../../../icon/gator/templates/currency-ngn.js";import"../../../icon/gator/templates/currency-rub.js";import"../../../icon/gator/templates/cursor.js";import"../../../icon/gator/templates/cursor-arrow.js";import"../../../icon/gator/templates/cursor-hand.js";import"../../../icon/gator/templates/dashboard.js";import"../../../icon/gator/templates/delete.js";import"../../../icon/gator/templates/dna.js";import"../../../icon/gator/templates/document.js";import"../../../icon/gator/templates/document-add.js";import"../../../icon/gator/templates/document-check.js";import"../../../icon/gator/templates/document-e-sign.js";import"../../../icon/gator/templates/document-image.js";import"../../../icon/gator/templates/document-pdf.js";import"../../../icon/gator/templates/document-sign.js";import"../../../icon/gator/templates/document-zip.js";import"../../../icon/gator/templates/dollar-bills.js";import"../../../icon/gator/templates/dollar-house.js";import"../../../icon/gator/templates/down-payment.js";import"../../../icon/gator/templates/download.js";import"../../../icon/gator/templates/drag-drop.js";import"../../../icon/gator/templates/earth.js";import"../../../icon/gator/templates/exit.js";import"../../../icon/gator/templates/exit-circle.js";import"../../../icon/gator/templates/exit-left.js";import"../../../icon/gator/templates/expand.js";import"../../../icon/gator/templates/expand-arrows.js";import"../../../icon/gator/templates/export.js";import"../../../icon/gator/templates/eye.js";import"../../../icon/gator/templates/eye-closed.js";import"../../../icon/gator/templates/eye-crossed.js";import"../../../icon/gator/templates/facebook-logo.js";import"../../../icon/gator/templates/file-code.js";import"../../../icon/gator/templates/files.js";import"../../../icon/gator/templates/filter-funnel.js";import"../../../icon/gator/templates/filters.js";import"../../../icon/gator/templates/filters-2.js";import"../../../icon/gator/templates/flame.js";import"../../../icon/gator/templates/flash-off.js";import"../../../icon/gator/templates/flash-on.js";import"../../../icon/gator/templates/folder.js";import"../../../icon/gator/templates/gauge.js";import"../../../icon/gator/templates/hammer.js";import"../../../icon/gator/templates/hand-pointing.js";import"../../../icon/gator/templates/heart.js";import"../../../icon/gator/templates/home-door.js";import"../../../icon/gator/templates/home-finance.js";import"../../../icon/gator/templates/home-finance-arrow.js";import"../../../icon/gator/templates/home-search.js";import"../../../icon/gator/templates/house.js";import"../../../icon/gator/templates/house-simple.js";import"../../../icon/gator/templates/inbox.js";import"../../../icon/gator/templates/info.js";import"../../../icon/gator/templates/instagram-logo.js";import"../../../icon/gator/templates/interest-rate.js";import"../../../icon/gator/templates/invoice.js";import"../../../icon/gator/templates/label.js";import"../../../icon/gator/templates/laptop.js";import"../../../icon/gator/templates/layout.js";import"../../../icon/gator/templates/lightbulb.js";import"../../../icon/gator/templates/link.js";import"../../../icon/gator/templates/linkedin-logo.js";import"../../../icon/gator/templates/list.js";import"../../../icon/gator/templates/loading.js";import"../../../icon/gator/templates/loading-spinner-gif.js";import"../../../icon/gator/templates/lock.js";import"../../../icon/gator/templates/magic-wand.js";import"../../../icon/gator/templates/mail.js";import"../../../icon/gator/templates/mail-open.js";import"../../../icon/gator/templates/mailbox.js";import"../../../icon/gator/templates/map.js";import"../../../icon/gator/templates/menu-hamburger.js";import"../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../icon/gator/templates/microsoft-word-logo.js";import"../../../icon/gator/templates/minus.js";import"../../../icon/gator/templates/minus-circle.js";import"../../../icon/gator/templates/minus-square.js";import"../../../icon/gator/templates/mobile-phone-2.js";import"../../../icon/gator/templates/monitor.js";import"../../../icon/gator/templates/move.js";import"../../../icon/gator/templates/move-doc.js";import"../../../icon/gator/templates/music.js";import"../../../icon/gator/templates/number-1.js";import"../../../icon/gator/templates/number-2.js";import"../../../icon/gator/templates/number-3.js";import"../../../icon/gator/templates/overflow-menu.js";import"../../../icon/gator/templates/paper-airplane.js";import"../../../icon/gator/templates/paperclip.js";import"../../../icon/gator/templates/pen.js";import"../../../icon/gator/templates/pencil.js";import"../../../icon/gator/templates/pencil-paper.js";import"../../../icon/gator/templates/people-multiple.js";import"../../../icon/gator/templates/people-share.js";import"../../../icon/gator/templates/percent.js";import"../../../icon/gator/templates/person.js";import"../../../icon/gator/templates/person-add.js";import"../../../icon/gator/templates/person-check.js";import"../../../icon/gator/templates/person-lock.js";import"../../../icon/gator/templates/phone.js";import"../../../icon/gator/templates/phone-alert.js";import"../../../icon/gator/templates/phone-mobile.js";import"../../../icon/gator/templates/picture.js";import"../../../icon/gator/templates/pin.js";import"../../../icon/gator/templates/pinterest-logo.js";import"../../../icon/gator/templates/plus.js";import"../../../icon/gator/templates/plus-circle.js";import"../../../icon/gator/templates/printer.js";import"../../../icon/gator/templates/question-chat-bubble.js";import"../../../icon/gator/templates/question-circle.js";import"../../../icon/gator/templates/question-mark.js";import"../../../icon/gator/templates/radio.js";import"../../../icon/gator/templates/radio-selected.js";import"../../../icon/gator/templates/receipt.js";import"../../../icon/gator/templates/restricted.js";import"../../../icon/gator/templates/sandals.js";import"../../../icon/gator/templates/save.js";import"../../../icon/gator/templates/screen.js";import"../../../icon/gator/templates/search.js";import"../../../icon/gator/templates/settings.js";import"../../../icon/gator/templates/share-1.js";import"../../../icon/gator/templates/share-2.js";import"../../../icon/gator/templates/shield-lock.js";import"../../../icon/gator/templates/shield-warning.js";import"../../../icon/gator/templates/sidebar.js";import"../../../icon/gator/templates/sidebar-simple.js";import"../../../icon/gator/templates/smart-home.js";import"../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../icon/gator/templates/sort-reverse-variant.js";import"../../../icon/gator/templates/sort-variant.js";import"../../../icon/gator/templates/sparkle.js";import"../../../icon/gator/templates/sparkle-filled.js";import"../../../icon/gator/templates/speech-bubble.js";import"../../../icon/gator/templates/stack.js";import"../../../icon/gator/templates/stamp.js";import"../../../icon/gator/templates/star.js";import"../../../icon/gator/templates/star-four.js";import"../../../icon/gator/templates/star-four-filled.js";import"../../../icon/gator/templates/stopwatch.js";import"../../../icon/gator/templates/sun.js";import"../../../icon/gator/templates/sync.js";import"../../../icon/gator/templates/tab-arrows.js";import"../../../icon/gator/templates/target.js";import"../../../icon/gator/templates/thumbs-down.js";import"../../../icon/gator/templates/thumbs-up.js";import"../../../icon/gator/templates/tools.js";import"../../../icon/gator/templates/touch-id.js";import"../../../icon/gator/templates/trash.js";import"../../../icon/gator/templates/twitter-logo.js";import"../../../icon/gator/templates/unlink.js";import"../../../icon/gator/templates/unlock.js";import"../../../icon/gator/templates/upload.js";import"../../../icon/gator/templates/video.js";import"../../../icon/gator/templates/warning.js";import"../../../icon/gator/templates/warning-circle.js";import"../../../icon/gator/templates/warning-diamond.js";import"../../../icon/gator/templates/warning-octagon.js";import"../../../icon/gator/templates/wet-sign.js";import"../../../icon/gator/templates/wifi.js";import"../../../icon/gator/templates/wifi-off.js";import"../../../icon/gator/templates/x-logo.js";import"../../../icon/gator/templates/yelp-logo.js";import"../../../icon/gator/templates/youtube-logo.js";import"../../../icon/gator/templates/zillow-logo.js";import"../../../list/gator/list/list.gator.js";import"../../../list/gator/list-item/list-item.gator.js";import{t as b}from"../../../../assets/index-chunk3.js";import{n as d}from"../../../../assets/index-chunk.js";import{r as c}from"../../../../assets/index-chunk4.js";import{e as u,n as m}from"../../../../assets/index-chunk8.js";import{a as x,c as y,b as g}from"../../../../assets/index-chunk12.js";import{K as r}from"../../../../consts/key-constants.js";import{N as w}from"../../base/input-base.gator.js";import{f as $,a as _}from"../../../../utils/places-utils.js";import{f as R}from"../../../../utils/industry-utils.js";import{f as D}from"../../../../utils/phone-utils.js";import{o as f}from"../../../../assets/index-chunk7.js";import"../../../../assets/index-chunk5.js";import"../../../../assets/index-chunk6.js";import"../../../../utils/mixins/attribute-deletion.js";import"../../../icon/icon-registry.js";import"../../../../utils/components/ngc-component.js";import"../../../../utils/components/testable-lit-element/testable-lit-element.js";import"../../../divider/gator/divider.gator.js";import"../../../divider/divider.js";import"../../../../assets/index-chunk9.js";import"../../base/input-base.js";const C=':root,:host{--ngc-input-dropdown-list-max-height: 14rem}.gator-dropdown-listbox{position:absolute;width:max-content;top:0;left:0;display:none;max-height:var(--ngc-input-dropdown-list-max-height);overflow-y:scroll;overflow-x:hidden;border-radius:var(--radius-card-medium, .5rem);padding:var(--spacing-padding-margin-8, .5rem) 2px;background:var(--color-surface-primary-white, #FFF);box-shadow:var(--shadow-x-offset-0, 0px) var(--shadow-shadow-3-dropdown-property-1-y-offset, 7px) var(--shadow-shadow-3-dropdown-property-1-blur, 12px) var(--shadow-shadow-3-dropdown-property-1-spread, 0px) var(--shadow-color-10, rgba(31, 31, 31, .1)),var(--shadow-x-offset-0, 0px) var(--shadow-shadow-3-dropdown-property-2-y-offset, 8px) var(--shadow-shadow-3-dropdown-property-2-blur, 16px) var(--shadow-shadow-3-dropdown-property-2-spread, 0px) var(--shadow-color-8, rgba(31, 31, 31, .08)),var(--shadow-x-offset-0, 0px) var(--shadow-shadow-3-dropdown-property-3-y-offset, 9px) var(--shadow-shadow-3-dropdown-property-3-blur, 18px) var(--shadow-shadow-3-dropdown-property-3-spread, 0px) var(--shadow-color-8, rgba(31, 31, 31, .08))}.gator-form-element-control:focus-visible:not(.gator-disabled){outline:2px solid var(--ngc-input-border-color-focused, #1F1F1F)!important;border:1px solid transparent!important}.gator-dropdown-listbox_expanded{display:block;z-index:1}.gator-faux-input-placeholder{color:var(--text-color-placeholder, #6D6D6D);font-family:var(--text-family-body, "Open Sans");font-size:var(--text-size-body-1, 1.0625rem);line-height:var(--text-line-height-body-1, 1.5rem);letter-spacing:var(--text-letter-spacing-default, 0rem)}';var F=Object.defineProperty,k=Object.getOwnPropertyDescriptor,P=Object.getPrototypeOf,I=Reflect.get,a=(t,i,o,p)=>{for(var s=p>1?void 0:p?k(i,o):i,n=t.length-1,h;n>=0;n--)(h=t[n])&&(s=(p?h(i,o,s):h(s))||s);return p&&s&&F(i,o,s),s},O=(t,i,o)=>I(P(t),o,i);let e=class extends w{constructor(){super(...arguments),this.options=[],this.autocomplete=!1,this.valueDisplayed=!1,this._expanded=!1,this._searchValue="",this.listboxRef=u(),this.listRef=u(),this.inputRef=u()}render(){return l`
|
|
1
|
+
import{a as v,x as p}from"../../../../assets/index-chunk2.js";import"../input-label/input-label.gator.js";import"../help-text/help-text.gator.js";import"../../../icon/gator/icon.gator.js";import"../../../icon/gator/templates/add-link.js";import"../../../icon/gator/templates/airplane.js";import"../../../icon/gator/templates/alarm.js";import"../../../icon/gator/templates/apartment.js";import"../../../icon/gator/templates/arrow-around.js";import"../../../icon/gator/templates/arrow-down.js";import"../../../icon/gator/templates/arrow-left.js";import"../../../icon/gator/templates/arrow-line-left.js";import"../../../icon/gator/templates/arrow-line-right.js";import"../../../icon/gator/templates/arrow-right.js";import"../../../icon/gator/templates/arrow-up.js";import"../../../icon/gator/templates/bank.js";import"../../../icon/gator/templates/bell.js";import"../../../icon/gator/templates/bell-disabled.js";import"../../../icon/gator/templates/binoculars.js";import"../../../icon/gator/templates/book.js";import"../../../icon/gator/templates/box.js";import"../../../icon/gator/templates/cake.js";import"../../../icon/gator/templates/calculator.js";import"../../../icon/gator/templates/calendar.js";import"../../../icon/gator/templates/camera.js";import"../../../icon/gator/templates/caret-up-down.js";import"../../../icon/gator/templates/case.js";import"../../../icon/gator/templates/chart-rise.js";import"../../../icon/gator/templates/chat.js";import"../../../icon/gator/templates/check.js";import"../../../icon/gator/templates/check-circle.js";import"../../../icon/gator/templates/checkbox.js";import"../../../icon/gator/templates/checkbox-selected.js";import"../../../icon/gator/templates/chevron-down.js";import"../../../icon/gator/templates/chevron-left.js";import"../../../icon/gator/templates/chevron-right.js";import"../../../icon/gator/templates/chevron-up.js";import"../../../icon/gator/templates/circle.js";import"../../../icon/gator/templates/circle-arrow-down.js";import"../../../icon/gator/templates/circle-arrow-left.js";import"../../../icon/gator/templates/circle-arrow-right.js";import"../../../icon/gator/templates/circle-arrow-up.js";import"../../../icon/gator/templates/circle-filled.js";import"../../../icon/gator/templates/city.js";import"../../../icon/gator/templates/clipboard.js";import"../../../icon/gator/templates/clock.js";import"../../../icon/gator/templates/clock-clockwise.js";import"../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../icon/gator/templates/collapse.js";import"../../../icon/gator/templates/cone.js";import"../../../icon/gator/templates/contact-info.js";import"../../../icon/gator/templates/copy.js";import"../../../icon/gator/templates/credit-card.js";import"../../../icon/gator/templates/crop.js";import"../../../icon/gator/templates/crosshairs.js";import"../../../icon/gator/templates/currency-dollar-simple.js";import"../../../icon/gator/templates/currency-eur.js";import"../../../icon/gator/templates/currency-gbp.js";import"../../../icon/gator/templates/currency-inr.js";import"../../../icon/gator/templates/currency-jpy.js";import"../../../icon/gator/templates/currency-krw.js";import"../../../icon/gator/templates/currency-kzt.js";import"../../../icon/gator/templates/currency-ngn.js";import"../../../icon/gator/templates/currency-rub.js";import"../../../icon/gator/templates/cursor.js";import"../../../icon/gator/templates/cursor-arrow.js";import"../../../icon/gator/templates/cursor-hand.js";import"../../../icon/gator/templates/dashboard.js";import"../../../icon/gator/templates/delete.js";import"../../../icon/gator/templates/dna.js";import"../../../icon/gator/templates/document.js";import"../../../icon/gator/templates/document-add.js";import"../../../icon/gator/templates/document-check.js";import"../../../icon/gator/templates/document-e-sign.js";import"../../../icon/gator/templates/document-image.js";import"../../../icon/gator/templates/document-pdf.js";import"../../../icon/gator/templates/document-sign.js";import"../../../icon/gator/templates/document-zip.js";import"../../../icon/gator/templates/dollar-bills.js";import"../../../icon/gator/templates/dollar-house.js";import"../../../icon/gator/templates/down-payment.js";import"../../../icon/gator/templates/download.js";import"../../../icon/gator/templates/drag-drop.js";import"../../../icon/gator/templates/earth.js";import"../../../icon/gator/templates/exit.js";import"../../../icon/gator/templates/exit-circle.js";import"../../../icon/gator/templates/exit-left.js";import"../../../icon/gator/templates/expand.js";import"../../../icon/gator/templates/expand-arrows.js";import"../../../icon/gator/templates/export.js";import"../../../icon/gator/templates/eye.js";import"../../../icon/gator/templates/eye-closed.js";import"../../../icon/gator/templates/eye-crossed.js";import"../../../icon/gator/templates/facebook-logo.js";import"../../../icon/gator/templates/file-code.js";import"../../../icon/gator/templates/files.js";import"../../../icon/gator/templates/filter-funnel.js";import"../../../icon/gator/templates/filters.js";import"../../../icon/gator/templates/filters-2.js";import"../../../icon/gator/templates/flame.js";import"../../../icon/gator/templates/flash-off.js";import"../../../icon/gator/templates/flash-on.js";import"../../../icon/gator/templates/folder.js";import"../../../icon/gator/templates/gauge.js";import"../../../icon/gator/templates/hammer.js";import"../../../icon/gator/templates/hand-pointing.js";import"../../../icon/gator/templates/heart.js";import"../../../icon/gator/templates/home-door.js";import"../../../icon/gator/templates/home-finance.js";import"../../../icon/gator/templates/home-finance-arrow.js";import"../../../icon/gator/templates/home-search.js";import"../../../icon/gator/templates/house.js";import"../../../icon/gator/templates/house-simple.js";import"../../../icon/gator/templates/inbox.js";import"../../../icon/gator/templates/info.js";import"../../../icon/gator/templates/instagram-logo.js";import"../../../icon/gator/templates/interest-rate.js";import"../../../icon/gator/templates/invoice.js";import"../../../icon/gator/templates/label.js";import"../../../icon/gator/templates/laptop.js";import"../../../icon/gator/templates/layout.js";import"../../../icon/gator/templates/lightbulb.js";import"../../../icon/gator/templates/link.js";import"../../../icon/gator/templates/linkedin-logo.js";import"../../../icon/gator/templates/list.js";import"../../../icon/gator/templates/loading.js";import"../../../icon/gator/templates/loading-spinner-gif.js";import"../../../icon/gator/templates/lock.js";import"../../../icon/gator/templates/magic-wand.js";import"../../../icon/gator/templates/mail.js";import"../../../icon/gator/templates/mail-open.js";import"../../../icon/gator/templates/mailbox.js";import"../../../icon/gator/templates/map.js";import"../../../icon/gator/templates/menu-hamburger.js";import"../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../icon/gator/templates/microsoft-word-logo.js";import"../../../icon/gator/templates/minus.js";import"../../../icon/gator/templates/minus-circle.js";import"../../../icon/gator/templates/minus-square.js";import"../../../icon/gator/templates/mobile-phone-2.js";import"../../../icon/gator/templates/monitor.js";import"../../../icon/gator/templates/move.js";import"../../../icon/gator/templates/move-doc.js";import"../../../icon/gator/templates/music.js";import"../../../icon/gator/templates/number-1.js";import"../../../icon/gator/templates/number-2.js";import"../../../icon/gator/templates/number-3.js";import"../../../icon/gator/templates/overflow-menu.js";import"../../../icon/gator/templates/paper-airplane.js";import"../../../icon/gator/templates/paperclip.js";import"../../../icon/gator/templates/pen.js";import"../../../icon/gator/templates/pencil.js";import"../../../icon/gator/templates/pencil-paper.js";import"../../../icon/gator/templates/people-multiple.js";import"../../../icon/gator/templates/people-share.js";import"../../../icon/gator/templates/percent.js";import"../../../icon/gator/templates/person.js";import"../../../icon/gator/templates/person-add.js";import"../../../icon/gator/templates/person-check.js";import"../../../icon/gator/templates/person-lock.js";import"../../../icon/gator/templates/phone.js";import"../../../icon/gator/templates/phone-alert.js";import"../../../icon/gator/templates/phone-mobile.js";import"../../../icon/gator/templates/picture.js";import"../../../icon/gator/templates/pin.js";import"../../../icon/gator/templates/pinterest-logo.js";import"../../../icon/gator/templates/plus.js";import"../../../icon/gator/templates/plus-circle.js";import"../../../icon/gator/templates/printer.js";import"../../../icon/gator/templates/question-chat-bubble.js";import"../../../icon/gator/templates/question-circle.js";import"../../../icon/gator/templates/question-mark.js";import"../../../icon/gator/templates/radio.js";import"../../../icon/gator/templates/radio-selected.js";import"../../../icon/gator/templates/receipt.js";import"../../../icon/gator/templates/restricted.js";import"../../../icon/gator/templates/sandals.js";import"../../../icon/gator/templates/save.js";import"../../../icon/gator/templates/screen.js";import"../../../icon/gator/templates/search.js";import"../../../icon/gator/templates/settings.js";import"../../../icon/gator/templates/share-1.js";import"../../../icon/gator/templates/share-2.js";import"../../../icon/gator/templates/shield-lock.js";import"../../../icon/gator/templates/shield-warning.js";import"../../../icon/gator/templates/sidebar.js";import"../../../icon/gator/templates/sidebar-simple.js";import"../../../icon/gator/templates/smart-home.js";import"../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../icon/gator/templates/sort-reverse-variant.js";import"../../../icon/gator/templates/sort-variant.js";import"../../../icon/gator/templates/sparkle.js";import"../../../icon/gator/templates/sparkle-filled.js";import"../../../icon/gator/templates/speech-bubble.js";import"../../../icon/gator/templates/stack.js";import"../../../icon/gator/templates/stamp.js";import"../../../icon/gator/templates/star.js";import"../../../icon/gator/templates/star-four.js";import"../../../icon/gator/templates/star-four-filled.js";import"../../../icon/gator/templates/stopwatch.js";import"../../../icon/gator/templates/sun.js";import"../../../icon/gator/templates/sync.js";import"../../../icon/gator/templates/tab-arrows.js";import"../../../icon/gator/templates/target.js";import"../../../icon/gator/templates/thumbs-down.js";import"../../../icon/gator/templates/thumbs-up.js";import"../../../icon/gator/templates/tools.js";import"../../../icon/gator/templates/touch-id.js";import"../../../icon/gator/templates/trash.js";import"../../../icon/gator/templates/twitter-logo.js";import"../../../icon/gator/templates/unlink.js";import"../../../icon/gator/templates/unlock.js";import"../../../icon/gator/templates/upload.js";import"../../../icon/gator/templates/video.js";import"../../../icon/gator/templates/warning.js";import"../../../icon/gator/templates/warning-circle.js";import"../../../icon/gator/templates/warning-diamond.js";import"../../../icon/gator/templates/warning-octagon.js";import"../../../icon/gator/templates/wet-sign.js";import"../../../icon/gator/templates/wifi.js";import"../../../icon/gator/templates/wifi-off.js";import"../../../icon/gator/templates/x-logo.js";import"../../../icon/gator/templates/yelp-logo.js";import"../../../icon/gator/templates/youtube-logo.js";import"../../../icon/gator/templates/zillow-logo.js";import"../../../list/gator/list/list.gator.js";import"../../../list/gator/list-item/list-item.gator.js";import"../../../icon-button/gator/icon-button.gator.js";import{t as b}from"../../../../assets/index-chunk3.js";import{n as m}from"../../../../assets/index-chunk.js";import{r as c}from"../../../../assets/index-chunk4.js";import{e as h,n}from"../../../../assets/index-chunk8.js";import{a as g,c as x,b as y}from"../../../../assets/index-chunk12.js";import{K as r}from"../../../../consts/key-constants.js";import{N as w}from"../../base/input-base.gator.js";import{f as $,a as _}from"../../../../utils/places-utils.js";import{f as R}from"../../../../utils/industry-utils.js";import{f as D}from"../../../../utils/phone-utils.js";import{o as f}from"../../../../assets/index-chunk7.js";import"../../../../assets/index-chunk5.js";import"../../../../assets/index-chunk6.js";import"../../../../utils/mixins/attribute-deletion.js";import"../../../icon/icon-registry.js";import"../../../../utils/components/ngc-component.js";import"../../../../utils/components/testable-lit-element/testable-lit-element.js";import"../../../divider/gator/divider.gator.js";import"../../../divider/divider.js";import"../../../button/slds/button.slds.js";import"../../../button/button.js";import"../../../../assets/index-chunk10.js";import"../../../button/gator/button.gator.js";import"../../../loading-spinner/gator/loading-spinner.gator.js";import"../../../loading-spinner/loading-spinner.js";import"../../../icon/slds/icon.slds.js";import"../../../icon/icon.js";import"../../../skeleton-loader/gator/skeleton-loader.gator.js";import"../../../icon-button/icon-button.js";import"../../../../assets/index-chunk9.js";import"../../base/input-base.js";const C=':root,:host{--ngc-input-dropdown-list-max-height: 14rem}ngc-icon-button{--ngc-icon-button-hover-box-shadow: none;margin-top:-.5rem;margin-bottom:-.5rem}.gator-dropdown-listbox{position:absolute;width:max-content;top:0;left:0;display:none;max-height:var(--ngc-input-dropdown-list-max-height);overflow-y:scroll;overflow-x:hidden;border-radius:var(--radius-card-medium, .5rem);padding:var(--spacing-padding-margin-8, .5rem) 2px;background:var(--color-surface-primary-white, #FFF);box-shadow:var(--shadow-x-offset-0, 0px) var(--shadow-shadow-3-dropdown-property-1-y-offset, 7px) var(--shadow-shadow-3-dropdown-property-1-blur, 12px) var(--shadow-shadow-3-dropdown-property-1-spread, 0px) var(--shadow-color-10, rgba(31, 31, 31, .1)),var(--shadow-x-offset-0, 0px) var(--shadow-shadow-3-dropdown-property-2-y-offset, 8px) var(--shadow-shadow-3-dropdown-property-2-blur, 16px) var(--shadow-shadow-3-dropdown-property-2-spread, 0px) var(--shadow-color-8, rgba(31, 31, 31, .08)),var(--shadow-x-offset-0, 0px) var(--shadow-shadow-3-dropdown-property-3-y-offset, 9px) var(--shadow-shadow-3-dropdown-property-3-blur, 18px) var(--shadow-shadow-3-dropdown-property-3-spread, 0px) var(--shadow-color-8, rgba(31, 31, 31, .08))}.gator-form-element-control:focus-visible:not(.gator-disabled){outline:2px solid var(--ngc-input-border-color-focused, #1F1F1F)!important;border:1px solid transparent!important}.gator-dropdown-listbox_expanded{display:block;z-index:1}.gator-faux-input-placeholder{color:var(--text-color-placeholder, #6D6D6D);font-family:var(--text-family-body, "Open Sans");font-size:var(--text-size-body-1, 1.0625rem);line-height:var(--text-line-height-body-1, 1.5rem);letter-spacing:var(--text-letter-spacing-default, 0rem)}.gator-dropdown-listbox-message{display:flex;padding:var(--spacing-gap-8, .5rem) var(--spacing-gap-16, 1rem);align-items:flex-start;gap:var(--spacing-gap-8, .5rem);align-self:stretch;color:var(--text-color-placeholder, #6D6D6D);font-family:var(--text-family-body, "Open Sans");font-size:var(--text-size-body-1, 1.0625rem)}';var O=Object.defineProperty,k=Object.getOwnPropertyDescriptor,M=Object.getPrototypeOf,A=Reflect.get,a=(t,e,i,s)=>{for(var l=s>1?void 0:s?k(e,i):e,d=t.length-1,u;d>=0;d--)(u=t[d])&&(l=(s?u(e,i,l):u(l))||l);return s&&l&&O(e,i,l),l},I=(t,e,i)=>A(M(t),i,e);let o=class extends w{constructor(){super(...arguments),this.options=[],this.autocomplete=!1,this.valueDisplayed=!1,this.maxAutocompleteResults=250,this._expanded=!1,this._searchValue="",this.listboxRef=h(),this.listRef=h(),this.inputRef=h(),this.noResultsMessage="No results found. Refine your search."}render(){return p`
|
|
2
2
|
<div class="gator-form-element">
|
|
3
3
|
<slot name="label">
|
|
4
4
|
${this.label?this.labelMarkup:null}
|
|
5
5
|
</slot>
|
|
6
6
|
<div
|
|
7
|
-
${
|
|
7
|
+
${n(this.controlRef)}
|
|
8
8
|
class="gator-form-element-control ${this.errorClass} ${this.disabledClass}"
|
|
9
9
|
data-testid=${f(this.dataTestid)}-listbox
|
|
10
10
|
aria-controls="listbox-${this.id}"
|
|
@@ -22,13 +22,13 @@ import{a as v,x as l}from"../../../../assets/index-chunk2.js";import"../input-la
|
|
|
22
22
|
@focusout="${this._topLevelFocusOut}"
|
|
23
23
|
>
|
|
24
24
|
<div class="gator-input-container">
|
|
25
|
-
${this.shouldHaveStartMarkup?
|
|
25
|
+
${this.shouldHaveStartMarkup?p`
|
|
26
26
|
<div class="gator-input-start">
|
|
27
27
|
${this.startIconMarkup}
|
|
28
28
|
</div>`:null}
|
|
29
|
-
${this.autocomplete?
|
|
29
|
+
${this.autocomplete?p`
|
|
30
30
|
<input
|
|
31
|
-
${
|
|
31
|
+
${n(this.inputRef)}
|
|
32
32
|
type="${this.type}"
|
|
33
33
|
.id="${this.id}"
|
|
34
34
|
.placeholder="${this.placeholder}"
|
|
@@ -46,6 +46,7 @@ import{a as v,x as l}from"../../../../assets/index-chunk2.js";import"../input-la
|
|
|
46
46
|
`:this.fauxInputMarkup}
|
|
47
47
|
|
|
48
48
|
<div class="gator-input-end">
|
|
49
|
+
${this.clearIconButtonMarkup}
|
|
49
50
|
${this.endIconMarkup}
|
|
50
51
|
</div>
|
|
51
52
|
</div>
|
|
@@ -56,25 +57,27 @@ import{a as v,x as l}from"../../../../assets/index-chunk2.js";import"../input-la
|
|
|
56
57
|
|
|
57
58
|
${this.listboxMarkup}
|
|
58
59
|
</div>
|
|
59
|
-
`}_topLevelFocusOut(t){t.relatedTarget||(this._expanded=!1)}_handleControlFocusIn(){var t;this.disabled||this.autocomplete&&((t=this.inputRef.value)==null||t.focus())}firstUpdated(){this._expanded&&this.toggleListbox(r.ENTER,!0)}updated(){var t,i,
|
|
60
|
+
`}_topLevelFocusOut(t){t.relatedTarget||(this._expanded=!1)}_handleControlFocusIn(){var t;this.disabled||this.autocomplete&&((t=this.inputRef.value)==null||t.focus())}firstUpdated(){this._expanded&&this.toggleListbox(r.ENTER,!0)}updated(){var t,e,i,s;this._expanded&&this.value&&((t=this.controlRef.value)==null||t.setAttribute("aria-activedescendant",this.replacedActiveDescendant)),this._expanded&&!this.value&&(this._activeDescendant=(i=(e=this.shadowRoot)==null?void 0:e.querySelector("ngc-list-item"))==null?void 0:i.id,(s=this.controlRef.value)==null||s.setAttribute("aria-activedescendant",this.replacedActiveDescendant))}get fauxInputMarkup(){return p`
|
|
60
61
|
<div class="gator-faux-input ${this.showPlaceholder?"gator-faux-input-placeholder":null}">
|
|
61
62
|
${this.displayedValue||this.placeholder}
|
|
62
63
|
</div>
|
|
63
|
-
`}get displayedValue(){var t;return this.value?this.valueDisplayed?this.value:((t=this.displayedOptions.find(
|
|
64
|
+
`}get displayedValue(){var t;return this.value?this.valueDisplayed?this.value:((t=this.displayedOptions.find(e=>e.value===this.value))==null?void 0:t.label)??this.value:""}get showPlaceholder(){return this.placeholder&&!this.value}get replacedActiveDescendant(){return this._activeDescendant?this._activeDescendant.replace(" ",""):""}get listboxMarkup(){return p`
|
|
64
65
|
<div
|
|
65
|
-
${
|
|
66
|
+
${n(this.listboxRef)}
|
|
66
67
|
class="gator-dropdown-listbox ${this._expanded?"gator-dropdown-listbox_expanded":""}"
|
|
67
68
|
>
|
|
69
|
+
${this.listboxMessageMarkup}
|
|
68
70
|
<ngc-list
|
|
69
71
|
.id="listbox-${this.id}"
|
|
70
|
-
${
|
|
72
|
+
${n(this.listRef)}
|
|
71
73
|
selectable
|
|
72
74
|
@selected="${this.handleSelected}"
|
|
73
75
|
faux-focus
|
|
74
76
|
.title="${this.label||this.placeholder} List"
|
|
75
77
|
.aria-labelledby="dropdown-label-${this.id}"
|
|
78
|
+
.ariaDescribedby=${this.listboxMessageMarkup?`listbox-message-${this.id}`:void 0}
|
|
76
79
|
>
|
|
77
|
-
${this.displayedOptions.map(t=>
|
|
80
|
+
${this.displayedOptions.map(t=>p`
|
|
78
81
|
<ngc-list-item
|
|
79
82
|
text="${t.label}"
|
|
80
83
|
value="${t.value}"
|
|
@@ -85,11 +88,23 @@ import{a as v,x as l}from"../../../../assets/index-chunk2.js";import"../input-la
|
|
|
85
88
|
`)}
|
|
86
89
|
</ngc-list>
|
|
87
90
|
</div>
|
|
88
|
-
`}get
|
|
91
|
+
`}get listboxMessageMarkup(){if(!this.autocomplete)return null;let t;return this.displayedOptions.length===0&&(t=this.noResultsMessage),this.resultsExceedMax&&(t=this.resultsExceedMaxMessage),t?p`
|
|
92
|
+
<div class="gator-dropdown-listbox-message" id="listbox-message-${this.id}" data-testid="${this.dataTestid}-listbox-message">
|
|
93
|
+
${t}
|
|
94
|
+
</div>
|
|
95
|
+
`:null}get resultsExceedMaxMessage(){return`Showing ${this.maxAutocompleteResults} results. Refine your search to see more.`}get displayedOptions(){return this.autocomplete?this.limitedOptions:this.filteredOptions}get filteredOptions(){let t=this.options;return this.dataType==="country"?t=$():this.dataType==="state"&&this.countryCode?t=_(this.countryCode):this.dataType==="naics"?t=R():this.dataType==="phoneCodes"&&(t=D()),this._searchValue?[...t.filter(i=>i.label.toLowerCase().includes(this._searchValue.toLowerCase()))]:t}get limitedOptions(){return this.filteredOptions.slice(0,this.maxAutocompleteResults)}get resultsExceedMax(){return!this.autocomplete||!this.maxAutocompleteResults?!1:this.filteredOptions.length>this.maxAutocompleteResults}handleSelected(t){var e;t.stopImmediatePropagation(),this._expanded=!1,this._activeDescendant=void 0,(e=this.controlRef.value)==null||e.removeAttribute("aria-activedescendant"),this.emitChangeEvent(t.detail.value)}handleComboboxKeydown(t){var e,i;!this._expanded&&(t.key===r.ENTER||t.key===r.SPACE||t.key===r.DOWN)?this.toggleListbox(t.key,!1):this._expanded&&this.listRef.value&&((t.key===r.ENTER||t.key===r.SPACE)&&this.listRef.value.selectFalseFocusedItem(),t.key===r.DOWN&&(this._activeDescendant=this.listRef.value.falseFocusNextItem(),(e=this.controlRef.value)==null||e.setAttribute("aria-activedescendant",this.replacedActiveDescendant)),t.key===r.UP&&(this._activeDescendant=this.listRef.value.falseFocusPreviousItem(),(i=this.controlRef.value)==null||i.setAttribute("aria-activedescendant",this.replacedActiveDescendant))),t.key===r.ESCAPE&&(this._expanded=!1)}get errorClass(){return this.errorText?"gator-has-error":""}get disabledClass(){return this.disabled?"gator-disabled":"gator-cursor-pointer"}get labelMarkup(){return p`
|
|
89
96
|
<ngc-input-label
|
|
90
97
|
.for="dropdown-label-${this.id}"
|
|
91
98
|
.required="${this.required}"
|
|
92
99
|
type="div"
|
|
93
100
|
>
|
|
94
101
|
${this.label}
|
|
95
|
-
</ngc-input-label>`}toggleListbox(t,
|
|
102
|
+
</ngc-input-label>`}toggleListbox(t,e){var i;this.disabled||(e||(this._expanded=!this._expanded),setTimeout(()=>{var s;this.assignPosition(),this.listRef.value&&(t==r.DOWN||!this.value)?this._activeDescendant=this.listRef.value.falseFocusFirstItem():this.value&&this.listRef.value&&(this._activeDescendant=this.listRef.value.setFalseFocusToValue(this.value)),this._expanded&&((s=this.controlRef.value)==null||s.setAttribute("aria-activedescendant",this.replacedActiveDescendant))}),this._expanded||(this._activeDescendant=void 0,(i=this.controlRef.value)==null||i.removeAttribute("aria-activedescendant")))}get endIconMarkup(){return p`<ngc-icon .name="${this.endIcon||"chevron-down"}"></ngc-icon>`}get clearIconButtonMarkup(){var t;return!this.autocomplete||!this.value&&!((t=this.inputRef.value)!=null&&t.value)?null:p`
|
|
103
|
+
<ngc-icon-button
|
|
104
|
+
data-testid="${this.dataTestid}-clear-button"
|
|
105
|
+
icon-name="exit"
|
|
106
|
+
aria-label="Clear"
|
|
107
|
+
size="medium"
|
|
108
|
+
@click="${this.clearValue}"
|
|
109
|
+
></ngc-icon-button>
|
|
110
|
+
`}clearValue(){var t;this.inputRef.value&&(this.inputRef.value.value=""),this._searchValue="",(t=this.inputRef.value)==null||t.focus(),this.emitChangeEvent("")}assignPosition(){const t=this.controlRef.value;!this.listboxRef||!this.listboxRef.value||!t||(this._cleanup=g(t,this.listboxRef.value,async()=>{if(!this.listboxRef||!this.listboxRef.value||!t)return;const{x:e,y:i,placement:s}=await x(t,this.listboxRef.value,{placement:"bottom-start",middleware:[y({alignment:"start",allowedPlacements:["top","bottom"]})]});let l=s==="bottom-start"?4:-4;Object.assign(this.listboxRef.value.style,{left:`${e}px`,top:`${i+l}px`,width:`${this.listWidth??t.clientWidth}px`})}))}handleInput(t){let e=t.target;e.value.length===0&&this.emitChangeEvent(""),this._searchValue=e.value,this._expanded=!0}handleInputKeydown(t){if((t.key===r.DOWN||t.key===r.UP)&&t.preventDefault(),t.key===r.SPACE){t.stopPropagation();return}}emitChangeEvent(t){this.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:{value:t}}))}};o.styles=[...I(o,o,"styles"),v(C)];a([m({type:Array})],o.prototype,"options",2);a([m({type:Boolean})],o.prototype,"autocomplete",2);a([m({type:String,attribute:"data-type"})],o.prototype,"dataType",2);a([m({type:String,attribute:"country-code"})],o.prototype,"countryCode",2);a([m({type:String,attribute:"list-width"})],o.prototype,"listWidth",2);a([m({type:Boolean,attribute:"value-displayed"})],o.prototype,"valueDisplayed",2);a([m({type:Number,attribute:"max-autocomplete-results"})],o.prototype,"maxAutocompleteResults",2);a([c()],o.prototype,"_activeDescendant",2);a([c()],o.prototype,"_expanded",2);a([c()],o.prototype,"_searchValue",2);o=a([b("ngc-input-dropdown")],o);
|
package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
import{t as n}from"../../../../../assets/index-chunk3.js";import{n as s}from"../../../../../assets/index-chunk.js";import{a as c,x as d}from"../../../../../assets/index-chunk2.js";import"../../../../icon/gator/icon.gator.js";import"../../../../icon/gator/templates/add-link.js";import"../../../../icon/gator/templates/airplane.js";import"../../../../icon/gator/templates/alarm.js";import"../../../../icon/gator/templates/apartment.js";import"../../../../icon/gator/templates/arrow-around.js";import"../../../../icon/gator/templates/arrow-down.js";import"../../../../icon/gator/templates/arrow-left.js";import"../../../../icon/gator/templates/arrow-line-left.js";import"../../../../icon/gator/templates/arrow-line-right.js";import"../../../../icon/gator/templates/arrow-right.js";import"../../../../icon/gator/templates/arrow-up.js";import"../../../../icon/gator/templates/bank.js";import"../../../../icon/gator/templates/bell.js";import"../../../../icon/gator/templates/bell-disabled.js";import"../../../../icon/gator/templates/binoculars.js";import"../../../../icon/gator/templates/book.js";import"../../../../icon/gator/templates/box.js";import"../../../../icon/gator/templates/cake.js";import"../../../../icon/gator/templates/calculator.js";import"../../../../icon/gator/templates/calendar.js";import"../../../../icon/gator/templates/camera.js";import"../../../../icon/gator/templates/caret-up-down.js";import"../../../../icon/gator/templates/case.js";import"../../../../icon/gator/templates/chart-rise.js";import"../../../../icon/gator/templates/chat.js";import"../../../../icon/gator/templates/check.js";import"../../../../icon/gator/templates/check-circle.js";import"../../../../icon/gator/templates/checkbox.js";import"../../../../icon/gator/templates/checkbox-selected.js";import"../../../../icon/gator/templates/chevron-down.js";import"../../../../icon/gator/templates/chevron-left.js";import"../../../../icon/gator/templates/chevron-right.js";import"../../../../icon/gator/templates/chevron-up.js";import"../../../../icon/gator/templates/circle.js";import"../../../../icon/gator/templates/circle-arrow-down.js";import"../../../../icon/gator/templates/circle-arrow-left.js";import"../../../../icon/gator/templates/circle-arrow-right.js";import"../../../../icon/gator/templates/circle-arrow-up.js";import"../../../../icon/gator/templates/circle-filled.js";import"../../../../icon/gator/templates/city.js";import"../../../../icon/gator/templates/clipboard.js";import"../../../../icon/gator/templates/clock.js";import"../../../../icon/gator/templates/clock-clockwise.js";import"../../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../../icon/gator/templates/collapse.js";import"../../../../icon/gator/templates/cone.js";import"../../../../icon/gator/templates/contact-info.js";import"../../../../icon/gator/templates/copy.js";import"../../../../icon/gator/templates/credit-card.js";import"../../../../icon/gator/templates/crop.js";import"../../../../icon/gator/templates/crosshairs.js";import"../../../../icon/gator/templates/currency-dollar-simple.js";import"../../../../icon/gator/templates/currency-eur.js";import"../../../../icon/gator/templates/currency-gbp.js";import"../../../../icon/gator/templates/currency-inr.js";import"../../../../icon/gator/templates/currency-jpy.js";import"../../../../icon/gator/templates/currency-krw.js";import"../../../../icon/gator/templates/currency-kzt.js";import"../../../../icon/gator/templates/currency-ngn.js";import"../../../../icon/gator/templates/currency-rub.js";import"../../../../icon/gator/templates/cursor.js";import"../../../../icon/gator/templates/cursor-arrow.js";import"../../../../icon/gator/templates/cursor-hand.js";import"../../../../icon/gator/templates/dashboard.js";import"../../../../icon/gator/templates/delete.js";import"../../../../icon/gator/templates/dna.js";import"../../../../icon/gator/templates/document.js";import"../../../../icon/gator/templates/document-add.js";import"../../../../icon/gator/templates/document-check.js";import"../../../../icon/gator/templates/document-e-sign.js";import"../../../../icon/gator/templates/document-image.js";import"../../../../icon/gator/templates/document-pdf.js";import"../../../../icon/gator/templates/document-sign.js";import"../../../../icon/gator/templates/document-zip.js";import"../../../../icon/gator/templates/dollar-bills.js";import"../../../../icon/gator/templates/dollar-house.js";import"../../../../icon/gator/templates/down-payment.js";import"../../../../icon/gator/templates/download.js";import"../../../../icon/gator/templates/drag-drop.js";import"../../../../icon/gator/templates/earth.js";import"../../../../icon/gator/templates/exit.js";import"../../../../icon/gator/templates/exit-circle.js";import"../../../../icon/gator/templates/exit-left.js";import"../../../../icon/gator/templates/expand.js";import"../../../../icon/gator/templates/expand-arrows.js";import"../../../../icon/gator/templates/export.js";import"../../../../icon/gator/templates/eye.js";import"../../../../icon/gator/templates/eye-closed.js";import"../../../../icon/gator/templates/eye-crossed.js";import"../../../../icon/gator/templates/facebook-logo.js";import"../../../../icon/gator/templates/file-code.js";import"../../../../icon/gator/templates/files.js";import"../../../../icon/gator/templates/filter-funnel.js";import"../../../../icon/gator/templates/filters.js";import"../../../../icon/gator/templates/filters-2.js";import"../../../../icon/gator/templates/flame.js";import"../../../../icon/gator/templates/flash-off.js";import"../../../../icon/gator/templates/flash-on.js";import"../../../../icon/gator/templates/folder.js";import"../../../../icon/gator/templates/gauge.js";import"../../../../icon/gator/templates/hammer.js";import"../../../../icon/gator/templates/hand-pointing.js";import"../../../../icon/gator/templates/heart.js";import"../../../../icon/gator/templates/home-door.js";import"../../../../icon/gator/templates/home-finance.js";import"../../../../icon/gator/templates/home-finance-arrow.js";import"../../../../icon/gator/templates/home-search.js";import"../../../../icon/gator/templates/house.js";import"../../../../icon/gator/templates/house-simple.js";import"../../../../icon/gator/templates/inbox.js";import"../../../../icon/gator/templates/info.js";import"../../../../icon/gator/templates/instagram-logo.js";import"../../../../icon/gator/templates/interest-rate.js";import"../../../../icon/gator/templates/invoice.js";import"../../../../icon/gator/templates/label.js";import"../../../../icon/gator/templates/laptop.js";import"../../../../icon/gator/templates/layout.js";import"../../../../icon/gator/templates/lightbulb.js";import"../../../../icon/gator/templates/link.js";import"../../../../icon/gator/templates/linkedin-logo.js";import"../../../../icon/gator/templates/list.js";import"../../../../icon/gator/templates/loading.js";import"../../../../icon/gator/templates/loading-spinner-gif.js";import"../../../../icon/gator/templates/lock.js";import"../../../../icon/gator/templates/magic-wand.js";import"../../../../icon/gator/templates/mail.js";import"../../../../icon/gator/templates/mail-open.js";import"../../../../icon/gator/templates/mailbox.js";import"../../../../icon/gator/templates/map.js";import"../../../../icon/gator/templates/menu-hamburger.js";import"../../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../../icon/gator/templates/microsoft-word-logo.js";import"../../../../icon/gator/templates/minus.js";import"../../../../icon/gator/templates/minus-circle.js";import"../../../../icon/gator/templates/minus-square.js";import"../../../../icon/gator/templates/mobile-phone-2.js";import"../../../../icon/gator/templates/monitor.js";import"../../../../icon/gator/templates/move.js";import"../../../../icon/gator/templates/move-doc.js";import"../../../../icon/gator/templates/music.js";import"../../../../icon/gator/templates/number-1.js";import"../../../../icon/gator/templates/number-2.js";import"../../../../icon/gator/templates/number-3.js";import"../../../../icon/gator/templates/overflow-menu.js";import"../../../../icon/gator/templates/paper-airplane.js";import"../../../../icon/gator/templates/paperclip.js";import"../../../../icon/gator/templates/pen.js";import"../../../../icon/gator/templates/pencil.js";import"../../../../icon/gator/templates/pencil-paper.js";import"../../../../icon/gator/templates/people-multiple.js";import"../../../../icon/gator/templates/people-share.js";import"../../../../icon/gator/templates/percent.js";import"../../../../icon/gator/templates/person.js";import"../../../../icon/gator/templates/person-add.js";import"../../../../icon/gator/templates/person-check.js";import"../../../../icon/gator/templates/person-lock.js";import"../../../../icon/gator/templates/phone.js";import"../../../../icon/gator/templates/phone-alert.js";import"../../../../icon/gator/templates/phone-mobile.js";import"../../../../icon/gator/templates/picture.js";import"../../../../icon/gator/templates/pin.js";import"../../../../icon/gator/templates/pinterest-logo.js";import"../../../../icon/gator/templates/plus.js";import"../../../../icon/gator/templates/plus-circle.js";import"../../../../icon/gator/templates/printer.js";import"../../../../icon/gator/templates/question-chat-bubble.js";import"../../../../icon/gator/templates/question-circle.js";import"../../../../icon/gator/templates/question-mark.js";import"../../../../icon/gator/templates/radio.js";import"../../../../icon/gator/templates/radio-selected.js";import"../../../../icon/gator/templates/receipt.js";import"../../../../icon/gator/templates/restricted.js";import"../../../../icon/gator/templates/sandals.js";import"../../../../icon/gator/templates/save.js";import"../../../../icon/gator/templates/screen.js";import"../../../../icon/gator/templates/search.js";import"../../../../icon/gator/templates/settings.js";import"../../../../icon/gator/templates/share-1.js";import"../../../../icon/gator/templates/share-2.js";import"../../../../icon/gator/templates/shield-lock.js";import"../../../../icon/gator/templates/shield-warning.js";import"../../../../icon/gator/templates/sidebar.js";import"../../../../icon/gator/templates/sidebar-simple.js";import"../../../../icon/gator/templates/smart-home.js";import"../../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../../icon/gator/templates/sort-reverse-variant.js";import"../../../../icon/gator/templates/sort-variant.js";import"../../../../icon/gator/templates/sparkle.js";import"../../../../icon/gator/templates/sparkle-filled.js";import"../../../../icon/gator/templates/speech-bubble.js";import"../../../../icon/gator/templates/stack.js";import"../../../../icon/gator/templates/stamp.js";import"../../../../icon/gator/templates/star.js";import"../../../../icon/gator/templates/star-four.js";import"../../../../icon/gator/templates/star-four-filled.js";import"../../../../icon/gator/templates/stopwatch.js";import"../../../../icon/gator/templates/sun.js";import"../../../../icon/gator/templates/sync.js";import"../../../../icon/gator/templates/tab-arrows.js";import"../../../../icon/gator/templates/target.js";import"../../../../icon/gator/templates/thumbs-down.js";import"../../../../icon/gator/templates/thumbs-up.js";import"../../../../icon/gator/templates/tools.js";import"../../../../icon/gator/templates/touch-id.js";import"../../../../icon/gator/templates/trash.js";import"../../../../icon/gator/templates/twitter-logo.js";import"../../../../icon/gator/templates/unlink.js";import"../../../../icon/gator/templates/unlock.js";import"../../../../icon/gator/templates/upload.js";import"../../../../icon/gator/templates/video.js";import"../../../../icon/gator/templates/warning.js";import"../../../../icon/gator/templates/warning-circle.js";import"../../../../icon/gator/templates/warning-diamond.js";import"../../../../icon/gator/templates/warning-octagon.js";import"../../../../icon/gator/templates/wet-sign.js";import"../../../../icon/gator/templates/wifi.js";import"../../../../icon/gator/templates/wifi-off.js";import"../../../../icon/gator/templates/x-logo.js";import"../../../../icon/gator/templates/yelp-logo.js";import"../../../../icon/gator/templates/youtube-logo.js";import"../../../../icon/gator/templates/zillow-logo.js";import{N as f}from"../../../../../utils/components/ngc-component.js";import"../../../../icon/icon-registry.js";import"../../../../../assets/index-chunk5.js";import"../../../../../assets/index-chunk6.js";import"../../../../../utils/components/testable-lit-element/testable-lit-element.js";const v=".gator-file-upload-preview{font-family:var(--ngc-font-family-body),sans-serif;display:flex;flex-direction:row;justify-content:space-between;border-radius:var(--radius-medium, 8px);border:1px solid var(--color-stroke-secondary, #BFBFBF);padding:var(--spacing-gap-12, 12px) var(--spacing-gap-16, 16px)}.gator-file-upload-preview-icon{display:flex;margin-right:var(--spacing-gap-16, 16px)}.gator-file-upload-preview-icon ngc-icon{--ngc-icon-border-radius: 50%;--ngc-icon-padding: var(--spacing-gap-8, 8px)}.gator-file-upload-preview-left{display:flex;flex-direction:row;align-items:center}.gator-file-upload-preview-content{display:flex}.gator-file-upload-preview-actions{display:flex;justify-content:end}";var g=Object.defineProperty,u=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,y=Reflect.get,l=(p,t,o,m)=>{for(var r=m>1?void 0:m?u(t,o):t,e=p.length-1,a;e>=0;e--)(a=p[e])&&(r=(m?a(t,o,r):a(r))||r);return m&&r&&g(t,o,r),r},x=(p,t,o)=>y(w(p),o,t);let i=class extends f{constructor(){super(...arguments),this.value=[]}render(){return d`
|
|
1
|
+
import{t as c}from"../../../../../assets/index-chunk3.js";import{n as d}from"../../../../../assets/index-chunk.js";import{a as f,x as l}from"../../../../../assets/index-chunk2.js";import"../../../../icon/gator/icon.gator.js";import"../../../../icon/gator/templates/add-link.js";import"../../../../icon/gator/templates/airplane.js";import"../../../../icon/gator/templates/alarm.js";import"../../../../icon/gator/templates/apartment.js";import"../../../../icon/gator/templates/arrow-around.js";import"../../../../icon/gator/templates/arrow-down.js";import"../../../../icon/gator/templates/arrow-left.js";import"../../../../icon/gator/templates/arrow-line-left.js";import"../../../../icon/gator/templates/arrow-line-right.js";import"../../../../icon/gator/templates/arrow-right.js";import"../../../../icon/gator/templates/arrow-up.js";import"../../../../icon/gator/templates/bank.js";import"../../../../icon/gator/templates/bell.js";import"../../../../icon/gator/templates/bell-disabled.js";import"../../../../icon/gator/templates/binoculars.js";import"../../../../icon/gator/templates/book.js";import"../../../../icon/gator/templates/box.js";import"../../../../icon/gator/templates/cake.js";import"../../../../icon/gator/templates/calculator.js";import"../../../../icon/gator/templates/calendar.js";import"../../../../icon/gator/templates/camera.js";import"../../../../icon/gator/templates/caret-up-down.js";import"../../../../icon/gator/templates/case.js";import"../../../../icon/gator/templates/chart-rise.js";import"../../../../icon/gator/templates/chat.js";import"../../../../icon/gator/templates/check.js";import"../../../../icon/gator/templates/check-circle.js";import"../../../../icon/gator/templates/checkbox.js";import"../../../../icon/gator/templates/checkbox-selected.js";import"../../../../icon/gator/templates/chevron-down.js";import"../../../../icon/gator/templates/chevron-left.js";import"../../../../icon/gator/templates/chevron-right.js";import"../../../../icon/gator/templates/chevron-up.js";import"../../../../icon/gator/templates/circle.js";import"../../../../icon/gator/templates/circle-arrow-down.js";import"../../../../icon/gator/templates/circle-arrow-left.js";import"../../../../icon/gator/templates/circle-arrow-right.js";import"../../../../icon/gator/templates/circle-arrow-up.js";import"../../../../icon/gator/templates/circle-filled.js";import"../../../../icon/gator/templates/city.js";import"../../../../icon/gator/templates/clipboard.js";import"../../../../icon/gator/templates/clock.js";import"../../../../icon/gator/templates/clock-clockwise.js";import"../../../../icon/gator/templates/clock-counter-clockwise.js";import"../../../../icon/gator/templates/collapse.js";import"../../../../icon/gator/templates/cone.js";import"../../../../icon/gator/templates/contact-info.js";import"../../../../icon/gator/templates/copy.js";import"../../../../icon/gator/templates/credit-card.js";import"../../../../icon/gator/templates/crop.js";import"../../../../icon/gator/templates/crosshairs.js";import"../../../../icon/gator/templates/currency-dollar-simple.js";import"../../../../icon/gator/templates/currency-eur.js";import"../../../../icon/gator/templates/currency-gbp.js";import"../../../../icon/gator/templates/currency-inr.js";import"../../../../icon/gator/templates/currency-jpy.js";import"../../../../icon/gator/templates/currency-krw.js";import"../../../../icon/gator/templates/currency-kzt.js";import"../../../../icon/gator/templates/currency-ngn.js";import"../../../../icon/gator/templates/currency-rub.js";import"../../../../icon/gator/templates/cursor.js";import"../../../../icon/gator/templates/cursor-arrow.js";import"../../../../icon/gator/templates/cursor-hand.js";import"../../../../icon/gator/templates/dashboard.js";import"../../../../icon/gator/templates/delete.js";import"../../../../icon/gator/templates/dna.js";import"../../../../icon/gator/templates/document.js";import"../../../../icon/gator/templates/document-add.js";import"../../../../icon/gator/templates/document-check.js";import"../../../../icon/gator/templates/document-e-sign.js";import"../../../../icon/gator/templates/document-image.js";import"../../../../icon/gator/templates/document-pdf.js";import"../../../../icon/gator/templates/document-sign.js";import"../../../../icon/gator/templates/document-zip.js";import"../../../../icon/gator/templates/dollar-bills.js";import"../../../../icon/gator/templates/dollar-house.js";import"../../../../icon/gator/templates/down-payment.js";import"../../../../icon/gator/templates/download.js";import"../../../../icon/gator/templates/drag-drop.js";import"../../../../icon/gator/templates/earth.js";import"../../../../icon/gator/templates/exit.js";import"../../../../icon/gator/templates/exit-circle.js";import"../../../../icon/gator/templates/exit-left.js";import"../../../../icon/gator/templates/expand.js";import"../../../../icon/gator/templates/expand-arrows.js";import"../../../../icon/gator/templates/export.js";import"../../../../icon/gator/templates/eye.js";import"../../../../icon/gator/templates/eye-closed.js";import"../../../../icon/gator/templates/eye-crossed.js";import"../../../../icon/gator/templates/facebook-logo.js";import"../../../../icon/gator/templates/file-code.js";import"../../../../icon/gator/templates/files.js";import"../../../../icon/gator/templates/filter-funnel.js";import"../../../../icon/gator/templates/filters.js";import"../../../../icon/gator/templates/filters-2.js";import"../../../../icon/gator/templates/flame.js";import"../../../../icon/gator/templates/flash-off.js";import"../../../../icon/gator/templates/flash-on.js";import"../../../../icon/gator/templates/folder.js";import"../../../../icon/gator/templates/gauge.js";import"../../../../icon/gator/templates/hammer.js";import"../../../../icon/gator/templates/hand-pointing.js";import"../../../../icon/gator/templates/heart.js";import"../../../../icon/gator/templates/home-door.js";import"../../../../icon/gator/templates/home-finance.js";import"../../../../icon/gator/templates/home-finance-arrow.js";import"../../../../icon/gator/templates/home-search.js";import"../../../../icon/gator/templates/house.js";import"../../../../icon/gator/templates/house-simple.js";import"../../../../icon/gator/templates/inbox.js";import"../../../../icon/gator/templates/info.js";import"../../../../icon/gator/templates/instagram-logo.js";import"../../../../icon/gator/templates/interest-rate.js";import"../../../../icon/gator/templates/invoice.js";import"../../../../icon/gator/templates/label.js";import"../../../../icon/gator/templates/laptop.js";import"../../../../icon/gator/templates/layout.js";import"../../../../icon/gator/templates/lightbulb.js";import"../../../../icon/gator/templates/link.js";import"../../../../icon/gator/templates/linkedin-logo.js";import"../../../../icon/gator/templates/list.js";import"../../../../icon/gator/templates/loading.js";import"../../../../icon/gator/templates/loading-spinner-gif.js";import"../../../../icon/gator/templates/lock.js";import"../../../../icon/gator/templates/magic-wand.js";import"../../../../icon/gator/templates/mail.js";import"../../../../icon/gator/templates/mail-open.js";import"../../../../icon/gator/templates/mailbox.js";import"../../../../icon/gator/templates/map.js";import"../../../../icon/gator/templates/menu-hamburger.js";import"../../../../icon/gator/templates/microsoft-excel-logo.js";import"../../../../icon/gator/templates/microsoft-outlook-logo.js";import"../../../../icon/gator/templates/microsoft-powerpoint-logo.js";import"../../../../icon/gator/templates/microsoft-teams-logo.js";import"../../../../icon/gator/templates/microsoft-word-logo.js";import"../../../../icon/gator/templates/minus.js";import"../../../../icon/gator/templates/minus-circle.js";import"../../../../icon/gator/templates/minus-square.js";import"../../../../icon/gator/templates/mobile-phone-2.js";import"../../../../icon/gator/templates/monitor.js";import"../../../../icon/gator/templates/move.js";import"../../../../icon/gator/templates/move-doc.js";import"../../../../icon/gator/templates/music.js";import"../../../../icon/gator/templates/number-1.js";import"../../../../icon/gator/templates/number-2.js";import"../../../../icon/gator/templates/number-3.js";import"../../../../icon/gator/templates/overflow-menu.js";import"../../../../icon/gator/templates/paper-airplane.js";import"../../../../icon/gator/templates/paperclip.js";import"../../../../icon/gator/templates/pen.js";import"../../../../icon/gator/templates/pencil.js";import"../../../../icon/gator/templates/pencil-paper.js";import"../../../../icon/gator/templates/people-multiple.js";import"../../../../icon/gator/templates/people-share.js";import"../../../../icon/gator/templates/percent.js";import"../../../../icon/gator/templates/person.js";import"../../../../icon/gator/templates/person-add.js";import"../../../../icon/gator/templates/person-check.js";import"../../../../icon/gator/templates/person-lock.js";import"../../../../icon/gator/templates/phone.js";import"../../../../icon/gator/templates/phone-alert.js";import"../../../../icon/gator/templates/phone-mobile.js";import"../../../../icon/gator/templates/picture.js";import"../../../../icon/gator/templates/pin.js";import"../../../../icon/gator/templates/pinterest-logo.js";import"../../../../icon/gator/templates/plus.js";import"../../../../icon/gator/templates/plus-circle.js";import"../../../../icon/gator/templates/printer.js";import"../../../../icon/gator/templates/question-chat-bubble.js";import"../../../../icon/gator/templates/question-circle.js";import"../../../../icon/gator/templates/question-mark.js";import"../../../../icon/gator/templates/radio.js";import"../../../../icon/gator/templates/radio-selected.js";import"../../../../icon/gator/templates/receipt.js";import"../../../../icon/gator/templates/restricted.js";import"../../../../icon/gator/templates/sandals.js";import"../../../../icon/gator/templates/save.js";import"../../../../icon/gator/templates/screen.js";import"../../../../icon/gator/templates/search.js";import"../../../../icon/gator/templates/settings.js";import"../../../../icon/gator/templates/share-1.js";import"../../../../icon/gator/templates/share-2.js";import"../../../../icon/gator/templates/shield-lock.js";import"../../../../icon/gator/templates/shield-warning.js";import"../../../../icon/gator/templates/sidebar.js";import"../../../../icon/gator/templates/sidebar-simple.js";import"../../../../icon/gator/templates/smart-home.js";import"../../../../icon/gator/templates/sort-arrow-solid-down.js";import"../../../../icon/gator/templates/sort-arrow-solid-left.js";import"../../../../icon/gator/templates/sort-arrow-solid-right.js";import"../../../../icon/gator/templates/sort-arrow-solid-up.js";import"../../../../icon/gator/templates/sort-arrow-solid-up-down.js";import"../../../../icon/gator/templates/sort-reverse-variant.js";import"../../../../icon/gator/templates/sort-variant.js";import"../../../../icon/gator/templates/sparkle.js";import"../../../../icon/gator/templates/sparkle-filled.js";import"../../../../icon/gator/templates/speech-bubble.js";import"../../../../icon/gator/templates/stack.js";import"../../../../icon/gator/templates/stamp.js";import"../../../../icon/gator/templates/star.js";import"../../../../icon/gator/templates/star-four.js";import"../../../../icon/gator/templates/star-four-filled.js";import"../../../../icon/gator/templates/stopwatch.js";import"../../../../icon/gator/templates/sun.js";import"../../../../icon/gator/templates/sync.js";import"../../../../icon/gator/templates/tab-arrows.js";import"../../../../icon/gator/templates/target.js";import"../../../../icon/gator/templates/thumbs-down.js";import"../../../../icon/gator/templates/thumbs-up.js";import"../../../../icon/gator/templates/tools.js";import"../../../../icon/gator/templates/touch-id.js";import"../../../../icon/gator/templates/trash.js";import"../../../../icon/gator/templates/twitter-logo.js";import"../../../../icon/gator/templates/unlink.js";import"../../../../icon/gator/templates/unlock.js";import"../../../../icon/gator/templates/upload.js";import"../../../../icon/gator/templates/video.js";import"../../../../icon/gator/templates/warning.js";import"../../../../icon/gator/templates/warning-circle.js";import"../../../../icon/gator/templates/warning-diamond.js";import"../../../../icon/gator/templates/warning-octagon.js";import"../../../../icon/gator/templates/wet-sign.js";import"../../../../icon/gator/templates/wifi.js";import"../../../../icon/gator/templates/wifi-off.js";import"../../../../icon/gator/templates/x-logo.js";import"../../../../icon/gator/templates/yelp-logo.js";import"../../../../icon/gator/templates/youtube-logo.js";import"../../../../icon/gator/templates/zillow-logo.js";import{N as g}from"../../../../../utils/components/ngc-component.js";import"../../../../icon/icon-registry.js";import"../../../../../assets/index-chunk5.js";import"../../../../../assets/index-chunk6.js";import"../../../../../utils/components/testable-lit-element/testable-lit-element.js";const v=".gator-file-upload-preview{font-family:var(--ngc-font-family-body),sans-serif;display:flex;flex-direction:row;justify-content:space-between;border-radius:var(--radius-medium, 8px);border:1px solid var(--color-stroke-secondary, #BFBFBF);padding:var(--spacing-gap-12, 12px) var(--spacing-gap-16, 16px)}.gator-file-upload-preview-icon{display:flex;margin-right:var(--spacing-gap-16, 16px)}.gator-file-upload-preview-icon ngc-icon{--ngc-icon-border-radius: 50%;--ngc-icon-padding: var(--spacing-gap-8, 8px)}.gator-file-upload-preview-left{display:flex;flex-direction:row;align-items:center}.gator-file-upload-preview-content{display:flex}.gator-file-upload-preview-actions{display:flex;justify-content:end}";/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/const u=t=>typeof t!="string"&&"strTag"in t,h=(t,r,o)=>{let p=t[0];for(let i=1;i<t.length;i++)p+=r[i-1],p+=t[i];return p};/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2021 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/const w=t=>u(t)?h(t.strings,t.values):t;let a=w;/**
|
|
10
|
+
* @license
|
|
11
|
+
* Copyright 2020 Google LLC
|
|
12
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
+
*/class y{constructor(){this.settled=!1,this.promise=new Promise((r,o)=>{this._resolve=r,this._reject=o})}resolve(r){this.settled=!0,this._resolve(r)}reject(r){this.settled=!0,this._reject(r)}}/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright 2014 Travis Webb
|
|
16
|
+
* SPDX-License-Identifier: MIT
|
|
17
|
+
*/for(let t=0;t<256;t++)(t>>4&15).toString(16)+(t&15).toString(16);/**
|
|
18
|
+
* @license
|
|
19
|
+
* Copyright 2021 Google LLC
|
|
20
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
21
|
+
*/let x=new y;x.resolve();var _=Object.defineProperty,b=Object.getOwnPropertyDescriptor,j=Object.getPrototypeOf,P=Reflect.get,n=(t,r,o,p)=>{for(var i=p>1?void 0:p?b(r,o):r,e=t.length-1,s;e>=0;e--)(s=t[e])&&(i=(p?s(r,o,i):s(i))||i);return p&&i&&_(r,o,i),i},O=(t,r,o)=>P(j(t),o,r);let m=class extends g{constructor(){super(...arguments),this.value=[]}render(){return l`
|
|
2
22
|
<div class="gator-file-upload-preview">
|
|
3
23
|
<div class="gator-file-upload-preview-left">
|
|
4
24
|
<div class="gator-file-upload-preview-icon">
|
|
@@ -16,4 +36,4 @@ import{t as n}from"../../../../../assets/index-chunk3.js";import{n as s}from"../
|
|
|
16
36
|
<slot name="actions"></slot>
|
|
17
37
|
</div>
|
|
18
38
|
</div>
|
|
19
|
-
`}get contentText(){return this.value?this.value.length>1
|
|
39
|
+
`}get contentText(){return this.value?this.value.length>1?a(l`${this.value.length} Files Uploaded`):this.value.length===1?`${this.value[0].name}`:"":a("No Files Uploaded")}};m.styles=[...O(m,m,"styles"),f(v)];n([d({type:Array})],m.prototype,"value",2);m=n([c("ngc-file-upload-preview")],m);export{a as m};
|