first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,63 @@
@font-face {
font-family: 'flexible-shipping';
src: url('../fonts/flexible-shipping.eot?imgwjn');
src: url('../fonts/flexible-shipping.eot?imgwjn#iefix') format('embedded-opentype'),
url('../fonts/flexible-shipping.ttf?imgwjn') format('truetype'),
url('../fonts/flexible-shipping.woff?imgwjn') format('woff'),
url('../fonts/flexible-shipping.svg?imgwjn#flexible-shipping') format('svg');
font-weight: normal;
font-style: normal;
}
div.shipping-status a.icon-status {
font-family: 'flexible-shipping' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
overflow: hidden;
text-indent: -9999px;
height: 2em!important;
width: 2em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
div.shipping-status a.icon-status:before {
font-size: 20px;
float: left;
text-align: center;
background: transparent none;
margin: 0 0 0 5px;
text-indent: 0;
}
.icon-plus-circle:before, .icon-status-new:before {
color: #ffba00;
background: transparent none;
text-indent: 0;
content: "\f055";
}
.icon-check-circle:before, .icon-status-confirmed:before {
color: #2ea2cc;
content: "\f058";
}
.icon-exclamation-circle:before, .icon-status-error:before {
color: #d0c21f;
content: "\f06a";
}
.icon-truck:before {
content: "\f0d1";
}
.icon-pause-circle:before, .icon-status-created:before {
color: #999;
content: "\f28b";
}
.icon-check-circle:before, .icon-status-manifest:before {
color: #00aE11;
content: "\f058";
}

View File

@@ -0,0 +1 @@
@font-face{font-family:'flexible-shipping';src:url(../fonts/flexible-shipping.eot?imgwjn);src:url('../fonts/flexible-shipping.eot?imgwjn#iefix') format('embedded-opentype'),url(../fonts/flexible-shipping.ttf?imgwjn) format('truetype'),url(../fonts/flexible-shipping.woff?imgwjn) format('woff'),url('../fonts/flexible-shipping.svg?imgwjn#flexible-shipping') format('svg');font-weight:400;font-style:normal}div.shipping-status a.icon-status{font-family:'flexible-shipping'!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;display:inline-block;overflow:hidden;text-indent:-9999px;height:2em!important;width:2em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}div.shipping-status a.icon-status:before{font-size:20px;float:left;text-align:center;background:transparent none;margin:0 0 0 5px;text-indent:0}.icon-plus-circle:before,.icon-status-new:before{color:#ffba00;background:transparent none;text-indent:0;content:"\f055"}.icon-check-circle:before,.icon-status-confirmed:before{color:#2ea2cc;content:"\f058"}.icon-exclamation-circle:before,.icon-status-error:before{color:#d0c21f;content:"\f06a"}.icon-truck:before{content:"\f0d1"}.icon-pause-circle:before,.icon-status-created:before{color:#999;content:"\f28b"}.icon-check-circle:before,.icon-status-manifest:before{color:#00aE11;content:"\f058"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
.fs-free-shipping-notice-and-button-wrapper{align-content:start;align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.fs-free-shipping-notice-continue-shopping-button-wrapper,.fs-free-shipping-notice-text-and-progress-bar-wrapper{flex:0 1 auto;margin:0 .5em}.fs-free-shipping-notice-progress-bar-wrapper{align-items:center;display:flex;flex-direction:row}.fs-free-shipping-notice-progress-bar{border:1px solid #fff;border-radius:10px;height:10px;margin-left:10px;margin-right:10px;position:relative;width:100%}.fs-free-shipping-notice-progress-bar>span{background-color:#fff;border-bottom-left-radius:10px;border-top-left-radius:10px;display:block;height:100%;overflow:hidden;position:relative}.button.flexible-shipping-free-shipping-button{margin-left:0}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>Generated by IcoMoon</metadata>
<defs>
<font id="flexible-shipping" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="-64" />
<missing-glyph horiz-adv-x="1024" />
<glyph unicode="&#x20;" horiz-adv-x="512" d="" />
<glyph unicode="&#xf055;" glyph-name="plus-circle" horiz-adv-x="878" d="M694.857 402.286v73.143c0 20-16.571 36.571-36.571 36.571h-146.286v146.286c0 20-16.571 36.571-36.571 36.571h-73.143c-20 0-36.571-16.571-36.571-36.571v-146.286h-146.286c-20 0-36.571-16.571-36.571-36.571v-73.143c0-20 16.571-36.571 36.571-36.571h146.286v-146.286c0-20 16.571-36.571 36.571-36.571h73.143c20 0 36.571 16.571 36.571 36.571v146.286h146.286c20 0 36.571 16.571 36.571 36.571zM877.714 438.857c0-242.286-196.571-438.857-438.857-438.857s-438.857 196.571-438.857 438.857 196.571 438.857 438.857 438.857 438.857-196.571 438.857-438.857z" />
<glyph unicode="&#xf058;" glyph-name="check-circle" horiz-adv-x="878" d="M733.714 531.428c0 9.714-3.429 19.429-10.286 26.286l-52 51.429c-6.857 6.857-16 10.857-25.714 10.857s-18.857-4-25.714-10.857l-233.143-232.571-129.143 129.143c-6.857 6.857-16 10.857-25.714 10.857s-18.857-4-25.714-10.857l-52-51.429c-6.857-6.857-10.286-16.571-10.286-26.286s3.429-18.857 10.286-25.714l206.857-206.857c6.857-6.857 16.571-10.857 25.714-10.857 9.714 0 19.429 4 26.286 10.857l310.286 310.286c6.857 6.857 10.286 16 10.286 25.714zM877.714 438.857c0-242.286-196.571-438.857-438.857-438.857s-438.857 196.571-438.857 438.857 196.571 438.857 438.857 438.857 438.857-196.571 438.857-438.857z" />
<glyph unicode="&#xf06a;" glyph-name="exclamation-circle" horiz-adv-x="878" d="M438.857 877.714c242.286 0 438.857-196.571 438.857-438.857s-196.571-438.857-438.857-438.857-438.857 196.571-438.857 438.857 196.571 438.857 438.857 438.857zM512 165.143v108.571c0 10.286-8 18.857-17.714 18.857h-109.714c-10.286 0-18.857-8.571-18.857-18.857v-108.571c0-10.286 8.571-18.857 18.857-18.857h109.714c9.714 0 17.714 8.571 17.714 18.857zM510.857 361.714l10.286 354.857c0 4-1.714 8-5.714 10.286-3.429 2.857-8.571 4.571-13.714 4.571h-125.714c-5.143 0-10.286-1.714-13.714-4.571-4-2.286-5.714-6.286-5.714-10.286l9.714-354.857c0-8 8.571-14.286 19.429-14.286h105.714c10.286 0 18.857 6.286 19.429 14.286z" />
<glyph unicode="&#xf0d1;" glyph-name="truck" horiz-adv-x="1061" d="M365.714 146.286c0 40-33.143 73.143-73.143 73.143s-73.143-33.143-73.143-73.143 33.143-73.143 73.143-73.143 73.143 33.143 73.143 73.143zM146.286 438.857h219.429v146.286h-90.286c-2.286 0-10.857-3.429-12.571-5.143l-111.429-111.429c-1.714-1.714-5.143-10.286-5.143-12.571v-17.143zM877.714 146.286c0 40-33.143 73.143-73.143 73.143s-73.143-33.143-73.143-73.143 33.143-73.143 73.143-73.143 73.143 33.143 73.143 73.143zM1024 768v-585.143c0-42.286-44.571-36.571-73.143-36.571 0-80.571-65.714-146.286-146.286-146.286s-146.286 65.714-146.286 146.286h-219.429c0-80.571-65.714-146.286-146.286-146.286s-146.286 65.714-146.286 146.286h-36.571c-28.571 0-73.143-5.714-73.143 36.571 0 20 16.571 36.571 36.571 36.571v182.857c0 40.571-5.714 85.714 25.714 117.143l113.143 113.143c14.286 14.286 41.714 25.714 62.286 25.714h91.429v109.714c0 20 16.571 36.571 36.571 36.571h585.143c20 0 36.571-16.571 36.571-36.571z" />
<glyph unicode="&#xf28b;" glyph-name="pause-circle" horiz-adv-x="878" d="M402.286 274.286v329.143c0 10.286-8 18.286-18.286 18.286h-146.286c-10.286 0-18.286-8-18.286-18.286v-329.143c0-10.286 8-18.286 18.286-18.286h146.286c10.286 0 18.286 8 18.286 18.286zM658.286 274.286v329.143c0 10.286-8 18.286-18.286 18.286h-146.286c-10.286 0-18.286-8-18.286-18.286v-329.143c0-10.286 8-18.286 18.286-18.286h146.286c10.286 0 18.286 8 18.286 18.286zM877.714 438.857c0-242.286-196.571-438.857-438.857-438.857s-438.857 196.571-438.857 438.857 196.571 438.857 438.857 438.857 438.857-196.571 438.857-438.857z" />
</font></defs></svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.1.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 452.23 130.48" style="enable-background:new 0 0 452.23 130.48;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FAE400;}
.st1{fill:#45B0E3;}
.st2{fill:#F7931F;}
.st3{fill:#48B648;}
.st4{fill:#915BA3;}
.st5{fill:#005889;}
.st6{fill:#016A38;}
.st7{fill:#E81F79;}
.st8{fill:#EA2327;}
.st9{fill:#BE272C;}
</style>
<g>
<g>
<path d="M156.62,108.9l2.24-2.57c5.08,4.69,9.77,6.86,16.56,6.86c6.93,0,11.68-3.89,11.68-9.17v-0.13c0-4.88-2.57-7.72-13.07-9.83
c-11.09-2.24-15.57-6-15.57-13v-0.13c0-6.86,6.27-12.14,14.85-12.14c6.73,0,11.15,1.85,15.84,5.61l-2.18,2.71
c-4.36-3.76-8.71-5.21-13.79-5.21c-6.8,0-11.29,3.89-11.29,8.71v0.13c0,4.88,2.51,7.85,13.46,10.1c10.69,2.18,15.18,6,15.18,12.74
v0.13c0,7.46-6.4,12.6-15.31,12.6C167.84,116.29,162.16,113.85,156.62,108.9z"/>
<path d="M199.19,69.44h3.43v21.38h29.57V69.44h3.43v46.2h-3.43V93.99h-29.57v21.65h-3.43V69.44z"/>
<path d="M247.17,69.44h3.43v46.2h-3.43V69.44z"/>
<path d="M262.15,69.44h16.76c10.16,0,17.16,5.21,17.16,14.12v0.13c0,9.7-8.38,14.72-18.02,14.72h-12.47v17.22h-3.43V69.44z
M278.25,95.24c8.58,0,14.39-4.49,14.39-11.35v-0.13c0-7.33-5.67-11.15-13.99-11.15h-13.07v22.64H278.25z"/>
<path d="M303.6,69.44h16.76c10.16,0,17.16,5.21,17.16,14.12v0.13c0,9.7-8.38,14.72-18.02,14.72h-12.47v17.22h-3.43V69.44z
M319.7,95.24c8.58,0,14.39-4.49,14.39-11.35v-0.13c0-7.33-5.67-11.15-13.99-11.15h-13.07v22.64H319.7z"/>
<path d="M345.51,69.44h3.43v46.2h-3.43V69.44z"/>
<path d="M360.49,69.44h3.23l31.88,40.19V69.44h3.3v46.2h-2.57l-32.54-41.05v41.05h-3.3V69.44z"/>
<path d="M407.94,92.67v-0.13c0-12.47,9.04-23.89,22.83-23.89c7.52,0,12.28,2.24,16.89,6.07l-2.24,2.57
c-3.63-3.17-7.85-5.54-14.85-5.54c-11.22,0-19.07,9.5-19.07,20.66v0.13c0,11.95,7.46,20.85,19.8,20.85
c5.87,0,11.35-2.44,14.72-5.28V94.85h-15.44v-3.17h18.74v17.82c-4.16,3.7-10.62,6.93-18.15,6.93
C416.59,116.43,407.94,105.67,407.94,92.67z"/>
</g>
<g>
<path d="M158.27,9.9h35.18v9.24h-25.01v9.83h22.04v9.24h-22.04V56.1h-10.16V9.9z"/>
<path d="M197.07,9.9h10.16v36.96h23.03v9.24h-33.2V9.9z"/>
<path d="M233.44,9.9h34.85v9.04h-24.75v9.37h21.78v9.04h-21.78v9.7h25.08v9.04h-35.18V9.9z"/>
<path d="M313.23,9.9l-15.44,22.57l16.1,23.63h-11.88l-10.36-15.84L281.22,56.1h-11.55l16.1-23.5L270.33,9.9h11.88l9.64,14.98
l9.83-14.98H313.23z"/>
<path d="M317.46,9.9h10.16v46.2h-10.16V9.9z"/>
<path d="M334.68,9.9h21.45c5.32,0,9.35,1.36,12.08,4.09c2.11,2.11,3.17,4.73,3.17,7.85v0.13c0,4.36-2.02,7.68-6.07,9.97
c5.76,2.2,8.65,5.98,8.65,11.35v0.13c0,4.14-1.58,7.3-4.75,9.5c-2.99,2.11-7.17,3.17-12.54,3.17h-21.98V9.9z M361.28,23.56
c0-3.17-2.22-4.75-6.67-4.75h-10.03v9.77h9.37c4.88,0,7.33-1.63,7.33-4.88V23.56z M363.86,42.04c0-3.34-2.51-5.02-7.52-5.02
h-11.75v10.16h12.08c4.79,0,7.19-1.67,7.19-5.02V42.04z"/>
<path d="M377.85,9.9h10.16v36.96h23.03v9.24h-33.2V9.9z"/>
<path d="M414.21,9.9h34.85v9.04h-24.75v9.37h21.78v9.04h-21.78v9.7h25.08v9.04h-35.18V9.9z"/>
</g>
</g>
<g>
<polygon id="_x31_" class="st0" points="146.23,62.81 117.04,45.96 117.04,79.67 "/>
<polygon id="_x32_" class="st1" points="117.04,45.96 87.84,29.1 87.84,62.81 "/>
<polygon id="_x33_" class="st2" points="87.84,62.81 117.04,79.67 117.04,45.96 "/>
<polygon id="_x34_" class="st3" points="117.04,79.67 87.84,62.81 87.84,96.53 "/>
<polygon id="_x35_" class="st4" points="87.84,29.1 58.64,12.24 58.64,45.96 "/>
<polygon id="_x36_" class="st5" points="58.64,45.96 87.84,62.81 87.84,29.1 "/>
<polygon id="_x37_" class="st6" points="58.64,79.67 87.84,96.53 87.84,62.81 "/>
<polygon id="_x39_" class="st7" points="87.84,96.53 58.64,79.67 58.64,113.38 "/>
<polygon id="_x31_0" class="st8" points="65.2,62.81 36,45.96 36,79.67 "/>
<polygon id="_x31_1" class="st9" points="29.2,62.81 0,45.96 0,79.67 "/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
<g fill="none" fill-rule="evenodd">
<g fill-rule="nonzero">
<g>
<path fill="#000" d="M44.037 0H3.902C1.748.002.002 1.748 0 3.902v31.216c.002 2.154 1.748 3.9 3.902 3.902h14.493c.308 0 .558-.25.558-.557 0-.308-.25-.558-.558-.558H3.902c-1.539-.002-2.785-1.248-2.787-2.787V7.804h45.71v27.314c-.003 1.539-1.25 2.785-2.788 2.787H29.544c-.308 0-.558.25-.558.558 0 .308.25.557.558.557h14.493c2.154-.002 3.9-1.748 3.902-3.902V3.902C47.937 1.748 46.191.002 44.037 0zm2.787 6.69H1.114V3.901c.003-1.539 1.25-2.785 2.788-2.787h40.135c1.539.002 2.785 1.248 2.787 2.787v2.787z"/>
<path fill="#000" d="M3.902 2.23c-.924 0-1.672.748-1.672 1.672 0 .924.748 1.672 1.672 1.672.924 0 1.672-.748 1.672-1.672 0-.923-.749-1.671-1.672-1.672zm0 2.23c-.308 0-.557-.25-.557-.558 0-.308.25-.557.557-.557.308 0 .557.25.557.557 0 .308-.25.557-.557.557zM8.361 2.23c-.923 0-1.672.748-1.672 1.672 0 .924.749 1.672 1.672 1.672.924 0 1.673-.748 1.673-1.672-.001-.923-.75-1.671-1.673-1.672zm0 2.23c-.307 0-.557-.25-.557-.558 0-.308.25-.557.557-.557.308 0 .558.25.558.557 0 .308-.25.557-.558.557zM12.82 2.23c-.923 0-1.671.748-1.671 1.672 0 .924.748 1.672 1.672 1.672.923 0 1.672-.748 1.672-1.672 0-.923-.749-1.671-1.672-1.672zm0 2.23c-.307 0-.557-.25-.557-.558 0-.308.25-.557.558-.557.308 0 .557.25.557.557 0 .308-.25.557-.557.557zM44.037 3.345H27.314c-.308 0-.557.25-.557.557 0 .308.25.557.557.557h16.723c.308 0 .557-.25.557-.557 0-.308-.25-.557-.557-.557zM34.56 22.855c0-5.85-4.741-10.592-10.59-10.592-5.85 0-10.592 4.742-10.592 10.592 0 5.849 4.742 10.59 10.592 10.59 5.846-.006 10.584-4.744 10.59-10.59zm-20.067 0c0-5.234 4.243-9.477 9.477-9.477 5.233 0 9.476 4.243 9.476 9.477 0 5.233-4.243 9.476-9.476 9.476-5.232-.006-9.471-4.245-9.477-9.476z"/>
<path fill="#EA2327" d="M27.314 22.855c0-1.353-.815-2.573-2.065-3.09-1.25-.518-2.688-.232-3.644.725-.957.956-1.243 2.395-.725 3.645.517 1.25 1.737 2.064 3.09 2.064 1.846-.002 3.342-1.498 3.344-3.344zm-3.344 2.23c-1.232 0-2.23-.999-2.23-2.23 0-1.232.998-2.23 2.23-2.23 1.231 0 2.23.998 2.23 2.23-.002 1.23-1 2.228-2.23 2.23z"/>
<path fill="#000" d="M27.314 36.79h-.557v-1.423c6.382-1.421 10.671-7.417 9.957-13.916-.715-6.5-6.206-11.42-12.744-11.42-6.539 0-12.03 4.92-12.745 11.42-.714 6.499 3.576 12.495 9.957 13.916v1.423h-.557c-.308 0-.557.25-.557.558v6.689c0 2.155 1.746 3.902 3.902 3.902 2.155 0 3.902-1.747 3.902-3.902v-6.69c0-.307-.25-.557-.558-.557zm-15.05-13.935c-.004-4.736 2.846-9.007 7.22-10.821 4.374-1.815 9.41-.815 12.76 2.532 3.35 3.347 4.353 8.383 2.541 12.758-1.811 4.375-6.08 7.228-10.815 7.228-6.46-.007-11.695-5.239-11.707-11.697zm13.378 12.712v1.223h-3.345v-1.223c.555.07 1.113.106 1.673.109.559-.005 1.117-.04 1.672-.11zm1.115 8.47c0 1.54-1.248 2.787-2.787 2.787-1.54 0-2.788-1.248-2.788-2.787v-6.132h5.575v6.132z"/>
<path fill="#BE282C" d="M26.246 30.323l.133-1.07.41-.17.851.661c.406.316.984.28 1.348-.083l1.788-1.788c.363-.364.399-.941.083-1.347l-.662-.852.17-.41 1.07-.133c.51-.064.893-.498.894-1.013v-2.527c0-.514-.384-.948-.894-1.012l-1.07-.134-.17-.41.663-.851c.315-.407.279-.984-.084-1.348l-1.787-1.787c-.364-.364-.942-.4-1.348-.084l-.85.66-.412-.17-.133-1.068c-.065-.51-.498-.893-1.012-.894h-2.529c-.514 0-.947.384-1.011.894l-.134 1.068-.412.17-.85-.66c-.405-.316-.983-.28-1.347.084l-1.788 1.787c-.363.364-.399.941-.083 1.348l.662.851-.17.41-1.07.134c-.51.063-.893.497-.894 1.012v2.527c0 .515.384.948.894 1.013l1.07.133.17.41-.663.852c-.315.406-.279.983.084 1.347l1.788 1.787c.363.364.941.4 1.347.085l.85-.662.412.17.134 1.07c.064.51.497.892 1.011.893h2.529c.514 0 .947-.383 1.012-.893zm-3.457-.222l-.163-1.307c-.025-.2-.155-.37-.34-.446l-1.01-.419c-.185-.077-.398-.048-.556.075l-1.04.809-1.67-1.669.81-1.041c.124-.159.153-.37.076-.556l-.418-1.009c-.077-.185-.247-.315-.446-.34l-1.31-.163v-2.36l1.31-.164c.2-.025.37-.155.446-.34l.418-1.009c.077-.185.048-.397-.075-.556l-.81-1.041 1.669-1.669 1.04.809c.158.123.37.152.556.075l1.01-.419c.185-.076.315-.247.34-.446l.163-1.307h2.36l.164 1.307c.025.2.155.37.34.446l1.01.419c.186.076.398.048.556-.075l1.04-.809 1.67 1.67-.81 1.04c-.124.159-.152.371-.076.556l.418 1.009c.077.185.247.315.446.34l1.31.163v2.36l-1.31.164c-.2.025-.37.155-.446.34l-.418 1.009c-.077.185-.048.398.075.556l.81 1.041-1.669 1.669-1.042-.81c-.158-.123-.37-.151-.555-.075l-1.009.418c-.185.077-.315.247-.34.446l-.163 1.31h-2.36z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -0,0 +1,23 @@
<svg xmlns="http://www.w3.org/2000/svg" width="51" height="44" viewBox="0 0 51 44">
<g fill="none" fill-rule="evenodd">
<g fill-rule="nonzero">
<g>
<path fill="#000" d="M46.79 0H4.145C1.857.003.003 1.863 0 4.158v35.638c.003 2.295 1.857 4.155 4.146 4.158h42.643c2.289-.003 4.143-1.863 4.146-4.158V4.158C50.932 1.863 49.078.003 46.79 0zM4.145 1.188h42.643c1.635.002 2.96 1.33 2.962 2.97v2.97H1.185v-2.97c.001-1.64 1.326-2.968 2.96-2.97zm42.643 41.578H4.146c-1.635-.002-2.96-1.33-2.961-2.97V8.316H49.75v31.48c-.002 1.64-1.327 2.968-2.962 2.97z"/>
<path fill="#000" d="M4.738 5.94c.981 0 1.777-.798 1.777-1.782s-.796-1.782-1.777-1.782c-.981 0-1.777.798-1.777 1.782.001.983.796 1.78 1.777 1.782zm0-2.376c.327 0 .592.266.592.594 0 .328-.265.594-.592.594-.327 0-.592-.266-.592-.594 0-.328.265-.594.592-.594zM9.476 5.94c.982 0 1.777-.798 1.777-1.782s-.795-1.782-1.777-1.782c-.981 0-1.776.798-1.776 1.782 0 .983.795 1.78 1.776 1.782zm0-2.376c.327 0 .593.266.593.594 0 .328-.266.594-.593.594-.327 0-.592-.266-.592-.594 0-.328.265-.594.592-.594zM14.214 5.94c.982 0 1.777-.798 1.777-1.782s-.795-1.782-1.777-1.782c-.98 0-1.776.798-1.776 1.782 0 .983.796 1.78 1.776 1.782zm0-2.376c.328 0 .593.266.593.594 0 .328-.265.594-.593.594-.327 0-.592-.266-.592-.594 0-.328.265-.594.592-.594zM29.021 4.752H46.79c.327 0 .593-.266.593-.594 0-.328-.266-.594-.593-.594H29.021c-.327 0-.592.266-.592.594 0 .328.265.594.592.594z"/>
<g>
<path fill="#BE282C" d="M3.554 7.165H.592c-.327 0-.592.266-.592.594v4.751c0 .329.265.594.592.594H5.33c.328 0 .593-.265.593-.594v-1.187c0-.329-.265-.594-.593-.594-.327 0-.592.265-.592.594v.593H1.185V8.353h2.369c.327 0 .592-.266.592-.594 0-.328-.265-.594-.592-.594z" transform="translate(10.66 15.313)"/>
<path fill="#BE282C" d="M6.934 7.339c-.111-.112-.262-.174-.419-.174-.157 0-.308.062-.419.174l-2.542 2.55-.766-.768c-.233-.225-.602-.222-.83.007-.229.229-.232.6-.008.833l1.185 1.187c.11.112.262.175.419.175.157 0 .307-.063.418-.175l2.962-2.97c.11-.11.173-.262.173-.42 0-.157-.062-.308-.173-.42z" transform="translate(10.66 15.313)"/>
<path fill="#915BA3" d="M3.554 15.48c.327 0 .592-.266.592-.594 0-.328-.265-.594-.592-.594H.592c-.327 0-.592.266-.592.594v4.752c0 .328.265.594.592.594H5.33c.328 0 .593-.266.593-.594V18.45c0-.328-.265-.594-.593-.594-.327 0-.592.266-.592.594v.594H1.185V15.48h2.369z" transform="translate(10.66 15.313)"/>
<path fill="#EA2327" d="M3.554 1.188c.327 0 .592-.266.592-.594C4.146.266 3.88 0 3.554 0H.592C.265 0 0 .266 0 .594v4.752c0 .328.265.594.592.594H5.33c.328 0 .593-.266.593-.594V4.158c0-.328-.265-.594-.593-.594-.327 0-.592.266-.592.594v.594H1.185V1.188h2.369z" transform="translate(10.66 15.313)"/>
<path fill="#915BA3" d="M6.934 14.466c-.111-.111-.262-.174-.419-.174-.157 0-.308.063-.419.174l-2.542 2.55-.766-.768c-.233-.225-.602-.222-.83.008-.229.229-.232.6-.008.832l1.185 1.188c.11.112.262.174.419.174.157 0 .307-.062.418-.174l2.962-2.97c.11-.111.173-.262.173-.42 0-.157-.062-.308-.173-.42z" transform="translate(10.66 15.313)"/>
<path fill="#EA2327" d="M6.934.174C6.823.063 6.672 0 6.515 0c-.157 0-.308.063-.419.174l-2.542 2.55-.766-.768c-.233-.225-.602-.222-.83.007-.229.23-.232.6-.008.833l1.185 1.188c.11.111.262.174.419.174.157 0 .307-.063.418-.174l2.962-2.97c.11-.111.173-.262.173-.42 0-.158-.062-.309-.173-.42z" transform="translate(10.66 15.313)"/>
<path fill="#BE282C" d="M8.884 9.54h20.137c.327 0 .593-.265.593-.593 0-.328-.266-.594-.593-.594H8.884c-.327 0-.592.266-.592.594 0 .328.265.594.592.594zM8.884 11.916h5.923c.327 0 .592-.265.592-.593 0-.329-.265-.594-.592-.594H8.884c-.327 0-.592.265-.592.594 0 .328.265.593.592.593z" transform="translate(10.66 15.313)"/>
<path fill="#915BA3" d="M8.884 16.668h20.137c.327 0 .593-.266.593-.594 0-.328-.266-.594-.593-.594H8.884c-.327 0-.592.266-.592.594 0 .328.265.594.592.594z" transform="translate(10.66 15.313)"/>
<path fill="#EA2327" d="M8.884 2.376h20.137c.327 0 .593-.266.593-.594 0-.328-.266-.594-.593-.594H8.884c-.327 0-.592.266-.592.594 0 .328.265.594.592.594z" transform="translate(10.66 15.313)"/>
<path fill="#915BA3" d="M8.884 19.044h5.923c.327 0 .592-.266.592-.594 0-.328-.265-.594-.592-.594H8.884c-.327 0-.592.266-.592.594 0 .328.265.594.592.594z" transform="translate(10.66 15.313)"/>
<path fill="#EA2327" d="M8.884 4.752h5.923c.327 0 .592-.266.592-.594 0-.328-.265-.594-.592-.594H8.884c-.327 0-.592.266-.592.594 0 .328.265.594.592.594z" transform="translate(10.66 15.313)"/>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="45" height="39" viewBox="0 0 45 39">
<g fill="none" fill-rule="evenodd">
<g fill-rule="nonzero">
<g>
<path fill="#000" d="M41.285 0H3.658C1.638.002.002 1.651 0 3.685v31.589c.002 2.034 1.639 3.682 3.658 3.685h37.627c2.019-.003 3.655-1.651 3.658-3.685V3.685C44.94 1.651 43.304.002 41.285 0zM3.658 1.053h37.627c1.442.002 2.611 1.18 2.613 2.632v2.633H1.045V3.685c.002-1.453 1.17-2.63 2.613-2.632zm37.627 36.853H3.658c-1.442-.002-2.611-1.18-2.613-2.632V7.37h42.853v27.903c-.002 1.453-1.17 2.63-2.613 2.632z"/>
<path fill="#000" d="M4.18 5.265c.867 0 1.569-.707 1.569-1.58 0-.872-.702-1.58-1.568-1.58-.866 0-1.568.708-1.568 1.58 0 .872.702 1.579 1.568 1.58zm0-2.106c.29 0 .523.236.523.526 0 .291-.234.527-.522.527-.289 0-.523-.236-.523-.527 0-.29.234-.526.523-.526zM8.361 5.265c.866 0 1.568-.707 1.568-1.58 0-.872-.702-1.58-1.568-1.58-.865 0-1.567.708-1.567 1.58 0 .872.702 1.579 1.567 1.58zm0-2.106c.29 0 .523.236.523.526 0 .291-.234.527-.523.527-.288 0-.522-.236-.522-.527 0-.29.234-.526.522-.526zM12.542 5.265c.866 0 1.568-.707 1.568-1.58 0-.872-.702-1.58-1.568-1.58-.866 0-1.568.708-1.568 1.58.001.872.703 1.579 1.568 1.58zm0-2.106c.289 0 .523.236.523.526 0 .291-.234.527-.523.527-.288 0-.522-.236-.522-.527 0-.29.234-.526.522-.526zM25.607 4.212h15.678c.288 0 .522-.236.522-.527 0-.29-.234-.526-.522-.526H25.607c-.289 0-.523.236-.523.526 0 .291.234.527.523.527z"/>
<path fill="#BE282C" d="M28.436 21.585l5.036-5.073c.879-.885 1.222-2.175.9-3.385-.321-1.21-1.259-2.154-2.46-2.478-1.2-.324-2.481.022-3.36.907l-5.035 5.073-6.425-6.472c-.098-.099-.23-.154-.37-.154-.138 0-.27.055-.369.154l-6.27 6.318c-.099.099-.154.232-.154.372 0 .14.055.274.153.372l6.425 6.472-4.857 4.893c-.069.076-.118.168-.143.269l-1.045 5.264c-.034.173.02.351.143.476.123.124.3.178.472.144l5.226-1.053c.1-.025.191-.075.267-.144l4.856-4.893 6.424 6.472c.098.1.231.155.37.155.139 0 .271-.056.37-.155l6.27-6.317c.099-.099.154-.233.154-.373 0-.14-.055-.273-.154-.372l-6.424-6.472zM16.2 32.423l-3.441-3.467 14.938-15.05 3.442 3.468L16.2 32.424zm13.091-20.122c.952-.947 2.484-.942 3.43.011.946.953.951 2.497.012 3.456l-.855.861-3.442-3.467.855-.861zm-12.568-1.027l1.874 1.888-.937.944c-.198.206-.195.535.006.738.202.203.528.206.733.006l.937-.944 1.351 1.362-.937.944c-.198.206-.195.535.007.738.201.203.527.206.732.006l.937-.944 1.352 1.362-3.965 3.993-6.054-6.1 3.964-3.993zm-5.532 5.573l.829-.835 6.054 6.1-.828.835-6.055-6.1zm1.15 13.177l2.8 2.82-3.5.706.7-3.526zm15.879 3.979l-6.055-6.1.829-.835 6.055 6.1-.83.835zm1.568-1.58l-6.055-6.1 3.964-3.993 1.352 1.361-.937.944c-.198.207-.195.535.006.738.202.203.528.206.733.007l.937-.944 1.351 1.361-.937.944c-.198.207-.195.535.006.738.202.203.528.206.733.006l.937-.943 1.874 1.887-3.964 3.994z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

View File

@@ -0,0 +1,131 @@
function fs_removeParam(key, sourceURL) {
var rtn = sourceURL.split("?")[0],
param,
params_arr = [],
queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
if (queryString !== "") {
params_arr = queryString.split("&");
for (var i = params_arr.length - 1; i >= 0; i -= 1) {
param = params_arr[i].split("=")[0];
if (param === key) {
params_arr.splice(i, 1);
}
}
rtn = rtn + "?" + params_arr.join("&");
}
return rtn;
}
function fs_trimChar(string, charToRemove) {
while(string.charAt(0)==charToRemove) {
string = string.substring(1);
}
while(string.charAt(string.length-1)==charToRemove) {
string = string.substring(0,string.length-1);
}
return string;
}
/* Notice */
jQuery(function($) {
$( document ).on( 'click', '.flexible-shipping-taxes-notice .notice-dismiss', function () {
$.ajax( ajaxurl,
{
type: 'POST',
data: {
action: 'flexible_shipping_taxes_notice',
}
} );
} );
$( document ).on( 'click', '#enable-fs-connect-box', function () {
var fs_connect_checkbox = $('.enable-fs-connect-box');
var fs_box_state;
if ( fs_connect_checkbox.prop('checked') ){
$('.fs-connect-integration-box').slideDown();
fs_box_state = 1;
} else{
$('.fs-connect-integration-box').slideUp();
fs_box_state = 0;
}
$.ajax( ajaxurl,
{
type: 'POST',
data: {
action: 'update_fs_connect_integration_setting',
fs_box_state: fs_box_state
}
} );
} );
$( document ).on( 'click', '#flexible_shipping_rate_plugin .close-fs-rate-notice', function () {
$( '#flexible_shipping_rate_plugin .notice-dismiss' ).click();
} );
$( document ).on( 'click', '#flexible_shipping_rate_plugin .fs-not-good', function () {
$('#flexible_shipping_rate_plugin p').html( fs_admin.notice_not_good_enought );
} );
$( document ).on( 'click', '.js--button-hints', function () {
var label = $( this ).text();
var second_label = $( this ).attr( 'data-second_label' );
$( this ).toggleClass( 'open' ).text( second_label ).attr( 'data-second_label', label );
$( '.js--hints' ).slideToggle();
} );
});
/* Free shipping */
jQuery(function($) {
const $free_shipping = $('#woocommerce_flexible_shipping_method_free_shipping');
const $free_shipping_notice = $('#woocommerce_flexible_shipping_method_free_shipping_cart_notice');
const $free_shipping_notice_text = $('#woocommerce_flexible_shipping_method_free_shipping_notice_text');
const $free_shipping_progress_bar = $('#woocommerce_flexible_shipping_method_free_shipping_progress_bar');
function fs_toggle_free_shipping_notice() {
const free_shipping_val = $free_shipping.val();
$free_shipping_notice.closest('tr').toggle(free_shipping_val !== '');
$free_shipping_notice_text.closest('tr').toggle(free_shipping_val !== '' && $free_shipping_notice.is(':checked'));
$free_shipping_progress_bar.closest('tr').toggle(free_shipping_val !== '' && $free_shipping_notice.is(':checked'));
}
$free_shipping.on('change', function(){
fs_toggle_free_shipping_notice();
});
$free_shipping_notice.on('change', function(){
fs_toggle_free_shipping_notice();
});
fs_toggle_free_shipping_notice();
function disable_free_shipping_requires_upselling_options() {
let $select = jQuery('#woocommerce_flexible_shipping_method_free_shipping_requires_upselling');
let enabled_option = 'order_amount';
$select.find('option').each(function(){
jQuery(this).prop('disabled',this.value !== enabled_option);
});
}
disable_free_shipping_requires_upselling_options();
});
/* Tax included in shipping costs */
jQuery(function($) {
let tax_status_field = $('#woocommerce_flexible_shipping_tax_status');
function fs_toggle_prices_include_tax() {
$('#woocommerce_flexible_shipping_prices_include_tax').closest('tr').toggle(tax_status_field.val()!=='none');
}
tax_status_field.on('change', function(){
fs_toggle_prices_include_tax();
});
fs_toggle_prices_include_tax();
});

View File

@@ -0,0 +1,11 @@
function fs_removeParam(key,sourceURL){var rtn=sourceURL.split("?")[0],param,params_arr=[],queryString=(sourceURL.indexOf("?")!==-1)?sourceURL.split("?")[1]:"";if(queryString!==""){params_arr=queryString.split("&");for(var i=params_arr.length-1;i>=0;i-=1){param=params_arr[i].split("=")[0];if(param===key){params_arr.splice(i,1)}}
rtn=rtn+"?"+params_arr.join("&")}
return rtn}
function fs_trimChar(string,charToRemove){while(string.charAt(0)==charToRemove){string=string.substring(1)}
while(string.charAt(string.length-1)==charToRemove){string=string.substring(0,string.length-1)}
return string}
jQuery(function($){$(document).on('click','.flexible-shipping-taxes-notice .notice-dismiss',function(){$.ajax(ajaxurl,{type:'POST',data:{action:'flexible_shipping_taxes_notice',}})});$(document).on('click','#enable-fs-connect-box',function(){var fs_connect_checkbox=$('.enable-fs-connect-box');var fs_box_state;if(fs_connect_checkbox.prop('checked')){$('.fs-connect-integration-box').slideDown();fs_box_state=1}else{$('.fs-connect-integration-box').slideUp();fs_box_state=0}
$.ajax(ajaxurl,{type:'POST',data:{action:'update_fs_connect_integration_setting',fs_box_state:fs_box_state}})});$(document).on('click','#flexible_shipping_rate_plugin .close-fs-rate-notice',function(){$('#flexible_shipping_rate_plugin .notice-dismiss').click()});$(document).on('click','#flexible_shipping_rate_plugin .fs-not-good',function(){$('#flexible_shipping_rate_plugin p').html(fs_admin.notice_not_good_enought)});$(document).on('click','.js--button-hints',function(){var label=$(this).text();var second_label=$(this).attr('data-second_label');$(this).toggleClass('open').text(second_label).attr('data-second_label',label);$('.js--hints').slideToggle()})});jQuery(function($){const $free_shipping=$('#woocommerce_flexible_shipping_method_free_shipping');const $free_shipping_notice=$('#woocommerce_flexible_shipping_method_free_shipping_cart_notice');const $free_shipping_notice_text=$('#woocommerce_flexible_shipping_method_free_shipping_notice_text');const $free_shipping_progress_bar=$('#woocommerce_flexible_shipping_method_free_shipping_progress_bar');function fs_toggle_free_shipping_notice(){const free_shipping_val=$free_shipping.val();$free_shipping_notice.closest('tr').toggle(free_shipping_val!=='');$free_shipping_notice_text.closest('tr').toggle(free_shipping_val!==''&&$free_shipping_notice.is(':checked'));$free_shipping_progress_bar.closest('tr').toggle(free_shipping_val!==''&&$free_shipping_notice.is(':checked'))}
$free_shipping.on('change',function(){fs_toggle_free_shipping_notice()});$free_shipping_notice.on('change',function(){fs_toggle_free_shipping_notice()});fs_toggle_free_shipping_notice();function disable_free_shipping_requires_upselling_options(){let $select=jQuery('#woocommerce_flexible_shipping_method_free_shipping_requires_upselling');let enabled_option='order_amount';$select.find('option').each(function(){jQuery(this).prop('disabled',this.value!==enabled_option)})}
disable_free_shipping_requires_upselling_options()});jQuery(function($){let tax_status_field=$('#woocommerce_flexible_shipping_tax_status');function fs_toggle_prices_include_tax(){$('#woocommerce_flexible_shipping_prices_include_tax').closest('tr').toggle(tax_status_field.val()!=='none')}
tax_status_field.on('change',function(){fs_toggle_prices_include_tax()});fs_toggle_prices_include_tax()})

View File

@@ -0,0 +1,13 @@
jQuery(function($) {
$('#wpdesk-helpscout-beacon').on('click', function() {
$.ajax({
url: fs_beacon_clicked.ajax_url,
type: 'POST',
data: {
action: fs_beacon_clicked.action,
nonce: fs_beacon_clicked.nonce,
},
dataType: 'json',
});
});
});

View File

@@ -0,0 +1 @@
jQuery(function($){$('#wpdesk-helpscout-beacon').on('click',function(){$.ajax({url:fs_beacon_clicked.ajax_url,type:'POST',data:{action:fs_beacon_clicked.action,nonce:fs_beacon_clicked.nonce,},dataType:'json',})})})

View File

@@ -0,0 +1,95 @@
/**
* Displays contextual info after input element.
*
* @package Contextual Info
*/
( function( $ ) {
/**
* Contextual info jQuery plugin
*
* @param settings
* @returns {*}
*/
$.fn.contextualInfo = function( settings ) {
let config = $.extend(
{
'id': '',
'phrases_in': [],
'info_html': '',
'phrases_not_in': [],
'is_limited_width': false,
},
settings
);
return this.each(
function() {
let $element = $( this );
createInfoHTMLElement( $element );
toggleInfoElement( $element );
$element.keyup(
function() {
toggleInfoElement( $element );
}
);
}
);
/**
* .
*
* @param $element
* @returns {string}
*/
function prepareInfoElementId( $element ) {
return $element.attr( 'id' ) + "_" + config.id;
}
/**
* Create HTML info element.
*
* @param $element
*/
function createInfoHTMLElement( $element ) {
$( $element ).after(
function() {
let classes = ['description'];
if ( config.is_limited_width ) {
classes.push( 'limited-width' )
}
return '<p class="' + classes.join( ' ' ) + '" id="' + prepareInfoElementId( $element ) + '" style="display: none;">' + config.info_html + "</p>";
}
);
}
/**
* Toggle info element: show when element contains one or more phrases.
*
* @param $element
*/
function toggleInfoElement($element) {
let element_value = $element.val().toLowerCase();
let show_info = false;
if ( config.phrases_in.length === 0 ) {
show_info = true;
}
$( config.phrases_in ).each(
function( index, value ) {
let phrase_value = value.toLowerCase();
show_info = show_info || element_value.indexOf( phrase_value ) !== -1;
}
);
$( config.phrases_not_in ).each(
function( index, value ) {
let phrase_value = value.toLowerCase();
show_info = show_info && element_value.indexOf( phrase_value ) === -1;
}
);
$( '#' + $element.attr( 'id' ) + "_" + config.id ).toggle( show_info );
}
}
})( jQuery );

View File

@@ -0,0 +1,5 @@
(function($){$.fn.contextualInfo=function(settings){let config=$.extend({'id':'','phrases_in':[],'info_html':'','phrases_not_in':[],'is_limited_width':!1,},settings);return this.each(function(){let $element=$(this);createInfoHTMLElement($element);toggleInfoElement($element);$element.keyup(function(){toggleInfoElement($element)})});function prepareInfoElementId($element){return $element.attr('id')+"_"+config.id}
function createInfoHTMLElement($element){$($element).after(function(){let classes=['description'];if(config.is_limited_width){classes.push('limited-width')}
return'<p class="'+classes.join(' ')+'" id="'+prepareInfoElementId($element)+'" style="display: none;">'+config.info_html+"</p>"})}
function toggleInfoElement($element){let element_value=$element.val().toLowerCase();let show_info=!1;if(config.phrases_in.length===0){show_info=!0}
$(config.phrases_in).each(function(index,value){let phrase_value=value.toLowerCase();show_info=show_info||element_value.indexOf(phrase_value)!==-1});$(config.phrases_not_in).each(function(index,value){let phrase_value=value.toLowerCase();show_info=show_info&&element_value.indexOf(phrase_value)===-1});$('#'+$element.attr('id')+"_"+config.id).toggle(show_info)}}})(jQuery)

View File

@@ -0,0 +1,27 @@
function fs_add_duplicate_field() {
setTimeout( function () {
jQuery( '.wc-shipping-zone-method-type' ).filter( function () {
return jQuery( this ).text() === fs_duplicate_methods.shipping_method;
} ).each( function () {
let row = jQuery( this ).closest( 'tr' );
if ( row.find( '.js--duplicate-button' ).length > 0 ) {
return;
}
let instance_id = parseInt( new URL( row.find( 'a.wc-shipping-zone-method-settings' ).attr( 'href' ), window.location.origin ).searchParams.get( fs_duplicate_methods.param_name ), 10 );
let row_actions = row.find( '.row-actions' );
let duplicate_url = new URL( fs_duplicate_methods.duplicate_url );
duplicate_url.searchParams.append( fs_duplicate_methods.param_name, instance_id );
let duplicate = ' | <a href="' + duplicate_url + '" class="js--duplicate-button">' + fs_duplicate_methods.duplicate_label + '</a>';
row_actions.append( duplicate );
} );
}, 10 );
}
fs_add_duplicate_field();
document.querySelector( '.wc-shipping-zone-method-rows' ).addEventListener( 'DOMNodeInserted', function ( event ) {
fs_add_duplicate_field();
}, false );

View File

@@ -0,0 +1,3 @@
function fs_add_duplicate_field(){setTimeout(function(){jQuery('.wc-shipping-zone-method-type').filter(function(){return jQuery(this).text()===fs_duplicate_methods.shipping_method}).each(function(){let row=jQuery(this).closest('tr');if(row.find('.js--duplicate-button').length>0){return}
let instance_id=parseInt(new URL(row.find('a.wc-shipping-zone-method-settings').attr('href'),window.location.origin).searchParams.get(fs_duplicate_methods.param_name),10);let row_actions=row.find('.row-actions');let duplicate_url=new URL(fs_duplicate_methods.duplicate_url);duplicate_url.searchParams.append(fs_duplicate_methods.param_name,instance_id);let duplicate=' | <a href="'+duplicate_url+'" class="js--duplicate-button">'+fs_duplicate_methods.duplicate_label+'</a>';row_actions.append(duplicate)})},10)}
fs_add_duplicate_field();document.querySelector('.wc-shipping-zone-method-rows').addEventListener('DOMNodeInserted',function(event){fs_add_duplicate_field()},!1)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long