@@ -425,15 +425,12 @@ export default class HasShapes {
425425 // For hyperlinks, we need to handle them differently
426426 if ( info . target ) {
427427 await new Hyperlink (
428- info ,
429- this . targetType ,
428+ info ,
429+ this . targetType ,
430430 this . sourceArchive ,
431431 info . target . isExternal ? 'external' : 'internal' ,
432- info . target . file
433- ) [ info . mode ] (
434- this . targetTemplate ,
435- this . targetNumber
436- ) ;
432+ info . target . file ,
433+ ) [ info . mode ] ( this . targetTemplate , this . targetNumber ) ;
437434 }
438435 break ;
439436 default :
@@ -803,7 +800,7 @@ export default class HasShapes {
803800 sourceArchive : this . sourceArchive ,
804801 sourceSlideNumber : this . sourceNumber ,
805802 } ,
806- this . targetType
803+ this . targetType ,
807804 ) . modifyOnAddedSlide ( this . targetTemplate , this . targetNumber ) ;
808805 }
809806
@@ -816,11 +813,14 @@ export default class HasShapes {
816813 sourceArchive : this . sourceArchive ,
817814 sourceSlideNumber : this . sourceNumber ,
818815 } ,
819- this . targetType
816+ this . targetType ,
820817 ) . modifyOnAddedSlide ( this . targetTemplate , this . targetNumber ) ;
821818 }
822819
823- const oleObjects = await OLEObject . getAllOnSlide ( this . sourceArchive , this . relsPath ) ;
820+ const oleObjects = await OLEObject . getAllOnSlide (
821+ this . sourceArchive ,
822+ this . relsPath ,
823+ ) ;
824824 for ( const oleObject of oleObjects ) {
825825 await new OLEObject (
826826 {
@@ -830,12 +830,15 @@ export default class HasShapes {
830830 sourceSlideNumber : this . sourceNumber ,
831831 } ,
832832 this . targetType ,
833- this . sourceArchive
833+ this . sourceArchive ,
834834 ) . modifyOnAddedSlide ( this . targetTemplate , this . targetNumber , oleObjects ) ;
835835 }
836836
837837 // Copy hyperlinks
838- const hyperlinks = await Hyperlink . getAllOnSlide ( this . sourceArchive , this . relsPath ) ;
838+ const hyperlinks = await Hyperlink . getAllOnSlide (
839+ this . sourceArchive ,
840+ this . relsPath ,
841+ ) ;
839842 for ( const hyperlink of hyperlinks ) {
840843 // Create a new hyperlink with the correct target information
841844 const hyperlinkInstance = new Hyperlink (
@@ -848,14 +851,18 @@ export default class HasShapes {
848851 this . targetType ,
849852 this . sourceArchive ,
850853 hyperlink . isExternal ? 'external' : 'internal' ,
851- hyperlink . file
854+ hyperlink . file ,
852855 ) ;
853-
856+
854857 // Ensure the target property is properly set
855858 hyperlinkInstance . target = hyperlink ;
856-
859+
857860 // Process the hyperlink
858- await hyperlinkInstance . modifyOnAddedSlide ( this . targetTemplate , this . targetNumber , hyperlinks ) ;
861+ await hyperlinkInstance . modifyOnAddedSlide (
862+ this . targetTemplate ,
863+ this . targetNumber ,
864+ hyperlinks ,
865+ ) ;
859866 }
860867 }
861868
0 commit comments