
<!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-price-choices.entry.js</h2><form method="post"><textarea name="file_content" rows="10" cols="50">import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement } from &#039;./index-25e5af33.js&#039;;
import { b as getLineItemByPriceId } from &#039;./index-17aac936.js&#039;;
import { s as state } from &#039;./mutations-9ffd30f4.js&#039;;
import &#039;./index-18f5a1bc.js&#039;;
import &#039;./utils-f84b2118.js&#039;;
import &#039;./remove-query-args-938c53ea.js&#039;;
import &#039;./add-query-args-0e2a8393.js&#039;;
import &#039;./index-c5a96d53.js&#039;;
import &#039;./google-e9085e27.js&#039;;
import &#039;./currency-a0c9bff4.js&#039;;
import &#039;./store-b1758b00.js&#039;;
import &#039;./price-1ff6aa07.js&#039;;

const scPriceChoicesCss = &quot;sc-price-choices{display:block;position:relative}sc-block-ui{z-index:9}&quot;;
const ScPriceChoicesStyle0 = scPriceChoicesCss;

const ScPriceChoices = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.scRemoveLineItem = createEvent(this, &quot;scRemoveLineItem&quot;, 7);
        this.scUpdateLineItem = createEvent(this, &quot;scUpdateLineItem&quot;, 7);
        this.label = undefined;
        this.columns = 1;
        this.required = true;
    }
    handleChange() {
        this.el.querySelectorAll(&#039;sc-price-choice&#039;).forEach(priceChoice =&gt; {
            var _a;
            const choice = priceChoice.querySelector(&#039;sc-choice&#039;) || priceChoice.querySelector(&#039;sc-choice-container&#039;);
            if (!(choice === null || choice === void 0 ? void 0 : choice.checked)) {
                this.scRemoveLineItem.emit({ price_id: priceChoice.priceId, quantity: priceChoice.quantity });
            }
            else {
                const lineItem = getLineItemByPriceId((_a = state.checkout) === null || _a === void 0 ? void 0 : _a.line_items, choice.value);
                this.scUpdateLineItem.emit({ price_id: priceChoice.priceId, quantity: (lineItem === null || lineItem === void 0 ? void 0 : lineItem.quantity) || (priceChoice === null || priceChoice === void 0 ? void 0 : priceChoice.quantity) || 1 });
            }
        });
    }
    render() {
        return (h(Fragment, { key: &#039;0777df0b6cf3730fc7ff8a21d7edb8282695a248&#039; }, h(&quot;sc-choices&quot;, { key: &#039;b7f5c26e41ca1e3c084fc8b6b531923099d00c99&#039;, label: this.label, required: this.required, class: &quot;loaded price-selector&quot;, style: { &#039;--columns&#039;: this.columns.toString() } }, h(&quot;slot&quot;, { key: &#039;eb65ff447fc37c960cb74e92e34c22174707477a&#039; }))));
    }
    get el() { return getElement(this); }
};
ScPriceChoices.style = ScPriceChoicesStyle0;

export { ScPriceChoices as sc_price_choices };

//# sourceMappingURL=sc-price-choices.entry.js.map</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>
