<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
(function(l, r) { if (!l || l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (self.location.host || 'localhost').split(':')[0] + ':35731/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(self.document);
(function () {
    'use strict';

    function noop() { }
    function add_location(element, file, line, column, char) {
        element.__svelte_meta = {
            loc: { file, line, column, char }
        };
    }
    function run(fn) {
        return fn();
    }
    function blank_object() {
        return Object.create(null);
    }
    function run_all(fns) {
        fns.forEach(run);
    }
    function is_function(thing) {
        return typeof thing === 'function';
    }
    function safe_not_equal(a, b) {
        return a != a ? b == b : a !== b || ((a &amp;&amp; typeof a === 'object') || typeof a === 'function');
    }
    function is_empty(obj) {
        return Object.keys(obj).length === 0;
    }
    function validate_store(store, name) {
        if (store != null &amp;&amp; typeof store.subscribe !== 'function') {
            throw new Error(`'${name}' is not a store with a 'subscribe' method`);
        }
    }
    function subscribe(store, ...callbacks) {
        if (store == null) {
            return noop;
        }
        const unsub = store.subscribe(...callbacks);
        return unsub.unsubscribe ? () =&gt; unsub.unsubscribe() : unsub;
    }
    function component_subscribe(component, store, callback) {
        component.$$.on_destroy.push(subscribe(store, callback));
    }
    function append(target, node) {
        target.appendChild(node);
    }
    function insert(target, node, anchor) {
        target.insertBefore(node, anchor || null);
    }
    function detach(node) {
        node.parentNode.removeChild(node);
    }
    function destroy_each(iterations, detaching) {
        for (let i = 0; i &lt; iterations.length; i += 1) {
            if (iterations[i])
                iterations[i].d(detaching);
        }
    }
    function element(name) {
        return document.createElement(name);
    }
    function text(data) {
        return document.createTextNode(data);
    }
    function space() {
        return text(' ');
    }
    function empty() {
        return text('');
    }
    function listen(node, event, handler, options) {
        node.addEventListener(event, handler, options);
        return () =&gt; node.removeEventListener(event, handler, options);
    }
    function attr(node, attribute, value) {
        if (value == null)
            node.removeAttribute(attribute);
        else if (node.getAttribute(attribute) !== value)
            node.setAttribute(attribute, value);
    }
    function set_custom_element_data(node, prop, value) {
        if (prop in node) {
            node[prop] = typeof node[prop] === 'boolean' &amp;&amp; value === '' ? true : value;
        }
        else {
            attr(node, prop, value);
        }
    }
    function children(element) {
        return Array.from(element.childNodes);
    }
    function set_style(node, key, value, important) {
        node.style.setProperty(key, value, important ? 'important' : '');
    }
    function custom_event(type, detail, bubbles = false) {
        const e = document.createEvent('CustomEvent');
        e.initCustomEvent(type, bubbles, false, detail);
        return e;
    }
    function attribute_to_object(attributes) {
        const result = {};
        for (const attribute of attributes) {
            result[attribute.name] = attribute.value;
        }
        return result;
    }

    let current_component;
    function set_current_component(component) {
        current_component = component;
    }

    const dirty_components = [];
    const binding_callbacks = [];
    const render_callbacks = [];
    const flush_callbacks = [];
    const resolved_promise = Promise.resolve();
    let update_scheduled = false;
    function schedule_update() {
        if (!update_scheduled) {
            update_scheduled = true;
            resolved_promise.then(flush);
        }
    }
    function add_render_callback(fn) {
        render_callbacks.push(fn);
    }
    let flushing = false;
    const seen_callbacks = new Set();
    function flush() {
        if (flushing)
            return;
        flushing = true;
        do {
            // first, call beforeUpdate functions
            // and update components
            for (let i = 0; i &lt; dirty_components.length; i += 1) {
                const component = dirty_components[i];
                set_current_component(component);
                update(component.$$);
            }
            set_current_component(null);
            dirty_components.length = 0;
            while (binding_callbacks.length)
                binding_callbacks.pop()();
            // then, once components are updated, call
            // afterUpdate functions. This may cause
            // subsequent updates...
            for (let i = 0; i &lt; render_callbacks.length; i += 1) {
                const callback = render_callbacks[i];
                if (!seen_callbacks.has(callback)) {
                    // ...so guard against infinite loops
                    seen_callbacks.add(callback);
                    callback();
                }
            }
            render_callbacks.length = 0;
        } while (dirty_components.length);
        while (flush_callbacks.length) {
            flush_callbacks.pop()();
        }
        update_scheduled = false;
        flushing = false;
        seen_callbacks.clear();
    }
    function update($$) {
        if ($$.fragment !== null) {
            $$.update();
            run_all($$.before_update);
            const dirty = $$.dirty;
            $$.dirty = [-1];
            $$.fragment &amp;&amp; $$.fragment.p($$.ctx, dirty);
            $$.after_update.forEach(add_render_callback);
        }
    }
    const outroing = new Set();
    function transition_in(block, local) {
        if (block &amp;&amp; block.i) {
            outroing.delete(block);
            block.i(local);
        }
    }
    function mount_component(component, target, anchor, customElement) {
        const { fragment, on_mount, on_destroy, after_update } = component.$$;
        fragment &amp;&amp; fragment.m(target, anchor);
        if (!customElement) {
            // onMount happens before the initial afterUpdate
            add_render_callback(() =&gt; {
                const new_on_destroy = on_mount.map(run).filter(is_function);
                if (on_destroy) {
                    on_destroy.push(...new_on_destroy);
                }
                else {
                    // Edge case - component was destroyed immediately,
                    // most likely as a result of a binding initialising
                    run_all(new_on_destroy);
                }
                component.$$.on_mount = [];
            });
        }
        after_update.forEach(add_render_callback);
    }
    function destroy_component(component, detaching) {
        const $$ = component.$$;
        if ($$.fragment !== null) {
            run_all($$.on_destroy);
            $$.fragment &amp;&amp; $$.fragment.d(detaching);
            // TODO null out other refs, including component.$$ (but need to
            // preserve final state?)
            $$.on_destroy = $$.fragment = null;
            $$.ctx = [];
        }
    }
    function make_dirty(component, i) {
        if (component.$$.dirty[0] === -1) {
            dirty_components.push(component);
            schedule_update();
            component.$$.dirty.fill(0);
        }
        component.$$.dirty[(i / 31) | 0] |= (1 &lt;&lt; (i % 31));
    }
    function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
        const parent_component = current_component;
        set_current_component(component);
        const $$ = component.$$ = {
            fragment: null,
            ctx: null,
            // state
            props,
            update: noop,
            not_equal,
            bound: blank_object(),
            // lifecycle
            on_mount: [],
            on_destroy: [],
            on_disconnect: [],
            before_update: [],
            after_update: [],
            context: new Map(parent_component ? parent_component.$$.context : options.context || []),
            // everything else
            callbacks: blank_object(),
            dirty,
            skip_bound: false,
            root: options.target || parent_component.$$.root
        };
        append_styles &amp;&amp; append_styles($$.root);
        let ready = false;
        $$.ctx = instance
            ? instance(component, options.props || {}, (i, ret, ...rest) =&gt; {
                const value = rest.length ? rest[0] : ret;
                if ($$.ctx &amp;&amp; not_equal($$.ctx[i], $$.ctx[i] = value)) {
                    if (!$$.skip_bound &amp;&amp; $$.bound[i])
                        $$.bound[i](value);
                    if (ready)
                        make_dirty(component, i);
                }
                return ret;
            })
            : [];
        $$.update();
        ready = true;
        run_all($$.before_update);
        // `false` as a special case of no DOM component
        $$.fragment = create_fragment ? create_fragment($$.ctx) : false;
        if (options.target) {
            if (options.hydrate) {
                const nodes = children(options.target);
                // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
                $$.fragment &amp;&amp; $$.fragment.l(nodes);
                nodes.forEach(detach);
            }
            else {
                // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
                $$.fragment &amp;&amp; $$.fragment.c();
            }
            if (options.intro)
                transition_in(component.$$.fragment);
            mount_component(component, options.target, options.anchor, options.customElement);
            flush();
        }
        set_current_component(parent_component);
    }
    let SvelteElement;
    if (typeof HTMLElement === 'function') {
        SvelteElement = class extends HTMLElement {
            constructor() {
                super();
                this.attachShadow({ mode: 'open' });
            }
            connectedCallback() {
                const { on_mount } = this.$$;
                this.$$.on_disconnect = on_mount.map(run).filter(is_function);
                // @ts-ignore todo: improve typings
                for (const key in this.$$.slotted) {
                    // @ts-ignore todo: improve typings
                    this.appendChild(this.$$.slotted[key]);
                }
            }
            attributeChangedCallback(attr, _oldValue, newValue) {
                this[attr] = newValue;
            }
            disconnectedCallback() {
                run_all(this.$$.on_disconnect);
            }
            $destroy() {
                destroy_component(this, 1);
                this.$destroy = noop;
            }
            $on(type, callback) {
                // TODO should this delegate to addEventListener?
                const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
                callbacks.push(callback);
                return () =&gt; {
                    const index = callbacks.indexOf(callback);
                    if (index !== -1)
                        callbacks.splice(index, 1);
                };
            }
            $set($$props) {
                if (this.$$set &amp;&amp; !is_empty($$props)) {
                    this.$$.skip_bound = true;
                    this.$$set($$props);
                    this.$$.skip_bound = false;
                }
            }
        };
    }

    function dispatch_dev(type, detail) {
        document.dispatchEvent(custom_event(type, Object.assign({ version: '3.40.0' }, detail), true));
    }
    function append_dev(target, node) {
        dispatch_dev('SvelteDOMInsert', { target, node });
        append(target, node);
    }
    function insert_dev(target, node, anchor) {
        dispatch_dev('SvelteDOMInsert', { target, node, anchor });
        insert(target, node, anchor);
    }
    function detach_dev(node) {
        dispatch_dev('SvelteDOMRemove', { node });
        detach(node);
    }
    function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
        const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
        if (has_prevent_default)
            modifiers.push('preventDefault');
        if (has_stop_propagation)
            modifiers.push('stopPropagation');
        dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
        const dispose = listen(node, event, handler, options);
        return () =&gt; {
            dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
            dispose();
        };
    }
    function attr_dev(node, attribute, value) {
        attr(node, attribute, value);
        if (value == null)
            dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
        else
            dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
    }
    function set_data_dev(text, data) {
        data = '' + data;
        if (text.wholeText === data)
            return;
        dispatch_dev('SvelteDOMSetData', { node: text, data });
        text.data = data;
    }
    function validate_each_argument(arg) {
        if (typeof arg !== 'string' &amp;&amp; !(arg &amp;&amp; typeof arg === 'object' &amp;&amp; 'length' in arg)) {
            let msg = '{#each} only iterates over array-like objects.';
            if (typeof Symbol === 'function' &amp;&amp; arg &amp;&amp; Symbol.iterator in arg) {
                msg += ' You can use a spread to convert this iterable into an array.';
            }
            throw new Error(msg);
        }
    }
    function validate_slots(name, slot, keys) {
        for (const slot_key of Object.keys(slot)) {
            if (!~keys.indexOf(slot_key)) {
                console.warn(`&lt;${name}&gt; received an unexpected slot "${slot_key}".`);
            }
        }
    }

    const subscriber_queue = [];
    /**
     * Create a `Writable` store that allows both updating and reading by subscription.
     * @param {*=}value initial value
     * @param {StartStopNotifier=}start start and stop notifications for subscriptions
     */
    function writable(value, start = noop) {
        let stop;
        const subscribers = [];
        function set(new_value) {
            if (safe_not_equal(value, new_value)) {
                value = new_value;
                if (stop) { // store is ready
                    const run_queue = !subscriber_queue.length;
                    for (let i = 0; i &lt; subscribers.length; i += 1) {
                        const s = subscribers[i];
                        s[1]();
                        subscriber_queue.push(s, value);
                    }
                    if (run_queue) {
                        for (let i = 0; i &lt; subscriber_queue.length; i += 2) {
                            subscriber_queue[i][0](subscriber_queue[i + 1]);
                        }
                        subscriber_queue.length = 0;
                    }
                }
            }
        }
        function update(fn) {
            set(fn(value));
        }
        function subscribe(run, invalidate = noop) {
            const subscriber = [run, invalidate];
            subscribers.push(subscriber);
            if (subscribers.length === 1) {
                stop = start(set) || noop;
            }
            run(value);
            return () =&gt; {
                const index = subscribers.indexOf(subscriber);
                if (index !== -1) {
                    subscribers.splice(index, 1);
                }
                if (subscribers.length === 0) {
                    stop();
                    stop = null;
                }
            };
        }
        return { set, update, subscribe };
    }

    const contentLoaded = writable(true);

    const labels = writable({
        myDocuments: "",
        bookmarkedProducts: "",
        noOfDocs: "",
        downloadAll: "",
        download: "",
        removeAll: "",
        findMoreDocs: "",
        addedOn: "",
        language: "",
        version: "",
        remove: "",
        view: ""
    });

    const labelKeys = writable({
        myDocuments: 'prm-document-list',
        bookmarkedProducts:'prm-mylist-view-bookmarked-products',
        noOfDocs:'prm-number-of-documents',
        downloadAll: 'prm-cart-download-all-files',
        download: 'prm-download',
        removeAll: 'prm-my-list-remove-all-documents',
        findMoreDocs: 'prm-my-list-find-more-documents',
        addedOn: 'prm-mylist-added-on',
        language:'prm-document-filter-language',
        version:'prm-document-version',
        remove: 'prm-table-data-delete',
        view: 'prm-view-online',
    });


    const apiDetailsObj = writable({
        endpointForMyDocuments: "",
        countryCode: "",
        languageCode: "",
        appSource: ""
    });

    const apiLocalizedLabelsObj = writable({
        endpointForLocalizedLabels: "",
        countryCode: "",
        languageCode: "",
        appSource: ""
    });


    const myDocs = writable({});
    const countryCode = writable();
    const languageCode = writable();
    const appSource = writable();
    const toggleClick = writable();

    function handleDataAttributes(cc, lc, app_source, toggle_click) {
      countryCode.set(cc);
      languageCode.set(lc);
      appSource.set(app_source);
      toggleClick.set(toggle_click);
    }

    function handleAPIInput(dataApiEndPointUrl, localizationEndPointUrl) {
      let cc, lc, app_source;

      countryCode.subscribe(obj =&gt; {
        if(obj) {
          cc = obj;
        }
      });

      languageCode.subscribe(obj =&gt; {
        if(obj) {
          lc = obj;
        }
      });

      appSource.subscribe(obj =&gt; {
        if(obj) {
          app_source = obj;
        }
      });
      if (dataApiEndPointUrl) {
        let url = dataApiEndPointUrl;
        let obj = {};
        obj.endpointForMyDocuments = setEndpointForMyDocs(url, cc, lc);
        obj.countryCode = cc;
        obj.languageCode = lc;
        obj.appSource = app_source;
        
        apiDetailsObj.set(obj);      
      }

      if(localizationEndPointUrl) {
        let url = localizationEndPointUrl;

        let obj = {};
        obj.endpointForLocalizedLabels = setEndpointForLocalizedLabels(url, cc, lc);
        obj.countryCode = cc;
        obj.languageCode = lc;
        obj.appSource = app_source;
        
        apiLocalizedLabelsObj.set(obj);
      }
    }

    function setEndpointForLocalizedLabels(endPoint, countryCode, languageCode) {
      return endPoint.replace(/{cc}/, countryCode).replace(/{lc}/, languageCode);
    }

    function setEndpointForMyDocs(endPoint, countryCode, languageCode) {
      return endPoint.replace(/{cc}/, countryCode).replace(/{lc}/, languageCode);
    }

    let viewOnlineDomains = [
      "www.productinfo.schneider-electric.com",
      "digital-energy-help.se.com",
      "hmi.schneider-electric.com",
      "ecostruxure-power-build-easy.se.app",
      "ecoxpert.se.com",
      "product-help.schneider-electric.com",
      "edesign-630.se.com",
      "flipbook.se.com",
      "www.document.schneider-electric.fr",
      "go.schneider-electric.com"
    ];

    // events
    function navigateToDocumentDetailsPage(refNo) {
      console.log(refNo);
        window.dispatchEvent(new CustomEvent("documentTitleClicked", {
          detail: {'referenceNo': refNo},
          bubbles: true
        }));
      }

      function navigateToMoreDocs() {
        console.log('Find more docs link clicked');
        window.dispatchEvent(new CustomEvent("findMoreLinkClicked", {
          detail: {'eventName':'Find more docs link clicked'},
          bubbles: true
        }));
      }

    let storeAPIDetailsObj, storeLocalizedLabelssObj, allLabels, storeLabelKeys, storeLabels, requiredLabels = [];

    apiDetailsObj.subscribe((obj) =&gt; {
        if (obj.endpointForMyDocuments !== "") {
            storeAPIDetailsObj = obj;
            getDocuments();
        }
    });

    apiLocalizedLabelsObj.subscribe((obj) =&gt; {
        if (obj.endpointForLocalizedLabels !== "") {
            storeLocalizedLabelssObj = obj;
            getLocalLabels();
        }
    });

    function getAllLabels() {
        labelKeys.subscribe(
            value =&gt; {
                requiredLabels = Object.values(value).join(',');
            }
        );
    }

    async function getLocalLabels() {
        getAllLabels();
        await fetch(storeLocalizedLabelssObj.endpointForLocalizedLabels + 'getLocalizedLabels/?appSource=' + storeLocalizedLabelssObj.appSource + '&amp;labelNames=' + requiredLabels)
            .then(r =&gt; r.json())
            .then(data =&gt; {
                allLabels = data;
                setLabelsinStore();
            }, error =&gt; {
                allLabels = {};
                setLabelsinStore();
            });
    }

    function setLabelsinStore() {
        labels.subscribe(
            value =&gt; {
                storeLabels = value;
            }
        );
        labelKeys.subscribe(
            value =&gt; {
                storeLabelKeys = value;
            }
        );
        for (let label in storeLabels) {
            let labelkey = storeLabelKeys[label];
            storeLabels[label] = allLabels[labelkey];
        }
        labels.set(storeLabels);
    }

    async function getDocuments() {
        await fetch(storeAPIDetailsObj.endpointForMyDocuments + 'my-documents?appSource=' + storeAPIDetailsObj.appSource,
            { method: 'GET', credentials: 'same-origin' })
            .then(r =&gt; r.json())
            .then(data =&gt; {
                myDocs.set(data);
            },error=&gt;{
                myDocs.set({});
            });

        // myDocs.set({
        //     "documentsCount": 9,
        //     "downloadMeta": {
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=LA9LB398_DATASHEET,RPM12BD_DATASHEET,RXM3AB1P7_DATASHEET,RPM41F7_DATASHEET,998-20406242_GMA,ATV9xx_DTM_Library_EN,RXM3AB2F7_DATASHEET,0100CT1901,&amp;p_File_Name=LA9LB398_DATASHEET_US_en-US.pdf,RPM12BD_DATASHEET_US_en-US.pdf,RXM3AB1P7_DATASHEET_US_en-US.pdf,RPM41F7_DATASHEET_US_en-US.pdf,998-20406242_GMA.pdf,Schneider_Electric_Altivar_Process_ATV9xx_DTM_Library_V3.8.4.exe,Schneider_Electric_Altivar_Process_ATV9xx_DTM_Library_V3.8.4_ReadMe.pdf,Schneider_Electric_Altivar_Process_ATV9xx_DTM_Library_V3.8.4_ReleaseNotes.pdf,RXM3AB2F7_DATASHEET_US_en-US.pdf,0100CT1901.pdf,&amp;p_Archive_Name=SchneiderElectricDownloads.zip",
        //     "documentReferences": "LA9LB398_DATASHEET,RPM12BD_DATASHEET,RXM3AB1P7_DATASHEET,RPM41F7_DATASHEET,998-20406242_GMA,ATV9xx_DTM_Library_EN,RXM3AB2F7_DATASHEET,0100CT1901,",
        //     "documentFileNames": "LA9LB398_DATASHEET_US_en-US.pdf,RPM12BD_DATASHEET_US_en-US.pdf,RXM3AB1P7_DATASHEET_US_en-US.pdf,RPM41F7_DATASHEET_US_en-US.pdf,998-20406242_GMA.pdf,Schneider_Electric_Altivar_Process_ATV9xx_DTM_Library_V3.8.4.exe,Schneider_Electric_Altivar_Process_ATV9xx_DTM_Library_V3.8.4_ReadMe.pdf,Schneider_Electric_Altivar_Process_ATV9xx_DTM_Library_V3.8.4_ReleaseNotes.pdf,RXM3AB2F7_DATASHEET_US_en-US.pdf,0100CT1901.pdf,",
        //     "archiveName": "SchneiderElectricDownloads.zip"
        //     },
        //     "documents": [
        //     {
        //     "reference": "LA9LB398_DATASHEET",
        //     "title": "LA9LB398 : test device LA9-LB - for Integral 18",
        //     "documentDate": "April/13/2023",
        //     "description": null,
        //     "size": "0",
        //     "version": null,
        //     "locales": "English",
        //     "extension": ".PDF",
        //     "bannerUrl": null,
        //     "fileName": "LA9LB398_DATASHEET_US_en-US.pdf",
        //     "enDocType": "Product Data Sheet",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=LA9LB398_DATASHEET&amp;p_enDocType=Product+Data+Sheet&amp;p_File_Name=LA9LB398_DATASHEET_US_en-US.pdf",
        //     "documentId": 12075410658,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "6085276357-Datasheet",
        //     "cartAddedDate": "12/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "RPM12BD_DATASHEET",
        //     "title": "RPM12BD : Power plug in relay, Harmony, 15A, 1CO, with LED, lockable test button, 24V DC",
        //     "documentDate": "April/13/2023",
        //     "description": null,
        //     "size": "0",
        //     "version": null,
        //     "locales": "English",
        //     "extension": ".PDF",
        //     "bannerUrl": null,
        //     "fileName": "RPM12BD_DATASHEET_US_en-US.pdf",
        //     "enDocType": "Product Data Sheet",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=RPM12BD_DATASHEET&amp;p_enDocType=Product+Data+Sheet&amp;p_File_Name=RPM12BD_DATASHEET_US_en-US.pdf",
        //     "documentId": 11857478752,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "6085276357-Datasheet",
        //     "cartAddedDate": "12/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "RXM3AB1P7_DATASHEET",
        //     "title": "RXM3AB1P7 : Miniature plug in relay, Harmony, 10A, 3CO, lockable test button, 230V AC",
        //     "documentDate": "April/13/2023",
        //     "description": null,
        //     "size": "0",
        //     "version": null,
        //     "locales": "English",
        //     "extension": ".PDF",
        //     "bannerUrl": null,
        //     "fileName": "RXM3AB1P7_DATASHEET_US_en-US.pdf",
        //     "enDocType": "Product Data Sheet",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=RXM3AB1P7_DATASHEET&amp;p_enDocType=Product+Data+Sheet&amp;p_File_Name=RXM3AB1P7_DATASHEET_US_en-US.pdf",
        //     "documentId": 11861717582,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "6085276357-Datasheet",
        //     "cartAddedDate": "12/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "RPM41F7_DATASHEET",
        //     "title": "RPM41F7 : Power plug in relay, Harmony, 15A, 4CO, lockable test button, 120V AC",
        //     "documentDate": "April/13/2023",
        //     "description": null,
        //     "size": "0",
        //     "version": null,
        //     "locales": "English",
        //     "extension": ".PDF",
        //     "bannerUrl": null,
        //     "fileName": "RPM41F7_DATASHEET_US_en-US.pdf",
        //     "enDocType": "Product Data Sheet",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=RPM41F7_DATASHEET&amp;p_enDocType=Product+Data+Sheet&amp;p_File_Name=RPM41F7_DATASHEET_US_en-US.pdf",
        //     "documentId": 11865900274,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "6085276357-Datasheet",
        //     "cartAddedDate": "12/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "998-20406242_GMA",
        //     "title": "Backup Power Testing &amp; Regulatory Compliance eGuide",
        //     "documentDate": "October/29/2018",
        //     "description": "Business continuity depends on critical assets like motors, backup power systems, transformers and more. With accurate data from the electrical distribution system, EcoStruxure Power can help improve your power network reliability with Backup Power Testing and Regulatory Compliance.",
        //     "size": "4.4 MB",
        //     "version": "1.0",
        //     "locales": "English",
        //     "extension": ".PDF",
        //     "bannerUrl": null,
        //     "fileName": "998-20406242_GMA.pdf",
        //     "enDocType": "Brochure",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=998-20406242_GMA&amp;p_enDocType=Brochure&amp;p_File_Name=998-20406242_GMA.pdf",
        //     "documentId": 10823904786,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "1555865-Brochure",
        //     "cartAddedDate": "12/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "FA364431",
        //     "title": "Getting started with ATV600",
        //     "documentDate": "June/28/2022",
        //     "description": null,
        //     "size": null,
        //     "version": "2.0",
        //     "locales": "English",
        //     "extension": null,
        //     "bannerUrl": "https://www.productinfo.schneider-electric.com/portals/ui/nadigest/pages/landingPages/digest178",
        //     "fileName": null,
        //     "enDocType": null,
        //     "online": true,
        //     "onlineCad": false,
        //     "downloadUrl": null,
        //     "documentId": 69572942162,
        //     "disableDownload": true,
        //     "documentTypeDisplayLabel": "12516104258-How to video",
        //     "cartAddedDate": "13/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "ATV9xx_DTM_Library_EN",
        //     "title": "Altivar Process ATV9xx - DTM Library",
        //     "documentDate": "April/06/2023",
        //     "description": "ATV900, The DTM libraries are installed individually, independently of the FDT container. The DTMs can be used in Schneider Electric environments: SoMove For other languages, you can download a dedicated EXE file on : https://www.se.com/ww/en/product-range/2714-somove ALWAYS INSTALL THE ENGLISH EXE file FIRST",
        //     "size": "153.9 MB",
        //     "version": "V3.8.4",
        //     "locales": "English",
        //     "extension": "ZIP",
        //     "bannerUrl": null,
        //     "fileName": "ATV9xx_DTM_Library_EN.zip",
        //     "enDocType": "DTM files",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=ATV9xx_DTM_Library_EN&amp;p_enDocType=DTM+files&amp;p_Archive_Name=ATV9xx_DTM_Library_EN.zip",
        //     "documentId": 98916308163,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "4889330-DTM files",
        //     "cartAddedDate": "13/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "RXM3AB2F7_DATASHEET",
        //     "title": "RXM3AB2F7 : Miniature plug in relay, Harmony, 10A, 3CO, with LED, lockable test button, 120V AC",
        //     "documentDate": "April/13/2023",
        //     "description": null,
        //     "size": "0",
        //     "version": null,
        //     "locales": "English",
        //     "extension": ".PDF",
        //     "bannerUrl": null,
        //     "fileName": "RXM3AB2F7_DATASHEET_US_en-US.pdf",
        //     "enDocType": "Product Data Sheet",
        //     "online": false,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=RXM3AB2F7_DATASHEET&amp;p_enDocType=Product+Data+Sheet&amp;p_File_Name=RXM3AB2F7_DATASHEET_US_en-US.pdf",
        //     "documentId": 11861782929,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "6085276357-Datasheet",
        //     "cartAddedDate": "12/4/2023",
        //     "private": false
        //     },
        //     {
        //     "reference": "0100CT1901",
        //     "title": "Digest Product Catalog Full Download (Mar 2023)",
        //     "documentDate": "March/30/2023",
        //     "description": "The Online Digest Product Catalog is updated frequently and is based on the hard copy Digest 178 Edition printed in 2019. The Digest contains over a thousand pages of technical product information to help you specify and select our most common Schneider Electric products including Square D, and TelemecaniqueÃ¢â€žÂ¢ brands. In addition to this PDF book format, the same content is available through HTML5 format - part of DigestPLUS. The Digest also known as the \"Square D Catalog\".",
        //     "size": "64.9 MB",
        //     "version": "1.11",
        //     "locales": "English",
        //     "extension": ".pdf",
        //     "bannerUrl": "https://www.productinfo.schneider-electric.com/portals/ui/nadigest/pages/landingPages/digest178",
        //     "fileName": "0100CT1901.pdf",
        //     "enDocType": "Catalog",
        //     "online": true,
        //     "onlineCad": false,
        //     "downloadUrl": "//download.schneider-electric.com/files?p_Doc_Ref=0100CT1901&amp;p_enDocType=Catalog&amp;p_File_Name=0100CT1901.pdf",
        //     "documentId": 103594704182,
        //     "disableDownload": false,
        //     "documentTypeDisplayLabel": "1555852-Catalog",
        //     "cartAddedDate": "13/4/2023",
        //     "private": false
        //     }
        //     ]
        // })
    }

    async function removeAllDocuments() {
        let response;
        await fetch(
            storeAPIDetailsObj.endpointForMyDocuments + 'my-documents/deletAllDocuments?appSource=' +
            storeAPIDetailsObj.appSource
            , { method: 'DELETE' })
            .then(data =&gt; {
                response = data;
            });
        getDocuments();
        return (response);
    }

    async function removeDocument(docReference) {
        let response;
        await fetch(
            storeAPIDetailsObj.endpointForMyDocuments + 'my-documents/?appSource=' +
            storeAPIDetailsObj.appSource + '&amp;docReference=' + docReference
            , { method: 'DELETE' })
            .then(data =&gt; {
                response = data;
            });
        getDocuments();
        return (response);
    }

    let trackingObject;

    function trackingDownloadEvent(documentId, documentName, documentType) {
      trackingObject = {};
      trackingObject.event = "download";
      trackingObject.documentId = documentId;
      trackingObject.documentName = documentName;
      trackingObject.documentType = documentType;
      console.log(trackingObject);
      
      dispatchEvent();
    }

    function exitToSchneiderEvent(digitialPlatformDestination) {
      trackingObject = {};
      trackingObject.event = "exitToSchneider",
      trackingObject.digitalPlatformDestination = digitialPlatformDestination;
      console.log(trackingObject);
      dispatchEvent();
    }

    function trackingRemoveFromFavorites(documentId, documentType) {
      trackingObject = {};
      trackingObject.event = "removeMyDocuments";
      trackingObject.documentId = documentId;
      trackingObject.documentType = documentType;
      console.log(trackingObject);
      
      dispatchEvent();
    }

    function dispatchEvent() {
      window.dispatchEvent(new CustomEvent("track_analytics", {
        detail: trackingObject,
        bubbles: true
      }));
    }

    /* src\my-documents.svelte generated by Svelte v3.40.0 */

    const file = "src\\my-documents.svelte";

    function get_each_context(ctx, list, i) {
    	const child_ctx = ctx.slice();
    	child_ctx[21] = list[i];
    	return child_ctx;
    }

    // (84:8) {:else}
    function create_else_block_2(ctx) {
    	let h1;
    	let t_value = /*$labels*/ ctx[6].myDocuments + "";
    	let t;

    	const block = {
    		c: function create() {
    			h1 = element("h1");
    			t = text(t_value);
    			attr_dev(h1, "class", "title");
    			add_location(h1, file, 84, 10, 2981);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, h1, anchor);
    			append_dev(h1, t);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; t_value !== (t_value = /*$labels*/ ctx[6].myDocuments + "")) set_data_dev(t, t_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(h1);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_else_block_2.name,
    		type: "else",
    		source: "(84:8) {:else}",
    		ctx
    	});

    	return block;
    }

    // (82:6) {#if ( page_title &amp;&amp; page_title != '') &amp;&amp; (disable_page_title &amp;&amp; disable_page_title == 'true')}
    function create_if_block_10(ctx) {
    	let h1;
    	let t;

    	const block = {
    		c: function create() {
    			h1 = element("h1");
    			t = text(/*page_title*/ ctx[0]);
    			attr_dev(h1, "class", "title");
    			add_location(h1, file, 82, 8, 2917);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, h1, anchor);
    			append_dev(h1, t);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*page_title*/ 1) set_data_dev(t, /*page_title*/ ctx[0]);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(h1);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_10.name,
    		type: "if",
    		source: "(82:6) {#if ( page_title &amp;&amp; page_title != '') &amp;&amp; (disable_page_title &amp;&amp; disable_page_title == 'true')}",
    		ctx
    	});

    	return block;
    }

    // (89:6) {:else}
    function create_else_block_1(ctx) {
    	let h2;
    	let t_value = /*$labels*/ ctx[6].bookmarkedProducts + "";
    	let t;

    	const block = {
    		c: function create() {
    			h2 = element("h2");
    			t = text(t_value);
    			attr_dev(h2, "class", "sub-title");
    			add_location(h2, file, 89, 8, 3234);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, h2, anchor);
    			append_dev(h2, t);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; t_value !== (t_value = /*$labels*/ ctx[6].bookmarkedProducts + "")) set_data_dev(t, t_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(h2);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_else_block_1.name,
    		type: "else",
    		source: "(89:6) {:else}",
    		ctx
    	});

    	return block;
    }

    // (87:6) {#if (page_sub_title &amp;&amp; page_sub_title != '') &amp;&amp; (disable_page_sub_title &amp;&amp; disable_page_sub_title == 'true')}
    function create_if_block_9(ctx) {
    	let h2;
    	let t;

    	const block = {
    		c: function create() {
    			h2 = element("h2");
    			t = text(/*page_sub_title*/ ctx[1]);
    			attr_dev(h2, "class", "sub-title");
    			add_location(h2, file, 87, 8, 3166);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, h2, anchor);
    			append_dev(h2, t);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*page_sub_title*/ 2) set_data_dev(t, /*page_sub_title*/ ctx[1]);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(h2);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_9.name,
    		type: "if",
    		source: "(87:6) {#if (page_sub_title &amp;&amp; page_sub_title != '') &amp;&amp; (disable_page_sub_title &amp;&amp; disable_page_sub_title == 'true')}",
    		ctx
    	});

    	return block;
    }

    // (95:10) {#if $labels.noOfDocs}
    function create_if_block_7(ctx) {
    	let p;
    	let t0_value = /*$labels*/ ctx[6].noOfDocs + "";
    	let t0;
    	let t1;
    	let t2;
    	let t3_value = (/*max_cap*/ ctx[4] ? /*max_cap*/ ctx[4] : 20) + "";
    	let t3;

    	function select_block_type_2(ctx, dirty) {
    		if (/*$myDocs*/ ctx[7].documentsCount) return create_if_block_8;
    		return create_else_block;
    	}

    	let current_block_type = select_block_type_2(ctx);
    	let if_block = current_block_type(ctx);

    	const block = {
    		c: function create() {
    			p = element("p");
    			t0 = text(t0_value);
    			t1 = text(": \r\n            ");
    			if_block.c();
    			t2 = text("\r\n            /");
    			t3 = text(t3_value);
    			attr_dev(p, "class", "noof-docs");
    			add_location(p, file, 95, 10, 3429);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, p, anchor);
    			append_dev(p, t0);
    			append_dev(p, t1);
    			if_block.m(p, null);
    			append_dev(p, t2);
    			append_dev(p, t3);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; t0_value !== (t0_value = /*$labels*/ ctx[6].noOfDocs + "")) set_data_dev(t0, t0_value);

    			if (current_block_type === (current_block_type = select_block_type_2(ctx)) &amp;&amp; if_block) {
    				if_block.p(ctx, dirty);
    			} else {
    				if_block.d(1);
    				if_block = current_block_type(ctx);

    				if (if_block) {
    					if_block.c();
    					if_block.m(p, t2);
    				}
    			}

    			if (dirty &amp; /*max_cap*/ 16 &amp;&amp; t3_value !== (t3_value = (/*max_cap*/ ctx[4] ? /*max_cap*/ ctx[4] : 20) + "")) set_data_dev(t3, t3_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(p);
    			if_block.d();
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_7.name,
    		type: "if",
    		source: "(95:10) {#if $labels.noOfDocs}",
    		ctx
    	});

    	return block;
    }

    // (100:14) {:else}
    function create_else_block(ctx) {
    	let t;

    	const block = {
    		c: function create() {
    			t = text("0");
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, t, anchor);
    		},
    		p: noop,
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(t);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_else_block.name,
    		type: "else",
    		source: "(100:14) {:else}",
    		ctx
    	});

    	return block;
    }

    // (98:12) {#if $myDocs.documentsCount }
    function create_if_block_8(ctx) {
    	let t_value = /*$myDocs*/ ctx[7].documentsCount + "";
    	let t;

    	const block = {
    		c: function create() {
    			t = text(t_value);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, t, anchor);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t_value !== (t_value = /*$myDocs*/ ctx[7].documentsCount + "")) set_data_dev(t, t_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(t);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_8.name,
    		type: "if",
    		source: "(98:12) {#if $myDocs.documentsCount }",
    		ctx
    	});

    	return block;
    }

    // (108:8) {#if $myDocs.documentsCount}
    function create_if_block_6(ctx) {
    	let div0;
    	let qds_button0;
    	let qds_button0_text_value;
    	let t0;
    	let qds_button1;
    	let qds_button1_text_value;
    	let t1;
    	let div1;
    	let qds_button2;
    	let qds_button2_text_value;
    	let t2;
    	let qds_button3;
    	let qds_button3_text_value;
    	let mounted;
    	let dispose;

    	const block = {
    		c: function create() {
    			div0 = element("div");
    			qds_button0 = element("qds-button");
    			t0 = space();
    			qds_button1 = element("qds-button");
    			t1 = space();
    			div1 = element("div");
    			qds_button2 = element("qds-button");
    			t2 = space();
    			qds_button3 = element("qds-button");
    			set_custom_element_data(qds_button0, "importance", "emphasized");
    			set_custom_element_data(qds_button0, "size", "standard");
    			set_custom_element_data(qds_button0, "text", qds_button0_text_value = /*$labels*/ ctx[6].downloadAll);
    			set_style(qds_button0, "margin-inline-end", "5px");
    			add_location(qds_button0, file, 109, 12, 3986);
    			set_custom_element_data(qds_button1, "importance", "subdued");
    			set_custom_element_data(qds_button1, "size", "standard");
    			set_custom_element_data(qds_button1, "icon-name", "trash-can");
    			set_custom_element_data(qds_button1, "text", qds_button1_text_value = /*$labels*/ ctx[6].removeAll);
    			set_style(qds_button1, "margin", "5px");
    			add_location(qds_button1, file, 110, 12, 4169);
    			attr_dev(div0, "class", "btns-container");
    			add_location(div0, file, 108, 10, 3944);
    			set_custom_element_data(qds_button2, "importance", "emphasized");
    			set_custom_element_data(qds_button2, "size", "standard");
    			set_custom_element_data(qds_button2, "text", qds_button2_text_value = /*$labels*/ ctx[6].downloadAll);
    			add_location(qds_button2, file, 113, 12, 4410);
    			set_custom_element_data(qds_button3, "importance", "subdued");
    			set_custom_element_data(qds_button3, "size", "standard");
    			set_custom_element_data(qds_button3, "icon-name", "trash-can");
    			set_custom_element_data(qds_button3, "text", qds_button3_text_value = /*$labels*/ ctx[6].removeAll);
    			add_location(qds_button3, file, 114, 12, 4554);
    			attr_dev(div1, "class", "btns-container-mbl");
    			add_location(div1, file, 112, 10, 4364);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, div0, anchor);
    			append_dev(div0, qds_button0);
    			append_dev(div0, t0);
    			append_dev(div0, qds_button1);
    			insert_dev(target, t1, anchor);
    			insert_dev(target, div1, anchor);
    			append_dev(div1, qds_button2);
    			append_dev(div1, t2);
    			append_dev(div1, qds_button3);

    			if (!mounted) {
    				dispose = [
    					listen_dev(
    						qds_button0,
    						"click",
    						function () {
    							if (is_function(/*downloadAllDocs*/ ctx[8](/*$myDocs*/ ctx[7]))) /*downloadAllDocs*/ ctx[8](/*$myDocs*/ ctx[7]).apply(this, arguments);
    						},
    						false,
    						false,
    						false
    					),
    					listen_dev(
    						qds_button1,
    						"click",
    						function () {
    							if (is_function(/*removeAllDocs*/ ctx[11](/*$myDocs*/ ctx[7]))) /*removeAllDocs*/ ctx[11](/*$myDocs*/ ctx[7]).apply(this, arguments);
    						},
    						false,
    						false,
    						false
    					),
    					listen_dev(
    						qds_button2,
    						"click",
    						function () {
    							if (is_function(/*downloadAllDocs*/ ctx[8](/*$myDocs*/ ctx[7]))) /*downloadAllDocs*/ ctx[8](/*$myDocs*/ ctx[7]).apply(this, arguments);
    						},
    						false,
    						false,
    						false
    					),
    					listen_dev(
    						qds_button3,
    						"click",
    						function () {
    							if (is_function(/*removeAllDocs*/ ctx[11](/*$myDocs*/ ctx[7]))) /*removeAllDocs*/ ctx[11](/*$myDocs*/ ctx[7]).apply(this, arguments);
    						},
    						false,
    						false,
    						false
    					)
    				];

    				mounted = true;
    			}
    		},
    		p: function update(new_ctx, dirty) {
    			ctx = new_ctx;

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button0_text_value !== (qds_button0_text_value = /*$labels*/ ctx[6].downloadAll)) {
    				set_custom_element_data(qds_button0, "text", qds_button0_text_value);
    			}

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button1_text_value !== (qds_button1_text_value = /*$labels*/ ctx[6].removeAll)) {
    				set_custom_element_data(qds_button1, "text", qds_button1_text_value);
    			}

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button2_text_value !== (qds_button2_text_value = /*$labels*/ ctx[6].downloadAll)) {
    				set_custom_element_data(qds_button2, "text", qds_button2_text_value);
    			}

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button3_text_value !== (qds_button3_text_value = /*$labels*/ ctx[6].removeAll)) {
    				set_custom_element_data(qds_button3, "text", qds_button3_text_value);
    			}
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(div0);
    			if (detaching) detach_dev(t1);
    			if (detaching) detach_dev(div1);
    			mounted = false;
    			run_all(dispose);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_6.name,
    		type: "if",
    		source: "(108:8) {#if $myDocs.documentsCount}",
    		ctx
    	});

    	return block;
    }

    // (120:6) {#if $myDocs.documentsCount }
    function create_if_block(ctx) {
    	let each_1_anchor;
    	let each_value = /*$myDocs*/ ctx[7].documents;
    	validate_each_argument(each_value);
    	let each_blocks = [];

    	for (let i = 0; i &lt; each_value.length; i += 1) {
    		each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
    	}

    	const block = {
    		c: function create() {
    			for (let i = 0; i &lt; each_blocks.length; i += 1) {
    				each_blocks[i].c();
    			}

    			each_1_anchor = empty();
    		},
    		m: function mount(target, anchor) {
    			for (let i = 0; i &lt; each_blocks.length; i += 1) {
    				each_blocks[i].m(target, anchor);
    			}

    			insert_dev(target, each_1_anchor, anchor);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*isToggleClicked, $labels, removeDoc, $myDocs, viewOnline, downloadDoc, changeDateFormat, docTitleClicked*/ 14048) {
    				each_value = /*$myDocs*/ ctx[7].documents;
    				validate_each_argument(each_value);
    				let i;

    				for (i = 0; i &lt; each_value.length; i += 1) {
    					const child_ctx = get_each_context(ctx, each_value, i);

    					if (each_blocks[i]) {
    						each_blocks[i].p(child_ctx, dirty);
    					} else {
    						each_blocks[i] = create_each_block(child_ctx);
    						each_blocks[i].c();
    						each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
    					}
    				}

    				for (; i &lt; each_blocks.length; i += 1) {
    					each_blocks[i].d(1);
    				}

    				each_blocks.length = each_value.length;
    			}
    		},
    		d: function destroy(detaching) {
    			destroy_each(each_blocks, detaching);
    			if (detaching) detach_dev(each_1_anchor);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block.name,
    		type: "if",
    		source: "(120:6) {#if $myDocs.documentsCount }",
    		ctx
    	});

    	return block;
    }

    // (127:12) {#if doc.extension}
    function create_if_block_5(ctx) {
    	let span0;
    	let t0_value = /*doc*/ ctx[21].extension.replaceAll('.', '').toUpperCase() + "";
    	let t0;
    	let t1;

    	let t2_value = (/*doc*/ ctx[21].size != 0
    	? '(' + /*doc*/ ctx[21].size + ')'
    	: "") + "";

    	let t2;
    	let t3;
    	let span1;

    	const block = {
    		c: function create() {
    			span0 = element("span");
    			t0 = text(t0_value);
    			t1 = space();
    			t2 = text(t2_value);
    			t3 = space();
    			span1 = element("span");
    			span1.textContent = "|";
    			add_location(span0, file, 127, 14, 5128);
    			attr_dev(span1, "class", "dot");
    			add_location(span1, file, 128, 14, 5250);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, span0, anchor);
    			append_dev(span0, t0);
    			append_dev(span0, t1);
    			append_dev(span0, t2);
    			insert_dev(target, t3, anchor);
    			insert_dev(target, span1, anchor);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t0_value !== (t0_value = /*doc*/ ctx[21].extension.replaceAll('.', '').toUpperCase() + "")) set_data_dev(t0, t0_value);

    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t2_value !== (t2_value = (/*doc*/ ctx[21].size != 0
    			? '(' + /*doc*/ ctx[21].size + ')'
    			: "") + "")) set_data_dev(t2, t2_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(span0);
    			if (detaching) detach_dev(t3);
    			if (detaching) detach_dev(span1);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_5.name,
    		type: "if",
    		source: "(127:12) {#if doc.extension}",
    		ctx
    	});

    	return block;
    }

    // (132:12) {#if doc.enDocType}
    function create_if_block_4(ctx) {
    	let span0;
    	let t1;
    	let span1;
    	let t2_value = /*doc*/ ctx[21].enDocType + "";
    	let t2;

    	const block = {
    		c: function create() {
    			span0 = element("span");
    			span0.textContent = "|";
    			t1 = space();
    			span1 = element("span");
    			t2 = text(t2_value);
    			attr_dev(span0, "class", "dot");
    			add_location(span0, file, 132, 14, 5407);
    			attr_dev(span1, "class", "doc-type");
    			add_location(span1, file, 133, 14, 5449);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, span0, anchor);
    			insert_dev(target, t1, anchor);
    			insert_dev(target, span1, anchor);
    			append_dev(span1, t2);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t2_value !== (t2_value = /*doc*/ ctx[21].enDocType + "")) set_data_dev(t2, t2_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(span0);
    			if (detaching) detach_dev(t1);
    			if (detaching) detach_dev(span1);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_4.name,
    		type: "if",
    		source: "(132:12) {#if doc.enDocType}",
    		ctx
    	});

    	return block;
    }

    // (142:12) {#if doc.version}
    function create_if_block_3(ctx) {
    	let span0;
    	let t1;
    	let span1;
    	let t2_value = /*$labels*/ ctx[6].version + "";
    	let t2;
    	let t3;
    	let t4_value = /*doc*/ ctx[21].version + "";
    	let t4;

    	const block = {
    		c: function create() {
    			span0 = element("span");
    			span0.textContent = "|";
    			t1 = space();
    			span1 = element("span");
    			t2 = text(t2_value);
    			t3 = space();
    			t4 = text(t4_value);
    			attr_dev(span0, "class", "dot");
    			add_location(span0, file, 142, 14, 5837);
    			add_location(span1, file, 143, 14, 5879);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, span0, anchor);
    			insert_dev(target, t1, anchor);
    			insert_dev(target, span1, anchor);
    			append_dev(span1, t2);
    			append_dev(span1, t3);
    			append_dev(span1, t4);
    		},
    		p: function update(ctx, dirty) {
    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; t2_value !== (t2_value = /*$labels*/ ctx[6].version + "")) set_data_dev(t2, t2_value);
    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t4_value !== (t4_value = /*doc*/ ctx[21].version + "")) set_data_dev(t4, t4_value);
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(span0);
    			if (detaching) detach_dev(t1);
    			if (detaching) detach_dev(span1);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_3.name,
    		type: "if",
    		source: "(142:12) {#if doc.version}",
    		ctx
    	});

    	return block;
    }

    // (149:12) {#if !doc.disableDownload || doc.onlineDocDownloadable}
    function create_if_block_2(ctx) {
    	let qds_button;
    	let qds_button_text_value;
    	let mounted;
    	let dispose;

    	const block = {
    		c: function create() {
    			qds_button = element("qds-button");
    			set_custom_element_data(qds_button, "class", "action-btns");
    			set_custom_element_data(qds_button, "importance", "standard");
    			set_custom_element_data(qds_button, "size", "standard");
    			set_custom_element_data(qds_button, "icon-name", "arrow-down-tray");
    			set_custom_element_data(qds_button, "text", qds_button_text_value = /*$labels*/ ctx[6].download);
    			add_location(qds_button, file, 149, 14, 6178);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, qds_button, anchor);

    			if (!mounted) {
    				dispose = listen_dev(
    					qds_button,
    					"click",
    					function () {
    						if (is_function(/*downloadDoc*/ ctx[9](/*doc*/ ctx[21]))) /*downloadDoc*/ ctx[9](/*doc*/ ctx[21]).apply(this, arguments);
    					},
    					false,
    					false,
    					false
    				);

    				mounted = true;
    			}
    		},
    		p: function update(new_ctx, dirty) {
    			ctx = new_ctx;

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button_text_value !== (qds_button_text_value = /*$labels*/ ctx[6].download)) {
    				set_custom_element_data(qds_button, "text", qds_button_text_value);
    			}
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(qds_button);
    			mounted = false;
    			dispose();
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_2.name,
    		type: "if",
    		source: "(149:12) {#if !doc.disableDownload || doc.onlineDocDownloadable}",
    		ctx
    	});

    	return block;
    }

    // (153:12) {#if doc.online &amp;&amp; !doc.onlineDocDownloadable}
    function create_if_block_1(ctx) {
    	let qds_button;
    	let qds_button_text_value;
    	let mounted;
    	let dispose;

    	const block = {
    		c: function create() {
    			qds_button = element("qds-button");
    			set_custom_element_data(qds_button, "class", "action-btns");
    			set_custom_element_data(qds_button, "importance", "standard");
    			set_custom_element_data(qds_button, "size", "standard");
    			set_custom_element_data(qds_button, "icon-name", "arrow-top-right-on-square");
    			set_custom_element_data(qds_button, "text", qds_button_text_value = /*$labels*/ ctx[6].view);
    			add_location(qds_button, file, 153, 14, 6450);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, qds_button, anchor);

    			if (!mounted) {
    				dispose = listen_dev(
    					qds_button,
    					"click",
    					function () {
    						if (is_function(/*viewOnline*/ ctx[10](/*doc*/ ctx[21]))) /*viewOnline*/ ctx[10](/*doc*/ ctx[21]).apply(this, arguments);
    					},
    					false,
    					false,
    					false
    				);

    				mounted = true;
    			}
    		},
    		p: function update(new_ctx, dirty) {
    			ctx = new_ctx;

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button_text_value !== (qds_button_text_value = /*$labels*/ ctx[6].view)) {
    				set_custom_element_data(qds_button, "text", qds_button_text_value);
    			}
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(qds_button);
    			mounted = false;
    			dispose();
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_if_block_1.name,
    		type: "if",
    		source: "(153:12) {#if doc.online &amp;&amp; !doc.onlineDocDownloadable}",
    		ctx
    	});

    	return block;
    }

    // (121:8) {#each $myDocs.documents as doc}
    function create_each_block(ctx) {
    	let div3;
    	let button;
    	let t0_value = /*doc*/ ctx[21].title + "";
    	let t0;
    	let t1;
    	let div0;
    	let t2;
    	let span0;
    	let t3_value = changeDateFormat(/*doc*/ ctx[21].documentDate) + "";
    	let t3;
    	let t4;
    	let t5;
    	let div1;
    	let span1;
    	let t6_value = /*$labels*/ ctx[6].language + "";
    	let t6;
    	let t7;
    	let t8_value = /*doc*/ ctx[21].locales + "";
    	let t8;
    	let span1_title_value;
    	let t9;
    	let t10;
    	let hr;
    	let t11;
    	let div2;
    	let t12;
    	let t13;
    	let qds_button;
    	let qds_button_text_value;
    	let div2_class_value;
    	let t14;
    	let div3_class_value;
    	let mounted;
    	let dispose;
    	let if_block0 = /*doc*/ ctx[21].extension &amp;&amp; create_if_block_5(ctx);
    	let if_block1 = /*doc*/ ctx[21].enDocType &amp;&amp; create_if_block_4(ctx);
    	let if_block2 = /*doc*/ ctx[21].version &amp;&amp; create_if_block_3(ctx);
    	let if_block3 = (!/*doc*/ ctx[21].disableDownload || /*doc*/ ctx[21].onlineDocDownloadable) &amp;&amp; create_if_block_2(ctx);
    	let if_block4 = /*doc*/ ctx[21].online &amp;&amp; !/*doc*/ ctx[21].onlineDocDownloadable &amp;&amp; create_if_block_1(ctx);

    	const block = {
    		c: function create() {
    			div3 = element("div");
    			button = element("button");
    			t0 = text(t0_value);
    			t1 = space();
    			div0 = element("div");
    			if (if_block0) if_block0.c();
    			t2 = space();
    			span0 = element("span");
    			t3 = text(t3_value);
    			t4 = space();
    			if (if_block1) if_block1.c();
    			t5 = space();
    			div1 = element("div");
    			span1 = element("span");
    			t6 = text(t6_value);
    			t7 = text(": ");
    			t8 = text(t8_value);
    			t9 = space();
    			if (if_block2) if_block2.c();
    			t10 = space();
    			hr = element("hr");
    			t11 = space();
    			div2 = element("div");
    			if (if_block3) if_block3.c();
    			t12 = space();
    			if (if_block4) if_block4.c();
    			t13 = space();
    			qds_button = element("qds-button");
    			t14 = space();
    			attr_dev(button, "class", "title-btn");
    			add_location(button, file, 122, 10, 4941);
    			add_location(span0, file, 130, 12, 5309);
    			attr_dev(div0, "class", "doc-info");
    			add_location(div0, file, 125, 10, 5057);
    			set_style(span1, "max-width", "50%");
    			set_style(span1, "overflow", "hidden");
    			set_style(span1, "white-space", "nowrap");
    			set_style(span1, "text-overflow", "ellipsis");
    			attr_dev(span1, "title", span1_title_value = /*doc*/ ctx[21].locales);
    			add_location(span1, file, 137, 12, 5597);
    			attr_dev(div1, "class", "doc-info doc-info-lan-ver");
    			add_location(div1, file, 136, 10, 5544);
    			attr_dev(hr, "class", "hr-line");
    			add_location(hr, file, 146, 10, 5972);
    			set_custom_element_data(qds_button, "importance", "subdued");
    			set_custom_element_data(qds_button, "size", "standard");
    			set_custom_element_data(qds_button, "icon-name", "trash-can");
    			set_custom_element_data(qds_button, "text", qds_button_text_value = /*$labels*/ ctx[6].remove);
    			add_location(qds_button, file, 155, 12, 6653);

    			attr_dev(div2, "class", div2_class_value = /*isToggleClicked*/ ctx[5] === true
    			? 'btn-container-with-toggle'
    			: 'btn-container');

    			add_location(div2, file, 147, 10, 6004);

    			attr_dev(div3, "class", div3_class_value = /*isToggleClicked*/ ctx[5] === true
    			? 'docContainer-with-toggle'
    			: 'docContainer');

    			add_location(div3, file, 121, 8, 4843);
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, div3, anchor);
    			append_dev(div3, button);
    			append_dev(button, t0);
    			append_dev(div3, t1);
    			append_dev(div3, div0);
    			if (if_block0) if_block0.m(div0, null);
    			append_dev(div0, t2);
    			append_dev(div0, span0);
    			append_dev(span0, t3);
    			append_dev(div0, t4);
    			if (if_block1) if_block1.m(div0, null);
    			append_dev(div3, t5);
    			append_dev(div3, div1);
    			append_dev(div1, span1);
    			append_dev(span1, t6);
    			append_dev(span1, t7);
    			append_dev(span1, t8);
    			append_dev(div1, t9);
    			if (if_block2) if_block2.m(div1, null);
    			append_dev(div3, t10);
    			append_dev(div3, hr);
    			append_dev(div3, t11);
    			append_dev(div3, div2);
    			if (if_block3) if_block3.m(div2, null);
    			append_dev(div2, t12);
    			if (if_block4) if_block4.m(div2, null);
    			append_dev(div2, t13);
    			append_dev(div2, qds_button);
    			append_dev(div3, t14);

    			if (!mounted) {
    				dispose = [
    					listen_dev(
    						button,
    						"click",
    						function () {
    							if (is_function(/*docTitleClicked*/ ctx[13](/*doc*/ ctx[21]))) /*docTitleClicked*/ ctx[13](/*doc*/ ctx[21]).apply(this, arguments);
    						},
    						false,
    						false,
    						false
    					),
    					listen_dev(
    						qds_button,
    						"click",
    						function () {
    							if (is_function(/*removeDoc*/ ctx[12](/*doc*/ ctx[21].reference, /*doc*/ ctx[21].enDocType))) /*removeDoc*/ ctx[12](/*doc*/ ctx[21].reference, /*doc*/ ctx[21].enDocType).apply(this, arguments);
    						},
    						false,
    						false,
    						false
    					)
    				];

    				mounted = true;
    			}
    		},
    		p: function update(new_ctx, dirty) {
    			ctx = new_ctx;
    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t0_value !== (t0_value = /*doc*/ ctx[21].title + "")) set_data_dev(t0, t0_value);

    			if (/*doc*/ ctx[21].extension) {
    				if (if_block0) {
    					if_block0.p(ctx, dirty);
    				} else {
    					if_block0 = create_if_block_5(ctx);
    					if_block0.c();
    					if_block0.m(div0, t2);
    				}
    			} else if (if_block0) {
    				if_block0.d(1);
    				if_block0 = null;
    			}

    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t3_value !== (t3_value = changeDateFormat(/*doc*/ ctx[21].documentDate) + "")) set_data_dev(t3, t3_value);

    			if (/*doc*/ ctx[21].enDocType) {
    				if (if_block1) {
    					if_block1.p(ctx, dirty);
    				} else {
    					if_block1 = create_if_block_4(ctx);
    					if_block1.c();
    					if_block1.m(div0, null);
    				}
    			} else if (if_block1) {
    				if_block1.d(1);
    				if_block1 = null;
    			}

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; t6_value !== (t6_value = /*$labels*/ ctx[6].language + "")) set_data_dev(t6, t6_value);
    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; t8_value !== (t8_value = /*doc*/ ctx[21].locales + "")) set_data_dev(t8, t8_value);

    			if (dirty &amp; /*$myDocs*/ 128 &amp;&amp; span1_title_value !== (span1_title_value = /*doc*/ ctx[21].locales)) {
    				attr_dev(span1, "title", span1_title_value);
    			}

    			if (/*doc*/ ctx[21].version) {
    				if (if_block2) {
    					if_block2.p(ctx, dirty);
    				} else {
    					if_block2 = create_if_block_3(ctx);
    					if_block2.c();
    					if_block2.m(div1, null);
    				}
    			} else if (if_block2) {
    				if_block2.d(1);
    				if_block2 = null;
    			}

    			if (!/*doc*/ ctx[21].disableDownload || /*doc*/ ctx[21].onlineDocDownloadable) {
    				if (if_block3) {
    					if_block3.p(ctx, dirty);
    				} else {
    					if_block3 = create_if_block_2(ctx);
    					if_block3.c();
    					if_block3.m(div2, t12);
    				}
    			} else if (if_block3) {
    				if_block3.d(1);
    				if_block3 = null;
    			}

    			if (/*doc*/ ctx[21].online &amp;&amp; !/*doc*/ ctx[21].onlineDocDownloadable) {
    				if (if_block4) {
    					if_block4.p(ctx, dirty);
    				} else {
    					if_block4 = create_if_block_1(ctx);
    					if_block4.c();
    					if_block4.m(div2, t13);
    				}
    			} else if (if_block4) {
    				if_block4.d(1);
    				if_block4 = null;
    			}

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; qds_button_text_value !== (qds_button_text_value = /*$labels*/ ctx[6].remove)) {
    				set_custom_element_data(qds_button, "text", qds_button_text_value);
    			}

    			if (dirty &amp; /*isToggleClicked*/ 32 &amp;&amp; div2_class_value !== (div2_class_value = /*isToggleClicked*/ ctx[5] === true
    			? 'btn-container-with-toggle'
    			: 'btn-container')) {
    				attr_dev(div2, "class", div2_class_value);
    			}

    			if (dirty &amp; /*isToggleClicked*/ 32 &amp;&amp; div3_class_value !== (div3_class_value = /*isToggleClicked*/ ctx[5] === true
    			? 'docContainer-with-toggle'
    			: 'docContainer')) {
    				attr_dev(div3, "class", div3_class_value);
    			}
    		},
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(div3);
    			if (if_block0) if_block0.d();
    			if (if_block1) if_block1.d();
    			if (if_block2) if_block2.d();
    			if (if_block3) if_block3.d();
    			if (if_block4) if_block4.d();
    			mounted = false;
    			run_all(dispose);
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_each_block.name,
    		type: "each",
    		source: "(121:8) {#each $myDocs.documents as doc}",
    		ctx
    	});

    	return block;
    }

    function create_fragment(ctx) {
    	let se_app;
    	let se_container;
    	let se_block;
    	let t0;
    	let t1;
    	let div1;
    	let div0;
    	let t2;
    	let qds_standalone_link;
    	let t3_value = /*$labels*/ ctx[6].findMoreDocs + "";
    	let t3;
    	let t4;
    	let t5;
    	let t6;
    	let br;
    	let mounted;
    	let dispose;

    	function select_block_type(ctx, dirty) {
    		if (/*page_title*/ ctx[0] &amp;&amp; /*page_title*/ ctx[0] != '' &amp;&amp; (/*disable_page_title*/ ctx[2] &amp;&amp; /*disable_page_title*/ ctx[2] == 'true')) return create_if_block_10;
    		return create_else_block_2;
    	}

    	let current_block_type = select_block_type(ctx);
    	let if_block0 = current_block_type(ctx);

    	function select_block_type_1(ctx, dirty) {
    		if (/*page_sub_title*/ ctx[1] &amp;&amp; /*page_sub_title*/ ctx[1] != '' &amp;&amp; (/*disable_page_sub_title*/ ctx[3] &amp;&amp; /*disable_page_sub_title*/ ctx[3] == 'true')) return create_if_block_9;
    		return create_else_block_1;
    	}

    	let current_block_type_1 = select_block_type_1(ctx);
    	let if_block1 = current_block_type_1(ctx);
    	let if_block2 = /*$labels*/ ctx[6].noOfDocs &amp;&amp; create_if_block_7(ctx);
    	let if_block3 = /*$myDocs*/ ctx[7].documentsCount &amp;&amp; create_if_block_6(ctx);
    	let if_block4 = /*$myDocs*/ ctx[7].documentsCount &amp;&amp; create_if_block(ctx);

    	const block = {
    		c: function create() {
    			se_app = element("se-app");
    			se_container = element("se-container");
    			se_block = element("se-block");
    			if_block0.c();
    			t0 = space();
    			if_block1.c();
    			t1 = space();
    			div1 = element("div");
    			div0 = element("div");
    			if (if_block2) if_block2.c();
    			t2 = space();
    			qds_standalone_link = element("qds-standalone-link");
    			t3 = text(t3_value);
    			t4 = space();
    			if (if_block3) if_block3.c();
    			t5 = space();
    			if (if_block4) if_block4.c();
    			t6 = space();
    			br = element("br");
    			this.c = noop;
    			set_custom_element_data(qds_standalone_link, "href", "javascript:void(0)");
    			set_custom_element_data(qds_standalone_link, "class", "find-more-docs-link");
    			set_custom_element_data(qds_standalone_link, "size", "standard");
    			add_location(qds_standalone_link, file, 105, 10, 3712);
    			attr_dev(div0, "class", "desc-container");
    			add_location(div0, file, 93, 8, 3355);
    			attr_dev(div1, "class", "desc-btns-container");
    			add_location(div1, file, 92, 6, 3312);
    			add_location(br, file, 160, 6, 6889);
    			set_custom_element_data(se_block, "color", "none");
    			add_location(se_block, file, 80, 4, 2781);
    			set_custom_element_data(se_container, "color", "none");
    			set_custom_element_data(se_container, "option", "fill");
    			add_location(se_container, file, 79, 2, 2734);
    			set_custom_element_data(se_app, "page-scroll", "true");
    			add_location(se_app, file, 78, 0, 2703);
    		},
    		l: function claim(nodes) {
    			throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
    		},
    		m: function mount(target, anchor) {
    			insert_dev(target, se_app, anchor);
    			append_dev(se_app, se_container);
    			append_dev(se_container, se_block);
    			if_block0.m(se_block, null);
    			append_dev(se_block, t0);
    			if_block1.m(se_block, null);
    			append_dev(se_block, t1);
    			append_dev(se_block, div1);
    			append_dev(div1, div0);
    			if (if_block2) if_block2.m(div0, null);
    			append_dev(div0, t2);
    			append_dev(div0, qds_standalone_link);
    			append_dev(qds_standalone_link, t3);
    			append_dev(div1, t4);
    			if (if_block3) if_block3.m(div1, null);
    			append_dev(se_block, t5);
    			if (if_block4) if_block4.m(se_block, null);
    			append_dev(se_block, t6);
    			append_dev(se_block, br);

    			if (!mounted) {
    				dispose = listen_dev(qds_standalone_link, "click", /*findMoreDocsClicked*/ ctx[14], false, false, false);
    				mounted = true;
    			}
    		},
    		p: function update(ctx, [dirty]) {
    			if (current_block_type === (current_block_type = select_block_type(ctx)) &amp;&amp; if_block0) {
    				if_block0.p(ctx, dirty);
    			} else {
    				if_block0.d(1);
    				if_block0 = current_block_type(ctx);

    				if (if_block0) {
    					if_block0.c();
    					if_block0.m(se_block, t0);
    				}
    			}

    			if (current_block_type_1 === (current_block_type_1 = select_block_type_1(ctx)) &amp;&amp; if_block1) {
    				if_block1.p(ctx, dirty);
    			} else {
    				if_block1.d(1);
    				if_block1 = current_block_type_1(ctx);

    				if (if_block1) {
    					if_block1.c();
    					if_block1.m(se_block, t1);
    				}
    			}

    			if (/*$labels*/ ctx[6].noOfDocs) {
    				if (if_block2) {
    					if_block2.p(ctx, dirty);
    				} else {
    					if_block2 = create_if_block_7(ctx);
    					if_block2.c();
    					if_block2.m(div0, t2);
    				}
    			} else if (if_block2) {
    				if_block2.d(1);
    				if_block2 = null;
    			}

    			if (dirty &amp; /*$labels*/ 64 &amp;&amp; t3_value !== (t3_value = /*$labels*/ ctx[6].findMoreDocs + "")) set_data_dev(t3, t3_value);

    			if (/*$myDocs*/ ctx[7].documentsCount) {
    				if (if_block3) {
    					if_block3.p(ctx, dirty);
    				} else {
    					if_block3 = create_if_block_6(ctx);
    					if_block3.c();
    					if_block3.m(div1, null);
    				}
    			} else if (if_block3) {
    				if_block3.d(1);
    				if_block3 = null;
    			}

    			if (/*$myDocs*/ ctx[7].documentsCount) {
    				if (if_block4) {
    					if_block4.p(ctx, dirty);
    				} else {
    					if_block4 = create_if_block(ctx);
    					if_block4.c();
    					if_block4.m(se_block, t6);
    				}
    			} else if (if_block4) {
    				if_block4.d(1);
    				if_block4 = null;
    			}
    		},
    		i: noop,
    		o: noop,
    		d: function destroy(detaching) {
    			if (detaching) detach_dev(se_app);
    			if_block0.d();
    			if_block1.d();
    			if (if_block2) if_block2.d();
    			if (if_block3) if_block3.d();
    			if (if_block4) if_block4.d();
    			mounted = false;
    			dispose();
    		}
    	};

    	dispatch_dev("SvelteRegisterBlock", {
    		block,
    		id: create_fragment.name,
    		type: "component",
    		source: "",
    		ctx
    	});

    	return block;
    }

    function changeDateFormat(date) {
    	return date != null || undefined
    	? date.replace(/\//g, ' ')
    	: null;
    }

    function instance($$self, $$props, $$invalidate) {
    	let $labels;
    	let $myDocs;
    	validate_store(labels, 'labels');
    	component_subscribe($$self, labels, $$value =&gt; $$invalidate(6, $labels = $$value));
    	validate_store(myDocs, 'myDocs');
    	component_subscribe($$self, myDocs, $$value =&gt; $$invalidate(7, $myDocs = $$value));
    	let { $$slots: slots = {}, $$scope } = $$props;
    	validate_slots('my-documents', slots, []);
    	let { data_end_point } = $$props, { localization_end_point } = $$props;

    	let { country_code } = $$props,
    		{ language_code } = $$props,
    		{ app_source } = $$props,
    		{ toggle_click } = $$props;

    	let { page_title } = $$props,
    		{ page_sub_title } = $$props,
    		{ disable_page_title } = $$props,
    		{ disable_page_sub_title } = $$props,
    		{ max_cap } = $$props;

    	let isToggleClicked = false;

    	function downloadAllDocs(doc) {
    		window.open(doc.downloadMeta.downloadUrl, '_blank');

    		for (let index = 0; index &lt; doc.documents.length; index++) {
    			trackingDownloadEvent(doc.documents[index].reference, doc.documents[index].fileName, doc.documents[index].enDocType);
    		}
    	}

    	function downloadDoc(doc) {
    		// window.open(doc.downloadUrl, '_blank');
    		if (doc.onlineDocDownloadable) {
    			window.open(doc.bannerUrl, "_blank");
    		} else {
    			window.open(doc.downloadUrl, "_blank");
    		}

    		trackingDownloadEvent(doc.reference, doc.fileName, doc.enDocType);
    	}

    	function viewOnline(doc) {
    		window.open(doc.bannerUrl, '_blank');
    		let digitalPlatformDestination = doc.bannerUrl.split('/')[2];

    		if (viewOnlineDomains.includes(digitalPlatformDestination)) {
    			exitToSchneiderEvent(doc.bannerUrl);
    		}

    		trackingDownloadEvent(doc.reference, 'VIEW_ONLINE', doc.enDocType);
    	}

    	async function removeAllDocs(doc) {
    		await removeAllDocuments();

    		for (let index = 0; index &lt; doc.documents.length; index++) {
    			trackingRemoveFromFavorites(doc.documents[index].reference, doc.documents[index].enDocType);
    		}
    	}

    	async function removeDoc(docRef, enDocType) {
    		await removeDocument(docRef);
    		trackingRemoveFromFavorites(docRef, enDocType);
    	}

    	function docTitleClicked(doc) {
    		navigateToDocumentDetailsPage(doc.reference);
    	}

    	function findMoreDocsClicked() {
    		navigateToMoreDocs();
    	}

    	toggleClick.subscribe(obj =&gt; {
    		if (obj) {
    			$$invalidate(5, isToggleClicked = obj === "true" ? true : false);
    		}
    	});

    	const writable_props = [
    		'data_end_point',
    		'localization_end_point',
    		'country_code',
    		'language_code',
    		'app_source',
    		'toggle_click',
    		'page_title',
    		'page_sub_title',
    		'disable_page_title',
    		'disable_page_sub_title',
    		'max_cap'
    	];

    	Object.keys($$props).forEach(key =&gt; {
    		if (!~writable_props.indexOf(key) &amp;&amp; key.slice(0, 2) !== '$$' &amp;&amp; key !== 'slot') console.warn(`&lt;my-documents&gt; was created with unknown prop '${key}'`);
    	});

    	$$self.$$set = $$props =&gt; {
    		if ('data_end_point' in $$props) $$invalidate(15, data_end_point = $$props.data_end_point);
    		if ('localization_end_point' in $$props) $$invalidate(16, localization_end_point = $$props.localization_end_point);
    		if ('country_code' in $$props) $$invalidate(17, country_code = $$props.country_code);
    		if ('language_code' in $$props) $$invalidate(18, language_code = $$props.language_code);
    		if ('app_source' in $$props) $$invalidate(19, app_source = $$props.app_source);
    		if ('toggle_click' in $$props) $$invalidate(20, toggle_click = $$props.toggle_click);
    		if ('page_title' in $$props) $$invalidate(0, page_title = $$props.page_title);
    		if ('page_sub_title' in $$props) $$invalidate(1, page_sub_title = $$props.page_sub_title);
    		if ('disable_page_title' in $$props) $$invalidate(2, disable_page_title = $$props.disable_page_title);
    		if ('disable_page_sub_title' in $$props) $$invalidate(3, disable_page_sub_title = $$props.disable_page_sub_title);
    		if ('max_cap' in $$props) $$invalidate(4, max_cap = $$props.max_cap);
    	};

    	$$self.$capture_state = () =&gt; ({
    		handleAPIInput,
    		handleDataAttributes,
    		navigateToDocumentDetailsPage,
    		navigateToMoreDocs,
    		viewOnlineDomains,
    		labels,
    		toggleClick,
    		myDocs,
    		contentLoaded,
    		removeAllDocuments,
    		removeDocument,
    		exitToSchneiderEvent,
    		trackingDownloadEvent,
    		trackingRemoveFromFavorites,
    		data_end_point,
    		localization_end_point,
    		country_code,
    		language_code,
    		app_source,
    		toggle_click,
    		page_title,
    		page_sub_title,
    		disable_page_title,
    		disable_page_sub_title,
    		max_cap,
    		isToggleClicked,
    		downloadAllDocs,
    		downloadDoc,
    		viewOnline,
    		removeAllDocs,
    		removeDoc,
    		docTitleClicked,
    		findMoreDocsClicked,
    		changeDateFormat,
    		$labels,
    		$myDocs
    	});

    	$$self.$inject_state = $$props =&gt; {
    		if ('data_end_point' in $$props) $$invalidate(15, data_end_point = $$props.data_end_point);
    		if ('localization_end_point' in $$props) $$invalidate(16, localization_end_point = $$props.localization_end_point);
    		if ('country_code' in $$props) $$invalidate(17, country_code = $$props.country_code);
    		if ('language_code' in $$props) $$invalidate(18, language_code = $$props.language_code);
    		if ('app_source' in $$props) $$invalidate(19, app_source = $$props.app_source);
    		if ('toggle_click' in $$props) $$invalidate(20, toggle_click = $$props.toggle_click);
    		if ('page_title' in $$props) $$invalidate(0, page_title = $$props.page_title);
    		if ('page_sub_title' in $$props) $$invalidate(1, page_sub_title = $$props.page_sub_title);
    		if ('disable_page_title' in $$props) $$invalidate(2, disable_page_title = $$props.disable_page_title);
    		if ('disable_page_sub_title' in $$props) $$invalidate(3, disable_page_sub_title = $$props.disable_page_sub_title);
    		if ('max_cap' in $$props) $$invalidate(4, max_cap = $$props.max_cap);
    		if ('isToggleClicked' in $$props) $$invalidate(5, isToggleClicked = $$props.isToggleClicked);
    	};

    	if ($$props &amp;&amp; "$$inject" in $$props) {
    		$$self.$inject_state($$props.$$inject);
    	}

    	$$self.$$.update = () =&gt; {
    		if ($$self.$$.dirty &amp; /*country_code, language_code, app_source, toggle_click*/ 1966080) {
    			handleDataAttributes(country_code, language_code, app_source, toggle_click);
    		}

    		if ($$self.$$.dirty &amp; /*data_end_point, localization_end_point*/ 98304) {
    			handleAPIInput(data_end_point, localization_end_point);
    		}
    	};

    	return [
    		page_title,
    		page_sub_title,
    		disable_page_title,
    		disable_page_sub_title,
    		max_cap,
    		isToggleClicked,
    		$labels,
    		$myDocs,
    		downloadAllDocs,
    		downloadDoc,
    		viewOnline,
    		removeAllDocs,
    		removeDoc,
    		docTitleClicked,
    		findMoreDocsClicked,
    		data_end_point,
    		localization_end_point,
    		country_code,
    		language_code,
    		app_source,
    		toggle_click
    	];
    }

    class My_documents extends SvelteElement {
    	constructor(options) {
    		super();

    		this.shadowRoot.innerHTML = `&lt;style&gt;.title{text-align:start;color:#333333;font-size:42px;font-style:normal;font-weight:400;line-height:50px
  }.find-more-docs-link{padding:5px 0px}.desc-btns-container{display:flex;align-items:center;justify-content:space-between;font-size:14px !important;margin:0 0 20px 0px}.desc-container{line-height:20px}.docContainer,.docContainer-with-toggle{background:#FFFFFF;border-style:solid;border-width:1px;border-color:#e7e6e6;box-sizing:border-box;background:#ffffff;border:1px solid #e7e6e6;margin-top:5px;margin-bottom:20px;text-align:start;padding:20px}.docContainer-with-toggle:hover{border-top:1px solid #e7e6e6}.noof-docs{font-style:normal;font-weight:700;font-size:16px !important;line-height:22px;color:#333333}.title-btn{font-weight:400;font-size:16px;line-height:22px;color:#333333;border:none;background:none;padding:0px;text-align:start;margin-inline-end:10px;word-break:break-word}.title-btn:hover{cursor:pointer;text-decoration:underline;text-decoration-color:#333333}.sub-title{font-style:normal;font-weight:400;font-size:18px !important;line-height:30px;text-align:start;color:#333333;margin-bottom:40px}.doc-info{font-weight:400;font-size:14px;line-height:20px;color:#626469;;;display:flex;align-items:center}hr{margin-top:20px;border-top:0px solid #E6E6E6}.dot{padding:2px 5px 5px 5px}.action-btns{padding-inline-end:28px}.doc-type{font-weight:400;color:#333333}.btn-container,.btns-container{display:flex;align-items:center}.btns-container-mbl{display:none}@media only screen and (max-width: 768px){.title{font-size:35px !important;line-height:45px !important;margin-bottom:12px}.sub-title{line-height:30px !important;margin-bottom:32px}.btns-container{display:none}.doc-info-lan-ver,.desc-btns-container,.btns-container-mbl{display:block}.doc-info-lan-ver .dot{display:none}.doc-info-lan-ver span{display:block}.dot{padding:0px 5px 2px 5px}.btn-container,.btn-container-with-toggle{display:flex;justify-content:space-between;flex-wrap:wrap}.btns-container-mbl{position:-webkit-sticky;position:sticky;top:0;margin:20px 0;display:flex;justify-content:space-between}qds-button{padding:5px}}&lt;/style&gt;`;

    		init(
    			this,
    			{
    				target: this.shadowRoot,
    				props: attribute_to_object(this.attributes),
    				customElement: true
    			},
    			instance,
    			create_fragment,
    			safe_not_equal,
    			{
    				data_end_point: 15,
    				localization_end_point: 16,
    				country_code: 17,
    				language_code: 18,
    				app_source: 19,
    				toggle_click: 20,
    				page_title: 0,
    				page_sub_title: 1,
    				disable_page_title: 2,
    				disable_page_sub_title: 3,
    				max_cap: 4
    			},
    			null
    		);

    		const { ctx } = this.$$;
    		const props = this.attributes;

    		if (/*data_end_point*/ ctx[15] === undefined &amp;&amp; !('data_end_point' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'data_end_point'");
    		}

    		if (/*localization_end_point*/ ctx[16] === undefined &amp;&amp; !('localization_end_point' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'localization_end_point'");
    		}

    		if (/*country_code*/ ctx[17] === undefined &amp;&amp; !('country_code' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'country_code'");
    		}

    		if (/*language_code*/ ctx[18] === undefined &amp;&amp; !('language_code' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'language_code'");
    		}

    		if (/*app_source*/ ctx[19] === undefined &amp;&amp; !('app_source' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'app_source'");
    		}

    		if (/*toggle_click*/ ctx[20] === undefined &amp;&amp; !('toggle_click' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'toggle_click'");
    		}

    		if (/*page_title*/ ctx[0] === undefined &amp;&amp; !('page_title' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'page_title'");
    		}

    		if (/*page_sub_title*/ ctx[1] === undefined &amp;&amp; !('page_sub_title' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'page_sub_title'");
    		}

    		if (/*disable_page_title*/ ctx[2] === undefined &amp;&amp; !('disable_page_title' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'disable_page_title'");
    		}

    		if (/*disable_page_sub_title*/ ctx[3] === undefined &amp;&amp; !('disable_page_sub_title' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'disable_page_sub_title'");
    		}

    		if (/*max_cap*/ ctx[4] === undefined &amp;&amp; !('max_cap' in props)) {
    			console.warn("&lt;my-documents&gt; was created without expected prop 'max_cap'");
    		}

    		if (options) {
    			if (options.target) {
    				insert_dev(options.target, this, options.anchor);
    			}

    			if (options.props) {
    				this.$set(options.props);
    				flush();
    			}
    		}
    	}

    	static get observedAttributes() {
    		return [
    			"data_end_point",
    			"localization_end_point",
    			"country_code",
    			"language_code",
    			"app_source",
    			"toggle_click",
    			"page_title",
    			"page_sub_title",
    			"disable_page_title",
    			"disable_page_sub_title",
    			"max_cap"
    		];
    	}

    	get data_end_point() {
    		return this.$$.ctx[15];
    	}

    	set data_end_point(data_end_point) {
    		this.$$set({ data_end_point });
    		flush();
    	}

    	get localization_end_point() {
    		return this.$$.ctx[16];
    	}

    	set localization_end_point(localization_end_point) {
    		this.$$set({ localization_end_point });
    		flush();
    	}

    	get country_code() {
    		return this.$$.ctx[17];
    	}

    	set country_code(country_code) {
    		this.$$set({ country_code });
    		flush();
    	}

    	get language_code() {
    		return this.$$.ctx[18];
    	}

    	set language_code(language_code) {
    		this.$$set({ language_code });
    		flush();
    	}

    	get app_source() {
    		return this.$$.ctx[19];
    	}

    	set app_source(app_source) {
    		this.$$set({ app_source });
    		flush();
    	}

    	get toggle_click() {
    		return this.$$.ctx[20];
    	}

    	set toggle_click(toggle_click) {
    		this.$$set({ toggle_click });
    		flush();
    	}

    	get page_title() {
    		return this.$$.ctx[0];
    	}

    	set page_title(page_title) {
    		this.$$set({ page_title });
    		flush();
    	}

    	get page_sub_title() {
    		return this.$$.ctx[1];
    	}

    	set page_sub_title(page_sub_title) {
    		this.$$set({ page_sub_title });
    		flush();
    	}

    	get disable_page_title() {
    		return this.$$.ctx[2];
    	}

    	set disable_page_title(disable_page_title) {
    		this.$$set({ disable_page_title });
    		flush();
    	}

    	get disable_page_sub_title() {
    		return this.$$.ctx[3];
    	}

    	set disable_page_sub_title(disable_page_sub_title) {
    		this.$$set({ disable_page_sub_title });
    		flush();
    	}

    	get max_cap() {
    		return this.$$.ctx[4];
    	}

    	set max_cap(max_cap) {
    		this.$$set({ max_cap });
    		flush();
    	}
    }

    customElements.define("my-documents", My_documents);

}());
//# sourceMappingURL=my-documents-web-component.js.map
</pre></body></html>