wickes-css2 2.116.0 → 2.117.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/build/css/pages/checkout-new.css +1 -1
  2. package/build/css/pages/checkout.css +1 -1
  3. package/build/css/pages/tradePro-signup.css +1 -1
  4. package/build/css/pdp-main-non-critical.css +1 -1
  5. package/build/img/file-pdf-solid-full.svg +3 -0
  6. package/build/img/lorem_ipsum.pdf +150 -0
  7. package/build/js/emulation.min.js +151 -11
  8. package/build/js/pdf-preview.min.js +1 -0
  9. package/package.json +1 -1
  10. package/src/components/modal-capture.hbs +1 -1
  11. package/src/components/modal-id-type.hbs +271 -0
  12. package/src/components/modal-pdf-preview.hbs +70 -0
  13. package/src/components/partner-signup-form.hbs +1 -231
  14. package/src/img/file-pdf-solid-full.svg +3 -0
  15. package/src/img/lorem_ipsum.pdf +150 -0
  16. package/src/js/emulation/tradepro-id-pdf.js +182 -0
  17. package/src/js/libs/pdf-preview.js +1177 -0
  18. package/src/page_checkout_confirmation-billie.html +5 -231
  19. package/src/page_checkout_confirmation-clearpay.html +5 -231
  20. package/src/page_checkout_confirmation-new-apple.html +5 -231
  21. package/src/page_checkout_confirmation-new-google.html +5 -231
  22. package/src/page_checkout_confirmation-new-klarna.html +5 -231
  23. package/src/page_checkout_confirmation-new-paypal.html +5 -231
  24. package/src/page_pdf-preview-example.html +955 -0
  25. package/src/page_tradePro-checkout-summary-klarna.html +4 -231
  26. package/src/page_tradePro-checkout-summary.html +4 -231
  27. package/src/page_tradePro-signup.html +5 -0
  28. package/src/scss/components/_id-type-modal.scss +39 -0
  29. package/src/scss/components/_pdf-preview-modal.scss +122 -0
  30. package/src/scss/pages/_checkout-tradepro.scss +1 -0
  31. package/src/scss/pages/tradePro-signup.scss +1 -0
  32. package/src/sitemap.html +1 -0
@@ -0,0 +1,3 @@
1
+ <svg width="31" height="31" viewBox="0 0 31 31" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6.19998 3.1001C4.49013 3.1001 3.09998 4.49025 3.09998 6.2001V24.8001C3.09998 26.5099 4.49013 27.9001 6.19998 27.9001H10.075V22.4751C10.075 20.7653 11.4651 19.3751 13.175 19.3751H21.7V11.3587C21.7 10.5353 21.3754 9.74572 20.7942 9.16447L15.6308 4.00588C15.0495 3.42463 14.2648 3.1001 13.4414 3.1001H6.19998ZM18.8664 11.6251H14.3375C13.6933 11.6251 13.175 11.1068 13.175 10.4626V5.93369L18.8664 11.6251ZM13.175 21.5063C12.6422 21.5063 12.2062 21.9423 12.2062 22.4751V28.6751C12.2062 29.2079 12.6422 29.6438 13.175 29.6438C13.7078 29.6438 14.1437 29.2079 14.1437 28.6751V27.3188H14.725C16.3283 27.3188 17.6312 26.0159 17.6312 24.4126C17.6312 22.8093 16.3283 21.5063 14.725 21.5063H13.175ZM14.725 25.3813H14.1437V23.4438H14.725C15.2578 23.4438 15.6937 23.8798 15.6937 24.4126C15.6937 24.9454 15.2578 25.3813 14.725 25.3813ZM19.375 21.5063C18.8422 21.5063 18.4062 21.9423 18.4062 22.4751V28.6751C18.4062 29.2079 18.8422 29.6438 19.375 29.6438H20.925C22.3151 29.6438 23.4437 28.5153 23.4437 27.1251V24.0251C23.4437 22.6349 22.3151 21.5063 20.925 21.5063H19.375ZM20.3437 27.7063V23.4438H20.925C21.2447 23.4438 21.5062 23.7054 21.5062 24.0251V27.1251C21.5062 27.4448 21.2447 27.7063 20.925 27.7063H20.3437ZM24.6062 22.4751V28.6751C24.6062 29.2079 25.0422 29.6438 25.575 29.6438C26.1078 29.6438 26.5437 29.2079 26.5437 28.6751V26.5438H27.9C28.4328 26.5438 28.8687 26.1079 28.8687 25.5751C28.8687 25.0423 28.4328 24.6063 27.9 24.6063H26.5437V23.4438H27.9C28.4328 23.4438 28.8687 23.0079 28.8687 22.4751C28.8687 21.9423 28.4328 21.5063 27.9 21.5063H25.575C25.0422 21.5063 24.6062 21.9423 24.6062 22.4751Z" fill="#0277bd"/>
3
+ </svg>
@@ -0,0 +1,150 @@
1
+ %PDF-1.4
2
+ %���� ReportLab Generated PDF document (opensource)
3
+ 1 0 obj
4
+ <<
5
+ /F1 2 0 R /F2 3 0 R
6
+ >>
7
+ endobj
8
+ 2 0 obj
9
+ <<
10
+ /BaseFont /Helvetica /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font
11
+ >>
12
+ endobj
13
+ 3 0 obj
14
+ <<
15
+ /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding /Name /F2 /Subtype /Type1 /Type /Font
16
+ >>
17
+ endobj
18
+ 4 0 obj
19
+ <<
20
+ /Contents 12 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources <<
21
+ /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
22
+ >> /Rotate 0 /Trans <<
23
+
24
+ >>
25
+ /Type /Page
26
+ >>
27
+ endobj
28
+ 5 0 obj
29
+ <<
30
+ /Contents 13 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources <<
31
+ /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
32
+ >> /Rotate 0 /Trans <<
33
+
34
+ >>
35
+ /Type /Page
36
+ >>
37
+ endobj
38
+ 6 0 obj
39
+ <<
40
+ /Contents 14 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources <<
41
+ /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
42
+ >> /Rotate 0 /Trans <<
43
+
44
+ >>
45
+ /Type /Page
46
+ >>
47
+ endobj
48
+ 7 0 obj
49
+ <<
50
+ /Contents 15 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources <<
51
+ /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
52
+ >> /Rotate 0 /Trans <<
53
+
54
+ >>
55
+ /Type /Page
56
+ >>
57
+ endobj
58
+ 8 0 obj
59
+ <<
60
+ /Contents 16 0 R /MediaBox [ 0 0 612 792 ] /Parent 11 0 R /Resources <<
61
+ /Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
62
+ >> /Rotate 0 /Trans <<
63
+
64
+ >>
65
+ /Type /Page
66
+ >>
67
+ endobj
68
+ 9 0 obj
69
+ <<
70
+ /PageMode /UseNone /Pages 11 0 R /Type /Catalog
71
+ >>
72
+ endobj
73
+ 10 0 obj
74
+ <<
75
+ /Author (\(anonymous\)) /CreationDate (D:20260914062728+00'00') /Creator (\(unspecified\)) /Keywords () /ModDate (D:20260914062728+00'00') /Producer (ReportLab PDF Library - \(opensource\))
76
+ /Subject (\(unspecified\)) /Title (\(anonymous\)) /Trapped /False
77
+ >>
78
+ endobj
79
+ 11 0 obj
80
+ <<
81
+ /Count 5 /Kids [ 4 0 R 5 0 R 6 0 R 7 0 R 8 0 R ] /Type /Pages
82
+ >>
83
+ endobj
84
+ 12 0 obj
85
+ <<
86
+ /Filter [ /ASCII85Decode /FlateDecode ] /Length 1117
87
+ >>
88
+ stream
89
+ Gb"/$bDmN#&A7I5o[,QDiuLSAeK,B:""`@5%P6LXTf=X'"$U>m&GG]ojA;VZ@JC'O$m<gad8aIX9b)9'B;iT!')f88pO<T.XD#5D@GS,$qiMr/2pXEM>C!uW]8%+:A*gXaKu4A.%8.u5Z&#][@8io%<[Gbig@X^C#>B&+HLoMh[e)DqD!@SBlCL2="4Qb*[f=eL*W>W\C;Bk/kA(G!L$uLGl\E(o&K?2Pbg_a4D,%64CM]fP)85QkU*NX&;b,QRa?"=`J^c*36nRglCaA]GR7D'9Q5m"K.C#GJ=e(dT`p=?"6q6PTSiE:)HW))TX?&=0b/eX)4afo?:+S*?8pNGU;q[2&ZUAgtVN==-(CjW39&^k&A!GMm7OX0?8jTO%AQnTuKifK1$]][2#`t_ZHO6fp@ZlhhB[0m'"eGc;fo6so"9qWXj9`%!>0*3n7OB_,S/(&l>,H^3Le?_86(1cg7h.[F^1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6g"Qe@tE+DJK/I*SRp%*,HhMc"(:Wd/O1WPM%nLXgj)>R9"7jb2p^m]WRc%8.#4ZDV&FdotJ+XCYK2:_[-\d"A+W_RbHh>,foCk4L/YZ[gMEN\%!2(SRlc.glVdRe:0@*nBG?H:?'_/R"?]g$,hK8HkY<1gdZgV&<6%[A^Gb,T&fMH*f,^_IrsFh#_`e*<hGF6%eCf=Li&*P$-E#[4(g#$Nrt,0)<h+Jfrgr?TgP43l8#>6:[=$A2<Z<X59ud`jGBTpTB)?B)S99i0WErH4=,_Ja514]`tXk^lNFDX<':k2*a,#!r49C9`~>endstream
118
+ endobj
119
+ xref
120
+ 0 17
121
+ 0000000000 65535 f
122
+ 0000000061 00000 n
123
+ 0000000102 00000 n
124
+ 0000000209 00000 n
125
+ 0000000321 00000 n
126
+ 0000000516 00000 n
127
+ 0000000711 00000 n
128
+ 0000000906 00000 n
129
+ 0000001101 00000 n
130
+ 0000001296 00000 n
131
+ 0000001365 00000 n
132
+ 0000001646 00000 n
133
+ 0000001730 00000 n
134
+ 0000002939 00000 n
135
+ 0000004148 00000 n
136
+ 0000005359 00000 n
137
+ 0000006568 00000 n
138
+ trailer
139
+ <<
140
+ /ID
141
+ [<6915625d773a06cbaf0a61363162f4fe><6915625d773a06cbaf0a61363162f4fe>]
142
+ % ReportLab generated PDF document -- digest (opensource)
143
+
144
+ /Info 10 0 R
145
+ /Root 9 0 R
146
+ /Size 17
147
+ >>
148
+ startxref
149
+ 7779
150
+ %%EOF
@@ -6199,7 +6199,7 @@ function waitFor(getter, cb, opts) {
6199
6199
  });
6200
6200
  })();
6201
6201
 
6202
- },{"../page/utils/show-more-less":105}],54:[function(require,module,exports){
6202
+ },{"../page/utils/show-more-less":106}],54:[function(require,module,exports){
6203
6203
  "use strict";
6204
6204
 
6205
6205
  var Wick = Wick || {};
@@ -14835,7 +14835,7 @@ $(document).ready(function () {
14835
14835
  initStoreLocatorLoadMore();
14836
14836
  });
14837
14837
 
14838
- },{"../page/utils/loader":104}],93:[function(require,module,exports){
14838
+ },{"../page/utils/loader":105}],93:[function(require,module,exports){
14839
14839
  "use strict";
14840
14840
 
14841
14841
  var Wick = window.Wick || {};
@@ -14940,6 +14940,146 @@ $(document).ready(function () {
14940
14940
  },{}],97:[function(require,module,exports){
14941
14941
  "use strict";
14942
14942
 
14943
+ var _loader = require("../page/utils/loader");
14944
+ /* global PdfPreview */
14945
+
14946
+ /**
14947
+ * Prototype-only emulation of the TradePro "Choose Type of ID" PDF flow.
14948
+ *
14949
+ * On the live site this behaviour belongs to BE (Wick.ProofOfTrade in
14950
+ * tradepro-proof-of-trade.js), which uploads the file behind the full-page
14951
+ * loader, marks the field as attached, and swaps the ID list modal (#attach)
14952
+ * for a preview modal. This mirrors that flow for PDFs so the prototype can be
14953
+ * clicked through. What ships is the PdfPreview library, the markup and the
14954
+ * CSS; this file only lives in emulation.min.js.
14955
+ */
14956
+ var Wick = window.Wick = window.Wick || {};
14957
+ Wick.TradeProIdPdf = {
14958
+ // Stands in for the S3 upload round trip.
14959
+ UPLOAD_DELAY: 1000,
14960
+ // Shown for fields rendered as already attached, which have no File behind
14961
+ // them (the PDF counterpart of Letterhead's placeholder thumbnail).
14962
+ SAMPLE_PDF: 'img/lorem_ipsum.pdf',
14963
+ el: {
14964
+ field: '[data-pdf-preview-field]',
14965
+ fileInput: '.tradepro-attachment',
14966
+ trigger: '.signup-tradepro__modal-trigger',
14967
+ pdfIcon: '.tradepro-field__pdf-icon',
14968
+ paperclipIcon: '.icon__paperclip',
14969
+ cameraIcon: '.icon__camera',
14970
+ hasPdfClass: 'tradepro-field--has-pdf',
14971
+ loader: '.tradepro-id-loader',
14972
+ attachModal: '#attach',
14973
+ modal: '#pdf-preview',
14974
+ modalName: '.pdf-preview__name',
14975
+ preview: '#pdf-preview-viewer',
14976
+ yes: '.pdf-preview_yes',
14977
+ no: '.pdf-preview_no'
14978
+ },
14979
+ // Field whose PDF is open in the preview modal.
14980
+ $activeField: null,
14981
+ isPdfFile: function isPdfFile(file) {
14982
+ return !!file && file.type === 'application/pdf';
14983
+ },
14984
+ attach: function attach($field, file) {
14985
+ var el = Wick.TradeProIdPdf.el;
14986
+ $field.data('pdfFile', file);
14987
+ $field.attr('title', file.name);
14988
+ $field.find(el.pdfIcon).removeClass('d-none');
14989
+ $field.find(el.paperclipIcon).addClass('d-none');
14990
+ $field.find(el.cameraIcon).addClass('d-none');
14991
+ $field.addClass(el.hasPdfClass);
14992
+ },
14993
+ detach: function detach($field) {
14994
+ var el = Wick.TradeProIdPdf.el;
14995
+ $field.removeData('pdfFile');
14996
+ $field.removeAttr('title');
14997
+ $field.find(el.pdfIcon).addClass('d-none');
14998
+ $field.find(el.paperclipIcon).removeClass('d-none');
14999
+ $field.find(el.cameraIcon).removeClass('d-none');
15000
+ $field.removeClass(el.hasPdfClass);
15001
+ },
15002
+ handleFileChange: function handleFileChange() {
15003
+ var el = Wick.TradeProIdPdf.el;
15004
+ var $field = $(this).closest(el.field);
15005
+ var file = this.files && this.files[0];
15006
+
15007
+ // Images keep the prototype's static image flow.
15008
+ if (!Wick.TradeProIdPdf.isPdfFile(file)) {
15009
+ Wick.TradeProIdPdf.detach($field);
15010
+ return;
15011
+ }
15012
+ (0, _loader.showLoader)(el.loader);
15013
+ setTimeout(function () {
15014
+ (0, _loader.hideLoader)(el.loader);
15015
+ Wick.TradeProIdPdf.attach($field, file);
15016
+ }, Wick.TradeProIdPdf.UPLOAD_DELAY);
15017
+ },
15018
+ handleFieldClick: function handleFieldClick(event) {
15019
+ var el = Wick.TradeProIdPdf.el;
15020
+ var $field = $(this);
15021
+ if (!$field.hasClass(el.hasPdfClass)) {
15022
+ return;
15023
+ }
15024
+ event.preventDefault();
15025
+ Wick.TradeProIdPdf.$activeField = $field;
15026
+ $(el.modal).find(el.modalName).text($.trim($field.find(el.trigger).first().text()));
15027
+
15028
+ // Swap the modals rather than stacking them, as BE does for #capture.
15029
+ // Waiting for #attach to finish hiding stops Bootstrap from clearing
15030
+ // the body's modal-open class after the preview has opened.
15031
+ $(el.attachModal).one('hidden.bs.modal', function () {
15032
+ $(el.modal).modal('show');
15033
+ }).modal('hide');
15034
+ },
15035
+ handleModalShown: function handleModalShown() {
15036
+ var $field = Wick.TradeProIdPdf.$activeField;
15037
+ if ($field) {
15038
+ new PdfPreview(Wick.TradeProIdPdf.el.preview).load($field.data('pdfFile') || Wick.TradeProIdPdf.SAMPLE_PDF);
15039
+ }
15040
+ },
15041
+ handleModalHidden: function handleModalHidden() {
15042
+ var el = Wick.TradeProIdPdf.el;
15043
+ var preview = PdfPreview.get(el.preview);
15044
+ if (preview) {
15045
+ preview.reset();
15046
+ }
15047
+ Wick.TradeProIdPdf.$activeField = null;
15048
+ $(el.attachModal).modal('show');
15049
+ },
15050
+ handleYesClick: function handleYesClick(event) {
15051
+ event.preventDefault();
15052
+ $(Wick.TradeProIdPdf.el.modal).modal('hide');
15053
+ },
15054
+ handleNoClick: function handleNoClick(event) {
15055
+ event.preventDefault();
15056
+ var $field = Wick.TradeProIdPdf.$activeField;
15057
+ if ($field) {
15058
+ Wick.TradeProIdPdf.detach($field);
15059
+ // Deleting also forgets the chosen file, so the same one can be
15060
+ // picked again (an unchanged input fires no change event).
15061
+ $field.find(Wick.TradeProIdPdf.el.fileInput).val('');
15062
+ }
15063
+ $(Wick.TradeProIdPdf.el.modal).modal('hide');
15064
+ },
15065
+ init: function init() {
15066
+ var el = Wick.TradeProIdPdf.el;
15067
+ $(document).on('change', el.field + ' ' + el.fileInput, Wick.TradeProIdPdf.handleFileChange);
15068
+ $(document).on('click', el.field, Wick.TradeProIdPdf.handleFieldClick);
15069
+ $(el.modal).on('shown.bs.modal', Wick.TradeProIdPdf.handleModalShown).on('hidden.bs.modal', Wick.TradeProIdPdf.handleModalHidden).on('click', el.yes, Wick.TradeProIdPdf.handleYesClick).on('click', el.no, Wick.TradeProIdPdf.handleNoClick);
15070
+ }
15071
+ };
15072
+ $(document).ready(function () {
15073
+ var el = Wick.TradeProIdPdf.el;
15074
+ if (!$(el.field).length || !$(el.modal).length || typeof PdfPreview === 'undefined') {
15075
+ return;
15076
+ }
15077
+ Wick.TradeProIdPdf.init();
15078
+ });
15079
+
15080
+ },{"../page/utils/loader":105}],98:[function(require,module,exports){
15081
+ "use strict";
15082
+
14943
15083
  var Wick = Wick || {};
14944
15084
  Wick.User = function () {
14945
15085
  function isLoggedIn() {
@@ -14975,7 +15115,7 @@ Wick.User = function () {
14975
15115
  };
14976
15116
  }();
14977
15117
 
14978
- },{}],98:[function(require,module,exports){
15118
+ },{}],99:[function(require,module,exports){
14979
15119
  "use strict";
14980
15120
 
14981
15121
  var suppressQuantityReportValidityOnBlur = false;
@@ -15002,14 +15142,14 @@ $(document).off('keydown.quantityValidation', '#quantity-field').on('keydown.qua
15002
15142
  }, 150);
15003
15143
  });
15004
15144
 
15005
- },{}],99:[function(require,module,exports){
15145
+ },{}],100:[function(require,module,exports){
15006
15146
  "use strict";
15007
15147
 
15008
15148
  window.ACC = window.ACC || {};
15009
15149
  window.ACC.app = window.ACC.app || {};
15010
15150
  window.ACC.app.isVatToggleAvailable = !!$('.switch-vat input').length;
15011
15151
 
15012
- },{}],100:[function(require,module,exports){
15152
+ },{}],101:[function(require,module,exports){
15013
15153
  "use strict";
15014
15154
 
15015
15155
  var Wick = window.Wick || {};
@@ -15029,7 +15169,7 @@ $(document).ready(function () {
15029
15169
  }, 3000);
15030
15170
  });
15031
15171
 
15032
- },{}],101:[function(require,module,exports){
15172
+ },{}],102:[function(require,module,exports){
15033
15173
  "use strict";
15034
15174
 
15035
15175
  var _justAddedScenariosEmulation = require("./just-added-scenarios-emulation");
@@ -15053,7 +15193,7 @@ $(document).ready(function () {
15053
15193
  bindWhyNotAddToCartEvent();
15054
15194
  });
15055
15195
 
15056
- },{"./just-added-scenarios-emulation":63}],102:[function(require,module,exports){
15196
+ },{"./just-added-scenarios-emulation":63}],103:[function(require,module,exports){
15057
15197
  "use strict";
15058
15198
 
15059
15199
  var Wick = window.Wick = window.Wick || {};
@@ -15085,7 +15225,7 @@ Wick.Wismo = function () {
15085
15225
  });
15086
15226
  }();
15087
15227
 
15088
- },{}],103:[function(require,module,exports){
15228
+ },{}],104:[function(require,module,exports){
15089
15229
  "use strict";
15090
15230
 
15091
15231
  var Wick = Wick || {};
@@ -15164,7 +15304,7 @@ Wick.YourDetails = function () {
15164
15304
  });
15165
15305
  }();
15166
15306
 
15167
- },{}],104:[function(require,module,exports){
15307
+ },{}],105:[function(require,module,exports){
15168
15308
  "use strict";
15169
15309
 
15170
15310
  Object.defineProperty(exports, "__esModule", {
@@ -15190,7 +15330,7 @@ function hideLoader(loaderSelector) {
15190
15330
  $(defineLoaderWrapper(loaderSelector)).addClass(HIDDEN_CLASS_NAME);
15191
15331
  }
15192
15332
 
15193
- },{"../../../elements/loader.hbs":25}],105:[function(require,module,exports){
15333
+ },{"../../../elements/loader.hbs":25}],106:[function(require,module,exports){
15194
15334
  "use strict";
15195
15335
 
15196
15336
  Object.defineProperty(exports, "__esModule", {
@@ -15427,4 +15567,4 @@ function createShowMoreLess() {
15427
15567
  };
15428
15568
  }
15429
15569
 
15430
- },{"../../../elements/btn.hbs":24}]},{},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,44,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103]);
15570
+ },{"../../../elements/btn.hbs":24}]},{},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,44,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104]);
@@ -0,0 +1 @@
1
+ !function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.PdfPreview=e()}("undefined"!=typeof self?self:this,function(){"use strict";var a={scale:1.5,pageClass:"",src:null,fitWidth:!0,maxPixelRatio:2,height:"50vh",spacing:null,injectStyles:!0,pdfjsLib:null,pdfjsUrl:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js",pdfjsWorkerUrl:"https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js"},s={width:160,height:null,page:1,maxPixelRatio:a.maxPixelRatio,type:"image/jpeg",quality:.85,background:"#ffffff",pdfjsLib:a.pdfjsLib,pdfjsUrl:a.pdfjsUrl,pdfjsWorkerUrl:a.pdfjsWorkerUrl},l={root:"[data-pdf-preview]",pages:"[data-pdf-preview-pages]",first:"[data-pdf-preview-first]",prev:"[data-pdf-preview-prev]",next:"[data-pdf-preview-next]",last:"[data-pdf-preview-last]",pageInput:"[data-pdf-preview-page]",pageTotal:"[data-pdf-preview-total]",thumbnail:"[data-pdf-thumbnail]"},p={pages:"pdfp-pages",page:"pdfp-page",pageAuto:"pdfp-page--auto"},d="pdf-preview-base-styles",u="."+p.pages+"{overflow-y:auto;overflow-x:hidden;max-height:var(--pdfp-height);scrollbar-gutter:stable;padding:var(--pdfp-spacing,16px);-webkit-overflow-scrolling:touch}."+p.page+"{display:block;width:100%;height:auto;margin:0 auto}."+p.pageAuto+"{width:var(--pdfp-page-width,auto);max-width:100%}."+p.page+"+."+p.page+"{margin-top:var(--pdfp-spacing,16px)}",i=16777216,h="__pdfPreview",c="__pdfThumbnail",t=null,g=!1;function f(){}function m(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&void 0!==i[r]&&(t[r]=i[r])}return t}function v(t,e,i){var r;try{r=new CustomEvent(e,{detail:i,bubbles:!0})}catch(t){(r=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!1,i)}t.dispatchEvent(r)}function w(t,e){t=t.width*t.height*e*e;return i<t?e*Math.sqrt(i/t):e}function b(t){return null==t||""===t?null:/^-?\d+(\.\d+)?$/.test(String(t))?t+"px":String(t)}function _(t,e){for(var i=t?String(t).split(/\s+/):[],r=0;r<i.length;r++)if(i[r]===e)return t;return i.push(e),i.join(" ").replace(/^\s+/,"")}function P(t){return t?"string"==typeof t?document.querySelector(t):1!==t.nodeType&&"number"==typeof t.length?t[0]||null:1===t.nodeType?t:null:null}function y(e){var r;return e.pdfjsLib?Promise.resolve(e.pdfjsLib):window.pdfjsLib?Promise.resolve(window.pdfjsLib):(t||(r=e.pdfjsUrl,t=new Promise(function(t,e){var i=document.createElement("script");i.src=r,i.onload=t,i.onerror=function(){e(new Error("PdfPreview: failed to load "+r))},document.head.appendChild(i)}).then(function(){var t=window.pdfjsLib||window["pdfjs-dist/build/pdf"];if(t)return e.pdfjsWorkerUrl&&t.GlobalWorkerOptions&&(t.GlobalWorkerOptions.workerSrc=e.pdfjsWorkerUrl),window.pdfjsLib=t;throw new Error("PdfPreview: pdf.js did not register itself")})),t)}function n(t,e){var i,r=t.getViewport({scale:1}),n=(s=r,a=e,o=parseFloat(a.width),a=parseFloat(a.height),i=1/0,0<o&&(i=Math.min(i,o/s.width)),(i=0<a?Math.min(i,a/s.height):i)===1/0?1:i),o=Math.min(window.devicePixelRatio||1,e.maxPixelRatio),a=w(r,n*o),s=t.getViewport({scale:a}),l=document.createElement("canvas");return l.width=Math.floor(s.width),l.height=Math.floor(s.height),t.render({canvasContext:l.getContext("2d"),viewport:s,background:e.background}).promise.then(function(){var t=l.toDataURL(e.type,e.quality);return l.width=0,l.height=0,{dataUrl:t,width:Math.round(r.width*n),height:Math.round(r.height*n)}})}function C(e,i){var t=parseInt(i.page,10),r=Math.min(Math.max(isNaN(t)?1:t,1),e.numPages);return e.getPage(r).then(function(t){return n(t,i).then(function(t){return t.page=r,t.pageCount=e.numPages,t})})}function j(t,e){var i,r,t=P(t);if(!t)throw new Error("PdfPreview: root element not found");if(t[h])return t[h];if(!(this instanceof j))return new j(t,e);this.element=t,this.options=m({},a,(o=t,r=parseFloat(o.getAttribute("data-pdf-preview-scale")),n=parseFloat(o.getAttribute("data-pdf-preview-max-pixel-ratio")),i=o.getAttribute("data-pdf-preview-fit-width"),{scale:isNaN(r)?void 0:r,maxPixelRatio:isNaN(n)?void 0:n,pageClass:o.getAttribute("data-pdf-preview-page-class")||void 0,src:o.getAttribute("data-pdf-preview-src")||void 0,height:o.getAttribute("data-pdf-preview-height")||void 0,spacing:o.getAttribute("data-pdf-preview-spacing")||void 0,fitWidth:null===i?void 0:"false"!==i}),e),this.selectors=m({},l,(e||{}).selectors),this.pagesContainer=t.querySelector(this.selectors.pages)||t,this.doc=null,this.canvases=[],this.objectUrl=null,this._loadId=0,this._loadingTask=null,(t[h]=this).options.injectStyles&&(g=(g||document.getElementById(d)||((r=document.createElement("style")).id=d,r.appendChild(document.createTextNode(u)),document.head.insertBefore(r,document.head.firstChild)),!0),this.pagesContainer.className=_(this.pagesContainer.className,p.pages));var n=b(this.options.height),o=b(this.options.spacing);this.pagesContainer.style.setProperty&&(n&&this.pagesContainer.style.setProperty("--pdfp-height",n),o)&&this.pagesContainer.style.setProperty("--pdfp-spacing",o),this._bind(),this.options.src&&this.load(this.options.src)}return j.prototype._find=function(t){return t?this.element.querySelector(t):null},j.prototype._emit=function(t,e){v(this.element,t,e)},j.prototype._bind=function(){var r=this;this._onClick=function(t){var e=t.target;function i(t){return t&&e.closest(t)}if(i(r.selectors.first))r.goToPage(1);else if(i(r.selectors.prev))r.goToPage(r.getCurrentPage()-1);else if(i(r.selectors.next))r.goToPage(r.getCurrentPage()+1);else{if(!i(r.selectors.last))return;r.goToPage(r.getPageCount())}t.preventDefault()},this._onChange=function(t){r.selectors.pageInput&&t.target.closest(r.selectors.pageInput)&&(t=parseInt(t.target.value,10),!isNaN(t)&&1<=t&&t<=r.getPageCount()?r.goToPage(t):r._setPageInput(r.getCurrentPage()))},this._onScroll=function(t){t=t.target;(t===document||t.contains&&t.contains(r.pagesContainer))&&(r._scrollLocked?r._lockPageSync(150):r._scrollFrame||(r._scrollFrame=requestAnimationFrame(function(){r._scrollFrame=null,r._setPageInput(r.getCurrentPage())})))},this.element.addEventListener("click",this._onClick),this.element.addEventListener("change",this._onChange),document.addEventListener("scroll",this._onScroll,!0)},j.prototype._isScrollViewport=function(){return this.pagesContainer.scrollHeight>this.pagesContainer.clientHeight},j.prototype._lockPageSync=function(t){var e=this;this._scrollLocked=!0,clearTimeout(this._scrollTimer),this._scrollTimer=setTimeout(function(){e._scrollLocked=!1,e._setPageInput(e._targetPage||e.getCurrentPage()),e._targetPage=null},t)},j.prototype._setPageInput=function(t){var e=this._find(this.selectors.pageInput);e&&String(e.value)!==String(t)&&(e.value=t,this._emit("pdfpreview:pagechange",{page:t}))},j.prototype._setPageTotal=function(t){var e=this._find(this.selectors.pageTotal);e&&(e.textContent=t)},j.prototype._isCurrentLoad=function(t){return t===this._loadId},j.prototype._contentWidth=function(){var t=this.pagesContainer,e=window.getComputedStyle(t);return t.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)},j.prototype._displayScale=function(t){return this.options.fitWidth&&0<this._availableWidth?this._availableWidth/t:this.options.scale},j.prototype._renderPage=function(o,a){var s=this;return this.doc.getPage(o).then(function(t){var e,i,r,n;if(s._isCurrentLoad(a))return i=w(n=t.getViewport({scale:1}),(e=s._displayScale(n.width))*Math.min(window.devicePixelRatio||1,s.options.maxPixelRatio)),i=t.getViewport({scale:i}),(r=document.createElement("canvas")).width=Math.floor(i.width),r.height=Math.floor(i.height),r.setAttribute("data-page",o),r.style.setProperty&&r.style.setProperty("--pdfp-page-width",Math.round(n.width*e)+"px"),n="",s.options.injectStyles&&(n=_(n,p.page),s.options.fitWidth||(n=_(n,p.pageAuto))),(n=s.options.pageClass?_(n,s.options.pageClass):n)&&(r.className=n),s.pagesContainer.appendChild(r),s.canvases.push(r),t.render({canvasContext:r.getContext("2d"),viewport:i}).promise})},j.prototype._renderFrom=function(t,e){var i=this;return!this._isCurrentLoad(e)||!this.doc||t>this.doc.numPages?Promise.resolve():this._renderPage(t,e).then(function(){return i._renderFrom(t+1,e)})},j.prototype.load=function(i){var r=this;if(!i)return Promise.reject(new Error("PdfPreview: no source given"));this.reset();var n=++this._loadId;return y(this.options).then(function(t){var e;return r._isCurrentLoad(n)?("string"!=typeof(e=i)&&(r.objectUrl=URL.createObjectURL(i),e=r.objectUrl),r._loadingTask=t.getDocument({url:e,isEvalSupported:!1}),r._loadingTask.promise):null}).then(function(t){if(t){var e;if(r._isCurrentLoad(n))return r.doc=t,r._setPageTotal(t.numPages),(e=r._find(r.selectors.pageInput))&&(e.setAttribute("max",t.numPages),e.value=1),r._emit("pdfpreview:loaded",{pageCount:t.numPages}),r._availableWidth=r._contentWidth(),r._renderFrom(1,n).then(function(){return r._isCurrentLoad(n)?t:void 0});t.destroy()}}).catch(function(t){if(r._isCurrentLoad(n))throw r._emit("pdfpreview:error",{error:t}),t})},j.prototype.reset=function(){for(this._loadId++,this._loadingTask&&(this._loadingTask.destroy(),this._loadingTask=null);this.pagesContainer.firstChild;)this.pagesContainer.removeChild(this.pagesContainer.firstChild);this.canvases=[],this.doc=null,clearTimeout(this._scrollTimer),cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null,this._scrollLocked=!1,this._targetPage=null,this._setPageTotal("");var t=this._find(this.selectors.pageInput);t&&(t.value=1),this.objectUrl&&(URL.revokeObjectURL(this.objectUrl),this.objectUrl=null)},j.prototype.getPageCount=function(){return this.doc?this.doc.numPages:0},j.prototype.getThumbnail=function(t){var e,i=this;return this.doc?(t=m({},s,{maxPixelRatio:this.options.maxPixelRatio},t),e=this._loadId,C(this.doc,t).then(function(t){return i._isCurrentLoad(e)?t:void 0},function(t){if(i._isCurrentLoad(e))throw t})):Promise.reject(new Error("PdfPreview: no document loaded"))},j.prototype.getCurrentPage=function(){var t=this.canvases.length;if(!t)return 1;if(this._isScrollViewport()){var e=this.pagesContainer;if(e.scrollTop+e.clientHeight>=e.scrollHeight-1)return t;if(e.scrollTop<=0)return 1;var e=e.getBoundingClientRect(),i=e.top+e.height/2}else i=window.innerHeight/2;for(var r=1,n=1/0,o=0;o<t;o++){var a=this.canvases[o].getBoundingClientRect();if(a.top<=i&&a.bottom>=i)return o+1;a=Math.min(Math.abs(a.top-i),Math.abs(a.bottom-i));a<n&&(n=a,r=o+1)}return r},j.prototype.goToPage=function(t){var e,i,r=this.canvases[t-1];return!r||t<1||t>this.getPageCount()||(e=this.pagesContainer,this._setPageInput(t),this._targetPage=t,this._lockPageSync(700),this._isScrollViewport()?(t=r.getBoundingClientRect().top-e.getBoundingClientRect().top,i=parseFloat(window.getComputedStyle(e).paddingTop)||0,t=e.scrollTop+t-i,"scrollBehavior"in document.documentElement.style&&e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t):r.scrollIntoView({behavior:"smooth",block:"start"})),this},j.prototype.destroy=function(){this.reset(),clearTimeout(this._scrollTimer),this._scrollLocked=!1,this.element.removeEventListener("click",this._onClick),this.element.removeEventListener("change",this._onChange),document.removeEventListener("scroll",this._onScroll,!0),delete this.element[h]},j.thumbnail=function(i,t){var e,r,n;return i?(e=m({},s,t),n=r=null,y(e).then(function(t){var e=i;return"string"!=typeof i&&(e=r=URL.createObjectURL(i)),(n=t.getDocument({url:e,isEvalSupported:!1})).promise}).then(function(t){return C(t,e)}).then(function(t){return o(),t},function(t){throw o(),t})):Promise.reject(new Error("PdfPreview.thumbnail: no source given"));function o(){n&&(n.destroy(),n=null),r&&(URL.revokeObjectURL(r),r=null)}},j.thumbnailInto=function(t,e,i){var r,n,o,a,s=P(t);return s?"IMG"!==s.tagName?Promise.reject(new Error("PdfPreview.thumbnailInto: expects an <img> element")):(r=m({},(t=s,r=parseFloat(t.getAttribute("data-pdf-thumbnail-width")),n=parseFloat(t.getAttribute("data-pdf-thumbnail-height")),o=parseInt(t.getAttribute("data-pdf-thumbnail-page"),10),a=parseFloat(t.getAttribute("data-pdf-thumbnail-quality")),{src:t.getAttribute("data-pdf-thumbnail-src")||void 0,width:isNaN(r)?void 0:r,height:isNaN(n)?void 0:n,page:isNaN(o)?void 0:o,type:t.getAttribute("data-pdf-thumbnail-type")||void 0,quality:isNaN(a)?void 0:a}),i),j.thumbnail(e||r.src,r).then(function(t){return s.src=t.dataUrl,s.setAttribute("width",t.width),s.setAttribute("height",t.height),v(s,"pdfthumbnail:loaded",t),t},function(t){throw v(s,"pdfthumbnail:error",{error:t}),t})):Promise.reject(new Error("PdfPreview.thumbnailInto: element not found"))},j.initThumbnails=function(t,e){for(var i=(P(t)||document).querySelectorAll(l.thumbnail),r=[],n=0;n<i.length;n++){var o=i[n];o[c]||(o[c]=j.thumbnailInto(o,null,e),o[c].catch(f)),r.push(o[c])}return r},j.get=function(t){t=P(t);return t&&t[h]||null},j.initAll=function(t,e){for(var i=(P(t)||document).querySelectorAll(l.root),r=[],n=0;n<i.length;n++)r.push(new j(i[n],e));return r},j.defaults=a,j.thumbnailDefaults=s,j.selectors=l,j.classes=p,j});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wickes-css2",
3
- "version": "2.116.0",
3
+ "version": "2.117.0-develop.1",
4
4
  "description": "CSS and JS and page templates in use by Wickes",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  {{> modal }}
2
- {{#extend "modal" id="capture" title="Choose Type of ID" fullWidth=true classMod="capture"}}
2
+ {{#extend "modal" id="capture" title="Choose Type of ID" fullWidth=true classMod="capture" backdrop="true"}}
3
3
  {{#content "sections"}}
4
4
 
5
5
  {{#extend "modal-body-section" customSectionClass="id-capture"}}