{"version":3,"file":"deprecated.mjs","names":[],"sources":["../../src/navigation-link/deprecated.tsx"],"sourcesContent":["import { InnerBlocks } from '@wordpress/block-editor';\n\ntype NavigationLinkDeprecatedAttributes = {\n\tlabel?: string;\n\ttype?: string;\n\tnofollow?: boolean;\n\tdescription?: string;\n\tid?: number;\n\topensInNewTab?: boolean;\n\turl?: string;\n};\n\nconst deprecated = [\n\t{\n\t\tisEligible( attributes: NavigationLinkDeprecatedAttributes ) {\n\t\t\treturn attributes.nofollow;\n\t\t},\n\n\t\tattributes: {\n\t\t\tlabel: {\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t\tnofollow: {\n\t\t\t\ttype: 'boolean',\n\t\t\t},\n\t\t\tdescription: {\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t\tid: {\n\t\t\t\ttype: 'number',\n\t\t\t},\n\t\t\topensInNewTab: {\n\t\t\t\ttype: 'boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\turl: {\n\t\t\t\ttype: 'string',\n\t\t\t},\n\t\t},\n\n\t\tmigrate( { nofollow, ...rest }: NavigationLinkDeprecatedAttributes ) {\n\t\t\treturn {\n\t\t\t\trel: nofollow ? 'nofollow' : '',\n\t\t\t\t...rest,\n\t\t\t};\n\t\t},\n\n\t\tsave() {\n\t\t\treturn <InnerBlocks.Content />;\n\t\t},\n\t},\n];\n\nexport default deprecated;\n"],"mappings":";;;AAYA,MAAM,aAAa,CAClB;CACC,WAAY,YAAiD;EAC5D,OAAO,WAAW;CACnB;CAEA,YAAY;EACX,OAAO,EACN,MAAM,SACP;EACA,MAAM,EACL,MAAM,SACP;EACA,UAAU,EACT,MAAM,UACP;EACA,aAAa,EACZ,MAAM,SACP;EACA,IAAI,EACH,MAAM,SACP;EACA,eAAe;GACd,MAAM;GACN,SAAS;EACV;EACA,KAAK,EACJ,MAAM,SACP;CACD;CAEA,QAAS,EAAE,UAAU,GAAG,QAA6C;EACpE,OAAO;GACN,KAAK,WAAW,aAAa;GAC7B,GAAG;EACJ;CACD;CAEA,OAAO;EACN,OAAO,oBAAC,YAAY,SAAb,CAAsB,CAAA;CAC9B;AACD,CACD"}