@adobe/aem-core-components-react-spa
Advanced tools
Comparing version 1.1.8 to 1.2.0
@@ -1,4 +0,4 @@ | ||
{"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/AbstractCoreContainerComponent.tsx": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/AbstractCoreContainerComponent.tsx","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":31}},"1":{"start":{"line":40,"column":18},"end":{"line":46,"column":4}},"2":{"start":{"line":41,"column":4},"end":{"line":45,"column":null}},"3":{"start":{"line":42,"column":8},"end":{"line":42,"column":45}},"4":{"start":{"line":44,"column":8},"end":{"line":44,"column":21}},"5":{"start":{"line":49,"column":40},"end":{"line":66,"column":1}},"6":{"start":{"line":54,"column":4},"end":{"line":65,"column":null}},"7":{"start":{"line":56,"column":29},"end":{"line":56,"column":47}},"8":{"start":{"line":57,"column":33},"end":{"line":57,"column":116}},"9":{"start":{"line":59,"column":30},"end":{"line":62,"column":10}},"10":{"start":{"line":64,"column":8},"end":{"line":64,"column":46}},"11":{"start":{"line":49,"column":13},"end":{"line":49,"column":40}},"12":{"start":{"line":70,"column":37},"end":{"line":120,"column":1}},"13":{"start":{"line":74,"column":4},"end":{"line":118,"column":null}},"14":{"start":{"line":80,"column":12},"end":{"line":80,"column":25}},"15":{"start":{"line":81,"column":12},"end":{"line":81,"column":null}},"16":{"start":{"line":84,"column":12},"end":{"line":88,"column":null}},"17":{"start":{"line":86,"column":16},"end":{"line":86,"column":99}},"18":{"start":{"line":87,"column":16},"end":{"line":87,"column":57}},"19":{"start":{"line":92,"column":12},"end":{"line":99,"column":null}},"20":{"start":{"line":93,"column":16},"end":{"line":98,"column":null}},"21":{"start":{"line":94,"column":34},"end":{"line":94,"column":62}},"22":{"start":{"line":95,"column":20},"end":{"line":97,"column":null}},"23":{"start":{"line":103,"column":12},"end":{"line":105,"column":null}},"24":{"start":{"line":104,"column":16},"end":{"line":104,"column":97}},"25":{"start":{"line":109,"column":12},"end":{"line":111,"column":null}},"26":{"start":{"line":110,"column":16},"end":{"line":110,"column":99}},"27":{"start":{"line":116,"column":12},"end":{"line":116,"column":116}},"28":{"start":{"line":70,"column":13},"end":{"line":70,"column":37}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":40,"column":19},"end":{"line":40,"column":22}},"loc":{"start":{"line":40,"column":24},"end":{"line":46,"column":1}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":49,"column":40},"end":{"line":49,"column":null}},"loc":{"start":{"line":53,"column":28},"end":{"line":66,"column":1}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":54,"column":11},"end":{"line":54,"column":12}},"loc":{"start":{"line":54,"column":23},"end":{"line":65,"column":5}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":70,"column":37},"end":{"line":70,"column":null}},"loc":{"start":{"line":72,"column":27},"end":{"line":120,"column":1}}},"4":{"name":"(anonymous_10)","decl":{"start":{"line":79,"column":8},"end":{"line":79,"column":20}},"loc":{"start":{"line":79,"column":27},"end":{"line":89,"column":9}}},"5":{"name":"(anonymous_11)","decl":{"start":{"line":91,"column":8},"end":{"line":91,"column":16}},"loc":{"start":{"line":91,"column":28},"end":{"line":100,"column":9}}},"6":{"name":"(anonymous_12)","decl":{"start":{"line":102,"column":8},"end":{"line":102,"column":25}},"loc":{"start":{"line":102,"column":25},"end":{"line":106,"column":9}}},"7":{"name":"(anonymous_13)","decl":{"start":{"line":108,"column":8},"end":{"line":108,"column":28}},"loc":{"start":{"line":108,"column":28},"end":{"line":112,"column":9}}},"8":{"name":"(anonymous_14)","decl":{"start":{"line":115,"column":8},"end":{"line":115,"column":14}},"loc":{"start":{"line":115,"column":14},"end":{"line":117,"column":9}}}},"branchMap":{"0":{"loc":{"start":{"line":57,"column":82},"end":{"line":57,"column":94}},"type":"cond-expr","locations":[{"start":{"line":57,"column":82},"end":{"line":57,"column":94}},{"start":{"line":57,"column":97},"end":{"line":57,"column":116}}]},"1":{"loc":{"start":{"line":57,"column":33},"end":{"line":57,"column":45}},"type":"binary-expr","locations":[{"start":{"line":57,"column":33},"end":{"line":57,"column":45}},{"start":{"line":57,"column":49},"end":{"line":57,"column":79}}]},"2":{"loc":{"start":{"line":84,"column":12},"end":{"line":88,"column":null}},"type":"if","locations":[{"start":{"line":84,"column":12},"end":{"line":88,"column":null}},{"start":{"line":84,"column":12},"end":{"line":88,"column":null}}]},"3":{"loc":{"start":{"line":84,"column":16},"end":{"line":84,"column":25}},"type":"binary-expr","locations":[{"start":{"line":84,"column":16},"end":{"line":84,"column":25}},{"start":{"line":84,"column":29},"end":{"line":84,"column":43}},{"start":{"line":84,"column":47},"end":{"line":84,"column":68}},{"start":{"line":84,"column":72},"end":{"line":84,"column":108}}]},"4":{"loc":{"start":{"line":92,"column":12},"end":{"line":99,"column":null}},"type":"if","locations":[{"start":{"line":92,"column":12},"end":{"line":99,"column":null}},{"start":{"line":92,"column":12},"end":{"line":99,"column":null}}]},"5":{"loc":{"start":{"line":92,"column":16},"end":{"line":92,"column":28}},"type":"binary-expr","locations":[{"start":{"line":92,"column":16},"end":{"line":92,"column":28}},{"start":{"line":92,"column":32},"end":{"line":92,"column":69}}]},"6":{"loc":{"start":{"line":93,"column":16},"end":{"line":98,"column":null}},"type":"if","locations":[{"start":{"line":93,"column":16},"end":{"line":98,"column":null}},{"start":{"line":93,"column":16},"end":{"line":98,"column":null}}]},"7":{"loc":{"start":{"line":103,"column":12},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":103,"column":12},"end":{"line":105,"column":null}},{"start":{"line":103,"column":12},"end":{"line":105,"column":null}}]},"8":{"loc":{"start":{"line":109,"column":12},"end":{"line":111,"column":null}},"type":"if","locations":[{"start":{"line":109,"column":12},"end":{"line":111,"column":null}},{"start":{"line":109,"column":12},"end":{"line":111,"column":null}}]}},"s":{"0":5,"1":5,"2":5,"3":5,"4":0,"5":5,"6":8,"7":23,"8":23,"9":23,"10":23,"11":5,"12":5,"13":6,"14":20,"15":20,"16":20,"17":20,"18":20,"19":16,"20":16,"21":16,"22":16,"23":20,"24":20,"25":3,"26":3,"27":36,"28":5},"f":{"0":5,"1":8,"2":23,"3":6,"4":20,"5":16,"6":20,"7":3,"8":36},"b":{"0":[0,23],"1":[23,0],"2":[20,0],"3":[20,20,20,20],"4":[16,0],"5":[16,16],"6":[16,0],"7":[20,0],"8":[3,0]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/index.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/index.ts","statementMap":{"0":{"start":{"line":16,"column":0},"end":{"line":16,"column":49}},"1":{"start":{"line":17,"column":0},"end":{"line":17,"column":35}},"2":{"start":{"line":19,"column":0},"end":{"line":19,"column":43}},"3":{"start":{"line":20,"column":0},"end":{"line":20,"column":9}},"4":{"start":{"line":20,"column":9},"end":{"line":20,"column":26}},"5":{"start":{"line":22,"column":0},"end":{"line":22,"column":53}},"6":{"start":{"line":23,"column":0},"end":{"line":23,"column":9}},"7":{"start":{"line":23,"column":9},"end":{"line":23,"column":31}},"8":{"start":{"line":25,"column":0},"end":{"line":25,"column":51}},"9":{"start":{"line":26,"column":0},"end":{"line":26,"column":9}},"10":{"start":{"line":26,"column":9},"end":{"line":26,"column":30}},"11":{"start":{"line":28,"column":0},"end":{"line":28,"column":53}},"12":{"start":{"line":29,"column":0},"end":{"line":29,"column":9}},"13":{"start":{"line":29,"column":9},"end":{"line":29,"column":31}}},"fnMap":{"0":{"name":"(anonymous_5)","decl":{"start":{"line":20,"column":9},"end":{"line":20,"column":16}},"loc":{"start":{"line":20,"column":9},"end":{"line":20,"column":26}}},"1":{"name":"(anonymous_6)","decl":{"start":{"line":23,"column":9},"end":{"line":23,"column":16}},"loc":{"start":{"line":23,"column":9},"end":{"line":23,"column":31}}},"2":{"name":"(anonymous_7)","decl":{"start":{"line":26,"column":9},"end":{"line":26,"column":16}},"loc":{"start":{"line":26,"column":9},"end":{"line":26,"column":30}}},"3":{"name":"(anonymous_8)","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":16}},"loc":{"start":{"line":29,"column":9},"end":{"line":29,"column":31}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1},"f":{"0":0,"1":0,"2":0,"3":0},"b":{}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/isEmptyFunctions.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/isEmptyFunctions.ts","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":62}},"1":{"start":{"line":18,"column":0},"end":{"line":18,"column":62}},"2":{"start":{"line":19,"column":0},"end":{"line":19,"column":60}},"3":{"start":{"line":20,"column":0},"end":{"line":20,"column":52}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1},"f":{},"b":{}} | ||
{"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/AbstractCoreContainerComponent.tsx": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/AbstractCoreContainerComponent.tsx","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":31}},"1":{"start":{"line":43,"column":18},"end":{"line":49,"column":4}},"2":{"start":{"line":44,"column":4},"end":{"line":48,"column":null}},"3":{"start":{"line":45,"column":8},"end":{"line":45,"column":45}},"4":{"start":{"line":47,"column":8},"end":{"line":47,"column":21}},"5":{"start":{"line":52,"column":40},"end":{"line":69,"column":1}},"6":{"start":{"line":57,"column":4},"end":{"line":68,"column":null}},"7":{"start":{"line":59,"column":29},"end":{"line":59,"column":47}},"8":{"start":{"line":60,"column":33},"end":{"line":60,"column":116}},"9":{"start":{"line":62,"column":30},"end":{"line":65,"column":10}},"10":{"start":{"line":67,"column":8},"end":{"line":67,"column":46}},"11":{"start":{"line":52,"column":13},"end":{"line":52,"column":40}},"12":{"start":{"line":73,"column":37},"end":{"line":123,"column":1}},"13":{"start":{"line":77,"column":4},"end":{"line":121,"column":null}},"14":{"start":{"line":83,"column":12},"end":{"line":83,"column":25}},"15":{"start":{"line":84,"column":12},"end":{"line":84,"column":null}},"16":{"start":{"line":87,"column":12},"end":{"line":91,"column":null}},"17":{"start":{"line":89,"column":16},"end":{"line":89,"column":99}},"18":{"start":{"line":90,"column":16},"end":{"line":90,"column":57}},"19":{"start":{"line":95,"column":12},"end":{"line":102,"column":null}},"20":{"start":{"line":96,"column":16},"end":{"line":101,"column":null}},"21":{"start":{"line":97,"column":34},"end":{"line":97,"column":62}},"22":{"start":{"line":98,"column":20},"end":{"line":100,"column":null}},"23":{"start":{"line":106,"column":12},"end":{"line":108,"column":null}},"24":{"start":{"line":107,"column":16},"end":{"line":107,"column":97}},"25":{"start":{"line":112,"column":12},"end":{"line":114,"column":null}},"26":{"start":{"line":113,"column":16},"end":{"line":113,"column":99}},"27":{"start":{"line":119,"column":12},"end":{"line":119,"column":116}},"28":{"start":{"line":73,"column":13},"end":{"line":73,"column":37}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":43,"column":19},"end":{"line":43,"column":22}},"loc":{"start":{"line":43,"column":24},"end":{"line":49,"column":1}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":52,"column":40},"end":{"line":52,"column":null}},"loc":{"start":{"line":56,"column":28},"end":{"line":69,"column":1}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":57,"column":11},"end":{"line":57,"column":12}},"loc":{"start":{"line":57,"column":23},"end":{"line":68,"column":5}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":73,"column":37},"end":{"line":73,"column":null}},"loc":{"start":{"line":75,"column":27},"end":{"line":123,"column":1}}},"4":{"name":"(anonymous_10)","decl":{"start":{"line":82,"column":8},"end":{"line":82,"column":20}},"loc":{"start":{"line":82,"column":27},"end":{"line":92,"column":9}}},"5":{"name":"(anonymous_11)","decl":{"start":{"line":94,"column":8},"end":{"line":94,"column":16}},"loc":{"start":{"line":94,"column":28},"end":{"line":103,"column":9}}},"6":{"name":"(anonymous_12)","decl":{"start":{"line":105,"column":8},"end":{"line":105,"column":25}},"loc":{"start":{"line":105,"column":25},"end":{"line":109,"column":9}}},"7":{"name":"(anonymous_13)","decl":{"start":{"line":111,"column":8},"end":{"line":111,"column":28}},"loc":{"start":{"line":111,"column":28},"end":{"line":115,"column":9}}},"8":{"name":"(anonymous_14)","decl":{"start":{"line":118,"column":8},"end":{"line":118,"column":14}},"loc":{"start":{"line":118,"column":14},"end":{"line":120,"column":9}}}},"branchMap":{"0":{"loc":{"start":{"line":60,"column":82},"end":{"line":60,"column":94}},"type":"cond-expr","locations":[{"start":{"line":60,"column":82},"end":{"line":60,"column":94}},{"start":{"line":60,"column":97},"end":{"line":60,"column":116}}]},"1":{"loc":{"start":{"line":60,"column":33},"end":{"line":60,"column":45}},"type":"binary-expr","locations":[{"start":{"line":60,"column":33},"end":{"line":60,"column":45}},{"start":{"line":60,"column":49},"end":{"line":60,"column":79}}]},"2":{"loc":{"start":{"line":87,"column":12},"end":{"line":91,"column":null}},"type":"if","locations":[{"start":{"line":87,"column":12},"end":{"line":91,"column":null}},{"start":{"line":87,"column":12},"end":{"line":91,"column":null}}]},"3":{"loc":{"start":{"line":87,"column":16},"end":{"line":87,"column":25}},"type":"binary-expr","locations":[{"start":{"line":87,"column":16},"end":{"line":87,"column":25}},{"start":{"line":87,"column":29},"end":{"line":87,"column":43}},{"start":{"line":87,"column":47},"end":{"line":87,"column":68}},{"start":{"line":87,"column":72},"end":{"line":87,"column":108}}]},"4":{"loc":{"start":{"line":95,"column":12},"end":{"line":102,"column":null}},"type":"if","locations":[{"start":{"line":95,"column":12},"end":{"line":102,"column":null}},{"start":{"line":95,"column":12},"end":{"line":102,"column":null}}]},"5":{"loc":{"start":{"line":95,"column":16},"end":{"line":95,"column":28}},"type":"binary-expr","locations":[{"start":{"line":95,"column":16},"end":{"line":95,"column":28}},{"start":{"line":95,"column":32},"end":{"line":95,"column":69}}]},"6":{"loc":{"start":{"line":96,"column":16},"end":{"line":101,"column":null}},"type":"if","locations":[{"start":{"line":96,"column":16},"end":{"line":101,"column":null}},{"start":{"line":96,"column":16},"end":{"line":101,"column":null}}]},"7":{"loc":{"start":{"line":106,"column":12},"end":{"line":108,"column":null}},"type":"if","locations":[{"start":{"line":106,"column":12},"end":{"line":108,"column":null}},{"start":{"line":106,"column":12},"end":{"line":108,"column":null}}]},"8":{"loc":{"start":{"line":112,"column":12},"end":{"line":114,"column":null}},"type":"if","locations":[{"start":{"line":112,"column":12},"end":{"line":114,"column":null}},{"start":{"line":112,"column":12},"end":{"line":114,"column":null}}]}},"s":{"0":6,"1":6,"2":6,"3":6,"4":0,"5":6,"6":11,"7":29,"8":29,"9":29,"10":29,"11":6,"12":6,"13":6,"14":20,"15":20,"16":20,"17":20,"18":20,"19":16,"20":16,"21":16,"22":16,"23":20,"24":20,"25":3,"26":3,"27":36,"28":6},"f":{"0":6,"1":11,"2":29,"3":6,"4":20,"5":16,"6":20,"7":3,"8":36},"b":{"0":[0,29],"1":[29,0],"2":[20,0],"3":[20,20,20,20],"4":[16,0],"5":[16,16],"6":[16,0],"7":[20,0],"8":[3,0]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/index.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/index.ts","statementMap":{"0":{"start":{"line":16,"column":0},"end":{"line":16,"column":49}},"1":{"start":{"line":17,"column":0},"end":{"line":17,"column":35}},"2":{"start":{"line":19,"column":0},"end":{"line":19,"column":43}},"3":{"start":{"line":20,"column":0},"end":{"line":20,"column":9}},"4":{"start":{"line":20,"column":9},"end":{"line":20,"column":26}},"5":{"start":{"line":22,"column":0},"end":{"line":22,"column":53}},"6":{"start":{"line":23,"column":0},"end":{"line":23,"column":9}},"7":{"start":{"line":23,"column":9},"end":{"line":23,"column":31}},"8":{"start":{"line":25,"column":0},"end":{"line":25,"column":51}},"9":{"start":{"line":26,"column":0},"end":{"line":26,"column":9}},"10":{"start":{"line":26,"column":9},"end":{"line":26,"column":30}},"11":{"start":{"line":28,"column":0},"end":{"line":28,"column":53}},"12":{"start":{"line":29,"column":0},"end":{"line":29,"column":9}},"13":{"start":{"line":29,"column":9},"end":{"line":29,"column":31}},"14":{"start":{"line":31,"column":0},"end":{"line":31,"column":47}}},"fnMap":{"0":{"name":"(anonymous_5)","decl":{"start":{"line":20,"column":9},"end":{"line":20,"column":16}},"loc":{"start":{"line":20,"column":9},"end":{"line":20,"column":26}}},"1":{"name":"(anonymous_6)","decl":{"start":{"line":23,"column":9},"end":{"line":23,"column":16}},"loc":{"start":{"line":23,"column":9},"end":{"line":23,"column":31}}},"2":{"name":"(anonymous_7)","decl":{"start":{"line":26,"column":9},"end":{"line":26,"column":16}},"loc":{"start":{"line":26,"column":9},"end":{"line":26,"column":30}}},"3":{"name":"(anonymous_8)","decl":{"start":{"line":29,"column":9},"end":{"line":29,"column":16}},"loc":{"start":{"line":29,"column":9},"end":{"line":29,"column":31}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1},"f":{"0":0,"1":0,"2":0,"3":0},"b":{}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/isEmptyFunctions.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/isEmptyFunctions.ts","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":62}},"1":{"start":{"line":18,"column":0},"end":{"line":18,"column":62}},"2":{"start":{"line":19,"column":0},"end":{"line":19,"column":60}},"3":{"start":{"line":20,"column":0},"end":{"line":20,"column":52}},"4":{"start":{"line":21,"column":0},"end":{"line":21,"column":73}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1},"f":{},"b":{}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/accordion/v1/AccordionV1.tsx": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/accordion/v1/AccordionV1.tsx","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":31}},"1":{"start":{"line":20,"column":0},"end":{"line":20,"column":149}},"2":{"start":{"line":21,"column":0},"end":{"line":21,"column":81}},"3":{"start":{"line":22,"column":0},"end":{"line":22,"column":60}},"4":{"start":{"line":37,"column":8},"end":{"line":37,"column":21}},"5":{"start":{"line":39,"column":8},"end":{"line":42,"column":10}},"6":{"start":{"line":44,"column":8},"end":{"line":44,"column":79}},"7":{"start":{"line":48,"column":8},"end":{"line":50,"column":null}},"8":{"start":{"line":49,"column":12},"end":{"line":49,"column":112}},"9":{"start":{"line":55,"column":25},"end":{"line":55,"column":71}},"10":{"start":{"line":56,"column":34},"end":{"line":56,"column":60}},"11":{"start":{"line":58,"column":28},"end":{"line":58,"column":52}},"12":{"start":{"line":59,"column":8},"end":{"line":68,"column":null}},"13":{"start":{"line":60,"column":12},"end":{"line":60,"column":56}},"14":{"start":{"line":62,"column":12},"end":{"line":67,"column":null}},"15":{"start":{"line":63,"column":31},"end":{"line":63,"column":72}},"16":{"start":{"line":64,"column":16},"end":{"line":64,"column":46}},"17":{"start":{"line":66,"column":16},"end":{"line":66,"column":44}},"18":{"start":{"line":69,"column":8},"end":{"line":71,"column":11}},"19":{"start":{"line":75,"column":8},"end":{"line":75,"column":58}},"20":{"start":{"line":79,"column":22},"end":{"line":79,"column":41}},"21":{"start":{"line":80,"column":8},"end":{"line":80,"column":77}},"22":{"start":{"line":81,"column":8},"end":{"line":81,"column":43}},"23":{"start":{"line":82,"column":8},"end":{"line":82,"column":51}},"24":{"start":{"line":83,"column":8},"end":{"line":83,"column":21}},"25":{"start":{"line":89,"column":28},"end":{"line":89,"column":64}},"26":{"start":{"line":91,"column":8},"end":{"line":100,"column":null}},"27":{"start":{"line":92,"column":29},"end":{"line":92,"column":200}},"28":{"start":{"line":94,"column":12},"end":{"line":99,"column":null}},"29":{"start":{"line":102,"column":8},"end":{"line":102,"column":20}},"30":{"start":{"line":106,"column":8},"end":{"line":111,"column":null}},"31":{"start":{"line":107,"column":64},"end":{"line":107,"column":98}},"32":{"start":{"line":115,"column":8},"end":{"line":140,"column":10}},"33":{"start":{"line":118,"column":29},"end":{"line":118,"column":52}},"34":{"start":{"line":119,"column":35},"end":{"line":119,"column":59}},"35":{"start":{"line":120,"column":39},"end":{"line":120,"column":174}},"36":{"start":{"line":121,"column":16},"end":{"line":138,"column":null}},"37":{"start":{"line":145,"column":24},"end":{"line":145,"column":56}},"38":{"start":{"line":147,"column":8},"end":{"line":152,"column":null}},"39":{"start":{"line":157,"column":0},"end":{"line":157,"column":97}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":36,"column":4},"end":{"line":36,"column":16}},"loc":{"start":{"line":36,"column":43},"end":{"line":45,"column":5}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":47,"column":4},"end":{"line":47,"column":22}},"loc":{"start":{"line":47,"column":104},"end":{"line":51,"column":5}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":53,"column":4},"end":{"line":53,"column":27}},"loc":{"start":{"line":53,"column":42},"end":{"line":72,"column":5}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":74,"column":4},"end":{"line":74,"column":18}},"loc":{"start":{"line":74,"column":29},"end":{"line":76,"column":5}}},"4":{"name":"(anonymous_10)","decl":{"start":{"line":78,"column":4},"end":{"line":78,"column":8}},"loc":{"start":{"line":78,"column":31},"end":{"line":84,"column":5}}},"5":{"name":"(anonymous_11)","decl":{"start":{"line":87,"column":4},"end":{"line":87,"column":15}},"loc":{"start":{"line":87,"column":45},"end":{"line":103,"column":5}}},"6":{"name":"(anonymous_12)","decl":{"start":{"line":105,"column":4},"end":{"line":105,"column":23}},"loc":{"start":{"line":105,"column":66},"end":{"line":112,"column":5}}},"7":{"name":"(anonymous_13)","decl":{"start":{"line":107,"column":56},"end":{"line":107,"column":59}},"loc":{"start":{"line":107,"column":61},"end":{"line":107,"column":99}}},"8":{"name":"(anonymous_14)","decl":{"start":{"line":114,"column":4},"end":{"line":114,"column":8}},"loc":{"start":{"line":114,"column":24},"end":{"line":141,"column":5}}},"9":{"name":"(anonymous_15)","decl":{"start":{"line":117,"column":40},"end":{"line":117,"column":41}},"loc":{"start":{"line":117,"column":55},"end":{"line":139,"column":13}}},"10":{"name":"(anonymous_16)","decl":{"start":{"line":143,"column":4},"end":{"line":143,"column":10}},"loc":{"start":{"line":143,"column":10},"end":{"line":153,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":40,"column":30},"end":{"line":40,"column":57}},"type":"binary-expr","locations":[{"start":{"line":40,"column":30},"end":{"line":40,"column":57}},{"start":{"line":40,"column":61},"end":{"line":40,"column":77}}]},"1":{"loc":{"start":{"line":48,"column":8},"end":{"line":50,"column":null}},"type":"if","locations":[{"start":{"line":48,"column":8},"end":{"line":50,"column":null}},{"start":{"line":48,"column":8},"end":{"line":50,"column":null}}]},"2":{"loc":{"start":{"line":48,"column":11},"end":{"line":48,"column":62}},"type":"binary-expr","locations":[{"start":{"line":48,"column":11},"end":{"line":48,"column":62}},{"start":{"line":48,"column":66},"end":{"line":48,"column":143}}]},"3":{"loc":{"start":{"line":59,"column":8},"end":{"line":68,"column":null}},"type":"if","locations":[{"start":{"line":59,"column":8},"end":{"line":68,"column":null}},{"start":{"line":59,"column":8},"end":{"line":68,"column":null}}]},"4":{"loc":{"start":{"line":60,"column":41},"end":{"line":60,"column":43}},"type":"cond-expr","locations":[{"start":{"line":60,"column":41},"end":{"line":60,"column":43}},{"start":{"line":60,"column":46},"end":{"line":60,"column":55}}]},"5":{"loc":{"start":{"line":62,"column":12},"end":{"line":67,"column":null}},"type":"if","locations":[{"start":{"line":62,"column":12},"end":{"line":67,"column":null}},{"start":{"line":62,"column":12},"end":{"line":67,"column":null}}]},"6":{"loc":{"start":{"line":91,"column":8},"end":{"line":100,"column":null}},"type":"if","locations":[{"start":{"line":91,"column":8},"end":{"line":100,"column":null}},{"start":{"line":91,"column":8},"end":{"line":100,"column":null}}]},"7":{"loc":{"start":{"line":91,"column":11},"end":{"line":91,"column":41}},"type":"binary-expr","locations":[{"start":{"line":91,"column":11},"end":{"line":91,"column":41}},{"start":{"line":91,"column":45},"end":{"line":91,"column":55}}]},"8":{"loc":{"start":{"line":92,"column":42},"end":{"line":92,"column":121}},"type":"cond-expr","locations":[{"start":{"line":92,"column":42},"end":{"line":92,"column":121}},{"start":{"line":92,"column":123},"end":{"line":92,"column":200}}]},"9":{"loc":{"start":{"line":120,"column":54},"end":{"line":120,"column":135}},"type":"cond-expr","locations":[{"start":{"line":120,"column":54},"end":{"line":120,"column":135}},{"start":{"line":120,"column":138},"end":{"line":120,"column":174}}]},"10":{"loc":{"start":{"line":128,"column":35},"end":{"line":128,"column":60}},"type":"binary-expr","locations":[{"start":{"line":128,"column":35},"end":{"line":128,"column":60}},{"start":{"line":128,"column":64},"end":{"line":128,"column":68}}]},"11":{"loc":{"start":{"line":149,"column":18},"end":{"line":149,"column":26}},"type":"binary-expr","locations":[{"start":{"line":149,"column":18},"end":{"line":149,"column":26}},{"start":{"line":149,"column":30},"end":{"line":149,"column":51}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":6,"5":6,"6":6,"7":18,"8":8,"9":2,"10":2,"11":2,"12":2,"13":1,"14":1,"15":0,"16":0,"17":1,"18":2,"19":48,"20":24,"21":24,"22":24,"23":24,"24":24,"25":48,"26":48,"27":30,"28":30,"29":18,"30":48,"31":2,"32":24,"33":48,"34":48,"35":48,"36":48,"37":24,"38":24,"39":2},"f":{"0":6,"1":18,"2":2,"3":48,"4":24,"5":48,"6":48,"7":2,"8":24,"9":48,"10":24},"b":{"0":[6,0],"1":[8,10],"2":[18,16],"3":[1,1],"4":[0,1],"5":[0,1],"6":[30,18],"7":[48,38],"8":[25,5],"9":[25,23],"10":[48,0],"11":[24,24]}} | ||
@@ -10,4 +10,9 @@ ,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/accordion/v1/AccordionV1IsEmptyFn.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/accordion/v1/AccordionV1IsEmptyFn.ts","statementMap":{"0":{"start":{"line":20,"column":4},"end":{"line":20,"column":72}},"1":{"start":{"line":19,"column":0},"end":{"line":19,"column":16}}},"fnMap":{"0":{"name":"AccordionV1IsEmptyFn","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":36}},"loc":{"start":{"line":19,"column":64},"end":{"line":21,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":11},"end":{"line":20,"column":37}},"type":"binary-expr","locations":[{"start":{"line":20,"column":11},"end":{"line":20,"column":37}},{"start":{"line":20,"column":41},"end":{"line":20,"column":71}}]}},"s":{"0":27,"1":3},"f":{"0":27},"b":{"0":[27,26]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/container/v1/ContainerV1IsEmptyFn.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/container/v1/ContainerV1IsEmptyFn.ts","statementMap":{"0":{"start":{"line":20,"column":4},"end":{"line":20,"column":73}},"1":{"start":{"line":19,"column":0},"end":{"line":19,"column":16}}},"fnMap":{"0":{"name":"ContainerV1IsEmptyFn","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":36}},"loc":{"start":{"line":19,"column":64},"end":{"line":21,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":11},"end":{"line":20,"column":37}},"type":"binary-expr","locations":[{"start":{"line":20,"column":11},"end":{"line":20,"column":37}},{"start":{"line":20,"column":41},"end":{"line":20,"column":72}}]}},"s":{"0":3,"1":2},"f":{"0":3},"b":{"0":[3,2]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/ContentFragmentV1.tsx": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/ContentFragmentV1.tsx","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":26}},"1":{"start":{"line":19,"column":0},"end":{"line":19,"column":81}},"2":{"start":{"line":20,"column":0},"end":{"line":20,"column":72}},"3":{"start":{"line":22,"column":0},"end":{"line":22,"column":51}},"4":{"start":{"line":23,"column":0},"end":{"line":23,"column":84}},"5":{"start":{"line":24,"column":0},"end":{"line":24,"column":101}},"6":{"start":{"line":30,"column":8},"end":{"line":30,"column":21}},"7":{"start":{"line":32,"column":8},"end":{"line":34,"column":10}},"8":{"start":{"line":39,"column":8},"end":{"line":41,"column":null}},"9":{"start":{"line":40,"column":12},"end":{"line":40,"column":85}},"10":{"start":{"line":42,"column":8},"end":{"line":42,"column":21}},"11":{"start":{"line":47,"column":24},"end":{"line":47,"column":62}},"12":{"start":{"line":49,"column":8},"end":{"line":51,"column":null}},"13":{"start":{"line":50,"column":12},"end":{"line":50,"column":47}},"14":{"start":{"line":53,"column":24},"end":{"line":53,"column":62}},"15":{"start":{"line":55,"column":8},"end":{"line":57,"column":null}},"16":{"start":{"line":56,"column":11},"end":{"line":56,"column":105}},"17":{"start":{"line":59,"column":8},"end":{"line":59,"column":93}},"18":{"start":{"line":66,"column":0},"end":{"line":66,"column":37}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":29,"column":4},"end":{"line":29,"column":16}},"loc":{"start":{"line":29,"column":50},"end":{"line":36,"column":5}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":38,"column":4},"end":{"line":38,"column":8}},"loc":{"start":{"line":38,"column":30},"end":{"line":43,"column":5}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":45,"column":4},"end":{"line":45,"column":10}},"loc":{"start":{"line":45,"column":10},"end":{"line":61,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":33,"column":30},"end":{"line":33,"column":57}},"type":"binary-expr","locations":[{"start":{"line":33,"column":30},"end":{"line":33,"column":57}},{"start":{"line":33,"column":61},"end":{"line":33,"column":77}}]},"1":{"loc":{"start":{"line":39,"column":8},"end":{"line":41,"column":null}},"type":"if","locations":[{"start":{"line":39,"column":8},"end":{"line":41,"column":null}},{"start":{"line":39,"column":8},"end":{"line":41,"column":null}}]},"2":{"loc":{"start":{"line":49,"column":8},"end":{"line":51,"column":null}},"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":51,"column":null}},{"start":{"line":49,"column":8},"end":{"line":51,"column":null}}]},"3":{"loc":{"start":{"line":55,"column":8},"end":{"line":57,"column":null}},"type":"if","locations":[{"start":{"line":55,"column":8},"end":{"line":57,"column":null}},{"start":{"line":55,"column":8},"end":{"line":57,"column":null}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":6,"7":6,"8":2,"9":1,"10":1,"11":8,"12":8,"13":2,"14":6,"15":6,"16":2,"17":6,"18":2},"f":{"0":6,"1":2,"2":8},"b":{"0":[6,3],"1":[1,1],"2":[2,6],"3":[2,4]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/ContentFragmentV1IsEmptyFn.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/ContentFragmentV1IsEmptyFn.ts","statementMap":{"0":{"start":{"line":4,"column":4},"end":{"line":4,"column":144}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":16}}},"fnMap":{"0":{"name":"ContentFragmentV1IsEmptyFn","decl":{"start":{"line":3,"column":16},"end":{"line":3,"column":42}},"loc":{"start":{"line":3,"column":76},"end":{"line":5,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":12},"end":{"line":4,"column":39}},"type":"binary-expr","locations":[{"start":{"line":4,"column":12},"end":{"line":4,"column":39}},{"start":{"line":4,"column":43},"end":{"line":4,"column":75}},{"start":{"line":4,"column":81},"end":{"line":4,"column":107}},{"start":{"line":4,"column":111},"end":{"line":4,"column":142}}]}},"s":{"0":8,"1":2},"f":{"0":8},"b":{"0":[8,8,2,2]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/ContentFragmentV1Registry.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/ContentFragmentV1Registry.ts","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":3,"column":77}},"1":{"start":{"line":10,"column":21},"end":{"line":10,"column":41}},"2":{"start":{"line":15,"column":8},"end":{"line":15,"column":72}},"3":{"start":{"line":19,"column":8},"end":{"line":25,"column":null}},"4":{"start":{"line":20,"column":33},"end":{"line":20,"column":104}},"5":{"start":{"line":22,"column":12},"end":{"line":24,"column":15}},"6":{"start":{"line":23,"column":16},"end":{"line":23,"column":60}},"7":{"start":{"line":31,"column":8},"end":{"line":31,"column":64}},"8":{"start":{"line":35,"column":32},"end":{"line":35,"column":55}},"9":{"start":{"line":36,"column":8},"end":{"line":36,"column":64}},"10":{"start":{"line":40,"column":8},"end":{"line":40,"column":40}},"11":{"start":{"line":45,"column":0},"end":{"line":45,"column":51}},"12":{"start":{"line":47,"column":41},"end":{"line":49,"column":1}},"13":{"start":{"line":48,"column":4},"end":{"line":48,"column":100}},"14":{"start":{"line":48,"column":40},"end":{"line":48,"column":99}},"15":{"start":{"line":47,"column":13},"end":{"line":47,"column":41}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":14,"column":11},"end":{"line":14,"column":22}},"loc":{"start":{"line":14,"column":149},"end":{"line":16,"column":5}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":18,"column":11},"end":{"line":18,"column":17}},"loc":{"start":{"line":18,"column":156},"end":{"line":26,"column":5}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":33},"end":{"line":22,"column":34}},"loc":{"start":{"line":22,"column":43},"end":{"line":24,"column":13}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":30,"column":11},"end":{"line":30,"column":22}},"loc":{"start":{"line":30,"column":105},"end":{"line":32,"column":5}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":34,"column":11},"end":{"line":34,"column":17}},"loc":{"start":{"line":34,"column":112},"end":{"line":37,"column":5}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":39,"column":12},"end":{"line":39,"column":18}},"loc":{"start":{"line":39,"column":47},"end":{"line":41,"column":5}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":47,"column":41},"end":{"line":47,"column":111}},"loc":{"start":{"line":47,"column":175},"end":{"line":49,"column":1}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":48,"column":11},"end":{"line":48,"column":12}},"loc":{"start":{"line":48,"column":40},"end":{"line":48,"column":99}}}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":8},"end":{"line":25,"column":null}},"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":25,"column":null}},{"start":{"line":19,"column":8},"end":{"line":25,"column":null}}]},"1":{"loc":{"start":{"line":19,"column":12},"end":{"line":19,"column":25}},"type":"binary-expr","locations":[{"start":{"line":19,"column":12},"end":{"line":19,"column":25}},{"start":{"line":19,"column":29},"end":{"line":19,"column":34}}]},"2":{"loc":{"start":{"line":20,"column":71},"end":{"line":20,"column":88}},"type":"cond-expr","locations":[{"start":{"line":20,"column":71},"end":{"line":20,"column":88}},{"start":{"line":20,"column":91},"end":{"line":20,"column":104}}]}},"s":{"0":2,"1":2,"2":0,"3":1,"4":1,"5":1,"6":1,"7":6,"8":6,"9":6,"10":7,"11":2,"12":2,"13":1,"14":1,"15":2},"f":{"0":0,"1":1,"2":1,"3":6,"4":6,"5":7,"6":1,"7":1},"b":{"0":[1,0],"1":[1,1],"2":[1,0]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/DefaultContentFragmentV1Renderer.tsx": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/DefaultContentFragmentV1Renderer.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":113}},"2":{"start":{"line":8,"column":8},"end":{"line":16,"column":null}},"3":{"start":{"line":20,"column":8},"end":{"line":24,"column":null}},"4":{"start":{"line":22,"column":66},"end":{"line":22,"column":129}},"5":{"start":{"line":28,"column":8},"end":{"line":43,"column":null}},"6":{"start":{"line":5,"column":0},"end":{"line":5,"column":13}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":7,"column":14},"end":{"line":7,"column":27}},"loc":{"start":{"line":7,"column":87},"end":{"line":17,"column":5}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":19,"column":4},"end":{"line":19,"column":18}},"loc":{"start":{"line":19,"column":26},"end":{"line":25,"column":5}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":22,"column":46},"end":{"line":22,"column":47}},"loc":{"start":{"line":22,"column":66},"end":{"line":22,"column":129}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":27,"column":4},"end":{"line":27,"column":10}},"loc":{"start":{"line":27,"column":10},"end":{"line":44,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":13,"column":168},"end":{"line":13,"column":174}},"type":"cond-expr","locations":[{"start":{"line":13,"column":168},"end":{"line":13,"column":174}},{"start":{"line":13,"column":176},"end":{"line":13,"column":183}}]},"1":{"loc":{"start":{"line":33,"column":20},"end":{"line":33,"column":44}},"type":"binary-expr","locations":[{"start":{"line":33,"column":20},"end":{"line":33,"column":44}},{"start":{"line":33,"column":48},"end":{"line":33,"column":81}},{"start":{"line":34,"column":24},"end":{"line":34,"column":109}}]},"2":{"loc":{"start":{"line":38,"column":17},"end":{"line":38,"column":41}},"type":"binary-expr","locations":[{"start":{"line":38,"column":17},"end":{"line":38,"column":41}},{"start":{"line":38,"column":45},"end":{"line":38,"column":76}},{"start":{"line":38,"column":80},"end":{"line":38,"column":93}}]}},"s":{"0":2,"1":2,"2":10,"3":6,"4":30,"5":2,"6":2},"f":{"0":10,"1":6,"2":30,"3":2},"b":{"0":[0,10],"1":[2,0,0],"2":[2,2,2]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/index.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/contentfragment/v1/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":45}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":44}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":9}},"3":{"start":{"line":3,"column":9},"end":{"line":3,"column":45}},"4":{"start":{"line":4,"column":0},"end":{"line":4,"column":24}},"5":{"start":{"line":5,"column":0},"end":{"line":5,"column":51}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":9}},"7":{"start":{"line":7,"column":9},"end":{"line":7,"column":37}}},"fnMap":{"0":{"name":"(anonymous_5)","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":16}},"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":45}}},"1":{"name":"(anonymous_6)","decl":{"start":{"line":7,"column":9},"end":{"line":7,"column":16}},"loc":{"start":{"line":7,"column":9},"end":{"line":7,"column":37}}}},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":7},"f":{"0":0,"1":5},"b":{}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/tabs/v1/TabsV1.tsx": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/tabs/v1/TabsV1.tsx","statementMap":{"0":{"start":{"line":17,"column":0},"end":{"line":17,"column":26}},"1":{"start":{"line":18,"column":0},"end":{"line":18,"column":81}},"2":{"start":{"line":19,"column":0},"end":{"line":19,"column":168}},"3":{"start":{"line":20,"column":0},"end":{"line":20,"column":50}},"4":{"start":{"line":38,"column":8},"end":{"line":38,"column":21}},"5":{"start":{"line":40,"column":8},"end":{"line":43,"column":10}},"6":{"start":{"line":45,"column":8},"end":{"line":45,"column":67}},"7":{"start":{"line":49,"column":8},"end":{"line":51,"column":null}},"8":{"start":{"line":50,"column":12},"end":{"line":50,"column":83}},"9":{"start":{"line":60,"column":8},"end":{"line":79,"column":null}},"10":{"start":{"line":63,"column":12},"end":{"line":75,"column":null}},"11":{"start":{"line":67,"column":47},"end":{"line":67,"column":79}},"12":{"start":{"line":68,"column":43},"end":{"line":68,"column":86}},"13":{"start":{"line":69,"column":28},"end":{"line":71,"column":null}},"14":{"start":{"line":78,"column":12},"end":{"line":78,"column":64}},"15":{"start":{"line":83,"column":8},"end":{"line":87,"column":null}},"16":{"start":{"line":84,"column":12},"end":{"line":86,"column":15}},"17":{"start":{"line":92,"column":46},"end":{"line":92,"column":48}},"18":{"start":{"line":94,"column":8},"end":{"line":96,"column":null}},"19":{"start":{"line":95,"column":12},"end":{"line":95,"column":35}},"20":{"start":{"line":98,"column":8},"end":{"line":122,"column":null}},"21":{"start":{"line":105,"column":40},"end":{"line":105,"column":64}},"22":{"start":{"line":106,"column":46},"end":{"line":106,"column":78}},"23":{"start":{"line":107,"column":28},"end":{"line":116,"column":null}},"24":{"start":{"line":110,"column":51},"end":{"line":110,"column":80}},"25":{"start":{"line":127,"column":22},"end":{"line":127,"column":41}},"26":{"start":{"line":128,"column":8},"end":{"line":128,"column":77}},"27":{"start":{"line":129,"column":8},"end":{"line":129,"column":38}},"28":{"start":{"line":130,"column":8},"end":{"line":130,"column":46}},"29":{"start":{"line":131,"column":8},"end":{"line":131,"column":21}},"30":{"start":{"line":136,"column":24},"end":{"line":136,"column":51}},"31":{"start":{"line":138,"column":8},"end":{"line":144,"column":null}},"32":{"start":{"line":149,"column":0},"end":{"line":149,"column":87}}},"fnMap":{"0":{"name":"(anonymous_1)","decl":{"start":{"line":37,"column":4},"end":{"line":37,"column":16}},"loc":{"start":{"line":37,"column":38},"end":{"line":46,"column":5}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":48,"column":4},"end":{"line":48,"column":22}},"loc":{"start":{"line":48,"column":110},"end":{"line":52,"column":5}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":58,"column":4},"end":{"line":58,"column":25}},"loc":{"start":{"line":58,"column":25},"end":{"line":80,"column":5}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":66,"column":49},"end":{"line":66,"column":50}},"loc":{"start":{"line":66,"column":65},"end":{"line":72,"column":25}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":82,"column":4},"end":{"line":82,"column":21}},"loc":{"start":{"line":82,"column":34},"end":{"line":88,"column":5}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":90,"column":4},"end":{"line":90,"column":17}},"loc":{"start":{"line":90,"column":17},"end":{"line":124,"column":5}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":104,"column":52},"end":{"line":104,"column":53}},"loc":{"start":{"line":104,"column":68},"end":{"line":118,"column":25}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":110,"column":45},"end":{"line":110,"column":48}},"loc":{"start":{"line":110,"column":51},"end":{"line":110,"column":80}}},"8":{"name":"(anonymous_9)","decl":{"start":{"line":126,"column":4},"end":{"line":126,"column":8}},"loc":{"start":{"line":126,"column":25},"end":{"line":132,"column":5}}},"9":{"name":"(anonymous_10)","decl":{"start":{"line":134,"column":4},"end":{"line":134,"column":10}},"loc":{"start":{"line":134,"column":10},"end":{"line":145,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":41,"column":79},"end":{"line":41,"column":128}},"type":"cond-expr","locations":[{"start":{"line":41,"column":79},"end":{"line":41,"column":128}},{"start":{"line":41,"column":131},"end":{"line":41,"column":132}}]},"1":{"loc":{"start":{"line":41,"column":26},"end":{"line":41,"column":44}},"type":"binary-expr","locations":[{"start":{"line":41,"column":26},"end":{"line":41,"column":44}},{"start":{"line":41,"column":48},"end":{"line":41,"column":75}}]},"2":{"loc":{"start":{"line":42,"column":30},"end":{"line":42,"column":57}},"type":"binary-expr","locations":[{"start":{"line":42,"column":30},"end":{"line":42,"column":57}},{"start":{"line":42,"column":61},"end":{"line":42,"column":77}}]},"3":{"loc":{"start":{"line":49,"column":8},"end":{"line":51,"column":null}},"type":"if","locations":[{"start":{"line":49,"column":8},"end":{"line":51,"column":null}},{"start":{"line":49,"column":8},"end":{"line":51,"column":null}}]},"4":{"loc":{"start":{"line":49,"column":11},"end":{"line":49,"column":62}},"type":"binary-expr","locations":[{"start":{"line":49,"column":11},"end":{"line":49,"column":62}},{"start":{"line":49,"column":66},"end":{"line":49,"column":143}}]},"5":{"loc":{"start":{"line":60,"column":8},"end":{"line":79,"column":null}},"type":"if","locations":[{"start":{"line":60,"column":8},"end":{"line":79,"column":null}},{"start":{"line":60,"column":8},"end":{"line":79,"column":null}}]},"6":{"loc":{"start":{"line":68,"column":69},"end":{"line":68,"column":75}},"type":"cond-expr","locations":[{"start":{"line":68,"column":69},"end":{"line":68,"column":75}},{"start":{"line":68,"column":78},"end":{"line":68,"column":85}}]},"7":{"loc":{"start":{"line":83,"column":8},"end":{"line":87,"column":null}},"type":"if","locations":[{"start":{"line":83,"column":8},"end":{"line":87,"column":null}},{"start":{"line":83,"column":8},"end":{"line":87,"column":null}}]},"8":{"loc":{"start":{"line":94,"column":8},"end":{"line":96,"column":null}},"type":"if","locations":[{"start":{"line":94,"column":8},"end":{"line":96,"column":null}},{"start":{"line":94,"column":8},"end":{"line":96,"column":null}}]},"9":{"loc":{"start":{"line":94,"column":12},"end":{"line":94,"column":31}},"type":"binary-expr","locations":[{"start":{"line":94,"column":12},"end":{"line":94,"column":31}},{"start":{"line":94,"column":35},"end":{"line":94,"column":59}}]},"10":{"loc":{"start":{"line":111,"column":95},"end":{"line":111,"column":142}},"type":"cond-expr","locations":[{"start":{"line":111,"column":95},"end":{"line":111,"column":142}},{"start":{"line":111,"column":145},"end":{"line":111,"column":147}}]},"11":{"loc":{"start":{"line":112,"column":57},"end":{"line":112,"column":58}},"type":"cond-expr","locations":[{"start":{"line":112,"column":57},"end":{"line":112,"column":58}},{"start":{"line":112,"column":61},"end":{"line":112,"column":63}}]},"12":{"loc":{"start":{"line":140,"column":18},"end":{"line":140,"column":26}},"type":"binary-expr","locations":[{"start":{"line":140,"column":18},"end":{"line":140,"column":26}},{"start":{"line":140,"column":30},"end":{"line":140,"column":50}}]},"13":{"loc":{"start":{"line":141,"column":18},"end":{"line":141,"column":26}},"type":"binary-expr","locations":[{"start":{"line":141,"column":18},"end":{"line":141,"column":26}},{"start":{"line":141,"column":30},"end":{"line":141,"column":58}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":4,"5":4,"6":4,"7":12,"8":4,"9":16,"10":3,"11":6,"12":6,"13":6,"14":13,"15":4,"16":4,"17":16,"18":16,"19":0,"20":16,"21":32,"22":32,"23":32,"24":4,"25":16,"26":16,"27":16,"28":16,"29":16,"30":16,"31":16,"32":2},"f":{"0":4,"1":12,"2":16,"3":6,"4":4,"5":16,"6":32,"7":4,"8":16,"9":16},"b":{"0":[0,4],"1":[4,0],"2":[4,0],"3":[4,8],"4":[12,8],"5":[3,13],"6":[3,3],"7":[4,0],"8":[0,16],"9":[16,16],"10":[16,16],"11":[16,16],"12":[16,16],"13":[16,16]}} | ||
,"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/tabs/v1/TabsV1IsEmptyFn.ts": {"path":"/home/runner/work/aem-react-core-wcm-components-spa/aem-react-core-wcm-components-spa/src/container/tabs/v1/TabsV1IsEmptyFn.ts","statementMap":{"0":{"start":{"line":20,"column":4},"end":{"line":20,"column":73}},"1":{"start":{"line":19,"column":0},"end":{"line":19,"column":16}}},"fnMap":{"0":{"name":"TabsV1IsEmptyFn","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":31}},"loc":{"start":{"line":19,"column":54},"end":{"line":21,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":20,"column":11},"end":{"line":20,"column":37}},"type":"binary-expr","locations":[{"start":{"line":20,"column":11},"end":{"line":20,"column":37}},{"start":{"line":20,"column":41},"end":{"line":20,"column":72}}]}},"s":{"0":19,"1":3},"f":{"0":19},"b":{"0":[19,18]}} | ||
} |
@@ -5,4 +5,6 @@ import * as React from 'react'; | ||
import { Model } from '@adobe/aem-spa-page-model-manager'; | ||
export interface CoreContainerProperties extends AllowedComponentsProperties { | ||
export interface HasBaseCssClass { | ||
baseCssClass?: string; | ||
} | ||
export interface CoreContainerProperties extends AllowedComponentsProperties, HasBaseCssClass { | ||
activeIndexFromAuthorPanel?: number; | ||
@@ -18,4 +20,4 @@ } | ||
} | ||
export declare const withStandardBaseCssClass: <M extends CoreContainerProperties>(Component: React.ComponentType<M>, defaultBaseCssClass: string) => React.ComponentType<M>; | ||
export declare const withStandardBaseCssClass: <M extends HasBaseCssClass>(Component: React.ComponentType<M>, defaultBaseCssClass: string) => React.ComponentType<M>; | ||
export declare const withAuthorPanelSwitch: <M extends CoreContainerProperties>(Component: React.ComponentType<M>) => React.ComponentType<M>; | ||
//# sourceMappingURL=AbstractCoreContainerComponent.d.ts.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=14)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@adobe/aem-react-editable-components")},function(e,t,s){"use strict";s.d(t,"b",(function(){return r})),s.d(t,"a",(function(){return o}));var n=s(0);const a=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),r=(e,t)=>s=>{const a=s.baseCssClass,r=a&&a.trim().length>0?a:t,o={...s,baseCssClass:r};return n.createElement(e,Object.assign({},o))},o=e=>class extends n.Component{constructor(e){super(e),this.state={},a&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return n.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},function(e,t,s){"use strict";function n(e){return null==e.cqItemsOrder||0==e.cqItemsOrder.length}s.d(t,"a",(function(){return n}))},,,,function(e,t,s){"use strict";s.r(t);var n=s(0),a=s(2),r=s(1),o=s(3);class i extends r.Container{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||r.ComponentMapping,expandedItems:this.props.expandedItems},this.handleAccordionNavClick=this.handleAccordionNavClick.bind(this)}componentDidUpdate(e,t){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({expandedItems:[this.props.cqItemsOrder[this.props.activeIndexFromAuthorPanel]]})}handleAccordionNavClick(e){const t=this.state.expandedItems.indexOf(e)>-1,s=this.props.singleExpansion;let n=this.state.expandedItems;if(s)n=t?[]:[e];else if(t){const t=this.state.expandedItems.indexOf(e);n.splice(t)}else n.push(e);this.setState({expandedItems:n})}isItemExpanded(e){return this.state.expandedItems.indexOf(e)>-1}get accordionContainerProps(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="accordion",e["data-panelcontainer"]="accordion",e}displayItem(e,t){const s=this.props.cqItemsOrder.indexOf(e);if(!0===this.props.isInEditor||t){const e=t?`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--expanded`:`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--hidden`;return n.createElement("div",{className:e,role:"region"},this.childComponents[s])}return null}renderHeadingButton(e,t,s){return n.createElement("button",{className:s,onClick:()=>{this.handleAccordionNavClick(e)}},n.createElement("span",{className:this.props.baseCssClass+"__title"},t["cq:panelTitle"]),n.createElement("span",{className:this.props.baseCssClass+"__icon"}))}get accordionContent(){return this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],a=this.isItemExpanded(e),r=a?`${this.props.baseCssClass}__button ${this.props.baseCssClass}__button--expanded`:this.props.baseCssClass+"__button";return n.createElement("div",{key:"accordion-index"+t,className:this.props.baseCssClass+"__item","data-cmp-index":t,"data-cmp-expanded":a},n.createElement(""+(this.props.headingElement||"h3"),{className:this.props.baseCssClass+"__header"},this.renderHeadingButton(e,s,r)),this.displayItem(e,a))})}render(){const e=Object(o.a)(this.props);return n.createElement("div",Object.assign({},this.accordionContainerProps),!e&&this.accordionContent,this.placeholderComponent)}}t.default=Object(a.b)(Object(a.a)(i),"cmp-accordion")},,,,,,,function(e,t,s){e.exports=s(7)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=17)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@adobe/aem-react-editable-components")},function(e,t,s){"use strict";s.d(t,"b",(function(){return r})),s.d(t,"a",(function(){return o}));var n=s(0);const a=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),r=(e,t)=>s=>{const a=s.baseCssClass,r=a&&a.trim().length>0?a:t,o={...s,baseCssClass:r};return n.createElement(e,Object.assign({},o))},o=e=>class extends n.Component{constructor(e){super(e),this.state={},a&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return n.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},,function(e,t,s){"use strict";function n(e){return null==e.cqItemsOrder||0==e.cqItemsOrder.length}s.d(t,"a",(function(){return n}))},,,,function(e,t,s){"use strict";s.r(t);var n=s(0),a=s(2),r=s(1),o=s(4);class i extends r.Container{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||r.ComponentMapping,expandedItems:this.props.expandedItems},this.handleAccordionNavClick=this.handleAccordionNavClick.bind(this)}componentDidUpdate(e,t){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({expandedItems:[this.props.cqItemsOrder[this.props.activeIndexFromAuthorPanel]]})}handleAccordionNavClick(e){const t=this.state.expandedItems.indexOf(e)>-1,s=this.props.singleExpansion;let n=this.state.expandedItems;if(s)n=t?[]:[e];else if(t){const t=this.state.expandedItems.indexOf(e);n.splice(t)}else n.push(e);this.setState({expandedItems:n})}isItemExpanded(e){return this.state.expandedItems.indexOf(e)>-1}get accordionContainerProps(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="accordion",e["data-panelcontainer"]="accordion",e}displayItem(e,t){const s=this.props.cqItemsOrder.indexOf(e);if(!0===this.props.isInEditor||t){const e=t?`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--expanded`:`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--hidden`;return n.createElement("div",{className:e,role:"region"},this.childComponents[s])}return null}renderHeadingButton(e,t,s){return n.createElement("button",{className:s,onClick:()=>{this.handleAccordionNavClick(e)}},n.createElement("span",{className:this.props.baseCssClass+"__title"},t["cq:panelTitle"]),n.createElement("span",{className:this.props.baseCssClass+"__icon"}))}get accordionContent(){return this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],a=this.isItemExpanded(e),r=a?`${this.props.baseCssClass}__button ${this.props.baseCssClass}__button--expanded`:this.props.baseCssClass+"__button";return n.createElement("div",{key:"accordion-index"+t,className:this.props.baseCssClass+"__item","data-cmp-index":t,"data-cmp-expanded":a},n.createElement(""+(this.props.headingElement||"h3"),{className:this.props.baseCssClass+"__header"},this.renderHeadingButton(e,s,r)),this.displayItem(e,a))})}render(){const e=Object(o.a)(this.props);return n.createElement("div",Object.assign({},this.accordionContainerProps),!e&&this.accordionContent,this.placeholderComponent)}}t.default=Object(a.b)(Object(a.a)(i),"cmp-accordion")},,,,,,,,,function(e,t,s){e.exports=s(8)}])})); | ||
//# sourceMappingURL=AccordionV1.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function s(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=e,s.c=t,s.d=function(e,t,a){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(a,i,function(t){return e[t]}.bind(null,i));return a},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=15)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@adobe/aem-react-editable-components")},function(e,t,s){"use strict";s.d(t,"b",(function(){return n})),s.d(t,"a",(function(){return o}));var a=s(0);const i=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),n=(e,t)=>s=>{const i=s.baseCssClass,n=i&&i.trim().length>0?i:t,o={...s,baseCssClass:n};return a.createElement(e,Object.assign({},o))},o=e=>class extends a.Component{constructor(e){super(e),this.state={},i&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return a.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},,function(e,t,s){"use strict";function a(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}s.d(t,"a",(function(){return a}))},,,,function(e,t,s){"use strict";s.r(t);var a=s(0),i=s.n(a),n=s(2),o=s(1),r=s(4);const l=(e,t)=>{let s=e;for(let e=0;e<t.length;e++){const a="{"+e+"}";s=s.replace(a,t[e])}return s};class c extends o.Container{constructor(e){super(e),this.interval=0,this.clearAutoPlay=()=>{window.clearInterval(this.interval)},this.state={activeIndex:0,isMouseEntered:!1,autoPlay:this.props.autoplay&&!this.props.isInEditor,componentMapping:this.props.componentMapping||o.ComponentMapping},this.handleIndicatorClick=this.handleIndicatorClick.bind(this),this.handleOnButtonPrev=this.handleOnButtonPrev.bind(this),this.handleOnButtonNext=this.handleOnButtonNext.bind(this),this.handleOnMouseEnter=this.handleOnMouseEnter.bind(this),this.handleOnMouseLeave=this.handleOnMouseLeave.bind(this)}componentDidUpdate(e,t,s){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&(this.setState({activeIndex:this.props.activeIndexFromAuthorPanel}),this.toggleAutoPlay(!1))}componentDidMount(){this.autoPlay()}componentWillUnmount(){this.interval&&this.clearAutoPlay()}handleOnMouseEnter(){!this.props.autopauseDisabled&&this.props.autoplay&&this.clearAutoPlay()}handleOnMouseLeave(){!this.props.autopauseDisabled&&this.props.autoplay&&this.autoPlay()}handleOnButtonPrev(){this.prevSlide()}handleOnButtonNext(){this.nextSlide()}handleIndicatorClick(e){this.state.activeIndex!==e&&this.setState({activeIndex:e})}autoPlay(){this.interval=window.setInterval(()=>{this.autoPlayTick()},this.props.delay)}autoPlayTick(){!this.state.autoPlay||this.props.cqItemsOrder.length<=1||this.nextSlide()}toggleAutoPlay(e){this.setState({autoPlay:e})}nextSlide(){const e=this.__getActiveIndex();e===this.props.cqItemsOrder.length-1?this.__setSlide(0):this.__setSlide(e+1)}prevSlide(){const e=this.__getActiveIndex();0===e?this.__setSlide(this.props.cqItemsOrder.length-1):this.__setSlide(e-1)}__getActiveIndex(){return this.state.activeIndex}__setSlide(e){this.setState({activeIndex:e})}render(){const e=Object(r.a)(this.props);return i.a.createElement("div",{className:this.props.baseCssClass,role:"group","data-panelcontainer":"carousel","aria-label":this.props.accessibilityLabel,"aria-roledescription":"carousel"},!e&&this.renderCarousel(),this.placeholderComponent)}displayItem(e,t){const s=t===this.state.activeIndex,a=!(!s&&!this.props.isInEditor),n=s?`${this.props.baseCssClass}__item ${this.props.baseCssClass}__item--active`:this.props.baseCssClass+"__item",o=l(this.props.accessibility.slide,[(t+1).toString(),this.props.cqItemsOrder.length.toString()]);return i.a.createElement("div",{key:"item-"+t,className:n,role:"tabpanel","aria-label":o,"data-cmp-hook-carousel":"item"},a&&e)}renderCarousel(){return i.a.createElement("div",{className:this.props.baseCssClass+"__content",onMouseEnter:()=>this.handleOnMouseEnter(),onMouseLeave:()=>this.handleOnMouseLeave()},this.childComponents.map((e,t)=>this.displayItem(e,t)),this.renderCarouselActions(),this.renderCarouselIndicators())}renderCarouselIndicators(){return i.a.createElement("ol",{className:this.props.baseCssClass+"__indicators",role:"tablist","aria-label":this.props.accessibility.indicators},this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],a=t===this.state.activeIndex?`${this.props.baseCssClass}__indicator ${this.props.baseCssClass}__indicator--active`:this.props.baseCssClass+"__indicator",n=l(this.props.accessibility.indicator,[(t+1).toString()]);return i.a.createElement("li",{key:"item-"+t,onClick:()=>this.handleIndicatorClick(t),className:a,role:"tab","aria-label":n},s["cq:panelTitle"])}))}renderCarouselActions(){return i.a.createElement("div",{className:this.props.baseCssClass+"__actions"},i.a.createElement("button",{onClick:()=>this.handleOnButtonPrev(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--previous`,type:"button","aria-label":this.props.accessibility.previous},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.previous)),i.a.createElement("button",{onClick:()=>this.handleOnButtonNext(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--next`,type:"button","aria-label":this.props.accessibility.next},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.next)),this.props.autoplay&&i.a.createElement(i.a.Fragment,null,i.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--pause `+(this.state.autoPlay?"":this.props.baseCssClass+"__action--disabled"),type:"button","aria-label":this.props.accessibility.pause,onClick:()=>this.toggleAutoPlay(!1)},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.pause)),i.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--play `+(this.state.autoPlay?this.props.baseCssClass+"__action--disabled":""),type:"button","aria-label":this.props.accessibility.play,onClick:()=>this.toggleAutoPlay(!0)},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.play))))}}c.defaultProps={_allowedComponentPlaceholderListEmptyLabel:"CarouselV1",isInEditor:!1,autoplay:!1,cqPath:"",cqItems:{},cqItemsOrder:[],accessibilityLabel:"Carousel",accessibility:{play:"Play",pause:"Pause",next:"Next",previous:"Previous",slide:"Slide {0} of {1}",indicator:"Slide %{0}",indicators:"Choose a slide to display"}},t.default=Object(n.b)(Object(n.a)(c),"cmp-carousel")},,,,,,,function(e,t,s){e.exports=s(8)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function s(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=e,s.c=t,s.d=function(e,t,a){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)s.d(a,i,function(t){return e[t]}.bind(null,i));return a},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=18)}({0:function(e,t){e.exports=require("react")},1:function(e,t){e.exports=require("@adobe/aem-react-editable-components")},18:function(e,t,s){e.exports=s(9)},2:function(e,t,s){"use strict";s.d(t,"b",(function(){return n})),s.d(t,"a",(function(){return o}));var a=s(0);const i=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),n=(e,t)=>s=>{const i=s.baseCssClass,n=i&&i.trim().length>0?i:t,o={...s,baseCssClass:n};return a.createElement(e,Object.assign({},o))},o=e=>class extends a.Component{constructor(e){super(e),this.state={},i&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return a.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},5:function(e,t,s){"use strict";function a(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}s.d(t,"a",(function(){return a}))},9:function(e,t,s){"use strict";s.r(t);var a=s(0),i=s.n(a),n=s(2),o=s(1),r=s(5);const l=(e,t)=>{let s=e;for(let e=0;e<t.length;e++){const a="{"+e+"}";s=s.replace(a,t[e])}return s};class c extends o.Container{constructor(e){super(e),this.interval=0,this.clearAutoPlay=()=>{window.clearInterval(this.interval)},this.state={activeIndex:0,isMouseEntered:!1,autoPlay:this.props.autoplay&&!this.props.isInEditor,componentMapping:this.props.componentMapping||o.ComponentMapping},this.handleIndicatorClick=this.handleIndicatorClick.bind(this),this.handleOnButtonPrev=this.handleOnButtonPrev.bind(this),this.handleOnButtonNext=this.handleOnButtonNext.bind(this),this.handleOnMouseEnter=this.handleOnMouseEnter.bind(this),this.handleOnMouseLeave=this.handleOnMouseLeave.bind(this)}componentDidUpdate(e,t,s){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&(this.setState({activeIndex:this.props.activeIndexFromAuthorPanel}),this.toggleAutoPlay(!1))}componentDidMount(){this.autoPlay()}componentWillUnmount(){this.interval&&this.clearAutoPlay()}handleOnMouseEnter(){!this.props.autopauseDisabled&&this.props.autoplay&&this.clearAutoPlay()}handleOnMouseLeave(){!this.props.autopauseDisabled&&this.props.autoplay&&this.autoPlay()}handleOnButtonPrev(){this.prevSlide()}handleOnButtonNext(){this.nextSlide()}handleIndicatorClick(e){this.state.activeIndex!==e&&this.setState({activeIndex:e})}autoPlay(){this.interval=window.setInterval(()=>{this.autoPlayTick()},this.props.delay)}autoPlayTick(){!this.state.autoPlay||this.props.cqItemsOrder.length<=1||this.nextSlide()}toggleAutoPlay(e){this.setState({autoPlay:e})}nextSlide(){const e=this.__getActiveIndex();e===this.props.cqItemsOrder.length-1?this.__setSlide(0):this.__setSlide(e+1)}prevSlide(){const e=this.__getActiveIndex();0===e?this.__setSlide(this.props.cqItemsOrder.length-1):this.__setSlide(e-1)}__getActiveIndex(){return this.state.activeIndex}__setSlide(e){this.setState({activeIndex:e})}render(){const e=Object(r.a)(this.props);return i.a.createElement("div",{className:this.props.baseCssClass,role:"group","data-panelcontainer":"carousel","aria-label":this.props.accessibilityLabel,"aria-roledescription":"carousel"},!e&&this.renderCarousel(),this.placeholderComponent)}displayItem(e,t){const s=t===this.state.activeIndex,a=!(!s&&!this.props.isInEditor),n=s?`${this.props.baseCssClass}__item ${this.props.baseCssClass}__item--active`:this.props.baseCssClass+"__item",o=l(this.props.accessibility.slide,[(t+1).toString(),this.props.cqItemsOrder.length.toString()]);return i.a.createElement("div",{key:"item-"+t,className:n,role:"tabpanel","aria-label":o,"data-cmp-hook-carousel":"item"},a&&e)}renderCarousel(){return i.a.createElement("div",{className:this.props.baseCssClass+"__content",onMouseEnter:()=>this.handleOnMouseEnter(),onMouseLeave:()=>this.handleOnMouseLeave()},this.childComponents.map((e,t)=>this.displayItem(e,t)),this.renderCarouselActions(),this.renderCarouselIndicators())}renderCarouselIndicators(){return i.a.createElement("ol",{className:this.props.baseCssClass+"__indicators",role:"tablist","aria-label":this.props.accessibility.indicators},this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],a=t===this.state.activeIndex?`${this.props.baseCssClass}__indicator ${this.props.baseCssClass}__indicator--active`:this.props.baseCssClass+"__indicator",n=l(this.props.accessibility.indicator,[(t+1).toString()]);return i.a.createElement("li",{key:"item-"+t,onClick:()=>this.handleIndicatorClick(t),className:a,role:"tab","aria-label":n},s["cq:panelTitle"])}))}renderCarouselActions(){return i.a.createElement("div",{className:this.props.baseCssClass+"__actions"},i.a.createElement("button",{onClick:()=>this.handleOnButtonPrev(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--previous`,type:"button","aria-label":this.props.accessibility.previous},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.previous)),i.a.createElement("button",{onClick:()=>this.handleOnButtonNext(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--next`,type:"button","aria-label":this.props.accessibility.next},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.next)),this.props.autoplay&&i.a.createElement(i.a.Fragment,null,i.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--pause `+(this.state.autoPlay?"":this.props.baseCssClass+"__action--disabled"),type:"button","aria-label":this.props.accessibility.pause,onClick:()=>this.toggleAutoPlay(!1)},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.pause)),i.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--play `+(this.state.autoPlay?this.props.baseCssClass+"__action--disabled":""),type:"button","aria-label":this.props.accessibility.play,onClick:()=>this.toggleAutoPlay(!0)},i.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),i.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.play))))}}c.defaultProps={_allowedComponentPlaceholderListEmptyLabel:"CarouselV1",isInEditor:!1,autoplay:!1,cqPath:"",cqItems:{},cqItemsOrder:[],accessibilityLabel:"Carousel",accessibility:{play:"Play",pause:"Pause",next:"Next",previous:"Previous",slide:"Slide {0} of {1}",indicator:"Slide %{0}",indicators:"Choose a slide to display"}},t.default=Object(n.b)(Object(n.a)(c),"cmp-carousel")}})})); | ||
//# sourceMappingURL=CarouselV1.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,function(t){return e[t]}.bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=16)}({0:function(e,t){e.exports=require("react")},1:function(e,t){e.exports=require("@adobe/aem-react-editable-components")},16:function(e,t,n){e.exports=n(9)},2:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var s=n(0);const r=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),o=(e,t)=>n=>{const r=n.baseCssClass,o=r&&r.trim().length>0?r:t,a={...n,baseCssClass:o};return s.createElement(e,Object.assign({},a))},a=e=>class extends s.Component{constructor(e){super(e),this.state={},r&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return s.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},9:function(e,t,n){"use strict";n.r(t);var s=n(0),r=n.n(s),o=n(1),a=n(2);class i extends o.AllowedComponentsContainer{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||o.ComponentMapping},this.mainDiv=r.a.createRef()}componentDidMount(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}componentDidUpdate(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}get coreContainerProps(){return{className:"container responsivegrid"}}render(){const{componentMapping:e,allowedComponents:t,children:n,cqPath:s,cqItems:a,cqItemsOrder:i,isInEditor:c,...p}=this.props;if(c&&t&&t.applicable)return super.render();const l={allowedComponents:{applicable:!1,components:[]},componentMapping:this.state.componentMapping,gridClassNames:this.props.gridClassNames,columnClassNames:this.props.columnClassNames,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,title:"",cqPath:this.props.cqPath,isInEditor:!1};return r.a.createElement("div",Object.assign({},this.coreContainerProps),r.a.createElement("div",{ref:this.mainDiv,id:this.props.id,className:this.props.baseCssClass},this.props.layout&&"simple"===this.props.layout&&r.a.createElement(o.Container,{componentMapping:this.state.componentMapping,cqForceReload:this.props.cqForceReload,cqPath:this.props.cqPath,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,isInEditor:!1}),(!this.props.layout||"simple"!==this.props.layout)&&r.a.createElement(o.ResponsiveGrid,Object.assign({},l)),this.placeholderComponent))}}t.default=Object(a.b)(i,"cmp-container")}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(s,r,function(t){return e[t]}.bind(null,r));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}({0:function(e,t){e.exports=require("react")},1:function(e,t){e.exports=require("@adobe/aem-react-editable-components")},10:function(e,t,n){"use strict";n.r(t);var s=n(0),r=n.n(s),o=n(1),a=n(2);class i extends o.AllowedComponentsContainer{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||o.ComponentMapping},this.mainDiv=r.a.createRef()}componentDidMount(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}componentDidUpdate(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}get coreContainerProps(){return{className:"container responsivegrid"}}render(){const{componentMapping:e,allowedComponents:t,children:n,cqPath:s,cqItems:a,cqItemsOrder:i,isInEditor:c,...p}=this.props;if(c&&t&&t.applicable)return super.render();const l={allowedComponents:{applicable:!1,components:[]},componentMapping:this.state.componentMapping,gridClassNames:this.props.gridClassNames,columnClassNames:this.props.columnClassNames,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,title:"",cqPath:this.props.cqPath,isInEditor:!1};return r.a.createElement("div",Object.assign({},this.coreContainerProps),r.a.createElement("div",{ref:this.mainDiv,id:this.props.id,className:this.props.baseCssClass},this.props.layout&&"simple"===this.props.layout&&r.a.createElement(o.Container,{componentMapping:this.state.componentMapping,cqForceReload:this.props.cqForceReload,cqPath:this.props.cqPath,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,isInEditor:!1}),(!this.props.layout||"simple"!==this.props.layout)&&r.a.createElement(o.ResponsiveGrid,Object.assign({},l)),this.placeholderComponent))}}t.default=Object(a.b)(i,"cmp-container")},19:function(e,t,n){e.exports=n(10)},2:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var s=n(0);const r=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),o=(e,t)=>n=>{const r=n.baseCssClass,o=r&&r.trim().length>0?r:t,a={...n,baseCssClass:o};return s.createElement(e,Object.assign({},a))},a=e=>class extends s.Component{constructor(e){super(e),this.state={},r&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return s.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}}})})); | ||
//# sourceMappingURL=ContainerV1.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(a,s,function(t){return e[t]}.bind(null,s));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@adobe/aem-react-editable-components")},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var a=n(0);const s=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),r=(e,t)=>n=>{const s=n.baseCssClass,r=s&&s.trim().length>0?s:t,o={...n,baseCssClass:r};return a.createElement(e,Object.assign({},o))},o=e=>class extends a.Component{constructor(e){super(e),this.state={},s&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return a.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},,,function(e,t,n){"use strict";function a(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.r(t);var a=n(0),s=n.n(a),r=n(1),o=n(2),i=n(5);class c extends r.Container{constructor(e){super(e),this.state={activeIndex:e.activeItem&&e.activeItem.length>0?this.props.cqItemsOrder.indexOf(e.activeItem):0,componentMapping:this.props.componentMapping||r.ComponentMapping},this.handleTabNavClick=this.handleTabNavClick.bind(this)}componentDidUpdate(e,t,n){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({activeIndex:this.props.activeIndexFromAuthorPanel})}tabbedChildComponents(){return!0===this.props.isInEditor?s.a.createElement(s.a.Fragment,null,this.childComponents.map((e,t)=>{const n={display:this.state.activeIndex===t?"block":"none"};return s.a.createElement("div",{key:"tab-content-"+t,className:this.props.baseCssClass+"__author-tab-content",style:n},this.childComponents[t])})):this.childComponents[this.state.activeIndex]}handleTabNavClick(e){this.state.activeIndex!==e&&this.setState({activeIndex:e})}tabNavigation(){const e=[];return this.props.cqItems&&this.props.cqItemsOrder?s.a.createElement("ol",{role:"tablist",className:this.props.baseCssClass+"__tablist","aria-label":this.props.accessibilityLabel,"aria-multiselectable":"false"},this.props.cqItemsOrder.map((e,t)=>{const n=this.props.cqItems[e],a=t===this.state.activeIndex;return s.a.createElement("li",{role:"tab",key:"tab-"+t,onClick:()=>this.handleTabNavClick(t),className:this.props.baseCssClass+"__tab"+(a?" "+this.props.baseCssClass+"__tab--active":""),tabIndex:a?0:-1,"data-cmp-hook-tabs":"tab"},n["cq:panelTitle"])})):e}get tabContainerProps(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="tabs",e["data-panelcontainer"]="tabs",e}render(){const e=Object(i.a)(this.props);return s.a.createElement("div",Object.assign({},this.tabContainerProps),!e&&this.tabNavigation(),!e&&this.tabbedChildComponents(),this.placeholderComponent)}}t.default=Object(o.b)(Object(o.a)(c),"cmp-tabs")},,,,,,,,,,,function(e,t,n){e.exports=n(6)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(a,s,function(t){return e[t]}.bind(null,s));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=20)}({0:function(e,t){e.exports=require("react")},1:function(e,t){e.exports=require("@adobe/aem-react-editable-components")},2:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var a=n(0);const s=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),r=(e,t)=>n=>{const s=n.baseCssClass,r=s&&s.trim().length>0?s:t,o={...n,baseCssClass:r};return a.createElement(e,Object.assign({},o))},o=e=>class extends a.Component{constructor(e){super(e),this.state={},s&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return a.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},20:function(e,t,n){e.exports=n(7)},6:function(e,t,n){"use strict";function a(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}n.d(t,"a",(function(){return a}))},7:function(e,t,n){"use strict";n.r(t);var a=n(0),s=n.n(a),r=n(1),o=n(2),i=n(6);class c extends r.Container{constructor(e){super(e),this.state={activeIndex:e.activeItem&&e.activeItem.length>0?this.props.cqItemsOrder.indexOf(e.activeItem):0,componentMapping:this.props.componentMapping||r.ComponentMapping},this.handleTabNavClick=this.handleTabNavClick.bind(this)}componentDidUpdate(e,t,n){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({activeIndex:this.props.activeIndexFromAuthorPanel})}tabbedChildComponents(){return!0===this.props.isInEditor?s.a.createElement(s.a.Fragment,null,this.childComponents.map((e,t)=>{const n={display:this.state.activeIndex===t?"block":"none"};return s.a.createElement("div",{key:"tab-content-"+t,className:this.props.baseCssClass+"__author-tab-content",style:n},this.childComponents[t])})):this.childComponents[this.state.activeIndex]}handleTabNavClick(e){this.state.activeIndex!==e&&this.setState({activeIndex:e})}tabNavigation(){const e=[];return this.props.cqItems&&this.props.cqItemsOrder?s.a.createElement("ol",{role:"tablist",className:this.props.baseCssClass+"__tablist","aria-label":this.props.accessibilityLabel,"aria-multiselectable":"false"},this.props.cqItemsOrder.map((e,t)=>{const n=this.props.cqItems[e],a=t===this.state.activeIndex;return s.a.createElement("li",{role:"tab",key:"tab-"+t,onClick:()=>this.handleTabNavClick(t),className:this.props.baseCssClass+"__tab"+(a?" "+this.props.baseCssClass+"__tab--active":""),tabIndex:a?0:-1,"data-cmp-hook-tabs":"tab"},n["cq:panelTitle"])})):e}get tabContainerProps(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="tabs",e["data-panelcontainer"]="tabs",e}render(){const e=Object(i.a)(this.props);return s.a.createElement("div",Object.assign({},this.tabContainerProps),!e&&this.tabNavigation(),!e&&this.tabbedChildComponents(),this.placeholderComponent)}}t.default=Object(o.b)(Object(o.a)(c),"cmp-tabs")}})})); | ||
//# sourceMappingURL=TabsV1.js.map |
@@ -11,2 +11,3 @@ export * from './AbstractCoreContainerComponent'; | ||
export { default as ContainerV1 } from "./container/container/v1/ContainerV1"; | ||
export * from './container/contentfragment/v1'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=e():t["@adobe/aem-core-components-react-spa"]=e()}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function s(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=t,s.c=e,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=11)}([function(t,e){t.exports=require("react")},function(t,e){t.exports=require("@adobe/aem-react-editable-components")},function(t,e,s){"use strict";s.d(e,"b",(function(){return i})),s.d(e,"a",(function(){return r}));var a=s(0);const n=(()=>{try{return"undefined"!=typeof window}catch(t){return!1}})(),i=(t,e)=>s=>{const n=s.baseCssClass,i=n&&n.trim().length>0?n:e,r={...s,baseCssClass:i};return a.createElement(t,Object.assign({},r))},r=t=>class extends a.Component{constructor(t){super(t),this.state={},n&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(t){if(t.data&&t.data.id===this.props.cqPath&&"navigate"===t.data.operation){const e=t.data.index;this.setState({activeIndexFromAuthorPanel:e})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return a.createElement(t,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},function(t,e,s){"use strict";function a(t){return null==t.cqItemsOrder||0==t.cqItemsOrder.length}s.d(e,"a",(function(){return a}))},function(t,e,s){"use strict";function a(t){return null==t.cqItemsOrder||0===t.cqItemsOrder.length}s.d(e,"a",(function(){return a}))},function(t,e,s){"use strict";function a(t){return null==t.cqItemsOrder||0===t.cqItemsOrder.length}s.d(e,"a",(function(){return a}))},function(t,e,s){"use strict";s.r(e);var a=s(0),n=s.n(a),i=s(1),r=s(2),o=s(5);class c extends i.Container{constructor(t){super(t),this.state={activeIndex:t.activeItem&&t.activeItem.length>0?this.props.cqItemsOrder.indexOf(t.activeItem):0,componentMapping:this.props.componentMapping||i.ComponentMapping},this.handleTabNavClick=this.handleTabNavClick.bind(this)}componentDidUpdate(t,e,s){void 0!==this.props.activeIndexFromAuthorPanel&&t.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({activeIndex:this.props.activeIndexFromAuthorPanel})}tabbedChildComponents(){return!0===this.props.isInEditor?n.a.createElement(n.a.Fragment,null,this.childComponents.map((t,e)=>{const s={display:this.state.activeIndex===e?"block":"none"};return n.a.createElement("div",{key:"tab-content-"+e,className:this.props.baseCssClass+"__author-tab-content",style:s},this.childComponents[e])})):this.childComponents[this.state.activeIndex]}handleTabNavClick(t){this.state.activeIndex!==t&&this.setState({activeIndex:t})}tabNavigation(){const t=[];return this.props.cqItems&&this.props.cqItemsOrder?n.a.createElement("ol",{role:"tablist",className:this.props.baseCssClass+"__tablist","aria-label":this.props.accessibilityLabel,"aria-multiselectable":"false"},this.props.cqItemsOrder.map((t,e)=>{const s=this.props.cqItems[t],a=e===this.state.activeIndex;return n.a.createElement("li",{role:"tab",key:"tab-"+e,onClick:()=>this.handleTabNavClick(e),className:this.props.baseCssClass+"__tab"+(a?" "+this.props.baseCssClass+"__tab--active":""),tabIndex:a?0:-1,"data-cmp-hook-tabs":"tab"},s["cq:panelTitle"])})):t}get tabContainerProps(){const t=this.containerProps;return t.className=t.className+" "+this.props.baseCssClass,t["data-cmp-is"]="tabs",t["data-panelcontainer"]="tabs",t}render(){const t=Object(o.a)(this.props);return n.a.createElement("div",Object.assign({},this.tabContainerProps),!t&&this.tabNavigation(),!t&&this.tabbedChildComponents(),this.placeholderComponent)}}e.default=Object(r.b)(Object(r.a)(c),"cmp-tabs")},function(t,e,s){"use strict";s.r(e);var a=s(0),n=s(2),i=s(1),r=s(3);class o extends i.Container{constructor(t){super(t),this.state={componentMapping:this.props.componentMapping||i.ComponentMapping,expandedItems:this.props.expandedItems},this.handleAccordionNavClick=this.handleAccordionNavClick.bind(this)}componentDidUpdate(t,e){void 0!==this.props.activeIndexFromAuthorPanel&&t.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({expandedItems:[this.props.cqItemsOrder[this.props.activeIndexFromAuthorPanel]]})}handleAccordionNavClick(t){const e=this.state.expandedItems.indexOf(t)>-1,s=this.props.singleExpansion;let a=this.state.expandedItems;if(s)a=e?[]:[t];else if(e){const e=this.state.expandedItems.indexOf(t);a.splice(e)}else a.push(t);this.setState({expandedItems:a})}isItemExpanded(t){return this.state.expandedItems.indexOf(t)>-1}get accordionContainerProps(){const t=this.containerProps;return t.className=t.className+" "+this.props.baseCssClass,t["data-cmp-is"]="accordion",t["data-panelcontainer"]="accordion",t}displayItem(t,e){const s=this.props.cqItemsOrder.indexOf(t);if(!0===this.props.isInEditor||e){const t=e?`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--expanded`:`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--hidden`;return a.createElement("div",{className:t,role:"region"},this.childComponents[s])}return null}renderHeadingButton(t,e,s){return a.createElement("button",{className:s,onClick:()=>{this.handleAccordionNavClick(t)}},a.createElement("span",{className:this.props.baseCssClass+"__title"},e["cq:panelTitle"]),a.createElement("span",{className:this.props.baseCssClass+"__icon"}))}get accordionContent(){return this.props.cqItemsOrder.map((t,e)=>{const s=this.props.cqItems[t],n=this.isItemExpanded(t),i=n?`${this.props.baseCssClass}__button ${this.props.baseCssClass}__button--expanded`:this.props.baseCssClass+"__button";return a.createElement("div",{key:"accordion-index"+e,className:this.props.baseCssClass+"__item","data-cmp-index":e,"data-cmp-expanded":n},a.createElement(""+(this.props.headingElement||"h3"),{className:this.props.baseCssClass+"__header"},this.renderHeadingButton(t,s,i)),this.displayItem(t,n))})}render(){const t=Object(r.a)(this.props);return a.createElement("div",Object.assign({},this.accordionContainerProps),!t&&this.accordionContent,this.placeholderComponent)}}e.default=Object(n.b)(Object(n.a)(o),"cmp-accordion")},function(t,e,s){"use strict";s.r(e);var a=s(0),n=s.n(a),i=s(2),r=s(1),o=s(4);const c=(t,e)=>{let s=t;for(let t=0;t<e.length;t++){const a="{"+t+"}";s=s.replace(a,e[t])}return s};class p extends r.Container{constructor(t){super(t),this.interval=0,this.clearAutoPlay=()=>{window.clearInterval(this.interval)},this.state={activeIndex:0,isMouseEntered:!1,autoPlay:this.props.autoplay&&!this.props.isInEditor,componentMapping:this.props.componentMapping||r.ComponentMapping},this.handleIndicatorClick=this.handleIndicatorClick.bind(this),this.handleOnButtonPrev=this.handleOnButtonPrev.bind(this),this.handleOnButtonNext=this.handleOnButtonNext.bind(this),this.handleOnMouseEnter=this.handleOnMouseEnter.bind(this),this.handleOnMouseLeave=this.handleOnMouseLeave.bind(this)}componentDidUpdate(t,e,s){void 0!==this.props.activeIndexFromAuthorPanel&&t.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&(this.setState({activeIndex:this.props.activeIndexFromAuthorPanel}),this.toggleAutoPlay(!1))}componentDidMount(){this.autoPlay()}componentWillUnmount(){this.interval&&this.clearAutoPlay()}handleOnMouseEnter(){!this.props.autopauseDisabled&&this.props.autoplay&&this.clearAutoPlay()}handleOnMouseLeave(){!this.props.autopauseDisabled&&this.props.autoplay&&this.autoPlay()}handleOnButtonPrev(){this.prevSlide()}handleOnButtonNext(){this.nextSlide()}handleIndicatorClick(t){this.state.activeIndex!==t&&this.setState({activeIndex:t})}autoPlay(){this.interval=window.setInterval(()=>{this.autoPlayTick()},this.props.delay)}autoPlayTick(){!this.state.autoPlay||this.props.cqItemsOrder.length<=1||this.nextSlide()}toggleAutoPlay(t){this.setState({autoPlay:t})}nextSlide(){const t=this.__getActiveIndex();t===this.props.cqItemsOrder.length-1?this.__setSlide(0):this.__setSlide(t+1)}prevSlide(){const t=this.__getActiveIndex();0===t?this.__setSlide(this.props.cqItemsOrder.length-1):this.__setSlide(t-1)}__getActiveIndex(){return this.state.activeIndex}__setSlide(t){this.setState({activeIndex:t})}render(){const t=Object(o.a)(this.props);return n.a.createElement("div",{className:this.props.baseCssClass,role:"group","data-panelcontainer":"carousel","aria-label":this.props.accessibilityLabel,"aria-roledescription":"carousel"},!t&&this.renderCarousel(),this.placeholderComponent)}displayItem(t,e){const s=e===this.state.activeIndex,a=!(!s&&!this.props.isInEditor),i=s?`${this.props.baseCssClass}__item ${this.props.baseCssClass}__item--active`:this.props.baseCssClass+"__item",r=c(this.props.accessibility.slide,[(e+1).toString(),this.props.cqItemsOrder.length.toString()]);return n.a.createElement("div",{key:"item-"+e,className:i,role:"tabpanel","aria-label":r,"data-cmp-hook-carousel":"item"},a&&t)}renderCarousel(){return n.a.createElement("div",{className:this.props.baseCssClass+"__content",onMouseEnter:()=>this.handleOnMouseEnter(),onMouseLeave:()=>this.handleOnMouseLeave()},this.childComponents.map((t,e)=>this.displayItem(t,e)),this.renderCarouselActions(),this.renderCarouselIndicators())}renderCarouselIndicators(){return n.a.createElement("ol",{className:this.props.baseCssClass+"__indicators",role:"tablist","aria-label":this.props.accessibility.indicators},this.props.cqItemsOrder.map((t,e)=>{const s=this.props.cqItems[t],a=e===this.state.activeIndex?`${this.props.baseCssClass}__indicator ${this.props.baseCssClass}__indicator--active`:this.props.baseCssClass+"__indicator",i=c(this.props.accessibility.indicator,[(e+1).toString()]);return n.a.createElement("li",{key:"item-"+e,onClick:()=>this.handleIndicatorClick(e),className:a,role:"tab","aria-label":i},s["cq:panelTitle"])}))}renderCarouselActions(){return n.a.createElement("div",{className:this.props.baseCssClass+"__actions"},n.a.createElement("button",{onClick:()=>this.handleOnButtonPrev(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--previous`,type:"button","aria-label":this.props.accessibility.previous},n.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),n.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.previous)),n.a.createElement("button",{onClick:()=>this.handleOnButtonNext(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--next`,type:"button","aria-label":this.props.accessibility.next},n.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),n.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.next)),this.props.autoplay&&n.a.createElement(n.a.Fragment,null,n.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--pause `+(this.state.autoPlay?"":this.props.baseCssClass+"__action--disabled"),type:"button","aria-label":this.props.accessibility.pause,onClick:()=>this.toggleAutoPlay(!1)},n.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),n.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.pause)),n.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--play `+(this.state.autoPlay?this.props.baseCssClass+"__action--disabled":""),type:"button","aria-label":this.props.accessibility.play,onClick:()=>this.toggleAutoPlay(!0)},n.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),n.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.play))))}}p.defaultProps={_allowedComponentPlaceholderListEmptyLabel:"CarouselV1",isInEditor:!1,autoplay:!1,cqPath:"",cqItems:{},cqItemsOrder:[],accessibilityLabel:"Carousel",accessibility:{play:"Play",pause:"Pause",next:"Next",previous:"Previous",slide:"Slide {0} of {1}",indicator:"Slide %{0}",indicators:"Choose a slide to display"}},e.default=Object(i.b)(Object(i.a)(p),"cmp-carousel")},function(t,e,s){"use strict";s.r(e);var a=s(0),n=s.n(a),i=s(1),r=s(2);class o extends i.AllowedComponentsContainer{constructor(t){super(t),this.state={componentMapping:this.props.componentMapping||i.ComponentMapping},this.mainDiv=n.a.createRef()}componentDidMount(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}componentDidUpdate(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}get coreContainerProps(){return{className:"container responsivegrid"}}render(){const{componentMapping:t,allowedComponents:e,children:s,cqPath:a,cqItems:r,cqItemsOrder:o,isInEditor:c,...p}=this.props;if(c&&e&&e.applicable)return super.render();const l={allowedComponents:{applicable:!1,components:[]},componentMapping:this.state.componentMapping,gridClassNames:this.props.gridClassNames,columnClassNames:this.props.columnClassNames,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,title:"",cqPath:this.props.cqPath,isInEditor:!1};return n.a.createElement("div",Object.assign({},this.coreContainerProps),n.a.createElement("div",{ref:this.mainDiv,id:this.props.id,className:this.props.baseCssClass},this.props.layout&&"simple"===this.props.layout&&n.a.createElement(i.Container,{componentMapping:this.state.componentMapping,cqForceReload:this.props.cqForceReload,cqPath:this.props.cqPath,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,isInEditor:!1}),(!this.props.layout||"simple"!==this.props.layout)&&n.a.createElement(i.ResponsiveGrid,Object.assign({},l)),this.placeholderComponent))}}e.default=Object(r.b)(o,"cmp-container")},function(t,e,s){"use strict";s.r(e),s.d(e,"AccordionV1IsEmptyFn",(function(){return a.a})),s.d(e,"ContainerV1IsEmptyFn",(function(){return n})),s.d(e,"CarouselV1IsEmptyFn",(function(){return i.a})),s.d(e,"TabsV1IsEmptyFn",(function(){return r.a}));var a=s(3);function n(t){return null==t.cqItemsOrder||0===t.cqItemsOrder.length}var i=s(4),r=s(5)},function(t,e,s){t.exports=s(12)},function(t,e,s){"use strict";s.r(e);var a=s(2);s.d(e,"withStandardBaseCssClass",(function(){return a.b})),s.d(e,"withAuthorPanelSwitch",(function(){return a.a}));var n=s(10);s.d(e,"AccordionV1IsEmptyFn",(function(){return n.AccordionV1IsEmptyFn})),s.d(e,"ContainerV1IsEmptyFn",(function(){return n.ContainerV1IsEmptyFn})),s.d(e,"CarouselV1IsEmptyFn",(function(){return n.CarouselV1IsEmptyFn})),s.d(e,"TabsV1IsEmptyFn",(function(){return n.TabsV1IsEmptyFn}));var i=s(6);s.d(e,"TabsV1",(function(){return i.default}));var r=s(7);s.d(e,"AccordionV1",(function(){return r.default}));var o=s(8);s.d(e,"CarouselV1",(function(){return o.default}));var c=s(9);s.d(e,"ContainerV1",(function(){return c.default}))}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)s.d(n,a,function(t){return e[t]}.bind(null,a));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="",s(s.s=13)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@adobe/aem-react-editable-components")},function(e,t,s){"use strict";s.d(t,"b",(function(){return r})),s.d(t,"a",(function(){return i}));var n=s(0);const a=(()=>{try{return"undefined"!=typeof window}catch(e){return!1}})(),r=(e,t)=>s=>{const a=s.baseCssClass,r=a&&a.trim().length>0?a:t,i={...s,baseCssClass:r};return n.createElement(e,Object.assign({},i))},i=e=>class extends n.Component{constructor(e){super(e),this.state={},a&&window.Granite&&window.Granite.author&&window.Granite.author.MessageChannel&&(this.messageChannel=new window.Granite.author.MessageChannel("cqauthor",window),this.callback=this.callback.bind(this))}callback(e){if(e.data&&e.data.id===this.props.cqPath&&"navigate"===e.data.operation){const t=e.data.index;this.setState({activeIndexFromAuthorPanel:t})}}componentDidMount(){this.messageChannel&&this.messageChannel.subscribeRequestMessage("cmp.panelcontainer",this.callback)}componentWillUnmount(){this.messageChannel&&this.messageChannel.unsubscribeRequestMessage("cmp.panelcontainer",this.callback)}render(){return n.createElement(e,Object.assign({},this.props,{activeIndexFromAuthorPanel:this.state.activeIndexFromAuthorPanel}))}}},function(e,t,s){"use strict";function n(e){return!(null!=e.elementsOrder&&0!==e.elementsOrder.length||null!=e.cqItemsOrder&&0!==e.cqItemsOrder.length)}s.d(t,"a",(function(){return n}))},function(e,t,s){"use strict";function n(e){return null==e.cqItemsOrder||0==e.cqItemsOrder.length}s.d(t,"a",(function(){return n}))},function(e,t,s){"use strict";function n(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}s.d(t,"a",(function(){return n}))},function(e,t,s){"use strict";function n(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}s.d(t,"a",(function(){return n}))},function(e,t,s){"use strict";s.r(t);var n=s(0),a=s.n(n),r=s(1),i=s(2),o=s(6);class p extends r.Container{constructor(e){super(e),this.state={activeIndex:e.activeItem&&e.activeItem.length>0?this.props.cqItemsOrder.indexOf(e.activeItem):0,componentMapping:this.props.componentMapping||r.ComponentMapping},this.handleTabNavClick=this.handleTabNavClick.bind(this)}componentDidUpdate(e,t,s){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({activeIndex:this.props.activeIndexFromAuthorPanel})}tabbedChildComponents(){return!0===this.props.isInEditor?a.a.createElement(a.a.Fragment,null,this.childComponents.map((e,t)=>{const s={display:this.state.activeIndex===t?"block":"none"};return a.a.createElement("div",{key:"tab-content-"+t,className:this.props.baseCssClass+"__author-tab-content",style:s},this.childComponents[t])})):this.childComponents[this.state.activeIndex]}handleTabNavClick(e){this.state.activeIndex!==e&&this.setState({activeIndex:e})}tabNavigation(){const e=[];return this.props.cqItems&&this.props.cqItemsOrder?a.a.createElement("ol",{role:"tablist",className:this.props.baseCssClass+"__tablist","aria-label":this.props.accessibilityLabel,"aria-multiselectable":"false"},this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],n=t===this.state.activeIndex;return a.a.createElement("li",{role:"tab",key:"tab-"+t,onClick:()=>this.handleTabNavClick(t),className:this.props.baseCssClass+"__tab"+(n?" "+this.props.baseCssClass+"__tab--active":""),tabIndex:n?0:-1,"data-cmp-hook-tabs":"tab"},s["cq:panelTitle"])})):e}get tabContainerProps(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="tabs",e["data-panelcontainer"]="tabs",e}render(){const e=Object(o.a)(this.props);return a.a.createElement("div",Object.assign({},this.tabContainerProps),!e&&this.tabNavigation(),!e&&this.tabbedChildComponents(),this.placeholderComponent)}}t.default=Object(i.b)(Object(i.a)(p),"cmp-tabs")},function(e,t,s){"use strict";s.r(t);var n=s(0),a=s(2),r=s(1),i=s(4);class o extends r.Container{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||r.ComponentMapping,expandedItems:this.props.expandedItems},this.handleAccordionNavClick=this.handleAccordionNavClick.bind(this)}componentDidUpdate(e,t){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&this.setState({expandedItems:[this.props.cqItemsOrder[this.props.activeIndexFromAuthorPanel]]})}handleAccordionNavClick(e){const t=this.state.expandedItems.indexOf(e)>-1,s=this.props.singleExpansion;let n=this.state.expandedItems;if(s)n=t?[]:[e];else if(t){const t=this.state.expandedItems.indexOf(e);n.splice(t)}else n.push(e);this.setState({expandedItems:n})}isItemExpanded(e){return this.state.expandedItems.indexOf(e)>-1}get accordionContainerProps(){const e=this.containerProps;return e.className=e.className+" "+this.props.baseCssClass,e["data-cmp-is"]="accordion",e["data-panelcontainer"]="accordion",e}displayItem(e,t){const s=this.props.cqItemsOrder.indexOf(e);if(!0===this.props.isInEditor||t){const e=t?`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--expanded`:`${this.props.baseCssClass}__panel ${this.props.baseCssClass}__panel--hidden`;return n.createElement("div",{className:e,role:"region"},this.childComponents[s])}return null}renderHeadingButton(e,t,s){return n.createElement("button",{className:s,onClick:()=>{this.handleAccordionNavClick(e)}},n.createElement("span",{className:this.props.baseCssClass+"__title"},t["cq:panelTitle"]),n.createElement("span",{className:this.props.baseCssClass+"__icon"}))}get accordionContent(){return this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],a=this.isItemExpanded(e),r=a?`${this.props.baseCssClass}__button ${this.props.baseCssClass}__button--expanded`:this.props.baseCssClass+"__button";return n.createElement("div",{key:"accordion-index"+t,className:this.props.baseCssClass+"__item","data-cmp-index":t,"data-cmp-expanded":a},n.createElement(""+(this.props.headingElement||"h3"),{className:this.props.baseCssClass+"__header"},this.renderHeadingButton(e,s,r)),this.displayItem(e,a))})}render(){const e=Object(i.a)(this.props);return n.createElement("div",Object.assign({},this.accordionContainerProps),!e&&this.accordionContent,this.placeholderComponent)}}t.default=Object(a.b)(Object(a.a)(o),"cmp-accordion")},function(e,t,s){"use strict";s.r(t);var n=s(0),a=s.n(n),r=s(2),i=s(1),o=s(5);const p=(e,t)=>{let s=e;for(let e=0;e<t.length;e++){const n="{"+e+"}";s=s.replace(n,t[e])}return s};class l extends i.Container{constructor(e){super(e),this.interval=0,this.clearAutoPlay=()=>{window.clearInterval(this.interval)},this.state={activeIndex:0,isMouseEntered:!1,autoPlay:this.props.autoplay&&!this.props.isInEditor,componentMapping:this.props.componentMapping||i.ComponentMapping},this.handleIndicatorClick=this.handleIndicatorClick.bind(this),this.handleOnButtonPrev=this.handleOnButtonPrev.bind(this),this.handleOnButtonNext=this.handleOnButtonNext.bind(this),this.handleOnMouseEnter=this.handleOnMouseEnter.bind(this),this.handleOnMouseLeave=this.handleOnMouseLeave.bind(this)}componentDidUpdate(e,t,s){void 0!==this.props.activeIndexFromAuthorPanel&&e.activeIndexFromAuthorPanel!=this.props.activeIndexFromAuthorPanel&&(this.setState({activeIndex:this.props.activeIndexFromAuthorPanel}),this.toggleAutoPlay(!1))}componentDidMount(){this.autoPlay()}componentWillUnmount(){this.interval&&this.clearAutoPlay()}handleOnMouseEnter(){!this.props.autopauseDisabled&&this.props.autoplay&&this.clearAutoPlay()}handleOnMouseLeave(){!this.props.autopauseDisabled&&this.props.autoplay&&this.autoPlay()}handleOnButtonPrev(){this.prevSlide()}handleOnButtonNext(){this.nextSlide()}handleIndicatorClick(e){this.state.activeIndex!==e&&this.setState({activeIndex:e})}autoPlay(){this.interval=window.setInterval(()=>{this.autoPlayTick()},this.props.delay)}autoPlayTick(){!this.state.autoPlay||this.props.cqItemsOrder.length<=1||this.nextSlide()}toggleAutoPlay(e){this.setState({autoPlay:e})}nextSlide(){const e=this.__getActiveIndex();e===this.props.cqItemsOrder.length-1?this.__setSlide(0):this.__setSlide(e+1)}prevSlide(){const e=this.__getActiveIndex();0===e?this.__setSlide(this.props.cqItemsOrder.length-1):this.__setSlide(e-1)}__getActiveIndex(){return this.state.activeIndex}__setSlide(e){this.setState({activeIndex:e})}render(){const e=Object(o.a)(this.props);return a.a.createElement("div",{className:this.props.baseCssClass,role:"group","data-panelcontainer":"carousel","aria-label":this.props.accessibilityLabel,"aria-roledescription":"carousel"},!e&&this.renderCarousel(),this.placeholderComponent)}displayItem(e,t){const s=t===this.state.activeIndex,n=!(!s&&!this.props.isInEditor),r=s?`${this.props.baseCssClass}__item ${this.props.baseCssClass}__item--active`:this.props.baseCssClass+"__item",i=p(this.props.accessibility.slide,[(t+1).toString(),this.props.cqItemsOrder.length.toString()]);return a.a.createElement("div",{key:"item-"+t,className:r,role:"tabpanel","aria-label":i,"data-cmp-hook-carousel":"item"},n&&e)}renderCarousel(){return a.a.createElement("div",{className:this.props.baseCssClass+"__content",onMouseEnter:()=>this.handleOnMouseEnter(),onMouseLeave:()=>this.handleOnMouseLeave()},this.childComponents.map((e,t)=>this.displayItem(e,t)),this.renderCarouselActions(),this.renderCarouselIndicators())}renderCarouselIndicators(){return a.a.createElement("ol",{className:this.props.baseCssClass+"__indicators",role:"tablist","aria-label":this.props.accessibility.indicators},this.props.cqItemsOrder.map((e,t)=>{const s=this.props.cqItems[e],n=t===this.state.activeIndex?`${this.props.baseCssClass}__indicator ${this.props.baseCssClass}__indicator--active`:this.props.baseCssClass+"__indicator",r=p(this.props.accessibility.indicator,[(t+1).toString()]);return a.a.createElement("li",{key:"item-"+t,onClick:()=>this.handleIndicatorClick(t),className:n,role:"tab","aria-label":r},s["cq:panelTitle"])}))}renderCarouselActions(){return a.a.createElement("div",{className:this.props.baseCssClass+"__actions"},a.a.createElement("button",{onClick:()=>this.handleOnButtonPrev(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--previous`,type:"button","aria-label":this.props.accessibility.previous},a.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),a.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.previous)),a.a.createElement("button",{onClick:()=>this.handleOnButtonNext(),className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--next`,type:"button","aria-label":this.props.accessibility.next},a.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),a.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.next)),this.props.autoplay&&a.a.createElement(a.a.Fragment,null,a.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--pause `+(this.state.autoPlay?"":this.props.baseCssClass+"__action--disabled"),type:"button","aria-label":this.props.accessibility.pause,onClick:()=>this.toggleAutoPlay(!1)},a.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),a.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.pause)),a.a.createElement("button",{className:`${this.props.baseCssClass}__action ${this.props.baseCssClass}__action--play `+(this.state.autoPlay?this.props.baseCssClass+"__action--disabled":""),type:"button","aria-label":this.props.accessibility.play,onClick:()=>this.toggleAutoPlay(!0)},a.a.createElement("span",{className:this.props.baseCssClass+"__action-icon"}),a.a.createElement("span",{className:this.props.baseCssClass+"__action-text"},this.props.accessibility.play))))}}l.defaultProps={_allowedComponentPlaceholderListEmptyLabel:"CarouselV1",isInEditor:!1,autoplay:!1,cqPath:"",cqItems:{},cqItemsOrder:[],accessibilityLabel:"Carousel",accessibility:{play:"Play",pause:"Pause",next:"Next",previous:"Previous",slide:"Slide {0} of {1}",indicator:"Slide %{0}",indicators:"Choose a slide to display"}},t.default=Object(r.b)(Object(r.a)(l),"cmp-carousel")},function(e,t,s){"use strict";s.r(t);var n=s(0),a=s.n(n),r=s(1),i=s(2);class o extends r.AllowedComponentsContainer{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||r.ComponentMapping},this.mainDiv=a.a.createRef()}componentDidMount(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}componentDidUpdate(){this.mainDiv.current&&this.mainDiv.current.setAttribute("style",this.props.backgroundStyle)}get coreContainerProps(){return{className:"container responsivegrid"}}render(){const{componentMapping:e,allowedComponents:t,children:s,cqPath:n,cqItems:i,cqItemsOrder:o,isInEditor:p,...l}=this.props;if(p&&t&&t.applicable)return super.render();const c={allowedComponents:{applicable:!1,components:[]},componentMapping:this.state.componentMapping,gridClassNames:this.props.gridClassNames,columnClassNames:this.props.columnClassNames,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,title:"",cqPath:this.props.cqPath,isInEditor:!1};return a.a.createElement("div",Object.assign({},this.coreContainerProps),a.a.createElement("div",{ref:this.mainDiv,id:this.props.id,className:this.props.baseCssClass},this.props.layout&&"simple"===this.props.layout&&a.a.createElement(r.Container,{componentMapping:this.state.componentMapping,cqForceReload:this.props.cqForceReload,cqPath:this.props.cqPath,cqItems:this.props.cqItems,cqItemsOrder:this.props.cqItemsOrder,isInEditor:!1}),(!this.props.layout||"simple"!==this.props.layout)&&a.a.createElement(r.ResponsiveGrid,Object.assign({},c)),this.placeholderComponent))}}t.default=Object(i.b)(o,"cmp-container")},function(e,t,s){"use strict";s.r(t),s.d(t,"ContentFragmentV1IsEmptyFn",(function(){return n.a})),s.d(t,"MapToContentFragmentModel",(function(){return o})),s.d(t,"ContentFragmentRegistryV1",(function(){return i})),s.d(t,"DefaultContentFragmentV1Renderer",(function(){return c})),s.d(t,"ContentFragmentV1",(function(){return u}));var n=s(3),a=s(1);class r{mapRenderer(e,t){r.mapRenderer(e,t)}static mapRenderer(e,t){if(e&&t){("string"==typeof e?[e]:e).forEach(e=>{Object(a.MapTo)(this.getModelKey(e))(t)})}}getRenderer(e){return r.getRenderer(e)}static getRenderer(e){const t=this.getModelKey(e);return a.ComponentMapping.get(t)}static getModelKey(e){return"ContentFragmentV1-"+e}}var i=new r;const o=e=>t=>r.mapRenderer(e,t);var p=s(0),l=s.n(p);class c extends a.Container{renderElement(e,t,s){return l.a.createElement("div",{key:this.props.id+"-element-"+e+"-"+s,className:this.props.baseCssClass+"__element"},l.a.createElement("div",{className:this.props.baseCssClass+"__elemententry "+this.props.baseCssClass+"__elemententry--key"},l.a.createElement("h4",null,t)),l.a.createElement("div",{className:this.props.baseCssClass+"__elemententry "+this.props.baseCssClass+"__elemententry--value"},"value: ",e.value),l.a.createElement("div",{className:this.props.baseCssClass+"__elemententry "+this.props.baseCssClass+"__elemententry--datatype"},"datatype: ",e.dataType),l.a.createElement("div",{className:this.props.baseCssClass+"__elemententry "+this.props.baseCssClass+"__elemententry--multivalue"},"multivalue: ",e.multiValue?"true":"false"),l.a.createElement("div",{className:this.props.baseCssClass+"__elemententry "+this.props.baseCssClass+"__elemententry--type"},"type: ",e[":type"]))}get elements(){return l.a.createElement("div",{className:this.props.baseCssClass+"__elements"},this.props.elementsOrder.map((e,t)=>this.renderElement(this.props.elements[e],e,t)),";")}render(){return l.a.createElement("div",{id:this.props.id,className:this.props.baseCssClass},l.a.createElement("h3",{className:this.props.baseCssClass+"__title"},this.props.title),!!this.props.description&&this.props.description.length>0&&l.a.createElement("p",{className:this.props.baseCssClass+"__description"},this.props.description),this.props.elementsOrder&&this.props.elementsOrder.length&&this.elements,this.childComponents)}}var d=s(2);class h extends a.Container{constructor(e){super(e),this.state={componentMapping:this.props.componentMapping||a.ComponentMapping}}get renderEmptyPlaceHolder(){return this.props.isInEditor?l.a.createElement("div",{className:"cf-placeholder"},"ContentFragment is empty."):l.a.createElement(l.a.Fragment,null)}render(){if(Object(n.a)(this.props))return this.renderEmptyPlaceHolder;let e=i.getRenderer(this.props.model);return e||(e=Object(d.b)(c,"cmp-contentfragment")),l.a.createElement(e,Object.assign({},this.props,{componentMapping:this.state.componentMapping}))}}var u=h},function(e,t,s){"use strict";s.r(t),s.d(t,"AccordionV1IsEmptyFn",(function(){return n.a})),s.d(t,"ContainerV1IsEmptyFn",(function(){return a})),s.d(t,"CarouselV1IsEmptyFn",(function(){return r.a})),s.d(t,"TabsV1IsEmptyFn",(function(){return i.a})),s.d(t,"ContentFragmentV1IsEmptyFn",(function(){return o.a}));var n=s(4);function a(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}var r=s(5),i=s(6),o=s(3)},function(e,t,s){e.exports=s(14)},function(e,t,s){"use strict";s.r(t);var n=s(2);s.d(t,"withStandardBaseCssClass",(function(){return n.b})),s.d(t,"withAuthorPanelSwitch",(function(){return n.a}));var a=s(12);s.d(t,"AccordionV1IsEmptyFn",(function(){return a.AccordionV1IsEmptyFn})),s.d(t,"ContainerV1IsEmptyFn",(function(){return a.ContainerV1IsEmptyFn})),s.d(t,"CarouselV1IsEmptyFn",(function(){return a.CarouselV1IsEmptyFn})),s.d(t,"TabsV1IsEmptyFn",(function(){return a.TabsV1IsEmptyFn})),s.d(t,"ContentFragmentV1IsEmptyFn",(function(){return a.ContentFragmentV1IsEmptyFn}));var r=s(7);s.d(t,"TabsV1",(function(){return r.default}));var i=s(8);s.d(t,"AccordionV1",(function(){return i.default}));var o=s(9);s.d(t,"CarouselV1",(function(){return o.default}));var p=s(10);s.d(t,"ContainerV1",(function(){return p.default}));var l=s(11);s.d(t,"MapToContentFragmentModel",(function(){return l.MapToContentFragmentModel})),s.d(t,"ContentFragmentRegistryV1",(function(){return l.ContentFragmentRegistryV1})),s.d(t,"DefaultContentFragmentV1Renderer",(function(){return l.DefaultContentFragmentV1Renderer})),s.d(t,"ContentFragmentV1",(function(){return l.ContentFragmentV1}))}])})); | ||
//# sourceMappingURL=index.js.map |
@@ -5,2 +5,3 @@ export * from "./container/accordion/v1/AccordionV1IsEmptyFn"; | ||
export * from "./container/tabs/v1/TabsV1IsEmptyFn"; | ||
export * from "./container/contentfragment/v1/ContentFragmentV1IsEmptyFn"; | ||
//# sourceMappingURL=isEmptyFunctions.d.ts.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([,,,function(e,t,n){"use strict";function r(e){return null==e.cqItemsOrder||0==e.cqItemsOrder.length}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}n.d(t,"a",(function(){return r}))},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"AccordionV1IsEmptyFn",(function(){return r.a})),n.d(t,"ContainerV1IsEmptyFn",(function(){return o})),n.d(t,"CarouselV1IsEmptyFn",(function(){return u.a})),n.d(t,"TabsV1IsEmptyFn",(function(){return c.a}));var r=n(3);function o(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}var u=n(4),c=n(5)},,,function(e,t,n){e.exports=n(10)}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@adobe/aem-core-components-react-spa"]=t():e["@adobe/aem-core-components-react-spa"]=t()}("undefined"!=typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([,,,function(e,t,n){"use strict";function r(e){return!(null!=e.elementsOrder&&0!==e.elementsOrder.length||null!=e.cqItemsOrder&&0!==e.cqItemsOrder.length)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null==e.cqItemsOrder||0==e.cqItemsOrder.length}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}n.d(t,"a",(function(){return r}))},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"AccordionV1IsEmptyFn",(function(){return r.a})),n.d(t,"ContainerV1IsEmptyFn",(function(){return o})),n.d(t,"CarouselV1IsEmptyFn",(function(){return u.a})),n.d(t,"TabsV1IsEmptyFn",(function(){return c.a})),n.d(t,"ContentFragmentV1IsEmptyFn",(function(){return i.a}));var r=n(4);function o(e){return null==e.cqItemsOrder||0===e.cqItemsOrder.length}var u=n(5),c=n(6),i=n(3)},,,function(e,t,n){e.exports=n(12)}])})); | ||
//# sourceMappingURL=isEmptyFunctions.js.map |
@@ -8,2 +8,4 @@ { | ||
"container/container/v1/ContainerV1.js.map": "container/container/v1/ContainerV1.js.map", | ||
"container/contentfragment/v1.js": "container/contentfragment/v1.js", | ||
"container/contentfragment/v1.js.map": "container/contentfragment/v1.js.map", | ||
"container/tabs/v1/TabsV1.js": "container/tabs/v1/TabsV1.js", | ||
@@ -10,0 +12,0 @@ "container/tabs/v1/TabsV1.js.map": "container/tabs/v1/TabsV1.js.map", |
{ | ||
"name": "@adobe/aem-core-components-react-spa", | ||
"version": "1.1.8", | ||
"version": "1.2.0", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
609197
96
1200
6