@orangelogic/orange-dam-content-browser-sdk 2.3.6-beta-2 → 2.3.6-beta-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.
|
@@ -1702,7 +1702,7 @@
|
|
|
1702
1702
|
.content-browser-format__footer__button cx-button-group {
|
|
1703
1703
|
width: 100%;
|
|
1704
1704
|
}
|
|
1705
|
-
`;var N2=Object.defineProperty,z2=Object.getOwnPropertyDescriptor,F2=(e,t,n,i)=>{for(var r,o=i>1?void 0:i?z2(t,n):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i?r(t,n,o):r(o))||o);return i&&o&&N2(t,n,o),o};const j2=[{key:"UTM_source",value:""},{key:"UTM_campaign",value:""},{key:"UTM_description",value:""}],U2=[{label:"Free",value:"free"},{label:"Widescreen (16:9)",value:"16:9"},{label:"Phone (9:16)",value:"9:16"},{label:"Presentation (4:3)",value:"4:3"},{label:"Square (1:1)",value:"1:1"},{label:"Landscape (3:2)",value:"3:2"},{label:"Portrait (2:3)",value:"2:3"}],H2=[{label:"Manual focus",value:"manual"},{label:"Center focus",value:"center"}];let Q2=class extends Nn{constructor(){super(...arguments),this.localize=new lc(this),this.boundary=document.body,this.availableExtensions=null,this.supportedExtensions=[],this.supportedRepresentativeSubtypes=[],this.autoExtension="",this.ctaText="",this.ctaTextTransform="capitalize",this.canCustomFormat=!1,this.canFavorite=!1,this.canPinAsset=!1,this.canTrack=!1,this.canUseProxies=!1,this.canViewVersions=!1,this.variant=vC.Dialog,this.loadingFavorites=!1,this.loadingPinAsset=!1,this.loadingProxies=!1,this.disabledConfirm=!1,this.token="",this.baseUrl="",this.asset=void 0,this.isOpen=!1,this.isFavorite=!1,this.isAssetPinned=!1,this.proxies=[],this.showVersionHistory=!1,this.showCustomFormat=!1,this.loadingVersionHistory=!1,this.versions=[],this.filteredProxies=[],this.selectedProxy="",this.lastProxyBeforeCustomFormat="",this.confirmedTransformations=[],this.confirmedFormat=void 0,this.loadingConfirm=!1,this.enabledTracking=!1,this.trackingParameters=j2}get shouldAppendAutoExtension(){return!!this.autoExtension&&this.supportedExtensions.includes(this.autoExtension)}get canUseATS(){if(!this.asset)return!1;const e=(this.availableExtensions&&this.asset.docType?Ak([...this.availableExtensions[this.asset.docType],{displayName:this.localize.term("automatic"),value:this.autoExtension}],"value"):[{displayName:this.localize.term("automatic"),value:this.autoExtension}]).filter(e=>this.shouldAppendAutoExtension||e.value!==this.autoExtension);return this.canCustomFormat&&e.some(e=>e.value===this.asset.extension)}handleSupportedExtensionsChange(){var e,t;this.filteredProxies=this.proxies.filter(e=>{var t,n,i;const r=null!=(i=null==(n=null==(t=this.asset)?void 0:t.extension)?void 0:n.replace(/^\./,""))?i:"";return!(!e.extension&&this.asset&&r)||this.supportedExtensions.includes(r)}),this.selectedProxy=null!=(t=null==(e=this.filteredProxies[0])?void 0:e.id)?t:""}open({asset:e,isFavorite:t,isAssetPinned:n=!1,proxies:i}){this.asset=e,this.isFavorite=t,this.isAssetPinned=n,this.proxies=i,this.isOpen=!0}hide(){this.handleClose()}setVersionHistory(e){this.versions=e,this.loadingVersionHistory=!1}setIsFavorite(e){this.isFavorite=e,this.loadingFavorites=!1}setIsAssetPinned(e){this.isAssetPinned=e,this.loadingPinAsset=!1}setLoadingConfirm(e){this.loadingConfirm=e}mapFormatConfirmPayload(e,t){var n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b;return{asset:e,extension:null!=(i=null==(n=this.confirmedFormat)?void 0:n.extension)?i:"",parameters:this.enabledTracking?this.trackingParameters:void 0,proxyPreference:null!=(r=null==t?void 0:t.proxyName)?r:"",sourceProxyMetadata:{cdnName:null!=(o=null==t?void 0:t.cdnName)?o:null,extension:"TRX"===(null==t?void 0:t.proxyName)?e.extension:null!=(a=null==t?void 0:t.extension)?a:null,height:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(s=e.height)?s:"0",10):null!=(l=null==t?void 0:t.formatHeight)?l:null,isCustomFormat:null,permanentLink:null!=(c=null==t?void 0:t.permanentLink)?c:null,proxyLabel:null!=(u=null==t?void 0:t.proxyLabel)?u:null,proxyName:null!=(d=null==t?void 0:t.proxyName)?d:null,width:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(h=e.width)?h:"0",10):null!=(p=null==t?void 0:t.formatWidth)?p:null},transformations:this.confirmedTransformations,transformedAssetMetadata:{extension:null!=(m=null==(f=this.confirmedFormat)?void 0:f.extension)?m:null,height:null!=(v=null==(g=this.confirmedFormat)?void 0:g.height)?v:null,isCustomFormat:!0,permanentLink:null,width:null!=(b=null==(y=this.confirmedFormat)?void 0:y.width)?b:null}}}mapProxyConfirmPayload(e,t){var n,i,r,o,a,s,l,c,u,d,h,p;return{asset:e,extension:null!=(n=null==t?void 0:t.extension)?n:e.extension,parameters:this.enabledTracking?this.trackingParameters:void 0,permanentLink:null!=(i=null==t?void 0:t.permanentLink)?i:void 0,proxyPreference:null!=(r=null==t?void 0:t.proxyName)?r:"",selectedProxyMetadata:{cdnName:null!=(o=null==t?void 0:t.cdnName)?o:null,extension:"TRX"===(null==t?void 0:t.proxyName)?e.extension:null!=(a=null==t?void 0:t.extension)?a:null,height:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(s=e.height)?s:"0",10):null!=(l=null==t?void 0:t.formatHeight)?l:null,isCustomFormat:!1,permanentLink:null!=(c=null==t?void 0:t.permanentLink)?c:null,proxyLabel:null!=(u=null==t?void 0:t.proxyLabel)?u:null,proxyName:null!=(d=null==t?void 0:t.proxyName)?d:null,width:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(h=e.width)?h:"0",10):null!=(p=null==t?void 0:t.formatWidth)?p:null},useRepresentative:this.selectedProxy===v2}}handleCancelCustomFormat(){this.assetLinkFormat.setActiveSetting(""),this.showCustomFormat=!1,this.selectedProxy=this.confirmedFormat||0!==this.confirmedTransformations.length?this.selectedProxy:this.lastProxyBeforeCustomFormat}handleDoneCustomFormat(){this.confirmedTransformations=this.assetLinkFormat.transformations,this.confirmedFormat=this.assetLinkFormat.selectedFormat,this.assetLinkFormat.setActiveSetting(""),this.assetLinkFormat.selectedProxy&&(this.lastProxyBeforeCustomFormat=this.assetLinkFormat.selectedProxy),this.showCustomFormat=!1}handleFavorite(){var e;!this.loadingFavorites&&(null==(e=this.asset)?void 0:e.id)&&(this.loadingFavorites=!0,this.emit("cx-content-browser-format-dialog-favorite-change",{detail:{assetId:this.asset.id,isFavorite:this.isFavorite}}))}handlePinAsset(){var e;!this.loadingPinAsset&&(null==(e=this.asset)?void 0:e.id)&&(this.loadingPinAsset=!0,this.emit("cx-content-browser-format-dialog-pin-asset-change",{detail:{assetId:this.asset.id,isPinned:this.isAssetPinned}}))}handleProxyConfirm(){var e,t;if(!this.asset)return;if(!this.canUseProxies)return this.loadingConfirm=!0,void this.emit("cx-content-browser-format-dialog-proxy-confirm",{detail:this.mapProxyConfirmPayload(this.asset)});const n=null==(e=this.filteredProxies)?void 0:e.find(e=>e.id===this.selectedProxy);if(this.selectedProxy===y2){const e=null==(t=this.filteredProxies)?void 0:t.find(e=>e.id===this.lastProxyBeforeCustomFormat),n=this.mapFormatConfirmPayload(this.asset,e);this.loadingConfirm=!0,this.emit("cx-content-browser-format-dialog-format-confirm",{detail:n})}else{if(!n&&this.selectedProxy!==v2)return;const e=this.mapProxyConfirmPayload(this.asset,n);this.loadingConfirm=!0,this.emit("cx-content-browser-format-dialog-proxy-confirm",{detail:e})}}handleVersionHistory(){this.asset&&(this.loadingVersionHistory=!0,this.showVersionHistory=!0,this.emit("cx-content-browser-format-dialog-version-history-open",{detail:{assetId:this.asset.id}}))}handleProxySelect(e){const t=e.detail.item.value;if(t===y2)return this.lastProxyBeforeCustomFormat=this.selectedProxy,this.showCustomFormat=!0,void(this.selectedProxy=y2);if("tracking"!==t)if(t!==v2){if(t&&this.proxies){if(!this.proxies.map(e=>e.id).includes(t))return;this.selectedProxy=t,this.confirmedFormat=void 0,this.confirmedTransformations.length>0&&(this.confirmedTransformations=[])}}else this.selectedProxy=v2;else this.enabledTracking=!this.enabledTracking}handleTrackingParametersChange(e){this.trackingParameters=e.detail.values}renderHeader(){var e,t;return this.showVersionHistory?He`
|
|
1705
|
+
`;var N2=Object.defineProperty,z2=Object.getOwnPropertyDescriptor,F2=(e,t,n,i)=>{for(var r,o=i>1?void 0:i?z2(t,n):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i?r(t,n,o):r(o))||o);return i&&o&&N2(t,n,o),o};const j2=[{key:"UTM_source",value:""},{key:"UTM_campaign",value:""},{key:"UTM_description",value:""}],U2=[{label:"Free",value:"free"},{label:"Widescreen (16:9)",value:"16:9"},{label:"Phone (9:16)",value:"9:16"},{label:"Presentation (4:3)",value:"4:3"},{label:"Square (1:1)",value:"1:1"},{label:"Landscape (3:2)",value:"3:2"},{label:"Portrait (2:3)",value:"2:3"}],H2=[{label:"Manual focus",value:"manual"},{label:"Center focus",value:"center"}];let Q2=class extends Nn{constructor(){super(...arguments),this.localize=new lc(this),this.boundary=document.body,this.availableExtensions=null,this.supportedExtensions=[],this.supportedRepresentativeSubtypes=[],this.autoExtension="",this.ctaText="",this.ctaTextTransform="capitalize",this.canCustomFormat=!1,this.canFavorite=!1,this.canPinAsset=!1,this.canTrack=!1,this.canUseProxies=!1,this.simplePick=!1,this.canViewVersions=!1,this.variant=vC.Dialog,this.loadingFavorites=!1,this.loadingPinAsset=!1,this.loadingProxies=!1,this.disabledConfirm=!1,this.token="",this.baseUrl="",this.asset=void 0,this.isOpen=!1,this.isFavorite=!1,this.isAssetPinned=!1,this.proxies=[],this.showVersionHistory=!1,this.showCustomFormat=!1,this.loadingVersionHistory=!1,this.versions=[],this.filteredProxies=[],this.selectedProxy="",this.lastProxyBeforeCustomFormat="",this.confirmedTransformations=[],this.confirmedFormat=void 0,this.loadingConfirm=!1,this.enabledTracking=!1,this.trackingParameters=j2}get shouldAppendAutoExtension(){return!!this.autoExtension&&this.supportedExtensions.includes(this.autoExtension)}get canUseATS(){if(!this.asset)return!1;const e=(this.availableExtensions&&this.asset.docType?Ak([...this.availableExtensions[this.asset.docType],{displayName:this.localize.term("automatic"),value:this.autoExtension}],"value"):[{displayName:this.localize.term("automatic"),value:this.autoExtension}]).filter(e=>this.shouldAppendAutoExtension||e.value!==this.autoExtension);return this.canCustomFormat&&e.some(e=>e.value===this.asset.extension)}handleSupportedExtensionsChange(){var e,t;this.filteredProxies=this.proxies.filter(e=>{var t,n,i;const r=null!=(i=null==(n=null==(t=this.asset)?void 0:t.extension)?void 0:n.replace(/^\./,""))?i:"";return!(!e.extension&&this.asset&&r)||this.supportedExtensions.includes(r)}),this.selectedProxy=null!=(t=null==(e=this.filteredProxies[0])?void 0:e.id)?t:""}open({asset:e,isFavorite:t,isAssetPinned:n=!1,proxies:i}){this.asset=e,this.isFavorite=t,this.isAssetPinned=n,this.proxies=i,this.isOpen=!0}hide(){this.handleClose()}setVersionHistory(e){this.versions=e,this.loadingVersionHistory=!1}setIsFavorite(e){this.isFavorite=e,this.loadingFavorites=!1}setIsAssetPinned(e){this.isAssetPinned=e,this.loadingPinAsset=!1}setLoadingConfirm(e){this.loadingConfirm=e}mapFormatConfirmPayload(e,t){var n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,y,b;return{asset:e,extension:null!=(i=null==(n=this.confirmedFormat)?void 0:n.extension)?i:"",parameters:this.enabledTracking?this.trackingParameters:void 0,proxyPreference:null!=(r=null==t?void 0:t.proxyName)?r:"",sourceProxyMetadata:{cdnName:null!=(o=null==t?void 0:t.cdnName)?o:null,extension:"TRX"===(null==t?void 0:t.proxyName)?e.extension:null!=(a=null==t?void 0:t.extension)?a:null,height:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(s=e.height)?s:"0",10):null!=(l=null==t?void 0:t.formatHeight)?l:null,isCustomFormat:null,permanentLink:null!=(c=null==t?void 0:t.permanentLink)?c:null,proxyLabel:null!=(u=null==t?void 0:t.proxyLabel)?u:null,proxyName:null!=(d=null==t?void 0:t.proxyName)?d:null,width:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(h=e.width)?h:"0",10):null!=(p=null==t?void 0:t.formatWidth)?p:null},transformations:this.confirmedTransformations,transformedAssetMetadata:{extension:null!=(m=null==(f=this.confirmedFormat)?void 0:f.extension)?m:null,height:null!=(v=null==(g=this.confirmedFormat)?void 0:g.height)?v:null,isCustomFormat:!0,permanentLink:null,width:null!=(b=null==(y=this.confirmedFormat)?void 0:y.width)?b:null}}}mapProxyConfirmPayload(e,t){var n,i,r,o,a,s,l,c,u,d,h,p;return{asset:e,extension:null!=(n=null==t?void 0:t.extension)?n:e.extension,parameters:this.enabledTracking?this.trackingParameters:void 0,permanentLink:null!=(i=null==t?void 0:t.permanentLink)?i:void 0,proxyPreference:null!=(r=null==t?void 0:t.proxyName)?r:"",selectedProxyMetadata:{cdnName:null!=(o=null==t?void 0:t.cdnName)?o:null,extension:"TRX"===(null==t?void 0:t.proxyName)?e.extension:null!=(a=null==t?void 0:t.extension)?a:null,height:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(s=e.height)?s:"0",10):null!=(l=null==t?void 0:t.formatHeight)?l:null,isCustomFormat:!1,permanentLink:null!=(c=null==t?void 0:t.permanentLink)?c:null,proxyLabel:null!=(u=null==t?void 0:t.proxyLabel)?u:null,proxyName:null!=(d=null==t?void 0:t.proxyName)?d:null,width:"TRX"===(null==t?void 0:t.proxyName)?Number.parseInt(null!=(h=e.width)?h:"0",10):null!=(p=null==t?void 0:t.formatWidth)?p:null},useRepresentative:this.selectedProxy===v2}}handleCancelCustomFormat(){this.assetLinkFormat.setActiveSetting(""),this.showCustomFormat=!1,this.selectedProxy=this.confirmedFormat||0!==this.confirmedTransformations.length?this.selectedProxy:this.lastProxyBeforeCustomFormat}handleDoneCustomFormat(){this.confirmedTransformations=this.assetLinkFormat.transformations,this.confirmedFormat=this.assetLinkFormat.selectedFormat,this.assetLinkFormat.setActiveSetting(""),this.assetLinkFormat.selectedProxy&&(this.lastProxyBeforeCustomFormat=this.assetLinkFormat.selectedProxy),this.showCustomFormat=!1}handleFavorite(){var e;!this.loadingFavorites&&(null==(e=this.asset)?void 0:e.id)&&(this.loadingFavorites=!0,this.emit("cx-content-browser-format-dialog-favorite-change",{detail:{assetId:this.asset.id,isFavorite:this.isFavorite}}))}handlePinAsset(){var e;!this.loadingPinAsset&&(null==(e=this.asset)?void 0:e.id)&&(this.loadingPinAsset=!0,this.emit("cx-content-browser-format-dialog-pin-asset-change",{detail:{assetId:this.asset.id,isPinned:this.isAssetPinned}}))}handleProxyConfirm(){var e,t;if(!this.asset)return;if(!this.canUseProxies)return this.loadingConfirm=!0,void this.emit("cx-content-browser-format-dialog-proxy-confirm",{detail:this.mapProxyConfirmPayload(this.asset)});const n=null==(e=this.filteredProxies)?void 0:e.find(e=>e.id===this.selectedProxy);if(this.selectedProxy===y2){const e=null==(t=this.filteredProxies)?void 0:t.find(e=>e.id===this.lastProxyBeforeCustomFormat),n=this.mapFormatConfirmPayload(this.asset,e);this.loadingConfirm=!0,this.emit("cx-content-browser-format-dialog-format-confirm",{detail:n})}else{if(!n&&this.selectedProxy!==v2)return;const e=this.mapProxyConfirmPayload(this.asset,n);this.loadingConfirm=!0,this.emit("cx-content-browser-format-dialog-proxy-confirm",{detail:e})}}handleVersionHistory(){this.asset&&(this.loadingVersionHistory=!0,this.showVersionHistory=!0,this.emit("cx-content-browser-format-dialog-version-history-open",{detail:{assetId:this.asset.id}}))}handleProxySelect(e){const t=e.detail.item.value;if(t===y2)return this.lastProxyBeforeCustomFormat=this.selectedProxy,this.showCustomFormat=!0,void(this.selectedProxy=y2);if("tracking"!==t)if(t!==v2){if(t&&this.proxies){if(!this.proxies.map(e=>e.id).includes(t))return;this.selectedProxy=t,this.confirmedFormat=void 0,this.confirmedTransformations.length>0&&(this.confirmedTransformations=[])}}else this.selectedProxy=v2;else this.enabledTracking=!this.enabledTracking}handleTrackingParametersChange(e){this.trackingParameters=e.detail.values}renderHeader(){var e,t;return this.showVersionHistory?He`
|
|
1706
1706
|
<cx-space slot="label" justify-content="space-between" align-items="center">
|
|
1707
1707
|
<cx-space
|
|
1708
1708
|
direction="vertical"
|
|
@@ -1793,9 +1793,7 @@
|
|
|
1793
1793
|
></cx-icon-button>
|
|
1794
1794
|
</cx-tooltip>
|
|
1795
1795
|
`,()=>Ve)}
|
|
1796
|
-
`}renderBody(){var e,t,n,i,r,o;if(!this.asset)return Ve;let a,s;return a=this.asset.docType
|
|
1797
|
-
<cx-cropper id="cropper" class="content-browser-format__cropper" fill-image></cx-cropper>
|
|
1798
|
-
`:He`
|
|
1796
|
+
`}renderBody(){var e,t,n,i,r,o;if(!this.asset)return Ve;let a,s;return a=this.simplePick||this.asset.docType!==wk.Image?He`
|
|
1799
1797
|
<cx-content-browser-asset-preview
|
|
1800
1798
|
image-url=${this.asset.imageUrl}
|
|
1801
1799
|
original-url=${this.asset.originalUrl}
|
|
@@ -1806,6 +1804,8 @@
|
|
|
1806
1804
|
controls
|
|
1807
1805
|
?in-cold-storage=${this.asset.inColdStorage}
|
|
1808
1806
|
></cx-content-browser-asset-preview>
|
|
1807
|
+
`:He`
|
|
1808
|
+
<cx-cropper id="cropper" class="content-browser-format__cropper" fill-image></cx-cropper>
|
|
1809
1809
|
`,this.showVersionHistory&&this.asset.id?He`
|
|
1810
1810
|
<cx-content-browser-asset-version-history
|
|
1811
1811
|
?loading=${this.loadingVersionHistory}
|
|
@@ -1830,7 +1830,7 @@
|
|
|
1830
1830
|
></cx-content-browser-asset-proxy-selector>
|
|
1831
1831
|
`),He`
|
|
1832
1832
|
${qT([this.asset],()=>a)}
|
|
1833
|
-
${qT([this.availableExtensions,this.asset,this.proxies,this.confirmedTransformations,this.selectedProxy,this.showCustomFormat],()=>{var e,t,n,i;if((null==(e=this.asset)?void 0:e.docType)!==wk.Image)return Ve;const r=null!=(i=null==(n=null==(t=this.availableExtensions)?void 0:t[this.asset.docType])?void 0:n.map(e=>({displayName:e.displayName,value:e.value})))?i:[];return He`
|
|
1833
|
+
${qT([this.availableExtensions,this.asset,this.proxies,this.confirmedTransformations,this.selectedProxy,this.showCustomFormat,this.simplePick],()=>{var e,t,n,i;if(this.simplePick||(null==(e=this.asset)?void 0:e.docType)!==wk.Image)return Ve;const r=null!=(i=null==(n=null==(t=this.availableExtensions)?void 0:t[this.asset.docType])?void 0:n.map(e=>({displayName:e.displayName,value:e.value})))?i:[];return He`
|
|
1834
1834
|
<cx-asset-link-format
|
|
1835
1835
|
for-cropper="cropper"
|
|
1836
1836
|
hide-header
|
|
@@ -1921,7 +1921,7 @@
|
|
|
1921
1921
|
${this.renderContent()}
|
|
1922
1922
|
</cx-dialog>
|
|
1923
1923
|
`)}
|
|
1924
|
-
`}};Q2.styles=[va,L2],Q2.dependencies={"cx-asset-link-format":UM,"cx-cropper":zI,"cx-content-browser-asset-preview":t2,"cx-content-browser-asset-proxy-selector":b2,"cx-content-browser-asset-version-history":D2,"cx-dialog":BO,"cx-drawer":Rh,"cx-icon-button":Th,"cx-line-clamp":ov,"cx-space":yv,"cx-spinner":wh,"cx-tooltip":Xg,"cx-typography":dv},F2([ft("cx-asset-link-format")],Q2.prototype,"assetLinkFormat",2),F2([dt({reflect:!1,type:Object})],Q2.prototype,"boundary",2),F2([dt({attribute:!1,reflect:!1,type:Object})],Q2.prototype,"availableExtensions",2),F2([dt({attribute:"supported-extensions",converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>(null!=e?e:[]).join(" ")},reflect:!0,type:Array})],Q2.prototype,"supportedExtensions",2),F2([dt({attribute:"supported-representative-subtypes",converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>(null!=e?e:[]).join(" ")},reflect:!0,type:Array})],Q2.prototype,"supportedRepresentativeSubtypes",2),F2([dt({attribute:"auto-extension",reflect:!1,type:String})],Q2.prototype,"autoExtension",2),F2([dt({attribute:"cta-text",reflect:!1,type:String})],Q2.prototype,"ctaText",2),F2([dt({attribute:"cta-text-transform",reflect:!1,type:String})],Q2.prototype,"ctaTextTransform",2),F2([dt({attribute:"can-custom-format",reflect:!1,type:Boolean})],Q2.prototype,"canCustomFormat",2),F2([dt({attribute:"can-favorite",reflect:!1,type:Boolean})],Q2.prototype,"canFavorite",2),F2([dt({attribute:"can-pin-asset",reflect:!1,type:Boolean})],Q2.prototype,"canPinAsset",2),F2([dt({attribute:"can-track",reflect:!1,type:Boolean})],Q2.prototype,"canTrack",2),F2([dt({attribute:"can-use-proxies",reflect:!1,type:Boolean})],Q2.prototype,"canUseProxies",2),F2([dt({attribute:"can-view-versions",reflect:!1,type:Boolean})],Q2.prototype,"canViewVersions",2),F2([dt({reflect:!0,type:String})],Q2.prototype,"variant",2),F2([dt({attribute:"loading-favorites",reflect:!0,type:Boolean})],Q2.prototype,"loadingFavorites",2),F2([dt({attribute:"loading-pin-asset",reflect:!0,type:Boolean})],Q2.prototype,"loadingPinAsset",2),F2([dt({attribute:"loading-proxies",reflect:!0,type:Boolean})],Q2.prototype,"loadingProxies",2),F2([dt({attribute:"disabled-confirm",reflect:!0,type:Boolean})],Q2.prototype,"disabledConfirm",2),F2([dt({attribute:"token",type:String})],Q2.prototype,"token",2),F2([dt({attribute:"base-url",type:String})],Q2.prototype,"baseUrl",2),F2([ht()],Q2.prototype,"asset",2),F2([ht()],Q2.prototype,"isOpen",2),F2([ht()],Q2.prototype,"isFavorite",2),F2([ht()],Q2.prototype,"isAssetPinned",2),F2([ht()],Q2.prototype,"proxies",2),F2([ht()],Q2.prototype,"showVersionHistory",2),F2([ht()],Q2.prototype,"showCustomFormat",2),F2([ht()],Q2.prototype,"loadingVersionHistory",2),F2([ht()],Q2.prototype,"versions",2),F2([ht()],Q2.prototype,"filteredProxies",2),F2([ht()],Q2.prototype,"selectedProxy",2),F2([ht()],Q2.prototype,"lastProxyBeforeCustomFormat",2),F2([ht()],Q2.prototype,"confirmedTransformations",2),F2([ht()],Q2.prototype,"confirmedFormat",2),F2([ht()],Q2.prototype,"loadingConfirm",2),F2([ht()],Q2.prototype,"enabledTracking",2),F2([ht()],Q2.prototype,"trackingParameters",2),F2([VS("proxies",{waitUntilFirstUpdate:!0}),VS("supportedExtensions")],Q2.prototype,"handleSupportedExtensionsChange",1),Q2=F2([Hs("cx-content-browser-format-dialog")],Q2);function V2(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;const G2=(e,t)=>{var n;const i=e._$AN;if(void 0===i)return!1;for(const r of i)null==(n=r._$AO)||n.call(r,t,!1),G2(r,t);return!0},W2=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},q2=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Y2(t)}};function $2(e){void 0!==this._$AN?(W2(this),this._$AM=e,q2(this)):this._$AM=e}function X2(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(i))for(let o=n;o<i.length;o++)G2(i[o],!1),W2(i[o]);else null!=i&&(G2(i,!1),W2(i));else G2(this,e)}const Y2=e=>{e.type==jn&&(null!=e._$AP||(e._$AP=X2),null!=e._$AQ||(e._$AQ=$2))};let K2=class extends Hn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),q2(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,i;e!==this.isConnected&&(this.isConnected=e,e?null==(n=this.reconnected)||n.call(this):null==(i=this.disconnected)||i.call(this)),t&&(G2(this,e),W2(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};class Z2 extends Event{constructor(e){super(Z2.eventName,{bubbles:!1}),this.first=e.first,this.last=e.last}}Z2.eventName="rangeChanged";class J2 extends Event{constructor(e){super(J2.eventName,{bubbles:!1}),this.first=e.first,this.last=e.last}}J2.eventName="visibilityChanged";class e3 extends Event{constructor(){super(e3.eventName,{bubbles:!1})}}e3.eventName="unpinned";class t3{constructor(e){this._element=null;const t=null!=e?e:window;this._node=t,e&&(this._element=e)}get element(){return this._element||document.scrollingElement||document.documentElement}get scrollTop(){return this.element.scrollTop||window.scrollY}get scrollLeft(){return this.element.scrollLeft||window.scrollX}get scrollHeight(){return this.element.scrollHeight}get scrollWidth(){return this.element.scrollWidth}get viewportHeight(){return this._element?this._element.getBoundingClientRect().height:window.innerHeight}get viewportWidth(){return this._element?this._element.getBoundingClientRect().width:window.innerWidth}get maxScrollTop(){return this.scrollHeight-this.viewportHeight}get maxScrollLeft(){return this.scrollWidth-this.viewportWidth}}class n3 extends t3{constructor(e,t){super(t),this._clients=new Set,this._retarget=null,this._end=null,this.__destination=null,this.correctingScrollError=!1,this._checkForArrival=this._checkForArrival.bind(this),this._updateManagedScrollTo=this._updateManagedScrollTo.bind(this),this.scrollTo=this.scrollTo.bind(this),this.scrollBy=this.scrollBy.bind(this);const n=this._node;this._originalScrollTo=n.scrollTo,this._originalScrollBy=n.scrollBy,this._originalScroll=n.scroll,this._attach(e)}get _destination(){return this.__destination}get scrolling(){return null!==this._destination}scrollTo(e,t){const n="number"==typeof e&&"number"==typeof t?{left:e,top:t}:e;this._scrollTo(n)}scrollBy(e,t){const n="number"==typeof e&&"number"==typeof t?{left:e,top:t}:e;void 0!==n.top&&(n.top+=this.scrollTop),void 0!==n.left&&(n.left+=this.scrollLeft),this._scrollTo(n)}_nativeScrollTo(e){this._originalScrollTo.bind(this._element||window)(e)}_scrollTo(e,t=null,n=null){null!==this._end&&this._end(),"smooth"===e.behavior?(this._setDestination(e),this._retarget=t,this._end=n):this._resetScrollState(),this._nativeScrollTo(e)}_setDestination(e){let{top:t,left:n}=e;return t=void 0===t?void 0:Math.max(0,Math.min(t,this.maxScrollTop)),n=void 0===n?void 0:Math.max(0,Math.min(n,this.maxScrollLeft)),(null===this._destination||n!==this._destination.left||t!==this._destination.top)&&(this.__destination={top:t,left:n,behavior:"smooth"},!0)}_resetScrollState(){this.__destination=null,this._retarget=null,this._end=null}_updateManagedScrollTo(e){this._destination&&this._setDestination(e)&&this._nativeScrollTo(this._destination)}managedScrollTo(e,t,n){return this._scrollTo(e,t,n),this._updateManagedScrollTo}correctScrollError(e){this.correctingScrollError=!0,requestAnimationFrame(()=>requestAnimationFrame(()=>this.correctingScrollError=!1)),this._nativeScrollTo(e),this._retarget&&this._setDestination(this._retarget()),this._destination&&this._nativeScrollTo(this._destination)}_checkForArrival(){if(null!==this._destination){const{scrollTop:e,scrollLeft:t}=this;let{top:n,left:i}=this._destination;n=Math.min(n||0,this.maxScrollTop),i=Math.min(i||0,this.maxScrollLeft);const r=Math.abs(n-e),o=Math.abs(i-t);r<1&&o<1&&(this._end&&this._end(),this._resetScrollState())}}detach(e){return this._clients.delete(e),0===this._clients.size&&(this._node.scrollTo=this._originalScrollTo,this._node.scrollBy=this._originalScrollBy,this._node.scroll=this._originalScroll,this._node.removeEventListener("scroll",this._checkForArrival)),null}_attach(e){this._clients.add(e),1===this._clients.size&&(this._node.scrollTo=this.scrollTo,this._node.scrollBy=this.scrollBy,this._node.scroll=this.scrollTo,this._node.addEventListener("scroll",this._checkForArrival))}}let i3="undefined"!=typeof window?window.ResizeObserver:void 0;const r3=Symbol("virtualizerRef"),o3="virtualizer-sizer";let a3;class s3{constructor(e){if(this._benchmarkStart=null,this._layout=null,this._clippingAncestors=[],this._scrollSize=null,this._scrollError=null,this._childrenPos=null,this._childMeasurements=null,this._toBeMeasured=new Map,this._rangeChanged=!0,this._itemsChanged=!0,this._visibilityChanged=!0,this._scrollerController=null,this._isScroller=!1,this._sizer=null,this._hostElementRO=null,this._childrenRO=null,this._mutationObserver=null,this._scrollEventListeners=[],this._scrollEventListenerOptions={passive:!0},this._loadListener=this._childLoaded.bind(this),this._scrollIntoViewTarget=null,this._updateScrollIntoViewCoordinates=null,this._items=[],this._first=-1,this._last=-1,this._firstVisible=-1,this._lastVisible=-1,this._scheduled=new WeakSet,this._measureCallback=null,this._measureChildOverride=null,this._layoutCompletePromise=null,this._layoutCompleteResolver=null,this._layoutCompleteRejecter=null,this._pendingLayoutComplete=null,this._layoutInitialized=null,this._connected=!1,!e)throw new Error("Virtualizer constructor requires a configuration object");if(!e.hostElement)throw new Error('Virtualizer configuration requires the "hostElement" property');this._init(e)}set items(e){Array.isArray(e)&&e!==this._items&&(this._itemsChanged=!0,this._items=e,this._schedule(this._updateLayout))}_init(e){this._isScroller=!!e.scroller,this._initHostElement(e);const t=e.layout||{};this._layoutInitialized=this._initLayout(t)}_initObservers(){this._mutationObserver=new MutationObserver(this._finishDOMUpdate.bind(this)),this._hostElementRO=new i3(()=>this._hostElementSizeChanged()),this._childrenRO=new i3(this._childrenSizeChanged.bind(this))}_initHostElement(e){const t=this._hostElement=e.hostElement;this._applyVirtualizerStyles(),t[r3]=this}connected(){this._initObservers();const e=this._isScroller;this._clippingAncestors=function(e,t=!1){let n=!1;return function(e,t=!1){const n=[];let i=t?e:c3(e);for(;null!==i;)n.push(i),i=c3(i);return n}(e,t).filter(e=>{if(n)return!1;const t=getComputedStyle(e);return n="fixed"===t.position,"visible"!==t.overflow})}(this._hostElement,e),this._scrollerController=new n3(this,this._clippingAncestors[0]),this._schedule(this._updateLayout),this._observeAndListen(),this._connected=!0}_observeAndListen(){this._mutationObserver.observe(this._hostElement,{childList:!0}),this._hostElementRO.observe(this._hostElement),this._scrollEventListeners.push(window),window.addEventListener("scroll",this,this._scrollEventListenerOptions),this._clippingAncestors.forEach(e=>{e.addEventListener("scroll",this,this._scrollEventListenerOptions),this._scrollEventListeners.push(e),this._hostElementRO.observe(e)}),this._hostElementRO.observe(this._scrollerController.element),this._children.forEach(e=>this._childrenRO.observe(e)),this._scrollEventListeners.forEach(e=>e.addEventListener("scroll",this,this._scrollEventListenerOptions))}disconnected(){var e,t,n,i;this._scrollEventListeners.forEach(e=>e.removeEventListener("scroll",this,this._scrollEventListenerOptions)),this._scrollEventListeners=[],this._clippingAncestors=[],null==(e=this._scrollerController)||e.detach(this),this._scrollerController=null,null==(t=this._mutationObserver)||t.disconnect(),this._mutationObserver=null,null==(n=this._hostElementRO)||n.disconnect(),this._hostElementRO=null,null==(i=this._childrenRO)||i.disconnect(),this._childrenRO=null,this._rejectLayoutCompletePromise("disconnected"),this._connected=!1}_applyVirtualizerStyles(){const e=this._hostElement.style;e.display=e.display||"block",e.position=e.position||"relative",e.contain=e.contain||"size layout",this._isScroller&&(e.overflow=e.overflow||"auto",e.minHeight=e.minHeight||"150px")}_getSizer(){const e=this._hostElement;if(!this._sizer){let t=e.querySelector(`[${o3}]`);t||(t=document.createElement("div"),t.setAttribute(o3,""),e.appendChild(t)),Object.assign(t.style,{position:"absolute",margin:"-2px 0 0 0",padding:0,visibility:"hidden",fontSize:"2px"}),t.textContent=" ",t.setAttribute(o3,""),this._sizer=t}return this._sizer}updateLayoutConfig(e){return U(this,null,function*(){yield this._layoutInitialized;const t=e.type||a3;if("function"==typeof t&&this._layout instanceof t){const t=R({},e);return delete t.type,this._layout.config=t,!0}return!1})}_initLayout(e){return U(this,null,function*(){let t,n;if("function"==typeof e.type){n=e.type;const i=R({},e);delete i.type,t=i}else t=e;void 0===n&&(a3=n=(yield Promise.resolve().then(()=>cie)).FlowLayout),this._layout=new n(e=>this._handleLayoutMessage(e),t),this._layout.measureChildren&&"function"==typeof this._layout.updateItemSizes&&("function"==typeof this._layout.measureChildren&&(this._measureChildOverride=this._layout.measureChildren),this._measureCallback=this._layout.updateItemSizes.bind(this._layout)),this._layout.listenForChildLoadEvents&&this._hostElement.addEventListener("load",this._loadListener,!0),this._schedule(this._updateLayout)})}startBenchmarking(){null===this._benchmarkStart&&(this._benchmarkStart=window.performance.now())}stopBenchmarking(){if(null!==this._benchmarkStart){const e=window.performance.now(),t=e-this._benchmarkStart,n=performance.getEntriesByName("uv-virtualizing","measure").filter(t=>t.startTime>=this._benchmarkStart&&t.startTime<e).reduce((e,t)=>e+t.duration,0);return this._benchmarkStart=null,{timeElapsed:t,virtualizationTime:n}}return null}_measureChildren(){const e={},t=this._children,n=this._measureChildOverride||this._measureChild;for(let i=0;i<t.length;i++){const r=t[i],o=this._first+i;(this._itemsChanged||this._toBeMeasured.has(r))&&(e[o]=n.call(this,r,this._items[o]))}this._childMeasurements=e,this._schedule(this._updateLayout),this._toBeMeasured.clear()}_measureChild(e){const{width:t,height:n}=e.getBoundingClientRect();return Object.assign({width:t,height:n},function(e){const t=window.getComputedStyle(e);return{marginTop:l3(t.marginTop),marginRight:l3(t.marginRight),marginBottom:l3(t.marginBottom),marginLeft:l3(t.marginLeft)}}(e))}_schedule(e){return U(this,null,function*(){this._scheduled.has(e)||(this._scheduled.add(e),yield Promise.resolve(),this._scheduled.delete(e),e.call(this))})}_updateDOM(e){return U(this,null,function*(){this._scrollSize=e.scrollSize,this._adjustRange(e.range),this._childrenPos=e.childPositions,this._scrollError=e.scrollError||null;const{_rangeChanged:t,_itemsChanged:n}=this;this._visibilityChanged&&(this._notifyVisibility(),this._visibilityChanged=!1),(t||n)&&(this._notifyRange(),this._rangeChanged=!1),this._finishDOMUpdate()})}_finishDOMUpdate(){this._connected&&(this._children.forEach(e=>this._childrenRO.observe(e)),this._checkScrollIntoViewTarget(this._childrenPos),this._positionChildren(this._childrenPos),this._sizeHostElement(this._scrollSize),this._correctScrollError(),this._benchmarkStart&&"mark"in window.performance&&window.performance.mark("uv-end"))}_updateLayout(){this._layout&&this._connected&&(this._layout.items=this._items,this._updateView(),null!==this._childMeasurements&&(this._measureCallback&&this._measureCallback(this._childMeasurements),this._childMeasurements=null),this._layout.reflowIfNeeded(),this._benchmarkStart&&"mark"in window.performance&&window.performance.mark("uv-end"))}_handleScrollEvent(){var e;if(this._benchmarkStart&&"mark"in window.performance){try{window.performance.measure("uv-virtualizing","uv-start","uv-end")}catch(Rg){console.warn("Error measuring performance data: ",Rg)}window.performance.mark("uv-start")}!1===this._scrollerController.correctingScrollError&&(null==(e=this._layout)||e.unpin()),this._schedule(this._updateLayout)}handleEvent(e){if("scroll"===e.type)(e.currentTarget===window||this._clippingAncestors.includes(e.currentTarget))&&this._handleScrollEvent();else console.warn("event not handled",e)}_handleLayoutMessage(e){"stateChanged"===e.type?this._updateDOM(e):"visibilityChanged"===e.type?(this._firstVisible=e.firstVisible,this._lastVisible=e.lastVisible,this._notifyVisibility()):"unpinned"===e.type&&this._hostElement.dispatchEvent(new e3)}get _children(){const e=[];let t=this._hostElement.firstElementChild;for(;t;)t.hasAttribute(o3)||e.push(t),t=t.nextElementSibling;return e}_updateView(){var e;const t=this._hostElement,n=null==(e=this._scrollerController)?void 0:e.element,i=this._layout;if(t&&n&&i){let e,r,o,a;const s=t.getBoundingClientRect();e=0,r=0,o=window.innerHeight,a=window.innerWidth;const l=this._clippingAncestors.map(e=>e.getBoundingClientRect());l.unshift(s);for(const t of l)e=Math.max(e,t.top),r=Math.max(r,t.left),o=Math.min(o,t.bottom),a=Math.min(a,t.right);const c=n.getBoundingClientRect(),u={left:s.left-c.left,top:s.top-c.top},d={width:n.scrollWidth,height:n.scrollHeight},h=e-s.top+t.scrollTop,p=r-s.left+t.scrollLeft,f=Math.max(0,o-e),m=Math.max(0,a-r);i.viewportSize={width:m,height:f},i.viewportScroll={top:h,left:p},i.totalScrollSize=d,i.offsetWithinScroller=u}}_sizeHostElement(e){const t=82e5,n=e&&null!==e.width?Math.min(t,e.width):0,i=e&&null!==e.height?Math.min(t,e.height):0;if(this._isScroller)this._getSizer().style.transform=`translate(${n}px, ${i}px)`;else{const e=this._hostElement.style;e.minWidth=n?`${n}px`:"100%",e.minHeight=i?`${i}px`:"100%"}}_positionChildren(e){e&&e.forEach(({top:e,left:t,width:n,height:i,xOffset:r,yOffset:o},a)=>{const s=this._children[a-this._first];s&&(s.style.position="absolute",s.style.boxSizing="border-box",s.style.transform=`translate(${t}px, ${e}px)`,void 0!==n&&(s.style.width=n+"px"),void 0!==i&&(s.style.height=i+"px"),s.style.left=void 0===r?null:r+"px",s.style.top=void 0===o?null:o+"px")})}_adjustRange(e){return U(this,null,function*(){const{_first:t,_last:n,_firstVisible:i,_lastVisible:r}=this;this._first=e.first,this._last=e.last,this._firstVisible=e.firstVisible,this._lastVisible=e.lastVisible,this._rangeChanged=this._rangeChanged||this._first!==t||this._last!==n,this._visibilityChanged=this._visibilityChanged||this._firstVisible!==i||this._lastVisible!==r})}_correctScrollError(){if(this._scrollError){const{scrollTop:e,scrollLeft:t}=this._scrollerController,{top:n,left:i}=this._scrollError;this._scrollError=null,this._scrollerController.correctScrollError({top:e-n,left:t-i})}}element(e){var t;return e===1/0&&(e=this._items.length-1),void 0===(null==(t=this._items)?void 0:t[e])?void 0:{scrollIntoView:(t={})=>this._scrollElementIntoView(B(R({},t),{index:e}))}}_scrollElementIntoView(e){if(e.index>=this._first&&e.index<=this._last)this._children[e.index-this._first].scrollIntoView(e);else if(e.index=Math.min(e.index,this._items.length-1),"smooth"===e.behavior){const t=this._layout.getScrollIntoViewCoordinates(e),{behavior:n}=e;this._updateScrollIntoViewCoordinates=this._scrollerController.managedScrollTo(Object.assign(t,{behavior:n}),()=>this._layout.getScrollIntoViewCoordinates(e),()=>this._scrollIntoViewTarget=null),this._scrollIntoViewTarget=e}else this._layout.pin=e}_checkScrollIntoViewTarget(e){const{index:t}=this._scrollIntoViewTarget||{};t&&(null==e?void 0:e.has(t))&&this._updateScrollIntoViewCoordinates(this._layout.getScrollIntoViewCoordinates(this._scrollIntoViewTarget))}_notifyRange(){this._hostElement.dispatchEvent(new Z2({first:this._first,last:this._last}))}_notifyVisibility(){this._hostElement.dispatchEvent(new J2({first:this._firstVisible,last:this._lastVisible}))}get layoutComplete(){return this._layoutCompletePromise||(this._layoutCompletePromise=new Promise((e,t)=>{this._layoutCompleteResolver=e,this._layoutCompleteRejecter=t})),this._layoutCompletePromise}_rejectLayoutCompletePromise(e){null!==this._layoutCompleteRejecter&&this._layoutCompleteRejecter(e),this._resetLayoutCompleteState()}_scheduleLayoutComplete(){this._layoutCompletePromise&&null===this._pendingLayoutComplete&&(this._pendingLayoutComplete=requestAnimationFrame(()=>requestAnimationFrame(()=>this._resolveLayoutCompletePromise())))}_resolveLayoutCompletePromise(){null!==this._layoutCompleteResolver&&this._layoutCompleteResolver(),this._resetLayoutCompleteState()}_resetLayoutCompleteState(){this._layoutCompletePromise=null,this._layoutCompleteResolver=null,this._layoutCompleteRejecter=null,this._pendingLayoutComplete=null}_hostElementSizeChanged(){this._schedule(this._updateLayout)}_childLoaded(){}_childrenSizeChanged(e){var t;if(null==(t=this._layout)?void 0:t.measureChildren){for(const t of e)this._toBeMeasured.set(t.target,t.contentRect);this._measureChildren()}this._scheduleLayoutComplete(),this._itemsChanged=!1,this._rangeChanged=!1}}function l3(e){const t=e?parseFloat(e):NaN;return Number.isNaN(t)?0:t}function c3(e){if(null!==e.assignedSlot)return e.assignedSlot;if(null!==e.parentElement)return e.parentElement;const t=e.parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host||null}const u3=e=>e,d3=(e,t)=>He`${t}: ${JSON.stringify(e,null,2)}`;const h3=Un(class extends K2{constructor(e){if(super(e),this._virtualizer=null,this._first=0,this._last=-1,this._renderItem=(e,t)=>d3(e,t+this._first),this._keyFunction=(e,t)=>u3(e,this._first),this._items=[],e.type!==jn)throw new Error("The virtualize directive can only be used in child expressions")}render(e){e&&this._setFunctions(e);const t=[];if(this._first>=0&&this._last>=this._first)for(let n=this._first;n<=this._last;n++)t.push(this._items[n]);return cC(t,this._keyFunction,this._renderItem)}update(e,[t]){this._setFunctions(t);const n=this._items!==t.items;return this._items=t.items||[],this._virtualizer?this._updateVirtualizerConfig(e,t):this._initialize(e,t),n?Qe:this.render()}_updateVirtualizerConfig(e,t){return U(this,null,function*(){if(!(yield this._virtualizer.updateLayoutConfig(t.layout||{}))){const n=e.parentNode;this._makeVirtualizer(n,t)}this._virtualizer.items=this._items})}_setFunctions(e){const{renderItem:t,keyFunction:n}=e;t&&(this._renderItem=(e,n)=>t(e,n+this._first)),n&&(this._keyFunction=(e,t)=>n(e,t+this._first))}_makeVirtualizer(e,t){this._virtualizer&&this._virtualizer.disconnected();const{layout:n,scroller:i,items:r}=t;this._virtualizer=new s3({hostElement:e,layout:n,scroller:i}),this._virtualizer.items=r,this._virtualizer.connected()}_initialize(e,t){const n=e.parentNode;n&&1===n.nodeType&&(n.addEventListener("rangeChanged",e=>{this._first=e.first,this._last=e.last,this.setValue(this.render())}),this._makeVirtualizer(n,t))}disconnected(){var e;null==(e=this._virtualizer)||e.disconnected()}reconnected(){var e;null==(e=this._virtualizer)||e.connected()}});class p3 extends st{constructor(){super(...arguments),this.items=[],this.renderItem=d3,this.keyFunction=u3,this.layout={},this.scroller=!1}createRenderRoot(){return this}render(){const{items:e,renderItem:t,keyFunction:n,layout:i,scroller:r}=this;return He`${h3({items:e,renderItem:t,keyFunction:n,layout:i,scroller:r})}`}element(e){var t;return null==(t=this[r3])?void 0:t.element(e)}get layoutComplete(){var e;return null==(e=this[r3])?void 0:e.layoutComplete}scrollToIndex(e,t="start"){var n;null==(n=this.element(e))||n.scrollIntoView({block:t})}}V2([dt({attribute:!1})],p3.prototype,"items",void 0),V2([dt()],p3.prototype,"renderItem",void 0),V2([dt()],p3.prototype,"keyFunction",void 0),V2([dt({attribute:!1})],p3.prototype,"layout",void 0),V2([dt({reflect:!0,type:Boolean})],p3.prototype,"scroller",void 0),customElements.define("lit-virtualizer",p3);var f3=function(){return bt.Date.now()},m3=/\s/;var g3=/^\s+/;function v3(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&m3.test(e.charAt(t)););return t}(e)+1).replace(g3,""):e}var y3=/^[-+]0x[0-9a-f]+$/i,b3=/^0b[01]+$/i,A3=/^0o[0-7]+$/i,w3=parseInt;function x3(e){if("number"==typeof e)return e;if(Pt(e))return NaN;if(aE(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=aE(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=v3(e);var n=b3.test(e);return n||A3.test(e)?w3(e.slice(2),n?2:8):y3.test(e)?NaN:+e}var _3=Math.max,E3=Math.min;function S3(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=f3();if(f(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?E3(n,o-(e-c)):n}(e))}function g(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function v(){var e=f3(),n=f(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=x3(t)||0,aE(n)&&(u=!!n.leading,o=(d="maxWait"in n)?_3(x3(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},v.flush=function(){return void 0===s?a:g(f3())},v}function C3(e){return"horizontal"===e?"width":"height"}function T3(e){return"horizontal"===e?"height":"width"}class k3{_getDefaultConfig(){return{direction:"vertical"}}constructor(e,t){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=e,Promise.resolve().then(()=>this.config=t||this._getDefaultConfig())}set config(e){Object.assign(this,Object.assign({},this._getDefaultConfig(),e))}get config(){return{direction:this.direction}}get items(){return this._items}set items(e){this._setItems(e)}_setItems(e){e!==this._items&&(this._items=e,this._scheduleReflow())}get direction(){return this._direction}set direction(e){(e="horizontal"===e?e:"vertical")!==this._direction&&(this._direction=e,this._sizeDim="horizontal"===e?"width":"height",this._secondarySizeDim="horizontal"===e?"height":"width",this._positionDim="horizontal"===e?"left":"top",this._secondaryPositionDim="horizontal"===e?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(e){const{_viewDim1:t,_viewDim2:n}=this;Object.assign(this._viewportSize,e),n!==this._viewDim2?this._scheduleLayoutUpdate():t!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(e){Object.assign(this._latestCoords,e);const t=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(t-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(e=!1){(e||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(e){this._pin=e,this._triggerReflow()}get pin(){if(null!==this._pin){const{index:e,block:t}=this._pin;return{index:Math.max(0,Math.min(e,this.items.length-1)),block:t}}return null}_clampScrollPosition(e){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(e,this.totalScrollSize[C3(this.direction)]-this._viewDim1))}unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then(()=>this.reflowIfNeeded())}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(null!==this.pin){const e=this._scrollPosition,{index:t,block:n}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:t,block:n||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=e-this._scrollPosition}}_calculateScrollIntoViewPosition(e){const{block:t}=e,n=Math.min(this.items.length,Math.max(0,e.index)),i=this._getItemPosition(n)[this._positionDim];let r=i;if("start"!==t){const e=this._getItemSize(n)[this._sizeDim];if("center"===t)r=i-.5*this._viewDim1+.5*e;else{const n=i-this._viewDim1+e;if("end"===t)r=n;else{const e=this._scrollPosition;r=Math.abs(e-i)<Math.abs(e-n)?i:n}}}return r+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(r)}getScrollIntoViewCoordinates(e){return{[this._positionDim]:this._calculateScrollIntoViewPosition(e)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){const e=new Map;if(-1!==this._first&&-1!==this._last)for(let n=this._first;n<=this._last;n++)e.set(n,this._getItemPosition(n));const t={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:e};this._scrollError&&(t.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(t)}get _num(){return-1===this._first||-1===this._last?0:this._last-this._first+1}_checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{const e=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>e||this._physicalMax<t?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(e){if(-1===this._first||-1===this._last)return;let t=this._first;for(;t<this._last&&Math.round(this._getItemPosition(t)[this._positionDim]+this._getItemSize(t)[this._sizeDim])<=Math.round(this._scrollPosition);)t++;let n=this._last;for(;n>this._first&&Math.round(this._getItemPosition(n)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)n--;t===this._firstVisible&&n===this._lastVisible||(this._firstVisible=t,this._lastVisible=n,e&&e.emit&&this._sendVisibilityChangedMessage())}}function I3(e){return"horizontal"===e?"row":"column"}class M3 extends k3{constructor(){super(...arguments),this._itemSize={},this._gaps={},this._padding={}}_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{itemSize:{width:"300px",height:"300px"},gap:"8px",padding:"match-gap"})}get _gap(){return this._gaps.row}get _idealSize(){return this._itemSize[C3(this.direction)]}get _idealSize1(){return this._itemSize[C3(this.direction)]}get _idealSize2(){return this._itemSize[T3(this.direction)]}get _gap1(){return this._gaps[e=this.direction,"horizontal"===e?"column":"row"];var e}get _gap2(){return this._gaps[I3(this.direction)]}get _padding1(){const e=this._padding,[t,n]="horizontal"===this.direction?["left","right"]:["top","bottom"];return[e[t],e[n]]}get _padding2(){const e=this._padding,[t,n]="horizontal"===this.direction?["top","bottom"]:["left","right"];return[e[t],e[n]]}set itemSize(e){const t=this._itemSize;"string"==typeof e&&(e={width:e,height:e});const n=parseInt(e.width),i=parseInt(e.height);n!==t.width&&(t.width=n,this._triggerReflow()),i!==t.height&&(t.height=i,this._triggerReflow())}set gap(e){this._setGap(e)}_setGap(e){const t=e.split(" ").map(e=>function(e){return"auto"===e?1/0:parseInt(e)}(e)),n=this._gaps;t[0]!==n.row&&(n.row=t[0],this._triggerReflow()),void 0===t[1]?t[0]!==n.column&&(n.column=t[0],this._triggerReflow()):t[1]!==n.column&&(n.column=t[1],this._triggerReflow())}set padding(e){const t=this._padding,n=e.split(" ").map(e=>function(e){return"match-gap"===e?1/0:parseInt(e)}(e));1===n.length?(t.top=t.right=t.bottom=t.left=n[0],this._triggerReflow()):2===n.length?(t.top=t.bottom=n[0],t.right=t.left=n[1],this._triggerReflow()):3===n.length?(t.top=n[0],t.right=t.left=n[1],t.bottom=n[2],this._triggerReflow()):4===n.length&&(["top","right","bottom","left"].forEach((e,i)=>t[e]=n[i]),this._triggerReflow())}}class P3 extends M3{constructor(){super(...arguments),this._metrics=null,this.flex=null,this.justify=null}_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{flex:!1,justify:"start"})}set gap(e){super._setGap(e)}_updateLayout(){const e=this.justify,[t,n]=this._padding1,[i,r]=this._padding2;["_gap1","_gap2"].forEach(t=>{const n=this[t];if(n===1/0&&!["space-between","space-around","space-evenly"].includes(e))throw new Error("grid layout: gap can only be set to 'auto' when justify is set to 'space-between', 'space-around' or 'space-evenly'");if(n===1/0&&"_gap2"===t)throw new Error(`grid layout: ${I3(this.direction)}-gap cannot be set to 'auto' when direction is set to ${this.direction}`)});const o=this.flex||["start","center","end"].includes(e),a={rolumns:-1,itemSize1:-1,itemSize2:-1,gap1:this._gap1===1/0?-1:this._gap1,gap2:o?this._gap2:0,padding1:{start:t===1/0?this._gap1:t,end:n===1/0?this._gap1:n},padding2:o?{start:i===1/0?this._gap2:i,end:r===1/0?this._gap2:r}:{start:0,end:0},positions:[]},s=this._viewDim2-a.padding2.start-a.padding2.end;if(s<=0)a.rolumns=0;else{const i=o?a.gap2:0;let r,l=0,c=0;if(s>=this._idealSize2&&(l=Math.floor((s-this._idealSize2)/(this._idealSize2+i))+1,c=l*this._idealSize2+(l-1)*i),this.flex){(s-c)/(this._idealSize2+i)>=.5&&(l+=1),a.rolumns=l,a.itemSize2=Math.round((s-i*(l-1))/l);switch(!0===this.flex?"area":this.flex.preserve){case"aspect-ratio":a.itemSize1=Math.round(this._idealSize1/this._idealSize2*a.itemSize2);break;case C3(this.direction):a.itemSize1=Math.round(this._idealSize1);break;default:a.itemSize1=Math.round(this._idealSize1*this._idealSize2/a.itemSize2)}}else a.itemSize1=this._idealSize1,a.itemSize2=this._idealSize2,a.rolumns=l;if(o){const t=a.rolumns*a.itemSize2+(a.rolumns-1)*a.gap2;r=this.flex||"start"===e?a.padding2.start:"end"===e?this._viewDim2-a.padding2.end-t:Math.round(this._viewDim2/2-t/2)}else{const i=s-a.rolumns*a.itemSize2;"space-between"===e?(a.gap2=Math.round(i/(a.rolumns-1)),r=0):"space-around"===e?(a.gap2=Math.round(i/a.rolumns),r=Math.round(a.gap2/2)):(a.gap2=Math.round(i/(a.rolumns+1)),r=a.gap2),this._gap1===1/0&&(a.gap1=a.gap2,t===1/0&&(a.padding1.start=r),n===1/0&&(a.padding1.end=r))}for(let e=0;e<a.rolumns;e++)a.positions.push(r),r+=a.itemSize2+a.gap2}this._metrics=a}}class R3 extends P3{get _delta(){return this._metrics.itemSize1+this._metrics.gap1}_getItemSize(e){return{[this._sizeDim]:this._metrics.itemSize1,[this._secondarySizeDim]:this._metrics.itemSize2}}_getActiveItems(){const e=this._metrics,{rolumns:t}=e;if(0===t)this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;else{const{padding1:n}=e,i=Math.max(0,this._scrollPosition-this._overhang),r=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang),o=Math.max(0,Math.floor((i-n.start)/this._delta)),a=Math.max(0,Math.ceil((r-n.start)/this._delta));this._first=o*t,this._last=Math.min(a*t-1,this.items.length-1),this._physicalMin=n.start+this._delta*o,this._physicalMax=n.start+this._delta*a}}_getItemPosition(e){const{rolumns:t,padding1:n,positions:i,itemSize1:r,itemSize2:o}=this._metrics;return{[this._positionDim]:n.start+Math.floor(e/t)*this._delta,[this._secondaryPositionDim]:i[e%t],[C3(this.direction)]:r,[T3(this.direction)]:o}}_updateScrollSize(){const{rolumns:e,gap1:t,padding1:n,itemSize1:i}=this._metrics;let r=1;if(e>0){const o=Math.ceil(this.items.length/e);r=n.start+o*i+(o-1)*t+n.end}this._scrollSize=r}}const B3=Ea`.array-clamp{flex-wrap:nowrap;flex-grow:1;flex-shrink:1;align-items:center;display:flex;overflow:hidden}.array-clamp__items-container{flex-wrap:nowrap;flex-grow:1;flex-shrink:1;align-items:center;width:100%;min-width:0;display:flex;overflow:hidden}.array-clamp__items-container ::slotted(.array-clamp__item){white-space:nowrap;flex-shrink:0}.array-clamp__items-container ::slotted(.array-clamp__item:not(:last-child)):after{content:var(--array-clamp-separator,", ");white-space:pre}.array-clamp__items-container ::slotted(.array-clamp__item.clamped){display:none}.array-clamp__items-container ::slotted(.array-clamp__item.array-clamp__last-visible){-webkit-line-clamp:1;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;flex-shrink:1;min-width:0;display:-webkit-box;overflow:hidden}.array-clamp__indicator{flex-shrink:0}.array-clamp__indicator::part(base){overflow-wrap:break-word;min-width:2rem;max-width:4rem}`;var O3=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,L3=(e,t,n,i)=>{for(var r,o=i>1?void 0:i?D3(t,n):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i?r(t,n,o):r(o))||o);return i&&o&&O3(t,n,o),o};const N3="array-clamp__last-visible",z3="clamped";let F3=class extends Os{constructor(){super(...arguments),this.separator=", ",this.tooltipSeparator="",this.clampedMap=new Map}get totalClamped(){return Array.from(this.clampedMap.values()).filter(Boolean).length}get totalVisible(){var e,t;const n=null!=(t=null==(e=this.slotEl)?void 0:e.assignedElements({flatten:!0}).length)?t:0;return Math.max(0,n-this.totalClamped)}get hiddenChildrenStr(){const e=this.slotEl;if(!e)return"";const t=e.assignedElements({flatten:!0}),n=this.tooltipSeparator||this.separator;return t.map((e,t)=>{var n,i;return this.clampedMap.get(t)&&null!=(i=null==(n=e.textContent)?void 0:n.trim())?i:""}).filter(Boolean).join(n)}applyItemClasses(){const e=this.slotEl;if(!e)return;const t=e.assignedElements({flatten:!0}),n=this.totalVisible;t.forEach((e,i)=>{e.classList.add("array-clamp__item"),this.clampedMap.get(i)?(e.classList.add(z3),e.classList.remove(N3)):(e.classList.remove(z3),i===t.length-1||i===n-1&&n>0?e.classList.add(N3):e.classList.remove(N3))})}handleSlotChange(){const e=this.containerEl,t=this.slotEl;if(!e||!t)return;const n=t.assignedElements({flatten:!0});if(0===n.length)return void(this.clampedMap=new Map);const i=e.clientWidth;let r=0;const o=new Map;let a=!1;n.forEach((e,t)=>{a?o.set(t,!0):(r+=e.offsetWidth,r>i&&(a=!0,o.set(t,!0)))}),this.clampedMap=o,this.requestUpdate("clampedMap")}handleResize(e){const{entries:t}=e.detail;0===t.length||t[0].target!==this.containerEl||this.handleSlotChange()}runFirstUpdated(){this.applyItemClasses()}handleClampedMapChange(){this.applyItemClasses()}render(){return ss`<div class="array-clamp" style=${rf({"--array-clamp-separator":`'${String(this.separator).replaceAll("'",String.raw`\'`)}'`})}><cx-resize-observer @cx-resize=${this.handleResize}><div class="array-clamp__items-container" part="container"><slot @slotchange=${this.handleSlotChange}></slot>${Id(this.totalClamped>0,()=>ss`<cx-tag variant="neutral" size="small" pill class="array-clamp__indicator" part="indicator"><cx-line-clamp tooltip=${this.hiddenChildrenStr} lines="1">
|
|
1924
|
+
`}};Q2.styles=[va,L2],Q2.dependencies={"cx-asset-link-format":UM,"cx-cropper":zI,"cx-content-browser-asset-preview":t2,"cx-content-browser-asset-proxy-selector":b2,"cx-content-browser-asset-version-history":D2,"cx-dialog":BO,"cx-drawer":Rh,"cx-icon-button":Th,"cx-line-clamp":ov,"cx-space":yv,"cx-spinner":wh,"cx-tooltip":Xg,"cx-typography":dv},F2([ft("cx-asset-link-format")],Q2.prototype,"assetLinkFormat",2),F2([dt({reflect:!1,type:Object})],Q2.prototype,"boundary",2),F2([dt({attribute:!1,reflect:!1,type:Object})],Q2.prototype,"availableExtensions",2),F2([dt({attribute:"supported-extensions",converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>(null!=e?e:[]).join(" ")},reflect:!0,type:Array})],Q2.prototype,"supportedExtensions",2),F2([dt({attribute:"supported-representative-subtypes",converter:{fromAttribute:e=>e.split(" "),toAttribute:e=>(null!=e?e:[]).join(" ")},reflect:!0,type:Array})],Q2.prototype,"supportedRepresentativeSubtypes",2),F2([dt({attribute:"auto-extension",reflect:!1,type:String})],Q2.prototype,"autoExtension",2),F2([dt({attribute:"cta-text",reflect:!1,type:String})],Q2.prototype,"ctaText",2),F2([dt({attribute:"cta-text-transform",reflect:!1,type:String})],Q2.prototype,"ctaTextTransform",2),F2([dt({attribute:"can-custom-format",reflect:!1,type:Boolean})],Q2.prototype,"canCustomFormat",2),F2([dt({attribute:"can-favorite",reflect:!1,type:Boolean})],Q2.prototype,"canFavorite",2),F2([dt({attribute:"can-pin-asset",reflect:!1,type:Boolean})],Q2.prototype,"canPinAsset",2),F2([dt({attribute:"can-track",reflect:!1,type:Boolean})],Q2.prototype,"canTrack",2),F2([dt({attribute:"can-use-proxies",reflect:!1,type:Boolean})],Q2.prototype,"canUseProxies",2),F2([dt({attribute:"simple-pick",reflect:!1,type:Boolean})],Q2.prototype,"simplePick",2),F2([dt({attribute:"can-view-versions",reflect:!1,type:Boolean})],Q2.prototype,"canViewVersions",2),F2([dt({reflect:!0,type:String})],Q2.prototype,"variant",2),F2([dt({attribute:"loading-favorites",reflect:!0,type:Boolean})],Q2.prototype,"loadingFavorites",2),F2([dt({attribute:"loading-pin-asset",reflect:!0,type:Boolean})],Q2.prototype,"loadingPinAsset",2),F2([dt({attribute:"loading-proxies",reflect:!0,type:Boolean})],Q2.prototype,"loadingProxies",2),F2([dt({attribute:"disabled-confirm",reflect:!0,type:Boolean})],Q2.prototype,"disabledConfirm",2),F2([dt({attribute:"token",type:String})],Q2.prototype,"token",2),F2([dt({attribute:"base-url",type:String})],Q2.prototype,"baseUrl",2),F2([ht()],Q2.prototype,"asset",2),F2([ht()],Q2.prototype,"isOpen",2),F2([ht()],Q2.prototype,"isFavorite",2),F2([ht()],Q2.prototype,"isAssetPinned",2),F2([ht()],Q2.prototype,"proxies",2),F2([ht()],Q2.prototype,"showVersionHistory",2),F2([ht()],Q2.prototype,"showCustomFormat",2),F2([ht()],Q2.prototype,"loadingVersionHistory",2),F2([ht()],Q2.prototype,"versions",2),F2([ht()],Q2.prototype,"filteredProxies",2),F2([ht()],Q2.prototype,"selectedProxy",2),F2([ht()],Q2.prototype,"lastProxyBeforeCustomFormat",2),F2([ht()],Q2.prototype,"confirmedTransformations",2),F2([ht()],Q2.prototype,"confirmedFormat",2),F2([ht()],Q2.prototype,"loadingConfirm",2),F2([ht()],Q2.prototype,"enabledTracking",2),F2([ht()],Q2.prototype,"trackingParameters",2),F2([VS("proxies",{waitUntilFirstUpdate:!0}),VS("supportedExtensions")],Q2.prototype,"handleSupportedExtensionsChange",1),Q2=F2([Hs("cx-content-browser-format-dialog")],Q2);function V2(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;const G2=(e,t)=>{var n;const i=e._$AN;if(void 0===i)return!1;for(const r of i)null==(n=r._$AO)||n.call(r,t,!1),G2(r,t);return!0},W2=e=>{let t,n;do{if(void 0===(t=e._$AM))break;n=t._$AN,n.delete(e),e=t}while(0===(null==n?void 0:n.size))},q2=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),Y2(t)}};function $2(e){void 0!==this._$AN?(W2(this),this._$AM=e,q2(this)):this._$AM=e}function X2(e,t=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(i))for(let o=n;o<i.length;o++)G2(i[o],!1),W2(i[o]);else null!=i&&(G2(i,!1),W2(i));else G2(this,e)}const Y2=e=>{e.type==jn&&(null!=e._$AP||(e._$AP=X2),null!=e._$AQ||(e._$AQ=$2))};let K2=class extends Hn{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),q2(this),this.isConnected=e._$AU}_$AO(e,t=!0){var n,i;e!==this.isConnected&&(this.isConnected=e,e?null==(n=this.reconnected)||n.call(this):null==(i=this.disconnected)||i.call(this)),t&&(G2(this,e),W2(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};class Z2 extends Event{constructor(e){super(Z2.eventName,{bubbles:!1}),this.first=e.first,this.last=e.last}}Z2.eventName="rangeChanged";class J2 extends Event{constructor(e){super(J2.eventName,{bubbles:!1}),this.first=e.first,this.last=e.last}}J2.eventName="visibilityChanged";class e3 extends Event{constructor(){super(e3.eventName,{bubbles:!1})}}e3.eventName="unpinned";class t3{constructor(e){this._element=null;const t=null!=e?e:window;this._node=t,e&&(this._element=e)}get element(){return this._element||document.scrollingElement||document.documentElement}get scrollTop(){return this.element.scrollTop||window.scrollY}get scrollLeft(){return this.element.scrollLeft||window.scrollX}get scrollHeight(){return this.element.scrollHeight}get scrollWidth(){return this.element.scrollWidth}get viewportHeight(){return this._element?this._element.getBoundingClientRect().height:window.innerHeight}get viewportWidth(){return this._element?this._element.getBoundingClientRect().width:window.innerWidth}get maxScrollTop(){return this.scrollHeight-this.viewportHeight}get maxScrollLeft(){return this.scrollWidth-this.viewportWidth}}class n3 extends t3{constructor(e,t){super(t),this._clients=new Set,this._retarget=null,this._end=null,this.__destination=null,this.correctingScrollError=!1,this._checkForArrival=this._checkForArrival.bind(this),this._updateManagedScrollTo=this._updateManagedScrollTo.bind(this),this.scrollTo=this.scrollTo.bind(this),this.scrollBy=this.scrollBy.bind(this);const n=this._node;this._originalScrollTo=n.scrollTo,this._originalScrollBy=n.scrollBy,this._originalScroll=n.scroll,this._attach(e)}get _destination(){return this.__destination}get scrolling(){return null!==this._destination}scrollTo(e,t){const n="number"==typeof e&&"number"==typeof t?{left:e,top:t}:e;this._scrollTo(n)}scrollBy(e,t){const n="number"==typeof e&&"number"==typeof t?{left:e,top:t}:e;void 0!==n.top&&(n.top+=this.scrollTop),void 0!==n.left&&(n.left+=this.scrollLeft),this._scrollTo(n)}_nativeScrollTo(e){this._originalScrollTo.bind(this._element||window)(e)}_scrollTo(e,t=null,n=null){null!==this._end&&this._end(),"smooth"===e.behavior?(this._setDestination(e),this._retarget=t,this._end=n):this._resetScrollState(),this._nativeScrollTo(e)}_setDestination(e){let{top:t,left:n}=e;return t=void 0===t?void 0:Math.max(0,Math.min(t,this.maxScrollTop)),n=void 0===n?void 0:Math.max(0,Math.min(n,this.maxScrollLeft)),(null===this._destination||n!==this._destination.left||t!==this._destination.top)&&(this.__destination={top:t,left:n,behavior:"smooth"},!0)}_resetScrollState(){this.__destination=null,this._retarget=null,this._end=null}_updateManagedScrollTo(e){this._destination&&this._setDestination(e)&&this._nativeScrollTo(this._destination)}managedScrollTo(e,t,n){return this._scrollTo(e,t,n),this._updateManagedScrollTo}correctScrollError(e){this.correctingScrollError=!0,requestAnimationFrame(()=>requestAnimationFrame(()=>this.correctingScrollError=!1)),this._nativeScrollTo(e),this._retarget&&this._setDestination(this._retarget()),this._destination&&this._nativeScrollTo(this._destination)}_checkForArrival(){if(null!==this._destination){const{scrollTop:e,scrollLeft:t}=this;let{top:n,left:i}=this._destination;n=Math.min(n||0,this.maxScrollTop),i=Math.min(i||0,this.maxScrollLeft);const r=Math.abs(n-e),o=Math.abs(i-t);r<1&&o<1&&(this._end&&this._end(),this._resetScrollState())}}detach(e){return this._clients.delete(e),0===this._clients.size&&(this._node.scrollTo=this._originalScrollTo,this._node.scrollBy=this._originalScrollBy,this._node.scroll=this._originalScroll,this._node.removeEventListener("scroll",this._checkForArrival)),null}_attach(e){this._clients.add(e),1===this._clients.size&&(this._node.scrollTo=this.scrollTo,this._node.scrollBy=this.scrollBy,this._node.scroll=this.scrollTo,this._node.addEventListener("scroll",this._checkForArrival))}}let i3="undefined"!=typeof window?window.ResizeObserver:void 0;const r3=Symbol("virtualizerRef"),o3="virtualizer-sizer";let a3;class s3{constructor(e){if(this._benchmarkStart=null,this._layout=null,this._clippingAncestors=[],this._scrollSize=null,this._scrollError=null,this._childrenPos=null,this._childMeasurements=null,this._toBeMeasured=new Map,this._rangeChanged=!0,this._itemsChanged=!0,this._visibilityChanged=!0,this._scrollerController=null,this._isScroller=!1,this._sizer=null,this._hostElementRO=null,this._childrenRO=null,this._mutationObserver=null,this._scrollEventListeners=[],this._scrollEventListenerOptions={passive:!0},this._loadListener=this._childLoaded.bind(this),this._scrollIntoViewTarget=null,this._updateScrollIntoViewCoordinates=null,this._items=[],this._first=-1,this._last=-1,this._firstVisible=-1,this._lastVisible=-1,this._scheduled=new WeakSet,this._measureCallback=null,this._measureChildOverride=null,this._layoutCompletePromise=null,this._layoutCompleteResolver=null,this._layoutCompleteRejecter=null,this._pendingLayoutComplete=null,this._layoutInitialized=null,this._connected=!1,!e)throw new Error("Virtualizer constructor requires a configuration object");if(!e.hostElement)throw new Error('Virtualizer configuration requires the "hostElement" property');this._init(e)}set items(e){Array.isArray(e)&&e!==this._items&&(this._itemsChanged=!0,this._items=e,this._schedule(this._updateLayout))}_init(e){this._isScroller=!!e.scroller,this._initHostElement(e);const t=e.layout||{};this._layoutInitialized=this._initLayout(t)}_initObservers(){this._mutationObserver=new MutationObserver(this._finishDOMUpdate.bind(this)),this._hostElementRO=new i3(()=>this._hostElementSizeChanged()),this._childrenRO=new i3(this._childrenSizeChanged.bind(this))}_initHostElement(e){const t=this._hostElement=e.hostElement;this._applyVirtualizerStyles(),t[r3]=this}connected(){this._initObservers();const e=this._isScroller;this._clippingAncestors=function(e,t=!1){let n=!1;return function(e,t=!1){const n=[];let i=t?e:c3(e);for(;null!==i;)n.push(i),i=c3(i);return n}(e,t).filter(e=>{if(n)return!1;const t=getComputedStyle(e);return n="fixed"===t.position,"visible"!==t.overflow})}(this._hostElement,e),this._scrollerController=new n3(this,this._clippingAncestors[0]),this._schedule(this._updateLayout),this._observeAndListen(),this._connected=!0}_observeAndListen(){this._mutationObserver.observe(this._hostElement,{childList:!0}),this._hostElementRO.observe(this._hostElement),this._scrollEventListeners.push(window),window.addEventListener("scroll",this,this._scrollEventListenerOptions),this._clippingAncestors.forEach(e=>{e.addEventListener("scroll",this,this._scrollEventListenerOptions),this._scrollEventListeners.push(e),this._hostElementRO.observe(e)}),this._hostElementRO.observe(this._scrollerController.element),this._children.forEach(e=>this._childrenRO.observe(e)),this._scrollEventListeners.forEach(e=>e.addEventListener("scroll",this,this._scrollEventListenerOptions))}disconnected(){var e,t,n,i;this._scrollEventListeners.forEach(e=>e.removeEventListener("scroll",this,this._scrollEventListenerOptions)),this._scrollEventListeners=[],this._clippingAncestors=[],null==(e=this._scrollerController)||e.detach(this),this._scrollerController=null,null==(t=this._mutationObserver)||t.disconnect(),this._mutationObserver=null,null==(n=this._hostElementRO)||n.disconnect(),this._hostElementRO=null,null==(i=this._childrenRO)||i.disconnect(),this._childrenRO=null,this._rejectLayoutCompletePromise("disconnected"),this._connected=!1}_applyVirtualizerStyles(){const e=this._hostElement.style;e.display=e.display||"block",e.position=e.position||"relative",e.contain=e.contain||"size layout",this._isScroller&&(e.overflow=e.overflow||"auto",e.minHeight=e.minHeight||"150px")}_getSizer(){const e=this._hostElement;if(!this._sizer){let t=e.querySelector(`[${o3}]`);t||(t=document.createElement("div"),t.setAttribute(o3,""),e.appendChild(t)),Object.assign(t.style,{position:"absolute",margin:"-2px 0 0 0",padding:0,visibility:"hidden",fontSize:"2px"}),t.textContent=" ",t.setAttribute(o3,""),this._sizer=t}return this._sizer}updateLayoutConfig(e){return U(this,null,function*(){yield this._layoutInitialized;const t=e.type||a3;if("function"==typeof t&&this._layout instanceof t){const t=R({},e);return delete t.type,this._layout.config=t,!0}return!1})}_initLayout(e){return U(this,null,function*(){let t,n;if("function"==typeof e.type){n=e.type;const i=R({},e);delete i.type,t=i}else t=e;void 0===n&&(a3=n=(yield Promise.resolve().then(()=>cie)).FlowLayout),this._layout=new n(e=>this._handleLayoutMessage(e),t),this._layout.measureChildren&&"function"==typeof this._layout.updateItemSizes&&("function"==typeof this._layout.measureChildren&&(this._measureChildOverride=this._layout.measureChildren),this._measureCallback=this._layout.updateItemSizes.bind(this._layout)),this._layout.listenForChildLoadEvents&&this._hostElement.addEventListener("load",this._loadListener,!0),this._schedule(this._updateLayout)})}startBenchmarking(){null===this._benchmarkStart&&(this._benchmarkStart=window.performance.now())}stopBenchmarking(){if(null!==this._benchmarkStart){const e=window.performance.now(),t=e-this._benchmarkStart,n=performance.getEntriesByName("uv-virtualizing","measure").filter(t=>t.startTime>=this._benchmarkStart&&t.startTime<e).reduce((e,t)=>e+t.duration,0);return this._benchmarkStart=null,{timeElapsed:t,virtualizationTime:n}}return null}_measureChildren(){const e={},t=this._children,n=this._measureChildOverride||this._measureChild;for(let i=0;i<t.length;i++){const r=t[i],o=this._first+i;(this._itemsChanged||this._toBeMeasured.has(r))&&(e[o]=n.call(this,r,this._items[o]))}this._childMeasurements=e,this._schedule(this._updateLayout),this._toBeMeasured.clear()}_measureChild(e){const{width:t,height:n}=e.getBoundingClientRect();return Object.assign({width:t,height:n},function(e){const t=window.getComputedStyle(e);return{marginTop:l3(t.marginTop),marginRight:l3(t.marginRight),marginBottom:l3(t.marginBottom),marginLeft:l3(t.marginLeft)}}(e))}_schedule(e){return U(this,null,function*(){this._scheduled.has(e)||(this._scheduled.add(e),yield Promise.resolve(),this._scheduled.delete(e),e.call(this))})}_updateDOM(e){return U(this,null,function*(){this._scrollSize=e.scrollSize,this._adjustRange(e.range),this._childrenPos=e.childPositions,this._scrollError=e.scrollError||null;const{_rangeChanged:t,_itemsChanged:n}=this;this._visibilityChanged&&(this._notifyVisibility(),this._visibilityChanged=!1),(t||n)&&(this._notifyRange(),this._rangeChanged=!1),this._finishDOMUpdate()})}_finishDOMUpdate(){this._connected&&(this._children.forEach(e=>this._childrenRO.observe(e)),this._checkScrollIntoViewTarget(this._childrenPos),this._positionChildren(this._childrenPos),this._sizeHostElement(this._scrollSize),this._correctScrollError(),this._benchmarkStart&&"mark"in window.performance&&window.performance.mark("uv-end"))}_updateLayout(){this._layout&&this._connected&&(this._layout.items=this._items,this._updateView(),null!==this._childMeasurements&&(this._measureCallback&&this._measureCallback(this._childMeasurements),this._childMeasurements=null),this._layout.reflowIfNeeded(),this._benchmarkStart&&"mark"in window.performance&&window.performance.mark("uv-end"))}_handleScrollEvent(){var e;if(this._benchmarkStart&&"mark"in window.performance){try{window.performance.measure("uv-virtualizing","uv-start","uv-end")}catch(Rg){console.warn("Error measuring performance data: ",Rg)}window.performance.mark("uv-start")}!1===this._scrollerController.correctingScrollError&&(null==(e=this._layout)||e.unpin()),this._schedule(this._updateLayout)}handleEvent(e){if("scroll"===e.type)(e.currentTarget===window||this._clippingAncestors.includes(e.currentTarget))&&this._handleScrollEvent();else console.warn("event not handled",e)}_handleLayoutMessage(e){"stateChanged"===e.type?this._updateDOM(e):"visibilityChanged"===e.type?(this._firstVisible=e.firstVisible,this._lastVisible=e.lastVisible,this._notifyVisibility()):"unpinned"===e.type&&this._hostElement.dispatchEvent(new e3)}get _children(){const e=[];let t=this._hostElement.firstElementChild;for(;t;)t.hasAttribute(o3)||e.push(t),t=t.nextElementSibling;return e}_updateView(){var e;const t=this._hostElement,n=null==(e=this._scrollerController)?void 0:e.element,i=this._layout;if(t&&n&&i){let e,r,o,a;const s=t.getBoundingClientRect();e=0,r=0,o=window.innerHeight,a=window.innerWidth;const l=this._clippingAncestors.map(e=>e.getBoundingClientRect());l.unshift(s);for(const t of l)e=Math.max(e,t.top),r=Math.max(r,t.left),o=Math.min(o,t.bottom),a=Math.min(a,t.right);const c=n.getBoundingClientRect(),u={left:s.left-c.left,top:s.top-c.top},d={width:n.scrollWidth,height:n.scrollHeight},h=e-s.top+t.scrollTop,p=r-s.left+t.scrollLeft,f=Math.max(0,o-e),m=Math.max(0,a-r);i.viewportSize={width:m,height:f},i.viewportScroll={top:h,left:p},i.totalScrollSize=d,i.offsetWithinScroller=u}}_sizeHostElement(e){const t=82e5,n=e&&null!==e.width?Math.min(t,e.width):0,i=e&&null!==e.height?Math.min(t,e.height):0;if(this._isScroller)this._getSizer().style.transform=`translate(${n}px, ${i}px)`;else{const e=this._hostElement.style;e.minWidth=n?`${n}px`:"100%",e.minHeight=i?`${i}px`:"100%"}}_positionChildren(e){e&&e.forEach(({top:e,left:t,width:n,height:i,xOffset:r,yOffset:o},a)=>{const s=this._children[a-this._first];s&&(s.style.position="absolute",s.style.boxSizing="border-box",s.style.transform=`translate(${t}px, ${e}px)`,void 0!==n&&(s.style.width=n+"px"),void 0!==i&&(s.style.height=i+"px"),s.style.left=void 0===r?null:r+"px",s.style.top=void 0===o?null:o+"px")})}_adjustRange(e){return U(this,null,function*(){const{_first:t,_last:n,_firstVisible:i,_lastVisible:r}=this;this._first=e.first,this._last=e.last,this._firstVisible=e.firstVisible,this._lastVisible=e.lastVisible,this._rangeChanged=this._rangeChanged||this._first!==t||this._last!==n,this._visibilityChanged=this._visibilityChanged||this._firstVisible!==i||this._lastVisible!==r})}_correctScrollError(){if(this._scrollError){const{scrollTop:e,scrollLeft:t}=this._scrollerController,{top:n,left:i}=this._scrollError;this._scrollError=null,this._scrollerController.correctScrollError({top:e-n,left:t-i})}}element(e){var t;return e===1/0&&(e=this._items.length-1),void 0===(null==(t=this._items)?void 0:t[e])?void 0:{scrollIntoView:(t={})=>this._scrollElementIntoView(B(R({},t),{index:e}))}}_scrollElementIntoView(e){if(e.index>=this._first&&e.index<=this._last)this._children[e.index-this._first].scrollIntoView(e);else if(e.index=Math.min(e.index,this._items.length-1),"smooth"===e.behavior){const t=this._layout.getScrollIntoViewCoordinates(e),{behavior:n}=e;this._updateScrollIntoViewCoordinates=this._scrollerController.managedScrollTo(Object.assign(t,{behavior:n}),()=>this._layout.getScrollIntoViewCoordinates(e),()=>this._scrollIntoViewTarget=null),this._scrollIntoViewTarget=e}else this._layout.pin=e}_checkScrollIntoViewTarget(e){const{index:t}=this._scrollIntoViewTarget||{};t&&(null==e?void 0:e.has(t))&&this._updateScrollIntoViewCoordinates(this._layout.getScrollIntoViewCoordinates(this._scrollIntoViewTarget))}_notifyRange(){this._hostElement.dispatchEvent(new Z2({first:this._first,last:this._last}))}_notifyVisibility(){this._hostElement.dispatchEvent(new J2({first:this._firstVisible,last:this._lastVisible}))}get layoutComplete(){return this._layoutCompletePromise||(this._layoutCompletePromise=new Promise((e,t)=>{this._layoutCompleteResolver=e,this._layoutCompleteRejecter=t})),this._layoutCompletePromise}_rejectLayoutCompletePromise(e){null!==this._layoutCompleteRejecter&&this._layoutCompleteRejecter(e),this._resetLayoutCompleteState()}_scheduleLayoutComplete(){this._layoutCompletePromise&&null===this._pendingLayoutComplete&&(this._pendingLayoutComplete=requestAnimationFrame(()=>requestAnimationFrame(()=>this._resolveLayoutCompletePromise())))}_resolveLayoutCompletePromise(){null!==this._layoutCompleteResolver&&this._layoutCompleteResolver(),this._resetLayoutCompleteState()}_resetLayoutCompleteState(){this._layoutCompletePromise=null,this._layoutCompleteResolver=null,this._layoutCompleteRejecter=null,this._pendingLayoutComplete=null}_hostElementSizeChanged(){this._schedule(this._updateLayout)}_childLoaded(){}_childrenSizeChanged(e){var t;if(null==(t=this._layout)?void 0:t.measureChildren){for(const t of e)this._toBeMeasured.set(t.target,t.contentRect);this._measureChildren()}this._scheduleLayoutComplete(),this._itemsChanged=!1,this._rangeChanged=!1}}function l3(e){const t=e?parseFloat(e):NaN;return Number.isNaN(t)?0:t}function c3(e){if(null!==e.assignedSlot)return e.assignedSlot;if(null!==e.parentElement)return e.parentElement;const t=e.parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host||null}const u3=e=>e,d3=(e,t)=>He`${t}: ${JSON.stringify(e,null,2)}`;const h3=Un(class extends K2{constructor(e){if(super(e),this._virtualizer=null,this._first=0,this._last=-1,this._renderItem=(e,t)=>d3(e,t+this._first),this._keyFunction=(e,t)=>u3(e,this._first),this._items=[],e.type!==jn)throw new Error("The virtualize directive can only be used in child expressions")}render(e){e&&this._setFunctions(e);const t=[];if(this._first>=0&&this._last>=this._first)for(let n=this._first;n<=this._last;n++)t.push(this._items[n]);return cC(t,this._keyFunction,this._renderItem)}update(e,[t]){this._setFunctions(t);const n=this._items!==t.items;return this._items=t.items||[],this._virtualizer?this._updateVirtualizerConfig(e,t):this._initialize(e,t),n?Qe:this.render()}_updateVirtualizerConfig(e,t){return U(this,null,function*(){if(!(yield this._virtualizer.updateLayoutConfig(t.layout||{}))){const n=e.parentNode;this._makeVirtualizer(n,t)}this._virtualizer.items=this._items})}_setFunctions(e){const{renderItem:t,keyFunction:n}=e;t&&(this._renderItem=(e,n)=>t(e,n+this._first)),n&&(this._keyFunction=(e,t)=>n(e,t+this._first))}_makeVirtualizer(e,t){this._virtualizer&&this._virtualizer.disconnected();const{layout:n,scroller:i,items:r}=t;this._virtualizer=new s3({hostElement:e,layout:n,scroller:i}),this._virtualizer.items=r,this._virtualizer.connected()}_initialize(e,t){const n=e.parentNode;n&&1===n.nodeType&&(n.addEventListener("rangeChanged",e=>{this._first=e.first,this._last=e.last,this.setValue(this.render())}),this._makeVirtualizer(n,t))}disconnected(){var e;null==(e=this._virtualizer)||e.disconnected()}reconnected(){var e;null==(e=this._virtualizer)||e.connected()}});class p3 extends st{constructor(){super(...arguments),this.items=[],this.renderItem=d3,this.keyFunction=u3,this.layout={},this.scroller=!1}createRenderRoot(){return this}render(){const{items:e,renderItem:t,keyFunction:n,layout:i,scroller:r}=this;return He`${h3({items:e,renderItem:t,keyFunction:n,layout:i,scroller:r})}`}element(e){var t;return null==(t=this[r3])?void 0:t.element(e)}get layoutComplete(){var e;return null==(e=this[r3])?void 0:e.layoutComplete}scrollToIndex(e,t="start"){var n;null==(n=this.element(e))||n.scrollIntoView({block:t})}}V2([dt({attribute:!1})],p3.prototype,"items",void 0),V2([dt()],p3.prototype,"renderItem",void 0),V2([dt()],p3.prototype,"keyFunction",void 0),V2([dt({attribute:!1})],p3.prototype,"layout",void 0),V2([dt({reflect:!0,type:Boolean})],p3.prototype,"scroller",void 0),customElements.define("lit-virtualizer",p3);var f3=function(){return bt.Date.now()},m3=/\s/;var g3=/^\s+/;function v3(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&m3.test(e.charAt(t)););return t}(e)+1).replace(g3,""):e}var y3=/^[-+]0x[0-9a-f]+$/i,b3=/^0b[01]+$/i,A3=/^0o[0-7]+$/i,w3=parseInt;function x3(e){if("number"==typeof e)return e;if(Pt(e))return NaN;if(aE(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=aE(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=v3(e);var n=b3.test(e);return n||A3.test(e)?w3(e.slice(2),n?2:8):y3.test(e)?NaN:+e}var _3=Math.max,E3=Math.min;function S3(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=f3();if(f(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?E3(n,o-(e-c)):n}(e))}function g(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function v(){var e=f3(),n=f(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=x3(t)||0,aE(n)&&(u=!!n.leading,o=(d="maxWait"in n)?_3(x3(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},v.flush=function(){return void 0===s?a:g(f3())},v}function C3(e){return"horizontal"===e?"width":"height"}function T3(e){return"horizontal"===e?"height":"width"}class k3{_getDefaultConfig(){return{direction:"vertical"}}constructor(e,t){this._latestCoords={left:0,top:0},this._direction=null,this._viewportSize={width:0,height:0},this.totalScrollSize={width:0,height:0},this.offsetWithinScroller={left:0,top:0},this._pendingReflow=!1,this._pendingLayoutUpdate=!1,this._pin=null,this._firstVisible=0,this._lastVisible=0,this._physicalMin=0,this._physicalMax=0,this._first=-1,this._last=-1,this._sizeDim="height",this._secondarySizeDim="width",this._positionDim="top",this._secondaryPositionDim="left",this._scrollPosition=0,this._scrollError=0,this._items=[],this._scrollSize=1,this._overhang=1e3,this._hostSink=e,Promise.resolve().then(()=>this.config=t||this._getDefaultConfig())}set config(e){Object.assign(this,Object.assign({},this._getDefaultConfig(),e))}get config(){return{direction:this.direction}}get items(){return this._items}set items(e){this._setItems(e)}_setItems(e){e!==this._items&&(this._items=e,this._scheduleReflow())}get direction(){return this._direction}set direction(e){(e="horizontal"===e?e:"vertical")!==this._direction&&(this._direction=e,this._sizeDim="horizontal"===e?"width":"height",this._secondarySizeDim="horizontal"===e?"height":"width",this._positionDim="horizontal"===e?"left":"top",this._secondaryPositionDim="horizontal"===e?"top":"left",this._triggerReflow())}get viewportSize(){return this._viewportSize}set viewportSize(e){const{_viewDim1:t,_viewDim2:n}=this;Object.assign(this._viewportSize,e),n!==this._viewDim2?this._scheduleLayoutUpdate():t!==this._viewDim1&&this._checkThresholds()}get viewportScroll(){return this._latestCoords}set viewportScroll(e){Object.assign(this._latestCoords,e);const t=this._scrollPosition;this._scrollPosition=this._latestCoords[this._positionDim];Math.abs(t-this._scrollPosition)>=1&&this._checkThresholds()}reflowIfNeeded(e=!1){(e||this._pendingReflow)&&(this._pendingReflow=!1,this._reflow())}set pin(e){this._pin=e,this._triggerReflow()}get pin(){if(null!==this._pin){const{index:e,block:t}=this._pin;return{index:Math.max(0,Math.min(e,this.items.length-1)),block:t}}return null}_clampScrollPosition(e){return Math.max(-this.offsetWithinScroller[this._positionDim],Math.min(e,this.totalScrollSize[C3(this.direction)]-this._viewDim1))}unpin(){null!==this._pin&&(this._sendUnpinnedMessage(),this._pin=null)}_updateLayout(){}get _viewDim1(){return this._viewportSize[this._sizeDim]}get _viewDim2(){return this._viewportSize[this._secondarySizeDim]}_scheduleReflow(){this._pendingReflow=!0}_scheduleLayoutUpdate(){this._pendingLayoutUpdate=!0,this._scheduleReflow()}_triggerReflow(){this._scheduleLayoutUpdate(),Promise.resolve().then(()=>this.reflowIfNeeded())}_reflow(){this._pendingLayoutUpdate&&(this._updateLayout(),this._pendingLayoutUpdate=!1),this._updateScrollSize(),this._setPositionFromPin(),this._getActiveItems(),this._updateVisibleIndices(),this._sendStateChangedMessage()}_setPositionFromPin(){if(null!==this.pin){const e=this._scrollPosition,{index:t,block:n}=this.pin;this._scrollPosition=this._calculateScrollIntoViewPosition({index:t,block:n||"start"})-this.offsetWithinScroller[this._positionDim],this._scrollError=e-this._scrollPosition}}_calculateScrollIntoViewPosition(e){const{block:t}=e,n=Math.min(this.items.length,Math.max(0,e.index)),i=this._getItemPosition(n)[this._positionDim];let r=i;if("start"!==t){const e=this._getItemSize(n)[this._sizeDim];if("center"===t)r=i-.5*this._viewDim1+.5*e;else{const n=i-this._viewDim1+e;if("end"===t)r=n;else{const e=this._scrollPosition;r=Math.abs(e-i)<Math.abs(e-n)?i:n}}}return r+=this.offsetWithinScroller[this._positionDim],this._clampScrollPosition(r)}getScrollIntoViewCoordinates(e){return{[this._positionDim]:this._calculateScrollIntoViewPosition(e)}}_sendUnpinnedMessage(){this._hostSink({type:"unpinned"})}_sendVisibilityChangedMessage(){this._hostSink({type:"visibilityChanged",firstVisible:this._firstVisible,lastVisible:this._lastVisible})}_sendStateChangedMessage(){const e=new Map;if(-1!==this._first&&-1!==this._last)for(let n=this._first;n<=this._last;n++)e.set(n,this._getItemPosition(n));const t={type:"stateChanged",scrollSize:{[this._sizeDim]:this._scrollSize,[this._secondarySizeDim]:null},range:{first:this._first,last:this._last,firstVisible:this._firstVisible,lastVisible:this._lastVisible},childPositions:e};this._scrollError&&(t.scrollError={[this._positionDim]:this._scrollError,[this._secondaryPositionDim]:0},this._scrollError=0),this._hostSink(t)}get _num(){return-1===this._first||-1===this._last?0:this._last-this._first+1}_checkThresholds(){if(0===this._viewDim1&&this._num>0||null!==this._pin)this._scheduleReflow();else{const e=Math.max(0,this._scrollPosition-this._overhang),t=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang);this._physicalMin>e||this._physicalMax<t?this._scheduleReflow():this._updateVisibleIndices({emit:!0})}}_updateVisibleIndices(e){if(-1===this._first||-1===this._last)return;let t=this._first;for(;t<this._last&&Math.round(this._getItemPosition(t)[this._positionDim]+this._getItemSize(t)[this._sizeDim])<=Math.round(this._scrollPosition);)t++;let n=this._last;for(;n>this._first&&Math.round(this._getItemPosition(n)[this._positionDim])>=Math.round(this._scrollPosition+this._viewDim1);)n--;t===this._firstVisible&&n===this._lastVisible||(this._firstVisible=t,this._lastVisible=n,e&&e.emit&&this._sendVisibilityChangedMessage())}}function I3(e){return"horizontal"===e?"row":"column"}class M3 extends k3{constructor(){super(...arguments),this._itemSize={},this._gaps={},this._padding={}}_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{itemSize:{width:"300px",height:"300px"},gap:"8px",padding:"match-gap"})}get _gap(){return this._gaps.row}get _idealSize(){return this._itemSize[C3(this.direction)]}get _idealSize1(){return this._itemSize[C3(this.direction)]}get _idealSize2(){return this._itemSize[T3(this.direction)]}get _gap1(){return this._gaps[e=this.direction,"horizontal"===e?"column":"row"];var e}get _gap2(){return this._gaps[I3(this.direction)]}get _padding1(){const e=this._padding,[t,n]="horizontal"===this.direction?["left","right"]:["top","bottom"];return[e[t],e[n]]}get _padding2(){const e=this._padding,[t,n]="horizontal"===this.direction?["top","bottom"]:["left","right"];return[e[t],e[n]]}set itemSize(e){const t=this._itemSize;"string"==typeof e&&(e={width:e,height:e});const n=parseInt(e.width),i=parseInt(e.height);n!==t.width&&(t.width=n,this._triggerReflow()),i!==t.height&&(t.height=i,this._triggerReflow())}set gap(e){this._setGap(e)}_setGap(e){const t=e.split(" ").map(e=>function(e){return"auto"===e?1/0:parseInt(e)}(e)),n=this._gaps;t[0]!==n.row&&(n.row=t[0],this._triggerReflow()),void 0===t[1]?t[0]!==n.column&&(n.column=t[0],this._triggerReflow()):t[1]!==n.column&&(n.column=t[1],this._triggerReflow())}set padding(e){const t=this._padding,n=e.split(" ").map(e=>function(e){return"match-gap"===e?1/0:parseInt(e)}(e));1===n.length?(t.top=t.right=t.bottom=t.left=n[0],this._triggerReflow()):2===n.length?(t.top=t.bottom=n[0],t.right=t.left=n[1],this._triggerReflow()):3===n.length?(t.top=n[0],t.right=t.left=n[1],t.bottom=n[2],this._triggerReflow()):4===n.length&&(["top","right","bottom","left"].forEach((e,i)=>t[e]=n[i]),this._triggerReflow())}}class P3 extends M3{constructor(){super(...arguments),this._metrics=null,this.flex=null,this.justify=null}_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{flex:!1,justify:"start"})}set gap(e){super._setGap(e)}_updateLayout(){const e=this.justify,[t,n]=this._padding1,[i,r]=this._padding2;["_gap1","_gap2"].forEach(t=>{const n=this[t];if(n===1/0&&!["space-between","space-around","space-evenly"].includes(e))throw new Error("grid layout: gap can only be set to 'auto' when justify is set to 'space-between', 'space-around' or 'space-evenly'");if(n===1/0&&"_gap2"===t)throw new Error(`grid layout: ${I3(this.direction)}-gap cannot be set to 'auto' when direction is set to ${this.direction}`)});const o=this.flex||["start","center","end"].includes(e),a={rolumns:-1,itemSize1:-1,itemSize2:-1,gap1:this._gap1===1/0?-1:this._gap1,gap2:o?this._gap2:0,padding1:{start:t===1/0?this._gap1:t,end:n===1/0?this._gap1:n},padding2:o?{start:i===1/0?this._gap2:i,end:r===1/0?this._gap2:r}:{start:0,end:0},positions:[]},s=this._viewDim2-a.padding2.start-a.padding2.end;if(s<=0)a.rolumns=0;else{const i=o?a.gap2:0;let r,l=0,c=0;if(s>=this._idealSize2&&(l=Math.floor((s-this._idealSize2)/(this._idealSize2+i))+1,c=l*this._idealSize2+(l-1)*i),this.flex){(s-c)/(this._idealSize2+i)>=.5&&(l+=1),a.rolumns=l,a.itemSize2=Math.round((s-i*(l-1))/l);switch(!0===this.flex?"area":this.flex.preserve){case"aspect-ratio":a.itemSize1=Math.round(this._idealSize1/this._idealSize2*a.itemSize2);break;case C3(this.direction):a.itemSize1=Math.round(this._idealSize1);break;default:a.itemSize1=Math.round(this._idealSize1*this._idealSize2/a.itemSize2)}}else a.itemSize1=this._idealSize1,a.itemSize2=this._idealSize2,a.rolumns=l;if(o){const t=a.rolumns*a.itemSize2+(a.rolumns-1)*a.gap2;r=this.flex||"start"===e?a.padding2.start:"end"===e?this._viewDim2-a.padding2.end-t:Math.round(this._viewDim2/2-t/2)}else{const i=s-a.rolumns*a.itemSize2;"space-between"===e?(a.gap2=Math.round(i/(a.rolumns-1)),r=0):"space-around"===e?(a.gap2=Math.round(i/a.rolumns),r=Math.round(a.gap2/2)):(a.gap2=Math.round(i/(a.rolumns+1)),r=a.gap2),this._gap1===1/0&&(a.gap1=a.gap2,t===1/0&&(a.padding1.start=r),n===1/0&&(a.padding1.end=r))}for(let e=0;e<a.rolumns;e++)a.positions.push(r),r+=a.itemSize2+a.gap2}this._metrics=a}}class R3 extends P3{get _delta(){return this._metrics.itemSize1+this._metrics.gap1}_getItemSize(e){return{[this._sizeDim]:this._metrics.itemSize1,[this._secondarySizeDim]:this._metrics.itemSize2}}_getActiveItems(){const e=this._metrics,{rolumns:t}=e;if(0===t)this._first=-1,this._last=-1,this._physicalMin=0,this._physicalMax=0;else{const{padding1:n}=e,i=Math.max(0,this._scrollPosition-this._overhang),r=Math.min(this._scrollSize,this._scrollPosition+this._viewDim1+this._overhang),o=Math.max(0,Math.floor((i-n.start)/this._delta)),a=Math.max(0,Math.ceil((r-n.start)/this._delta));this._first=o*t,this._last=Math.min(a*t-1,this.items.length-1),this._physicalMin=n.start+this._delta*o,this._physicalMax=n.start+this._delta*a}}_getItemPosition(e){const{rolumns:t,padding1:n,positions:i,itemSize1:r,itemSize2:o}=this._metrics;return{[this._positionDim]:n.start+Math.floor(e/t)*this._delta,[this._secondaryPositionDim]:i[e%t],[C3(this.direction)]:r,[T3(this.direction)]:o}}_updateScrollSize(){const{rolumns:e,gap1:t,padding1:n,itemSize1:i}=this._metrics;let r=1;if(e>0){const o=Math.ceil(this.items.length/e);r=n.start+o*i+(o-1)*t+n.end}this._scrollSize=r}}const B3=Ea`.array-clamp{flex-wrap:nowrap;flex-grow:1;flex-shrink:1;align-items:center;display:flex;overflow:hidden}.array-clamp__items-container{flex-wrap:nowrap;flex-grow:1;flex-shrink:1;align-items:center;width:100%;min-width:0;display:flex;overflow:hidden}.array-clamp__items-container ::slotted(.array-clamp__item){white-space:nowrap;flex-shrink:0}.array-clamp__items-container ::slotted(.array-clamp__item:not(:last-child)):after{content:var(--array-clamp-separator,", ");white-space:pre}.array-clamp__items-container ::slotted(.array-clamp__item.clamped){display:none}.array-clamp__items-container ::slotted(.array-clamp__item.array-clamp__last-visible){-webkit-line-clamp:1;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;flex-shrink:1;min-width:0;display:-webkit-box;overflow:hidden}.array-clamp__indicator{flex-shrink:0}.array-clamp__indicator::part(base){overflow-wrap:break-word;min-width:2rem;max-width:4rem}`;var O3=Object.defineProperty,D3=Object.getOwnPropertyDescriptor,L3=(e,t,n,i)=>{for(var r,o=i>1?void 0:i?D3(t,n):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i?r(t,n,o):r(o))||o);return i&&o&&O3(t,n,o),o};const N3="array-clamp__last-visible",z3="clamped";let F3=class extends Os{constructor(){super(...arguments),this.separator=", ",this.tooltipSeparator="",this.clampedMap=new Map}get totalClamped(){return Array.from(this.clampedMap.values()).filter(Boolean).length}get totalVisible(){var e,t;const n=null!=(t=null==(e=this.slotEl)?void 0:e.assignedElements({flatten:!0}).length)?t:0;return Math.max(0,n-this.totalClamped)}get hiddenChildrenStr(){const e=this.slotEl;if(!e)return"";const t=e.assignedElements({flatten:!0}),n=this.tooltipSeparator||this.separator;return t.map((e,t)=>{var n,i;return this.clampedMap.get(t)&&null!=(i=null==(n=e.textContent)?void 0:n.trim())?i:""}).filter(Boolean).join(n)}applyItemClasses(){const e=this.slotEl;if(!e)return;const t=e.assignedElements({flatten:!0}),n=this.totalVisible;t.forEach((e,i)=>{e.classList.add("array-clamp__item"),this.clampedMap.get(i)?(e.classList.add(z3),e.classList.remove(N3)):(e.classList.remove(z3),i===t.length-1||i===n-1&&n>0?e.classList.add(N3):e.classList.remove(N3))})}handleSlotChange(){const e=this.containerEl,t=this.slotEl;if(!e||!t)return;const n=t.assignedElements({flatten:!0});if(0===n.length)return void(this.clampedMap=new Map);const i=e.clientWidth;let r=0;const o=new Map;let a=!1;n.forEach((e,t)=>{a?o.set(t,!0):(r+=e.offsetWidth,r>i&&(a=!0,o.set(t,!0)))}),this.clampedMap=o,this.requestUpdate("clampedMap")}handleResize(e){const{entries:t}=e.detail;0===t.length||t[0].target!==this.containerEl||this.handleSlotChange()}runFirstUpdated(){this.applyItemClasses()}handleClampedMapChange(){this.applyItemClasses()}render(){return ss`<div class="array-clamp" style=${rf({"--array-clamp-separator":`'${String(this.separator).replaceAll("'",String.raw`\'`)}'`})}><cx-resize-observer @cx-resize=${this.handleResize}><div class="array-clamp__items-container" part="container"><slot @slotchange=${this.handleSlotChange}></slot>${Id(this.totalClamped>0,()=>ss`<cx-tag variant="neutral" size="small" pill class="array-clamp__indicator" part="indicator"><cx-line-clamp tooltip=${this.hiddenChildrenStr} lines="1">
|
|
1925
1925
|
+${this.totalClamped}</cx-line-clamp></cx-tag>`,()=>cs)}</div></cx-resize-observer></div>`}};F3.styles=[Ls,B3],F3.dependencies={"cx-line-clamp":ov,"cx-resize-observer":ev,"cx-tag":Iv},L3([Ad(".array-clamp__items-container")],F3.prototype,"containerEl",2),L3([Ad("slot")],F3.prototype,"slotEl",2),L3([Ms({type:String})],F3.prototype,"separator",2),L3([Ms({attribute:"tooltip-separator",type:String})],F3.prototype,"tooltipSeparator",2),L3([yd()],F3.prototype,"clampedMap",2),L3([vd("clampedMap")],F3.prototype,"handleClampedMapChange",1),F3=L3([Hs("cx-array-line-clamp")],F3);const j3=Ea`:host{--border-color:var(--cx-color-neutral-200);--border-radius:var(--cx-border-radius-x-large);--box-shadow:var(--cx-shadow-x-small);--image-border-radius:var(--cx-border-radius-x-large);--border-width:1px;--padding:var(--cx-spacing-large);width:var(--card-width,auto);height:var(--card-height,auto);display:inline-block}.card{background-color:var(--cx-panel-background-color);box-shadow:var(--box-shadow);border:solid var(--border-width) var(--border-color);border-radius:var(--border-radius);padding:var(--padding);flex-direction:column;width:100%;height:100%;display:flex;position:relative;overflow:auto}.card--interactive{--border-color:var(--cx-color-primary-300);box-shadow:none;cursor:pointer;transition:box-shadow .2s ease-in-out}.card--interactive:hover{box-shadow:var(--cx-shadow-medium)}.card--disabled:before{content:"";background-color:rgb(from var(--cx-color-neutral-0) r g b / 50%);z-index:1;width:100%;height:100%;position:absolute;top:0;left:0}.card__image{background-color:var(--cx-color-neutral-100);border-radius:var(--image-border-radius);margin:calc(-1 * var(--border-width));margin-bottom:var(--padding);flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.card__image::slotted(img){width:100%;height:auto;display:block}.card:not(.card--has-image) .card__image{display:none}.card__header{border-bottom:solid var(--header-border-width,var(--border-width)) var(--border-color);padding-bottom:var(--padding);margin-bottom:var(--padding);display:block}.card:not(.card--has-header) .card__header{display:none}.card__title{font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-bold);display:block}.card:not(.card--has-title) .card__title{display:none}.card__body{width:100%;display:block}.card--has-footer .card__footer{border-top:solid var(--border-width) var(--border-color);padding-top:var(--padding);margin-top:var(--padding);display:block}.card:not(.card--has-footer) .card__footer{display:none}`;var U3=Object.defineProperty,H3=Object.getOwnPropertyDescriptor,Q3=(e,t,n,i)=>{for(var r,o=i>1?void 0:i?H3(t,n):t,a=e.length-1;a>=0;a--)(r=e[a])&&(o=(i?r(t,n,o):r(o))||o);return i&&o&&U3(t,n,o),o};let V3=class extends Os{constructor(){super(...arguments),this.interactive=!1,this.disabled=!1,this.hasSlotController=new xc(this,"footer","header","image")}handleClick(e){this.disabled&&e.preventDefault()}render(){return ss`<div part="base" class=${Td({card:!0,"card--disabled":this.disabled,"card--has-footer":this.hasSlotController.test("footer"),"card--has-header":this.hasSlotController.test("header"),"card--has-image":this.hasSlotController.test("image"),"card--has-title":this.hasSlotController.test("title"),"card--interactive":this.interactive})} @click=${this.handleClick}><slot name="image" part="image" class="card__image"></slot><slot name="header" part="header" class="card__header"></slot><slot name="title" part="title" class="card__title"></slot><slot part="body" class="card__body"></slot><slot name="footer" part="footer" class="card__footer"></slot></div>`}};V3.styles=[Ls,j3],Q3([Ms({reflect:!0,type:Boolean})],V3.prototype,"interactive",2),Q3([Ms({reflect:!0,type:Boolean})],V3.prototype,"disabled",2),V3=Q3([Hs("cx-card")],V3);const G3=ie`
|
|
1926
1926
|
:host {
|
|
1927
1927
|
display: block;
|
|
@@ -2407,6 +2407,7 @@
|
|
|
2407
2407
|
?can-pin-asset=${this.canPinAsset}
|
|
2408
2408
|
?can-track=${this.canTrack}
|
|
2409
2409
|
?can-use-proxies=${this.canUseProxies&&!this.simplePick}
|
|
2410
|
+
?simple-pick=${this.simplePick}
|
|
2410
2411
|
?can-view-versions=${this.canViewVersions}
|
|
2411
2412
|
@cx-content-browser-format-dialog-version-history-open=${this.handleVersionHistoryOpen}
|
|
2412
2413
|
@cx-content-browser-format-dialog-favorite-change=${this.handleFavoriteChange}
|
|
@@ -47,6 +47,11 @@ export default class CxContentBrowserFormatDialog extends CortexElement {
|
|
|
47
47
|
canPinAsset: boolean;
|
|
48
48
|
canTrack: boolean;
|
|
49
49
|
canUseProxies: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Pick-only mode. Suppresses the custom-format editor entirely: cx-asset-link-format issues its
|
|
52
|
+
* own transformasset request as soon as it is in the DOM, so hiding it with CSS is not enough.
|
|
53
|
+
*/
|
|
54
|
+
simplePick: boolean;
|
|
50
55
|
canViewVersions: boolean;
|
|
51
56
|
variant: ContentBrowserFormatDialogVariant;
|
|
52
57
|
loadingFavorites: boolean;
|
|
@@ -9094,6 +9094,7 @@ let CxContentBrowserFormatDialog = class extends CortexElement {
|
|
|
9094
9094
|
this.canPinAsset = false;
|
|
9095
9095
|
this.canTrack = false;
|
|
9096
9096
|
this.canUseProxies = false;
|
|
9097
|
+
this.simplePick = false;
|
|
9097
9098
|
this.canViewVersions = false;
|
|
9098
9099
|
this.variant = ContentBrowserFormatDialogVariant.Dialog;
|
|
9099
9100
|
this.loadingFavorites = false;
|
|
@@ -9499,7 +9500,7 @@ let CxContentBrowserFormatDialog = class extends CortexElement {
|
|
|
9499
9500
|
}
|
|
9500
9501
|
let previewer = void 0;
|
|
9501
9502
|
let proxySelector = void 0;
|
|
9502
|
-
if (this.asset.docType === MediaType.Image) {
|
|
9503
|
+
if (!this.simplePick && this.asset.docType === MediaType.Image) {
|
|
9503
9504
|
previewer = b`
|
|
9504
9505
|
<cx-cropper id="cropper" class="content-browser-format__cropper" fill-image></cx-cropper>
|
|
9505
9506
|
`;
|
|
@@ -9591,11 +9592,12 @@ let CxContentBrowserFormatDialog = class extends CortexElement {
|
|
|
9591
9592
|
this.proxies,
|
|
9592
9593
|
this.confirmedTransformations,
|
|
9593
9594
|
this.selectedProxy,
|
|
9594
|
-
this.showCustomFormat
|
|
9595
|
+
this.showCustomFormat,
|
|
9596
|
+
this.simplePick
|
|
9595
9597
|
],
|
|
9596
9598
|
() => {
|
|
9597
9599
|
var _a3, _b3, _c3, _d3;
|
|
9598
|
-
if (((_a3 = this.asset) == null ? void 0 : _a3.docType) !== MediaType.Image) {
|
|
9600
|
+
if (this.simplePick || ((_a3 = this.asset) == null ? void 0 : _a3.docType) !== MediaType.Image) {
|
|
9599
9601
|
return A;
|
|
9600
9602
|
}
|
|
9601
9603
|
const extensions = (_d3 = (_c3 = (_b3 = this.availableExtensions) == null ? void 0 : _b3[this.asset.docType]) == null ? void 0 : _c3.map((item) => ({
|
|
@@ -9839,6 +9841,9 @@ __decorateClass$5([
|
|
|
9839
9841
|
__decorateClass$5([
|
|
9840
9842
|
n$6({ attribute: "can-use-proxies", reflect: false, type: Boolean })
|
|
9841
9843
|
], CxContentBrowserFormatDialog.prototype, "canUseProxies", 2);
|
|
9844
|
+
__decorateClass$5([
|
|
9845
|
+
n$6({ attribute: "simple-pick", reflect: false, type: Boolean })
|
|
9846
|
+
], CxContentBrowserFormatDialog.prototype, "simplePick", 2);
|
|
9842
9847
|
__decorateClass$5([
|
|
9843
9848
|
n$6({ attribute: "can-view-versions", reflect: false, type: Boolean })
|
|
9844
9849
|
], CxContentBrowserFormatDialog.prototype, "canViewVersions", 2);
|
|
@@ -14882,6 +14887,7 @@ let CxContentBrowser = class extends CortexElement {
|
|
|
14882
14887
|
?can-pin-asset=${this.canPinAsset}
|
|
14883
14888
|
?can-track=${this.canTrack}
|
|
14884
14889
|
?can-use-proxies=${this.canUseProxies && !this.simplePick}
|
|
14890
|
+
?simple-pick=${this.simplePick}
|
|
14885
14891
|
?can-view-versions=${this.canViewVersions}
|
|
14886
14892
|
@cx-content-browser-format-dialog-version-history-open=${this.handleVersionHistoryOpen}
|
|
14887
14893
|
@cx-content-browser-format-dialog-favorite-change=${this.handleFavoriteChange}
|
package/build/index.mjs
CHANGED
|
@@ -9160,6 +9160,7 @@ let CxContentBrowserFormatDialog = class extends CortexElement {
|
|
|
9160
9160
|
this.canPinAsset = false;
|
|
9161
9161
|
this.canTrack = false;
|
|
9162
9162
|
this.canUseProxies = false;
|
|
9163
|
+
this.simplePick = false;
|
|
9163
9164
|
this.canViewVersions = false;
|
|
9164
9165
|
this.variant = ContentBrowserFormatDialogVariant.Dialog;
|
|
9165
9166
|
this.loadingFavorites = false;
|
|
@@ -9565,7 +9566,7 @@ let CxContentBrowserFormatDialog = class extends CortexElement {
|
|
|
9565
9566
|
}
|
|
9566
9567
|
let previewer = void 0;
|
|
9567
9568
|
let proxySelector = void 0;
|
|
9568
|
-
if (this.asset.docType === MediaType.Image) {
|
|
9569
|
+
if (!this.simplePick && this.asset.docType === MediaType.Image) {
|
|
9569
9570
|
previewer = b`
|
|
9570
9571
|
<cx-cropper id="cropper" class="content-browser-format__cropper" fill-image></cx-cropper>
|
|
9571
9572
|
`;
|
|
@@ -9657,11 +9658,12 @@ let CxContentBrowserFormatDialog = class extends CortexElement {
|
|
|
9657
9658
|
this.proxies,
|
|
9658
9659
|
this.confirmedTransformations,
|
|
9659
9660
|
this.selectedProxy,
|
|
9660
|
-
this.showCustomFormat
|
|
9661
|
+
this.showCustomFormat,
|
|
9662
|
+
this.simplePick
|
|
9661
9663
|
],
|
|
9662
9664
|
() => {
|
|
9663
9665
|
var _a3, _b3, _c3, _d3;
|
|
9664
|
-
if (((_a3 = this.asset) == null ? void 0 : _a3.docType) !== MediaType.Image) {
|
|
9666
|
+
if (this.simplePick || ((_a3 = this.asset) == null ? void 0 : _a3.docType) !== MediaType.Image) {
|
|
9665
9667
|
return A$1;
|
|
9666
9668
|
}
|
|
9667
9669
|
const extensions = (_d3 = (_c3 = (_b3 = this.availableExtensions) == null ? void 0 : _b3[this.asset.docType]) == null ? void 0 : _c3.map((item) => ({
|
|
@@ -9905,6 +9907,9 @@ __decorateClass$5([
|
|
|
9905
9907
|
__decorateClass$5([
|
|
9906
9908
|
n$6({ attribute: "can-use-proxies", reflect: false, type: Boolean })
|
|
9907
9909
|
], CxContentBrowserFormatDialog.prototype, "canUseProxies", 2);
|
|
9910
|
+
__decorateClass$5([
|
|
9911
|
+
n$6({ attribute: "simple-pick", reflect: false, type: Boolean })
|
|
9912
|
+
], CxContentBrowserFormatDialog.prototype, "simplePick", 2);
|
|
9908
9913
|
__decorateClass$5([
|
|
9909
9914
|
n$6({ attribute: "can-view-versions", reflect: false, type: Boolean })
|
|
9910
9915
|
], CxContentBrowserFormatDialog.prototype, "canViewVersions", 2);
|
|
@@ -14948,6 +14953,7 @@ let CxContentBrowser = class extends CortexElement {
|
|
|
14948
14953
|
?can-pin-asset=${this.canPinAsset}
|
|
14949
14954
|
?can-track=${this.canTrack}
|
|
14950
14955
|
?can-use-proxies=${this.canUseProxies && !this.simplePick}
|
|
14956
|
+
?simple-pick=${this.simplePick}
|
|
14951
14957
|
?can-view-versions=${this.canViewVersions}
|
|
14952
14958
|
@cx-content-browser-format-dialog-version-history-open=${this.handleVersionHistoryOpen}
|
|
14953
14959
|
@cx-content-browser-format-dialog-favorite-change=${this.handleFavoriteChange}
|
package/package.json
CHANGED