{"version":3,"file":"static/js/application.async.landing~9c1bceb0.cbab5156.chunk.js","mappings":"siBAAaA,EAAY,WAAH,MAAU,CAC9BC,eAAgB,CACd,gBAAiB,CACfC,SAAU,WACVC,IAAK,GACLC,KAAM,EACNC,OAAQ,GACRC,MAAO,IACPC,gBAAiB,QACjBC,QAAS,SACTC,UAAW,sCACXC,OAAQ,EACRC,SAAU,OAEV,uBAAwB,CACtBC,SAAU,GACVC,WAAY,OACZC,WAAY,IACZC,UAAW,IAEb,gBAAiB,CACfC,QAAS,OACTC,WAAY,SACZC,eAAgB,cAElB,eAAgB,CACdF,QAAS,OACTC,WAAY,MACZE,oBAAqB,UACrBC,QAAS,QAEX,oBAAqB,CACnBL,UAAW,GACX,gBAAiB,CACfH,SAAU,GACVC,WAAY,OACZC,WAAY,KAEd,gBAAiB,CACfR,MAAO,OACPS,UAAW,IAGf,8BAA+B,CAC7BA,UAAW,GACXM,aAAc,EACdC,OAAQ,sBAIZ,uBAAwB,CACtBf,gBAAiB,UACjBgB,YAAa,GACbrB,SAAU,WACVC,IAAK,GACLqB,MAAO,EACPpB,KAAM,IACNC,OAAQ,GACRK,OAAQ,EACRe,UAAW,OACX,iBAAkB,CAChBC,OAAQ,qBACR,iBAAkB,CAChBpB,MAAO,OACPoB,OAAQ,OACR,yBAA0B,CACxBpB,MAAO,IACPoB,OAAQ,oBACRL,aAAc,MACdM,WAAY,WAEd,iBAAkB,CAChBZ,UAAW,GACXC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChB,kBAAmB,CACjBU,WAAY,EACZhB,SAAU,GACViB,UAAW,SACXC,WAAY,IACZjB,WAAY,OACZkB,MAAO,aAIb,mBAAoB,CAClBzB,MAAO,IACPoB,OAAQ,OACRf,SAAU,SACVK,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChB,QAAS,CACPZ,MAAO,OACPoB,OAAQ,OACRM,SAAU,IACVC,UAAW,OACXC,UAAW,aAIjB,iBAAkB,CAChBhC,SAAU,WACVG,OAAQ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IAHLmgB,EAAangB,EAAbmgB,cACA/e,EAASpB,EAAToB,UACAgf,EAAWpgB,EAAXogB,YAEM01F,GAAgB9sG,EAAAA,EAAAA,UAAQ,iBAAO,CACnC+sG,OAAQ51F,EAAgB,CAAEnjB,MAAO,GAAIoB,OAAQ,IAAO,KACpDsS,KAAM0P,GAAe,CACnBpjB,MAAO,OACPoB,OAAQ,OACRs8B,OAAQ,QAEX,GAAG,CAACta,EAAaD,IAElB,OACEhf,EAAAA,EAAAA,KAACqR,EAAAA,QAAO,CACNi5C,KAAMC,EAAAA,YAAY/N,MAClBltC,OAAQqlG,EACR10G,UAAWA,GAGjB,EASA8e,EAAoBpd,aAAe,CACjCqd,eAAe,EACf/e,UAAW,GACXgf,YAAa,K","sources":["../../../../creative-studio/packages/asset-library-creative-editor/src/style.js","../../../../creative-studio/packages/asset-library-creative-editor/src/utils.js","../../../../creative-studio/packages/asset-library-creative-editor/src/color-editor/creative-color-picker.js","../../../../creative-studio/packages/asset-library-creative-editor/src/color-editor/creative-colors-editor.js","../../../../creative-studio/packages/asset-library-creative-editor/src/creative-editor-view.js","../../../../creative-studio/packages/asset-library-creative-editor/src/creative-editor-with-add-image-wrapper.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/view-type.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/website-images-view/index.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/website-images-view/use-image-experience-adapter.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/stock-images-view/index.js","../../../../creative-studio/packages/add-social-images-view/src/styles/index.js","../../../../creative-studio/packages/add-social-images-view/src/social-images-view.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/social-images-view/index.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/ai-generate-images-view/index.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/landing-view/landing-page-content/styles.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/landing-view/landing-page-content/image-delete-confirm-dialog.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/landing-view/landing-page-content/asset-library-images-view.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/landing-view/landing-page-content/index.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/landing-view/index.js","../../../../creative-studio/packages/add-invest-images-view/src/styles/index.js","../../../../creative-studio/packages/add-invest-images-view/src/invest-image-view.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/invest-images-view/index.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/view-config/index.js","../../../../creative-studio/packages/add-media-panel-crud-ad/src/image-asset/add-image-crud-ad.js","../../../../creative-studio/packages/add-stock-images-view/src/legacy-i18n-map.js","../../../../creative-studio/packages/add-stock-images-view/src/styles/index.js","../../../../creative-studio/packages/add-stock-images-view/src/stock-image-view.js","../../../../creative-studio/packages/add-website-images-view/src/styles/placeholder-view.js","../../../../creative-studio/packages/add-website-images-view/src/styles/website-image.js","../../../../creative-studio/packages/add-website-images-view/src/placeholder-view.js","../../../../creative-studio/packages/add-website-images-view/src/website-images-view.js","../../../../creative-studio/packages/asset-library-ai-generate-images-view/src/state.js","../../../../creative-studio/packages/asset-library-ai-generate-images-view/src/util.js","../../../../creative-studio/packages/asset-library-ai-generate-images-view/src/generated-images.js","../../../../creative-studio/packages/asset-library-ai-generate-images-view/src/index.js","../../../../creative-studio/packages/asset-library-ai-generate-images-view/src/styles.js","../../../../creative-studio/packages/asset-library-ai-generate-images-view/src/disclaimer.js","../../../../creative-studio/packages/asset-library-components/src/sequential-navigator/style.js","../../../../creative-studio/packages/asset-library-components/src/sequential-navigator/index.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/shared-icon-box-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/info-pane-header-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/info-pane-header.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/info-pane-item-default-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/shared-ellipsis-text-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/info-pane-item-default.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/info-pane-item-copy-url-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/info-pane-item-copy-url.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/info-pane-item-external-link-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/info-pane-item-external-link.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/styles/info-pane-item-rename-style.js","../../../../creative-studio/packages/asset-library-components/src/info-pane/info-pane-item-rename.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-action-button.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-action-button-style.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-image.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-image.js","../../../../creative-studio/packages/asset-library-components/src/asset-images/index.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-decorative-label.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-decorative-label.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-decorative-icon.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-decorative-icon.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-loading-cell.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-overlay-style.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-overlay.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-card-style.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-card.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/default-grid-config.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/tiles-grid.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-style.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/multi-selection-grid.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/section-tiles-grid-style.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/section-tiles-grid.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-selection-decorator.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-selection-decorator-style.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/grid-cells/tiles-grid-cell-deletion-button-decorator.js","../../../../creative-studio/packages/asset-library-components/src/tiles-grid/styles/tiles-grid-cell-deletion-button-decorator-style.js","../../../../creative-studio/packages/asset-library-components/src/custom-dropdown-component/index.js","../../../../creative-studio/packages/asset-library-components/src/custom-dropdown-component/style.js","../../../../creative-studio/packages/asset-library-components/src/image-size-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/image-size-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/simple-date-range-picker/index.js","../../../../creative-studio/packages/asset-library-components/src/simple-date-range-picker/style.js","../../../../creative-studio/packages/asset-library-components/src/date-added-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/date-added-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/text-with-highlight/styles.js","../../../../creative-studio/packages/asset-library-components/src/text-with-highlight/index.js","../../../../creative-studio/packages/asset-library-components/src/import-source-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/import-source-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/asset-type-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/asset-type-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/folder-path-breadcrumb/index.js","../../../../creative-studio/packages/asset-library-components/src/folder-icon-component/style.js","../../../../creative-studio/packages/asset-library-components/src/folder-icon-component/index.js","../../../../creative-studio/packages/asset-library-components/src/video-playback-component/style.js","../../../../creative-studio/packages/asset-library-components/src/video-playback-component/index.js","../../../../creative-studio/packages/asset-library-components/src/video-duration-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/video-duration-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/search-location-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/search-location-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/item-placeholder-box-view/style.js","../../../../creative-studio/packages/asset-library-components/src/item-placeholder-box-view/index.js","../../../../creative-studio/packages/asset-library-components/src/filter-utils/hooks/use-searchbox-filter.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-inline-chart-wrapper/inline-chart-wrapper.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-inline-chart-wrapper/use-inline-chart.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-filter-bar/style.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-filter-bar/view-all-filters-button.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-filter-bar/filter-bar-readonly.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-filter-bar/filter-bar-editing.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-filter-bar/use-filters-reducer.js","../../../../creative-studio/packages/asset-library-components/src/on-click-outside-hook/index.js","../../../../creative-studio/packages/asset-library-components/src/toggle-button-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/toggle-button-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/asset-source-filter-component/index.js","../../../../creative-studio/packages/asset-library-components/src/asset-source-filter-component/style.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-banners/banner-styles.js","../../../../creative-studio/packages/asset-library-components/src/asset-library-banners/index.js","../../../../creative-studio/packages/asset-library-creative-components/src/history-banner/style.js","../../../../creative-studio/packages/asset-library-creative-components/src/history-banner/banner.js","../../../../creative-studio/packages/asset-library-creative-components/src/style.js","../../../../creative-studio/packages/asset-library-creative-components/src/basic-item.js","../../../../creative-studio/packages/asset-library-creative-components/src/image-suggestion-carousel/style.js","../../../../creative-studio/packages/asset-library-creative-components/src/image-suggestion-carousel/carousel.js","../../../../creative-studio/packages/asset-library-creative-components/src/image-suggestion-carousel/state.js","../../../../creative-studio/packages/asset-library-creative-components/src/image-chooser.js","../../../../creative-studio/packages/asset-library-creative-components/src/add-image-wrapper.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-date-added-filter.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-search-location-filter.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/styles/shared-cell-style.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/styles/folders-grid-cell-style.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/folders-grid-cell.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/folders-grid-loading-cell.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/assets-grid-loading-cell.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/image-assets-grid-cell.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/styles/image-assets-grid-cell-style.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/video-assets-grid-cell.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/cells/styles/video-assets-grid-cell-style.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/empty-view.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/sections-utils.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/index.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-image-size-filter.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-import-source.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-asset-sources-filter.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-sort-by.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-asset-type-filter.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/hooks/use-video-duration-filter.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/merge-task-updates.js","../../../../creative-studio/packages/asset-library-landing-page-content/src/styles/index.js","../../../../creative-studio/packages/asset-library-model/src/constants.js","../../../../creative-studio/packages/asset-library-model/src/utils.js","../../../../creative-studio/packages/asset-library-model/src/service-utils.js","../../../../creative-studio/packages/asset-library-model/src/edit-image-utils.js","../../../../creative-studio/packages/asset-library-model/src/get-date-added-options.js","../../../../creative-studio/packages/asset-library-model/src/get-image-sorting-options.js","../../../../creative-studio/packages/asset-library-model/src/get-import-source-options.js","../../../../creative-studio/packages/asset-library-model/src/get-asset-source-options.js","../../../../creative-studio/packages/asset-library-model/src/get-time-description.js","../../../../creative-studio/packages/asset-library-model/src/get-asset-type-options.js","../../../../creative-studio/packages/asset-library-model/src/use-clarity-hook.js","../../../../creative-studio/packages/asset-library-model/src/convert-time-duration.js","../../../../creative-studio/packages/asset-library-model/src/get-search-location-options.js","../../../../creative-studio/packages/asset-library-model/src/filter-type.js","../../../../creative-studio/packages/asset-library-resources/assets/sparkle-svg-icon.js","../../../../creative-studio/packages/asset-library-resources/assets/square-video-svg-icon.js","../../../../creative-studio/packages/asset-library-resources/assets/copilot-svg-icon.js","../../../../creative-studio/packages/asset-library-resources/custom-fluentui-icons.js","../../../../creative-studio/packages/asset-library-services/src/logger/logger.js","../../../../creative-studio/packages/asset-library-services/src/logger/custom-logger.js","../../../../creative-studio/packages/asset-library-services/src/odata-service/folder-odata-service.js","../../../../creative-studio/packages/asset-library-services/src/repository/util.js","../../../../creative-studio/packages/asset-library-services/src/repository/asset-response-transformers/image-response-transformer.js","../../../../creative-studio/packages/asset-library-services/src/repository/asset-response-transformers/video-response-transformer.js","../../../../creative-studio/packages/asset-library-services/src/repository/asset-response-transformers/index.js","../../../../creative-studio/packages/asset-library-services/src/repository/request-transformers/request-transformer-util.js","../../../../creative-studio/packages/asset-library-services/src/repository/request-transformers/add-asset-request-transformer.js","../../../../creative-studio/packages/asset-library-services/src/repository/request-transformers/delete-asset-request-transformer.js","../../../../creative-studio/packages/asset-library-services/src/repository/request-transformers/update-asset-request-transformer.js","../../../../creative-studio/packages/asset-library-services/src/error-handling/odata-error/asset-library-odata-error.js","../../../../creative-studio/packages/asset-library-services/src/error-handling/odata-error/error-processors.js","../../../../creative-studio/packages/asset-library-services/src/repository/folder-repository.js","../../../../creative-studio/packages/asset-library-services/src/repository-creation-utility.js","../../../../creative-studio/packages/asset-library-services/src/odata-service/aigc-odata-service.js","../../../../creative-studio/packages/asset-library-services/src/repository/aigc-repository.js","../../../../creative-studio/packages/asset-library-services/src/odata-service/image-bulk-edit-odata-service.js","../../../../creative-studio/packages/asset-library-services/src/repository/image-repository.js","../../../../creative-studio/packages/asset-library-services/src/odata-service/video-odata-service.js","../../../../creative-studio/packages/asset-library-services/src/repository/video-creative-repository.js","../../../../creative-studio/packages/asset-library-services/src/data-service/folder-reducer.js","../../../../creative-studio/packages/asset-library-services/src/data-service/use-folders.js","../../../../creative-studio/packages/asset-library-services/src/data-service/use-image-repo-methods.js","../../../../creative-studio/packages/asset-library-services/src/task-poller.js","../../../../creative-studio/packages/asset-library-services/src/data-service/use-ai-generated-images.js","../../../../creative-studio/packages/asset-library-services/src/data-service/video-metadata-util.js","../../../../creative-studio/packages/asset-library-services/src/data-service/asset-with-folders-data-service.js","../../../../creative-studio/packages/asset-library-services/src/data-service/use-video-repo-methods.js","../../../../creative-studio/packages/asset-library-services/src/data-service/copilot-data-service.js","../../../../creative-studio/packages/asset-library-services/src/data-service/index.js","../../../../creative-studio/packages/asset-library-services/src/preferences/index.js","../../../../creative-studio/packages/asset-library-services/src/with-asset-library-services-provider.js","../../../../creative-studio/packages/asset-library-services/src/odata-config.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/shared-containers/styles/panel-container-style.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/switch-layout/styles.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/switch-layout/add-media-panel.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/switch-layout/media-sources-container.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/pivot-layout/pivot-container-style.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/pivot-layout/pivot-container.js","../../../../creative-studio/packages/asset-library-shared-add-media-layout/src/shared-containers/panel-container.js","../../../../creative-studio/packages/asset-library-spinner/src/index.js"],"sourcesContent":["export const getStyles = () => ({\r\n creativeEditor: {\r\n '& .left-panel': {\r\n position: 'absolute',\r\n top: 60,\r\n left: 0,\r\n bottom: 64,\r\n width: 480,\r\n backgroundColor: 'white',\r\n padding: '0 24px',\r\n boxShadow: '0px 2px 4px 0px rgba(0, 0, 0, 0.10)',\r\n zIndex: 4,\r\n overflow: 'auto',\r\n\r\n '& .panel-description': {\r\n fontSize: 12,\r\n lineHeight: '16px',\r\n fontWeight: 400,\r\n marginTop: 28,\r\n },\r\n '& .item-title': {\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'flex-start',\r\n },\r\n '& .text-item': {\r\n display: 'grid',\r\n alignItems: 'end',\r\n gridTemplateColumns: '90% 10%',\r\n gridGap: '10px',\r\n },\r\n '& .text-container': {\r\n marginTop: 16,\r\n '& .text-title': {\r\n fontSize: 12,\r\n lineHeight: '16px',\r\n fontWeight: 600,\r\n },\r\n '& .text-field': {\r\n width: '100%',\r\n marginTop: 8,\r\n },\r\n },\r\n '& .generate-creative-button': {\r\n marginTop: 32,\r\n borderRadius: 4,\r\n border: '1px solid #D1D1D1',\r\n },\r\n },\r\n\r\n '& .preview-container': {\r\n backgroundColor: '#FAF9F8',\r\n paddingLeft: 32,\r\n position: 'absolute',\r\n top: 60,\r\n right: 0,\r\n left: 480,\r\n bottom: 64,\r\n zIndex: 2,\r\n overflowX: 'auto',\r\n '& .preivew-box': {\r\n height: 'calc(100% - 150px)',\r\n '& .loading-box': {\r\n width: '100%',\r\n height: '100%',\r\n '& .loading-placeholder': {\r\n width: 679,\r\n height: 'calc(100% - 52px)',\r\n borderRadius: '6px',\r\n background: '#EDEBE9',\r\n },\r\n '& .spinner-box': {\r\n marginTop: 16,\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n '& .spinner-text': {\r\n marginLeft: 8,\r\n fontSize: 16,\r\n fontstyel: 'normal',\r\n fontweight: 400,\r\n lineHeight: '22px',\r\n color: '#605E5C',\r\n },\r\n },\r\n },\r\n '& .preview-image': {\r\n width: 679,\r\n height: '100%',\r\n overflow: 'hidden',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n '& img': {\r\n width: 'auto',\r\n height: 'auto',\r\n maxWidth: 679,\r\n maxHeight: '100%',\r\n objectFit: 'contain',\r\n },\r\n },\r\n },\r\n '& .message-bar': {\r\n position: 'absolute',\r\n bottom: 160,\r\n },\r\n },\r\n '& .creative-color-editor-container': {\r\n position: 'relative',\r\n '& .creative-color-editor-elements': {\r\n position: 'absolute',\r\n top: '10px',\r\n right: '10px',\r\n zIndex: 1000,\r\n '& .creative-color-swatch': {\r\n backgroundColor: 'white',\r\n display: 'flex',\r\n alignItems: 'center',\r\n width: 'auto',\r\n boxShadow: '0px 16px 32px 0px #00000024',\r\n borderRadius: '8px',\r\n padding: '16px',\r\n '& .eye-dropper': {\r\n width: '24px',\r\n height: '24px',\r\n backgroundColor: '#E0E0E0',\r\n borderRadius: '4px',\r\n border: '1px solid #B3B3B3',\r\n },\r\n '& .close-swatch': {\r\n width: '24px',\r\n height: '24px',\r\n },\r\n '& .close-swatch:hover': {\r\n cursor: 'pointer',\r\n border: '1px solid #5e5e5e',\r\n },\r\n '& .eye-dropper:hover': {\r\n cursor: 'pointer',\r\n border: '1px solid #5e5e5e',\r\n },\r\n },\r\n },\r\n },\r\n '& .creative-color-icon-container': {\r\n borderRadius: '4px',\r\n marginRight: '8px',\r\n '& .creative-color-icon': {\r\n height: '32px',\r\n width: '32px',\r\n borderRadius: '4px',\r\n border: '1px solid gray',\r\n '&:hover': {\r\n cursor: 'pointer',\r\n },\r\n },\r\n },\r\n '& .color-picker-container': {\r\n width: '300px',\r\n '& .color-picker': {\r\n boxShadow: '0px 16px 32px 0px #00000024',\r\n borderRadius: '4px',\r\n marginTop: '8px',\r\n backgroundColor: 'white',\r\n },\r\n },\r\n '& .selected-color': {\r\n boxShadow: 'inset 0 0 0 2px #0078D4',\r\n },\r\n },\r\n});\r\n","import _ from 'underscore';\r\n\r\nconst templateList = [\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000000',\r\n templateName: '300x250 - Circle cta',\r\n version: '1.0',\r\n style: 1,\r\n width: 300,\r\n height: 250,\r\n templateFileName: '300x250_1.91_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 30,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 90,\r\n },\r\n description: {\r\n display: false,\r\n maxLengthInChar: 170,\r\n },\r\n cta: {\r\n display: false,\r\n maxLengthInChar: 0,\r\n },\r\n image: {\r\n aspectRatio: '1.91:1',\r\n minheight: 157,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000001',\r\n templateName: '320x50 - Title Only',\r\n version: '1.0',\r\n style: 1,\r\n width: 320,\r\n height: 50,\r\n templateFileName: '320x50_1.91_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 30,\r\n },\r\n description: {\r\n display: false,\r\n maxLengthInChar: 170,\r\n },\r\n cta: {\r\n display: false,\r\n maxLengthInChar: 0,\r\n },\r\n image: {\r\n aspectRatio: '1.91:1',\r\n minheight: 50,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000003',\r\n templateName: '728x90 - Title Only',\r\n version: '1.0',\r\n style: 1,\r\n width: 728,\r\n height: 90,\r\n templateFileName: '728x90_1.91_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 40,\r\n },\r\n description: {\r\n display: true,\r\n maxLengthInChar: 54,\r\n },\r\n cta: {\r\n display: false,\r\n maxLengthInChar: 0,\r\n },\r\n image: {\r\n aspectRatio: '1.91:1',\r\n minheight: 90,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000004',\r\n templateName: '300x600 - Square cta + description ',\r\n version: '1.0',\r\n style: 1,\r\n width: 300,\r\n height: 600,\r\n templateFileName: '300x600_1.91_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 50,\r\n },\r\n description: {\r\n display: true,\r\n MinLengthInChar: 60,\r\n maxLengthInChar: 170,\r\n },\r\n cta: {\r\n display: true,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1.91:1',\r\n minheight: 157,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000005',\r\n templateName: '970x250 - Learn More cta',\r\n version: '1.0',\r\n style: 1,\r\n width: 970,\r\n height: 250,\r\n templateFileName: '970x250_1.91_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 80,\r\n },\r\n description: {\r\n display: true,\r\n maxLengthInChar: 166,\r\n },\r\n cta: {\r\n display: true,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1.91:1',\r\n minheight: 250,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000006',\r\n templateName: '336x280 - Title Only',\r\n version: '1.0',\r\n style: 1,\r\n width: 336,\r\n height: 280,\r\n templateFileName: '336x280_1.91_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 80,\r\n },\r\n description: {\r\n display: false,\r\n maxLengthInChar: 120,\r\n },\r\n cta: {\r\n display: false,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1.91:1',\r\n minheight: 176,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000007',\r\n templateName: '320x50 - 1:1 asset',\r\n version: '1.0',\r\n style: 1,\r\n width: 320,\r\n height: 50,\r\n templateFileName: '320x50_1_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 38,\r\n },\r\n description: {\r\n display: false,\r\n maxLengthInChar: 170,\r\n },\r\n cta: {\r\n display: false,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1:1',\r\n minheight: 50,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000008',\r\n templateName: '728x90 - 1:1 Circle cta',\r\n version: '1.0',\r\n style: 1,\r\n width: 728,\r\n height: 90,\r\n templateFileName: '728x90_1_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 60,\r\n },\r\n longHeadline: {\r\n display: true,\r\n MinLengthInChar: 34,\r\n maxLengthInChar: 60,\r\n },\r\n description: {\r\n display: true,\r\n MinLengthInChar: 30,\r\n maxLengthInChar: 74,\r\n },\r\n cta: {\r\n display: false,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1:1',\r\n minheight: 90,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-000000000009',\r\n templateName: '300x600 - 1:1 description',\r\n version: '1.0',\r\n style: 1,\r\n width: 300,\r\n height: 600,\r\n templateFileName: '300x600_1_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 60,\r\n },\r\n description: {\r\n display: true,\r\n MinLengthInChar: 30,\r\n maxLengthInChar: 150,\r\n },\r\n cta: {\r\n display: true,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1:1',\r\n minheight: 300,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-00000000000a',\r\n templateName: '160x600 - Learn More cta',\r\n version: '1.0',\r\n style: 1,\r\n width: 160,\r\n height: 600,\r\n templateFileName: '160x600_1_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 20,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 70,\r\n },\r\n description: {\r\n display: true,\r\n maxLengthInChar: 100,\r\n },\r\n cta: {\r\n display: true,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1:1',\r\n minheight: 160,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-00000000000b',\r\n templateName: '970x250 - 1:1 Learn More cta + description',\r\n version: '1.0',\r\n style: 1,\r\n width: 970,\r\n height: 250,\r\n templateFileName: '970x250_1_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 60,\r\n },\r\n longHeadline: {\r\n display: true,\r\n MinLengthInChar: 50,\r\n maxLengthInChar: 120,\r\n },\r\n description: {\r\n display: true,\r\n MinLengthInChar: 80,\r\n maxLengthInChar: 180,\r\n },\r\n cta: {\r\n display: true,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1:1',\r\n minheight: 250,\r\n },\r\n },\r\n {\r\n thisTemplateId: '00000000-0000-0000-0000-00000000000c',\r\n templateName: '320x100 - Title Only',\r\n version: '1.0',\r\n style: 1,\r\n width: 320,\r\n height: 100,\r\n templateFileName: '320x100_1_1.html',\r\n shortHeadline: {\r\n display: true,\r\n maxLengthInChar: 30,\r\n },\r\n longHeadline: {\r\n display: true,\r\n maxLengthInChar: 78,\r\n },\r\n description: {\r\n display: false,\r\n maxLengthInChar: 180,\r\n },\r\n cta: {\r\n display: false,\r\n Upper: true,\r\n maxLengthInChar: 20,\r\n },\r\n image: {\r\n aspectRatio: '1:1',\r\n minheight: 100,\r\n },\r\n },\r\n];\r\n\r\nexport const getMaxLengthOfTemplateMeta = (thisTemplateId, thisTemplateVersion, aigcTemplateList) => {\r\n let maxLengthInfo = {};\r\n const templates = aigcTemplateList !== null && aigcTemplateList !== undefined ? aigcTemplateList : templateList;\r\n\r\n _.map(templates, (template) => {\r\n if (template.templateId === thisTemplateId && template.version === thisTemplateVersion) {\r\n maxLengthInfo = {\r\n shortHeadline: template.shortHeadline.maxLengthInChar,\r\n longHeadline: template.longHeadline.maxLengthInChar,\r\n description: template.description.maxLengthInChar,\r\n cta: template.cta.maxLengthInChar,\r\n };\r\n }\r\n });\r\n\r\n return maxLengthInfo;\r\n};\r\n","import React, { useState } from 'react';\r\nimport { SwatchColorPicker, ColorPicker, getColorFromString } from '@fluentui/react';\r\nimport { Eyedropper16Regular, Dismiss16Regular } from '@fluentui/react-icons';\r\nimport PropTypes from 'prop-types';\r\nimport { useOnClickOutside } from '@bingads-webui-campaign-react/asset-library-components';\r\n\r\n\r\nconst defaultSwatch = [\r\n { id: 'red', label: 'red', color: '#C20734' },\r\n { id: 'pink', label: 'pink', color: '#ECABCE' },\r\n { id: 'gold', label: 'gold', color: '#E3BC67' },\r\n { id: 'yellow', label: 'yellow', color: '#F8E3AC' },\r\n { id: 'gray', label: 'gray', color: '#E7E7E7' },\r\n { id: 'teal', label: 'teal', color: '#4DBAA9' },\r\n { id: 'blue', label: 'blue', color: '#0E92BE' },\r\n { id: 'darkblue', label: 'darkblue', color: '#5074B9' },\r\n { id: 'lavender', label: 'lavender', color: '#BAB8E7' },\r\n { id: 'maroon', label: 'maroon', color: '#6F146E' },\r\n { id: 'midnight', label: 'midnight', color: '#112355' },\r\n];\r\n\r\nexport const CreativeColorPicker = ({\r\n color,\r\n elementName,\r\n onShowColorEditor,\r\n showColorPicker,\r\n setShowColorPicker,\r\n swatch,\r\n updateSelectedColors,\r\n logger,\r\n}) => {\r\n const [colorPickerColor, setColorPickerColor] = useState(getColorFromString(color.color));\r\n\r\n const onEyeDropperClick = () => {\r\n setShowColorPicker(!showColorPicker);\r\n };\r\n\r\n const onSwatchChanged = (_e, _id, newColor) => {\r\n setColorPickerColor(getColorFromString(newColor));\r\n setShowColorPicker(false);\r\n updateSelectedColors({ ...color, color: newColor });\r\n onShowColorEditor(null);\r\n logger.logTrace(`Creative Editor: Color Swatch changed - ${elementName}`);\r\n };\r\n\r\n const onColorPickerChange = (_e, newColor) => {\r\n setColorPickerColor(newColor);\r\n updateSelectedColors({ ...color, color: newColor.str });\r\n logger.logTrace(`Creative Editor: Color Picker changed - ${elementName}`);\r\n };\r\n\r\n const onClose = () => {\r\n setShowColorPicker(false);\r\n onShowColorEditor(null);\r\n };\r\n\r\n const { targetRef } = useOnClickOutside({ onClickOutside: onClose });\r\n\r\n return (\r\n
\r\n
\r\n
\r\n \r\n onSwatchChanged(e, id, newColor)}\r\n className=\"swatch-colors\"\r\n />\r\n \r\n
\r\n {showColorPicker && (\r\n
\r\n onColorPickerChange(e, id, newColor)}\r\n />\r\n
\r\n )}\r\n
\r\n
\r\n );\r\n};\r\n\r\nCreativeColorPicker.propTypes = {\r\n color: PropTypes.shape({\r\n elementName: PropTypes.string,\r\n suffix: PropTypes.string,\r\n editable: PropTypes.bool,\r\n color: PropTypes.string,\r\n }).isRequired,\r\n elementName: PropTypes.string.isRequired,\r\n onShowColorEditor: PropTypes.func.isRequired,\r\n showColorPicker: PropTypes.bool.isRequired,\r\n setShowColorPicker: PropTypes.func.isRequired,\r\n swatch: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.string,\r\n label: PropTypes.string,\r\n color: PropTypes.string,\r\n })),\r\n updateSelectedColors: PropTypes.func.isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nCreativeColorPicker.defaultProps = {\r\n swatch: defaultSwatch,\r\n};\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { CreativeColorPicker } from './creative-color-picker';\r\n\r\nexport const CreativeColorEditor = ({\r\n colors,\r\n colorEditorId,\r\n setColorEditorId,\r\n updateSelectedColors,\r\n logger,\r\n}) => {\r\n const [showColorPicker, setShowColorPicker] = useState(false);\r\n\r\n const onShowColorEditor = (id) => {\r\n setColorEditorId(id);\r\n };\r\n\r\n return (\r\n
\r\n
\r\n {colors.map(color => (\r\n \r\n {/* eslint jsx-a11y/click-events-have-key-events: 0 */}\r\n {/* eslint jsx-a11y/no-static-element-interactions: 0 */}\r\n onShowColorEditor(color.elementName)}\r\n className=\"creative-color-icon\"\r\n style={{ backgroundColor: color.color }}\r\n />\r\n
\r\n ))}\r\n
\r\n {colors.map(color => (\r\n
\r\n {colorEditorId === color.elementName && (\r\n \r\n )}\r\n
\r\n ))}\r\n \r\n );\r\n};\r\n\r\nCreativeColorEditor.propTypes = {\r\n colors: PropTypes.arrayOf(PropTypes.shape({\r\n elementName: PropTypes.string,\r\n suffix: PropTypes.string,\r\n editable: PropTypes.bool,\r\n color: PropTypes.string,\r\n })).isRequired,\r\n colorEditorId: PropTypes.string,\r\n setColorEditorId: PropTypes.func.isRequired,\r\n updateSelectedColors: PropTypes.func.isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nCreativeColorEditor.defaultProps = {\r\n colorEditorId: '',\r\n};\r\n","import React, { useCallback, useEffect, useMemo, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { isEqual, keys, mapObject, extend, noop, isObject, first } from 'underscore';\r\nimport { Promise } from 'bluebird';\r\n\r\nimport {\r\n DefaultButton, Panel, Spinner, PanelType, MessageBar, MessageBarType,\r\n} from '@bingads-webui-react/fabric-control';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { findParentElementWithClass } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { HelpPopupInline } from '@bingads-webui-react/help-popup';\r\nimport { addCropSettingsToCreativeImage, constants } from '@bingads-webui-campaign-react/image-experience-model';\r\nimport { HistoryBanner, TextItem, ButtonContainer, ImageChooser } from '@bingads-webui-campaign-react/asset-library-creative-components';\r\n\r\nimport { getStyles } from './style';\r\n\r\nimport { getMaxLengthOfTemplateMeta } from './utils';\r\nimport { CreativeColorEditor } from './color-editor/creative-colors-editor';\r\n\r\nconst maxCreativeCount = 10;\r\n\r\nexport const CreativeEditorView = ({\r\n creativeData,\r\n dataService,\r\n finalUrl,\r\n onApplyCreative,\r\n onGenerateCreative,\r\n fetchAigcTemplateDefinition,\r\n i18n,\r\n isOpen,\r\n permissions,\r\n newImageDataObject,\r\n cid,\r\n aid,\r\n oDataConfig,\r\n onChangeImage,\r\n assetLibraryConfig,\r\n setIsOpen,\r\n onRenderCTA,\r\n logger,\r\n}) => {\r\n const { addCreative, getImageById, uploadImageByUrl } = dataService;\r\n\r\n const [creativeList, setCreativeList] = useState([creativeData.creativeMeta]);\r\n const [currentCreative, setCurrentCreative] = useState(creativeData.creativeMeta);\r\n const [originalMetaData, setOriginalMetaData] = useState(null);\r\n const [newTextListObj, setNewTextListObj] = useState(null);\r\n const [newCTA, setNewCTA] = useState(null);\r\n const [newImageObject, setNewImageObject] = useState(null);\r\n const [loadingCreative, setLoadingCreative] = useState(false);\r\n const [disableGenerate, setDisableGenerate] = useState(true);\r\n const [disableApply, setDisableApply] = useState(false);\r\n const [generateError, setGenerateError] = useState('');\r\n const [imageLoadFailed, setImageLoadFailed] = useState(false);\r\n\r\n // Edit Color state\r\n const [editColorEnabled, setEditColorEnabled] = useState(false);\r\n const [selectedColors, setSelectedColors] = useState([]);\r\n const [backgroundColors, setBackgroundColors] = useState([]);\r\n const [colorEditorId, setColorEditorId] = useState(null);\r\n const [templateId, setTemplateId] = useState(null);\r\n const [templateVersion, setTemplateVersion] = useState(null);\r\n const [aigcTemplateList, setAigcTemplateList] = useState({});\r\n\r\n const placementModel = useMemo(() => {\r\n if (creativeData && creativeData.creativeMeta && creativeData.creativeMeta.placement) {\r\n return creativeData.creativeMeta.placement;\r\n }\r\n\r\n return '';\r\n }, [creativeData]);\r\n\r\n const maxLengthInfo = useMemo(() => {\r\n if (creativeData && creativeData.creativeMeta && creativeData.creativeMeta.template && creativeData.creativeMeta.template.templateId) {\r\n return getMaxLengthOfTemplateMeta(templateId, templateVersion, aigcTemplateList);\r\n }\r\n\r\n return {};\r\n }, [creativeData, templateId, templateVersion, aigcTemplateList]);\r\n\r\n const formateMetaData = useCallback((creativeMeta) => {\r\n const { template } = creativeMeta;\r\n const {\r\n shortHeadline, longHeadline, description, cta, image,\r\n } = template || {};\r\n const textListObjInner = {};\r\n const originalTextListObjInner = {};\r\n if (shortHeadline && shortHeadline.text && shortHeadline.editable) {\r\n textListObjInner.shortHeadline = {\r\n ...shortHeadline,\r\n maxLength: maxLengthInfo.shortHeadline,\r\n };\r\n originalTextListObjInner.shortHeadline = {\r\n ...shortHeadline,\r\n maxLength: maxLengthInfo.shortHeadline,\r\n };\r\n }\r\n if (longHeadline && longHeadline.text && longHeadline.editable) {\r\n textListObjInner.longHeadline = {\r\n ...longHeadline,\r\n maxLength: maxLengthInfo.longHeadline,\r\n };\r\n originalTextListObjInner.longHeadline = {\r\n ...longHeadline,\r\n maxLength: maxLengthInfo.longHeadline,\r\n };\r\n }\r\n if (description && description.text && description.editable) {\r\n textListObjInner.description = {\r\n ...description,\r\n maxLength: maxLengthInfo.description,\r\n };\r\n originalTextListObjInner.description = {\r\n ...description,\r\n maxLength: maxLengthInfo.description,\r\n };\r\n }\r\n setNewTextListObj(textListObjInner);\r\n\r\n let CTAInner = null;\r\n if (cta && cta.text && cta.editable) {\r\n CTAInner = { CallToAction: '', CallToActionValue: cta.text, CallToActionText: cta.text };\r\n setNewCTA(CTAInner);\r\n }\r\n\r\n let imageUrlInner = '';\r\n if (image && image.url) {\r\n imageUrlInner = image.url;\r\n setNewImageObject({ url: imageUrlInner, id: '' });\r\n }\r\n\r\n setOriginalMetaData({\r\n textListObj: originalTextListObjInner,\r\n cta: CTAInner,\r\n imageUrl: imageUrlInner,\r\n });\r\n\r\n if (template) {\r\n setTemplateId(template.templateId);\r\n setSelectedColors(template.color);\r\n setTemplateVersion(template.version);\r\n }\r\n }, [maxLengthInfo]);\r\n\r\n // maybe changed by generate new creative or choose from history list\r\n const changeCreative = useCallback((creativeMeta) => {\r\n setCurrentCreative(creativeMeta);\r\n // update meta data when current creative changes\r\n formateMetaData(creativeMeta);\r\n setDisableGenerate(true);\r\n setDisableApply(false);\r\n }, [formateMetaData]);\r\n\r\n // update meta data when current creative changes\r\n const whenNewCreativeGenerated = useCallback((newCreative) => {\r\n setCreativeList((prevList) => {\r\n if (prevList.length === maxCreativeCount) {\r\n return ([...prevList.slice(1), newCreative]);\r\n }\r\n return ([...prevList, newCreative]);\r\n });\r\n changeCreative(newCreative);\r\n }, [changeCreative]);\r\n\r\n const formatRequestCreative = useCallback(() => {\r\n const textListObj = mapObject(newTextListObj, value => ({\r\n text: value.text,\r\n }));\r\n const color = selectedColors && selectedColors.length > 0 ? selectedColors : [];\r\n const background = currentCreative.template.background || {};\r\n const templateMeta = extend({\r\n image: {\r\n url: newImageObject.url,\r\n },\r\n ...textListObj,\r\n }, newCTA ? { cta: { text: newCTA.CallToActionText || newCTA.CallToActionValue } } : {});\r\n const creativeMeta = {\r\n templateId: currentCreative.template.templateId,\r\n style: currentCreative.template.style,\r\n templateName: currentCreative.template.templateName,\r\n version: currentCreative.template.version,\r\n ...templateMeta,\r\n };\r\n\r\n if (templateVersion && Number(templateVersion) > 1.0) {\r\n creativeMeta.color = color;\r\n creativeMeta.background = background;\r\n }\r\n\r\n return creativeMeta;\r\n }, [currentCreative, newCTA, newImageObject, newTextListObj, selectedColors, templateVersion]);\r\n\r\n const uploadOriginalImage = useCallback(() => new Promise((resolve) => {\r\n if (newImageObject.url !== originalMetaData.imageUrl) {\r\n // image already saved in asset library, don't need to upload again\r\n resolve(newImageObject);\r\n } else {\r\n // upload image to asset library, then replace the request creative metadata with saved image url\r\n uploadImageByUrl({\r\n imageUrl: newImageObject.url,\r\n sourceType: constants.sourceTypes.WebSiteImported,\r\n }).then(imageId => getImageById({ imageId }))\r\n .then((imageObj) => {\r\n resolve(imageObj);\r\n });\r\n }\r\n }), [getImageById, newImageObject, originalMetaData, uploadImageByUrl]);\r\n\r\n const handleGenerateCreative = useCallback(() => {\r\n setLoadingCreative(true);\r\n setGenerateError('');\r\n setDisableGenerate(true);\r\n const creativeMeta = formatRequestCreative();\r\n onGenerateCreative(creativeMeta)\r\n .then((res) => {\r\n whenNewCreativeGenerated(res);\r\n setLoadingCreative(false);\r\n logger.logTrace('Creative Editor: creative generated successfully');\r\n }).catch((err) => {\r\n setLoadingCreative(false);\r\n const { errors } = err;\r\n if (errors && errors[0] && errors[0].message) {\r\n setGenerateError(errors[0].message);\r\n } else {\r\n setGenerateError(i18n.getString(_TL_('Failed to generate new creative')));\r\n }\r\n });\r\n }, [formatRequestCreative, onGenerateCreative, whenNewCreativeGenerated, logger, i18n]);\r\n\r\n const updateTextList = useCallback((key, value) => {\r\n const newTextListCopy = { ...newTextListObj };\r\n newTextListCopy[key].text = value;\r\n setNewTextListObj(newTextListCopy);\r\n }, [newTextListObj]);\r\n\r\n const handleAddCreative = useCallback(\r\n (creative, image) => addCreative({ creativeData: creative, baseId: image.id }) // save original image id as creative's baseId, then the original can not be deleted\r\n .then((ids) => {\r\n if (isObject(first(ids))) {\r\n throw new Error(ids[0].code);\r\n }\r\n\r\n return ids[0];\r\n })\r\n .then(id => getImageById({ imageId: id }))\r\n .then(mtObj => addCropSettingsToCreativeImage(mtObj)),\r\n [addCreative, getImageById]\r\n );\r\n\r\n const handleApplyCreative = useCallback(() => {\r\n if (isEqual(currentCreative, creativeData.creativeMeta)) {\r\n setIsOpen(false);\r\n } else {\r\n let creativeWithSavedOriginalImage = currentCreative;\r\n setDisableApply(true);\r\n // save original image and update creative with saved image url\r\n uploadOriginalImage()\r\n .then((image) => {\r\n creativeWithSavedOriginalImage = {\r\n ...currentCreative,\r\n template: {\r\n ...currentCreative.template,\r\n image: {\r\n ...currentCreative.template.image,\r\n url: image.url,\r\n },\r\n },\r\n };\r\n return handleAddCreative(creativeWithSavedOriginalImage, image);\r\n })\r\n .then((imageObj) => {\r\n onApplyCreative({\r\n imageObj,\r\n creativeMeta: {\r\n placement: placementModel,\r\n ...creativeWithSavedOriginalImage,\r\n },\r\n });\r\n setIsOpen(false);\r\n });\r\n }\r\n logger.logTrace('Creative Editor: creative applied');\r\n }, [currentCreative, creativeData.creativeMeta, logger, setIsOpen, uploadOriginalImage, handleAddCreative, onApplyCreative, placementModel]);\r\n\r\n useEffect(() => {\r\n changeCreative(creativeData.creativeMeta);\r\n logger.logTrace('Creative Editor: creative editor opened');\r\n }, [creativeData.creativeMeta]);\r\n\r\n useEffect(() => {\r\n if (newImageDataObject && newImageDataObject.url) {\r\n setNewImageObject(newImageDataObject);\r\n }\r\n }, [newImageDataObject]);\r\n\r\n useEffect(() => {\r\n // disable generate button when no meta data changes\r\n let isCTAChanged = false;\r\n if (newCTA && originalMetaData && originalMetaData.cta) {\r\n // CallToActionText is used for custom CTA\r\n if (newCTA.CallToActionText) {\r\n isCTAChanged = newCTA.CallToActionText !== originalMetaData.cta.CallToActionText;\r\n } else {\r\n isCTAChanged = newCTA.CallToActionValue !== originalMetaData.cta.CallToActionValue;\r\n }\r\n }\r\n\r\n let hasInvalidText = false;\r\n keys(newTextListObj).map((key) => {\r\n const textObj = newTextListObj[key];\r\n if (textObj.text.length > textObj.maxLength || textObj.text.length <= 0) {\r\n hasInvalidText = true;\r\n }\r\n return null;\r\n });\r\n\r\n const imageChanged = newImageObject && originalMetaData && newImageObject.url !== originalMetaData.imageUrl;\r\n const textChanged = originalMetaData && !isEqual(originalMetaData.textListObj, newTextListObj);\r\n const metaDataChanged = imageChanged || textChanged || isCTAChanged;\r\n\r\n if (originalMetaData && !hasInvalidText && metaDataChanged && !imageLoadFailed) {\r\n setDisableGenerate(false);\r\n setDisableApply(true);\r\n } else if (originalMetaData) {\r\n setDisableGenerate(true);\r\n setDisableApply(false);\r\n }\r\n }, [imageLoadFailed, newCTA, newImageObject, newTextListObj, originalMetaData]);\r\n\r\n const classes = useDefaultStyles(getStyles);\r\n\r\n const onDismiss = useCallback((evt) => {\r\n const target = evt && evt.currentTarget;\r\n const panelElem = findParentElementWithClass(target, classes.creativeEditor);\r\n if (panelElem || evt.key === 'Escape') {\r\n setIsOpen(false);\r\n logger.logTrace('Creative Editor: panel closed');\r\n }\r\n }, [classes.creativeEditor, logger, setIsOpen]);\r\n\r\n const onRenderCTAInner = useCallback(() => (onRenderCTA ? onRenderCTA(newCTA, setNewCTA) : null), [onRenderCTA, newCTA]);\r\n\r\n const updateSelectedColors = (color) => {\r\n const newColors = selectedColors.reduce((acc, curr) => {\r\n if (curr.elementName === color.elementName) {\r\n acc.push(color);\r\n } else {\r\n acc.push(curr);\r\n }\r\n return acc;\r\n }, []);\r\n\r\n setDisableGenerate(false);\r\n setSelectedColors(newColors);\r\n };\r\n\r\n useEffect(() => {\r\n const editColor = templateVersion && Number(templateVersion) > 1.0 &&\r\n selectedColors && selectedColors.length > 0;\r\n setEditColorEnabled(editColor);\r\n }, [selectedColors, templateVersion]);\r\n\r\n useEffect(() => {\r\n async function getTemplate() {\r\n if (templateId) {\r\n const templateResults = await fetchAigcTemplateDefinition(templateId);\r\n const templates = templateResults && templateResults.Data && templateResults.Data.displayAdsTemplateDefinitions ? templateResults.Data.displayAdsTemplateDefinitions : null;\r\n setAigcTemplateList(templates);\r\n }\r\n }\r\n getTemplate();\r\n }, [templateId, fetchAigcTemplateDefinition]);\r\n\r\n useEffect(() => {\r\n const bgColors = selectedColors && selectedColors.length > 0 ? selectedColors.filter(color => color.elementName.toLowerCase().includes('background')) : [];\r\n setBackgroundColors(bgColors);\r\n }, [selectedColors]);\r\n\r\n return (\r\n \r\n
\r\n
{i18n.getString(_TL_('Fine-tune your AI-generated creative to make new variations.'))}
\r\n {\r\n keys(newTextListObj).map((key, index) => {\r\n let errorMessage = '';\r\n if (newTextListObj[key].text.length > newTextListObj[key].maxLength) {\r\n errorMessage = i18n.getString(_TL_('Value cannot be longer than {{maxLength}} characters'), { maxLength: newTextListObj[key].maxLength });\r\n } else if (newTextListObj[key].text.length <= 0) {\r\n errorMessage = i18n.getString(_TL_('Required field'));\r\n }\r\n\r\n let colorData;\r\n if (editColorEnabled) {\r\n colorData = selectedColors.find(color => color.elementName.toLowerCase() === key.toLowerCase());\r\n }\r\n\r\n const label = key.split(/(?=[A-Z])/)\r\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\r\n .join(' ') || `Text ${index + 1}`;\r\n\r\n return (\r\n
\r\n updateTextList(key, str)}\r\n title={i18n.getString(_TL_('{{label}}'), { label })}\r\n errorMessage={errorMessage}\r\n showHelpPopup\r\n helpTopic=\"pop_BA_DisplayAds_Text\"\r\n />\r\n {(permissions && permissions.dynamic && permissions.dynamic.AigcDisplayAdColorEdit) && colorData &&\r\n \r\n }\r\n
\r\n );\r\n })\r\n }\r\n {\r\n originalMetaData && originalMetaData.cta &&\r\n
\r\n
\r\n
{i18n.getString(_TL_('Call to action'))}
\r\n \r\n
\r\n
{onRenderCTAInner()}
\r\n
\r\n }\r\n { setImageLoadFailed(!success); }}\r\n />\r\n {(permissions && permissions.dynamic && permissions.dynamic.AigcDisplayAdColorEdit) &&\r\n editColorEnabled && backgroundColors.length > 0 && (\r\n <>\r\n
\r\n
\r\n
{i18n.getString(_TL_('Background colors'))}
\r\n \r\n
\r\n \r\n
\r\n \r\n )}\r\n \r\n
\r\n
\r\n
\r\n {\r\n loadingCreative ?\r\n
\r\n
\r\n
\r\n \r\n {i18n.getString(_TL_('Generating a new creative...'))}\r\n
\r\n
:\r\n
\r\n { currentCreative && currentCreative.url && \"creative\" }\r\n
\r\n }\r\n
\r\n {\r\n generateError &&\r\n setGenerateError(undefined)}\r\n dismissButtonAriaLabel=\"Close\"\r\n >\r\n {generateError}\r\n \r\n }\r\n
\r\n
\r\n \r\n
\r\n {\r\n setIsOpen(false);\r\n logger.logTrace('Creative Editor: cancel button clicked');\r\n }}\r\n disableApply={disableApply}\r\n />\r\n \r\n );\r\n};\r\n\r\nCreativeEditorView.propTypes = {\r\n creativeData: PropTypes.shape({\r\n creativeId: PropTypes.string,\r\n creativeMeta: PropTypes.shape({\r\n template: PropTypes.shape({\r\n templateId: PropTypes.string.isRequired,\r\n image: PropTypes.shape({\r\n url: PropTypes.string.isRequired,\r\n }).isRequired,\r\n cta: PropTypes.shape({\r\n text: PropTypes.string,\r\n editable: PropTypes.bool,\r\n }),\r\n }).isRequired,\r\n placement: PropTypes.string,\r\n }).isRequired,\r\n }).isRequired,\r\n dataService: PropTypes.shape({\r\n addCreative: PropTypes.func.isRequired,\r\n getImageById: PropTypes.func.isRequired,\r\n uploadImageByUrl: PropTypes.func.isRequired,\r\n }).isRequired,\r\n onApplyCreative: PropTypes.func.isRequired,\r\n onGenerateCreative: PropTypes.func.isRequired,\r\n fetchAigcTemplateDefinition: PropTypes.func.isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n isOpen: PropTypes.bool.isRequired,\r\n permissions: PropTypes.shape({\r\n dynamic: PropTypes.shape({\r\n AigcDisplayAdColorEdit: PropTypes.bool,\r\n }),\r\n }),\r\n onChangeImage: PropTypes.func.isRequired,\r\n setIsOpen: PropTypes.func.isRequired,\r\n onRenderCTA: PropTypes.func,\r\n cid: PropTypes.string.isRequired,\r\n aid: PropTypes.string.isRequired,\r\n oDataConfig: PropTypes.shape({\r\n odataRootUrl: PropTypes.string,\r\n odataPath: PropTypes.string,\r\n odataToken: PropTypes.string,\r\n }).isRequired,\r\n finalUrl: PropTypes.string,\r\n assetLibraryConfig: PropTypes.shape({}).isRequired,\r\n newImageDataObject: PropTypes.shape({\r\n url: PropTypes.string,\r\n }),\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nCreativeEditorView.defaultProps = {\r\n onRenderCTA: noop,\r\n finalUrl: '',\r\n newImageDataObject: null,\r\n permissions: null,\r\n};\r\n","/* eslint-disable no-param-reassign */\r\nimport React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { AddImageWrapper } from '@bingads-webui-campaign-react/asset-library-creative-components';\r\nimport { CSMLAssetSource } from '@bingads-webui-campaign-react/asset-library-model';\r\n\r\nimport { CreativeEditorView } from './creative-editor-view';\r\n\r\nexport const AssetLibraryCreativeEditor = ({\r\n addMediaConfig,\r\n assetLibraryConfig,\r\n creativeData,\r\n onRenderCTA,\r\n callToAction,\r\n onApplyCreative,\r\n onGenerateCreative,\r\n finalUrl,\r\n dataService,\r\n i18n,\r\n initialView,\r\n isAssetLibraryAIGCMVPEnabled,\r\n isOpen,\r\n logger,\r\n ...rest\r\n}) => {\r\n const [showAddImagePanel, setShowAddImagePanel] = useState(false);\r\n const [newImageDataObject, setNewImageDataObject] = useState({});\r\n\r\n const {\r\n cid,\r\n aid,\r\n oDataConfig,\r\n fetchAigcTemplateDefinition,\r\n } = rest;\r\n\r\n return (\r\n
\r\n setShowAddImagePanel(true)}\r\n cid={cid}\r\n aid={aid}\r\n oDataConfig={oDataConfig}\r\n finalUrl={finalUrl}\r\n isOpen={isOpen}\r\n permissions={rest.permissions}\r\n dataService={dataService}\r\n assetLibraryConfig={assetLibraryConfig}\r\n callToAction={callToAction}\r\n onRenderCTA={onRenderCTA}\r\n setIsOpen={rest.setIsOpen}\r\n onApplyCreative={onApplyCreative}\r\n onGenerateCreative={onGenerateCreative}\r\n logger={logger}\r\n fetchAigcTemplateDefinition={fetchAigcTemplateDefinition}\r\n />\r\n \r\n
\r\n );\r\n};\r\n\r\nAssetLibraryCreativeEditor.propTypes = {\r\n addMediaConfig: PropTypes.shape({}).isRequired,\r\n assetLibraryConfig: PropTypes.shape({}).isRequired,\r\n creativeData: PropTypes.shape({}).isRequired,\r\n dataService: PropTypes.shape({}).isRequired,\r\n i18n: PropTypes.shape({}).isRequired,\r\n initialView: PropTypes.string.isRequired,\r\n isAssetLibraryAIGCMVPEnabled: PropTypes.bool.isRequired,\r\n isOpen: PropTypes.bool.isRequired,\r\n logger: PropTypes.shape({}).isRequired,\r\n onApplyCreative: PropTypes.func.isRequired,\r\n onGenerateCreative: PropTypes.func.isRequired,\r\n onRenderCTA: PropTypes.func,\r\n callToAction: PropTypes.shape({}),\r\n finalUrl: PropTypes.string,\r\n};\r\n\r\nAssetLibraryCreativeEditor.defaultProps = {\r\n onRenderCTA: () => {},\r\n callToAction: {},\r\n finalUrl: '',\r\n};\r\n","export const VIEWS = {\r\n WebsiteImage: 'WebsiteImage',\r\n StockImage: 'StockImage',\r\n SocialMedia: 'SocialMedia',\r\n LandingPage: 'LandingPage',\r\n AIGCImage: 'AI-generated',\r\n InvestImage: 'InvestImage',\r\n};\r\n","import Promise from 'bluebird';\r\nimport _ from 'underscore';\r\nimport React, { useCallback, useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { WebsiteImageView } from '@bingads-webui-campaign-react/add-website-images-view';\r\nimport { ROOT_FOLDER_ID, MaxAddAssetJobInParell } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { constants } from '@bingads-webui-campaign-react/image-experience-model';\r\nimport { validateImageSizeAsync } from '@bingads-webui-campaign/image-experience-utils';\r\n\r\nimport { useImageExperienceAdapterForWebsiteImages } from './use-image-experience-adapter';\r\nimport { VIEWS } from '../view-type';\r\n\r\nconst ManagedWebsiteImageView = ({\r\n imageExperienceProps,\r\n minSize,\r\n setShowBlocker,\r\n assetLibraryConfig,\r\n assetLibraryDataService,\r\n logger,\r\n maxUploadNum,\r\n triggerAddImagesRef,\r\n setDisableApplyButton,\r\n setShowApplyButton,\r\n setSelectionInfoText,\r\n setErrors,\r\n i18n,\r\n perfMarker,\r\n}) => {\r\n const [images, setImages] = useState([]);\r\n const setMoreImages = useCallback((newImages) => {\r\n setImages(prevImages => [...prevImages, ...newImages]);\r\n }, []);\r\n\r\n const websiteImageConfig = useImageExperienceAdapterForWebsiteImages({\r\n imageExperienceProps,\r\n minSize,\r\n setShowBlocker,\r\n setImages,\r\n setMoreImages,\r\n });\r\n\r\n const { imageOption, isMultimediaAd, isBrandKit } = imageExperienceProps;\r\n\r\n const {\r\n enableWebsiteMultipleSelection: enableMultipleSelection,\r\n onImageSelected,\r\n onImagesSelected,\r\n onImageAddError,\r\n } = assetLibraryConfig || {};\r\n\r\n // single selection mode\r\n const onSelectImage = useCallback((index) => {\r\n setShowBlocker(true);\r\n\r\n const imageUrl = images[index].fullUrl;\r\n\r\n const addImagePromise = validateImageSizeAsync(imageUrl, null, isMultimediaAd, imageOption)\r\n .then(() => assetLibraryDataService.uploadImageByUrl({\r\n imageUrl,\r\n folderId: ROOT_FOLDER_ID,\r\n sourceType: constants.sourceTypes.WebsiteImported,\r\n }))\r\n .then((res) => {\r\n if (_.isArray(res)) {\r\n throw new Error(res[0] && res[0].Code);\r\n }\r\n logger.logTrace('Ad creation flow - selected website image', { imageId: res });\r\n return onImageSelected({ id: res }, constants.imageSources.Website);\r\n })\r\n .catch(e => onImageAddError(e));\r\n\r\n return addImagePromise\r\n .finally(() => {\r\n setShowBlocker(false);\r\n });\r\n }, [setShowBlocker, images, isMultimediaAd, imageOption, assetLibraryDataService, logger, onImageSelected, onImageAddError]);\r\n\r\n // multi selection mode\r\n const onSelectImageForMultiSelection = useCallback((index) => {\r\n const selectedImage = images[index];\r\n const newImage = { ...selectedImage, isSelected: !selectedImage.isSelected };\r\n const newArr = [...images];\r\n newArr[index] = newImage;\r\n setImages(newArr);\r\n }, [images]);\r\n\r\n useEffect(() => {\r\n // init the state for multiple selection\r\n if (enableMultipleSelection) {\r\n setShowApplyButton(false);\r\n setDisableApplyButton(true);\r\n setErrors([]);\r\n setSelectionInfoText(i18n.getString(_TL_('0 of {{limitNumber}} images selected'), { limitNumber: maxUploadNum }));\r\n }\r\n }, [enableMultipleSelection, i18n, maxUploadNum, setDisableApplyButton, setErrors, setSelectionInfoText, setShowApplyButton]);\r\n\r\n useEffect(() => {\r\n const selectedImages = _.filter(images, image => image && image.isSelected) || [];\r\n if (selectedImages.length > maxUploadNum) {\r\n setErrors([i18n.getString(_TL_('You\\'ve exceeded the max. number of assets you can add at a time ({{limitNumber}}). Please try again.'), { limitNumber: maxUploadNum })]);\r\n setDisableApplyButton(true);\r\n } else if (selectedImages.length > 0) {\r\n setErrors([]);\r\n setShowApplyButton(true);\r\n setDisableApplyButton(false);\r\n } else {\r\n setErrors([]);\r\n setShowApplyButton(false);\r\n setDisableApplyButton(true);\r\n }\r\n\r\n const singularImageString = _TL_('{{selectedNumber}} of {{limitNumber}} image selected');\r\n const pluralImagesString = _TL_('{{selectedNumber}} of {{limitNumber}} images selected');\r\n const stringToUse = maxUploadNum > 1 ? pluralImagesString : singularImageString;\r\n setSelectionInfoText(i18n.getString(stringToUse, { selectedNumber: selectedImages.length, limitNumber: maxUploadNum }));\r\n }, [enableMultipleSelection, i18n, images, maxUploadNum, setDisableApplyButton, setErrors, setSelectionInfoText]);\r\n\r\n // only for multiple selection mode\r\n const onApplyButtonClick = useCallback(() => {\r\n const selectedImages = _.filter(images, image => image && image.isSelected) || [];\r\n\r\n setShowBlocker(true);\r\n\r\n const websiteImagePerfMarker = perfMarker.createChild('websiteImagePicker');\r\n websiteImagePerfMarker.willInit();\r\n\r\n Promise.map(\r\n selectedImages,\r\n (img) => {\r\n const { fullUrl } = img || {};\r\n return validateImageSizeAsync(fullUrl, null, isMultimediaAd, imageOption, false, false, false, false, false, false, false, false, false, isBrandKit)\r\n .then(() => assetLibraryDataService.uploadImageByUrl({\r\n imageUrl: fullUrl,\r\n folderId: ROOT_FOLDER_ID,\r\n sourceType: constants.sourceTypes.WebsiteImported,\r\n }))\r\n .then((res) => {\r\n if (_.isArray(res)) {\r\n throw new Error(res[0] && res[0].Code);\r\n }\r\n return res;\r\n });\r\n },\r\n { concurrency: MaxAddAssetJobInParell }\r\n ).then((imageIds) => {\r\n logger.logTrace('Ad creation flow - selected website images', { imageIds });\r\n return onImagesSelected(imageIds, constants.imageSources.Website);\r\n }).catch((err) => {\r\n onImageAddError(err);\r\n }).finally(() => {\r\n setShowBlocker(false);\r\n websiteImagePerfMarker.done();\r\n });\r\n }, [assetLibraryDataService, imageOption, images, isMultimediaAd, logger, onImageAddError, onImagesSelected, perfMarker, setShowBlocker]);\r\n\r\n // listen to the apply button click for multiple selection\r\n // eslint-disable-next-line no-param-reassign\r\n triggerAddImagesRef.current = enableMultipleSelection ? onApplyButtonClick : undefined;\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nManagedWebsiteImageView.propTypes = {\r\n imageExperienceProps: PropTypes.shape({\r\n suggestion: PropTypes.shape({\r\n images: PropTypes.arrayOf(PropTypes.shape({\r\n thumbnailUrl: PropTypes.string,\r\n fullUrl: PropTypes.string,\r\n })),\r\n inProgess: PropTypes.bool,\r\n hasMore: PropTypes.bool,\r\n }),\r\n finalUrl: PropTypes.string,\r\n onUpdateFinalUrl: PropTypes.func,\r\n finalUrlProtocol: PropTypes.string,\r\n onUpdateFinalUrlPrefix: PropTypes.func,\r\n suggestionPoller: PropTypes.shape({\r\n getMoreLandingPageSuggestions: PropTypes.func,\r\n getLandingPageSuggestions: PropTypes.func,\r\n }),\r\n }).isRequired,\r\n minSize: PropTypes.arrayOf(PropTypes.number).isRequired,\r\n setShowBlocker: PropTypes.func,\r\n assetLibraryDataService: PropTypes.shape({}).isRequired,\r\n assetLibraryConfig: PropTypes.shape({\r\n onImageSelected: PropTypes.func,\r\n onImagesSelected: PropTypes.func,\r\n onImageAddError: PropTypes.func,\r\n }).isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n triggerAddImagesRef: PropTypes.shape({}).isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n perfMarker: PropTypes.shape({}).isRequired,\r\n setShowApplyButton: PropTypes.func,\r\n setDisableApplyButton: PropTypes.func,\r\n setSelectionInfoText: PropTypes.func,\r\n setErrors: PropTypes.func,\r\n maxUploadNum: PropTypes.number,\r\n};\r\n\r\nManagedWebsiteImageView.defaultProps = {\r\n setShowBlocker: _.noop,\r\n setShowApplyButton: _.noop,\r\n setDisableApplyButton: _.noop,\r\n setSelectionInfoText: _.noop,\r\n setErrors: _.noop,\r\n maxUploadNum: 16,\r\n};\r\n\r\nexport const websiteImageSourceConfig = {\r\n title: _TL_('Website images'),\r\n showBackButton: true,\r\n onRenderContent: props => (\r\n \r\n ),\r\n buttonConfig: {\r\n label: _TL_('Website images'),\r\n view: VIEWS.WebsiteImage,\r\n iconName: 'Link12',\r\n buttonLocator: 'website-images',\r\n },\r\n};\r\n","import { useCallback, useState, useMemo, useEffect, useRef } from 'react';\r\nimport _ from 'underscore';\r\n\r\nimport { extendPath, getUrlProtocolAndDomain } from '@bingads-webui/url-util';\r\n\r\nexport const useImageExperienceAdapterForWebsiteImages = ({\r\n imageExperienceProps,\r\n minSize,\r\n setShowBlocker,\r\n setImages,\r\n setMoreImages,\r\n}) => {\r\n const {\r\n suggestion,\r\n finalUrl,\r\n onUpdateFinalUrl,\r\n finalUrlProtocol,\r\n onUpdateFinalUrlPrefix,\r\n suggestionPoller,\r\n } = imageExperienceProps;\r\n\r\n const [pageNumber, setPageNumber] = useState(1);\r\n const [subdomain, setSubdomain] = useState('');\r\n const [hasMore, setHasMore] = useState(true);\r\n const lastSuggestionImages = useRef([]);\r\n\r\n const finalUrlWithDomain = useMemo(() => getUrlProtocolAndDomain(finalUrl || ''), [\r\n finalUrl,\r\n ]);\r\n\r\n useEffect(() => {\r\n const baseImages = suggestion.images || [];\r\n\r\n if (!suggestion.inProgress && pageNumber === 1 && lastSuggestionImages.current !== baseImages) {\r\n setImages(_.map(baseImages, ({ fullUrl, thumbnailUrl }) => ({\r\n thumbnailSrc: thumbnailUrl,\r\n fullUrl,\r\n })));\r\n setHasMore(suggestion.hasMore);\r\n lastSuggestionImages.current = baseImages;\r\n }\r\n }, [suggestion, setImages, setHasMore, pageNumber]);\r\n\r\n const onSubdomainChange = useCallback((ev, newSubdomain) => {\r\n setSubdomain(newSubdomain);\r\n }, [setSubdomain]);\r\n\r\n const onEnteredFinalUrl = useCallback((newUrl, ev) => {\r\n onUpdateFinalUrl(ev);\r\n }, [onUpdateFinalUrl]);\r\n\r\n const onUpdateProtocol = useCallback((newProtocol, ev) => {\r\n onUpdateFinalUrlPrefix(ev, { text: newProtocol });\r\n }, [onUpdateFinalUrlPrefix]);\r\n\r\n const onSubdomainChanged = useCallback((ev) => {\r\n const newSubdomain = ev && ev.target && ev.target.value;\r\n\r\n if (!_.isNull(newSubdomain) && !_.isUndefined(newSubdomain)) {\r\n const fullUrl = _.isEmpty(newSubdomain.trim()) ?\r\n finalUrl : extendPath(finalUrlWithDomain, newSubdomain);\r\n setShowBlocker(true);\r\n setPageNumber(1);\r\n suggestionPoller.getLandingPageSuggestions({\r\n landingPageUrl: fullUrl,\r\n enableOfflinePollingDelay: false,\r\n forceInternalScrapingService: !!newSubdomain,\r\n minimumResolution: {\r\n width: minSize[0],\r\n height: minSize[1],\r\n },\r\n additionalCallback: () => {\r\n setShowBlocker(false);\r\n },\r\n });\r\n setSubdomain(newSubdomain);\r\n }\r\n }, [finalUrl, finalUrlWithDomain, suggestionPoller, setSubdomain, minSize, setShowBlocker]);\r\n\r\n const isLoadingFirstPage = useMemo(() => suggestion && suggestion.inProgress && pageNumber === 1, [\r\n pageNumber,\r\n suggestion,\r\n ]);\r\n\r\n const loadNextPage = useCallback(() => {\r\n if (hasMore) {\r\n let url = finalUrl;\r\n\r\n if (subdomain) {\r\n url = extendPath(finalUrlWithDomain, subdomain);\r\n }\r\n\r\n const newPageNumber = pageNumber + 1;\r\n setPageNumber(newPageNumber);\r\n suggestionPoller.getMoreLandingPageSuggestions({\r\n landingPageUrl: url,\r\n pageNumber: newPageNumber,\r\n forceInternalScrapingService: !!subdomain,\r\n minimumResolution: {\r\n width: minSize[0],\r\n height: minSize[1],\r\n },\r\n }).then((data) => {\r\n const { TotalCount, PageSize, PageNumber } = data.ImagePaging;\r\n\r\n setHasMore(PageNumber * PageSize < TotalCount);\r\n\r\n setMoreImages(_.map(data.Images, item => ({\r\n thumbnailSrc: item.ThumbnailUrl || item.ImageUrl,\r\n fullUrl: item.ImageUrl,\r\n })));\r\n });\r\n }\r\n }, [\r\n hasMore,\r\n suggestionPoller,\r\n minSize,\r\n subdomain,\r\n pageNumber,\r\n finalUrl,\r\n finalUrlWithDomain,\r\n setMoreImages,\r\n ]);\r\n\r\n const websiteImageConfig = useMemo(() => ({\r\n isLoadingFirstPage: !!isLoadingFirstPage,\r\n isLoading: !!suggestion.inProgress,\r\n hasMore,\r\n finalUrl,\r\n subdomain,\r\n onSubdomainChange,\r\n onSubdomainChanged,\r\n loadNextPage,\r\n onEnteredFinalUrl,\r\n pageSize: 30,\r\n protocol: finalUrlProtocol,\r\n onUpdateProtocol,\r\n showTextAbovePicker: true,\r\n }), [\r\n hasMore,\r\n isLoadingFirstPage,\r\n suggestion,\r\n finalUrl,\r\n subdomain,\r\n onSubdomainChange,\r\n onSubdomainChanged,\r\n loadNextPage,\r\n onEnteredFinalUrl,\r\n finalUrlProtocol,\r\n onUpdateProtocol,\r\n ]);\r\n\r\n return websiteImageConfig;\r\n};\r\n","import Promise from 'bluebird';\r\nimport _ from 'underscore';\r\nimport React, { useCallback, useEffect, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { StockImageView } from '@bingads-webui-campaign-react/add-stock-images-view';\r\nimport { constants } from '@bingads-webui-campaign-react/image-experience-model';\r\nimport { ROOT_FOLDER_ID, MaxAddAssetJobInParell } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { VIEWS } from '../view-type';\r\n\r\nconst ManagedStockImageView = ({\r\n stockImageConfig,\r\n setShowBlocker,\r\n perfMarker,\r\n assetLibraryConfig,\r\n assetLibraryDataService,\r\n logger,\r\n maxUploadNum,\r\n setShowApplyButton,\r\n triggerAddImagesRef,\r\n setSelectionInfoText,\r\n setDisableApplyButton,\r\n setErrors,\r\n i18n,\r\n}) => {\r\n const {\r\n onImageSelected,\r\n onImagesSelected,\r\n onImageAddError,\r\n enableStockMultipleSelection: enableMultipleSelection,\r\n } = assetLibraryConfig;\r\n\r\n const onChangeImageIdSelection = useCallback((args) => {\r\n const stockImagePerfMarker = perfMarker.createChild('stockImagePicker');\r\n stockImagePerfMarker.willInit();\r\n\r\n const selectStockImage = assetLibraryDataService.uploadStockImage({\r\n stockImageId: args.selectedImageId,\r\n folderId: ROOT_FOLDER_ID,\r\n })\r\n .then(value => onImageSelected({ id: value }, constants.imageSources.Stock))\r\n .catch(e => onImageAddError(e));\r\n\r\n setShowBlocker(true);\r\n selectStockImage\r\n .tap(() => {\r\n const { selectedImageId: imageId } = args || {};\r\n logger.logTrace('Ad creation flow - selected stock image', { imageId });\r\n })\r\n .finally(() => {\r\n setShowBlocker(false);\r\n stockImagePerfMarker.done();\r\n });\r\n }, [perfMarker, setShowBlocker, assetLibraryDataService, onImageSelected, onImageAddError, logger]);\r\n\r\n const [images, setImages] = useState([]);\r\n const [hasMore, setHasMore] = useState(true);\r\n const [skip, setSkip] = useState(0);\r\n const [serializedFilterForComp, setSerializedFilterForComp] = useState('');\r\n const [isLoadingFirstPage, setIsLoadingFirstPage] = useState(false);\r\n const [searchQuery, setSearchQuery] = useState('');\r\n const [filter, setFilter] = useState({});\r\n\r\n useEffect(() => {\r\n // init the state for multiple selection\r\n if (enableMultipleSelection) {\r\n setShowApplyButton(true);\r\n setDisableApplyButton(true);\r\n setErrors([]);\r\n setSelectionInfoText(i18n.getString(_TL_('0 of {{limitNumber}} images selected'), { limitNumber: maxUploadNum }));\r\n }\r\n }, [enableMultipleSelection, i18n, maxUploadNum, setDisableApplyButton, setErrors, setSelectionInfoText, setShowApplyButton]);\r\n\r\n useEffect(() => {\r\n const selectedImages = _.filter(images, image => image && image.isSelected) || [];\r\n if (selectedImages.length > maxUploadNum) {\r\n setErrors([i18n.getString(_TL_('You\\'ve exceeded the max. number of assets you can add at a time ({{limitNumber}}). Please try again.'), { limitNumber: maxUploadNum })]);\r\n setDisableApplyButton(true);\r\n } else if (selectedImages.length > 0) {\r\n setErrors([]);\r\n setDisableApplyButton(false);\r\n } else {\r\n setErrors([]);\r\n setDisableApplyButton(true);\r\n }\r\n\r\n const singularImageString = _TL_('{{selectedNumber}} of {{limitNumber}} image selected');\r\n const pluralImagesString = _TL_('{{selectedNumber}} of {{limitNumber}} images selected');\r\n const stringToUse = maxUploadNum > 1 ? pluralImagesString : singularImageString;\r\n setSelectionInfoText(i18n.getString(stringToUse, { selectedNumber: selectedImages.length, limitNumber: maxUploadNum }));\r\n }, [enableMultipleSelection, i18n, images, maxUploadNum, setDisableApplyButton, setErrors, setSelectionInfoText]);\r\n\r\n // only for multiple selection mode\r\n const onApplyButtonClick = useCallback(() => {\r\n const selectedImages = _.filter(images, image => image && image.isSelected) || [];\r\n\r\n setShowBlocker(true);\r\n\r\n const stockImagePerfMarker = perfMarker.createChild('stockImagePicker');\r\n stockImagePerfMarker.willInit();\r\n\r\n Promise.map(\r\n selectedImages,\r\n (img) => {\r\n const { id } = img || {};\r\n return assetLibraryDataService.uploadStockImage({ stockImageId: id, folderId: ROOT_FOLDER_ID });\r\n },\r\n { concurrency: MaxAddAssetJobInParell }\r\n )\r\n .then((imageIds) => {\r\n logger.logTrace('Ad creation flow - selected stock images', { imageIds });\r\n return onImagesSelected(imageIds, constants.imageSources.Stock);\r\n })\r\n .catch((err) => {\r\n onImageAddError(err);\r\n })\r\n .finally(() => {\r\n setShowBlocker(false);\r\n stockImagePerfMarker.done();\r\n });\r\n }, [assetLibraryDataService, images, logger, onImageAddError, onImagesSelected, perfMarker, setShowBlocker]);\r\n\r\n // listen to the apply button click for multiple selection\r\n // eslint-disable-next-line no-param-reassign\r\n triggerAddImagesRef.current = enableMultipleSelection ? onApplyButtonClick : undefined;\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nManagedStockImageView.propTypes = {\r\n stockImageConfig: PropTypes.shape({\r\n getStockImages: PropTypes.func,\r\n }).isRequired,\r\n setShowBlocker: PropTypes.func,\r\n perfMarker: PropTypes.shape({\r\n willFetchFile: PropTypes.func.isRequired,\r\n willInit: PropTypes.func.isRequired,\r\n willFetchData: PropTypes.func.isRequired,\r\n willRender: PropTypes.func.isRequired,\r\n done: PropTypes.func.isRequired,\r\n createChild: PropTypes.func.isRequired,\r\n }).isRequired,\r\n assetLibraryDataService: PropTypes.shape({}).isRequired,\r\n assetLibraryConfig: PropTypes.shape({\r\n onImageSelected: PropTypes.func,\r\n onImagesSelected: PropTypes.func,\r\n onImageAddError: PropTypes.func,\r\n }).isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n triggerAddImagesRef: PropTypes.shape({\r\n current: PropTypes.func,\r\n }).isRequired,\r\n setShowApplyButton: PropTypes.func,\r\n setSelectionInfoText: PropTypes.func,\r\n setDisableApplyButton: PropTypes.func,\r\n setErrors: PropTypes.func,\r\n maxUploadNum: PropTypes.number,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nManagedStockImageView.defaultProps = {\r\n setShowBlocker: _.noop,\r\n setShowApplyButton: _.noop,\r\n setDisableApplyButton: _.noop,\r\n setSelectionInfoText: _.noop,\r\n setErrors: _.noop,\r\n maxUploadNum: 16,\r\n};\r\n\r\nexport const stockImageSourceConfig = {\r\n title: _TL_('Stock images'),\r\n showBackButton: true,\r\n onRenderContent: props => (\r\n \r\n ),\r\n buttonConfig: {\r\n label: _TL_('Stock images'),\r\n view: VIEWS.StockImage,\r\n iconName: 'TripleColumn',\r\n buttonLocator: 'stock-images',\r\n },\r\n};\r\n","export const getSocialMediaStyles = () => ({\r\n socialMediaContainer: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n },\r\n textField: {\r\n paddingBottom: 16,\r\n },\r\n socialMediaRoot: {\r\n paddingTop: 22,\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n },\r\n});\r\n","import React, {\r\n useContext,\r\n useMemo,\r\n useCallback,\r\n useState,\r\n useEffect,\r\n} from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\n\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { TextField } from '@bingads-webui-react/fabric-control';\r\n\r\nimport { FluentImagePicker } from '@bingads-webui-campaign-react/fluent-image-picker';\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { isValidUrl } from '@bingads-webui/url-util';\r\nimport { PlaceholderView } from '@bingads-webui-campaign-react/add-website-images-view';\r\nimport _ from 'underscore';\r\n\r\nimport { getSocialMediaStyles } from './styles/index';\r\n\r\nconst twitterReg = new RegExp(/(http:\\/\\/|https:\\/\\/)?(www\\.)?twitter.com\\/(\\w+)\\/?/);\r\n\r\nexport const useSocialMediaRepositoryToSetImages = ({ socialMediaDataSource }) => {\r\n const [images, setImages] = useState([]);\r\n const [socialMediaAccount, setSocialMediaAccount] = useState({ Value: '' });\r\n\r\n socialMediaDataSource.subscribe((newStatus) => {\r\n if (newStatus === 'Done') {\r\n setImages([\r\n ...socialMediaDataSource.data.map(img => ({\r\n ...img,\r\n thumbnailSrc: img.src,\r\n })),\r\n ]);\r\n\r\n const newSocialMediaAccount = socialMediaDataSource.socialMediaAccounts[0];\r\n\r\n if (newSocialMediaAccount) {\r\n setSocialMediaAccount(newSocialMediaAccount);\r\n }\r\n }\r\n });\r\n\r\n return {\r\n images,\r\n socialMediaAccount,\r\n };\r\n};\r\n\r\nexport const SocialImageView = ({\r\n images,\r\n fetchImages,\r\n fetchImageByAccount,\r\n socialMediaAccount,\r\n finalUrl,\r\n onUpdateFinalUrl,\r\n addImageByUrl,\r\n logger,\r\n onUpdateFinalUrlPrefix,\r\n finalUrlProtocol,\r\n}) => {\r\n const showPlaceholder =\r\n useMemo(() => !finalUrl || !isValidUrl(finalUrl), [finalUrl]);\r\n const i18n = useContext(I18nContext);\r\n const [isLoading, setIsLoading] = useState(true);\r\n const [account, setAccount] = useState('');\r\n const [alertMessage, setAlertMessage] = useState('');\r\n const classes = useDefaultStyles(getSocialMediaStyles);\r\n\r\n const setAlertMessageByResult = useCallback((result) => {\r\n if (result === 'NoAccountFound') {\r\n setAlertMessage(i18n.getString(_TL_('No Twitter account found from your URL. Please enter your Twitter account URL manually')));\r\n } else if (result === 'NoImagesFound') {\r\n setAlertMessage(i18n.getString(_TL_('No images posted recently on your Twitter account.')));\r\n } else if (result === 'Done') {\r\n setAlertMessage(i18n.getString(_TL_('We\\'ve found images from your Twitter account.')));\r\n }\r\n }, [setAlertMessage, i18n]);\r\n\r\n const loadSocialImages = useCallback((url) => {\r\n setIsLoading(true);\r\n\r\n fetchImages(url).then((result) => {\r\n setAlertMessageByResult(result);\r\n\r\n logger.logTrace('social media image fetched');\r\n setIsLoading(false);\r\n });\r\n }, [setIsLoading, fetchImages, setAlertMessageByResult, logger]);\r\n\r\n useEffect(() => {\r\n if (!showPlaceholder) {\r\n loadSocialImages(finalUrl);\r\n }\r\n }, []);\r\n\r\n useEffect(() => {\r\n setAccount(`https://twitter.com/${socialMediaAccount.Value}`);\r\n }, [socialMediaAccount.Value]);\r\n\r\n const onAccountChange = useCallback((ev, newValue) => {\r\n setAccount(newValue);\r\n }, [setAccount]);\r\n\r\n const onBlur = useCallback(() => {\r\n const result = account.match(twitterReg);\r\n\r\n /* istanbul ignore next */\r\n if (result && result[3]) {\r\n setAlertMessage('');\r\n setIsLoading(true);\r\n fetchImageByAccount([{ Key: 'Twitter', Value: result[3] }]).then((fetchResult) => {\r\n setAlertMessageByResult(fetchResult);\r\n setIsLoading(false);\r\n });\r\n } else {\r\n setAlertMessage(i18n.getString(_TL_('Please enter the correct Twitter URL, like: https://twitter.com/microsoft')));\r\n }\r\n }, [setAlertMessage, fetchImageByAccount, account, i18n, setAlertMessageByResult]);\r\n\r\n const onSelectImage = useCallback((index) => {\r\n const imageToBeSelected = images[index];\r\n\r\n logger.logTrace('social media image selected');\r\n\r\n addImageByUrl(imageToBeSelected.src);\r\n }, [images, addImageByUrl, logger]);\r\n\r\n const onEnteredFinalUrl = useCallback((newUrl, ev) => {\r\n onUpdateFinalUrl(ev);\r\n loadSocialImages(newUrl);\r\n }, [onUpdateFinalUrl, loadSocialImages]);\r\n\r\n const onKeyDown = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n onBlur(ev);\r\n }\r\n }, [onBlur]);\r\n\r\n return (\r\n
\r\n {\r\n showPlaceholder &&\r\n \r\n }\r\n {\r\n !showPlaceholder &&\r\n
\r\n {\r\n !isLoading && \r\n }\r\n {\r\n isLoading ? :\r\n \r\n }\r\n
\r\n }\r\n
\r\n );\r\n};\r\n\r\nSocialImageView.propTypes = {\r\n images: PropTypes.arrayOf(PropTypes.shape({\r\n thumbnailSrc: PropTypes.string,\r\n })).isRequired,\r\n fetchImages: PropTypes.func.isRequired,\r\n fetchImageByAccount: PropTypes.func.isRequired,\r\n socialMediaAccount: PropTypes.shape({\r\n Value: PropTypes.string,\r\n }),\r\n onUpdateFinalUrl: PropTypes.func.isRequired,\r\n addImageByUrl: PropTypes.func.isRequired,\r\n finalUrl: PropTypes.string,\r\n finalUrlProtocol: PropTypes.string,\r\n onUpdateFinalUrlPrefix: PropTypes.func,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }),\r\n};\r\n\r\nSocialImageView.defaultProps = {\r\n finalUrl: '',\r\n socialMediaAccount: {},\r\n logger: {\r\n logTrace: _.noop,\r\n },\r\n finalUrlProtocol: null,\r\n onUpdateFinalUrlPrefix: null,\r\n};\r\n","import React, { useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { SocialImageView, useSocialMediaRepositoryToSetImages } from '@bingads-webui-campaign-react/add-social-images-view';\r\nimport { constants } from '@bingads-webui-campaign-react/image-experience-model';\r\nimport { ROOT_FOLDER_ID } from '@bingads-webui-campaign-react/asset-library-model';\r\n\r\nimport { validateImageSizeAsync } from '@bingads-webui-campaign/image-experience-utils';\r\n\r\nimport { VIEWS } from '../view-type';\r\n\r\nconst ManagedSocialImageView = ({\r\n socialImageConfig,\r\n setShowBlocker,\r\n imageExperienceProps,\r\n assetLibraryConfig,\r\n assetLibraryDataService,\r\n logger,\r\n}) => {\r\n const { socialMediaDataSource } = socialImageConfig;\r\n const { onImageSelected, onImageAddError } = assetLibraryConfig;\r\n\r\n const {\r\n finalUrl,\r\n onUpdateFinalUrl,\r\n finalUrlProtocol,\r\n onUpdateFinalUrlPrefix,\r\n imageOption,\r\n isMultimediaAd,\r\n } = imageExperienceProps;\r\n\r\n const { images, socialMediaAccount } =\r\n useSocialMediaRepositoryToSetImages({ socialMediaDataSource });\r\n\r\n const fetchImages =\r\n useCallback(url => socialMediaDataSource.fetchImages(url), [socialMediaDataSource]);\r\n\r\n const fetchImageByAccount =\r\n useCallback(acct => socialMediaDataSource.fetchImageByAccount(acct), [socialMediaDataSource]);\r\n\r\n const onSelectImage = useCallback((url) => {\r\n setShowBlocker(true);\r\n\r\n const addImagePromise = validateImageSizeAsync(url, null, isMultimediaAd, imageOption)\r\n .then(() => assetLibraryDataService.uploadImageByUrl({\r\n imageUrl: url,\r\n folderId: ROOT_FOLDER_ID,\r\n sourceType: constants.sourceTypes.TwitterImported,\r\n }))\r\n .then(id => onImageSelected({ id }, constants.imageSources.Social))\r\n .catch(e => onImageAddError(e));\r\n\r\n addImagePromise\r\n .tap((img) => {\r\n if (img && img.errorMessage) {\r\n logger.logTrace(`Ad creation flow - add social image error message: ${img.errorMessage}`);\r\n } else {\r\n const { id: imageId } = img || {};\r\n logger.logTrace('Ad creation flow - selected social image', { imageId });\r\n }\r\n })\r\n .finally(() => {\r\n setShowBlocker(false);\r\n });\r\n }, [setShowBlocker, isMultimediaAd, imageOption, assetLibraryDataService, onImageSelected, onImageAddError, logger]);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nManagedSocialImageView.propTypes = {\r\n socialImageConfig: PropTypes.shape({\r\n socialMediaDataSource: PropTypes.shape({\r\n fetchImageByAccount: PropTypes.func,\r\n fetchImages: PropTypes.func,\r\n subscribe: PropTypes.func,\r\n data: PropTypes.arrayOf(PropTypes.shape({\r\n id: PropTypes.number,\r\n src: PropTypes.string,\r\n })),\r\n socialMediaAccounts: PropTypes.arrayOf(PropTypes.string),\r\n }),\r\n }).isRequired,\r\n imageExperienceProps: PropTypes.shape({\r\n finalUrl: PropTypes.string,\r\n onUpdateFinalUrl: PropTypes.func,\r\n finalUrlProtocol: PropTypes.string,\r\n onUpdateFinalUrlPrefix: PropTypes.func,\r\n }).isRequired,\r\n setShowBlocker: PropTypes.func.isRequired,\r\n assetLibraryDataService: PropTypes.shape({}).isRequired,\r\n assetLibraryConfig: PropTypes.shape({\r\n onImageSelected: PropTypes.func,\r\n }).isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nManagedSocialImageView.defaultProps = {\r\n};\r\n\r\nexport const socialImageSourceConfig = {\r\n title: _TL_('Social'),\r\n showBackButton: true,\r\n onRenderContent: props => (\r\n \r\n ),\r\n buttonConfig: {\r\n label: _TL_('Social'),\r\n view: VIEWS.SocialMedia,\r\n iconName: 'People',\r\n buttonLocator: 'social-media',\r\n },\r\n};\r\n","import _ from 'underscore';\r\nimport Promise from 'bluebird';\r\nimport React, { useCallback, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { LearnMoreLink } from '@bingads-webui-campaign-react/help';\r\n// import { validateImageSizeAsync } from '@bingads-webui-campaign/image-experience-utils';\r\nimport { constants } from '@bingads-webui-campaign-react/image-experience-model';\r\n\r\nimport {\r\n handleRealUsedFlag,\r\n RealUsedFlagSuffix,\r\n MaxAddAssetJobInParell,\r\n getImageAssetLimitPerAccount,\r\n AIModelSource,\r\n} from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { AssetLibraryAIGenerateImagesView, useAIGenerateImagesState, AIGCDisclaimer } from '@bingads-webui-campaign-react/asset-library-ai-generate-images-view';\r\n\r\nconst MAX_FOLDER_FETCH_LIMIT = 20;\r\nconst singularImageString = _TL_('{{selectedNumber}} of {{limitNumber}} image selected');\r\nconst pluralImagesString = _TL_('{{selectedNumber}} of {{limitNumber}} images selected');\r\nconst errorExceededMaxCount = _TL_('You\\'ve exceeded the max. number of assets you can add at a time ({{limitNumber}}). Please try again.');\r\n\r\nconst ManagedAIGCImageView = (props) => {\r\n const {\r\n assetLibraryConfig, assetLibraryDataService, triggerAddImagesRef, setShowBlocker,\r\n setShowApplyButton, setDisableApplyButton,\r\n maxUploadNum, setSelectionInfoText, setErrors,\r\n i18n, perfMarker, logger, aid, permissions, eventHandler,\r\n } = props;\r\n const { assetLibraryAccountPreferences } = assetLibraryConfig || {};\r\n\r\n const { selectedImages, prompt, ...restState } = useAIGenerateImagesState({\r\n dataService: assetLibraryDataService, i18n, logger, eventHandler,\r\n });\r\n\r\n // Only supports maximum of adding 20 images at a time in a folder. Please contact MT to raise limit on API first\r\n const boundedMaxUploadNum = maxUploadNum > MAX_FOLDER_FETCH_LIMIT ? MAX_FOLDER_FETCH_LIMIT : maxUploadNum;\r\n\r\n useEffect(() => {\r\n const selectedCount = (selectedImages && selectedImages.length) || 0;\r\n if (selectedCount > boundedMaxUploadNum) {\r\n setErrors([i18n.getString(errorExceededMaxCount, { limitNumber: boundedMaxUploadNum })]);\r\n setDisableApplyButton(true);\r\n setSelectionInfoText('');\r\n } else {\r\n setErrors([]);\r\n setDisableApplyButton(false);\r\n setShowApplyButton(selectedCount > 0);\r\n const stringToUse = boundedMaxUploadNum > 1 ? pluralImagesString : singularImageString;\r\n setSelectionInfoText(i18n.getString(stringToUse, { selectedNumber: selectedCount, limitNumber: boundedMaxUploadNum }));\r\n }\r\n }, [boundedMaxUploadNum, i18n, selectedImages, setDisableApplyButton, setErrors, setSelectionInfoText, setShowApplyButton]);\r\n\r\n const handleJobErrors = useCallback((jobErrors) => {\r\n if (jobErrors.length > 0) {\r\n const assetLimitError = _.find(jobErrors, (err) => {\r\n const errorCode = _.get(err, ['body', 'value', 0, 'Code'], '');\r\n return errorCode === 'ImagesLimitExceededPerAccount';\r\n });\r\n\r\n if (assetLimitError) {\r\n const assetLimit = getImageAssetLimitPerAccount(aid, logger);\r\n setErrors([i18n.getString(_TL_('One or more images failed to upload because your account has exceeded the {{value}}-image asset limit. Please remove assets and try again.'), { value: assetLimit })]);\r\n } else {\r\n const genericError = (\r\n \r\n { i18n.getString(_TL_('One or more assets failed to upload. Please try again')) }\r\n \r\n \r\n );\r\n setErrors([genericError]);\r\n }\r\n }\r\n }, [aid, i18n, logger, setErrors]);\r\n\r\n const onApplySelectedImages = useCallback(() => {\r\n // no selected images, or selected too many (shouldn't happen)\r\n if (_.isEmpty(selectedImages) || selectedImages.length > boundedMaxUploadNum) {\r\n return Promise.resolve();\r\n }\r\n\r\n handleRealUsedFlag(assetLibraryAccountPreferences, RealUsedFlagSuffix.Picker);\r\n logger.logTrace('Selected AI generated images from asset library in ad creation flow', { length: selectedImages.length });\r\n logger.logTrace('Count selected AI images', {\r\n imageUrls: selectedImages.map(x => x.thumbnailSrc).join(','),\r\n count: selectedImages.length,\r\n logForExpand: true,\r\n prompt,\r\n }); // will expand the log to per image id\r\n\r\n setShowBlocker(true);\r\n\r\n const aiGCImagePerfMarker = perfMarker.createChild('AIGCImagePicker');\r\n aiGCImagePerfMarker.willInit();\r\n\r\n const jobErrors = [];\r\n return Promise.map(\r\n selectedImages,\r\n (img) => {\r\n const { thumbnailSrc: imageUrl, modelSource } = img;\r\n\r\n logger.logTrace('AIGC image save', {\r\n imageUrl,\r\n prompt,\r\n modelSource: modelSource || AIModelSource.Dalle,\r\n });\r\n\r\n return assetLibraryDataService.uploadImageByUrl({\r\n imageUrl, sourceType: modelSource === AIModelSource.Recraft ? constants.sourceTypes.AIGeneratedByRecraft : constants.sourceTypes.AIGenerated,\r\n }).catch((err) => {\r\n jobErrors.push(err);\r\n });\r\n },\r\n { concurrency: MaxAddAssetJobInParell }\r\n ).then((values) => {\r\n const imageIds = _.compact(values || []);\r\n if (!_.isEmpty(imageIds)) {\r\n logger.logTrace('Saved AI generated images to folder in ad creation flow');\r\n // use the tag \"logForExpand\" to expand the log to per image id without expanding other logs with imageIds\r\n logger.logTrace('Count AI saved images', {\r\n imageIds: imageIds.join(','),\r\n count: imageIds.length,\r\n logForExpand: true,\r\n prompt,\r\n }); // will expand the log to per image id\r\n if (eventHandler && eventHandler.onAddImagesToAssetLibrary) {\r\n eventHandler.onAddImagesToAssetLibrary({ imageIds, prompt });\r\n }\r\n return assetLibraryConfig.onImagesSelected(imageIds, constants.imageSources.AIGenerated);\r\n }\r\n return Promise.resolve();\r\n }).finally(() => {\r\n setShowBlocker(false);\r\n handleJobErrors(jobErrors);\r\n aiGCImagePerfMarker.done();\r\n });\r\n }, [assetLibraryAccountPreferences, assetLibraryConfig, assetLibraryDataService, boundedMaxUploadNum, handleJobErrors, logger, perfMarker, selectedImages, setShowBlocker, prompt, eventHandler]);\r\n\r\n triggerAddImagesRef.current = onApplySelectedImages;\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nManagedAIGCImageView.propTypes = {\r\n assetLibraryConfig: PropTypes.shape({\r\n onImagesSelected: PropTypes.func,\r\n }).isRequired,\r\n assetLibraryDataService: PropTypes.shape({\r\n uploadImageByUrl: PropTypes.func,\r\n }).isRequired,\r\n triggerAddImagesRef: PropTypes.shape({}).isRequired,\r\n setShowBlocker: PropTypes.func,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n perfMarker: PropTypes.shape({}).isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n logError: PropTypes.func,\r\n }).isRequired,\r\n setShowApplyButton: PropTypes.func,\r\n setDisableApplyButton: PropTypes.func,\r\n setSelectionInfoText: PropTypes.func,\r\n setErrors: PropTypes.func,\r\n maxUploadNum: PropTypes.number,\r\n aid: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,\r\n permissions: PropTypes.shape({}),\r\n eventHandler: PropTypes.shape({\r\n onAddImagesToAssetLibrary: PropTypes.func,\r\n }),\r\n};\r\n\r\nManagedAIGCImageView.defaultProps = {\r\n setShowBlocker: _.noop,\r\n setShowApplyButton: _.noop,\r\n setDisableApplyButton: _.noop,\r\n setSelectionInfoText: _.noop,\r\n setErrors: _.noop,\r\n maxUploadNum: MAX_FOLDER_FETCH_LIMIT,\r\n permissions: {},\r\n eventHandler: null,\r\n};\r\n\r\nexport const aigcImageSourceConfig = {\r\n title: _TL_('Generate images'),\r\n showBackButton: true,\r\n onRenderContent: props => ,\r\n onRenderFooterContent: props => ,\r\n\r\n // don't show the button, instead show a Generate images button in the banner\r\n // buttonConfig: {\r\n // label: _TL_('Generate images'),\r\n // view: VIEWS.AIGCImage,\r\n // iconName: CustomFluentUIIcons.SparkeSVGIcon,\r\n // iconStyles: {\r\n // root: {\r\n // position: 'relative',\r\n // top: -3,\r\n // left: 1,\r\n // },\r\n // },\r\n // buttonLocator: 'aigc-images',\r\n // },\r\n};\r\n","export const getLandingPageStyles = () => ({\r\n landingContent: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n paddingTop: 24,\r\n },\r\n assetLibraryGridContainer: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n flexBasis: 0,\r\n overflowX: 'hidden',\r\n overflowY: 'auto',\r\n marginTop: 20,\r\n\r\n '& .asset-library-grid-container .tiles-grid-cell .tiles-grid-cell-content': {\r\n padding: 8,\r\n },\r\n },\r\n});\r\n\r\nexport const getAssetLibraryStyles = () => ({\r\n '@global': {\r\n '.asset-library-custom-drop-down-list': {\r\n '& .dropdown-value-input': {\r\n maxWidth: 120,\r\n },\r\n },\r\n },\r\n injectedContentContainer: {\r\n '& .asset-library-page-header': {\r\n marginRight: 8,\r\n marginLeft: 8,\r\n marginTop: 0,\r\n\r\n '& .asset-library-search': {\r\n width: 210,\r\n },\r\n\r\n '& .asset-library-image-size-filter': {\r\n minWidth: 100,\r\n },\r\n\r\n '& .asset-library-date-added-filter': {\r\n minWidth: 100,\r\n },\r\n '& .asset-library-import-source-filter': {\r\n minWidth: 120,\r\n },\r\n\r\n '& .asset-library-asset-source-filter': {\r\n minWidth: 120,\r\n maxWidth: 200,\r\n },\r\n\r\n '& .search-location-filter': {\r\n maxWidth: 130,\r\n },\r\n '& .asset-library-sort': {\r\n maxWidth: 160,\r\n },\r\n },\r\n '& .asset-library-grid-container': {\r\n marginTop: 12,\r\n position: 'relative',\r\n },\r\n },\r\n});\r\n","import _ from 'underscore';\r\nimport Promise from 'bluebird';\r\nimport React, { useState, useRef, useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { ConfirmDialog } from '@bingads-webui-campaign-react/confirm-dialog';\r\n\r\nconst DeleteConfirmDialog = ({\r\n showConfirmDialog,\r\n setShowConfirmDialog,\r\n deleteAssetApi,\r\n onSuccess,\r\n i18n,\r\n}) => {\r\n const [showUIBlocker, setShowUIBlocker] = useState(false);\r\n const [errorMessage, setErrorMessage] = useState('');\r\n\r\n const closeConfirmDialog = () => {\r\n setErrorMessage('');\r\n setShowConfirmDialog(false);\r\n setShowUIBlocker(false);\r\n };\r\n\r\n const onDelete = () => {\r\n setShowUIBlocker(true);\r\n deleteAssetApi().then(() => {\r\n onSuccess();\r\n closeConfirmDialog();\r\n }).catch((response) => {\r\n const { errors } = response || {};\r\n const err = _.first(errors) || {};\r\n if (err.Code === 'AssetIsUsed') {\r\n setErrorMessage(i18n.getString(_TL_(\"You can't delete this image because it's being used by other campaigns, ads, or image extensions.\")));\r\n } else {\r\n setErrorMessage(i18n.getString(_TL_('Your image couldn\\'t be deleted. Please try again or contact support.')));\r\n }\r\n }).finally(() => {\r\n setShowUIBlocker(false);\r\n });\r\n };\r\n\r\n const onCancel = () => {\r\n closeConfirmDialog();\r\n };\r\n\r\n return showConfirmDialog ? (\r\n \r\n ) : null;\r\n};\r\n\r\nDeleteConfirmDialog.propTypes = {\r\n showConfirmDialog: PropTypes.bool.isRequired,\r\n setShowConfirmDialog: PropTypes.func.isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n deleteAssetApi: PropTypes.func.isRequired,\r\n onSuccess: PropTypes.func.isRequired,\r\n};\r\n\r\nexport const useImageDeleteConfirmDialog = ({ dataService, i18n, onDeleted }) => {\r\n const [showConfirmDialog, setShowConfirmDialog] = useState(false);\r\n const itemToDeleteRef = useRef(null);\r\n\r\n const open = (item) => {\r\n itemToDeleteRef.current = item;\r\n setShowConfirmDialog(true);\r\n };\r\n\r\n const render = useCallback(() => {\r\n const deleteImageAsync = () => {\r\n if (itemToDeleteRef.current) {\r\n const { id: assetId, folderAssetType } = itemToDeleteRef.current || {};\r\n return dataService.deleteAsset({ assetId, folderAssetType });\r\n }\r\n return Promise.resolve();\r\n };\r\n\r\n const onSuccessCallback = () => {\r\n if (onDeleted) {\r\n onDeleted(itemToDeleteRef.current);\r\n }\r\n };\r\n\r\n return ();\r\n }, [dataService, i18n, onDeleted, showConfirmDialog]);\r\n\r\n return {\r\n open,\r\n render,\r\n };\r\n};\r\n","import React, { useCallback, useState, useEffect, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\n\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { keyCode } from '@bingads-webui/keycode';\r\n\r\nimport {\r\n AssetLibraryLandingPageContent,\r\n AssetLibraryImageAssetsGridCellBase,\r\n AssetLibraryFoldersGridCell,\r\n} from '@bingads-webui-campaign-react/asset-library-landing-page-content';\r\nimport {\r\n GridSectionName,\r\n keyDownHandlerForListItem,\r\n RealUsedFlagSuffix,\r\n handleRealUsedFlag,\r\n addAssetLibrarySurveyTriggerFlag,\r\n AssetLibrarySurveyTriggerFlag,\r\n} from '@bingads-webui-campaign-react/asset-library-model';\r\n\r\nimport { useImageDeleteConfirmDialog } from './image-delete-confirm-dialog';\r\n\r\nimport { getAssetLibraryStyles } from './styles';\r\n\r\nconst filterTokens = { childrenGap: '4 12' };\r\n\r\nconst MAX_FOLDER_FETCH_LIMIT = 20;\r\n\r\nexport const AssetLibraryImagesView = (props) => {\r\n const {\r\n ianaTimeZone,\r\n assetLibraryUserPreferences,\r\n assetLibraryAccountPreferences,\r\n logger,\r\n dateFormat,\r\n i18n,\r\n onImageSelected,\r\n onFailedToLoadImages,\r\n multiSelectionEnabled,\r\n dataService,\r\n setShowApplyButton,\r\n onImagesSelected,\r\n triggerAddImagesRef,\r\n maxUploadNum,\r\n setErrors,\r\n setDisableApplyButton,\r\n setSelectionInfoText,\r\n allowedAssetType,\r\n enableImageDeleting,\r\n isAssetLibraryAIGCMVPEnabled,\r\n isClickableOutsideFocusTrap,\r\n disabledAssetSources,\r\n } = props;\r\n\r\n // Only supports maximum of adding 20 images at a time in a folder. Please contact MT to raise limit on API first\r\n const boundedMaxUploadNum = maxUploadNum > MAX_FOLDER_FETCH_LIMIT ? MAX_FOLDER_FETCH_LIMIT : maxUploadNum;\r\n\r\n // show counter at 0 to start\r\n useEffect(() => {\r\n setSelectionInfoText(i18n.getString(_TL_('0 of {{limitNumber}} images selected'), { limitNumber: boundedMaxUploadNum }));\r\n }, [i18n, boundedMaxUploadNum, setSelectionInfoText]);\r\n\r\n const classes = useDefaultStyles(getAssetLibraryStyles);\r\n const [selectedImages, setSelectedImages] = useState([]);\r\n const [selectedFolders, setSelectedFolders] = useState([]);\r\n const [selectedCount, setSelectedCount] = useState(0);\r\n const [dataLoadedOnce, setDataLoadedOnce] = useState(false);\r\n\r\n useEffect(() => {\r\n if (dataLoadedOnce) {\r\n addAssetLibrarySurveyTriggerFlag(assetLibraryAccountPreferences, AssetLibrarySurveyTriggerFlag.Picker, RealUsedFlagSuffix.Picker);\r\n }\r\n }, [assetLibraryAccountPreferences, dataLoadedOnce]);\r\n\r\n const dataLoaded = useCallback(() => {\r\n setDataLoadedOnce(() => true);\r\n }, []);\r\n\r\n const onApplyImages = useCallback(() => {\r\n if (selectedCount <= boundedMaxUploadNum) {\r\n const imagesFromFolders = _.flatten(_.map(selectedFolders, folder => folder.assets));\r\n const imagesIdsFromFolders = _.map(imagesFromFolders, ({ id }) => id);\r\n const selectedImageIds = _.map(selectedImages, ({ id }) => id);\r\n const selectedImagePerformanceLabels = _.map(selectedImages, ({ performanceLabel }) => performanceLabel);\r\n const imagesToSelect = [\r\n ...imagesIdsFromFolders,\r\n ...selectedImageIds,\r\n ];\r\n\r\n onImagesSelected(imagesToSelect);\r\n logger.logTrace(\r\n 'Select images from asset library in ad creation flow',\r\n { imageIds: imagesToSelect.join(','), imagePerformanceLabels: selectedImagePerformanceLabels.join(','), length: imagesToSelect.length }\r\n );\r\n handleRealUsedFlag(assetLibraryAccountPreferences, RealUsedFlagSuffix.Picker);\r\n }\r\n }, [selectedFolders, selectedImages, onImagesSelected, selectedCount, boundedMaxUploadNum, logger, assetLibraryAccountPreferences]);\r\n\r\n triggerAddImagesRef.current = onApplyImages;\r\n\r\n const [reload, setReload] = useState(undefined);\r\n const forceToReload = useCallback(() => setReload({}), []);\r\n const imageDeleteConfirmDialog = useImageDeleteConfirmDialog({\r\n dataService, i18n, onDeleted: forceToReload,\r\n });\r\n\r\n const renderImageGridCell = useCallback(({ item, searchText }) => {\r\n const onClick = () => {\r\n logger.logTrace('Selected Asset Library images', { imageId: item && item.id });\r\n if (onImageSelected) {\r\n onImageSelected(item);\r\n }\r\n };\r\n\r\n const onKeyDown = (event) => {\r\n if (event.keyCode === keyCode.Enter) {\r\n onClick();\r\n }\r\n };\r\n const renderCellContent = defaultContent => (\r\n
\r\n {defaultContent}\r\n
\r\n );\r\n return (\r\n \r\n );\r\n }, [enableImageDeleting, i18n, imageDeleteConfirmDialog.open, logger, onImageSelected]);\r\n\r\n // reset selection state when changing folders\r\n const resetSelectionState = useCallback(() => {\r\n setSelectedFolders([]);\r\n setSelectedImages([]);\r\n setSelectedCount(0);\r\n setShowApplyButton(false);\r\n setErrors([]);\r\n setSelectionInfoText(i18n.getString(_TL_('0 of {{limitNumber}} images selected'), { limitNumber: boundedMaxUploadNum }));\r\n setDisableApplyButton(false);\r\n }, [setShowApplyButton, setErrors, setSelectionInfoText, setDisableApplyButton, i18n, boundedMaxUploadNum]);\r\n\r\n const {\r\n navigateIntoFolder,\r\n } = dataService;\r\n\r\n const renderMultiSelectionGridCell = useCallback(({\r\n item, selected, selectItem, searchText, sectionName, index,\r\n }) => {\r\n const onClick = () => {\r\n selectItem(!selected);\r\n };\r\n\r\n const openFolder = (folderItem) => {\r\n const { folderId } = folderItem || {};\r\n if (folderId) {\r\n resetSelectionState();\r\n navigateIntoFolder({ id: folderId });\r\n logger.logTrace('Navigate into folder in ad creation flow', { folderId });\r\n }\r\n };\r\n const assetCells = document.querySelectorAll('.tiles-grid-cell-container');\r\n\r\n let cell = null;\r\n if (sectionName === GridSectionName.Folder) { // folder cell\r\n cell = (\r\n \r\n );\r\n } else { // image cell\r\n const customTabHandler = (shiftKeyPressed) => {\r\n const apply = document.querySelector('.apply-button');\r\n const cancel = document.querySelector('.cancel-button');\r\n const sortBy = document.querySelector('.asset-library-sort .ms-Dropdown');\r\n // move focus backforward if shift key is pressed\r\n const target = shiftKeyPressed ? sortBy : (apply || cancel);\r\n if (target) {\r\n target.focus();\r\n }\r\n };\r\n const onKeyDown = (event, i) => {\r\n keyDownHandlerForListItem(event, i, assetCells, undefined, onClick, onClick, customTabHandler);\r\n };\r\n\r\n cell = (\r\n { onKeyDown(event, index); }}\r\n style={{ width: '100%', height: '100%' }}\r\n data-is-focusable\r\n role=\"checkbox\"\r\n aria-checked={selected}\r\n tabIndex={-1}\r\n >\r\n \r\n
\r\n );\r\n }\r\n return cell;\r\n }, [allowedAssetType, enableImageDeleting, i18n, imageDeleteConfirmDialog.open, logger, navigateIntoFolder, resetSelectionState]);\r\n\r\n const onSelectionChange = useCallback(({\r\n sectionName, selectedItems,\r\n }) => {\r\n let newCount = 0;\r\n\r\n if (sectionName === GridSectionName.Folder) {\r\n setSelectedFolders([\r\n ...selectedItems,\r\n ]);\r\n newCount = selectedImages.length + _.reduce(selectedItems, (memo, { itemCount }) => memo + itemCount.ImageAssetsCount, 0);\r\n } else if (sectionName === GridSectionName.Asset) {\r\n setSelectedImages([\r\n ...selectedItems,\r\n ]);\r\n newCount = selectedItems.length + _.reduce(selectedFolders, (memo, { itemCount }) => memo + itemCount.ImageAssetsCount, 0);\r\n }\r\n\r\n if (newCount > boundedMaxUploadNum) {\r\n setErrors([i18n.getString(_TL_('You\\'ve exceeded the max. number of assets you can add at a time ({{limitNumber}}). Please try again.'), { limitNumber: boundedMaxUploadNum })]);\r\n setDisableApplyButton(true);\r\n } else {\r\n setErrors([]);\r\n setDisableApplyButton(false);\r\n }\r\n\r\n const singularImageString = _TL_('{{selectedNumber}} of {{limitNumber}} image selected');\r\n const pluralImagesString = _TL_('{{selectedNumber}} of {{limitNumber}} images selected');\r\n const stringToUse = boundedMaxUploadNum > 1 ? pluralImagesString : singularImageString;\r\n setSelectionInfoText(i18n.getString(stringToUse, { selectedNumber: newCount, limitNumber: boundedMaxUploadNum }));\r\n\r\n setSelectedCount(newCount);\r\n setShowApplyButton(newCount > 0);\r\n }, [\r\n setShowApplyButton,\r\n selectedImages,\r\n selectedFolders,\r\n boundedMaxUploadNum,\r\n i18n,\r\n setErrors,\r\n setDisableApplyButton,\r\n setSelectionInfoText,\r\n ]);\r\n\r\n const sectionSelectedItems = useMemo(() => ({\r\n [GridSectionName.Asset]: selectedImages,\r\n [GridSectionName.Folder]: selectedFolders,\r\n }), [selectedFolders, selectedImages]);\r\n\r\n return (\r\n <>\r\n \r\n {imageDeleteConfirmDialog.render()}\r\n \r\n );\r\n};\r\n\r\nAssetLibraryImagesView.propTypes = {\r\n ianaTimeZone: PropTypes.string.isRequired,\r\n dateFormat: PropTypes.string.isRequired,\r\n assetLibraryUserPreferences: PropTypes.shape({}).isRequired,\r\n assetLibraryAccountPreferences: PropTypes.shape({}),\r\n logger: PropTypes.shape({}).isRequired,\r\n i18n: PropTypes.shape({}).isRequired,\r\n onImageSelected: PropTypes.func,\r\n onFailedToLoadImages: PropTypes.func,\r\n multiSelectionEnabled: PropTypes.bool,\r\n dataService: PropTypes.shape({\r\n navigateIntoFolder: PropTypes.func,\r\n }).isRequired,\r\n setShowApplyButton: PropTypes.func.isRequired,\r\n onImagesSelected: PropTypes.func.isRequired,\r\n triggerAddImagesRef: PropTypes.shape({}).isRequired,\r\n maxUploadNum: PropTypes.number.isRequired,\r\n setErrors: PropTypes.func.isRequired,\r\n setDisableApplyButton: PropTypes.func.isRequired,\r\n setSelectionInfoText: PropTypes.func.isRequired,\r\n allowedAssetType: PropTypes.string,\r\n enableImageDeleting: PropTypes.bool,\r\n isAssetLibraryAIGCMVPEnabled: PropTypes.bool,\r\n isClickableOutsideFocusTrap: PropTypes.bool,\r\n disabledAssetSources: PropTypes.arrayOf(PropTypes.string),\r\n};\r\n\r\nAssetLibraryImagesView.defaultProps = {\r\n onImageSelected: undefined,\r\n onFailedToLoadImages: undefined,\r\n multiSelectionEnabled: false,\r\n allowedAssetType: null,\r\n enableImageDeleting: false,\r\n assetLibraryAccountPreferences: null,\r\n isAssetLibraryAIGCMVPEnabled: false,\r\n isClickableOutsideFocusTrap: false,\r\n disabledAssetSources: [],\r\n};\r\n","import React, { useCallback, useState, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Promise from 'bluebird';\r\n\r\nimport { Overlay } from '@bingads-webui-react/fabric-control';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { UploadPreview } from '@bingads-webui-campaign-react/upload-file-picker';\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\nimport { AddMediaSourcesContainer } from '@bingads-webui-campaign-react/asset-library-shared-add-media-layout';\r\nimport { validateImageSizeAsync } from '@bingads-webui-campaign/image-experience-utils';\r\nimport { ROOT_FOLDER_ID, FolderAssetType } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport {\r\n AssetLibraryAIGCPromotionBanner,\r\n AssetLibraryNewFeatureBanner,\r\n} from '@bingads-webui-campaign-react/asset-library-components';\r\nimport { constants } from '@bingads-webui-campaign-react/image-experience-model';\r\n\r\nimport { getLandingPageStyles } from './styles';\r\nimport { AssetLibraryImagesView } from './asset-library-images-view';\r\nimport { VIEWS } from '../../view-type';\r\n\r\nconst overlayStyles = {\r\n root: { zIndex: 2 },\r\n};\r\n\r\nexport const AddMediaLandingPage = ({\r\n goToView,\r\n setHideSubtitle,\r\n maxUploadNum,\r\n minSize,\r\n processUploadedImage,\r\n onProcessUploadComplete,\r\n buttonConfig,\r\n assetLibraryConfig,\r\n setErrors,\r\n i18n,\r\n perfMarker,\r\n setShowApplyButton,\r\n setDisableApplyButton,\r\n triggerAddImagesRef,\r\n assetLibraryDataService,\r\n imageExperienceProps,\r\n imageType,\r\n setSelectionInfoText,\r\n allowedAssetType,\r\n isAssetLibraryAIGCMVPEnabled,\r\n logger,\r\n isClickableOutsideFocusTrap,\r\n disabledAssetSources,\r\n eventHandler,\r\n supportImageUpscale,\r\n minUploadSize,\r\n showPromotionBanner,\r\n isAdStudioEnabled,\r\n}) => {\r\n const classes = useDefaultStyles(getLandingPageStyles);\r\n const [uploadPreviewImageArr, setUploadPreviewImageArr] = useState([]);\r\n const [showUploadPreview, setShowUploadPreview] = useState(false);\r\n const [isSpinnerVisible, showSpinner] = useState(false);\r\n\r\n const {\r\n onImageSelected: onImgSelected,\r\n onImagesSelected: onImgsSelected,\r\n ...restConfig\r\n } = assetLibraryConfig;\r\n\r\n const {\r\n isMultimediaAd, imageOption, isBrandKit, isMMAV2Enabled, isDisplayAds, isPortraitImage, isStoreAppProng, isStoreAppSpotLight, isStoreAppTransparentLogo,\r\n } = imageExperienceProps;\r\n\r\n // tie only to enable folders for now, may disable if MT API dependency integration\r\n // causes issues\r\n const enableMultiSelection = true;\r\n\r\n // show spinner when image is selected\r\n const onImageSelected = useCallback((image) => {\r\n if (onImgSelected) {\r\n const imageSelectPerfMarker = perfMarker.createChild('existingImageSelect');\r\n imageSelectPerfMarker.willInit();\r\n\r\n showSpinner(true);\r\n onImgSelected(image).finally((imgObj) => {\r\n let imagePerfMarkerData;\r\n\r\n if (imgObj) {\r\n imagePerfMarkerData = {\r\n imageWidth: imgObj.Width,\r\n imageHeight: imgObj.Height,\r\n };\r\n }\r\n\r\n showSpinner(false);\r\n imageSelectPerfMarker.done(imagePerfMarkerData);\r\n });\r\n }\r\n }, [onImgSelected, perfMarker]);\r\n\r\n const onImagesSelected = useCallback((imageIds) => {\r\n if (onImgsSelected) {\r\n const imageSelectPerfMarker = perfMarker.createChild('existingImageSelect');\r\n imageSelectPerfMarker.willInit();\r\n\r\n showSpinner(true);\r\n onImgsSelected(imageIds).finally(() => {\r\n let imagePerfMarkerData;\r\n\r\n showSpinner(false);\r\n imageSelectPerfMarker.done(imagePerfMarkerData);\r\n });\r\n }\r\n }, [onImgsSelected, perfMarker]);\r\n\r\n const onFailedToLoadAssetLibraryImages = useCallback(() => {\r\n // tdo: show user error message\r\n }, []);\r\n\r\n const uploadMediaConfig = useMemo(() => {\r\n const config = {\r\n maxUploadNum,\r\n minSize,\r\n minUploadSize,\r\n processUploadedMedia: processUploadedImage,\r\n onProcessUploadComplete,\r\n // eslint-disable-next-line arrow-body-style\r\n uploadMedia: ({ imageData, updateCurrentProgress, name }) => {\r\n const isPortraitImageEnabled = isPortraitImage || imageOption === constants.imageOptionKeys.Portrait;\r\n\r\n const validateAsync = supportImageUpscale ? Promise.resolve() : validateImageSizeAsync(\r\n imageData,\r\n imageType,\r\n isMultimediaAd,\r\n imageOption,\r\n isMMAV2Enabled,\r\n false,\r\n isDisplayAds,\r\n isPortraitImageEnabled,\r\n isStoreAppProng,\r\n isStoreAppSpotLight,\r\n isStoreAppTransparentLogo,\r\n false,\r\n false,\r\n isBrandKit\r\n );\r\n\r\n return validateAsync\r\n .then(() => assetLibraryDataService.uploadImage({\r\n imageData,\r\n updateCurrentProgress,\r\n name,\r\n folderId: ROOT_FOLDER_ID,\r\n supportUpscale: supportImageUpscale ? true : undefined,\r\n }))\r\n .then((imageId) => {\r\n if (eventHandler && eventHandler.onUploadImage) {\r\n eventHandler.onUploadImage(imageId);\r\n }\r\n return { imageId };\r\n });\r\n },\r\n };\r\n\r\n return config;\r\n }, [maxUploadNum, minSize, minUploadSize, processUploadedImage, onProcessUploadComplete, isPortraitImage, imageOption, imageType, isMultimediaAd, isMMAV2Enabled, isDisplayAds, isStoreAppProng, isStoreAppSpotLight, isStoreAppTransparentLogo, assetLibraryDataService, supportImageUpscale, eventHandler]);\r\n\r\n const onGenerateImagesClick = useCallback(() => {\r\n logger.logTrace('Generate images button in banner is clicked.');\r\n goToView(VIEWS.AIGCImage);\r\n }, [goToView, logger]);\r\n\r\n return (\r\n
\r\n {\r\n isSpinnerVisible &&\r\n \r\n \r\n \r\n }\r\n {\r\n showUploadPreview ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n {isAssetLibraryAIGCMVPEnabled && showPromotionBanner && (\r\n \r\n )}\r\n {!isAssetLibraryAIGCMVPEnabled && (\r\n \r\n )}\r\n \r\n
\r\n \r\n
\r\n
\r\n )\r\n }\r\n
\r\n );\r\n};\r\n\r\nAddMediaLandingPage.propTypes = {\r\n goToView: PropTypes.func.isRequired,\r\n setHideSubtitle: PropTypes.func.isRequired,\r\n maxUploadNum: PropTypes.number.isRequired,\r\n minSize: PropTypes.arrayOf(PropTypes.number).isRequired,\r\n processUploadedImage: PropTypes.func.isRequired,\r\n onProcessUploadComplete: PropTypes.func.isRequired,\r\n buttonConfig: PropTypes.arrayOf(PropTypes.shape({\r\n label: PropTypes.string,\r\n })).isRequired,\r\n assetLibraryConfig: PropTypes.shape({\r\n aid: PropTypes.string,\r\n cid: PropTypes.string,\r\n dateFormat: PropTypes.string,\r\n timeZone: PropTypes.number,\r\n oDataConfig: PropTypes.shape({}),\r\n preferencesService: PropTypes.shape({}),\r\n onImageSelected: PropTypes.func,\r\n onImagesSelected: PropTypes.func,\r\n }).isRequired,\r\n showPromotionBanner: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n setErrors: PropTypes.func.isRequired,\r\n perfMarker: PropTypes.shape({\r\n willFetchFile: PropTypes.func.isRequired,\r\n willInit: PropTypes.func.isRequired,\r\n willFetchData: PropTypes.func.isRequired,\r\n willRender: PropTypes.func.isRequired,\r\n done: PropTypes.func.isRequired,\r\n createChild: PropTypes.func.isRequired,\r\n }).isRequired,\r\n setShowApplyButton: PropTypes.func.isRequired,\r\n triggerAddImagesRef: PropTypes.shape({}).isRequired,\r\n setDisableApplyButton: PropTypes.func.isRequired,\r\n assetLibraryDataService: PropTypes.shape({}).isRequired,\r\n imageExperienceProps: PropTypes.shape({}).isRequired,\r\n imageType: PropTypes.string.isRequired,\r\n setSelectionInfoText: PropTypes.func.isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n allowedAssetType: PropTypes.string,\r\n isAssetLibraryAIGCMVPEnabled: PropTypes.bool,\r\n isClickableOutsideFocusTrap: PropTypes.bool,\r\n disabledAssetSources: PropTypes.arrayOf(PropTypes.string),\r\n eventHandler: PropTypes.shape({}),\r\n supportImageUpscale: PropTypes.bool,\r\n minUploadSize: PropTypes.arrayOf(PropTypes.number),\r\n};\r\n\r\nAddMediaLandingPage.defaultProps = {\r\n allowedAssetType: FolderAssetType.Image,\r\n isAssetLibraryAIGCMVPEnabled: false,\r\n isClickableOutsideFocusTrap: false,\r\n disabledAssetSources: [],\r\n eventHandler: null,\r\n showPromotionBanner: true,\r\n supportImageUpscale: false,\r\n minUploadSize: [],\r\n};\r\n","import React, { useMemo, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport _ from 'underscore';\r\n\r\nimport { FolderAssetType } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { AddMediaLandingPage } from './landing-page-content';\r\n\r\nconst ManagedLandingView = ({\r\n addMediaConfig,\r\n customMediaSourceConfig,\r\n maxUploadNum,\r\n minSize,\r\n processUploadedImage,\r\n onProcessUploadComplete,\r\n goToView,\r\n setHideSubtitle,\r\n assetLibraryConfig,\r\n setErrors,\r\n i18n,\r\n perfMarker,\r\n setShowApplyButton,\r\n setDisableApplyButton,\r\n triggerAddImagesRef,\r\n assetLibraryDataService,\r\n imageExperienceProps,\r\n imageType,\r\n setSelectionInfoText,\r\n allowedAssetType,\r\n isAssetLibraryAIGCMVPEnabled,\r\n logger,\r\n isClickableOutsideFocusTrap,\r\n preDefinedAssetSources,\r\n disabledAssetSources,\r\n eventHandler,\r\n supportImageUpscale,\r\n minUploadSize,\r\n showPromotionBanner,\r\n isAdStudioEnabled,\r\n}) => {\r\n const finalConfig = useMemo(\r\n () => {\r\n if (_.isFunction(customMediaSourceConfig)) {\r\n return customMediaSourceConfig({ addMediaConfig });\r\n }\r\n\r\n return customMediaSourceConfig || addMediaConfig;\r\n },\r\n [addMediaConfig, customMediaSourceConfig]\r\n );\r\n const landingPageButtonConfig =\r\n _.compact(_.pluck(_.values(finalConfig), 'buttonConfig'));\r\n\r\n useEffect(() => {\r\n // set default state\r\n setShowApplyButton(false);\r\n setDisableApplyButton(true);\r\n setErrors([]);\r\n }, [setDisableApplyButton, setErrors, setShowApplyButton]);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nManagedLandingView.propTypes = {\r\n addMediaConfig: PropTypes.shape({}).isRequired,\r\n maxUploadNum: PropTypes.number.isRequired,\r\n minSize: PropTypes.arrayOf(PropTypes.number).isRequired,\r\n assetLibraryConfig: PropTypes.shape({}).isRequired,\r\n i18n: PropTypes.shape({}).isRequired,\r\n processUploadedImage: PropTypes.func.isRequired,\r\n onProcessUploadComplete: PropTypes.func,\r\n perfMarker: PropTypes.shape({\r\n willFetchFile: PropTypes.func.isRequired,\r\n willInit: PropTypes.func.isRequired,\r\n willFetchData: PropTypes.func.isRequired,\r\n willRender: PropTypes.func.isRequired,\r\n done: PropTypes.func.isRequired,\r\n createChild: PropTypes.func.isRequired,\r\n }).isRequired,\r\n showPromotionBanner: PropTypes.bool,\r\n customMediaSourceConfig: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({})]),\r\n goToView: PropTypes.func.isRequired,\r\n setHideSubtitle: PropTypes.func.isRequired,\r\n setErrors: PropTypes.func,\r\n setShowApplyButton: PropTypes.func.isRequired,\r\n setDisableApplyButton: PropTypes.func.isRequired,\r\n triggerAddImagesRef: PropTypes.shape({}).isRequired,\r\n assetLibraryDataService: PropTypes.shape({}).isRequired,\r\n imageExperienceProps: PropTypes.shape({}).isRequired,\r\n imageType: PropTypes.string,\r\n setSelectionInfoText: PropTypes.func.isRequired,\r\n allowedAssetType: PropTypes.string,\r\n isAssetLibraryAIGCMVPEnabled: PropTypes.bool,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n isClickableOutsideFocusTrap: PropTypes.bool,\r\n preDefinedAssetSources: PropTypes.arrayOf(PropTypes.shape({})),\r\n disabledAssetSources: PropTypes.arrayOf(PropTypes.string),\r\n eventHandler: PropTypes.shape({}),\r\n supportImageUpscale: PropTypes.bool,\r\n minUploadSize: PropTypes.arrayOf(PropTypes.number),\r\n};\r\n\r\nManagedLandingView.defaultProps = {\r\n customMediaSourceConfig: null,\r\n setErrors: _.noop,\r\n imageType: null,\r\n allowedAssetType: FolderAssetType.Image,\r\n isAssetLibraryAIGCMVPEnabled: false,\r\n onProcessUploadComplete: _.noop,\r\n isClickableOutsideFocusTrap: false,\r\n preDefinedAssetSources: [],\r\n disabledAssetSources: [],\r\n eventHandler: null,\r\n supportImageUpscale: false,\r\n showPromotionBanner: true,\r\n minUploadSize: [],\r\n};\r\n\r\nexport const getLandingPageConfig = (isAssetLibraryAIGCMVPEnabled, isLiteLandingPageEnabled, isAdStudioEnabled, showPromotionBanner, panelTitle, panelSubtitle) => {\r\n let title = _TL_('Asset library');\r\n let subTitle = '';\r\n if (panelTitle) {\r\n title = panelTitle;\r\n } else if (isLiteLandingPageEnabled) {\r\n title = _TL_('Add image');\r\n } else if (isAdStudioEnabled) {\r\n title = _TL_('Ads Studio');\r\n }\r\n\r\n if (panelSubtitle) {\r\n subTitle = panelSubtitle;\r\n } else if (isLiteLandingPageEnabled) {\r\n subTitle = _TL_('Choose an image from our recommendation, or browse to add a new one.');\r\n }\r\n\r\n return ({\r\n title,\r\n onRenderSubtitle: ({\r\n subtitleClass,\r\n i18n,\r\n aid,\r\n cid,\r\n onAssetLibraryLinkClick,\r\n }) => ( // eslint-disable-line react/prop-types\r\n
\r\n {subTitle ? (\r\n i18n.getString(subTitle)\r\n ) : (\r\n \r\n {isAssetLibraryAIGCMVPEnabled\r\n ? i18n.getString(_TL_('You can create assets, choose assets you\\'ve already uploaded to '))\r\n : i18n.getString(_TL_('Choose assets you\\'ve already uploaded to '))}\r\n { onAssetLibraryLinkClick(isAdStudioEnabled); } : _.noop}\r\n >\r\n {isAdStudioEnabled ? i18n.getString(_TL_('Ads Studio')) : i18n.getString(_TL_('Asset Library'))}\r\n \r\n {i18n.getString(_TL_(' or browse to add a new file.'))}\r\n \r\n )}\r\n
\r\n ),\r\n showBackButton: false,\r\n onRenderContent: props => (\r\n \r\n ),\r\n });\r\n};\r\n","export const getFilterStyle = () => ({\r\n popoverContainer: {\r\n position: 'relative',\r\n },\r\n});\r\n\r\nexport const getSearchFieldStyle = () => ({\r\n container: {\r\n paddingTop: 22,\r\n display: 'flex',\r\n paddingBottom: 15,\r\n },\r\n});\r\n\r\nexport const getRootStyles = () => ({\r\n investImageRoot: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n },\r\n});\r\n","import React, {\r\n useCallback,\r\n useContext,\r\n useEffect,\r\n} from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { map, extend } from 'underscore';\r\nimport classnames from 'classnames';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport {\r\n IconButton,\r\n TextField,\r\n} from '@bingads-webui-react/fabric-control';\r\nimport { FluentImagePicker } from '@bingads-webui-campaign-react/fluent-image-picker';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\n\r\nimport { getSearchFieldStyle, getRootStyles } from './styles/index';\r\n\r\nconst PAGE_SIZE = 20;\r\nconst ASSET_TYPE_IMAGES = 1;\r\n\r\nexport const InvestImageView = ({\r\n getInvestImages,\r\n onChangeImageIdSelection,\r\n enableMultipleSelection,\r\n imageCellWidth,\r\n imageCellHeight,\r\n images,\r\n setImages,\r\n hasMore,\r\n setHasMore,\r\n skip,\r\n setSkip,\r\n isLoadingFirstPage,\r\n setIsLoadingFirstPage,\r\n searchQuery,\r\n setSearchQuery,\r\n}) => {\r\n const i18n = useContext(I18nContext);\r\n const searchFieldClasses = useDefaultStyles(getSearchFieldStyle);\r\n const { investImageRoot } = useDefaultStyles(getRootStyles);\r\n\r\n const loadImages = useCallback(({ creativeId = searchQuery, $skip = skip, $query = {} }) => {\r\n if ($skip === 0) {\r\n setIsLoadingFirstPage(true);\r\n }\r\n const queryParams = {\r\n appName: 'CampaignUI',\r\n assetTypeId: ASSET_TYPE_IMAGES,\r\n $skip,\r\n $top: PAGE_SIZE,\r\n };\r\n if (creativeId) {\r\n queryParams.creativeId = creativeId;\r\n }\r\n getInvestImages({\r\n customQueries: extend(queryParams, $query),\r\n }).then((data) => {\r\n setHasMore(data['@odata.count'] > data.value.length + $skip);\r\n setImages([\r\n ...($skip > 0 ? images : []),\r\n ...map(data.value, (item) => {\r\n const image = {\r\n thumbnailSrc: item.Url,\r\n id: item.XandrAssetId,\r\n imageSrc: item.Url,\r\n isSelected: false,\r\n };\r\n\r\n return image;\r\n }),\r\n ]);\r\n\r\n if ($skip === 0) {\r\n setIsLoadingFirstPage(false);\r\n }\r\n });\r\n }, [\r\n images, setImages, searchQuery, skip, setHasMore, setIsLoadingFirstPage, getInvestImages,\r\n ]);\r\n\r\n const loadNextPage = useCallback(() => {\r\n if (hasMore) {\r\n const newSkip = skip + PAGE_SIZE;\r\n setSkip(newSkip);\r\n loadImages({ $skip: newSkip });\r\n }\r\n }, [skip, setSkip, loadImages, hasMore]);\r\n\r\n const onSelectImage = useCallback((index) => {\r\n const newArr = [...images];\r\n const selectedImage = newArr[index];\r\n\r\n const selectionChange = { selectedImageId: selectedImage.id };\r\n\r\n if (enableMultipleSelection) {\r\n const newSelectionState = !selectedImage.isSelected;\r\n\r\n newArr[index].isSelected = newSelectionState;\r\n selectionChange.selectionState = newSelectionState;\r\n }\r\n\r\n setImages(newArr);\r\n onChangeImageIdSelection(selectionChange);\r\n }, [images, setImages, onChangeImageIdSelection, enableMultipleSelection]);\r\n\r\n const onKeyDown = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n setSkip(0);\r\n loadImages({\r\n $skip: 0,\r\n });\r\n }\r\n }, [setSkip, loadImages]);\r\n\r\n\r\n useEffect(() => {\r\n setSkip(0);\r\n loadImages({ $skip: 0 });\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n
\r\n
\r\n setSearchQuery(newValue)}\r\n onKeyDown={onKeyDown}\r\n placeholder={i18n.getString(_TL_('Search by Invest creative Id'))}\r\n styles={{\r\n root: {\r\n width: '50%',\r\n display: 'inline-block',\r\n },\r\n }}\r\n />\r\n {\r\n setSkip(0);\r\n loadImages({\r\n $skip: 0,\r\n });\r\n }}\r\n />\r\n
\r\n {\r\n isLoadingFirstPage ? :\r\n \r\n }\r\n
\r\n );\r\n};\r\n\r\nInvestImageView.propTypes = {\r\n getInvestImages: PropTypes.func.isRequired,\r\n onChangeImageIdSelection: PropTypes.func.isRequired,\r\n enableMultipleSelection: PropTypes.bool,\r\n imageCellWidth: PropTypes.number,\r\n imageCellHeight: PropTypes.number,\r\n images: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\r\n setImages: PropTypes.func.isRequired,\r\n hasMore: PropTypes.bool.isRequired,\r\n setHasMore: PropTypes.func.isRequired,\r\n skip: PropTypes.number.isRequired,\r\n setSkip: PropTypes.func.isRequired,\r\n isLoadingFirstPage: PropTypes.bool.isRequired,\r\n setIsLoadingFirstPage: PropTypes.func.isRequired,\r\n searchQuery: PropTypes.string.isRequired,\r\n setSearchQuery: PropTypes.func.isRequired,\r\n};\r\n\r\nInvestImageView.defaultProps = {\r\n enableMultipleSelection: true,\r\n imageCellWidth: undefined,\r\n imageCellHeight: undefined,\r\n};\r\n","import Promise from 'bluebird';\r\nimport _ from 'underscore';\r\nimport React, { useCallback, useEffect, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { InvestImageView } from '@bingads-webui-campaign-react/add-invest-images-view';\r\nimport { constants } from '@bingads-webui-campaign-react/image-experience-model';\r\nimport { MaxAddAssetJobInParell, ROOT_FOLDER_ID } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { VIEWS } from '../view-type';\r\n\r\nconst ManagedInvestImageView = ({\r\n investImageConfig,\r\n setShowBlocker,\r\n perfMarker,\r\n assetLibraryConfig,\r\n assetLibraryDataService,\r\n logger,\r\n maxUploadNum,\r\n setShowApplyButton,\r\n triggerAddImagesRef,\r\n setSelectionInfoText,\r\n setDisableApplyButton,\r\n setErrors,\r\n i18n,\r\n}) => {\r\n const {\r\n onImageSelected,\r\n onImagesSelected,\r\n onImageAddError,\r\n enableInvestMultipleSelection: enableMultipleSelection,\r\n } = assetLibraryConfig;\r\n\r\n const onChangeImageIdSelection = useCallback((args) => {\r\n const investImagePerfMarker = perfMarker.createChild('investImagePicker');\r\n investImagePerfMarker.willInit();\r\n\r\n const selectInvestImage = assetLibraryDataService.uploadInvestImage({\r\n investImageId: args.selectedImageId,\r\n imageSrc: args.imageSrc,\r\n folderId: ROOT_FOLDER_ID,\r\n })\r\n .then(value => onImageSelected({ id: value }, constants.imageSources.Invest))\r\n .catch(e => onImageAddError(e));\r\n\r\n setShowBlocker(true);\r\n selectInvestImage\r\n .tap(() => {\r\n const { selectedImageId: imageId } = args || {};\r\n logger.logTrace('Ad creation flow - selected invest image', { imageId });\r\n })\r\n .finally(() => {\r\n setShowBlocker(false);\r\n investImagePerfMarker.done();\r\n });\r\n }, [perfMarker, assetLibraryDataService, setShowBlocker, onImageSelected, onImageAddError, logger]);\r\n\r\n const [images, setImages] = useState([]);\r\n const [hasMore, setHasMore] = useState(true);\r\n const [skip, setSkip] = useState(0);\r\n const [isLoadingFirstPage, setIsLoadingFirstPage] = useState(false);\r\n const [searchQuery, setSearchQuery] = useState('');\r\n\r\n useEffect(() => {\r\n // init the state for multiple selection\r\n if (enableMultipleSelection) {\r\n setShowApplyButton(true);\r\n setDisableApplyButton(true);\r\n setErrors([]);\r\n setSelectionInfoText(i18n.getString(_TL_('0 of {{limitNumber}} images selected'), { limitNumber: maxUploadNum }));\r\n }\r\n }, [enableMultipleSelection, i18n, maxUploadNum, setDisableApplyButton, setErrors, setSelectionInfoText, setShowApplyButton]);\r\n\r\n useEffect(() => {\r\n const selectedImages = _.filter(images, image => image && image.isSelected) || [];\r\n if (selectedImages.length > maxUploadNum) {\r\n setErrors([i18n.getString(_TL_('You\\'ve exceeded the max. number of assets you can add at a time ({{limitNumber}}). Please try again.'), { limitNumber: maxUploadNum })]);\r\n setDisableApplyButton(true);\r\n } else if (selectedImages.length > 0) {\r\n setErrors([]);\r\n setDisableApplyButton(false);\r\n } else {\r\n setErrors([]);\r\n setDisableApplyButton(true);\r\n }\r\n\r\n const singularImageString = _TL_('{{selectedNumber}} of {{limitNumber}} image selected');\r\n const pluralImagesString = _TL_('{{selectedNumber}} of {{limitNumber}} images selected');\r\n const stringToUse = maxUploadNum > 1 ? pluralImagesString : singularImageString;\r\n setSelectionInfoText(i18n.getString(stringToUse, { selectedNumber: selectedImages.length, limitNumber: maxUploadNum }));\r\n }, [enableMultipleSelection, i18n, images, maxUploadNum, setDisableApplyButton, setErrors, setSelectionInfoText]);\r\n\r\n // only for multiple selection mode\r\n const onApplyButtonClick = useCallback(() => {\r\n const selectedImages = _.filter(images, image => image && image.isSelected) || [];\r\n\r\n setShowBlocker(true);\r\n\r\n const investImagePerfMarker = perfMarker.createChild('investImagePicker');\r\n investImagePerfMarker.willInit();\r\n\r\n Promise.map(\r\n selectedImages,\r\n (img) => {\r\n const { id, imageSrc } = img || {};\r\n return assetLibraryDataService.uploadInvestImage({ investImageId: id, imageSrc, folderId: ROOT_FOLDER_ID });\r\n },\r\n { concurrency: MaxAddAssetJobInParell }\r\n )\r\n .then((imageIds) => {\r\n logger.logTrace('Ad creation flow - selected invest images', { imageIds });\r\n return onImagesSelected(imageIds, constants.imageSources.Invest);\r\n })\r\n .catch((err) => {\r\n onImageAddError(err);\r\n })\r\n .finally(() => {\r\n setShowBlocker(false);\r\n investImagePerfMarker.done();\r\n });\r\n }, [assetLibraryDataService, images, logger, onImageAddError, onImagesSelected, perfMarker, setShowBlocker]);\r\n\r\n // listen to the apply button click for multiple selection\r\n // eslint-disable-next-line no-param-reassign\r\n triggerAddImagesRef.current = enableMultipleSelection ? onApplyButtonClick : undefined;\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nManagedInvestImageView.propTypes = {\r\n investImageConfig: PropTypes.shape({\r\n getInvestImages: PropTypes.func,\r\n }),\r\n setShowBlocker: PropTypes.func,\r\n perfMarker: PropTypes.shape({\r\n willFetchFile: PropTypes.func.isRequired,\r\n willInit: PropTypes.func.isRequired,\r\n willFetchData: PropTypes.func.isRequired,\r\n willRender: PropTypes.func.isRequired,\r\n done: PropTypes.func.isRequired,\r\n createChild: PropTypes.func.isRequired,\r\n }).isRequired,\r\n assetLibraryDataService: PropTypes.shape({\r\n uploadInvestImage: PropTypes.func,\r\n }).isRequired,\r\n assetLibraryConfig: PropTypes.shape({\r\n onImageSelected: PropTypes.func,\r\n onImagesSelected: PropTypes.func,\r\n onImageAddError: PropTypes.func,\r\n enableInvestMultipleSelection: PropTypes.bool,\r\n }).isRequired,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }).isRequired,\r\n triggerAddImagesRef: PropTypes.shape({\r\n current: PropTypes.func,\r\n }).isRequired,\r\n setShowApplyButton: PropTypes.func,\r\n setSelectionInfoText: PropTypes.func,\r\n setDisableApplyButton: PropTypes.func,\r\n setErrors: PropTypes.func,\r\n maxUploadNum: PropTypes.number,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nManagedInvestImageView.defaultProps = {\r\n investImageConfig: {\r\n getInvestImages: _.noop,\r\n },\r\n setShowBlocker: _.noop,\r\n setShowApplyButton: _.noop,\r\n setDisableApplyButton: _.noop,\r\n setSelectionInfoText: _.noop,\r\n setErrors: _.noop,\r\n maxUploadNum: 16,\r\n};\r\n\r\nexport const investImageSourceConfig = {\r\n title: _TL_('Images from Microsft Invest'),\r\n showBackButton: true,\r\n onRenderContent: props => (\r\n \r\n ),\r\n buttonConfig: {\r\n label: _TL_('Microsoft Invest'),\r\n view: VIEWS.InvestImage,\r\n iconName: 'ShareMultipleRegular',\r\n buttonLocator: 'invest-images',\r\n },\r\n};\r\n","import _ from 'underscore';\r\nimport { websiteImageSourceConfig } from './website-images-view';\r\nimport { stockImageSourceConfig } from './stock-images-view';\r\nimport { socialImageSourceConfig } from './social-images-view';\r\nimport { aigcImageSourceConfig } from './ai-generate-images-view';\r\nimport { getLandingPageConfig } from './landing-view';\r\nimport { investImageSourceConfig } from './invest-images-view';\r\n\r\nimport { VIEWS } from './view-type';\r\n\r\nexport { VIEWS };\r\n\r\nexport const getAddImageConfig = ({\r\n isAssetLibraryAIGCMVPEnabled,\r\n isLiteLandingPageEnabled,\r\n hideStockImage,\r\n isAdStudioEnabled,\r\n showPromotionBanner,\r\n panelTitle,\r\n panelSubtitle,\r\n isXandrIntegrationEnabled,\r\n}) => {\r\n let config = {\r\n [VIEWS.WebsiteImage]: websiteImageSourceConfig,\r\n [VIEWS.StockImage]: stockImageSourceConfig,\r\n [VIEWS.SocialMedia]: socialImageSourceConfig,\r\n [VIEWS.LandingPage]: getLandingPageConfig(isAssetLibraryAIGCMVPEnabled, isLiteLandingPageEnabled, isAdStudioEnabled, showPromotionBanner, panelTitle, panelSubtitle),\r\n };\r\n if (isAssetLibraryAIGCMVPEnabled) {\r\n config = {\r\n [VIEWS.AIGCImage]: aigcImageSourceConfig,\r\n ...config,\r\n };\r\n }\r\n if (hideStockImage) {\r\n config = _.omit(config, VIEWS.StockImage);\r\n }\r\n\r\n if (isXandrIntegrationEnabled) {\r\n config = {\r\n ...config,\r\n [VIEWS.InvestImage]: investImageSourceConfig,\r\n };\r\n }\r\n\r\n return config;\r\n};\r\n\r\n","import React, { useEffect, useMemo, useState } from 'react';\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport { isCopilotRegionRestricted } from '@bingads-webui-react/copilot-utils';\r\nimport { AddMediaPanel } from '@bingads-webui-campaign-react/asset-library-shared-add-media-layout';\r\nimport { setClarityTag } from '@bingads-webui-universal/clarity';\r\n\r\nimport {\r\n withAssetLibraryServicesLoaded\r\n} from '@bingads-webui-campaign-react/asset-library-services';\r\n\r\nimport { FolderAssetType, removeAssetLibrarySurveyTriggerFlag, AssetLibrarySurveyTriggerFlag } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { AssetLibraryCreativeEditor } from '@bingads-webui-campaign-react/asset-library-creative-editor';\r\n\r\nimport { getAddImageConfig, VIEWS } from './view-config';\r\n\r\nconst DEFAULT_VIEW = VIEWS.LandingPage;\r\n\r\nconst AddImageCrudAdComponentInternal = (props) => {\r\n const {\r\n dataService,\r\n ianaTimeZone,\r\n assetLibraryUserPreferences,\r\n assetLibraryAccountPreferences,\r\n logger,\r\n assetLibraryConfig,\r\n isAssetLibraryAIGCMVPEnabled,\r\n isLiteLandingPageEnabled,\r\n isStockImageEnabled,\r\n isAdStudioEnabled,\r\n creativeEditorProps,\r\n eventHandler,\r\n showPromotionBanner,\r\n panelTitle,\r\n panelSubtitle,\r\n isXandrIntegrationEnabled,\r\n ...rest\r\n } = props;\r\n\r\n const [hasLoggedEnterAssetLibrary, setHasLoggedEnterAssetLibrary] = useState(false);\r\n\r\n useEffect(() => () => {\r\n removeAssetLibrarySurveyTriggerFlag(AssetLibrarySurveyTriggerFlag.Picker);\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (isAssetLibraryAIGCMVPEnabled) {\r\n setClarityTag({ AssetLibraryCopilot: 'true' });\r\n }\r\n }, [isAssetLibraryAIGCMVPEnabled]);\r\n\r\n useEffect(() => {\r\n if (rest.isOpen && !hasLoggedEnterAssetLibrary && eventHandler && _.isFunction(eventHandler.onEnterAssetLibrary)) {\r\n eventHandler.onEnterAssetLibrary();\r\n setHasLoggedEnterAssetLibrary(true);\r\n }\r\n }, [rest.isOpen, eventHandler, hasLoggedEnterAssetLibrary]);\r\n\r\n assetLibraryConfig.assetLibraryUserPreferences = assetLibraryUserPreferences;\r\n assetLibraryConfig.assetLibraryAccountPreferences = assetLibraryAccountPreferences;\r\n assetLibraryConfig.logger = logger;\r\n assetLibraryConfig.ianaTimeZone = ianaTimeZone;\r\n\r\n return (\r\n rest.isOpen && creativeEditorProps ?\r\n :\r\n \r\n );\r\n};\r\n\r\nAddImageCrudAdComponentInternal.propTypes = {\r\n dataService: PropTypes.shape({}).isRequired,\r\n creativeEditorProps: PropTypes.shape({}),\r\n eventHandler: PropTypes.shape({\r\n onEnterAssetLibrary: PropTypes.func,\r\n }),\r\n panelTitle: PropTypes.string,\r\n panelSubtitle: PropTypes.string,\r\n showPromotionBanner: PropTypes.bool,\r\n isStockImageEnabled: PropTypes.bool,\r\n isXandrIntegrationEnabled: PropTypes.bool,\r\n};\r\n\r\nAddImageCrudAdComponentInternal.defaultProps = {\r\n creativeEditorProps: null,\r\n eventHandler: null,\r\n panelTitle: '',\r\n panelSubtitle: '',\r\n showPromotionBanner: true,\r\n isStockImageEnabled: true,\r\n isXandrIntegrationEnabled: false,\r\n};\r\n\r\nconst AddImageCrudAdComponentInternalWithServices = withAssetLibraryServicesLoaded(AddImageCrudAdComponentInternal, { loggerTag: 'Asset Library Tab' });\r\nexport const AddImageCrudAdComponent = (props) => {\r\n const {\r\n assetLibraryConfig, i18n, permissions, isAADUser, isLiteLandingPageEnabled, isAssetLibraryAIGCMVPEnabled, eventHandler, serverContext, ...rest\r\n } = props;\r\n const [isAssetLibraryAIGCEnabled, setIsAssetLibraryAIGCEnabled] = useState(false);\r\n const [copilotRegionRestrictedCalled, setCopilotRegionRestrictedCalled] = useState(false);\r\n\r\n // todo: don't pilot AAD user for now, remove this check after the feature is GAed\r\n const isAssetLibraryAIGCEnabledInner = isAssetLibraryAIGCMVPEnabled === undefined ? !isAADUser : isAssetLibraryAIGCMVPEnabled;\r\n\r\n const isAdStudioEnabled = useMemo(() => _.get(permissions, ['dynamic', 'AdsStudioMVP'], false), [permissions]);\r\n const isXandrIntegrationEnabled = useMemo(() => _.get(permissions, ['dynamic', 'XandrIntegrationEnabled'], false), [permissions]);\r\n\r\n const { cid, aid } = assetLibraryConfig;\r\n\r\n useEffect(() => {\r\n if (copilotRegionRestrictedCalled && !isAssetLibraryAIGCEnabledInner) {\r\n return;\r\n }\r\n isCopilotRegionRestricted({\r\n feature: 'AssetLibrary',\r\n permissions,\r\n serverContext,\r\n }).then((isRestricted) => {\r\n if (!isRestricted) {\r\n setIsAssetLibraryAIGCEnabled(isAssetLibraryAIGCEnabledInner);\r\n }\r\n setCopilotRegionRestrictedCalled(true);\r\n });\r\n }, [aid, cid, copilotRegionRestrictedCalled, isAssetLibraryAIGCEnabledInner, permissions, serverContext]);\r\n\r\n const {\r\n timeZone,\r\n preferencesService,\r\n activityLogger,\r\n oDataConfig,\r\n dateFormat,\r\n } = assetLibraryConfig;\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nAddImageCrudAdComponent.propTypes = {\r\n assetLibraryConfig: PropTypes.shape({\r\n timeZone: PropTypes.number,\r\n preferencesService: PropTypes.shape({}),\r\n activityLogger: PropTypes.shape({}),\r\n oDataConfig: PropTypes.shape({}),\r\n dateFormat: PropTypes.string,\r\n }).isRequired,\r\n i18n: PropTypes.shape({}).isRequired,\r\n permissions: PropTypes.shape({}).isRequired,\r\n eventHandler: PropTypes.shape({\r\n onEnterAssetLibrary: PropTypes.func,\r\n }),\r\n isAADUser: PropTypes.bool,\r\n};\r\n\r\nAddImageCrudAdComponent.defaultProps = {\r\n eventHandler: null,\r\n isAADUser: false,\r\n};\r\n","export const stockImageFilterLegacyI18nMap = {\r\n ShutterStock_Filter_People_Model_Released: _TL_('People'),\r\n ShutterStock_Filter_People_Model_Released_True: _TL_('With a signed model release'),\r\n ShutterStock_Filter_People_Model_Released_False: _TL_('Without a signed model release'),\r\n ShutterStock_Filter_People_Ethnicity: _TL_('Ethnicity'),\r\n ShutterStock_Filter_People_Ethnicity_African: _TL_('African'),\r\n ShutterStock_Filter_People_Ethnicity_African_American: _TL_('African American'),\r\n ShutterStock_Filter_People_Ethnicity_Black: _TL_('Black'),\r\n ShutterStock_Filter_People_Ethnicity_Brazilian: _TL_('Brazilian'),\r\n ShutterStock_Filter_People_Ethnicity_Chinese: _TL_('Chinese'),\r\n ShutterStock_Filter_People_Ethnicity_Caucasian: _TL_('Caucasian'),\r\n ShutterStock_Filter_People_Ethnicity_East_Asian: _TL_('East Asian'),\r\n ShutterStock_Filter_People_Ethnicity_Hispanic: _TL_('Hispanic'),\r\n ShutterStock_Filter_People_Ethnicity_Japanese: _TL_('Japanese'),\r\n ShutterStock_Filter_People_Ethnicity_Middle_Eastern: _TL_('Middle Eastern'),\r\n ShutterStock_Filter_People_Ethnicity_Native_American: _TL_('Native American'),\r\n ShutterStock_Filter_People_Ethnicity_Pacific_Islander: _TL_('Pacific Islander'),\r\n ShutterStock_Filter_People_Ethnicity_South_Asian: _TL_('South Asian'),\r\n ShutterStock_Filter_People_Ethnicity_Southeast_Asian: _TL_('Southeast Asian'),\r\n ShutterStock_Filter_People_Ethnicity_Other: _TL_('Other'),\r\n ShutterStock_Filter_People_Gender: _TL_('Gender'),\r\n ShutterStock_Filter_People_Male: _TL_('Male'),\r\n ShutterStock_Filter_People_Female: _TL_('Female'),\r\n ShutterStock_Filter_People_Both: _TL_('Both'),\r\n ShutterStock_Filter_People_Age: _TL_('Age'),\r\n ShutterStock_Filter_People_Age_Infants: _TL_('Infants'),\r\n ShutterStock_Filter_People_Age_Children: _TL_('Children'),\r\n ShutterStock_Filter_People_Age_Teenagers: _TL_('Teenagers'),\r\n ShutterStock_Filter_People_Age_20s: _TL_('20s'),\r\n ShutterStock_Filter_People_Age_30s: _TL_('30s'),\r\n ShutterStock_Filter_People_Age_40s: _TL_('40s'),\r\n ShutterStock_Filter_People_Age_50s: _TL_('50s'),\r\n ShutterStock_Filter_People_Age_60s: _TL_('60s'),\r\n ShutterStock_Filter_People_Age_Older: _TL_('Older'),\r\n ShutterStock_Filter_People_Number: _TL_('Number of people'),\r\n ShutterStock_Filter_Filter: _TL_('Filter'),\r\n ShutterStock_Filter_Reset: _TL_('Reset'),\r\n ShutterStock_Filter_Apply: _TL_('Apply'),\r\n Filter_PredicateList_New: _TL_('Add another'),\r\n Filter_Validation_Common_Required: _TL_('Required field'),\r\n Filter_Validation_Common_Number: _TL_('Only numeric values allowed'),\r\n Filter_Validation_Common_Number_Range: _TL_('Numeric value out of allowed range'),\r\n Filter_Validation_Common_Integer: _TL_('Only integer values allowed'),\r\n Filter_Validation_EnumSelectionRequired: _TL_('Select at least one option'),\r\n Filter_Validation_Common_Date: _TL_('Incorrect date format'),\r\n ShutterStock_Filter_Operator_Eq: _TL_('is'),\r\n ShutterStock_Filter_People_Age_Children_X: _TL_('Children ', { comment: 'kids, not adults; This is one of people age options on UI; please note there is a space trail' }),\r\n ShutterStock_Filter_People_Age_20s_X: _TL_('20s ', { comment: 'a person about 20 years old; This is one of people age options on UI; please note there is a space trail' }),\r\n ShutterStock_Filter_People_Age_30s_X: _TL_('30s ', { comment: 'a person about 30 years old; This is one of people age options on UI; please note there is a space trail' }),\r\n ShutterStock_Filter_People_Age_40s_X: _TL_('40s ', { comment: 'a person about 40 years old; This is one of people age options on UI; please note there is a space trail' }),\r\n ShutterStock_Filter_People_Age_50s_X: _TL_('50s ', { comment: 'a person about 50 years old; This is one of people age options on UI; please note there is a space trail' }),\r\n ShutterStock_Filter_People_Age_60s_X: _TL_('60s ', { comment: 'a person about 60 years old; This is one of people age options on UI; please note there is a space trail' }),\r\n ShutterStock_Filter_People_Age_Older_X: _TL_('Older ', { comment: 'a more older person, maybe > 60 years old; This is one of people age options on UI; please note there is a space trail' }),\r\n};\r\n","export const getFilterStyle = () => ({\r\n popoverContainer: {\r\n position: 'relative',\r\n },\r\n});\r\n\r\nexport const getSearchFieldStyle = () => ({\r\n container: {\r\n paddingTop: 22,\r\n display: 'flex',\r\n },\r\n});\r\n\r\nexport const getRootStyles = () => ({\r\n stockImageRoot: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n },\r\n});\r\n","import React, {\r\n useState,\r\n useCallback,\r\n useContext,\r\n useMemo,\r\n} from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { extend, map } from 'underscore';\r\nimport classnames from 'classnames';\r\n\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport {\r\n IconButton,\r\n TextField,\r\n MessageBar,\r\n MessageBarType,\r\n} from '@bingads-webui-react/fabric-control';\r\nimport { buildLegacyI18n } from '@bingads-webui/build-legacy-i18n';\r\n\r\nimport { FluentImagePicker } from '@bingads-webui-campaign-react/fluent-image-picker';\r\nimport { StockImageFilter } from '@bingads-webui-campaign-react/stock-image-filter';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\nimport { LearnMoreLink } from '@bingads-webui-campaign-react/help';\r\n\r\nimport { stockImageFilterLegacyI18nMap } from './legacy-i18n-map';\r\nimport { getFilterStyle, getSearchFieldStyle, getRootStyles } from './styles/index';\r\n\r\nconst PAGE_SIZE = 20;\r\n\r\nexport const StockImageView = ({\r\n getStockImages,\r\n onChangeImageIdSelection,\r\n enableMultipleSelection,\r\n imageCellWidth,\r\n imageCellHeight,\r\n images,\r\n setImages,\r\n hasMore,\r\n setHasMore,\r\n skip,\r\n setSkip,\r\n serializedFilterForComp,\r\n setSerializedFilterForComp,\r\n isLoadingFirstPage,\r\n setIsLoadingFirstPage,\r\n searchQuery,\r\n setSearchQuery,\r\n filter,\r\n setFilter,\r\n}) => {\r\n const i18n = useContext(I18nContext);\r\n const { popoverContainer } = useDefaultStyles(getFilterStyle);\r\n const searchFieldClasses = useDefaultStyles(getSearchFieldStyle);\r\n const { stockImageRoot } = useDefaultStyles(getRootStyles);\r\n\r\n const filterI18n = useMemo(() => buildLegacyI18n(i18n, [stockImageFilterLegacyI18nMap]), [i18n]);\r\n\r\n const loadImages = useCallback(({ $search = searchQuery, $skip = skip, $query = filter }) => {\r\n if ($search) {\r\n if ($skip === 0) {\r\n setIsLoadingFirstPage(true);\r\n }\r\n\r\n getStockImages({\r\n customQueries: extend({\r\n appName: 'CampaignUI',\r\n $search,\r\n $skip,\r\n $top: PAGE_SIZE,\r\n language: 'en',\r\n includevertical: true,\r\n }, $query),\r\n }).then((data) => {\r\n setHasMore(data['@odata.count'] > data.value.length + $skip);\r\n\r\n setImages([\r\n ...($skip > 0 ? images : []),\r\n ...map(data.value, (item) => {\r\n const image = {\r\n thumbnailSrc: item.Preview.Url,\r\n id: item.Id,\r\n isSelected: false,\r\n };\r\n\r\n return image;\r\n }),\r\n ]);\r\n\r\n if ($skip === 0) {\r\n setIsLoadingFirstPage(false);\r\n }\r\n });\r\n }\r\n }, [\r\n images, setImages, getStockImages, searchQuery, skip, filter, setHasMore, setIsLoadingFirstPage,\r\n ]);\r\n\r\n const loadNextPage = useCallback(() => {\r\n if (hasMore) {\r\n const newSkip = skip + PAGE_SIZE;\r\n setSkip(newSkip);\r\n loadImages({ $skip: newSkip });\r\n }\r\n }, [skip, setSkip, loadImages, hasMore]);\r\n\r\n const onSelectImage = useCallback((index) => {\r\n const newArr = [...images];\r\n const selectedImage = newArr[index];\r\n\r\n const selectionChange = { selectedImageId: selectedImage.id };\r\n\r\n if (enableMultipleSelection) {\r\n const newSelectionState = !selectedImage.isSelected;\r\n\r\n newArr[index].isSelected = newSelectionState;\r\n selectionChange.selectionState = newSelectionState;\r\n }\r\n\r\n setImages(newArr);\r\n onChangeImageIdSelection(selectionChange);\r\n }, [images, setImages, onChangeImageIdSelection, enableMultipleSelection]);\r\n\r\n const onKeyDown = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n setSkip(0);\r\n loadImages({\r\n $skip: 0,\r\n });\r\n }\r\n }, [setSkip, loadImages]);\r\n\r\n const onFilterQueryChange = useCallback((newFilterQuery) => {\r\n const newFilterQueryString = JSON.stringify(newFilterQuery);\r\n\r\n if (newFilterQueryString !== serializedFilterForComp) {\r\n setFilter(newFilterQuery);\r\n setSerializedFilterForComp(newFilterQueryString);\r\n setSkip(0);\r\n loadImages({\r\n $query: newFilterQuery,\r\n $skip: 0,\r\n });\r\n }\r\n }, [setFilter, setSerializedFilterForComp, loadImages, serializedFilterForComp, setSkip]);\r\n\r\n const messageBarStyles = useMemo(() => ({\r\n root: {\r\n marginBottom: 4,\r\n backgroundColor: '#EFF6FC',\r\n },\r\n }), []);\r\n\r\n // use a callback ref so that the filter popover container gets updated\r\n // reference to the popover container when it renders\r\n const [popoverContainerRef, setPopoverContainerRef] = useState(null);\r\n\r\n const popoverContainerCallbackRef =\r\n useCallback(node => setPopoverContainerRef(node), [setPopoverContainerRef]);\r\n\r\n return (\r\n
\r\n
\r\n setSearchQuery(newValue)}\r\n onKeyDown={onKeyDown}\r\n placeholder={i18n.getString(_TL_('Search stock images (provided by Shutterstock)'))}\r\n styles={{\r\n root: {\r\n width: '50%',\r\n display: 'inline-block',\r\n },\r\n }}\r\n />\r\n {\r\n setSkip(0);\r\n loadImages({\r\n $skip: 0,\r\n });\r\n }}\r\n />\r\n
\r\n \r\n \r\n \r\n {i18n.getString(_TL_('The Shutterstock watermark appearing on the stock images below will not appear in your ad.'))}\r\n \r\n \r\n {i18n.getString(_TL_('There may be images provided by Shutterstock that do not adhere to the Microsoft image policy.'))}\r\n \r\n \r\n {\r\n isLoadingFirstPage ? :\r\n \r\n }\r\n
\r\n );\r\n};\r\n\r\nStockImageView.propTypes = {\r\n getStockImages: PropTypes.func.isRequired,\r\n onChangeImageIdSelection: PropTypes.func.isRequired,\r\n enableMultipleSelection: PropTypes.bool,\r\n imageCellWidth: PropTypes.number,\r\n imageCellHeight: PropTypes.number,\r\n images: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\r\n setImages: PropTypes.func.isRequired,\r\n hasMore: PropTypes.bool.isRequired,\r\n setHasMore: PropTypes.func.isRequired,\r\n skip: PropTypes.number.isRequired,\r\n setSkip: PropTypes.func.isRequired,\r\n serializedFilterForComp: PropTypes.string.isRequired,\r\n setSerializedFilterForComp: PropTypes.func.isRequired,\r\n isLoadingFirstPage: PropTypes.bool.isRequired,\r\n setIsLoadingFirstPage: PropTypes.func.isRequired,\r\n searchQuery: PropTypes.string.isRequired,\r\n setSearchQuery: PropTypes.func.isRequired,\r\n filter: PropTypes.shape({}).isRequired,\r\n setFilter: PropTypes.func.isRequired,\r\n};\r\n\r\nStockImageView.defaultProps = {\r\n enableMultipleSelection: true,\r\n imageCellWidth: undefined,\r\n imageCellHeight: undefined,\r\n};\r\n","export const placeholderTextFieldStyles = {\r\n root: {\r\n display: 'inline-block',\r\n width: 300,\r\n marginLeft: 6,\r\n marginTop: 16,\r\n },\r\n field: {\r\n paddingRight: 8,\r\n paddingLeft: 32,\r\n },\r\n};\r\n\r\nexport const placeholderTextFieldIconProps = {\r\n iconName: 'Search',\r\n styles: {\r\n root: {\r\n left: 8,\r\n right: 0,\r\n },\r\n },\r\n};\r\n\r\nexport const placeholderDropdownStyles = {\r\n root: {\r\n display: 'inline-flex',\r\n width: 88,\r\n marginLeft: 25,\r\n marginTop: 16,\r\n },\r\n title: {\r\n width: 88,\r\n },\r\n};\r\n\r\nexport const getPlaceholderStyles = () => ({\r\n placeholderView: {\r\n marginTop: 16,\r\n display: 'inline-block',\r\n marginLeft: 271,\r\n fontSize: 14,\r\n lineHeight: '20px',\r\n '& img': {\r\n marginLeft: 129,\r\n marginBottom: 24,\r\n },\r\n '& .suggestion-error-invalid': {\r\n marginTop: 16,\r\n color: 'red',\r\n },\r\n },\r\n});\r\n\r\nexport const placeholderImage = \"data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M149.8 23.9999C149.7 22.5999 148.5 21.2999 147.2 21.0999C122.6 17.4999 98.2001 13.9999 74 10.6999C72.7 10.4999 71.6 11.4999 71.7 12.7999C72.9001 37.4999 70.3 62.5999 64.1 87.3999C63.8 88.6999 64.6 89.9999 66 90.2999C90.6 94.6999 115.3 99.2999 140.1 104C141.5 104.3 142.9 103.3 143.2 101.9C149.2 76.0999 151.4 49.8999 149.8 23.9999Z' fill='%23EFEFEF'/%3E%3Cpath d='M143.9 26.8C121.7 23.4 99.6 20.1 77.6 17C78.1 32.1 77.3 47.4 75 62.7C83.1 50.6 90.2 38.3 96.2 26C102.6 41.5 107.9 57.2 111.9 73C119 62.5 125.4 51.8 130.9 41.1C135.1 52.1 138.7 63.1 141.7 74.3C144 58.4 144.7 42.5 143.9 26.8Z' fill='%2328C2D1'/%3E%3Cpath d='M112.1 72.8999C113.8 79.5999 115.3 86.2999 116.6 92.9999C123.7 94.2999 130.7 95.5999 137.8 96.9999C139.5 89.3999 140.8 81.6999 141.8 74.0999C138.8 62.9999 135.2 51.8999 131 40.8999C125.6 51.6999 119.2 62.3999 112.1 72.8999Z' fill='%2328C2D1'/%3E%3Cpath d='M112.1 72.8999C113.8 79.5999 115.3 86.2999 116.6 92.9999C123.7 94.2999 130.7 95.5999 137.8 96.9999C139.5 89.3999 140.8 81.6999 141.8 74.0999C138.8 62.9999 135.2 51.8999 131 40.8999C125.6 51.6999 119.2 62.3999 112.1 72.8999Z' fill='url(%23paint0_radial_4115_133383)'/%3E%3Cpath d='M99.8999 89.8999C104.2 84.2999 108.3 78.5999 112.1 72.8999C108 57.0999 102.8 41.2999 96.3999 25.8999C90.3999 38.1999 83.2999 50.4999 75.1999 62.5999C73.9999 69.9999 72.5999 77.2999 70.8999 84.6999C80.5999 86.3999 90.1999 88.1999 99.8999 89.8999Z' fill='%237BDDEF'/%3E%3Cpath d='M95.1001 89C100.6 90.2 111 92.1 116.6 93.1C115.3 86.4 113.8 79.7 112.1 73C108.2 78.6 99.4001 83.3 95.1001 89Z' fill='%237BDDEF'/%3E%3Cpath d='M27 42C36.3888 42 44 34.3888 44 25C44 15.6112 36.3888 8 27 8C17.6112 8 10 15.6112 10 25C10 34.3888 17.6112 42 27 42Z' fill='%23E1DFDD'/%3E%3Cpath d='M132.8 151.7C140.532 151.7 146.8 145.432 146.8 137.7C146.8 129.968 140.532 123.7 132.8 123.7C125.068 123.7 118.8 129.968 118.8 137.7C118.8 145.432 125.068 151.7 132.8 151.7Z' fill='%23E1DFDD'/%3E%3Cpath d='M115.9 141.8C122.527 141.8 127.9 136.427 127.9 129.8C127.9 123.172 122.527 117.8 115.9 117.8C109.272 117.8 103.9 123.172 103.9 129.8C103.9 136.427 109.272 141.8 115.9 141.8Z' fill='%23E1DFDD'/%3E%3Cpath d='M118.8 137.7C118.8 138.9 119 140.1 119.3 141.3C124.2 139.8 127.8 135.2 127.8 129.8C127.8 128.1 127.5 126.5 126.8 125.1C122.1 127.3 118.8 132.1 118.8 137.7Z' fill='%23C8C6C4'/%3E%3Cpath d='M69.2999 91.6002L66.2999 91.1002L60.2999 90.1002L57.1999 89.6002L60.0999 72.7002C58.3999 73.2002 56.6999 74.0002 55.1999 74.9002C54.0999 75.6002 53.1999 76.3002 52.2999 77.1002L49.5999 92.8002C49.2999 94.4002 50.3999 95.9002 51.9999 96.2002L84.4999 101.7C85.5999 99.5002 86.3999 97.1002 86.5999 94.7002L69.2999 91.6002Z' fill='%23EFEFEF'/%3E%3Cpath d='M83.6 81.3C83.3 80.8 82.9 80.3 82.5 79.8C81.8 78.9 81.1001 78.2 80.4001 77.4C77.4001 74.6 73.8001 72.7 69.9001 72.1C69.0001 71.9 68.1 71.8 67.2001 71.8C64.9001 71.7 62.5001 72 60.2001 72.7L57.3 89.6L60.4001 90.1L66.4001 91.1L69.4001 91.6L86.7 94.6C87.1 90.1 86.2 85.4 83.6 81.3Z' fill='%237BDDEF'/%3E%3Cpath d='M43.2001 110.3L36.1001 117.7L41.9001 123.3L49.0001 115.9C46.9001 114.3 44.9001 112.5 43.2001 110.3Z' fill='url(%23paint1_linear_4115_133383)'/%3E%3Cpath d='M42.8145 122.6L37.0145 117L36.0145 116L18.5145 134.3C16.4145 136.5 16.5145 139.9 18.7145 141.9C20.9145 143.9 24.3145 143.9 26.3145 141.7L43.8145 123.5L42.8145 122.6Z' fill='%232B88D8'/%3E%3Cpath d='M90.8999 77.6962C82.2999 63.9962 64.1999 59.8962 50.5999 68.4962C36.9999 77.0962 32.8999 95.0962 41.4999 108.796C42.0999 109.696 42.6999 110.496 43.2999 111.296C44.9999 113.496 46.9999 115.296 49.0999 116.896C58.4999 123.696 71.3999 124.496 81.7999 117.896C95.3999 109.296 99.3999 91.2962 90.8999 77.6962ZM86.5999 95.5962C86.2999 97.9962 85.5999 100.396 84.4999 102.596C82.8999 105.796 80.3999 108.596 77.1999 110.596C72.0999 113.796 66.1999 114.496 60.7999 112.996C55.9999 111.696 51.5999 108.696 48.7999 104.096C43.3999 95.4962 45.0999 84.4962 52.2999 77.9962C53.1999 77.1962 54.1999 76.3962 55.1999 75.7962C56.7999 74.7962 58.3999 74.0962 60.0999 73.5962C62.3999 72.8962 64.7999 72.5962 67.0999 72.6962C67.9999 72.6962 68.8999 72.7962 69.7999 72.9962C73.6999 73.6962 77.3999 75.4962 80.2999 78.2962C81.0999 78.9962 81.7999 79.7962 82.3999 80.6962C82.7999 81.1962 83.1999 81.6962 83.4999 82.1962C86.1999 86.3962 87.0999 91.0962 86.5999 95.5962Z' fill='url(%23paint2_linear_4115_133383)'/%3E%3Cpath d='M117.8 30.5C114.1 29.2 110.5 31.1 109.8 34.7C109 38.3 111.3 42.4 114.9 43.7C118.6 45 122.3 43.2 123.1 39.5C123.9 35.9 121.5 31.9 117.8 30.5Z' fill='%23C3F2F4'/%3E%3Cdefs%3E%3CradialGradient id='paint0_radial_4115_133383' cx='0' cy='0' r='1' gradientUnits='userSpaceOnUse' gradientTransform='translate(96.7276 59.5763) rotate(2.19167) scale(29.9137)'%3E%3Cstop offset='0.000449151' stop-color='%2328C2D1'/%3E%3Cstop offset='1' stop-color='%237BDDEF'/%3E%3C/radialGradient%3E%3ClinearGradient id='paint1_linear_4115_133383' x1='35.5361' y1='123.503' x2='46.1786' y2='112.282' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23106EBE'/%3E%3Cstop offset='1' stop-color='%232B88D8'/%3E%3C/linearGradient%3E%3ClinearGradient id='paint2_linear_4115_133383' x1='191.384' y1='363.281' x2='73.301' y2='108.664' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23106EBE'/%3E%3Cstop offset='1' stop-color='%232B88D8'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E%0A\";\r\n","export const getWebsiteImagesStyles = () => ({\r\n subdomainFields: {\r\n marginTop: 16,\r\n marginBottom: 16,\r\n '& .divider': {\r\n display: 'inline-block',\r\n marginLeft: 10,\r\n marginRight: 10,\r\n fontSize: 14,\r\n lineHeight: '20px',\r\n },\r\n },\r\n textAbovePicker: {\r\n display: 'block',\r\n margin: 12,\r\n },\r\n rootContainer: {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexGrow: 1,\r\n },\r\n});\r\n\r\nexport const websiteImagesFinalUrlTextFieldStyles = {\r\n root: {\r\n display: 'inline-block',\r\n width: 260,\r\n },\r\n field: {\r\n paddingRight: 8,\r\n paddingLeft: 32,\r\n },\r\n};\r\n\r\nexport const websiteImagesFinalUrlTextFieldIconProps = {\r\n iconName: 'Search',\r\n styles: {\r\n root: {\r\n left: 8,\r\n right: 0,\r\n },\r\n },\r\n};\r\n\r\nexport const websiteImagesSubdomainTextFieldStyles = {\r\n root: {\r\n display: 'inline-block',\r\n width: 260,\r\n },\r\n};\r\n","import React, { useState, useContext, useCallback, useMemo, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport _ from 'underscore';\r\n\r\nimport { TextField, Dropdown } from '@bingads-webui-react/fabric-control';\r\nimport { isValidUrl, getDomain } from '@bingads-webui/url-util';\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport {\r\n placeholderImage,\r\n getPlaceholderStyles,\r\n placeholderTextFieldStyles,\r\n placeholderTextFieldIconProps,\r\n placeholderDropdownStyles,\r\n} from './styles/index';\r\n\r\nconst urlPrefixOptions = [\r\n { key: 'https://', text: 'https://' },\r\n { key: 'http://', text: 'http://' },\r\n];\r\n\r\nconst defaultProtocol = 'https://';\r\n\r\nexport const PlaceholderView = ({\r\n onEnteredFinalUrl,\r\n protocol,\r\n onUpdateProtocol,\r\n initialFinalUrl,\r\n}) => {\r\n const [managedProtocol, setManagedProtocol] = useState(defaultProtocol);\r\n const [isInvalidUrl, setIsInvalidUrl] = useState(false);\r\n const [initialValue] = useState(initialFinalUrl);\r\n\r\n const initialTextFieldValue = useMemo(() => {\r\n if (initialValue) {\r\n return getDomain(initialValue);\r\n }\r\n return null;\r\n }, [initialValue]);\r\n\r\n useEffect(() => {\r\n if (initialValue && !isValidUrl(initialValue)) {\r\n setIsInvalidUrl(true);\r\n }\r\n }, [initialValue, setIsInvalidUrl]);\r\n\r\n const i18n = useContext(I18nContext);\r\n const classes = useDefaultStyles(getPlaceholderStyles);\r\n\r\n const shouldUseExternallyManagedProtocol = useMemo(\r\n () => protocol && onUpdateProtocol\r\n , [protocol, onUpdateProtocol]\r\n );\r\n\r\n const currentProtocol = useMemo(() => protocol || managedProtocol, [\r\n protocol,\r\n managedProtocol,\r\n ]);\r\n\r\n const setCurrentProtocol = useCallback((newProtocol, ev) => {\r\n if (shouldUseExternallyManagedProtocol) {\r\n onUpdateProtocol(newProtocol, ev);\r\n } else {\r\n setManagedProtocol(newProtocol);\r\n }\r\n }, [shouldUseExternallyManagedProtocol, onUpdateProtocol, setManagedProtocol]);\r\n\r\n const onChangeProtocol = useCallback((ev, newPrefix) => {\r\n setCurrentProtocol(newPrefix.text, ev);\r\n }, [setCurrentProtocol]);\r\n\r\n const onBlurUrl = useCallback((ev) => {\r\n const newUrl = ev && ev.target && ev.target.value;\r\n const newUrlWithProtocol = `${currentProtocol}${newUrl}`;\r\n\r\n if (isValidUrl(newUrlWithProtocol)) {\r\n setIsInvalidUrl(false);\r\n onEnteredFinalUrl(newUrlWithProtocol, ev);\r\n } else {\r\n setIsInvalidUrl(true);\r\n }\r\n }, [setIsInvalidUrl, onEnteredFinalUrl, currentProtocol]);\r\n\r\n const onKeyDown = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n onBlurUrl(ev);\r\n }\r\n }, [onBlurUrl]);\r\n\r\n return (\r\n
\r\n \"\"\r\n
{i18n.getString(_TL_('Please enter your website’s URL. We’ll pull images from your website.'))}
\r\n \r\n \r\n {isInvalidUrl &&\r\n
\r\n {i18n.getString(_TL_('Please enter a valid Final URL to see images from your website.'))}\r\n
\r\n }\r\n
\r\n );\r\n};\r\n\r\nPlaceholderView.propTypes = {\r\n onEnteredFinalUrl: PropTypes.func.isRequired,\r\n protocol: PropTypes.string,\r\n onUpdateProtocol: PropTypes.func,\r\n initialFinalUrl: PropTypes.string,\r\n};\r\n\r\nPlaceholderView.defaultProps = {\r\n protocol: null,\r\n initialFinalUrl: null,\r\n onUpdateProtocol: _.noop,\r\n};\r\n","import React, {\r\n useContext,\r\n useMemo,\r\n useCallback,\r\n useRef,\r\n useState,\r\n useEffect,\r\n} from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\n\r\nimport { I18nContext } from '@bingads-webui-react/i18n-context';\r\nimport { TextField } from '@bingads-webui-react/fabric-control';\r\n\r\nimport { FluentImagePicker } from '@bingads-webui-campaign-react/fluent-image-picker';\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getUrlProtocolAndDomain, hasProtocol, isValidUrl } from '@bingads-webui/url-util';\r\n\r\nimport {\r\n getWebsiteImagesStyles,\r\n websiteImagesFinalUrlTextFieldStyles,\r\n websiteImagesFinalUrlTextFieldIconProps,\r\n websiteImagesSubdomainTextFieldStyles,\r\n} from './styles/index';\r\nimport { PlaceholderView } from './placeholder-view';\r\n\r\nexport const WebsiteImageView = ({\r\n images,\r\n isLoadingFirstPage,\r\n isLoading,\r\n hasMore,\r\n finalUrl,\r\n subdomain,\r\n loadNextPage,\r\n onSelectImage,\r\n onEnteredFinalUrl,\r\n onSubdomainChange,\r\n onSubdomainChanged,\r\n pageSize,\r\n protocol,\r\n onUpdateProtocol,\r\n showTextAbovePicker,\r\n imageCellWidth,\r\n imageCellHeight,\r\n enableEditFinalUrlInListMode,\r\n}) => {\r\n const showPlaceholder =\r\n useMemo(() => !finalUrl || !isValidUrl(finalUrl), [finalUrl]);\r\n\r\n const finalUrlDomain = useMemo(() => {\r\n if (finalUrl) {\r\n return getUrlProtocolAndDomain(finalUrl);\r\n }\r\n return '';\r\n }, [finalUrl]);\r\n\r\n const i18n = useContext(I18nContext);\r\n const classes = useDefaultStyles(getWebsiteImagesStyles);\r\n\r\n const [temporaryFinalUrl, setTemporaryFinalUrl] = useState(finalUrlDomain);\r\n\r\n useEffect(() => {\r\n if (finalUrlDomain !== temporaryFinalUrl) {\r\n setTemporaryFinalUrl(finalUrlDomain);\r\n }\r\n }, [finalUrlDomain, finalUrl]);\r\n\r\n const subdomainRef = useRef();\r\n const finalUrlRef = useRef();\r\n\r\n const onKeyDownSubdomain = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n onSubdomainChanged(ev);\r\n if (subdomainRef.current) {\r\n subdomainRef.current.blur();\r\n }\r\n }\r\n }, [onSubdomainChanged]);\r\n\r\n const onKeyDownFinalUrl = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n let updatedFinalUrl = getUrlProtocolAndDomain(temporaryFinalUrl);\r\n\r\n if (!hasProtocol(updatedFinalUrl)) {\r\n updatedFinalUrl = `https://${updatedFinalUrl}`;\r\n }\r\n\r\n onEnteredFinalUrl(updatedFinalUrl, ev);\r\n if (finalUrlRef.current) {\r\n finalUrlRef.current.blur();\r\n }\r\n }\r\n }, [onEnteredFinalUrl, temporaryFinalUrl]);\r\n\r\n const onFinalUrlFieldChange = useCallback((ev, newValue) => {\r\n setTemporaryFinalUrl(newValue);\r\n }, [setTemporaryFinalUrl]);\r\n\r\n const onFinalUrlBlur = useCallback((ev) => {\r\n let updatedFinalUrl = getUrlProtocolAndDomain(temporaryFinalUrl);\r\n\r\n if (!hasProtocol(updatedFinalUrl)) {\r\n updatedFinalUrl = `https://${updatedFinalUrl}`;\r\n }\r\n\r\n onEnteredFinalUrl(updatedFinalUrl, ev);\r\n }, [temporaryFinalUrl, onEnteredFinalUrl]);\r\n\r\n return (\r\n
\r\n {\r\n showPlaceholder ?\r\n : (\r\n
\r\n {showTextAbovePicker && (\r\n
\r\n {i18n.getString(_TL_('We found images from your Final URL:'))}\r\n
\r\n )}\r\n \r\n
\r\n {'/'}\r\n
\r\n \r\n
\r\n )\r\n }\r\n {\r\n !showPlaceholder && !isLoading && images.length === 0 &&\r\n
\r\n
\r\n
\r\n {i18n.getString(_TL_('No suggestion found from your site.'))}\r\n
\r\n
\r\n }\r\n {\r\n !showPlaceholder && (\r\n isLoadingFirstPage ? :\r\n \r\n )\r\n }\r\n
\r\n );\r\n};\r\n\r\nWebsiteImageView.propTypes = {\r\n images: PropTypes.arrayOf(PropTypes.shape({\r\n thumbnailSrc: PropTypes.string,\r\n })).isRequired,\r\n isLoadingFirstPage: PropTypes.bool.isRequired,\r\n isLoading: PropTypes.bool.isRequired,\r\n hasMore: PropTypes.bool.isRequired,\r\n loadNextPage: PropTypes.func.isRequired,\r\n onSelectImage: PropTypes.func.isRequired,\r\n onEnteredFinalUrl: PropTypes.func.isRequired,\r\n onSubdomainChange: PropTypes.func.isRequired,\r\n onSubdomainChanged: PropTypes.func.isRequired,\r\n pageSize: PropTypes.number,\r\n finalUrl: PropTypes.string,\r\n subdomain: PropTypes.string,\r\n protocol: PropTypes.string,\r\n onUpdateProtocol: PropTypes.func,\r\n showTextAbovePicker: PropTypes.bool,\r\n imageCellWidth: PropTypes.number,\r\n imageCellHeight: PropTypes.number,\r\n enableEditFinalUrlInListMode: PropTypes.bool,\r\n};\r\n\r\nWebsiteImageView.defaultProps = {\r\n finalUrl: '',\r\n subdomain: '',\r\n pageSize: 30,\r\n protocol: null,\r\n onUpdateProtocol: null,\r\n showTextAbovePicker: false,\r\n imageCellWidth: undefined,\r\n imageCellHeight: undefined,\r\n enableEditFinalUrlInListMode: false,\r\n};\r\n","import { useState, useReducer, useCallback, useEffect, useMemo, useRef } from 'react';\r\nimport { AIModelSource } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { detectBrandName } from './util';\r\n\r\nexport const statuses = {\r\n entry: 'entry',\r\n finished: 'finished',\r\n loading: 'loading',\r\n cancelling: 'cancelling',\r\n};\r\n\r\nexport const actions = {\r\n search: 'search',\r\n finish: 'finish',\r\n cancel: 'cancel',\r\n fail: 'fail',\r\n};\r\n\r\nconst reducer = (state, action) => {\r\n // action, [search, finish, cancel, failed]\r\n switch (state.status) {\r\n case statuses.entry:\r\n case statuses.finished:\r\n switch (action.type) {\r\n case actions.search:\r\n return ({ status: statuses.loading });\r\n default:\r\n break;\r\n }\r\n return ({ status: statuses.finished });\r\n case statuses.loading:\r\n switch (action.type) {\r\n case actions.cancel:\r\n case actions.fail:\r\n return ({ status: statuses.cancelling });\r\n case actions.finish:\r\n return ({ status: statuses.finished });\r\n case actions.search:\r\n return ({ status: statuses.loading });\r\n default:\r\n break;\r\n }\r\n return ({ status: statuses.finished });\r\n case statuses.cancelling:\r\n switch (action.type) {\r\n case actions.finish:\r\n case actions.fail:\r\n return ({ status: statuses.finished });\r\n default:\r\n break;\r\n }\r\n return ({ status: statuses.finished });\r\n default:\r\n return ({ status: statuses.finished });\r\n }\r\n};\r\n\r\nexport const useAIGenerateImagesState = ({\r\n dataService, i18n, logger, eventHandler,\r\n}) => {\r\n const log = useCallback((...args) => {\r\n if (logger) {\r\n logger.logTrace(...args);\r\n }\r\n }, [logger]);\r\n\r\n const [prompt, setPrompt] = useState(undefined);\r\n const [state, dispatch] = useReducer(reducer, { status: statuses.entry });\r\n const [images, setImages] = useState([]);\r\n const [serverError, setServerError] = useState(undefined);\r\n const [detectedBrandName, setDetectedBrandName] = useState(null);\r\n\r\n const onSelectImage = useCallback((index) => {\r\n const newImages = [...images];\r\n newImages[index].isSelected = !newImages[index].isSelected;\r\n\r\n log('AIGenerateImagesView: select image');\r\n setImages(newImages);\r\n }, [setImages, images, log]);\r\n\r\n const selectedImages = useMemo(() => images.filter(x => x.isSelected), [images]);\r\n\r\n const generateImagesPromise = useRef(undefined);\r\n\r\n const getGenerateImagesByAIPromise = useCallback((skipBrandDetection) => {\r\n setImages([]);\r\n let cancelled = false;\r\n let statusPoller = null;\r\n\r\n const onStartPolling = (poller) => {\r\n statusPoller = poller;\r\n };\r\n\r\n const aigcCallStart = Date.now();\r\n\r\n dataService.generateImagesByAI({\r\n prompt, onStartPolling /* , onProgress */, skipBrandDetection,\r\n }).then(({\r\n images: newImages, brandNameDetected, brandNames,\r\n }) => {\r\n const aigcCallEnd = Date.now();\r\n const aigcCallDuration = aigcCallEnd - aigcCallStart;\r\n const hasRecraftImage = newImages.some(({ modelSource }) => modelSource === AIModelSource.Recraft);\r\n\r\n // use the tag \"logForExpand\" to expand the log to per image Url without expanding other logs with imageUrls\r\n log('AIGenerateImagesView: count AI generated images', {\r\n imageUrls: newImages.map(({ url }) => url).join(','),\r\n logForExpand: true,\r\n skipBrandDetection,\r\n prompt,\r\n hasRecraftImage,\r\n modelSources: newImages.map(({ modelSource }) => modelSource).join(','),\r\n duration: aigcCallDuration,\r\n }); // will expand the log to per image Url\r\n if (eventHandler && eventHandler.onReturnImages) {\r\n eventHandler.onReturnImages({ imageIds: newImages.map(({ id }) => id) });\r\n }\r\n\r\n if (!cancelled) {\r\n if (brandNameDetected) {\r\n setDetectedBrandName(brandNames);\r\n log(`AIGenerateImagesView: detected brand names: ${brandNames}, prompt: ${prompt}`);\r\n } else {\r\n setImages(newImages.map(({ url, modelSource }) => ({ thumbnailSrc: url, modelSource })));\r\n dispatch({ type: actions.finish });\r\n }\r\n }\r\n }).catch((error) => {\r\n if (!cancelled) {\r\n dispatch({ type: actions.fail });\r\n if (error && error.uxMessage) {\r\n setServerError(i18n.getString(error.uxMessage));\r\n } else {\r\n setServerError(i18n.getString(_TL_('We\\'ve encountered an error and failed to generate images.')));\r\n }\r\n }\r\n });\r\n\r\n return ({\r\n cancel: () => {\r\n cancelled = true;\r\n if (statusPoller && statusPoller.stop) {\r\n statusPoller.stop();\r\n statusPoller = null;\r\n }\r\n },\r\n });\r\n }, [dataService, prompt, i18n, log, eventHandler]);\r\n\r\n const getImages = useCallback((skipBrandDetection = false) => {\r\n dispatch({ type: actions.search });\r\n setServerError(undefined);\r\n log('AIGenerateImagesView: generate image', { prompt });\r\n if (eventHandler && eventHandler.onGenerateImages) {\r\n eventHandler.onGenerateImages({ prompt });\r\n }\r\n generateImagesPromise.current = getGenerateImagesByAIPromise(skipBrandDetection);\r\n }, [log, prompt, getGenerateImagesByAIPromise, eventHandler]);\r\n\r\n const cancel = useCallback(() => {\r\n dispatch({ type: actions.cancel });\r\n log('AIGenerateImagesView: cancel');\r\n if (generateImagesPromise.current) {\r\n generateImagesPromise.current.cancel();\r\n generateImagesPromise.current = null;\r\n }\r\n }, [log]);\r\n\r\n useEffect(() => {\r\n if (state.status === statuses.cancelling) {\r\n dispatch({ type: actions.finish });\r\n }\r\n }, [state.status]);\r\n\r\n useEffect(() => {\r\n if (serverError != null) {\r\n setServerError(undefined);\r\n }\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, [prompt]);\r\n\r\n const isValid = useMemo(() => {\r\n let containsBrand = false;\r\n if (detectedBrandName) {\r\n // multiple brand names are separated by comma\r\n // replace special characters in brand names and split by comma\r\n containsBrand = detectBrandName(detectedBrandName, prompt);\r\n }\r\n const trimmedPrompt = prompt ? prompt.trim() : '';\r\n const isValidPrompt = prompt != null && prompt.length > 0 && trimmedPrompt.length > 0 && prompt.length <= 256;\r\n return isValidPrompt && !containsBrand;\r\n }, [detectedBrandName, prompt]);\r\n\r\n const promptError = useMemo(() => {\r\n if (prompt == null) {\r\n return undefined;\r\n }\r\n if (prompt.length === 0) {\r\n return i18n.getString(_TL_('Prompt is required'));\r\n }\r\n if (prompt.length > 256) {\r\n return i18n.getString(_TL_('Prompt must be less than 256 characters'));\r\n }\r\n return undefined;\r\n }, [prompt, i18n]);\r\n\r\n return {\r\n images,\r\n selectedImages,\r\n isValid,\r\n getImages,\r\n onSelectImage,\r\n prompt,\r\n promptError,\r\n setPrompt,\r\n state,\r\n cancel,\r\n serverError,\r\n detectedBrandName,\r\n setDetectedBrandName,\r\n };\r\n};\r\n","export const detectBrandName = (detectedBrandName, prompt) => {\r\n const brandNames = detectedBrandName\r\n .replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\r\n .split(',').map(s => s.trim()).join('(?=\\\\W|^|$)|(?<=\\\\W|^|$)');\r\n const brandNameRegex = new RegExp(`(?<=\\\\W|^|$)${brandNames}(?=\\\\W|^|$)`, 'i');\r\n return brandNameRegex.test(prompt);\r\n};\r\n","import React, { useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { TilesGrid, TilesGridCellImage, TilesGridCellSelectionDecorator, TilesGridCellDecorativeLabel } from '@bingads-webui-campaign-react/asset-library-components';\r\nimport { CustomFluentUIIcons } from '@bingads-webui-campaign-react/asset-library-resources';\r\n\r\nconst gap = 8;\r\nconst marginToSelector = 2;\r\nconst imageCellWidth = 295 + (gap * 2) + (marginToSelector * 2);\r\nconst imageCellHeight = 243 + (gap * 2) + (marginToSelector * 2);\r\n\r\nexport const MaxImageCount = 4;\r\n\r\nconst addSearchParams = (url, params = {}) =>\r\n new URL(`${url.origin}${url.pathname}?${new URLSearchParams([\r\n ...Array.from(url.searchParams.entries()),\r\n ...Object.entries(params),\r\n ])}`);\r\n\r\nconst LoadingCell = ({ classes, isLoading }) => (\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
);\r\n\r\nconst GeneratedImages = ({\r\n images, onSelectImage, i18n, classes, isLoading,\r\n}) => {\r\n const onRenderLoadingCell = useCallback(() => (\r\n \r\n ), [classes, isLoading]);\r\n\r\n const onRenderImageSpinner = useCallback(() => (\r\n
\r\n
\r\n
\r\n ), [classes]);\r\n\r\n const onKeyDown = useCallback((event, i) => {\r\n const imageContainers = document.querySelectorAll('.actionImages .image-grid-cell-container');\r\n const footerButton = document.querySelector('.ms-Panel-footer button:not([disabled])');\r\n const headerButtons = document.querySelectorAll('.ai-generate-image-view .searchbar button:not([disabled]), .ms-Panel-commands button:not([disabled])');\r\n const headerButton = headerButtons && headerButtons.length && headerButtons[headerButtons.length - 1];\r\n switch (event.code) {\r\n case 'ArrowUp':\r\n case 'ArrowLeft':\r\n if (i > 0 && imageContainers[i - 1]) {\r\n imageContainers[i - 1].focus();\r\n }\r\n break;\r\n case 'ArrowDown':\r\n case 'ArrowRight':\r\n if (i < imageContainers.length - 1 && imageContainers[i + 1]) {\r\n imageContainers[i + 1].focus();\r\n }\r\n break;\r\n case 'Tab':\r\n if (event.shiftKey && headerButton) {\r\n headerButton.focus();\r\n } else if (footerButton) {\r\n footerButton.focus();\r\n }\r\n break;\r\n case 'Enter':\r\n onSelectImage(i);\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n event.stopPropagation();\r\n event.preventDefault();\r\n }, [onSelectImage]);\r\n\r\n const onRenderCell = useCallback(({ item, index }) => {\r\n let {\r\n thumbnailSrc: src,\r\n } = item;\r\n\r\n const {\r\n isSelected: selected = false,\r\n } = item;\r\n\r\n try {\r\n let srcURL = new URL(src);\r\n if (srcURL.host === 'th.bing.com') {\r\n const length = 330;\r\n srcURL = addSearchParams(srcURL, { w: length, h: length });\r\n src = srcURL.toString();\r\n }\r\n } catch (e) {\r\n // ignore\r\n }\r\n\r\n return (\r\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\r\n { onKeyDown(event, index); }}\r\n data-is-focusable\r\n >\r\n
\r\n
\r\n onSelectImage(index)} item={item}>\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n );\r\n }, [classes.imageGridCellContainer, classes.tilesGridCellContent, classes.cellContent, classes.cellContentShadow, classes.selectedCellContent, classes.imageCellLabelContainer, i18n, onRenderImageSpinner, onKeyDown, onSelectImage]);\r\n\r\n\r\n return ();\r\n};\r\n\r\nGeneratedImages.propTypes = {\r\n images: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n onSelectImage: PropTypes.func.isRequired,\r\n classes: PropTypes.shape({\r\n }).isRequired,\r\n isLoading: PropTypes.bool.isRequired,\r\n};\r\n\r\nexport {\r\n GeneratedImages,\r\n gap,\r\n imageCellHeight,\r\n imageCellWidth,\r\n marginToSelector\r\n};\r\n","import React, { Fragment, useCallback, useEffect, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classNames from 'classnames';\r\nimport { isEmpty } from 'underscore';\r\nimport {\r\n Text, TextField, DefaultButton, CommandBarButton, Checkbox,\r\n} from '@bingads-webui-react/fabric-control';\r\nimport { HelpButton } from '@bingads-webui-react/help-popup';\r\nimport { withCustomValidation, withError } from '@bingads-webui-react/validation';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport {\r\n RealUsedFlagSuffix,\r\n addAssetLibrarySurveyTriggerFlag,\r\n removeAssetLibrarySurveyTriggerFlag,\r\n AssetLibrarySurveyTriggerFlag,\r\n handleRealUsedFlag,\r\n} from '@bingads-webui-campaign-react/asset-library-model';\r\nimport copilotLogoImage from './copilotLogo.png';\r\nimport squareDismissImage from './squareDismiss.svg';\r\nimport sparkleImage from './sparkle.svg';\r\nimport { statuses } from './state';\r\nimport { getAIGenerateImagesStyles } from './styles';\r\nimport { GeneratedImages, gap, imageCellHeight, imageCellWidth, marginToSelector, MaxImageCount } from './generated-images';\r\n\r\nconst ErrorString = ({ error }) => (\r\n {error}\r\n);\r\n\r\nconst PromptUserErrorString = withError(withCustomValidation((({ updateValidation, prompt, promptError }) => {\r\n useEffect(() => {\r\n if (promptError == null) {\r\n updateValidation([], prompt);\r\n } else {\r\n updateValidation([promptError], prompt);\r\n }\r\n }, [promptError, prompt, updateValidation]);\r\n\r\n return ;\r\n})));\r\n\r\nconst shouldShowEntryView = ({ state, images }) => (state.status !== statuses.loading)\r\n && (state.status === statuses.entry || images == null || images.length === 0);\r\n\r\nconst CopilotLogo = ({ i18n }) => ({i18n.getString(_TL_('Sparkle);\r\n\r\nCopilotLogo.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nconst SquareDismissIcon = ({ i18n }) => ({i18n.getString(_TL_('Square);\r\n\r\nSquareDismissIcon.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nconst SparkleIcon = ({ disabled, i18n }) => (\r\n {i18n.getString(_TL_('Sparkle\r\n);\r\n\r\nSparkleIcon.propTypes = {\r\n disabled: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nSparkleIcon.defaultProps = {\r\n disabled: false,\r\n};\r\n\r\nconst BrandDetectionConfirmation = ({\r\n i18n, brandName, onConfirm, classes, logger,\r\n}) => {\r\n const onChange = useCallback((evt, checked) => {\r\n if (checked && onConfirm) {\r\n logger.logTrace(`BrandDetectionConfirmation: confirmed to skip brand name: ${brandName}`);\r\n onConfirm();\r\n }\r\n }, [brandName, logger, onConfirm]);\r\n\r\n useEffect(() => {\r\n logger.logTrace(`BrandDetectionConfirmation: brand name detected: ${brandName}`);\r\n }, [brandName, logger]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
{i18n.getString(_TL_('Brand detected: Image contains \"{{brandName}}\"'), { brandName })}
\r\n
{i18n.getString(_TL_('Note: Your request for the image may contain content that is subject to the intellectual property rights of third parties.'))}
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst SearchBar = ({\r\n i18n, prompt, setPrompt, isReadonly, classes, onGenerateImage,\r\n isValid, isMain, promptError, isCancelling, assetLibraryAccountPreferences,\r\n}) => {\r\n const examplePrompt = i18n.getString(_TL_('Enter your image description'));\r\n const disableButton = !isValid || isReadonly || isCancelling;\r\n const searchRef = React.useRef(null);\r\n\r\n const onKeyDown = useCallback((ev) => {\r\n if (ev.key === 'Enter') {\r\n onGenerateImage();\r\n if (searchRef.current) {\r\n searchRef.current.blur();\r\n }\r\n }\r\n }, [onGenerateImage]);\r\n\r\n return (\r\n <>\r\n
\r\n {\r\n setPrompt(newValue);\r\n }}\r\n onKeyDown={onKeyDown}\r\n componentRef={searchRef}\r\n />\r\n {isMain ? null :
}\r\n ()}\r\n onClick={() => {\r\n handleRealUsedFlag(assetLibraryAccountPreferences, RealUsedFlagSuffix.AIGCMVP);\r\n onGenerateImage();\r\n }}\r\n />\r\n
\r\n {isMain ?
: null}\r\n \r\n );\r\n};\r\n\r\nSearchBar.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n isReadonly: PropTypes.bool.isRequired,\r\n isCancelling: PropTypes.bool.isRequired,\r\n prompt: PropTypes.string,\r\n promptError: PropTypes.string,\r\n setPrompt: PropTypes.func.isRequired,\r\n onGenerateImage: PropTypes.func.isRequired,\r\n classes: PropTypes.shape({\r\n searchBar: PropTypes.string,\r\n promptInput: PropTypes.string,\r\n }).isRequired,\r\n isValid: PropTypes.bool.isRequired,\r\n isMain: PropTypes.bool.isRequired,\r\n assetLibraryAccountPreferences: PropTypes.shape({}),\r\n};\r\n\r\nSearchBar.defaultProps = {\r\n prompt: undefined,\r\n promptError: undefined,\r\n assetLibraryAccountPreferences: null,\r\n};\r\n\r\nconst RemainingText = ({\r\n i18n, isLoading, classes,\r\n}) => {\r\n const remainingText = i18n.getString(_TL_('Please note you have a limited number of image requests that we can generate quickly each day. After that, image generations may take longer than expected.'));\r\n return (\r\n <>\r\n
\r\n {isLoading ? null : {remainingText}}\r\n
\r\n \r\n );\r\n};\r\n\r\nRemainingText.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n isLoading: PropTypes.bool.isRequired,\r\n classes: PropTypes.shape({\r\n remainingText: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nconst EntryView = ({\r\n i18n, onGenerateImage, state, prompt, setPrompt, classes, serverError,\r\n isValid, promptError, assetLibraryAccountPreferences,\r\n}) => {\r\n const description = i18n.getString(_TL_('Please describe the image you want to create, and Microsoft Advertising will generate multiple variations.\\nFor example, \"A family opening presents in front of a Christmas tree.\"'));\r\n const isCancelling = state.status === 'cancelling';\r\n const isLoading = state.status === 'loading';\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n {description}\r\n
\r\n \r\n {!isEmpty(serverError) && }\r\n \r\n
\r\n );\r\n};\r\n\r\nEntryView.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n serverError: PropTypes.string,\r\n prompt: PropTypes.string,\r\n promptError: PropTypes.string,\r\n setPrompt: PropTypes.func.isRequired,\r\n state: PropTypes.shape({\r\n status: PropTypes.string,\r\n }).isRequired,\r\n onGenerateImage: PropTypes.func.isRequired,\r\n classes: PropTypes.shape({\r\n header: PropTypes.string,\r\n entry: PropTypes.string,\r\n }).isRequired,\r\n isValid: PropTypes.bool.isRequired,\r\n assetLibraryAccountPreferences: PropTypes.shape({}),\r\n};\r\n\r\nEntryView.defaultProps = {\r\n serverError: undefined,\r\n prompt: undefined,\r\n promptError: undefined,\r\n assetLibraryAccountPreferences: null,\r\n};\r\n\r\nconst MainView = ({\r\n i18n, state, cancel, images, onGenerateImage, prompt, setPrompt, classes, onSelectImage, serverError,\r\n isValid, promptError, assetLibraryAccountPreferences, detectedBrandName, logger,\r\n}) => {\r\n const actionText = i18n.getString(_TL_('Select the image(s) you want to display in your ad.'));\r\n const stopGenerate = i18n.getString(_TL_('Stop generating'));\r\n const isLoading = state.status === 'loading';\r\n const isCancelling = state.status === 'cancelling';\r\n\r\n const slicedImages = useMemo(() => (images && images.length ? images.slice(0, MaxImageCount) : []), [images]);\r\n\r\n return (\r\n
\r\n \r\n \r\n {!isEmpty(serverError) && }\r\n {!detectedBrandName && (\r\n <>\r\n
\r\n {isLoading ? (\r\n
\r\n
\r\n ()}\r\n onClick={() => {\r\n cancel();\r\n }}\r\n />\r\n
\r\n ) : (\r\n
\r\n {actionText}\r\n
\r\n )}\r\n
\r\n
\r\n \r\n
\r\n
\r\n {isLoading ? null : {i18n.getString(_TL_('Created with Microsoft Advertising'))}}\r\n
\r\n \r\n )}\r\n {detectedBrandName && (\r\n onGenerateImage(true)}\r\n logger={logger}\r\n classes={classes}\r\n />\r\n )}\r\n
\r\n );\r\n};\r\n\r\nMainView.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n prompt: PropTypes.string,\r\n promptError: PropTypes.string,\r\n setPrompt: PropTypes.func.isRequired,\r\n state: PropTypes.shape({\r\n status: PropTypes.string,\r\n }).isRequired,\r\n serverError: PropTypes.string,\r\n cancel: PropTypes.func.isRequired,\r\n onGenerateImage: PropTypes.func.isRequired,\r\n images: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\r\n onSelectImage: PropTypes.func.isRequired,\r\n assetLibraryAccountPreferences: PropTypes.shape({}),\r\n classes: PropTypes.shape({\r\n main: PropTypes.string,\r\n loadingSection: PropTypes.string,\r\n loadingIndicator: PropTypes.string,\r\n actionSection: PropTypes.string,\r\n actionText: PropTypes.string,\r\n actionImages: PropTypes.string,\r\n actionBottomText: PropTypes.string,\r\n }).isRequired,\r\n isValid: PropTypes.bool.isRequired,\r\n detectedBrandName: PropTypes.string,\r\n logger: PropTypes.shape({\r\n logTrace: PropTypes.func,\r\n }),\r\n};\r\n\r\nMainView.defaultProps = {\r\n serverError: undefined,\r\n prompt: undefined,\r\n promptError: undefined,\r\n assetLibraryAccountPreferences: null,\r\n detectedBrandName: null,\r\n logger: { logTrace: () => null },\r\n};\r\n\r\nexport const AssetLibraryAIGenerateImagesView = ({\r\n i18n, state, images, getImages, serverError, prompt, setPrompt, cancel, onSelectImage,\r\n isValid, promptError, logger, assetLibraryAccountPreferences,\r\n detectedBrandName, setDetectedBrandName, eventHandler,\r\n}) => {\r\n const classes = useDefaultStyles(getAIGenerateImagesStyles({\r\n imageWidth: imageCellWidth, imageHeight: imageCellHeight, gap, marginToSelector,\r\n }));\r\n\r\n const onGenerateImage = useCallback((skipBrandDetection) => {\r\n getImages(skipBrandDetection);\r\n setDetectedBrandName(null);\r\n if (skipBrandDetection) {\r\n logger.logTrace(`AIGenerateImagesView: skipped detected brand name: ${detectedBrandName}`);\r\n }\r\n }, [detectedBrandName, getImages, logger, setDetectedBrandName]);\r\n\r\n useEffect(() => {\r\n if (logger) {\r\n logger.logTrace('AIGenerateImagesView: showed');\r\n }\r\n if (eventHandler && eventHandler.onEnterGenerateImagesPanel) {\r\n eventHandler.onEnterGenerateImagesPanel();\r\n }\r\n if (window.survey) {\r\n window.survey.AssetLibraryAppSurveyTrigger = false;\r\n window.survey.AssetLibraryPickerSurveyTrigger = false;\r\n }\r\n addAssetLibrarySurveyTriggerFlag(assetLibraryAccountPreferences, AssetLibrarySurveyTriggerFlag.AIGCMVP, RealUsedFlagSuffix.AIGCMVP);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n useEffect(() => () => {\r\n removeAssetLibrarySurveyTriggerFlag(AssetLibrarySurveyTriggerFlag.AIGCMVP);\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, []);\r\n\r\n return (\r\n
\r\n {shouldShowEntryView({ state, images }) ?\r\n (\r\n \r\n ) :\r\n (\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nAssetLibraryAIGenerateImagesView.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n prompt: PropTypes.string,\r\n setPrompt: PropTypes.func.isRequired,\r\n state: PropTypes.shape({\r\n status: PropTypes.string,\r\n }).isRequired,\r\n serverError: PropTypes.string,\r\n cancel: PropTypes.func.isRequired,\r\n getImages: PropTypes.func.isRequired,\r\n images: PropTypes.arrayOf(PropTypes.shape({})).isRequired,\r\n onSelectImage: PropTypes.func.isRequired,\r\n promptError: PropTypes.string,\r\n isValid: PropTypes.bool.isRequired,\r\n logger: PropTypes.shape({ logTrace: PropTypes.func }),\r\n assetLibraryAccountPreferences: PropTypes.shape({}),\r\n permissions: PropTypes.shape({\r\n IsAssetLibraryAIGCMVPSurveyEnabled: PropTypes.bool,\r\n }),\r\n detectedBrandName: PropTypes.string,\r\n setDetectedBrandName: PropTypes.func.isRequired,\r\n eventHandler: PropTypes.shape({\r\n onEnterGenerateImagesPanel: PropTypes.func,\r\n }),\r\n};\r\n\r\nAssetLibraryAIGenerateImagesView.defaultProps = {\r\n serverError: undefined,\r\n prompt: undefined,\r\n promptError: undefined,\r\n logger: undefined,\r\n assetLibraryAccountPreferences: null,\r\n permissions: {},\r\n detectedBrandName: null,\r\n eventHandler: null,\r\n};\r\n","import AIWarningIcon from './AIWarningIcon.png';\r\n\r\nexport const getAIGenerateImagesStyles = ({ imageWidth, gap, marginToSelector }) => (_, { palette = {} }) => ({\r\n '@global': {\r\n '@keyframes loading_indicator': {\r\n '0%': { backgroundPosition: '-50%' },\r\n '100%': { backgroundPosition: '150%' },\r\n },\r\n '@keyframes loading_placeholder': {\r\n '0%': { backgroundPosition: '87.5%' }, // The whole background is 800% and we use only the 0-7 range\r\n '100%': { backgroundPosition: '0%' },\r\n },\r\n },\r\n main: {\r\n marginTop: '24px',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n width: '606px',\r\n },\r\n entry: {\r\n marginTop: '22px',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n },\r\n searchBar: {\r\n },\r\n promptInput: {\r\n },\r\n remainingText: {\r\n '& span': {\r\n color: palette.neutralSecondary,\r\n },\r\n },\r\n actionBottomText: {\r\n width: '100%',\r\n '& span': {\r\n color: palette.neutralSecondary,\r\n },\r\n },\r\n header: {\r\n marginBottom: '16px',\r\n textAlign: 'center',\r\n width: '62%',\r\n },\r\n actionSection: {\r\n width: '100%',\r\n },\r\n actionText: {\r\n marginTop: '32px',\r\n marginBottom: '16px',\r\n },\r\n actionImages: {\r\n width: `${(imageWidth * 2)}px`,\r\n position: 'relative',\r\n },\r\n imageGridCellContainer: {\r\n width: '100%',\r\n height: '100%',\r\n borderRadius: '6px',\r\n },\r\n tilesGridCellContent: {\r\n position: 'absolute',\r\n left: 0,\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n display: 'flex',\r\n flexDirection: 'column',\r\n flexWrap: 'nowrap',\r\n padding: gap,\r\n boxSizing: 'border-box',\r\n borderRadius: '6px',\r\n },\r\n cellContent: {\r\n position: 'relative',\r\n flexGrow: 1,\r\n flexShrink: 1,\r\n '& .cell-image-frame': {\r\n overflow: 'hidden',\r\n borderRadius: '6px',\r\n margin: `${marginToSelector}px`,\r\n },\r\n '& .grid-cell-selection-decorator': {\r\n outlineWidth: '2px',\r\n },\r\n '& .selected-checkbox': {\r\n visibility: 'hidden',\r\n },\r\n },\r\n cellContentShadow: {\r\n filter: 'drop-shadow(0px 0.6px 1.8px rgba(0, 0, 0, 0.1)) drop-shadow(0px 3.2px 7.2px rgba(0, 0, 0, 0.13))',\r\n },\r\n selectedCellContent: {\r\n '& .selected-checkbox': {\r\n visibility: 'unset',\r\n right: '8px',\r\n '& .ms-Checkbox-checkbox': {\r\n border: 'none',\r\n outline: 'none',\r\n },\r\n },\r\n },\r\n loadingPlaceholder: {\r\n width: '100%',\r\n height: '100%',\r\n },\r\n loadingImage: {\r\n backgroundColor: '#EDEBE9',\r\n borderRadius: '6px',\r\n margin: `${marginToSelector}px`,\r\n position: 'absolute',\r\n top: 0,\r\n bottom: 0,\r\n left: 0,\r\n right: 0,\r\n },\r\n loadingImageAnimation: {\r\n backgroundSize: '800%',\r\n background: 'linear-gradient(to right, #EDEBE9 0%, #EDEBE9 12.5%, #F3F2F1 25%, #F3F2F1 87.5%, #EDEBE9 100%)',\r\n animation: 'loading_placeholder 3s linear infinite',\r\n },\r\n loadingSection: {\r\n '& .ms-Button': {\r\n marginTop: '8px',\r\n },\r\n textAlign: 'center',\r\n marginTop: '32px',\r\n marginBottom: '32px',\r\n },\r\n loadingIndicator: {\r\n width: '100%',\r\n borderRadius: '2px',\r\n height: '4px',\r\n background: 'linear-gradient(to right, rgba(0, 120, 212, 0) 0%, #213AD5 50%, rgba(0, 120, 212, 0) 100%)',\r\n backgroundSize: '33%',\r\n backgroundRepeat: 'no-repeat',\r\n animation: 'loading_indicator 3s linear infinite',\r\n backgroundColor: '#E6E6E6',\r\n },\r\n AIGenerateImages: {\r\n margin: '0 auto',\r\n '& .user-error': {\r\n width: '100%',\r\n },\r\n '& div[role=\"alert\"]': {\r\n textAlign: 'left',\r\n '& .error': {\r\n color: '#A80000',\r\n fontSize: '12px',\r\n lineHeight: '16px',\r\n },\r\n },\r\n '& $main': {\r\n '& $searchBar': {\r\n width: '100%',\r\n display: 'flex',\r\n '& $promptInput': {\r\n flexGrow: 1,\r\n marginRight: '12px',\r\n },\r\n },\r\n '& $remainingText': {\r\n width: '100%',\r\n marginTop: '8px',\r\n },\r\n },\r\n '& $entry': {\r\n '& $searchBar': {\r\n textAlign: 'center',\r\n '& $promptInput': {\r\n width: '435px',\r\n },\r\n '& .ms-Button': {\r\n marginTop: '16px',\r\n marginBottom: '16px',\r\n },\r\n },\r\n '& $remainingText': {\r\n width: '56%',\r\n textAlign: 'center',\r\n },\r\n },\r\n },\r\n imageCellLabelContainer: {\r\n display: 'flex',\r\n flexDirection: 'row',\r\n position: 'absolute',\r\n left: 12,\r\n bottom: 12,\r\n zIndex: 1,\r\n\r\n '& .created-with-ai-label': {\r\n display: 'flex',\r\n background: 'red',\r\n padding: 0,\r\n margin: 0,\r\n height: 24,\r\n backgroundColor: '#FFFFFFBB',\r\n\r\n '& .label-icon': {\r\n margin: 0,\r\n },\r\n },\r\n },\r\n\r\n brandDetectionConfirmationContainer: {\r\n display: 'flex',\r\n flexDirection: 'row',\r\n justifyContent: 'flex-start',\r\n alignItems: 'center',\r\n width: '100%',\r\n padding: [16, 24],\r\n marginTop: 32,\r\n gap: '16px',\r\n borderRadius: 4,\r\n border: '1px solid var(--neutrals-web-gray-40-e-1-dfdd, #E1DFDD)',\r\n background: '#FFF',\r\n\r\n '& .ai-warning-icon': {\r\n width: 128,\r\n height: 128,\r\n flexShrink: 0,\r\n backgroundImage: `url(\"${AIWarningIcon}\")`,\r\n backgroundSize: [128, 128],\r\n marginRight: 16,\r\n },\r\n\r\n '& .confirmation-content': {\r\n fontFamily: 'Segoe UI',\r\n fontStyle: 'normal',\r\n '& .confirmation-content-title': {\r\n color: '#000',\r\n fontSize: 18,\r\n fontWeight: 600,\r\n lineHeight: '24px',\r\n },\r\n '& .confirmation-content-text': {\r\n color: '#605E5C',\r\n fontSize: 14,\r\n fontWeight: 400,\r\n lineHeight: '20px',\r\n marginTop: 4,\r\n marginBottom: 12,\r\n },\r\n '& .confirmation-content-action': {\r\n display: 'flex',\r\n '& .confirmation-content-checkbox': {\r\n marginRight: 4,\r\n alignItems: 'flex-start',\r\n\r\n '& button': {\r\n marginTop: 4,\r\n },\r\n },\r\n },\r\n },\r\n },\r\n});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Link } from '@bingads-webui-react/fabric-control';\r\nimport { Alert } from '@bingads-webui-react/alert';\r\nimport classNames from 'classnames';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { ReactTemplate } from '@bingads-webui-react/react-template';\r\n\r\nexport const AIGCDisclaimer = (props) => {\r\n const {\r\n i18n,\r\n } = props;\r\n\r\n const classes = useDefaultStyles(() => ({\r\n AIGCDisclaimer: {\r\n marginBottom: '16px',\r\n },\r\n AIGCLink: {\r\n color: '#106ebe',\r\n },\r\n }));\r\n\r\n return (\r\n
\r\n (\r\n \r\n {`${text} `}\r\n \r\n ),\r\n }}\r\n template={\r\n i18n.getString(_TL_('Please ensure you review any newly created images carefully. It\\'s your responsibility to ensure that the images do not infringe upon any third-party rights, including copyright or other intellectual property rights. {{a}}Learn more{{/a}}'))\r\n }\r\n />\r\n }\r\n level=\"Info\"\r\n icon={(
)}\r\n dismissible={false}\r\n />\r\n
);\r\n};\r\n\r\n\r\nAIGCDisclaimer.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n};\r\n\r\nAIGCDisclaimer.defaultProps = {\r\n};\r\n","export const getSingleItemNavigationStyle = (components, {\r\n palette = {},\r\n iconFontFamily = 'MsAds MDL2 Assets',\r\n} = {}) => ({\r\n sequentialNavigatorContainer: {\r\n position: 'absolute',\r\n bottom: 32,\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n width: '100%',\r\n height: 16,\r\n color: palette.white,\r\n },\r\n navigatorStatusContainer: {\r\n fontFamily: 'Segoe UI',\r\n fontStyle: 'normal',\r\n fontWeight: 600,\r\n fontSize: '12px',\r\n lineHeight: '16px',\r\n margin: '0 12px',\r\n },\r\n iconButton: {\r\n fontFamily: `${iconFontFamily} !important`,\r\n fontSize: 16,\r\n lineHeight: 16,\r\n backgroundColor: 'transparent',\r\n border: 'none',\r\n padding: 0,\r\n color: palette.white,\r\n },\r\n chevronLeft: {\r\n '&:before': {\r\n content: '\"\\\\E76B\"',\r\n },\r\n },\r\n chevronRight: {\r\n '&:before': {\r\n content: '\"\\\\E76C\"',\r\n },\r\n },\r\n disabledIcon: {\r\n color: 'rgba(255, 255, 255, 0.5)',\r\n },\r\n});\r\n","import classnames from 'classnames';\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getSingleItemNavigationStyle } from './style';\r\n\r\nexport const SequentialNavigator = ({\r\n totalCount,\r\n currentIndex,\r\n onNext,\r\n onPrevious,\r\n i18n,\r\n}) => {\r\n const classes = useDefaultStyles(getSingleItemNavigationStyle);\r\n\r\n const disableLeft = currentIndex === 0;\r\n const disableRight = currentIndex + 1 === totalCount;\r\n\r\n return (\r\n
\r\n {\r\n totalCount > 1 &&\r\n \r\n }\r\n
{`${currentIndex + 1}/${totalCount}`}
\r\n {\r\n totalCount > 1 &&\r\n \r\n }\r\n
\r\n );\r\n};\r\n\r\nSequentialNavigator.propTypes = {\r\n totalCount: PropTypes.number.isRequired,\r\n currentIndex: PropTypes.number.isRequired,\r\n onNext: PropTypes.func.isRequired,\r\n onPrevious: PropTypes.func.isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n","export const getSharedIconBoxStyle = ({ palette }) => ({\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n padding: '6px 8px',\r\n background: 'transparent',\r\n border: 'none',\r\n pointerEvents: 'auto',\r\n '&:hover': {\r\n background: palette.neutralLighter,\r\n },\r\n});\r\n","import { getSharedIconBoxStyle } from './shared-icon-box-style';\r\n\r\nexport const getInfoPaneHeaderStyle = (components, { palette = {}, iconFontFamily = 'MsAds MDL2 Assets' } = {}) => ({\r\n detailHeader: {\r\n padding: '0 0 16px',\r\n display: 'flex',\r\n alignItems: 'center',\r\n flexGrow: 1,\r\n },\r\n panelTitle: {\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 600,\r\n fontSize: '20px',\r\n lineHeight: '27px',\r\n color: palette.neutralPrimary,\r\n marginRight: '86px',\r\n flexGrow: 1,\r\n },\r\n iconBox: getSharedIconBoxStyle({ palette }),\r\n editBox: {\r\n width: 106,\r\n marginRight: 8,\r\n },\r\n deleteIcon: {\r\n '&:before': {\r\n content: '\"\\\\E74D\"',\r\n },\r\n },\r\n blueIcon: {\r\n color: palette.themePrimary,\r\n fontFamily: iconFontFamily,\r\n fontSize: '16px',\r\n lineHeight: '16px',\r\n },\r\n headerText: {\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 400,\r\n fontSize: '14px',\r\n lineHeight: '20px',\r\n color: palette.neutralPrimary,\r\n marginLeft: '8px',\r\n },\r\n disabledButton: {\r\n color: `${palette.neutralTertiary} !important`,\r\n },\r\n editIcon: {\r\n '&:before': {\r\n content: '\"\\\\E70F\"',\r\n },\r\n },\r\n});\r\n","import React from 'react';\r\nimport _ from 'underscore';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getInfoPaneHeaderStyle } from './styles/info-pane-header-style';\r\n\r\nexport const InfoPaneHeader = ({\r\n isReadonly,\r\n i18n,\r\n title,\r\n onDelete,\r\n disableEdit,\r\n onEdit,\r\n editLabel,\r\n}) => {\r\n const classes = useDefaultStyles(getInfoPaneHeaderStyle);\r\n\r\n return (\r\n
\r\n
{title}
\r\n\r\n \r\n \r\n
{i18n.getString(_TL_('Delete'))}
\r\n \r\n\r\n { !disableEdit &&\r\n \r\n \r\n
{editLabel}
\r\n \r\n }\r\n
\r\n );\r\n};\r\n\r\nInfoPaneHeader.propTypes = {\r\n onDelete: PropTypes.func.isRequired,\r\n isReadonly: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n title: PropTypes.string.isRequired,\r\n\r\n disableEdit: PropTypes.bool,\r\n onEdit: PropTypes.func,\r\n editLabel: PropTypes.string,\r\n};\r\n\r\nInfoPaneHeader.defaultProps = {\r\n isReadonly: false,\r\n disableEdit: false,\r\n onEdit: _.noop,\r\n editLabel: '',\r\n};\r\n","import { ellipsisText } from './shared-ellipsis-text-style';\r\n\r\nexport const getInfoPaneItemDefaultStyle = (components, { palette = {} }) => ({\r\n contentItem: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 400,\r\n fontSize: 14,\r\n lineHeight: '19px',\r\n marginTop: '8px',\r\n },\r\n contentName: {\r\n color: palette.neutralSecondary,\r\n marginRight: 8,\r\n width: 97,\r\n },\r\n contentValue: {\r\n color: palette.neutralPrimary,\r\n maxWidth: 230,\r\n ...ellipsisText(),\r\n },\r\n});\r\n","export const ellipsisText = () => ({\r\n overflow: 'hidden',\r\n whiteSpace: 'nowrap',\r\n textOverflow: 'ellipsis',\r\n});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getInfoPaneItemDefaultStyle } from './styles/info-pane-item-default-style';\r\n\r\nexport const InfoPaneItemDefault = ({\r\n name,\r\n value,\r\n}) => {\r\n const classes = useDefaultStyles(getInfoPaneItemDefaultStyle);\r\n\r\n return (\r\n
\r\n
{name}
\r\n
{value}
\r\n
\r\n );\r\n};\r\n\r\nInfoPaneItemDefault.propTypes = {\r\n name: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired,\r\n};\r\n","import { ellipsisText } from './shared-ellipsis-text-style';\r\n\r\nexport const getInfoPaneItemCopyUrlStyle = (components, { palette = {} } = {}) => ({\r\n contentItem: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 400,\r\n fontSize: 14,\r\n lineHeight: '19px',\r\n marginTop: '8px',\r\n },\r\n contentName: {\r\n color: palette.neutralSecondary,\r\n marginRight: 8,\r\n width: 97,\r\n },\r\n contentValue: {\r\n color: palette.neutralPrimary,\r\n maxWidth: 230,\r\n ...ellipsisText(),\r\n },\r\n copyUrl: {\r\n border: 'none',\r\n background: 'transparent',\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 400,\r\n fontSize: 14,\r\n lineHeight: '20px',\r\n textDecorationLine: 'underline',\r\n color: palette.themeDarkAlt,\r\n },\r\n});\r\n","import React, { useCallback, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { TooltipHost, DirectionalHint } from '@bingads-webui-react/fabric-control';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getInfoPaneItemCopyUrlStyle } from './styles/info-pane-item-copy-url-style';\r\n\r\nconst tooltipCalloutProps = { isBeakVisible: false, gapSpace: 10 };\r\n\r\nconst CopyUrlButton = ({ onClick, i18n, classes }) => {\r\n const [isURLCopied, setIsURLCopied] = useState(false);\r\n\r\n const onCopyUrlClick = useCallback(() => {\r\n setIsURLCopied(true);\r\n onClick();\r\n }, [onClick]);\r\n\r\n const onTooltipToggle = useCallback(isVisible => (!isVisible && setIsURLCopied(false)), []);\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nCopyUrlButton.propTypes = {\r\n onClick: PropTypes.func.isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n classes: PropTypes.shape({\r\n copyUrl: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nexport const InfoPaneItemCopyUrl = ({\r\n i18n,\r\n url,\r\n onCopy,\r\n}) => {\r\n const classes = useDefaultStyles(getInfoPaneItemCopyUrlStyle);\r\n\r\n return (\r\n
\r\n
{i18n.getString(_TL_('URL:'))}
\r\n
{url}
\r\n \r\n
\r\n );\r\n};\r\n\r\nInfoPaneItemCopyUrl.propTypes = {\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func.isRequired,\r\n }).isRequired,\r\n url: PropTypes.string.isRequired,\r\n onCopy: PropTypes.func.isRequired,\r\n};\r\n","import { getSharedIconBoxStyle } from './shared-icon-box-style';\r\n\r\nexport const getInfoPaneItemExternalLinkStyle = (components, { palette = {}, iconFontFamily = 'MsAds MDL2 Assets' } = {}) => ({\r\n container: {\r\n ...getSharedIconBoxStyle({ palette }),\r\n },\r\n linkIcon: {\r\n fontFamily: iconFontFamily,\r\n fontSize: 16,\r\n marginRight: 8,\r\n color: palette.blue,\r\n '&:before': {\r\n content: '\"\\\\E8A7\"',\r\n },\r\n },\r\n linkText: {\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 400,\r\n fontSize: 14,\r\n lineHeight: '20px',\r\n },\r\n});\r\n","import classnames from 'classnames';\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getInfoPaneItemExternalLinkStyle } from './styles/info-pane-item-external-link-style';\r\n\r\nexport const InfoPaneItemExternalLink = ({\r\n onClick,\r\n text,\r\n ariaLabel,\r\n className,\r\n}) => {\r\n const classes = useDefaultStyles(getInfoPaneItemExternalLinkStyle);\r\n\r\n return (\r\n \r\n
\r\n
\r\n {text}\r\n
\r\n \r\n );\r\n};\r\n\r\nInfoPaneItemExternalLink.propTypes = {\r\n text: PropTypes.string.isRequired,\r\n onClick: PropTypes.func.isRequired,\r\n ariaLabel: PropTypes.string,\r\n className: PropTypes.string,\r\n};\r\n\r\nInfoPaneItemExternalLink.defaultProps = {\r\n ariaLabel: '',\r\n className: '',\r\n};\r\n","import { getSharedIconBoxStyle } from './shared-icon-box-style';\r\nimport { ellipsisText } from './shared-ellipsis-text-style';\r\n\r\nexport const getInfoPaneItemRenameStyle = (components, { palette = {}, iconFontFamily = 'MsAds MDL2 Assets' } = {}) => ({\r\n nameContentBox: {\r\n position: 'relative',\r\n },\r\n nameBox: {\r\n width: '100%',\r\n },\r\n editNameBox: {\r\n paddingBottom: '16px',\r\n },\r\n editWrapper: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n fontFamily: iconFontFamily,\r\n },\r\n editContent: {\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 600,\r\n fontSize: 14,\r\n lineHeight: '19px',\r\n color: '#484644',\r\n marginRight: 16,\r\n wordBreak: 'break-all',\r\n ...ellipsisText(),\r\n },\r\n icon: {\r\n color: palette.themePrimary,\r\n fontSize: '16px',\r\n lineHeight: '16px',\r\n padding: 0,\r\n background: 'transparent',\r\n border: 'none',\r\n pointerEvents: 'auto',\r\n },\r\n editIcon: {\r\n '&:before': {\r\n content: '\"\\\\E70F\"',\r\n },\r\n },\r\n addNameBox: {\r\n ...getSharedIconBoxStyle({ palette }),\r\n width: 146,\r\n marginTop: 4,\r\n marginBottom: 16,\r\n },\r\n addIcon: {\r\n fontFamily: iconFontFamily,\r\n color: palette.themeDarkAlt,\r\n '&:before': {\r\n content: '\"\\\\E710\"',\r\n },\r\n },\r\n addText: {\r\n marginLeft: '8px',\r\n fontFamily: 'Segoe UI',\r\n fontWeight: 400,\r\n fontSize: 14,\r\n lineHeight: '20px',\r\n color: palette.themeDarkAlt,\r\n },\r\n textField: {\r\n width: 300,\r\n marginRight: 12,\r\n },\r\n completeIcon: {\r\n marginRight: 16,\r\n '&:before': {\r\n content: '\"\\\\E8FB\"',\r\n },\r\n },\r\n cancelIcon: {\r\n '&:before': {\r\n content: '\"\\\\E711\"',\r\n },\r\n },\r\n disabledIcon: {\r\n color: palette.neutralTertiary,\r\n },\r\n});\r\n","import React, { useState, useCallback, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { keyCode } from '@bingads-webui/keycode';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { TextField } from '@bingads-webui-react/fabric-control';\r\n\r\nimport { getInfoPaneItemRenameStyle } from './styles/info-pane-item-rename-style';\r\n\r\nconst spinnerStyle = ({\r\n position: 'absolute',\r\n top: 0,\r\n left: 0,\r\n width: '100%',\r\n height: '100%',\r\n});\r\n\r\nexport const InfoPaneItemRename = ({\r\n i18n,\r\n isReadonly,\r\n name,\r\n renameAsync,\r\n renderBlocker,\r\n promptInputLabel,\r\n inputPlaceholderText,\r\n}) => {\r\n const classes = useDefaultStyles(getInfoPaneItemRenameStyle);\r\n\r\n const [displayInputBox, setDisplayInputBox] = useState(false);\r\n const [inputName, setInputName] = useState('');\r\n const [showUiBlocker, setShowUiBlocker] = useState(false);\r\n\r\n useEffect(() => {\r\n setDisplayInputBox(false);\r\n setShowUiBlocker(false);\r\n setInputName(name);\r\n }, [name]);\r\n\r\n const handleRename = useCallback(() => {\r\n setShowUiBlocker(true);\r\n renameAsync(inputName).finally(() => {\r\n setShowUiBlocker(false);\r\n setDisplayInputBox(false);\r\n });\r\n }, [inputName, renameAsync]);\r\n\r\n const handleDisplayInputBox = useCallback(() => {\r\n setInputName(name || '');\r\n setDisplayInputBox(true);\r\n }, [name]);\r\n\r\n const handleCancel = useCallback(() => {\r\n setInputName('');\r\n setDisplayInputBox(false);\r\n }, []);\r\n\r\n const onEnterPress = useCallback((event) => {\r\n if (event && event.keyCode === keyCode.Enter && inputName !== name) {\r\n handleRename();\r\n }\r\n }, [handleRename, inputName, name]);\r\n\r\n const onBlur = useCallback((event) => {\r\n if (!event.relatedTarget || (\r\n !event.relatedTarget.classList.contains('complete-rename') && !event.relatedTarget.classList.contains(classes.editWrapper)\r\n )) {\r\n setDisplayInputBox(false);\r\n }\r\n }, [classes.editWrapper]);\r\n\r\n return (\r\n
\r\n {\r\n name || displayInputBox ?\r\n
\r\n {\r\n displayInputBox ?\r\n
\r\n { setInputName(input); }}\r\n maxLength={512}\r\n autoFocus\r\n onKeyDown={onEnterPress}\r\n onBlur={onBlur}\r\n />\r\n \r\n \r\n
:\r\n
\r\n
{name}
\r\n \r\n
\r\n }\r\n
:\r\n \r\n \r\n
\r\n {promptInputLabel}\r\n
\r\n \r\n }\r\n {\r\n showUiBlocker && renderBlocker({ spinnerStyle })\r\n }\r\n
\r\n );\r\n};\r\n\r\nInfoPaneItemRename.propTypes = {\r\n name: PropTypes.string.isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n isReadonly: PropTypes.bool.isRequired,\r\n renameAsync: PropTypes.func.isRequired,\r\n renderBlocker: PropTypes.func.isRequired,\r\n promptInputLabel: PropTypes.string.isRequired,\r\n inputPlaceholderText: PropTypes.string.isRequired,\r\n};\r\n","import React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { PrimaryButton, DefaultButton } from '@bingads-webui-react/fabric-control';\r\nimport { withRawStyles } from '@bingads-webui-react/with-raw-styles';\r\n\r\nimport { getActionButtonRawStyles } from '../styles/tiles-grid-cell-action-button-style';\r\n\r\nconst ActionButton = ({\r\n text, iconName, onClick, className, primary, styles,\r\n}) => {\r\n const iconProps = useMemo(() => ({ iconName }), [iconName]);\r\n\r\n const Button = primary ? PrimaryButton : DefaultButton;\r\n return (\r\n \r\n );\r\n};\r\n\r\nActionButton.propTypes = {\r\n text: PropTypes.string.isRequired,\r\n iconName: PropTypes.string.isRequired,\r\n onClick: PropTypes.func.isRequired,\r\n className: PropTypes.string,\r\n primary: PropTypes.bool,\r\n // injected\r\n styles: PropTypes.shape().isRequired,\r\n};\r\n\r\nActionButton.defaultProps = {\r\n className: undefined,\r\n primary: true,\r\n};\r\n\r\nexport const TilesGridCellActionButton\r\n = withRawStyles(ActionButton, getActionButtonRawStyles);\r\n","export const getActionButtonRawStyles = () => ({\r\n root: {\r\n borderRadius: 999,\r\n fontSize: 13,\r\n fontStyle: 'normal',\r\n fontWeight: 400,\r\n borderWidth: 0,\r\n margin: 6,\r\n backgroundColor: 'rgb(255,255,255,0.2)',\r\n },\r\n});\r\n","const positionFill = {\r\n position: 'absolute',\r\n left: 0,\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n};\r\n\r\nexport const getTilesGridCellImageStyles = () => ({\r\n tilesGridCellImageContainer: {\r\n ...positionFill,\r\n\r\n '& .cell-image-state': {\r\n ...positionFill,\r\n display: 'flex',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n },\r\n },\r\n imageStateOverlayClass: {\r\n position: 'absolute',\r\n width: '100%',\r\n height: '100%',\r\n top: 0,\r\n left: 0,\r\n },\r\n stateParent: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n width: '100%',\r\n height: '100%',\r\n },\r\n reloadBtn: {\r\n zIndex: 1,\r\n },\r\n});\r\n","import React, { useCallback, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { noop } from 'underscore';\r\nimport classnames from 'classnames';\r\n\r\nimport { Image as FluentImage, ImageFit, ImageLoadState } from '@bingads-webui-react/fabric-control';\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport {\r\n TilesGridCellActionButton as ActionButton,\r\n} from './tiles-grid-cell-action-button';\r\n\r\nimport { getTilesGridCellImageStyles } from '../styles/tiles-grid-cell-image';\r\n\r\nconst RETRY_COUNT = 3;\r\nconst RETRY_DEALY = 1000;\r\n\r\nconst CellImage = ({\r\n src,\r\n alt,\r\n showSpinner,\r\n onLoaded,\r\n onError,\r\n i18n,\r\n onClick,\r\n enableRetry,\r\n classes,\r\n onCustomizedSpinner,\r\n imageFit,\r\n}) => {\r\n //\r\n const [imageLoadState, setImageLoadState] = useState(ImageLoadState.notLoaded);\r\n\r\n const onLoadingStateChange = useCallback((s, onLoadError) => {\r\n if (s === ImageLoadState.loaded) {\r\n onLoaded(true);\r\n } else if (s === ImageLoadState.error) {\r\n onLoadError();\r\n // don't set error state until all retrying are failed\r\n return;\r\n }\r\n setImageLoadState(s);\r\n }, [onLoaded]);\r\n\r\n // retry image loading by creating a HTML Image element\r\n const reloadImage = useCallback((onLoadError) => {\r\n const img = new Image();\r\n img.onerror = () => {\r\n onLoadingStateChange(ImageLoadState.error, onLoadError);\r\n };\r\n img.onload = () => {\r\n onLoadingStateChange(ImageLoadState.loaded);\r\n };\r\n onLoadingStateChange(ImageLoadState.notLoaded);\r\n img.src = src;\r\n }, [onLoadingStateChange, src]);\r\n\r\n const onErrorWithRetry = useCallback((retryCount = RETRY_COUNT) => {\r\n if (enableRetry && retryCount > 0) {\r\n setTimeout(() => reloadImage(() => onErrorWithRetry(retryCount - 1)), RETRY_DEALY);\r\n } else {\r\n setImageLoadState(ImageLoadState.error);\r\n if (onError) {\r\n onError();\r\n }\r\n }\r\n }, [enableRetry, onError, reloadImage]);\r\n\r\n const onReloadImage = useCallback((event) => {\r\n if (imageLoadState === ImageLoadState.error) {\r\n reloadImage(onErrorWithRetry);\r\n }\r\n if (event.stopPropagation) { event.stopPropagation(); }\r\n if (event.preventDefault) { event.preventDefault(); }\r\n }, [imageLoadState, onErrorWithRetry, reloadImage]);\r\n\r\n const onImageLoadingStateChange = useCallback((s) => {\r\n onLoadingStateChange(s, onErrorWithRetry);\r\n }, [onErrorWithRetry, onLoadingStateChange]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n {imageLoadState === ImageLoadState.notLoaded && showSpinner && (onCustomizedSpinner ?\r\n onCustomizedSpinner() : ())\r\n }\r\n { imageLoadState === ImageLoadState.error && (\r\n \r\n )}\r\n
\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nCellImage.propTypes = {\r\n src: PropTypes.string.isRequired,\r\n alt: PropTypes.string.isRequired,\r\n showSpinner: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n onLoaded: PropTypes.func,\r\n onError: PropTypes.func,\r\n onClick: PropTypes.func,\r\n onCustomizedSpinner: PropTypes.func,\r\n enableRetry: PropTypes.bool,\r\n classes: PropTypes.shape({\r\n tilesGridCellImageContainer: PropTypes.string,\r\n containerClass: PropTypes.string,\r\n imageClass: PropTypes.string,\r\n imageStateOverlayClass: PropTypes.string,\r\n stateParent: PropTypes.string,\r\n reloadBtn: PropTypes.string,\r\n }).isRequired,\r\n imageFit: PropTypes.number,\r\n};\r\n\r\nCellImage.defaultProps = {\r\n showSpinner: true,\r\n onLoaded: noop,\r\n onError: noop,\r\n onClick: noop,\r\n enableRetry: true,\r\n onCustomizedSpinner: undefined,\r\n imageFit: ImageFit.cover,\r\n};\r\n\r\nexport const TilesGridCellImage = withDefaultStyles(CellImage, getTilesGridCellImageStyles);\r\n","export const videoIcon = \"data:image/svg+xml,%3Csvg width='14' height='12' viewBox='0 0 14 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3C1 2.17157 1.67157 1.5 2.5 1.5H8.5C9.32843 1.5 10 2.17157 10 3V9C10 9.82843 9.32843 10.5 8.5 10.5H2.5C1.67157 10.5 1 9.82843 1 9V3ZM2.5 0.5C1.11929 0.5 0 1.61929 0 3V9C0 10.3807 1.11929 11.5 2.5 11.5H8.5C9.88071 11.5 11 10.3807 11 9V8.49943L12.7999 9.84997C13.2943 10.221 14 9.86819 14 9.25008V2.75496C14 2.13743 13.2954 1.78451 12.8009 2.15432L11 3.50093V3C11 1.61929 9.88071 0.5 8.5 0.5H2.5ZM11 4.74959L13 3.25407V8.74993L11 7.24921V4.74959Z' fill='white'/%3E%3C/svg%3E%0A\";\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { Icon } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { videoIcon } from '../../asset-images';\r\n\r\nimport { getGridDecorativeLabelStyle } from '../styles/tiles-grid-cell-decorative-label';\r\n\r\nconst CellDecorativeLabel = ({\r\n text,\r\n iconName,\r\n secondaryText,\r\n classes,\r\n additionaIconName,\r\n additionalText,\r\n}) => (\r\n
\r\n {\r\n (text || iconName) && (\r\n
\r\n {iconName && }\r\n {text &&
{text}
}\r\n
\r\n )\r\n }\r\n {secondaryText &&
{secondaryText}
}\r\n {\r\n additionaIconName && (\r\n
\r\n \"\"\r\n
\r\n )\r\n }\r\n {\r\n additionalText && (\r\n
\r\n
{additionalText}
\r\n
\r\n )\r\n }\r\n
\r\n);\r\n\r\nCellDecorativeLabel.propTypes = {\r\n text: PropTypes.string,\r\n iconName: PropTypes.string.isRequired,\r\n additionaIconName: PropTypes.string,\r\n secondaryText: PropTypes.string,\r\n classes: PropTypes.shape({\r\n cellLabel: PropTypes.string,\r\n iconTextWrapper: PropTypes.string,\r\n tilesGridCellDecorativeLabel: PropTypes.string,\r\n cellLabelDisplay: PropTypes.string,\r\n }),\r\n additionalText: PropTypes.string,\r\n};\r\n\r\nCellDecorativeLabel.defaultProps = {\r\n text: null,\r\n secondaryText: '',\r\n classes: {},\r\n additionalText: null,\r\n additionaIconName: null,\r\n};\r\n\r\nexport const TilesGridCellDecorativeLabel\r\n = withDefaultStyles(CellDecorativeLabel, getGridDecorativeLabelStyle);\r\n","export const getGridDecorativeLabelStyle = (components, { palette = {} } = {}) => ({\r\n tilesGridCellDecorativeLabel: {\r\n color: palette.white,\r\n fontWeight: 600,\r\n fontSize: 12,\r\n lineHeight: '16px',\r\n\r\n '& .label-icon-and-text': {\r\n display: 'flex',\r\n borderRadius: 4,\r\n padding: [4, 8, 4, 6],\r\n marginRight: 6,\r\n // background: 'linear-gradient(158.29deg, #0078D4 16.69%, #4400D4 85.76%)',\r\n background: palette.neutralPrimary,\r\n '& .label-icon': {\r\n marginRight: 6,\r\n },\r\n },\r\n\r\n '& .label-secondary-text': {\r\n position: 'relative',\r\n left: -10,\r\n opacity: 0,\r\n transition: 'opacity 0.5s 0.1s, transform 0.3s 0.1s',\r\n },\r\n\r\n '& .additional-icon-content': {\r\n width: 25,\r\n height: 24,\r\n background: 'rgb(50,49,48, 0.6)',\r\n borderRadius: 4,\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n display: 'flex',\r\n marginRight: 8,\r\n position: 'absolute',\r\n right: 50,\r\n '& .additional-icon': {\r\n width: 17,\r\n },\r\n },\r\n\r\n '& .label-additional-text': {\r\n position: 'absolute',\r\n right: 0,\r\n '& .label-additional-content': {\r\n background: palette.neutralPrimary,\r\n float: 'right',\r\n padding: 4,\r\n borderRadius: 4,\r\n },\r\n },\r\n },\r\n\r\n cellLabelDisplay: {\r\n display: 'flex',\r\n alignItems: 'center',\r\n },\r\n});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Icon } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getGridDecorativeIconStyle } from '../styles/tiles-grid-cell-decorative-icon';\r\n\r\nconst CellDecorativeIcon = ({\r\n iconName,\r\n classes,\r\n i18n,\r\n}) => (\r\n
\r\n
\r\n \r\n {i18n.getString(_TL_('Video'))}\r\n
\r\n
\r\n);\r\n\r\nCellDecorativeIcon.propTypes = {\r\n iconName: PropTypes.string.isRequired,\r\n classes: PropTypes.shape({\r\n centerContainer: PropTypes.string,\r\n circleContainer: PropTypes.string,\r\n iconContent: PropTypes.string,\r\n labelName: PropTypes.string,\r\n }),\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n};\r\n\r\nCellDecorativeIcon.defaultProps = {\r\n classes: {},\r\n};\r\n\r\nexport const TilesGridCellDecorativeIcon\r\n = withDefaultStyles(CellDecorativeIcon, getGridDecorativeIconStyle);\r\n","export const getGridDecorativeIconStyle = (components, { palette = {} } = {}) => ({\r\n centerContainer: {\r\n position: 'absolute',\r\n top: '50%',\r\n left: '50%',\r\n transform: 'translate(-50%, -50%)',\r\n },\r\n circleContainer: {\r\n width: 80,\r\n height: 41,\r\n background: 'rgb(50,49,48, 0.6)',\r\n borderRadius: 4,\r\n boxShadow: '0px 4px 16px rgb(0 0 0 / 14%)',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center',\r\n },\r\n iconContent: {\r\n fontSize: 20,\r\n color: palette.white,\r\n },\r\n labelName: {\r\n fontSize: 16,\r\n color: palette.white,\r\n marginLeft: 5,\r\n },\r\n});\r\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nexport const TilesGridLoadingCell = ({\r\n onLoading, containerClass, children,\r\n}) => {\r\n const gridCellContent = useRef(null);\r\n const [hasSetUpObserver, setHasSetUpObserver] = useState(false);\r\n const onLoadingCalled = useRef(false);\r\n\r\n const observer = useMemo(() => {\r\n onLoadingCalled.current = false;\r\n if (window.IntersectionObserver && onLoading) {\r\n return new IntersectionObserver((entries) => {\r\n const [entry] = entries || [];\r\n\r\n if (entry && entry.isIntersecting && onLoading && !onLoadingCalled.current) {\r\n onLoading();\r\n onLoadingCalled.current = true;\r\n\r\n if (entry && entry.target) {\r\n observer.unobserve(entry.target);\r\n }\r\n }\r\n }, {\r\n root: null,\r\n rootMargin: '0px',\r\n threshold: 0.0,\r\n });\r\n }\r\n return null;\r\n }, [onLoading]);\r\n\r\n useEffect(() => {\r\n if (observer && gridCellContent.current && !hasSetUpObserver) {\r\n observer.observe(gridCellContent.current);\r\n setHasSetUpObserver(true);\r\n }\r\n }, [observer, gridCellContent, hasSetUpObserver]);\r\n\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n};\r\n\r\nTilesGridLoadingCell.propTypes = {\r\n onLoading: PropTypes.func,\r\n children: PropTypes.node,\r\n containerClass: PropTypes.string,\r\n};\r\n\r\nTilesGridLoadingCell.defaultProps = {\r\n onLoading: null,\r\n children: null,\r\n containerClass: undefined,\r\n};\r\n","const positionFill = {\r\n position: 'absolute',\r\n left: 0,\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n};\r\n\r\nexport const getCellOverlayStyle = () => ({\r\n cellOverlayContainer: {\r\n ...positionFill,\r\n display: 'flex',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n background: 'linear-gradient(180deg, rgba(49, 34, 34, 0.3) 0%, rgba(49, 34, 34, 0.8) 53.12%, #312222 100%)',\r\n opacity: 0,\r\n transition: 'opacity 0.2s ease-out',\r\n borderRadius: 6,\r\n },\r\n});\r\n","\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getCellOverlayStyle } from '../styles/tiles-grid-cell-overlay-style';\r\n\r\nconst CellOverlay = ({ children, classes }) => (\r\n
\r\n {children}\r\n
\r\n);\r\n\r\nCellOverlay.propTypes = {\r\n children: PropTypes.node,\r\n classes: PropTypes.shape({\r\n cellOverlayContainer: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nCellOverlay.defaultProps = {\r\n children: null,\r\n};\r\n\r\nexport const TilesGridCellOverlay = withDefaultStyles(CellOverlay, getCellOverlayStyle);\r\n","const getCommonCellCardStyle = palette => ({\r\n position: 'relative',\r\n flexShrink: 1,\r\n flexGrow: 1,\r\n borderRadius: 6,\r\n backgroundColor: palette.neutralLight,\r\n filter: 'drop-shadow(0px 0.6px 1.8px rgba(0, 0, 0, 0.1)) drop-shadow(0px 3.2px 7.2px rgba(0, 0, 0, 0.13))',\r\n});\r\n\r\nexport const getCellCardStyle = (components, { palette = {} } = {}) => ({\r\n cellCardContainer: {\r\n ...getCommonCellCardStyle(palette),\r\n },\r\n});\r\n\r\nexport const getCellCardWithOverlayStyle = (components, { palette = {} } = {}) => {\r\n const activeStyle = {\r\n '& .cell-overlay': {\r\n opacity: 1,\r\n\r\n '& .cell-overlay-actions': {\r\n opacity: 1,\r\n transform: 'translate(0px, -10px)',\r\n },\r\n },\r\n '& .cell-decorative-label-container': {\r\n '& .label-secondary-text': {\r\n opacity: 1,\r\n transform: 'translate(10px, 0px)',\r\n },\r\n },\r\n };\r\n return {\r\n cellCardContainer: getCommonCellCardStyle(palette),\r\n\r\n cellCardContainerOverflow: {\r\n overflow: 'hidden',\r\n },\r\n\r\n cellCardWithOverlayContainer: {\r\n '& .cell-overlay-actions': {\r\n display: 'flex',\r\n flex: 1,\r\n flexDirection: 'row',\r\n justifyContent: 'center',\r\n alignItems: 'center',\r\n height: '100%',\r\n position: 'relative',\r\n opacity: 0.2,\r\n top: 10,\r\n transition: 'opacity 0.5s 0.1s, transform 0.3s 0.1s',\r\n },\r\n\r\n '& .static-cell-overlay-items': {\r\n position: 'absolute',\r\n top: 0,\r\n left: 0,\r\n right: 0,\r\n button: 0,\r\n },\r\n\r\n '&:hover': activeStyle,\r\n },\r\n focused: activeStyle,\r\n };\r\n};\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { keyCode } from '@bingads-webui/keycode';\r\n\r\nimport { TilesGridCellOverlay } from './tiles-grid-cell-overlay';\r\nimport {\r\n getCellCardStyle,\r\n getCellCardWithOverlayStyle,\r\n} from '../styles/tiles-grid-cell-card-style';\r\n\r\nconst CellCardWithOverlay = ({\r\n children,\r\n isOverlayEnabled,\r\n isCellFocused,\r\n renderOverlayContent,\r\n renderStaticOverlayContent,\r\n onClick,\r\n customCellCardClass,\r\n classes,\r\n}) => {\r\n const onClickFunc = (event) => {\r\n if (onClick) {\r\n onClick();\r\n }\r\n if (event.stopPropagation) { event.stopPropagation(); }\r\n if (event.preventDefault) { event.preventDefault(); }\r\n };\r\n\r\n const onKeyDown = (event) => {\r\n if (event.keyCode === keyCode.Enter) {\r\n onClickFunc();\r\n }\r\n };\r\n\r\n return (\r\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\r\n \r\n {children}\r\n {isOverlayEnabled && (\r\n \r\n
\r\n {renderOverlayContent ? renderOverlayContent() : null}\r\n
\r\n { renderStaticOverlayContent ?\r\n
\r\n {renderStaticOverlayContent()}\r\n
\r\n : null}\r\n
\r\n )}\r\n
\r\n );\r\n};\r\n\r\nCellCardWithOverlay.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n renderOverlayContent: PropTypes.func,\r\n renderStaticOverlayContent: PropTypes.func,\r\n isOverlayEnabled: PropTypes.bool,\r\n isCellFocused: PropTypes.bool,\r\n onClick: PropTypes.func,\r\n customCellCardClass: PropTypes.string,\r\n classes: PropTypes.shape({\r\n containerClass: PropTypes.string,\r\n cellCardContainer: PropTypes.string,\r\n cellCardWithOverlayContainer: PropTypes.string,\r\n cellCardContainerOverflow: PropTypes.string,\r\n focused: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nCellCardWithOverlay.defaultProps = {\r\n isOverlayEnabled: true,\r\n isCellFocused: false,\r\n renderOverlayContent: null,\r\n renderStaticOverlayContent: null,\r\n customCellCardClass: undefined,\r\n onClick: undefined,\r\n};\r\n\r\nconst CellCard = ({ children, classes, customCellCardClass }) => (\r\n
\r\n {children}\r\n
\r\n);\r\n\r\nCellCard.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n customCellCardClass: PropTypes.string,\r\n classes: PropTypes.shape({\r\n containerClass: PropTypes.string,\r\n cellCardContainer: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nCellCard.defaultProps = {\r\n customCellCardClass: undefined,\r\n};\r\n\r\nexport const TilesGridCellCard = withDefaultStyles(CellCard, getCellCardStyle);\r\nexport const TilesGridCellCardWithOverlay = withDefaultStyles(CellCardWithOverlay, getCellCardWithOverlayStyle);\r\n","import { DEFAULT_PAGE_SIZE } from '@bingads-webui-campaign-react/asset-library-model';\r\n\r\nconst ROW_HEIGHT = 275;\r\nconst MAX_COLUMN_WIDTH = 350;\r\nconst MIN_COLUMN_WIDTH = 250;\r\nconst DEFAULT_ASPECT_RATIO = 0.9;\r\n\r\nexport const DEFAULT_CONFIG = {\r\n // if this value is set, rowHeight vallue is ignored, and\r\n // the row height is calculated by columnWidth * aspectRatio\r\n aspectRatio: DEFAULT_ASPECT_RATIO,\r\n maxColumnWidth: MAX_COLUMN_WIDTH,\r\n minColumnWidth: MIN_COLUMN_WIDTH,\r\n rowHeight: ROW_HEIGHT,\r\n preferredCellsPerPage: DEFAULT_PAGE_SIZE,\r\n};\r\n","/* eslint-disable max-len */\r\nimport _ from 'underscore';\r\nimport classnames from 'classnames';\r\nimport React, { useCallback, useMemo, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { List, FocusZone } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { AssetLibrarySpinner } from '@bingads-webui-campaign-react/asset-library-spinner';\r\n\r\nimport { TilesGridLoadingCell } from './grid-cells/tiles-grid-loading-cell';\r\nimport { getTilesGridStyle } from './styles/tiles-grid-style';\r\nimport { DEFAULT_CONFIG } from './default-grid-config';\r\n\r\n// export to do UT\r\nexport function calcColumnWidth(surfaceWidth, maxColumnWidth, minColumnWidth) {\r\n const colCntOfMaxWidth = Math.ceil(surfaceWidth / maxColumnWidth);\r\n const colCntOfMinWidth = Math.floor(surfaceWidth / minColumnWidth);\r\n let columnCount = Math.min(colCntOfMaxWidth, colCntOfMinWidth) || 1;\r\n let columnWidth = Math.floor(surfaceWidth / columnCount);\r\n columnWidth = Math.min(Math.max(minColumnWidth, columnWidth), maxColumnWidth);\r\n columnCount = Math.floor(surfaceWidth / columnWidth) || 1;\r\n return [columnWidth, columnCount];\r\n}\r\n\r\nconst LOADING_CELL = {};\r\nconst FIRST_LOADING_CELL = {};\r\n\r\nconst TilesGridInternal = ({\r\n items,\r\n itemKey,\r\n totalItemCount,\r\n onRenderCell,\r\n onRenderLoadingCell,\r\n loadNextPage,\r\n config,\r\n classes,\r\n dimensions,\r\n setDimensions,\r\n gridSize,\r\n version,\r\n ariaLabel,\r\n}) => {\r\n // use dimensions to force grid updates by deafult\r\n const gridVersion = version || dimensions;\r\n\r\n const getItemCountForPage = useCallback((itemIndex, surfaceRect) => {\r\n let cc = dimensions.colCount;\r\n // avoid shaking caused by vertical scroll bar\r\n const surfaceWidthChanges = Math.abs((dimensions.surfaceWidth || 0) - surfaceRect.width);\r\n if (itemIndex === 0 && surfaceWidthChanges > 20) {\r\n // respect to min & max column width\r\n const [colWidth, colCount] = calcColumnWidth(surfaceRect.width, config.maxColumnWidth, config.minColumnWidth);\r\n setDimensions((cur) => {\r\n if (colWidth !== cur.colWidth || colCount !== cur.colCount || surfaceRect.width !== cur.surfaceWidth) {\r\n return { colWidth, colCount, surfaceWidth: surfaceRect.width };\r\n }\r\n return cur;\r\n });\r\n cc = colCount;\r\n }\r\n const rowsPerPage = Math.ceil(config.preferredCellsPerPage / cc);\r\n return rowsPerPage * cc;\r\n }, [dimensions, config, setDimensions]);\r\n\r\n const getPageHeight = useCallback(() => {\r\n const rowsPerPage = Math.ceil(config.preferredCellsPerPage / dimensions.colCount);\r\n return rowsPerPage * gridSize.rowHeight;\r\n }, [config.preferredCellsPerPage, dimensions.colCount, gridSize.rowHeight]);\r\n\r\n // insert a clearfix for each page\r\n const getPageStyle = useCallback(() => ({ overflow: 'auto' }), []);\r\n\r\n const onLoadingNextPage = useCallback(() => {\r\n if (loadNextPage) {\r\n loadNextPage();\r\n }\r\n }, [loadNextPage]);\r\n\r\n const onRenderCellImpl = useCallback((item, index) => {\r\n let cell = null;\r\n if (item === FIRST_LOADING_CELL) {\r\n if (onRenderLoadingCell) {\r\n cell = onRenderLoadingCell({ item, index, onLoading: onLoadingNextPage });\r\n } else {\r\n cell = ();\r\n }\r\n } else if (item === LOADING_CELL) {\r\n if (onRenderLoadingCell) {\r\n cell = onRenderLoadingCell({ item, index });\r\n } else {\r\n cell = ();\r\n }\r\n } else {\r\n cell = onRenderCell({ item, index });\r\n }\r\n return (\r\n
\r\n {cell}\r\n
\r\n );\r\n }, [onLoadingNextPage, onRenderCell, onRenderLoadingCell]);\r\n\r\n const allItems = useMemo(() => {\r\n if (items && items.length < totalItemCount) {\r\n const rowsPerPage = Math.ceil(config.preferredCellsPerPage / dimensions.colCount);\r\n const preferredCellsPerPage = rowsPerPage * dimensions.colCount;\r\n const paddingCount = Math.min(totalItemCount - items.length, preferredCellsPerPage);\r\n if (paddingCount > 1) {\r\n return [\r\n ...items,\r\n FIRST_LOADING_CELL,\r\n ...Array(paddingCount - 1).fill(LOADING_CELL),\r\n ];\r\n }\r\n return [...items, FIRST_LOADING_CELL];\r\n }\r\n return items;\r\n }, [config, dimensions.colCount, items, totalItemCount]);\r\n\r\n const getItemKey = useCallback(item => item[itemKey], [itemKey]);\r\n\r\n // override this method to set width/height on the cell container\r\n // almost same as the original implementation here: https://github.com/microsoft/fluentui/blob/master/packages/react/src/components/List/List.tsx#L600\r\n const onRenderPage = useCallback((pageProps) => {\r\n const {\r\n page: { items: gridItems = [], startIndex },\r\n ...divProps\r\n } = pageProps;\r\n\r\n const cells = [];\r\n\r\n for (let i = 0; i < gridItems.length; i += 1) {\r\n const index = startIndex + i;\r\n const item = gridItems[i];\r\n const cellKey = getItemKey(item, index) || (item && item.key) || index;\r\n const cell = onRenderCellImpl(item, index);\r\n if (cell) {\r\n const cellWithContainer = (\r\n \r\n {cell}\r\n
\r\n );\r\n cells.push(cellWithContainer);\r\n }\r\n }\r\n return
{cells}
;\r\n }, [getItemKey, gridSize.colWidth, gridSize.rowHeight, onRenderCellImpl]);\r\n\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nTilesGridInternal.propTypes = {\r\n itemKey: PropTypes.string.isRequired,\r\n items: PropTypes.arrayOf(PropTypes.shape({})),\r\n totalItemCount: PropTypes.number, // total item count, including not loaded items\r\n loadNextPage: PropTypes.func,\r\n onRenderCell: PropTypes.func.isRequired,\r\n onRenderLoadingCell: PropTypes.func,\r\n config: PropTypes.shape({\r\n aspectRatio: PropTypes.number,\r\n maxColumnWidth: PropTypes.number,\r\n minColumnWidth: PropTypes.number,\r\n rowHeight: PropTypes.number,\r\n preferredCellsPerPage: PropTypes.number,\r\n }),\r\n dimensions: PropTypes.shape({\r\n colCount: PropTypes.number,\r\n colWidth: PropTypes.number,\r\n surfaceWidth: PropTypes.number,\r\n }).isRequired,\r\n setDimensions: PropTypes.func.isRequired,\r\n gridSize: PropTypes.shape({\r\n colWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\r\n rowHeight: PropTypes.number,\r\n }).isRequired,\r\n version: PropTypes.shape({}),\r\n\r\n // injected styles\r\n classes: PropTypes.shape({\r\n tilesGridContainer: PropTypes.string,\r\n }).isRequired,\r\n ariaLabel: PropTypes.string,\r\n};\r\n\r\nTilesGridInternal.defaultProps = {\r\n items: [],\r\n totalItemCount: 0,\r\n loadNextPage: null,\r\n onRenderLoadingCell: null,\r\n config: DEFAULT_CONFIG,\r\n version: undefined,\r\n ariaLabel: '',\r\n};\r\n\r\nexport const TilesGridStateless = withDefaultStyles(TilesGridInternal, getTilesGridStyle);\r\n\r\nexport const TilesGrid = ({ items, config, ...rest }) => {\r\n const [dimensions, setDimensions] = useState({\r\n colCount: 1,\r\n colWidth: config.maxColumnWidth,\r\n surfaceWidth: 0,\r\n });\r\n\r\n const gridSize = useMemo(() => {\r\n let finalColWidth;\r\n let rowHeight;\r\n if (!_.isEmpty(items) && items.length < dimensions.colCount) {\r\n // use max width if items are not enough to fill a row\r\n finalColWidth = config.maxColumnWidth;\r\n rowHeight = config.aspectRatio ? config.maxColumnWidth * config.aspectRatio : config.rowHeight;\r\n } else {\r\n finalColWidth = dimensions.surfaceWidth > 0 ? `${100 * (dimensions.colWidth / dimensions.surfaceWidth)}%` : dimensions.colWidth;\r\n rowHeight = config.aspectRatio ? dimensions.colWidth * config.aspectRatio : config.rowHeight;\r\n }\r\n return { colWidth: finalColWidth, rowHeight };\r\n }, [config, dimensions, items]);\r\n\r\n return ();\r\n};\r\n\r\nTilesGrid.propTypes = {\r\n items: PropTypes.arrayOf(PropTypes.shape({})),\r\n totalItemCount: PropTypes.number, // total item count, including not loaded items\r\n loadNextPage: PropTypes.func,\r\n onRenderCell: PropTypes.func.isRequired,\r\n onRenderLoadingCell: PropTypes.func,\r\n config: PropTypes.shape({\r\n aspectRatio: PropTypes.number,\r\n maxColumnWidth: PropTypes.number,\r\n minColumnWidth: PropTypes.number,\r\n rowHeight: PropTypes.number,\r\n preferredCellsPerPage: PropTypes.number,\r\n }),\r\n version: PropTypes.shape({}), // used to force grid update\r\n};\r\n\r\nTilesGrid.defaultProps = {\r\n items: [],\r\n totalItemCount: 0,\r\n loadNextPage: null,\r\n onRenderLoadingCell: null,\r\n config: DEFAULT_CONFIG,\r\n version: undefined,\r\n};\r\n","export const getTilesGridStyle = () => ({\r\n tilesGridContainer: {\r\n // grid styles\r\n '& .tiles-grid': {\r\n overflow: 'hidden',\r\n position: 'relative',\r\n '& .ms-List-page': {\r\n overflowX: 'hidden',\r\n },\r\n },\r\n\r\n '& .tiles-grid-list-cell': {\r\n float: 'left', // make the cells shown as grid style\r\n },\r\n\r\n // cell styles\r\n '& .tiles-grid-cell': {\r\n position: 'relative',\r\n boxSizing: 'border-box',\r\n width: '100%',\r\n height: '100%',\r\n },\r\n },\r\n});\r\n","/* eslint-disable max-len */\r\nimport _ from 'underscore';\r\nimport React, { useCallback, useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { TilesGrid } from './tiles-grid';\r\n\r\nfunction findItem(items, itemToFind, itemKey) {\r\n return _.find(items, item => item[itemKey] === itemToFind[itemKey]);\r\n}\r\n\r\nfunction addItem(items, itemToAdd, itemKey) {\r\n if (!findItem(items, itemToAdd, itemKey)) {\r\n return [[...items, itemToAdd], true];\r\n }\r\n return [items, false];\r\n}\r\n\r\nfunction removeItem(items, itemToRemove, itemKey) {\r\n if (findItem(items, itemToRemove, itemKey)) {\r\n return [_.filter(items, item => item[itemKey] !== itemToRemove[itemKey]), true];\r\n }\r\n return [items, false];\r\n}\r\n\r\nexport const MultiSelectionGrid = ({\r\n itemKey,\r\n onSelectionChange,\r\n onRenderCell,\r\n items,\r\n selectedItems: propSelectedItems,\r\n ...rest\r\n}) => {\r\n const selectedItems = useMemo(() => propSelectedItems || [], [propSelectedItems]);\r\n\r\n // force to re-render when selection changed\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n const allItems = useMemo(() => ([...items || []]), [items, selectedItems]);\r\n\r\n const selectItem = useCallback((item, selected) => {\r\n const action = selected ? addItem : removeItem;\r\n const [newSelectedItems, updated] = action(selectedItems, item, itemKey);\r\n if (updated) {\r\n if (onSelectionChange) {\r\n onSelectionChange({ item, selected, selectedItems: newSelectedItems });\r\n }\r\n }\r\n }, [itemKey, onSelectionChange, selectedItems]);\r\n\r\n const onRenderCellImpl = useCallback(({ item, index }) => {\r\n const selected = !!findItem(selectedItems, item, itemKey);\r\n const fnSelectItem = _.partial(selectItem, item);\r\n return onRenderCell({\r\n item, index, selected, selectItem: fnSelectItem,\r\n });\r\n }, [itemKey, onRenderCell, selectItem, selectedItems]);\r\n\r\n return ;\r\n};\r\n\r\nMultiSelectionGrid.propTypes = {\r\n itemKey: PropTypes.string,\r\n items: PropTypes.arrayOf(PropTypes.shape({})),\r\n selectedItems: PropTypes.arrayOf(PropTypes.shape({})),\r\n onSelectionChange: PropTypes.func,\r\n onRenderCell: PropTypes.func.isRequired,\r\n};\r\n\r\nMultiSelectionGrid.defaultProps = {\r\n itemKey: 'id',\r\n items: [],\r\n selectedItems: [],\r\n onSelectionChange: undefined,\r\n};\r\n","export const getSectionTilesGridStyle = () => ({\r\n sectionTilesGridContainer: {\r\n '& .section-title': {\r\n fontStyle: 'normal',\r\n fontWeight: 600,\r\n fontSize: 14,\r\n lineHeight: '24px',\r\n // color: palette.neutralPrimary,\r\n\r\n marginBottom: 12,\r\n marginLeft: 12,\r\n },\r\n },\r\n});\r\n","import _ from 'underscore';\r\nimport React, { useEffect, useMemo, useState, useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { TilesGridStateless } from './tiles-grid';\r\nimport { MultiSelectionGrid } from './multi-selection-grid';\r\nimport { getSectionTilesGridStyle } from './styles/section-tiles-grid-style';\r\nimport { DEFAULT_CONFIG } from './default-grid-config';\r\n\r\nconst SectionTilesGridInternal = ({\r\n sectionData, onRenderCell, onRenderLoadingCell, loadNextPage, multiSelectionEnabled, onSelectionChange, classes, ...otherProps\r\n}) => {\r\n const [dimensions, setDimensions] = useState({\r\n colCount: 1,\r\n colWidth: DEFAULT_CONFIG.maxColumnWidth,\r\n surfaceWidth: 0,\r\n });\r\n\r\n const getGridSize = useCallback((section) => {\r\n const config = section.config || DEFAULT_CONFIG;\r\n let finalColWidth;\r\n let rowHeight;\r\n const { items } = _.max(sectionData, sec => sec.items && sec.items.length) || {};\r\n if (!_.isEmpty(items) && items.length < dimensions.colCount) {\r\n // use max width if items are not enough to fill a row\r\n finalColWidth = config.maxColumnWidth;\r\n rowHeight = config.aspectRatio ? config.maxColumnWidth * config.aspectRatio : config.rowHeight;\r\n } else {\r\n finalColWidth = dimensions.surfaceWidth > 0 ? `${100 * (dimensions.colWidth / dimensions.surfaceWidth)}%` : dimensions.colWidth;\r\n rowHeight = config.aspectRatio ? dimensions.colWidth * config.aspectRatio : config.rowHeight;\r\n }\r\n return { colWidth: finalColWidth, rowHeight };\r\n }, [dimensions, sectionData]);\r\n\r\n //\r\n useEffect(() => {\r\n if (!sectionData || sectionData.length <= 0) {\r\n return;\r\n }\r\n // if any section has 0 items or has fully loaded, load next section\r\n let sectionIndexToLoad = -1;\r\n for (let idx = 0; idx < sectionData.length; idx += 1) {\r\n const { items, totalItemCount } = sectionData[idx];\r\n if (items === null) {\r\n // not loaded yet, load this section\r\n sectionIndexToLoad = idx;\r\n break;\r\n } else if (items.length >= totalItemCount) {\r\n // this section is fully loaded, may need to load next section\r\n // need to further check next sections\r\n sectionIndexToLoad = idx + 1;\r\n } else if (items.length < totalItemCount) {\r\n if (items.length === 0) {\r\n // load this section\r\n sectionIndexToLoad = idx;\r\n } else if (items.length > 0) {\r\n // this section is partially loaded, loading cell will load following pages\r\n sectionIndexToLoad = -1;\r\n }\r\n break;\r\n }\r\n }\r\n\r\n // suppose initial loading of section 0 is triggered outside\r\n if (sectionIndexToLoad > 0) {\r\n const { sectionName } = sectionData[sectionIndexToLoad] || {};\r\n if (sectionName) {\r\n loadNextPage({ sectionName, startLoadingNextSection: true });\r\n }\r\n }\r\n }, [loadNextPage, sectionData]);\r\n\r\n const wrappedSectionData = useMemo(() => sectionData.map(section => ({\r\n loadNextPage: () => {\r\n const { sectionName } = section || {};\r\n // invoke callback prop with sectionName parameter\r\n loadNextPage({ sectionName, startLoadingNextSection: false });\r\n },\r\n onRenderCell: (params) => {\r\n const { sectionName } = section || {};\r\n return onRenderCell({ ...params, sectionName });\r\n },\r\n onRenderLoadingCell: ({ item, index, onLoading }) => {\r\n const { sectionName } = section || {};\r\n if (onRenderLoadingCell) {\r\n return onRenderLoadingCell({\r\n item, index, onLoading, sectionName,\r\n });\r\n }\r\n return null;\r\n },\r\n // to support selectoin on grid\r\n onSelectionChange: onSelectionChange ?\r\n (params) => {\r\n const { sectionName } = section || {};\r\n onSelectionChange({ ...params, sectionName });\r\n } : undefined,\r\n gridSize: getGridSize(section),\r\n ...section,\r\n })), [\r\n getGridSize,\r\n loadNextPage,\r\n onRenderCell,\r\n onRenderLoadingCell,\r\n onSelectionChange,\r\n sectionData,\r\n ]);\r\n\r\n // don't show section title if only one section has data\r\n const countOfSectionsWithData =\r\n _.filter(sectionData, sec => sec.totalItemCount > 0).length;\r\n\r\n const GridComponent = multiSelectionEnabled ? MultiSelectionGrid : TilesGridStateless;\r\n\r\n return (\r\n
\r\n {wrappedSectionData.map(({\r\n sectionName,\r\n sectionTitle,\r\n sectionClassName,\r\n items,\r\n gridSize,\r\n ...rest\r\n }) => (\r\n (items && items.length > 0) ?\r\n \r\n {countOfSectionsWithData > 1 ?
{sectionTitle}
: null}\r\n 1 ? sectionTitle : ''}\r\n dimensions={dimensions}\r\n setDimensions={setDimensions}\r\n gridSize={gridSize}\r\n version={gridSize}\r\n />\r\n
\r\n : null\r\n ))}\r\n
\r\n );\r\n};\r\n\r\nSectionTilesGridInternal.propTypes = {\r\n sectionData: PropTypes.arrayOf(PropTypes.shape({\r\n sectionName: PropTypes.string,\r\n sectionTitle: PropTypes.string,\r\n sectionClassName: PropTypes.string,\r\n items: PropTypes.arrayOf(PropTypes.shape({})),\r\n selectedItems: PropTypes.arrayOf(PropTypes.shape({})), // to support multiple selection\r\n totalItemCount: PropTypes.number, // total item count, including not loaded items\r\n config: PropTypes.shape({\r\n aspectRatio: PropTypes.number,\r\n maxColumnWidth: PropTypes.number,\r\n minColumnWidth: PropTypes.number,\r\n rowHeight: PropTypes.number,\r\n preferredCellsPerPage: PropTypes.number,\r\n }),\r\n })).isRequired,\r\n onRenderCell: PropTypes.func.isRequired,\r\n onRenderLoadingCell: PropTypes.func,\r\n loadNextPage: PropTypes.func.isRequired,\r\n\r\n multiSelectionEnabled: PropTypes.bool,\r\n onSelectionChange: PropTypes.func,\r\n\r\n classes: PropTypes.shape({\r\n sectionTilesGridContainer: PropTypes.string,\r\n gridConainerClass: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nSectionTilesGridInternal.defaultProps = {\r\n onRenderLoadingCell: undefined,\r\n\r\n multiSelectionEnabled: false,\r\n onSelectionChange: undefined,\r\n};\r\n\r\nexport const SectionTilesGrid = withDefaultStyles(SectionTilesGridInternal, getSectionTilesGridStyle);\r\n","/* eslint-disable jsx-a11y/no-static-element-interactions */\r\n/* eslint-disable jsx-a11y/click-events-have-key-events */\r\n/* eslint-disable max-len */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { Checkbox } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { keyCode } from '@bingads-webui/keycode';\r\n\r\nimport { getCellSectionDecoratorStyle } from '../styles/tiles-grid-cell-selection-decorator-style';\r\n\r\nconst checkboxStyles = ({\r\n checkbox: {\r\n borderWidth: 2,\r\n borderColor: 'white',\r\n outline: 'black solid 1px',\r\n // make the checkbox is on top of the overlay of cells\r\n zIndex: 2,\r\n },\r\n});\r\n\r\nconst CellSelectionDecorator = ({\r\n item, selected, onClick, children, classes, ariaLabel, isFocused,\r\n}) => {\r\n const onClickFunc = (event) => {\r\n if (onClick) {\r\n onClick({ item, selected });\r\n }\r\n if (event.stopPropagation) { event.stopPropagation(); }\r\n if (event.preventDefault) { event.preventDefault(); }\r\n };\r\n\r\n const onKeyDown = (event) => {\r\n if (event.keyCode === keyCode.Enter) {\r\n onClickFunc();\r\n }\r\n };\r\n\r\n return (\r\n
\r\n \r\n {children}\r\n
\r\n \r\n \r\n
\r\n
\r\n );\r\n};\r\n\r\nCellSelectionDecorator.propTypes = {\r\n item: PropTypes.shape({}).isRequired,\r\n selected: PropTypes.bool.isRequired,\r\n onClick: PropTypes.func,\r\n children: PropTypes.node.isRequired,\r\n classes: PropTypes.shape({\r\n cellSelectionDecorator: PropTypes.string,\r\n cellSelectionDecoratorWrapper: PropTypes.string,\r\n selectedState: PropTypes.string,\r\n selectedStateWrapper: PropTypes.string,\r\n }).isRequired,\r\n ariaLabel: PropTypes.string,\r\n isFocused: PropTypes.bool,\r\n};\r\n\r\nCellSelectionDecorator.defaultProps = {\r\n onClick: undefined,\r\n ariaLabel: '',\r\n isFocused: false,\r\n};\r\n\r\nexport const TilesGridCellSelectionDecorator\r\n = withDefaultStyles(CellSelectionDecorator, getCellSectionDecoratorStyle);\r\n","export const getCellSectionDecoratorStyle = (components, { palette = {} } = {}) => ({\r\n cellSelectionDecorator: {\r\n width: '100%',\r\n height: '100%',\r\n overflow: 'hidden',\r\n },\r\n\r\n cellSelectionDecoratorWrapper: {\r\n width: '100%',\r\n height: '100%',\r\n\r\n '& .selected-checkbox': {\r\n position: 'absolute',\r\n top: 6,\r\n right: 6,\r\n },\r\n },\r\n\r\n selectedState: {\r\n outlineStyle: 'solid',\r\n outlineWidth: 4,\r\n outlineColor: palette.themePrimary,\r\n borderRadius: 6,\r\n },\r\n});\r\n","/* eslint-disable max-len */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { IconButton } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { withRawStyles } from '@bingads-webui-react/with-raw-styles';\r\n\r\nimport { getCellDeletionButtonDecoratorStyle, getFluentUIStyles } from '../styles/tiles-grid-cell-deletion-button-decorator-style';\r\n\r\nconst iconProps = { iconName: 'Clear' };\r\n\r\nconst CellDeletionButtonDecorator = ({\r\n item, onDelete, children, classes, styles,\r\n}) => {\r\n //\r\n const onClick = (event) => {\r\n if (onDelete) {\r\n onDelete(item);\r\n }\r\n if (event.stopPropagation) { event.stopPropagation(); }\r\n if (event.preventDefault) { event.preventDefault(); }\r\n };\r\n\r\n return (\r\n <>\r\n {children}\r\n
\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nCellDeletionButtonDecorator.propTypes = {\r\n item: PropTypes.shape({}).isRequired,\r\n onDelete: PropTypes.func,\r\n children: PropTypes.node.isRequired,\r\n classes: PropTypes.shape({\r\n cellDeletionButtonDecorator: PropTypes.string,\r\n }).isRequired,\r\n styles: PropTypes.shape({\r\n deleteButtonStyles: PropTypes.shape({}).isRequired,\r\n }).isRequired,\r\n};\r\n\r\nCellDeletionButtonDecorator.defaultProps = {\r\n onDelete: undefined,\r\n};\r\n\r\nexport const TilesGridCellDeletionButtonDecorator = withDefaultStyles(\r\n withRawStyles(CellDeletionButtonDecorator, getFluentUIStyles),\r\n getCellDeletionButtonDecoratorStyle\r\n);\r\n","export const getCellDeletionButtonDecoratorStyle = () => ({\r\n cellDeletionButtonDecorator: {\r\n position: 'absolute',\r\n bottom: 8,\r\n right: 10,\r\n },\r\n});\r\n\r\nexport const getFluentUIStyles = (components, { palette = {} } = {}) => ({\r\n deleteButtonStyles: {\r\n root: {\r\n backgroundColor: palette.themeLighter,\r\n opacity: 0.7,\r\n zIndex: 2,\r\n padding: 0,\r\n height: 24,\r\n width: 24,\r\n },\r\n rootHovered: {\r\n opacity: 0.9,\r\n },\r\n rootPressed: {\r\n opacity: 1,\r\n },\r\n icon: {\r\n margin: 0,\r\n },\r\n },\r\n});\r\n","import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { Dropdown, Icon, ResponsiveMode } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getCustomDropdownStyle } from './style';\r\n\r\n// The current dropdown we use will have an fault aria-activeDescendant prop which will lead to an A11y issue\r\n// If the selected items is not an array\r\nconst dummyOptionKeys = ['foo', 'foo2'];\r\nconst dummyOptions = [\r\n { key: 'foo', text: null },\r\n { key: 'foo2', text: null },\r\n];\r\n\r\n// eslint-disable-next-line react/prop-types\r\nconst CustomDropdownList = ({ setOpen, onKeyDown, children }) => {\r\n //\r\n useEffect(() => {\r\n setOpen(true);\r\n return () => setOpen(false);\r\n }, [setOpen]);\r\n\r\n return (\r\n
\r\n {children}\r\n
\r\n );\r\n};\r\n\r\n// customized FluentUI Dropdown control, to replace the default\r\n// dropdown list with provided content (children)\r\nconst CustomDropdownInternal = ({\r\n placeholder,\r\n title,\r\n children, // the content of dropdown list\r\n onClear, // callback when clicking on X button in the title\r\n onDismiss, // callback when the dropdonw list is dismissed\r\n dropdownWidth,\r\n focused, // focus the dropdown when it's mounted\r\n //\r\n classes,\r\n}) => {\r\n //\r\n const [isDropdownOpen, setDropdownOpen] = useState(false);\r\n\r\n const hasTitle = useMemo(() => !!title, [title]);\r\n\r\n const clearValue = useCallback((evt) => {\r\n if (onClear) { onClear(isDropdownOpen); }\r\n if (evt && evt.stopPropagation) { evt.stopPropagation(); }\r\n }, [isDropdownOpen, onClear]);\r\n\r\n const onRenderCaretDown = useCallback((props, defaultOnRenderCaretDown) => {\r\n if (!hasTitle) {\r\n return defaultOnRenderCaretDown(props);\r\n }\r\n return (\r\n \r\n );\r\n }, [hasTitle, clearValue]);\r\n\r\n const onRenderTitle = useCallback(\r\n () => title || placeholder || '',\r\n [placeholder, title]\r\n );\r\n\r\n const renderList = useCallback((props /* , defaultOnRenderList */) => {\r\n const { onDismiss: closeDropdown } = props || {};\r\n const onEnterPress = (event) => {\r\n if (event && event.key === 'Enter' && closeDropdown) {\r\n closeDropdown();\r\n }\r\n };\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }, [children]);\r\n\r\n const getDropdownStyles = useCallback((dropdownStyleProps) => {\r\n const { isOpen, theme } = dropdownStyleProps || {};\r\n const { palette } = theme || {};\r\n if (hasTitle) {\r\n return {\r\n title: {\r\n fontWeight: 600,\r\n backgroundColor: isOpen ? palette.themeLighterAlt : palette.white,\r\n borderColor: palette.themePrimary,\r\n color: isOpen ? palette.themeDark : palette.themePrimary,\r\n },\r\n dropdown: {\r\n '&:focus .ms-Dropdown-title, &:hover .ms-Dropdown-title, &:active .ms-Dropdown-title': {\r\n borderColor: palette.themePrimary,\r\n color: `${isOpen ? palette.themeDark : palette.themePrimary} !important`,\r\n },\r\n },\r\n };\r\n }\r\n return {\r\n title: {\r\n backgroundColor: isOpen ? palette.neutralLighter : palette.white,\r\n },\r\n };\r\n }, [hasTitle]);\r\n\r\n const onDropdownDismiss = useCallback(() => {\r\n if (onDismiss) {\r\n onDismiss();\r\n }\r\n }, [onDismiss]);\r\n\r\n const dropdownRef = useRef(null);\r\n useEffect(() => {\r\n if (focused) {\r\n dropdownRef.current.focus(true);\r\n }\r\n }, [focused]);\r\n\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nCustomDropdownInternal.propTypes = {\r\n placeholder: PropTypes.string.isRequired,\r\n title: PropTypes.string,\r\n children: PropTypes.node.isRequired,\r\n onClear: PropTypes.func,\r\n onDismiss: PropTypes.func,\r\n dropdownWidth: PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.number,\r\n ]),\r\n focused: PropTypes.bool,\r\n //\r\n classes: PropTypes.shape({\r\n customDropdownContainer: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nCustomDropdownInternal.defaultProps = {\r\n title: null,\r\n onClear: null,\r\n onDismiss: null,\r\n dropdownWidth: 0,\r\n focused: false,\r\n};\r\n\r\nexport const CustomDropdown\r\n = withDefaultStyles(CustomDropdownInternal, getCustomDropdownStyle);\r\n","export const getCustomDropdownStyle = (components, { palette = {} } = {}) => ({\r\n customDropdownContainer: {\r\n position: 'relative',\r\n\r\n '& .custom-dropdown-caretdown-selected': {\r\n fontSize: 12,\r\n pointerEvent: 'none',\r\n color: palette.themeDark,\r\n },\r\n },\r\n});\r\n","import _ from 'underscore';\r\nimport React, { useCallback, useMemo, useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { TextField } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { CustomDropdown } from '../custom-dropdown-component';\r\nimport { getImageSizeFilterStyle } from './style';\r\n\r\nconst ImageSizeFilterInternal = ({\r\n defaultMinWidth,\r\n defaultMinHeight,\r\n dropdownWidth,\r\n onChange,\r\n onDismiss,\r\n focused,\r\n i18n,\r\n classes,\r\n}) => {\r\n // use ref to handle focus switching when pressing tab key\r\n const minWidthRef = useRef(null);\r\n const minHeightRef = useRef(null);\r\n\r\n const [minWidth, setMinWidth] = useState(defaultMinWidth);\r\n const [minHeight, setMinHeight] = useState(defaultMinHeight);\r\n\r\n const getOnChangeCallback = useCallback(setter => (event, newValue) => {\r\n const val = parseInt(newValue, 10);\r\n if (_.isEmpty(newValue)) {\r\n setter(null);\r\n return;\r\n }\r\n if (!_.isNaN(val) && val >= 0 && val <= 1000000) {\r\n setter(val);\r\n }\r\n }, []);\r\n\r\n const onMinWidthChange = useMemo(\r\n () => getOnChangeCallback(setMinWidth),\r\n [getOnChangeCallback]\r\n );\r\n\r\n const onMinHeightChange = useMemo(\r\n () => getOnChangeCallback(setMinHeight),\r\n [getOnChangeCallback]\r\n );\r\n\r\n const onClear = useCallback((isDropdownOpen) => {\r\n setMinWidth(null);\r\n setMinHeight(null);\r\n if (!isDropdownOpen && (defaultMinHeight || defaultMinWidth)) {\r\n // trigger onchange only when dropdown list is closed\r\n onChange({ newMinHeight: null, newMinWidth: null });\r\n }\r\n if (minWidthRef.current) {\r\n minWidthRef.current.focus();\r\n }\r\n }, [defaultMinHeight, defaultMinWidth, onChange]);\r\n\r\n const title = useMemo(() => {\r\n if (minWidth && minHeight) {\r\n return `> ${minWidth}px x ${minHeight}px`;\r\n }\r\n if (minWidth) {\r\n return `${i18n.getString(_TL_('Width'))} > ${minWidth}px`;\r\n }\r\n if (minHeight) {\r\n return `${i18n.getString(_TL_('Height'))} > ${minHeight}px`;\r\n }\r\n return '';\r\n }, [i18n, minHeight, minWidth]);\r\n\r\n const focusTextField = useCallback(textFieldRef => (event) => {\r\n if (event.key === 'Tab') {\r\n if (textFieldRef.current) {\r\n textFieldRef.current.focus();\r\n }\r\n if (event.stopPropagation) { event.stopPropagation(); }\r\n if (event.preventDefault) { event.preventDefault(); }\r\n }\r\n }, []);\r\n\r\n const onMinWidthKeyUp = useMemo(() => focusTextField(minHeightRef), [focusTextField]);\r\n const onMinHeightKeyUp = useMemo(() => focusTextField(minWidthRef), [focusTextField]);\r\n\r\n const onDropdownDismiss = useCallback(() => {\r\n if (defaultMinHeight !== minHeight || defaultMinWidth !== minWidth) {\r\n onChange({ newMinWidth: minWidth, newMinHeight: minHeight }, title);\r\n }\r\n if (onDismiss) {\r\n onDismiss({ newMinWidth: minWidth, newMinHeight: minHeight }, title);\r\n }\r\n }, [defaultMinHeight, defaultMinWidth, minHeight, minWidth, onChange, onDismiss, title]);\r\n\r\n return (\r\n \r\n
\r\n
{i18n.getString(_TL_('Image size'))}
\r\n \r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nImageSizeFilterInternal.propTypes = {\r\n defaultMinWidth: PropTypes.number,\r\n defaultMinHeight: PropTypes.number,\r\n onChange: PropTypes.func.isRequired,\r\n onDismiss: PropTypes.func,\r\n focused: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n dropdownWidth: PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.number,\r\n ]),\r\n classes: PropTypes.shape({\r\n imageSizeFilterDowndown: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nImageSizeFilterInternal.defaultProps = {\r\n dropdownWidth: 0,\r\n defaultMinWidth: null,\r\n defaultMinHeight: null,\r\n focused: false,\r\n onDismiss: null,\r\n};\r\n\r\nexport const ImageSizeFilter\r\n = withDefaultStyles(ImageSizeFilterInternal, getImageSizeFilterStyle);\r\n","export const getImageSizeFilterStyle = () => ({\r\n imageSizeFilterDowndown: {\r\n padding: 24,\r\n pointerEvents: 'auto',\r\n\r\n '& .dropdown-title': {\r\n fontSize: 20,\r\n fontWeight: 600,\r\n lineHeight: '20px',\r\n },\r\n\r\n '& .dropdown-value-input': {\r\n // maxWidth: 120,\r\n marginTop: 21,\r\n },\r\n },\r\n});\r\n","import classnames from 'classnames';\r\nimport React, { useCallback, useMemo, useState, useRef, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { CivilDate } from 'tc39-proposal-temporal';\r\nimport { SingleMonthCalendar } from '@bingads-webui-react/single-month-calendar';\r\n\r\nimport { civilDateRangeEqual } from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { getSimpleDateRangePickerStyle } from './style';\r\n\r\n// this is a simple date range picker based on the Calendar control used in\r\n// Campaign UI (NOT Fluent UI Calendar)\r\n// the 'Compare' feature is not supported, so only one date range selection\r\n// is supported\r\nconst SimpleDateRangePickerInternal = ({\r\n defaultSelectedDateRange,\r\n // to select a date range, need to select 2 days (start & end) on calendars\r\n // this value control which value is currently selecting\r\n defaultIsSelectingStartDate,\r\n onDateRangeChange,\r\n timeZone,\r\n i18n,\r\n classes,\r\n}) => {\r\n // use ref instead of state to avoid unnecessary rending\r\n const isSelectingStartDate = useRef(defaultIsSelectingStartDate);\r\n\r\n const [selectedDateRange, setSelectedDateRange]\r\n = useState(defaultSelectedDateRange);\r\n\r\n // the navigatedDate set on the left calendar, which control which month\r\n // is shown on the calendar\r\n const [leftNavigatedDate, setLeftNavigationDate] = useState(new CivilDate(\r\n defaultSelectedDateRange.end.year,\r\n defaultSelectedDateRange.end.month - 1,\r\n 15\r\n ));\r\n\r\n // the navigatedDate set on the right calendar\r\n const rightNavigatedDate = useMemo(\r\n () => new CivilDate(leftNavigatedDate.year, leftNavigatedDate.month + 1, 15),\r\n [leftNavigatedDate]\r\n );\r\n\r\n const today = useMemo(() => {\r\n const todayObj = i18n.getToday({ timeZone });\r\n return new CivilDate(todayObj.year, todayObj.month, todayObj.day);\r\n }, [i18n, timeZone]);\r\n\r\n // for now, use the default values here\r\n const minDate = useMemo(() => today.plus({ years: -3 }), [today]);\r\n const maxDate = today;\r\n\r\n // 'Compare' is not supported, so only one range is used\r\n const selectedRanges = useMemo(() => [selectedDateRange], [selectedDateRange]);\r\n\r\n // click '<' button on the left calendar\r\n const onNavigateStartMonthDate = useCallback((date) => {\r\n setLeftNavigationDate(date);\r\n }, []);\r\n\r\n // click '>' button on the right calendar\r\n const onNavigateEndMonthDate = useCallback((date) => {\r\n setLeftNavigationDate(date.plus({ months: -1 }));\r\n }, []);\r\n\r\n const onSelectDate = useCallback((newDate) => {\r\n let { start, end } = selectedDateRange || {};\r\n if (isSelectingStartDate.current) {\r\n start = newDate;\r\n end = end > newDate ? end : newDate;\r\n } else {\r\n end = newDate;\r\n }\r\n if (start > end) {\r\n setSelectedDateRange({ start: end, end: start });\r\n } else {\r\n setSelectedDateRange({ start, end });\r\n }\r\n isSelectingStartDate.current = !isSelectingStartDate.current;\r\n }, [selectedDateRange]);\r\n\r\n useEffect(() => {\r\n if (!civilDateRangeEqual(selectedDateRange, defaultSelectedDateRange) && onDateRangeChange) {\r\n onDateRangeChange(selectedDateRange);\r\n }\r\n }, [onDateRangeChange, selectedDateRange, defaultSelectedDateRange]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n );\r\n};\r\n\r\nSimpleDateRangePickerInternal.propTypes = {\r\n defaultSelectedDateRange: PropTypes.shape({\r\n start: PropTypes.instanceOf(CivilDate),\r\n end: PropTypes.instanceOf(CivilDate),\r\n }).isRequired,\r\n defaultIsSelectingStartDate: PropTypes.bool,\r\n onDateRangeChange: PropTypes.func,\r\n timeZone: PropTypes.string.isRequired,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n getToday: PropTypes.func,\r\n }).isRequired,\r\n classes: PropTypes.shape({\r\n simpleDateRangePicker: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nSimpleDateRangePickerInternal.defaultProps = {\r\n defaultIsSelectingStartDate: true,\r\n onDateRangeChange: undefined,\r\n};\r\n\r\nexport const SimpleDateRangePicker\r\n = withDefaultStyles(SimpleDateRangePickerInternal, getSimpleDateRangePickerStyle);\r\n","export const getSimpleDateRangePickerStyle = () => ({\r\n simpleDateRangePicker: {\r\n '& .compared-date-range-picker-dialog': {\r\n position: 'relative',\r\n top: 'auto!important',\r\n right: 'auto!important',\r\n left: 'auto!important',\r\n width: 'auto!important',\r\n height: 'auto!important',\r\n padding: 16,\r\n },\r\n },\r\n});\r\n","import _ from 'underscore';\r\nimport React, { useCallback, useMemo, useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { TextField, ChoiceGroup, Callout, DirectionalHint } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport {\r\n civilDateRangeEqual,\r\n CSMLTimeFrame\r\n} from '@bingads-webui-campaign-react/asset-library-model';\r\nimport { CustomDropdown } from '../custom-dropdown-component';\r\nimport { SimpleDateRangePicker } from '../simple-date-range-picker';\r\nimport { getDateAddedFilterStyle } from './style';\r\n\r\nconst iconProps = { iconName: 'Calendar' };\r\n\r\nconst DateAddedFilterInternal = ({\r\n defaultTimeFrame,\r\n defaultCustomDateRange,\r\n choiceOptions,\r\n timeZone,\r\n dateFormat,\r\n dropdownWidth,\r\n onChange,\r\n onDismiss,\r\n focused,\r\n i18n,\r\n classes,\r\n}) => {\r\n //\r\n const [timeframe, setTimeFrame] = useState(defaultTimeFrame);\r\n // date range user selected for 'Custom'\r\n const [customDateRange, setCustomDateRange] = useState(defaultCustomDateRange);\r\n\r\n //\r\n // choice group handling\r\n const selectedChoice = useMemo(\r\n () => _.find(choiceOptions, r => r.key === timeframe),\r\n [timeframe, choiceOptions]\r\n );\r\n\r\n const onChoiceChange = useCallback((evt, option) => {\r\n if (option && option.key) {\r\n setTimeFrame(option.key);\r\n }\r\n }, []);\r\n\r\n //\r\n // dropdown related handling\r\n const formatDate = useCallback(\r\n date => i18n.formatCivilDate(date, { raw: dateFormat, timeZone }),\r\n [dateFormat, i18n, timeZone]\r\n );\r\n\r\n const customRangeStartStr = useMemo(\r\n () => formatDate(customDateRange.start),\r\n [formatDate, customDateRange.start]\r\n );\r\n\r\n const customRangeEndStr = useMemo(\r\n () => formatDate(customDateRange.end),\r\n [formatDate, customDateRange.end]\r\n );\r\n\r\n // the string shown on dropdown title\r\n const dropdownTitle = useMemo(() => {\r\n if (!selectedChoice) {\r\n return null;\r\n }\r\n if (selectedChoice.key === CSMLTimeFrame.Custom) {\r\n return `${customRangeStartStr} - ${customRangeEndStr}`;\r\n }\r\n return selectedChoice.text;\r\n }, [customRangeEndStr, customRangeStartStr, selectedChoice]);\r\n\r\n // when the X button on dropdown title is clicked\r\n const onDropdownClear = useCallback((isDropdownOpen) => {\r\n setTimeFrame(CSMLTimeFrame.Anytime);\r\n if (!isDropdownOpen && onChange && defaultTimeFrame !== CSMLTimeFrame.Anytime) {\r\n onChange({ timeframe: CSMLTimeFrame.Anytime, customDateRange });\r\n }\r\n }, [customDateRange, defaultTimeFrame, onChange]);\r\n\r\n // when dropdown list is dismissed\r\n const onDropdownDismiss = useCallback(() => {\r\n if (onChange) {\r\n if (defaultTimeFrame !== timeframe\r\n || !civilDateRangeEqual(defaultCustomDateRange, customDateRange)) {\r\n onChange({ timeframe, customDateRange }, dropdownTitle);\r\n }\r\n }\r\n if (onDismiss) {\r\n onDismiss({ timeframe, customDateRange }, dropdownTitle);\r\n }\r\n }, [customDateRange, defaultCustomDateRange, defaultTimeFrame, dropdownTitle, onChange, onDismiss, timeframe]);\r\n\r\n //\r\n // date range picker related handling\r\n const [isDatePickerOpen, setIsDatePickerOpen] = useState(false);\r\n // selecting 'start' or 'end' on date range picker\r\n const isSelectingStartDate = useRef(true);\r\n\r\n const onSelectedDateRangeChange = useCallback((newRange) => {\r\n setCustomDateRange(newRange);\r\n }, []);\r\n\r\n const onDatepickerDismiss = useCallback(() => {\r\n setIsDatePickerOpen(false);\r\n }, []);\r\n\r\n const openDatePickerForStart = useCallback(() => {\r\n setIsDatePickerOpen(true);\r\n isSelectingStartDate.current = true;\r\n }, []);\r\n\r\n const openDatePickerForEnd = useCallback(() => {\r\n setIsDatePickerOpen(true);\r\n isSelectingStartDate.current = false;\r\n }, []);\r\n\r\n return (\r\n \r\n
\r\n
{i18n.getString(_TL_('Date added'))}
\r\n \r\n {timeframe === CSMLTimeFrame.Custom && (\r\n
\r\n \r\n \r\n { isDatePickerOpen && (\r\n \r\n \r\n \r\n )}\r\n
\r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nDateAddedFilterInternal.propTypes = {\r\n defaultTimeFrame: PropTypes.string,\r\n defaultCustomDateRange: PropTypes.shape({}),\r\n choiceOptions: PropTypes.arrayOf(PropTypes.shape({\r\n key: PropTypes.string,\r\n text: PropTypes.string,\r\n })).isRequired,\r\n timeZone: PropTypes.string.isRequired,\r\n dateFormat: PropTypes.string.isRequired,\r\n onChange: PropTypes.func,\r\n onDismiss: PropTypes.func,\r\n focused: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n formatCivilDate: PropTypes.func,\r\n }).isRequired,\r\n dropdownWidth: PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.number,\r\n ]),\r\n classes: PropTypes.shape({\r\n dateAddedFilterDowndown: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nDateAddedFilterInternal.defaultProps = {\r\n defaultTimeFrame: undefined,\r\n defaultCustomDateRange: {},\r\n onChange: undefined,\r\n onDismiss: undefined,\r\n focused: false,\r\n dropdownWidth: 0,\r\n};\r\n\r\nexport const DateAddedFilter\r\n = withDefaultStyles(DateAddedFilterInternal, getDateAddedFilterStyle);\r\n","export const getDateAddedFilterStyle = () => ({\r\n dateAddedFilterDowndown: {\r\n padding: 24,\r\n pointerEvents: 'auto',\r\n\r\n '& .dropdown-title': {\r\n fontSize: 20,\r\n fontWeight: 600,\r\n lineHeight: '20px',\r\n },\r\n\r\n '& .dropdown-value-input': {\r\n // maxWidth: 140,\r\n marginTop: 12,\r\n },\r\n\r\n '& .dropdown-timeframe-choices label': {\r\n fontSize: 14,\r\n fontWeight: 400,\r\n padding: 0,\r\n marginTop: 8,\r\n },\r\n },\r\n});\r\n","export const getStyle = () => ({\r\n overflow: {\r\n display: 'block',\r\n overflow: 'hidden',\r\n textOverflow: 'ellipsis',\r\n whiteSpace: 'nowrap',\r\n },\r\n});\r\n","/* eslint-disable object-curly-newline */\r\nimport _ from 'underscore';\r\nimport classnames from 'classnames';\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { TooltipHost, TooltipOverflowMode } from '@bingads-webui-react/fabric-control';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { getStyle } from './styles';\r\n\r\nexport const splitString = (text, substr) => {\r\n //\r\n if (!text || !substr || _.isEmpty(substr)) {\r\n return [{ matched: false, text, idx: 0 }];\r\n }\r\n\r\n // case-insensitive\r\n const lowerText = text.toLowerCase();\r\n const lowerSubstr = substr.toLowerCase();\r\n\r\n let startIndex = 0;\r\n const fragments = [];\r\n\r\n while (startIndex < text.length) {\r\n const index = lowerText.indexOf(lowerSubstr, startIndex);\r\n if (index === -1) {\r\n fragments.push({ matched: false, text: text.substring(startIndex) });\r\n break;\r\n } else if (index > startIndex) {\r\n fragments.push({ matched: false, text: text.substring(startIndex, index) });\r\n fragments.push({ matched: true, text: text.substring(index, index + substr.length) });\r\n startIndex = index + substr.length;\r\n } else {\r\n fragments.push({ matched: true, text: text.substring(index, index + substr.length) });\r\n startIndex = index + substr.length;\r\n }\r\n }\r\n\r\n // add an idx field for each fragment\r\n const fragmentsWithIndex = fragments.map((f, idx) => ({ ...f, idx }));\r\n return fragmentsWithIndex;\r\n};\r\n\r\nexport const TextWithHighlight = ({\r\n text: txt, highlightedText, highlightedClassname, enableTooltip,\r\n}) => {\r\n const textFragments = splitString(txt, highlightedText);\r\n const classes = useDefaultStyles(getStyle);\r\n\r\n const content = (\r\n \r\n {\r\n textFragments.map(({ matched, text, idx }) =>\r\n {text})\r\n }\r\n \r\n );\r\n\r\n return enableTooltip ? (\r\n \r\n {content}\r\n \r\n ) : content;\r\n};\r\n\r\nTextWithHighlight.propTypes = {\r\n text: PropTypes.string,\r\n highlightedText: PropTypes.string,\r\n highlightedClassname: PropTypes.string,\r\n enableTooltip: PropTypes.bool,\r\n};\r\n\r\nTextWithHighlight.defaultProps = {\r\n text: '',\r\n highlightedText: undefined,\r\n highlightedClassname: 'highlighted-text',\r\n enableTooltip: false,\r\n};\r\n","export const getImportSourceFilterStyle = () => ({\r\n importSourceFilterDowndown: {\r\n padding: 24,\r\n pointerEvents: 'auto',\r\n\r\n '& .dropdown-title': {\r\n fontSize: 20,\r\n fontWeight: 600,\r\n lineHeight: '20px',\r\n },\r\n\r\n '& .dropdown-import-source-choices label': {\r\n fontSize: 14,\r\n fontWeight: 400,\r\n padding: 0,\r\n marginTop: 8,\r\n },\r\n },\r\n});\r\n","import _ from 'underscore';\r\nimport React, { useCallback, useMemo, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { ChoiceGroup } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { CustomDropdown } from '../custom-dropdown-component';\r\nimport { getImportSourceFilterStyle } from './style';\r\n\r\nconst ImportSourceFilterInternal = ({\r\n defaultImportSource,\r\n choiceOptions,\r\n dropdownWidth,\r\n onChange,\r\n onDismiss,\r\n focused,\r\n i18n,\r\n classes,\r\n}) => {\r\n //\r\n const [importSource, setImportSource] = useState(defaultImportSource);\r\n\r\n // choice group handling\r\n const selectedChoice = useMemo(\r\n () => _.find(choiceOptions, r => r.key === importSource),\r\n [importSource, choiceOptions]\r\n );\r\n\r\n const onChoiceChange = useCallback((evt, option) => {\r\n if (option && option.key) {\r\n setImportSource(option.key);\r\n }\r\n }, []);\r\n\r\n // the string shown on dropdown title\r\n const dropdownTitle = selectedChoice ? selectedChoice.title : null;\r\n\r\n // when the X button on dropdown title is clicked\r\n const onDropdownClear = useCallback((isDropdownOpen) => {\r\n setImportSource(null);\r\n if (!isDropdownOpen && onChange && defaultImportSource !== null) {\r\n onChange(null);\r\n }\r\n }, [defaultImportSource, onChange]);\r\n\r\n // when dropdown list is dismissed\r\n const onDropdownDismiss = useCallback(() => {\r\n if (onChange && defaultImportSource !== importSource) {\r\n onChange(importSource, dropdownTitle);\r\n }\r\n if (onDismiss) {\r\n onDismiss(importSource, dropdownTitle);\r\n }\r\n }, [defaultImportSource, dropdownTitle, importSource, onChange, onDismiss]);\r\n\r\n return (\r\n \r\n
\r\n
{i18n.getString(_TL_('Import source'))}
\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nImportSourceFilterInternal.propTypes = {\r\n defaultImportSource: PropTypes.string,\r\n choiceOptions: PropTypes.arrayOf(PropTypes.shape({\r\n key: PropTypes.string,\r\n text: PropTypes.string,\r\n })).isRequired,\r\n onChange: PropTypes.func,\r\n onDismiss: PropTypes.func,\r\n focused: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n dropdownWidth: PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.number,\r\n ]),\r\n classes: PropTypes.shape({\r\n importSourceFilterDowndown: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nImportSourceFilterInternal.defaultProps = {\r\n defaultImportSource: null,\r\n onChange: undefined,\r\n onDismiss: undefined,\r\n focused: false,\r\n dropdownWidth: 0,\r\n};\r\n\r\nexport const ImportSourceFilter\r\n = withDefaultStyles(ImportSourceFilterInternal, getImportSourceFilterStyle);\r\n","import _ from 'underscore';\r\nimport React, { useCallback, useMemo, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { ChoiceGroup } from '@bingads-webui-react/fabric-control';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { CustomDropdown } from '../custom-dropdown-component';\r\nimport { getAssetTypeFilterStyle } from './style';\r\n\r\nconst AssetTypeFilterInternal = ({\r\n defaultAssetType,\r\n assetTypeFilterOptions,\r\n dropdownWidth,\r\n onChange,\r\n onDismiss,\r\n focused,\r\n i18n,\r\n classes,\r\n}) => {\r\n //\r\n const [assetTypeFilter, setAssetType] = useState(defaultAssetType);\r\n\r\n // choice group handling\r\n const selectedChoice = useMemo(\r\n () => _.find(assetTypeFilterOptions, r => r.key === assetTypeFilter),\r\n [assetTypeFilter, assetTypeFilterOptions]\r\n );\r\n\r\n const onAssetTypeChange = useCallback((evt, option) => {\r\n if (option && option.key) {\r\n setAssetType(option.key);\r\n }\r\n }, []);\r\n\r\n // the string shown on dropdown title\r\n const dropdownTitle = selectedChoice ? selectedChoice.title : null;\r\n\r\n // when the X button on dropdown title is clicked\r\n const onDropdownClear = useCallback((isDropdownOpen) => {\r\n setAssetType(null);\r\n if (!isDropdownOpen && onChange && defaultAssetType !== null) {\r\n onChange(null);\r\n }\r\n }, [defaultAssetType, onChange]);\r\n\r\n // when dropdown list is dismissed\r\n const onDropdownDismiss = useCallback(() => {\r\n if (onChange && defaultAssetType !== assetTypeFilter) {\r\n onChange(assetTypeFilter, dropdownTitle);\r\n }\r\n if (onDismiss) {\r\n onDismiss(assetTypeFilter, dropdownTitle);\r\n }\r\n }, [onChange, defaultAssetType, assetTypeFilter, onDismiss, dropdownTitle]);\r\n\r\n return (\r\n \r\n
\r\n
{i18n.getString(_TL_('Asset type'))}
\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nAssetTypeFilterInternal.propTypes = {\r\n defaultAssetType: PropTypes.string,\r\n assetTypeFilterOptions: PropTypes.arrayOf(PropTypes.shape({\r\n key: PropTypes.string,\r\n text: PropTypes.string,\r\n })).isRequired,\r\n onChange: PropTypes.func,\r\n onDismiss: PropTypes.func,\r\n focused: PropTypes.bool,\r\n i18n: PropTypes.shape({\r\n getString: PropTypes.func,\r\n }).isRequired,\r\n dropdownWidth: PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.number,\r\n ]),\r\n classes: PropTypes.shape({\r\n assetTypeFilterDowndown: PropTypes.string,\r\n }).isRequired,\r\n};\r\n\r\nAssetTypeFilterInternal.defaultProps = {\r\n defaultAssetType: null,\r\n onChange: undefined,\r\n onDismiss: undefined,\r\n focused: false,\r\n dropdownWidth: 0,\r\n};\r\n\r\nexport const AssetTypeFilter\r\n = withDefaultStyles(AssetTypeFilterInternal, getAssetTypeFilterStyle);\r\n","export const getAssetTypeFilterStyle = () => ({\r\n assetTypeFilterDowndown: {\r\n padding: 24,\r\n pointerEvents: 'auto',\r\n\r\n '& .dropdown-title': {\r\n fontSize: 20,\r\n fontWeight: 600,\r\n lineHeight: '20px',\r\n },\r\n\r\n '& .dropdown-asset-type-choices label': {\r\n fontSize: 14,\r\n fontWeight: 400,\r\n padding: 0,\r\n marginTop: 8,\r\n },\r\n },\r\n});\r\n","import React, { useMemo } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\n\r\nimport { Breadcrumb } from '@fluentui/react';\r\n\r\nconst maxDisplayedItems = 5;\r\n\r\nexport const FolderPathBreadcrumb = ({\r\n visibleForRootFolder,\r\n folderPath,\r\n onItemClick,\r\n}) => {\r\n const breadcrumbItems = useMemo(() => {\r\n const items = _.map(folderPath, item => ({\r\n key: item.folderId,\r\n text: item.folderName,\r\n onClick: () => { onItemClick(item); },\r\n }));\r\n\r\n return items;\r\n }, [folderPath, onItemClick]);\r\n\r\n return (\r\n folderPath && (visibleForRootFolder || folderPath.length > 1) ?\r\n : null\r\n );\r\n};\r\n\r\nFolderPathBreadcrumb.propTypes = {\r\n visibleForRootFolder: PropTypes.bool,\r\n folderPath: PropTypes.arrayOf(PropTypes.shape({\r\n folderId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\r\n folderName: PropTypes.string,\r\n })).isRequired,\r\n onItemClick: PropTypes.func.isRequired,\r\n};\r\n\r\nFolderPathBreadcrumb.defaultProps = {\r\n visibleForRootFolder: false,\r\n};\r\n","const commonStyles = {\r\n boxShadow: '0px 1.47522px 4.42567px rgba(0, 0, 0, 0.2), inset 0.295044px -0.295044px 0.590089px rgba(0, 0, 0, 0.2), inset -0.590089px 0.590089px 1.47522px rgba(255, 255, 255, 0.3)',\r\n borderRadius: 2,\r\n};\r\n\r\nexport const getFolderIconStyle = () => ({\r\n folderIconContainer: {\r\n position: 'relative',\r\n height: 52,\r\n width: 68,\r\n\r\n '& .folder-tag': {\r\n width: '50%',\r\n height: '28.36%',\r\n ...commonStyles,\r\n },\r\n\r\n '& .folder-content': {\r\n width: '100%',\r\n height: '85.84%',\r\n ...commonStyles,\r\n\r\n position: 'absolute',\r\n left: 0,\r\n bottom: 0,\r\n overflow: 'hidden',\r\n },\r\n },\r\n folderTag: {\r\n backgroundColor: '#1F65F1',\r\n },\r\n emptyFolderTag: {\r\n backgroundColor: '#A0A0A0',\r\n },\r\n folderContent: {\r\n backgroundColor: '#1F65F1',\r\n },\r\n emptyFolderContent: {\r\n backgroundColor: '#C4C4C4',\r\n },\r\n});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport classnames from 'classnames';\r\nimport { withDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\nimport { Image as FluentImage, ImageFit } from '@bingads-webui-react/fabric-control';\r\n\r\nimport { getFolderIconStyle } from './style';\r\n\r\nconst FolderIconInternal = ({\r\n thumbnailImageUrl, isEmptyFolder, classes, folderIconRootClassName,\r\n}) => (\r\n
\r\n
\r\n
\r\n { thumbnailImageUrl && }\r\n
\r\n
\r\n);\r\n\r\nFolderIconInternal.propTypes = {\r\n thumbnailImageUrl: PropTypes.string,\r\n classes: PropTypes.shape({\r\n folderIconContainer: PropTypes.string,\r\n folderTag: PropTypes.string,\r\n folderContent: PropTypes.string,\r\n emptyFolderTag: PropTypes.string,\r\n emptyFolderContent: PropTypes.string,\r\n }).isRequired,\r\n folderIconRootClassName: PropTypes.string,\r\n isEmptyFolder: PropTypes.bool,\r\n};\r\n\r\nFolderIconInternal.defaultProps = {\r\n thumbnailImageUrl: undefined,\r\n folderIconRootClassName: '',\r\n isEmptyFolder: false,\r\n};\r\n\r\nexport const FolderIcon = withDefaultStyles(FolderIconInternal, getFolderIconStyle);\r\n","export const getVideoPlaybackStyle = () => ({\r\n dynamicSizeContainer: {\r\n height: '100%',\r\n\r\n '& video': {\r\n maxWidth: '100%',\r\n maxHeight: '100%',\r\n position: 'relative',\r\n top: '50%',\r\n transform: 'translateY(-50%)',\r\n },\r\n },\r\n});\r\n","/* eslint-disable jsx-a11y/media-has-caption */\r\nimport React, { useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport _ from 'underscore';\r\nimport classnames from 'classnames';\r\nimport { useDefaultStyles } from '@bingads-webui-react/with-default-styles';\r\n\r\nimport { getVideoPlaybackStyle } from './style';\r\n\r\n// since the