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EAAU,KACR,IAAMT,EAAQO,EAAaG,GAAG,CAAC,QAC3BV,IACFW,aAAaC,OAAO,CAACtC,EAAiB0B,GACtCO,EAAaM,MAAM,CAAC,QAExB,EAAG,CAACN,EAAa,CACnB,EAKaO,EAA8B,KACzC,IAAMC,EAAgB9D,CAAAA,EAAAA,EAAAA,CAAAA,IAEhB+D,EAAgB1D,CAAAA,EAAAA,EAAAA,WAAAA,EAAY,KAChC,IAAM0C,EAAQW,aAAaM,OAAO,CAAC3C,GACnC,GAAK0B,EAEL,GAAI,CACF,GAAM,CAAEnB,KAAAA,CAAI,CAAEM,UAAAA,CAAS,CAAES,QAAAA,CAAO,CAAE,CAAGM,EAA8BF,GAC7D/B,EAAOwB,EAA4B,CACvC/B,GAAIkC,EAAQlC,EAAE,CACd6B,MAAOK,EAAQL,KAAK,CACpBC,KAAMI,EAAQpB,IAAI,EAAEgB,MAAQ,GAC5BX,KAAAA,EACAM,UAAAA,CACF,GACA4B,EAAc9C,GACd0C,aAAaO,UAAU,CAAC5C,GAExB6C,EAAAA,EAAKA,CAACC,CAAC,CAACC,aAAa,CAAC3C,KAAK,CAAC4C,SAAS,CAAC,CACpCzC,KAAAA,EACAM,UAAAA,CACF,EACF,CAAE,MAAOoC,EAAK,CACZC,QAAQC,KAAK,CAAC,6CAA8CF,EAC9D,CACF,EAAG,CAACR,EAAc,EAElBN,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACRO,IACAU,OAAOC,gBAAgB,CAAC,QAASX,GAC1B,KACLU,OAAOE,mBAAmB,CAAC,QAASZ,EACtC,GACC,CAACA,EAAc,CACpB,C","sources":["webpack://@affine/web/../core/src/components/affine/subscription-landing/notify.css.ts","webpack://@affine/web/../core/src/components/affine/subscription-landing/notify.tsx","webpack://@affine/web/../core/src/hooks/affine/use-subscription-notify.tsx"],"sourcesContent":["import \"../core/src/components/affine/subscription-landing/notify.css.ts.vanilla.css!=!../../../../../../../node_modules/@vanilla-extract/webpack-plugin/virtualFileLoader/dist/vanilla-extract-webpack-plugin-virtualFileLoader.cjs.js?{\\\"fileName\\\":\\\"../core/src/components/affine/subscription-landing/notify.css.ts.vanilla.css\\\",\\\"source\\\":\\\"LnQ1bmtiZzAgewogIGZvbnQtd2VpZ2h0OiA1MDA7CiAgZm9udC1zaXplOiAxNXB4Owp9Ci50NW5rYmcxIHsKICBkaXNwbGF5OiBmbGV4OwogIGp1c3RpZnktY29udGVudDogZW5kOwogIGdhcDogMTJweDsKICBwYWRkaW5nLXRvcDogOHB4Owp9Ci50NW5rYmcyIHsKICBmb250LXNpemU6IHZhcigtLWFmZmluZS1mb250LXNtKTsKICBmb250LXdlaWdodDogNTAwOwogIGxpbmUtaGVpZ2h0OiAyMnB4Owp9Ci50NW5rYmczLnBsYWluIHsKICBjb2xvcjogdmFyKC0tYWZmaW5lLWJyYW5kLWNvbG9yKTsKfQoudDVua2JnNC5wbGFpbiB7CiAgY29sb3I6IHZhcigtLWFmZmluZS10ZXh0LXByaW1hcnktY29sb3IpOwp9\\\"}!../../../../../../../node_modules/@vanilla-extract/webpack-plugin/extracted.js\"\nexport var actionButton = 't5nkbg2';\nexport var cancelButton = 't5nkbg4';\nexport var confirmButton = 't5nkbg3';\nexport var notifyFooter = 't5nkbg1';\nexport var notifyHeader = 't5nkbg0';","import { Button, notify } from '@affine/component';\nimport { useI18n } from '@affine/i18n';\nimport clsx from 'clsx';\nimport { useCallback, useRef } from 'react';\n\nimport {\n actionButton,\n cancelButton,\n confirmButton,\n notifyFooter,\n notifyHeader,\n} from './notify.css';\n\ninterface SubscriptionChangedNotifyFooterProps {\n onCancel: () => void;\n onConfirm?: () => void;\n to: string;\n okText: string;\n cancelText: string;\n}\n\nconst SubscriptionChangedNotifyFooter = ({\n to,\n okText,\n cancelText,\n onCancel,\n onConfirm,\n}: SubscriptionChangedNotifyFooterProps) => {\n return (\n