"use strict";var constants=require("../constants.js");const productBadgeShape=[{id:constants.SHAPE_ID.SQUARE,wrapperWidth:"100px",wrapperHeight:"100px",shapeRadius:{btlr:"3px",btrr:"3px",bblr:"3px",bbrr:"3px"},ratio:1,supportBorder:!0,supportCorner:!0},{id:constants.SHAPE_ID.VERTICAL_RECTANGLE,wrapperWidth:"auto",wrapperHeight:"auto",shapeRadius:{btlr:"3px",btrr:"3px",bblr:"3px",bbrr:"3px"},textStyle:{"--wm":"tb-rl","--t":"rotate(-180deg)"},supportBorder:!0,supportCorner:!0},{id:constants.SHAPE_ID.HORIZONTAL_RECTANGLE,wrapperWidth:"auto",wrapperHeight:"auto",supportBorder:!0,supportCorner:!0},{id:constants.SHAPE_ID.RIBBON,wrapperWidth:"132px",wrapperHeight:"132px",shapeStyle:{"clip-path":"polygon(60% 0, 100% 0%, 0 100%, 0 60%)"},textStyle:{"--t":"translate(-10%, -30%) rotate(-45deg)",width:"calc(100% * sqrt(2))"},ratio:1},{id:constants.SHAPE_ID.STAR_2,wrapperWidth:"132px",wrapperHeight:"132px",shapeStyle:{"clip-path":"polygon(50% 0%,64.351% 15.354%,85.355% 14.645%,84.646% 35.649%,100% 50%,84.646% 64.351%,85.355% 85.355%,64.351% 84.646%,50% 100%,35.649% 84.646%,14.645% 85.355%,15.354% 64.351%,0% 50%,15.354% 35.649%,14.645% 14.645%,35.649% 15.354%,50% 0%)"}},{id:constants.SHAPE_ID.STAR,wrapperWidth:"132px",wrapperHeight:"132px",shapeStyle:{"clip-path":"polygon(50% 0%,63.394% 17.664%,85.355% 14.645%,82.336% 36.606%,100% 50%,82.336% 63.394%,85.355% 85.355%,63.394% 82.336%,50% 100%,36.606% 82.336%,14.645% 85.355%,17.664% 63.394%,0% 50%,17.664% 36.606%,14.645% 14.645%,36.606% 17.664%,50% 0%)"},ratio:1},{id:constants.SHAPE_ID.RIBBON_2,wrapperWidth:"auto",wrapperHeight:"auto",shapeStyle:{"clip-path":"polygon(0 0, 0 0, 79.5% 0, 100% 50%, 79.5% 100%, 0 100%, 0 100%)"}},{id:constants.SHAPE_ID.RIBBON_3,wrapperWidth:"auto",wrapperHeight:"auto",shapeStyle:{"clip-path":"polygon( 0% 100%,14.744% 50%,0% 0%,82.051% 0%,100% 50%,82.051% 100%,0% 100%)"}},{id:constants.SHAPE_ID.TRIANGLE,wrapperWidth:"132px",wrapperHeight:"132px",shapeStyle:{"clip-path":"polygon(0% 0%, 0% 100%, 100% 0%)"},textStyle:{"--t":"translate(-20%, -75%) rotate(-45deg)",width:"calc(100% * sqrt(2))"},ratio:1}],shapeMap=new Map(productBadgeShape.map(t=>[t.id,t])),getShape=t=>{let p=shapeMap.get(t??"");return p||productBadgeShape[2]};exports.getShape=getShape;
