MCPcopy Create free account
hub / github.com/simstudioai/sim / FJ

Function FJ

apps/sim/lib/execution/sandbox/bundles/pptxgenjs.cjs:64–64  ·  view source on GitHub ↗
($,q)

Source from the content-addressed store, hash-verified

62 <a:pt x="${H0(h.curve.x1,"X",$._presLayout)}" y="${H0(h.curve.y1,"Y",$._presLayout)}" />
63 <a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" />
64 </a:quadBezTo>`;break}else if("close"in h)Q+="<a:close />";else if(h.moveTo||x===0)Q+=`<a:moveTo><a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" /></a:moveTo>`;else Q+=`<a:lnTo><a:pt x="${H0(h.x,"X",$._presLayout)}" y="${H0(h.y,"Y",$._presLayout)}" /></a:lnTo>`}),Q+="</a:path>",Q+="</a:pathLst>",Q+="</a:custGeom>";else{if(Q+='<a:prstGeom prst="'+J.shape+'"><a:avLst>',J.options.rectRadius)Q+=`<a:gd name="adj" fmla="val ${Math.round(J.options.rectRadius*L0*1e5/Math.min(L,D))}"/>`;else if(J.options.angleRange){for(let h=0;h<2;h++){let x=J.options.angleRange[h];Q+=`<a:gd name="adj${h+1}" fmla="val ${S1(x)}" />`}if(J.options.arcThicknessRatio)Q+=`<a:gd name="adj3" fmla="val ${Math.round(J.options.arcThicknessRatio*50000)}" />`}Q+="</a:avLst></a:prstGeom>"}if(Q+=J.options.fill?B2(J.options.fill):"<a:noFill/>",J.options.line){if(Q+=J.options.line.width?`<a:ln w="${Y0(J.options.line.width)}">`:"<a:ln>",J.options.line.color)Q+=B2(J.options.line);if(J.options.line.dashType)Q+=`<a:prstDash val="${J.options.line.dashType}"/>`;if(J.options.line.beginArrowType)Q+=`<a:headEnd type="${J.options.line.beginArrowType}"/>`;if(J.options.line.endArrowType)Q+=`<a:tailEnd type="${J.options.line.endArrowType}"/>`;Q+="</a:ln>"}if(J.options.shadow&&J.options.shadow.type!=="none")J.options.shadow.type=J.options.shadow.type||"outer",J.options.shadow.blur=Y0(J.options.shadow.blur||8),J.options.shadow.offset=Y0(J.options.shadow.offset||4),J.options.shadow.angle=Math.round((J.options.shadow.angle||270)*60000),J.options.shadow.opacity=Math.round((J.options.shadow.opacity||0.75)*1e5),J.options.shadow.color=J.options.shadow.color||tK.color,Q+="<a:effectLst>",Q+=` <a:${J.options.shadow.type}Shdw ${J.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${J.options.shadow.blur}" dist="${J.options.shadow.offset}" dir="${J.options.shadow.angle}">`,Q+=` <a:srgbClr val="${J.options.shadow.color}">`,Q+=` <a:alpha val="${J.options.shadow.opacity}"/></a:srgbClr>`,Q+=" </a:outerShdw>",Q+="</a:effectLst>";Q+="</p:spPr>",Q+=qJ(J),Q+="</p:sp>";break;case D0.image:if(Q+="<p:pic>",Q+=" <p:nvPicPr>",Q+=`<p:cNvPr id="${Z+2}" name="${J.options.objectName}" descr="${k0(J.options.altText||J.image)}">`,(F=J.hyperlink)===null||F===void 0?void 0:F.url)Q+=`<a:hlinkClick r:id="rId${J.hyperlink._rId}" tooltip="${J.hyperlink.tooltip?k0(J.hyperlink.tooltip):""}"/>`;if((M=J.hyperlink)===null||M===void 0?void 0:M.slide)Q+=`<a:hlinkClick r:id="rId${J.hyperlink._rId}" tooltip="${J.hyperlink.tooltip?k0(J.hyperlink.tooltip):""}" action="ppaction://hlinksldjump"/>`;if(Q+=" </p:cNvPr>",Q+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',Q+=" <p:nvPr>"+w5(z)+"</p:nvPr>",Q+=" </p:nvPicPr>",Q+="<p:blipFill>",($._relsMedia||[]).filter((h)=>h.rId===J.imageRid)[0]&&($._relsMedia||[]).filter((h)=>h.rId===J.imageRid)[0].extn==="svg")Q+=`<a:blip r:embed="rId${J.imageRid-1}">`,Q+=J.options.transparency?` <a:alphaModFix amt="${Math.round((100-J.options.transparency)*1000)}"/>`:"",Q+=" <a:extLst>",Q+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',Q+=` <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId${J.imageRid}"/>`,Q+=" </a:ext>",Q+=" </a:extLst>",Q+="</a:blip>";else Q+=`<a:blip r:embed="rId${J.imageRid}">`,Q+=J.options.transparency?`<a:alphaModFix amt="${Math.round((100-J.options.transparency)*1000)}"/>`:"",Q+="</a:blip>";if(X===null||X===void 0?void 0:X.type){let h=X.w?H0(X.w,"X",$._presLayout):L,x=X.h?H0(X.h,"Y",$._presLayout):D,l=H0(X.x||0,"X",$._presLayout),$0=H0(X.y||0,"Y",$._presLayout);Q+=XB[X.type]({w:g,h:c},{w:h,h:x,x:l,y:$0}),g=h,c=x}else Q+=" <a:stretch><a:fillRect/></a:stretch>";if(Q+="</p:blipFill>",Q+="<p:spPr>",Q+=" <a:xfrm"+N+">",Q+=` <a:off x="${k}" y="${f}"/>`,Q+=` <a:ext cx="${g}" cy="${c}"/>`,Q+=" </a:xfrm>",Q+=` <a:prstGeom prst="${P?"ellipse":"rect"}"><a:avLst/></a:prstGeom>`,J.options.shadow&&J.options.shadow.type!=="none")J.options.shadow.type=J.options.shadow.type||"outer",J.options.shadow.blur=Y0(J.options.shadow.blur||8),J.options.shadow.offset=Y0(J.options.shadow.offset||4),J.options.shadow.angle=Math.round((J.options.shadow.angle||270)*60000),J.options.shadow.opacity=Math.round((J.options.shadow.opacity||0.75)*1e5),J.options.shadow.color=J.options.shadow.color||tK.color,Q+="<a:effectLst>",Q+=`<a:${J.options.shadow.type}Shdw ${J.options.shadow.type==="outer"?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':""} blurRad="${J.options.shadow.blur}" dist="${J.options.shadow.offset}" dir="${J.options.shadow.angle}">`,Q+=`<a:srgbClr val="${J.options.shadow.color}">`,Q+=`<a:alpha val="${J.options.shadow.opacity}"/></a:srgbClr>`,Q+=`</a:${J.options.shadow.type}Shdw>`,Q+="</a:effectLst>";Q+="</p:spPr>",Q+="</p:pic>";break;case D0.media:if(J.mtype==="online")Q+="<p:pic>",Q+=" <p:nvPicPr>",Q+=`<p:cNvPr id="${J.mediaRid+2}" name="${J.options.objectName}"/>`,Q+=" <p:cNvPicPr/>",Q+=" <p:nvPr>",Q+=` <a:videoFile r:link="rId${J.mediaRid}"/>`,Q+=" </p:nvPr>",Q+=" </p:nvPicPr>",Q+=` <p:blipFill><a:blip r:embed="rId${J.mediaRid+1}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,Q+=" <p:spPr>",Q+=` <a:xfrm${N}><a:off x="${k}" y="${f}"/><a:ext cx="${L}" cy="${D}"/></a:xfrm>`,Q+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',Q+=" </p:spPr>",Q+="</p:pic>";else Q+="<p:pic>",Q+=" <p:nvPicPr>",Q+=`<p:cNvPr id="${J.mediaRid+2}" name="${J.options.objectName}"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>`,Q+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',Q+=" <p:nvPr>",Q+=` <a:videoFile r:link="rId${J.mediaRid}"/>`,Q+=" <p:extLst>",Q+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',Q+=` <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId${J.mediaRid+1}"/>`,Q+=" </p:ext>",Q+=" </p:extLst>",Q+=" </p:nvPr>",Q+=" </p:nvPicPr>",Q+=` <p:blipFill><a:blip r:embed="rId${J.mediaRid+2}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>`,Q+=" <p:spPr>",Q+=` <a:xfrm${N}><a:off x="${k}" y="${f}"/><a:ext cx="${L}" cy="${D}"/></a:xfrm>`,Q+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',Q+=" </p:spPr>",Q+="</p:pic>";break;case D0.chart:Q+="<p:graphicFrame>",Q+=" <p:nvGraphicFramePr>",Q+=` <p:cNvPr id="${Z+2}" name="${J.options.objectName}" descr="${k0(J.options.altText||"")}"/>`,Q+=" <p:cNvGraphicFramePr/>",Q+=` <p:nvPr>${w5(z)}</p:nvPr>`,Q+=" </p:nvGraphicFramePr>",Q+=` <p:xfrm><a:off x="${k}" y="${f}"/><a:ext cx="${L}" cy="${D}"/></p:xfrm>`,Q+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',Q+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',Q+=` <c:chart r:id="rId${J.chartRid}" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>`,Q+=" </a:graphicData>",Q+=" </a:graphic>",Q+="</p:graphicFrame>";break;default:Q+="";break}}),$._slideNumberProps){if(!$._slideNumberProps.align)$._slideNumberProps.align="left";if(Q+="<p:sp>",Q+=" <p:nvSpPr>",Q+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',Q+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',Q+=" </p:nvSpPr>",Q+=" <p:spPr>",Q+=`<a:xfrm><a:off x="${H0($._slideNumberProps.x,"X",$._presLayout)}" y="${H0($._slideNumberProps.y,"Y",$._presLayout)}"/><a:ext cx="${$._slideNumberProps.w?H0($._slideNumberProps.w,"X",$._presLayout):"800000"}" cy="${$._slideNumberProps.h?H0($._slideNumberProps.h,"Y",$._presLayout):"300000"}"/></a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>`,Q+="<p:txBody>",Q+="<a:bodyPr",$._slideNumberProps.margin&&Array.isArray($._slideNumberProps.margin))Q+=` lIns="${Y0($._slideNumberProps.margin[3]||0)}"`,Q+=` tIns="${Y0($._slideNumberProps.margin[0]||0)}"`,Q+=` rIns="${Y0($._slideNumberProps.margin[1]||0)}"`,Q+=` bIns="${Y0($._slideNumberProps.margin[2]||0)}"`;else if(typeof $._slideNumberProps.margin==="number")Q+=` lIns="${Y0($._slideNumberProps.margin||0)}"`,Q+=` tIns="${Y0($._slideNumberProps.margin||0)}"`,Q+=` rIns="${Y0($._slideNumberProps.margin||0)}"`,Q+=` bIns="${Y0($._slideNumberProps.margin||0)}"`;if($._slideNumberProps.valign)Q+=` anchor="${$._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b")}"`;if(Q+="/>",Q+=" <a:lstStyle><a:lvl1pPr>",$._slideNumberProps.fontFace||$._slideNumberProps.fontSize||$._slideNumberProps.color){if(Q+=`<a:defRPr sz="${Math.round(($._slideNumberProps.fontSize||12)*100)}">`,$._slideNumberProps.color)Q+=B2($._slideNumberProps.color);if($._slideNumberProps.fontFace)Q+=`<a:latin typeface="${$._slideNumberProps.fontFace}"/><a:ea typeface="${$._slideNumberProps.fontFace}"/><a:cs typeface="${$._slideNumberProps.fontFace}"/>`;Q+="</a:defRPr>"}if(Q+="</a:lvl1pPr></a:lstStyle>",Q+="<a:p>",$._slideNumberProps.align.startsWith("l"))Q+='<a:pPr algn="l"/>';else if($._slideNumberProps.align.startsWith("c"))Q+='<a:pPr algn="ctr"/>';else if($._slideNumberProps.align.startsWith("r"))Q+='<a:pPr algn="r"/>';else Q+='<a:pPr algn="l"/>';Q+=`<a:fld id="${UJ}" type="slidenum"><a:rPr b="${$._slideNumberProps.bold?1:0}" lang="en-US"/>`,Q+=`<a:t>${$._slideNum}</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>`,Q+="</p:txBody></p:sp>"}return Q+="</p:spTree>",Q+="</p:cSld>",Q}function d7($,q){let Q=0,K='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+n0+'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return $._rels.forEach((J)=>{if(Q=Math.max(Q,J.rId),J.type.toLowerCase().includes("hyperlink"))if(J.data==="slide")K+=`<Relationship Id="rId${J.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide${J.Target}.xml"/>`;else K+=`<Relationship Id="rId${J.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${J.Target}" TargetMode="External"/>`;else if(J.type.toLowerCase().includes("notesSlide"))K+=`<Relationship Id="rId${J.rId}" Target="${J.Target}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>`}),($._relsChart||[]).forEach((J)=>{Q=Math.max(Q,J.rId),K+=`<Relationship Id="rId${J.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="${J.Target}"/>`}),($._relsMedia||[]).forEach((J)=>{let Z=J.rId.toString();if(Q=Math.max(Q,J.rId),J.type.toLowerCase().includes("image"))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+J.Target+'"/>';else if(J.type.toLowerCase().includes("audio"))if(K.includes(' Target="'+J.Target+'"'))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+J.Target+'"/>';else K+='<Relationship Id="rId'+Z+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+J.Target+'"/>';else if(J.type.toLowerCase().includes("video"))if(K.includes(' Target="'+J.Target+'"'))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+J.Target+'"/>';else K+='<Relationship Id="rId'+Z+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+J.Target+'"/>';else if(J.type.toLowerCase().includes("online"))if(K.includes(' Target="'+J.Target+'"'))K+='<Relationship Id="rId'+Z+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+J.Target+'"/>';else K+='<Relationship Id="rId'+Z+'" Target="'+J.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>'}),q.forEach((J,Z)=>{K+=`<Relationship Id="rId${Q+Z+1}" Type="${J.type}" Target="${J.target}"/>`}),K+="</Relationships>",K}function QJ($,q){var Q,K;let J="",Z="",G="",W="",B=q?"a:lvl1pPr":"a:pPr",V=Y0(FB),U=`<${B}${$.options.rtlMode?' rtl="1" ':""}`;{if($.options.align)switch($.options.align){case"left":U+=' algn="l"';break;case"right":U+=' algn="r"';break;case"center":U+=' algn="ctr"';break;case"justify":U+=' algn="just"';break;default:U+="";break}if($.options.lineSpacing)Z=`<a:lnSpc><a:spcPts val="${Math.round($.options.lineSpacing*100)}"/></a:lnSpc>`;else if($.options.lineSpacingMultiple)Z=`<a:lnSpc><a:spcPct val="${Math.round($.options.lineSpacingMultiple*1e5)}"/></a:lnSpc>`;if($.options.indentLevel&&!isNaN(Number($.options.indentLevel))&&$.options.indentLevel>0)U+=` lvl="${$.options.indentLevel}"`;if($.options.paraSpaceBefore&&!isNaN(Number($.options.paraSpaceBefore))&&$.options.paraSpaceBefore>0)G+=`<a:spcBef><a:spcPts val="${Math.round($.options.paraSpaceBefore*100)}"/></a:spcBef>`;if($.options.paraSpaceAfter&&!isNaN(Number($.options.paraSpaceAfter))&&$.options.paraSpaceAfter>0)G+=`<a:spcAft><a:spcPts val="${Math.round($.options.paraSpaceAfter*100)}"/></a:spcAft>`;if(typeof $.options.bullet==="object"){if((K=(Q=$===null||$===void 0?void 0:$.options)===null||Q===void 0?void 0:Q.bullet)===null||K===void 0?void 0:K.indent)V=Y0($.options.bullet.indent);if($.options.bullet.type){if($.options.bullet.type.toString().toLowerCase()==="number")U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J=`<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="${$.options.bullet.style||"arabicPeriod"}" startAt="${$.options.bullet.numberStartAt||$.options.bullet.startAt||"1"}"/>`}else if($.options.bullet.characterCode){let w=`&#x${$.options.bullet.characterCode};`;if(!/^[0-9A-Fa-f]{4}$/.test($.options.bullet.characterCode))console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),w=C6.DEFAULT;U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J='<a:buSzPct val="100000"/><a:buChar char="'+w+'"/>'}else if($.options.bullet.code){let w=`&#x${$.options.bullet.code};`;if(!/^[0-9A-Fa-f]{4}$/.test($.options.bullet.code))console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),w=C6.DEFAULT;U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J='<a:buSzPct val="100000"/><a:buChar char="'+w+'"/>'}else U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J=`<a:buSzPct val="100000"/><a:buChar char="${C6.DEFAULT}"/>`}else if($.options.bullet)U+=` marL="${$.options.indentLevel&&$.options.indentLevel>0?V+V*$.options.indentLevel:V}" indent="-${V}"`,J=`<a:buSzPct val="100000"/><a:buChar char="${C6.DEFAULT}"/>`;else if(!$.options.bullet)U+=' indent="0" marL="0"',J="<a:buNone/>";if($.options.tabStops&&Array.isArray($.options.tabStops))W=`<a:tabLst>${$.options.tabStops.map((F)=>`<a:tab pos="${v0(F.position||1)}" algn="${F.alignment||"l"}"/>`).join("")}</a:tabLst>`;if(U+=">"+Z+G+J+W,q)U+=FJ($.options,!0);U+="</"+B+">"}return U}function FJ($,q){var Q;let K="",J=q?"a:defRPr":"a:rPr";if(K+="<"+J+' lang="'+($.lang?$.lang:"en-US")+'"'+($.lang?' altLang="en-US"':""),K+=$.fontSize?` sz="${Math.round($.fontSize*100)}"`:"",K+=($===null||$===void 0?void 0:$.bold)?` b="${$.bold?"1":"0"}"`:"",K+=($===null||$===void 0?void 0:$.italic)?` i="${$.italic?"1":"0"}"`:"",K+=($===null||$===void 0?void 0:$.strike)?` strike="${typeof $.strike==="string"?$.strike:"sngStrike"}"`:"",typeof $.underline==="object"&&((Q=$.underline)===null||Q===void 0?void 0:Q.style))K+=` u="${$.underline.style}"`;else if(typeof $.underline==="string")K+=` u="${String($.underline)}"`;else if($.hyperlink)K+=' u="sng"';if($.baseline)K+=` baseline="${Math.round($.baseline*50)}"`;else if($.subscript)K+=' baseline="-40000"';else if($.superscript)K+=' baseline="30000"';if(K+=$.charSpacing?` spc="${Math.round($.charSpacing*100)}" kern="0"`:"",K+=' dirty="0">',$.color||$.fontFace||$.outline||typeof $.underline==="object"&&$.underline.color){if($.outline&&typeof $.outline==="object")K+=`<a:ln w="${Y0($.outline.size||0.75)}">${B2($.outline.color||"FFFFFF")}</a:ln>`;if($.color)K+=B2({color:$.color,transparency:$.transparency});if($.highlight)K+=`<a:highlight>${R0($.highlight)}</a:highlight>`;if(typeof $.underline==="object"&&$.underline.color)K+=`<a:uFill>${B2($.underline.color)}</a:uFill>`;if($.glow)K+=`<a:effectLst>${kB($.glow,wB)}</a:effectLst>`;if($.fontFace)K+=`<a:latin typeface="${$.fontFace}" pitchFamily="34" charset="0"/><a:ea typeface="${$.fontFace}" pitchFamily="34" charset="-122"/><a:cs typeface="${$.fontFace}" pitchFamily="34" charset="-120"/>`}if($.hyperlink){if(typeof $.hyperlink!=="object")throw Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");else if(!$.hyperlink.url&&!$.hyperlink.slide)throw Error("ERROR: 'hyperlink requires either `url` or `slide`'");else if($.hyperlink.url)K+=`<a:hlinkClick r:id="rId${$.hyperlink._rId}" invalidUrl="" action="" tgtFrame="" tooltip="${$.hyperlink.tooltip?k0($.hyperlink.tooltip):""}" history="1" highlightClick="0" endSnd="0"${$.color?">":"/>"}`;else if($.hyperlink.slide)K+=`<a:hlinkClick r:id="rId${$.hyperlink._rId}" action="ppaction://hlinksldjump" tooltip="${$.hyperlink.tooltip?k0($.hyperlink.tooltip):""}"${$.color?">":"/>"}`;if($.color)K+=" <a:extLst>",K+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',K+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',K+=" </a:ext>",K+=" </a:extLst>",K+="</a:hlinkClick>"}return K+=`</${J}>`,K}function yB($){return $.text?`<a:r>${FJ($.options,!1)}<a:t>${k0($.text)}</a:t></a:r>`:""}function hB($){let q="<a:bodyPr";if($&&$._type===D0.text&&$.options._bodyProp){if(q+=$.options._bodyProp.wrap?' wrap="square"':' wrap="none"',$.options._bodyProp.lIns||$.options._bodyProp.lIns===0)q+=` lIns="${$.options._bodyProp.lIns}"`;if($.options._bodyProp.tIns||$.options._bodyProp.tIns===0)q+=` tIns="${$.options._bodyProp.tIns}"`;if($.options._bodyProp.rIns||$.options._bodyProp.rIns===0)q+=` rIns="${$.options._bodyProp.rIns}"`;if($.options._bodyProp.bIns||$.options._bodyProp.bIns===0)q+=` bIns="${$.options._bodyProp.bIns}"`;if(q+=' rtlCol="0"',$.options._bodyProp.anchor)q+=' anchor="'+$.options._bodyProp.anchor+'"';if($.options._bodyProp.vert)q+=' vert="'+$.options._bodyProp.vert+'"';if(q+=">",$.options.fit){if($.options.fit==="none")q+="";else if($.options.fit==="shrink")q+="<a:normAutofit/>";else if($.options.fit==="resize")q+="<a:spAutoFit/>"}if($.options.shrinkText)q+="<a:normAutofit/>";q+=$.options._bodyProp.autoFit?"<a:spAutoFit/>":"",q+="</a:bodyPr>"}else q+=' wrap="square" rtlCol="0">',q+="</a:bodyPr>";return $._type===D0.tablecell?"<a:bodyPr/>":q}function qJ($){let q=$.options||{},Q=[],K=[];if(q&&$._type!==D0.tablecell&&(typeof $.text>"u"||$.text===null))return"";let J=$._type===D0.tablecell?"<a:txBody>":"<p:txBody>";if(J+=hB($),q.h===0&&q.line&&q.align)J+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>';else if($._type==="placeholder")J+=`<a:lstStyle>${QJ($,!0)}</a:lstStyle>`;else J+="<a:lstStyle/>";if(typeof $.text==="string"||typeof $.text==="number")Q.push({text:$.text.toString(),options:q||{}});else if($.text&&!Array.isArray($.text)&&typeof $.text==="object"&&Object.keys($.text).includes("text"))Q.push({text:$.text||"",options:$.options||{}});else if(Array.isArray($.text))Q=$.text.map((W)=>({text:W.text,options:W.options}));Q.forEach((W,B)=>{if(!W.text)W.text="";if(W.options=W.options||q||{},B===0&&W.options&&!W.options.bullet&&q.bullet)W.options.bullet=q.bullet;if(typeof W.text==="string"||typeof W.text==="number")W.text=W.text.toString().replace(/\r*\n/g,n0);if(W.text.includes(n0)&&W.text.match(/\n$/g)===null)W.text.split(n0).forEach((V)=>{W.options.breakLine=!0,K.push({text:V,options:W.options})});else K.push(W)});let Z=[],G=[];if(K.forEach((W,B)=>{if(G.length>0&&(W.options.align||q.align)){if(W.options.align!==K[B-1].options.align)Z.push(G),G=[]}else if(G.length>0&&W.options.bullet&&G.length>0)Z.push(G),G=[],W.options.breakLine=!1;if(G.push(W),G.length>0&&W.options.breakLine){if(B+1<K.length)Z.push(G),G=[]}if(B+1===K.length)Z.push(G)}),Z.forEach((W)=>{var B;let V=!1;J+="<a:p>";let U=`<a:pPr ${((B=W[0].options)===null||B===void 0?void 0:B.rtlMode)?' rtl="1" ':""}`;if(W.forEach((w,F)=>{if(w.options._lineIdx=F,F>0&&w.options.softBreakBefore)J+="<a:br/>";if(w.options.align=w.options.align||q.align,w.options.lineSpacing=w.options.lineSpacing||q.lineSpacing,w.options.lineSpacingMultiple=w.options.lineSpacingMultiple||q.lineSpacingMultiple,w.options.indentLevel=w.options.indentLevel||q.indentLevel,w.options.paraSpaceBefore=w.options.paraSpaceBefore||q.paraSpaceBefore,w.options.paraSpaceAfter=w.options.paraSpaceAfter||q.paraSpaceAfter,U=QJ(w,!1),J+=U.replace("<a:pPr></a:pPr>",""),Object.entries(q).filter(([M])=>!(w.options.hyperlink&&M==="color")).forEach(([M,k])=>{if(M!=="bullet"&&!w.options[M])w.options[M]=k}),J+=yB(w),!w.text&&q.fontSize||w.options.fontSize)V=!0,q.fontSize=q.fontSize||w.options.fontSize}),$._type===D0.tablecell&&(q.fontSize||q.fontFace))if(q.fontFace)J+=`<a:endParaRPr lang="${q.lang||"en-US"}"`+(q.fontSize?` sz="${Math.round(q.fontSize*100)}"`:"")+' dirty="0">',J+=`<a:latin typeface="${q.fontFace}" charset="0"/>`,J+=`<a:ea typeface="${q.fontFace}" charset="0"/>`,J+=`<a:cs typeface="${q.fontFace}" charset="0"/>`,J+="</a:endParaRPr>";else J+=`<a:endParaRPr lang="${q.lang||"en-US"}"`+(q.fontSize?` sz="${Math.round(q.fontSize*100)}"`:"")+' dirty="0"/>';else if(V)J+=`<a:endParaRPr lang="${q.lang||"en-US"}"`+(q.fontSize?` sz="${Math.round(q.fontSize*100)}"`:"")+' dirty="0"/>';else J+=`<a:endParaRPr lang="${q.lang||"en-US"}" dirty="0"/>`;J+="</a:p>"}),J.indexOf("<a:p>")===-1)J+="<a:p><a:endParaRPr/></a:p>";return J+=$._type===D0.tablecell?"</a:txBody>":"</p:txBody>",J}function w5($){var q,Q;if(!$)return"";let K=((q=$.options)===null||q===void 0?void 0:q._placeholderIdx)?$.options._placeholderIdx:"",J=((Q=$.options)===null||Q===void 0?void 0:Q._placeholderType)?$.options._placeholderType:"",Z=J&&F8[J]?F8[J].toString():"";return`<p:ph
65 ${K?' idx="'+K.toString()+'"':""}
66 ${Z&&F8[Z]?` type="${Z}"`:""}
67 ${$.text&&$.text.length>0?' hasCustomPrompt="1"':""}

Callers 2

QJFunction · 0.70
yBFunction · 0.70

Calls 5

kBFunction · 0.85
Y0Function · 0.70
B2Function · 0.70
R0Function · 0.70
k0Function · 0.70

Tested by

no test coverage detected