import { createElement, Component, useEffect, useState, useMemo, useReducer, Fragment, } from '@wordpress/element' import classnames from 'classnames' import { __, sprintf } from 'ct-i18n' import ListPicker from './ListPicker' import Overlay from '../../../../../static/js/helpers/Overlay' import { Select } from 'blocksy-options' import useProExtensionInFree from '../../../../../static/js/dashboard/helpers/useProExtensionInFree' const freeProviders = ['mailchimp', 'demo'] const EditCredentials = ({ extension, onCredentialsValidated }) => { const [provider, setProvider] = useState(extension.data.provider) const [apiKey, setApiKey] = useState(extension.data.api_key) const [listId, setListId] = useState(extension.data.list_id) const [isLoading, setIsLoading] = useState(false) const { isPro, showNotice, content } = useProExtensionInFree(extension, { strategy: 'pro', }) useEffect(() => { if ( extension.data && !freeProviders.includes(extension.data.provider) && !isPro ) { setProvider(freeProviders[0]) } }, []) const attemptToSaveCredentials = async () => { const body = new FormData() body.append('provider', provider) body.append('api_key', apiKey) body.append('list_id', listId) body.append( 'action', 'blocksy_ext_newsletter_subscribe_maybe_save_credentials' ) setIsLoading(true) try { const response = await fetch(ctDashboardLocalizations.ajax_url, { method: 'POST', body, }) if (response.status === 200) { const body = await response.json() if (body.success) { if (body.data.result !== 'api_key_invalid') { onCredentialsValidated() } } } } catch (e) {} await new Promise((r) => setTimeout(() => r(), 1000)) setIsLoading(false) } return (

{__('Connect Newsletter Provider', 'blocksy-companion')}

-1 ? 4 : 3}>
{ setProvider( copy === 'new' ? 'mailerlite-new' : 'mailerlite' ) }} option={{ placeholder: __( 'Pick Mailing Service', 'blocksy-companion' ), choices: [ { key: 'classic', value: 'Classic', }, { key: 'new', value: 'New', }, ], }} value={ provider === 'mailerlite-new' ? 'new' : 'classic' } />
)} {(freeProviders.includes(provider) || ctDashboardLocalizations.plugin_data.is_pro) && (
setApiKey(value) } value={apiKey || ''} />
setListId(id)} provider={provider} apiKey={apiKey} />
)}
{provider === 'mailchimp' && ( ', '' ), }} /> )} {ctDashboardLocalizations.plugin_data.is_pro && provider.indexOf('mailerlite') > -1 && ( ', '', '', '' ), }} /> )} {provider.indexOf('demo') > -1 && ( )} {ctDashboardLocalizations.plugin_data.is_pro && provider === 'brevo' && ( ', '' ), }} /> )} {ctDashboardLocalizations.plugin_data.is_pro && provider === 'convertkit' && ( ', '' ), }} /> )} {ctDashboardLocalizations.plugin_data.is_pro && provider === 'campaignmonitor' && ( ', '' ), }} /> )} {content}
) } export default EditCredentials Kapton® Film Archives - American Durafilm

Kapton® MT Films

DuPont ™ Kapton® MT polyimide film is a homogeneous film possessing 3x the thermal conductivity and cut through strength of standard Kapton® HN. Its thermal conductivity properties make it an ideal choice for use in controlling and managing heat in electronic assemblies such as printed circuit boards. Kapton® MT offers…
Price start from: $8.11

Kapton® FPC Films

DuPont™ Kapton® FPC polyimide film is treated on both sides and has the same excellent balance of physical, chemical, and electrical properties over a wide temperature range offered by general purpose Kapton® HN. Kapton® FPC offers superior dimensional stability and adhesion, and is specifically designed for flex circuit manufacturers.
Price start from: $7.45

Kapton® HN Films

DuPont™ Kapton® polyimide films have set the industry standard for over 45 years in high performance, reliability and durability, with a unique combination of electrical, thermal, chemical and mechanical properties that withstand extreme temperature, vibration and other demanding environments. Kapton® polyimide films make innovative design solutions possible in a range…
Price start from: $1.40

Kapton® FN Films

DuPont™ Kapton® FN is a general purpose HN film that is coated or laminated on one or both sides with Teflon® FEP fluoropolymer. Kapton® FN imparts heat sealability, provides a moisture barrier, and enhances chemical resistance. Kapton® FN is recommended in applications that require a heat bondable film, or moisture…
Price start from: $4.41

Authorized Distributor Dupont