1import{_ as k}from"./chunk-orderform-8e5d0a2b.js";import{o as c,c as s,a as v,m as C,f as b,t as e,q as w,b as f,e as n,l as m,F as x,d as u,n as y}from"./vendor-vue-8493ab91.js";const z={name:"comparisonTable",props:{element:{require:!0},dynamicClass:{require:!0}},computed:{ex:function(){return this.element.element_extras||{}},columns:function(){return this.ex.columns||[]},rows:function(){return this.ex.rows||[]},hlIdx:function(){return this.ex.highlight_column===void 0||this.ex.highlight_column===null?-1:this.ex.highlight_column},colors:function(){return{featureBg:this.ex.feature_bg||"#f8f9fa",featureText:this.ex.feature_text_color||"#333",normalBg:this.ex.normal_col_bg||"#ffffff",normalText:this.ex.cell_text_color||"#333",hlBg:this.ex.highlight_cell_bg||"#EBF5FF",hlText:this.ex.highlight_text_color||this.ex.cell_text_color||"#333",headerBg:this.ex.header_bg||"#f8f9fa",headerText:this.ex.header_text_color||"#333",hlHeaderBg:this.ex.highlight_color||"#2477FF"}}},methods:{headStyle:function(a){var r=this.colors;return a===this.hlIdx?{background:r.hlHeaderBg,color:"#fff"}:{background:r.headerBg,color:r.headerText}},cellStyle:function(a,r){var l=this.colors,i,h;return a==="feature"?(i=l.featureBg,h=l.featureText):a===this.hlIdx?(i=l.hlBg,h=l.hlText):(i=l.normalBg,h=l.normalText),this.ex.striped&&r%2===1&&(i=this.shiftColor(i)),{background:i,color:h}},shiftColor:function(a){if(!a)return"#f5f5f5";a=a.replace("#",""),a.length>6&&(a=a.substring(0,6)),a.length===3&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);var r=parseInt(a.substring(0,2),16)||0,l=parseInt(a.substring(2,4),16)||0,i=parseInt(a.substring(4,6),16)||0,h=(r*299+l*587+i*114)/1e3,t=15;return h>128?(r=Math.max(0,r-t),l=Math.max(0,l-t),i=Math.max(0,i-t)):(r=Math.min(255,r+t),l=Math.min(255,l+t),i=Math.min(255,i+t)),"#"+r.toString(16).padStart(2,"0")+l.toString(16).padStart(2,"0")+i.toString(16).padStart(2,"0")},val:function(a,r){return!a.values||a.values[r]===void 0?null:a.values[r]}}},F={key:0,class:"ct-title"},E={key:1,class:"ct-subtitle"},B={class:"ct-scroll"},S={class:"ct-table"},T={class:"ct-head"},I={key:0,class:"ct-badge"},M={key:0},q=n("i",{class:"fa fa-check ct-check"},null,-1),N=[q],V={key:1},D=n("i",{class:"fa fa-times ct-cross"},null,-1),H=[D],j={key:2},L=n("i",{class:"fa fa-minus ct-dash"},null,-1),P=[L],W={key:3},A={class:"ct-mobile-cards"},G={class:"ct-m-feature"},J={key:0},K=n("i",{class:"fa fa-check ct-check"},null,-1),O=[K],Q={key:1},R=n("i",{class:"fa fa-times ct-cross"},null,-1),U=[R],X={key:2},Y=n("i",{class:"fa fa-minus ct-dash"},null,-1),Z=[Y],p={key:3,style:{"font-weight":"600"}};function $(a,r,l,i,h,t){return c(),s("div",{class:y([[l.dynamicClass,l.element.box_shadow,l.element.border_type,l.element.border_radius,l.element.radius_edge],"ct-outer"]),style:m({borderColor:l.element.border_color,borderStyle:l.element.border_style,borderWidth:l.element.border_width+"px"})},[(c(),v(w("style"),{type:"text/css"},{default:C(()=>[b(" ."+e(l.dynamicClass)+".ct-outer { padding: "+e(l.element.padding_top+"px "+l.element.padding_right+"px "+l.element.padding_bottom+"px "+l.element.padding_left+"px")+"; background-color: "+e(l.element.background_color||"transparent")+"; font-family: "+e(l.element.font_family||"Poppins, sans-serif")+"; } ."+e(l.dynamicClass)+" .ct-title { font-size: "+e((t.ex.title_font_size||28)+"px")+"; font-weight: 700; color: "+e(t.ex.title_color||"#111")+"; text-align: center; margin-bottom: 8px; } ."+e(l.dynamicClass)+" .ct-subtitle { font-size: 16px; color: "+e(t.ex.subtitle_color||"#666")+"; text-align: center; margin-bottom: "+e((t.ex.title_margin_bottom||24)+"px")+"; } ."+e(l.dynamicClass)+" .ct-table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: "+e((t.ex.border_radius||12)+"px")+"; overflow: hidden; background: "+e(t.ex.table_bg||"#EEEEEEFF")+"; "+e(t.ex.table_shadow?"box-shadow: 0 4px 24px rgba(0,0,0,0.08);":"")+" } ."+e(l.dynamicClass)+" .ct-table th, ."+e(l.dynamicClass)+" .ct-table td { padding: "+e((t.ex.cell_padding||18)+"px "+(t.ex.cell_padding_x||24)+"px")+"; text-align: center; vertical-align: middle; border-bottom: 1px solid "+e(t.ex.border_color||"#eee")+"; font-size: "+e((t.ex.font_size||15)+"px")+"; } ."+e(l.dynamicClass)+" .ct-table td:first-child { text-align: left; font-weight: 600; min-width: 200px; } ."+e(l.dynamicClass)+" .ct-table tr:last-child td { border-bottom: none; } ."+e(l.dynamicClass)+" .ct-head th { font-weight: 700; font-size: "+e((t.ex.header_font_size||16)+"px")+"; border-bottom: 2px solid "+e(t.ex.border_color||"#eee")+"; text-transform: uppercase; letter-spacing: 0.5px; } ."+e(l.dynamicClass)+" .ct-check { color: "+e(t.ex.check_color||"#22C55E")+"; font-size: "+e((t.ex.icon_size||18)+"px")+"; } ."+e(l.dynamicClass)+" .ct-cross { color: "+e(t.ex.cross_color||"#EF4444")+"; font-size: "+e((t.ex.icon_size||18)+"px")+"; } ."+e(l.dynamicClass)+" .ct-dash { color: "+e(t.ex.dash_color||"#cccccc")+"; font-size: "+e((t.ex.icon_size||18)+"px")+"; } ."+e(l.dynamicClass)+" .ct-badge { display: inline-block; padding: 3px 10px; background: "+e(t.ex.highlight_color||"#2477FF")+"; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; margin-top: 4px; } ."+e(l.dynamicClass)+" .ct-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } ."+e(l.dynamicClass)+" .ct-mobile-cards { display: none; } ."+e(l.dynamicClass)+" .ct-m-row { background: "+e(t.ex.table_bg||"#EEEEEEFF")+"; border-radius: 10px; margin-bottom: 10px; padding: 14px 16px; "+e(t.ex.table_shadow?"box-shadow: 0 2px 12px rgba(0,0,0,0.06);":"")+" } ."+e(l.dynamicClass)+" .ct-m-feature { font-size: 14px; font-weight: 700; color: "+e(t.ex.feature_text_color||"#333")+"; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid "+e(t.ex.border_color||"#eee")+"; } ."+e(l.dynamicClass)+" .ct-m-val { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; color: "+e(t.ex.cell_text_color||"#333")+"; } ."+e(l.dynamicClass)+" .ct-m-col-name { font-weight: 600; color: "+e(t.ex.header_text_color||"#333")+"; }
1 ."+e(l.dynamicClass)+" .ct-m-hl { color: "+e(t.ex.highlight_color||"#2477FF")+"; font-weight: 700; } @media screen and (max-width:768px) { ."+e(l.dynamicClass)+".ct-outer { padding: "+e(l.element.mobile_padding_top+"px "+l.element.mobile_padding_right+"px "+l.element.mobile_padding_bottom+"px "+l.element.mobile_padding_left+"px")+" !important; } ."+e(l.dynamicClass)+" .ct-scroll { display: none; } ."+e(l.dynamicClass)+" .ct-mobile-cards { display: block; } ."+e(l.dynamicClass)+" .ct-title { font-size: 20px !important; } ."+e(l.dynamicClass)+" .ct-subtitle { font-size: 14px !important; } } ",1)]),_:1})),t.ex.show_title&&t.ex.title_text?(c(),s("div",F,e(t.ex.title_text),1)):f("",!0),t.ex.show_title&&t.ex.subtitle_text?(c(),s("div",E,e(t.ex.subtitle_text),1)):f("",!0),n("div",B,[n("table",S,[n("thead",null,[n("tr",T,[n("th",{style:m(t.headStyle("feature"))},e(t.ex.feature_header||"Features"),5),(c(!0),s(x,null,u(t.columns,(d,_)=>(c(),s("th",{key:"h"+_,style:m(t.headStyle(_))},[b(e(d.name)+" ",1),_===t.hlIdx&&t.ex.highlight_badge_text?(c(),s("div",I,e(t.ex.highlight_badge_text),1)):f("",!0)],4))),128))])]),n("tbody",null,[(c(!0),s(x,null,u(t.rows,(d,_)=>(c(),s("tr",{key:"r"+_},[n("td",{style:m(t.cellStyle("feature",_))},e(d.feature),5),(c(!0),s(x,null,u(t.columns,(g,o)=>(c(),s("td",{key:"c"+_+"-"+o,style:m(t.cellStyle(o,_))},[t.val(d,o)===!0?(c(),s("span",M,N)):t.val(d,o)===!1?(c(),s("span",V,H)):t.val(d,o)===null?(c(),s("span",j,P)):(c(),s("span",W,e(t.val(d,o)),1))],4))),128))]))),128))])])]),n("div",A,[(c(!0),s(x,null,u(t.rows,(d,_)=>(c(),s("div",{key:"m"+_,class:"ct-m-row"},[n("div",G,e(d.feature),1),(c(!0),s(x,null,u(t.columns,(g,o)=>(c(),s("div",{key:"mv"+_+"-"+o,class:"ct-m-val"},[n("span",{class:y(o===t.hlIdx?"ct-m-hl":"ct-m-col-name")},e(g.name),3),n("span",null,[t.val(d,o)===!0?(c(),s("span",J,O)):t.val(d,o)===!1?(c(),s("span",Q,U)):t.val(d,o)===null?(c(),s("span",X,Z)):(c(),s("span",p,e(t.val(d,o)),1))])]))),128))]))),128))])],6)}const le=k(z,[["render",$]]);export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.