@luftborn/custom-elements 2.12.0 → 2.12.2
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.
- package/demo/index.js +1364 -79
- package/demo/index.min.js +1363 -78
- package/demo/index.min.js.map +1 -1
- package/dist/elements/BankField/BankFieldElement.js +3 -3
- package/dist/elements/BankField/BankFieldElement.js.map +1 -1
- package/dist/elements/FileField/FileFieldElement.d.ts +7 -0
- package/dist/elements/FileField/FileFieldElement.js +224 -0
- package/dist/elements/FileField/FileFieldElement.js.map +1 -1
- package/package.json +2 -1
- package/src/elements/BankField/BankFieldElement.ts +3 -3
- package/src/elements/FileField/FileFieldElement.ts +152 -0
package/demo/index.min.js
CHANGED
|
@@ -11,7 +11,7 @@ document.onreadystatechange = function () {
|
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
},{"./../src/index":
|
|
14
|
+
},{"./../src/index":78}],2:[function(require,module,exports){
|
|
15
15
|
/**
|
|
16
16
|
@license @nocompile
|
|
17
17
|
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
@@ -403,7 +403,7 @@ var hj=window.customElements,ij=!1,jj=null;hj.polyfillWrapFlushCallback&&hj.poly
|
|
|
403
403
|
|
|
404
404
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("timers").setImmediate)
|
|
405
405
|
|
|
406
|
-
},{"timers":
|
|
406
|
+
},{"timers":9}],4:[function(require,module,exports){
|
|
407
407
|
/**
|
|
408
408
|
* @license
|
|
409
409
|
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
|
|
@@ -612,6 +612,1067 @@ var hj=window.customElements,ij=!1,jj=null;hj.polyfillWrapFlushCallback&&hj.poly
|
|
|
612
612
|
})();
|
|
613
613
|
|
|
614
614
|
},{}],5:[function(require,module,exports){
|
|
615
|
+
(function() {
|
|
616
|
+
|
|
617
|
+
var debug = false;
|
|
618
|
+
|
|
619
|
+
var root = this;
|
|
620
|
+
|
|
621
|
+
var EXIF = function(obj) {
|
|
622
|
+
if (obj instanceof EXIF) return obj;
|
|
623
|
+
if (!(this instanceof EXIF)) return new EXIF(obj);
|
|
624
|
+
this.EXIFwrapped = obj;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
if (typeof exports !== 'undefined') {
|
|
628
|
+
if (typeof module !== 'undefined' && module.exports) {
|
|
629
|
+
exports = module.exports = EXIF;
|
|
630
|
+
}
|
|
631
|
+
exports.EXIF = EXIF;
|
|
632
|
+
} else {
|
|
633
|
+
root.EXIF = EXIF;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
var ExifTags = EXIF.Tags = {
|
|
637
|
+
|
|
638
|
+
// version tags
|
|
639
|
+
0x9000 : "ExifVersion", // EXIF version
|
|
640
|
+
0xA000 : "FlashpixVersion", // Flashpix format version
|
|
641
|
+
|
|
642
|
+
// colorspace tags
|
|
643
|
+
0xA001 : "ColorSpace", // Color space information tag
|
|
644
|
+
|
|
645
|
+
// image configuration
|
|
646
|
+
0xA002 : "PixelXDimension", // Valid width of meaningful image
|
|
647
|
+
0xA003 : "PixelYDimension", // Valid height of meaningful image
|
|
648
|
+
0x9101 : "ComponentsConfiguration", // Information about channels
|
|
649
|
+
0x9102 : "CompressedBitsPerPixel", // Compressed bits per pixel
|
|
650
|
+
|
|
651
|
+
// user information
|
|
652
|
+
0x927C : "MakerNote", // Any desired information written by the manufacturer
|
|
653
|
+
0x9286 : "UserComment", // Comments by user
|
|
654
|
+
|
|
655
|
+
// related file
|
|
656
|
+
0xA004 : "RelatedSoundFile", // Name of related sound file
|
|
657
|
+
|
|
658
|
+
// date and time
|
|
659
|
+
0x9003 : "DateTimeOriginal", // Date and time when the original image was generated
|
|
660
|
+
0x9004 : "DateTimeDigitized", // Date and time when the image was stored digitally
|
|
661
|
+
0x9290 : "SubsecTime", // Fractions of seconds for DateTime
|
|
662
|
+
0x9291 : "SubsecTimeOriginal", // Fractions of seconds for DateTimeOriginal
|
|
663
|
+
0x9292 : "SubsecTimeDigitized", // Fractions of seconds for DateTimeDigitized
|
|
664
|
+
|
|
665
|
+
// picture-taking conditions
|
|
666
|
+
0x829A : "ExposureTime", // Exposure time (in seconds)
|
|
667
|
+
0x829D : "FNumber", // F number
|
|
668
|
+
0x8822 : "ExposureProgram", // Exposure program
|
|
669
|
+
0x8824 : "SpectralSensitivity", // Spectral sensitivity
|
|
670
|
+
0x8827 : "ISOSpeedRatings", // ISO speed rating
|
|
671
|
+
0x8828 : "OECF", // Optoelectric conversion factor
|
|
672
|
+
0x9201 : "ShutterSpeedValue", // Shutter speed
|
|
673
|
+
0x9202 : "ApertureValue", // Lens aperture
|
|
674
|
+
0x9203 : "BrightnessValue", // Value of brightness
|
|
675
|
+
0x9204 : "ExposureBias", // Exposure bias
|
|
676
|
+
0x9205 : "MaxApertureValue", // Smallest F number of lens
|
|
677
|
+
0x9206 : "SubjectDistance", // Distance to subject in meters
|
|
678
|
+
0x9207 : "MeteringMode", // Metering mode
|
|
679
|
+
0x9208 : "LightSource", // Kind of light source
|
|
680
|
+
0x9209 : "Flash", // Flash status
|
|
681
|
+
0x9214 : "SubjectArea", // Location and area of main subject
|
|
682
|
+
0x920A : "FocalLength", // Focal length of the lens in mm
|
|
683
|
+
0xA20B : "FlashEnergy", // Strobe energy in BCPS
|
|
684
|
+
0xA20C : "SpatialFrequencyResponse", //
|
|
685
|
+
0xA20E : "FocalPlaneXResolution", // Number of pixels in width direction per FocalPlaneResolutionUnit
|
|
686
|
+
0xA20F : "FocalPlaneYResolution", // Number of pixels in height direction per FocalPlaneResolutionUnit
|
|
687
|
+
0xA210 : "FocalPlaneResolutionUnit", // Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution
|
|
688
|
+
0xA214 : "SubjectLocation", // Location of subject in image
|
|
689
|
+
0xA215 : "ExposureIndex", // Exposure index selected on camera
|
|
690
|
+
0xA217 : "SensingMethod", // Image sensor type
|
|
691
|
+
0xA300 : "FileSource", // Image source (3 == DSC)
|
|
692
|
+
0xA301 : "SceneType", // Scene type (1 == directly photographed)
|
|
693
|
+
0xA302 : "CFAPattern", // Color filter array geometric pattern
|
|
694
|
+
0xA401 : "CustomRendered", // Special processing
|
|
695
|
+
0xA402 : "ExposureMode", // Exposure mode
|
|
696
|
+
0xA403 : "WhiteBalance", // 1 = auto white balance, 2 = manual
|
|
697
|
+
0xA404 : "DigitalZoomRation", // Digital zoom ratio
|
|
698
|
+
0xA405 : "FocalLengthIn35mmFilm", // Equivalent foacl length assuming 35mm film camera (in mm)
|
|
699
|
+
0xA406 : "SceneCaptureType", // Type of scene
|
|
700
|
+
0xA407 : "GainControl", // Degree of overall image gain adjustment
|
|
701
|
+
0xA408 : "Contrast", // Direction of contrast processing applied by camera
|
|
702
|
+
0xA409 : "Saturation", // Direction of saturation processing applied by camera
|
|
703
|
+
0xA40A : "Sharpness", // Direction of sharpness processing applied by camera
|
|
704
|
+
0xA40B : "DeviceSettingDescription", //
|
|
705
|
+
0xA40C : "SubjectDistanceRange", // Distance to subject
|
|
706
|
+
|
|
707
|
+
// other tags
|
|
708
|
+
0xA005 : "InteroperabilityIFDPointer",
|
|
709
|
+
0xA420 : "ImageUniqueID" // Identifier assigned uniquely to each image
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
var TiffTags = EXIF.TiffTags = {
|
|
713
|
+
0x0100 : "ImageWidth",
|
|
714
|
+
0x0101 : "ImageHeight",
|
|
715
|
+
0x8769 : "ExifIFDPointer",
|
|
716
|
+
0x8825 : "GPSInfoIFDPointer",
|
|
717
|
+
0xA005 : "InteroperabilityIFDPointer",
|
|
718
|
+
0x0102 : "BitsPerSample",
|
|
719
|
+
0x0103 : "Compression",
|
|
720
|
+
0x0106 : "PhotometricInterpretation",
|
|
721
|
+
0x0112 : "Orientation",
|
|
722
|
+
0x0115 : "SamplesPerPixel",
|
|
723
|
+
0x011C : "PlanarConfiguration",
|
|
724
|
+
0x0212 : "YCbCrSubSampling",
|
|
725
|
+
0x0213 : "YCbCrPositioning",
|
|
726
|
+
0x011A : "XResolution",
|
|
727
|
+
0x011B : "YResolution",
|
|
728
|
+
0x0128 : "ResolutionUnit",
|
|
729
|
+
0x0111 : "StripOffsets",
|
|
730
|
+
0x0116 : "RowsPerStrip",
|
|
731
|
+
0x0117 : "StripByteCounts",
|
|
732
|
+
0x0201 : "JPEGInterchangeFormat",
|
|
733
|
+
0x0202 : "JPEGInterchangeFormatLength",
|
|
734
|
+
0x012D : "TransferFunction",
|
|
735
|
+
0x013E : "WhitePoint",
|
|
736
|
+
0x013F : "PrimaryChromaticities",
|
|
737
|
+
0x0211 : "YCbCrCoefficients",
|
|
738
|
+
0x0214 : "ReferenceBlackWhite",
|
|
739
|
+
0x0132 : "DateTime",
|
|
740
|
+
0x010E : "ImageDescription",
|
|
741
|
+
0x010F : "Make",
|
|
742
|
+
0x0110 : "Model",
|
|
743
|
+
0x0131 : "Software",
|
|
744
|
+
0x013B : "Artist",
|
|
745
|
+
0x8298 : "Copyright"
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
var GPSTags = EXIF.GPSTags = {
|
|
749
|
+
0x0000 : "GPSVersionID",
|
|
750
|
+
0x0001 : "GPSLatitudeRef",
|
|
751
|
+
0x0002 : "GPSLatitude",
|
|
752
|
+
0x0003 : "GPSLongitudeRef",
|
|
753
|
+
0x0004 : "GPSLongitude",
|
|
754
|
+
0x0005 : "GPSAltitudeRef",
|
|
755
|
+
0x0006 : "GPSAltitude",
|
|
756
|
+
0x0007 : "GPSTimeStamp",
|
|
757
|
+
0x0008 : "GPSSatellites",
|
|
758
|
+
0x0009 : "GPSStatus",
|
|
759
|
+
0x000A : "GPSMeasureMode",
|
|
760
|
+
0x000B : "GPSDOP",
|
|
761
|
+
0x000C : "GPSSpeedRef",
|
|
762
|
+
0x000D : "GPSSpeed",
|
|
763
|
+
0x000E : "GPSTrackRef",
|
|
764
|
+
0x000F : "GPSTrack",
|
|
765
|
+
0x0010 : "GPSImgDirectionRef",
|
|
766
|
+
0x0011 : "GPSImgDirection",
|
|
767
|
+
0x0012 : "GPSMapDatum",
|
|
768
|
+
0x0013 : "GPSDestLatitudeRef",
|
|
769
|
+
0x0014 : "GPSDestLatitude",
|
|
770
|
+
0x0015 : "GPSDestLongitudeRef",
|
|
771
|
+
0x0016 : "GPSDestLongitude",
|
|
772
|
+
0x0017 : "GPSDestBearingRef",
|
|
773
|
+
0x0018 : "GPSDestBearing",
|
|
774
|
+
0x0019 : "GPSDestDistanceRef",
|
|
775
|
+
0x001A : "GPSDestDistance",
|
|
776
|
+
0x001B : "GPSProcessingMethod",
|
|
777
|
+
0x001C : "GPSAreaInformation",
|
|
778
|
+
0x001D : "GPSDateStamp",
|
|
779
|
+
0x001E : "GPSDifferential"
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
// EXIF 2.3 Spec
|
|
783
|
+
var IFD1Tags = EXIF.IFD1Tags = {
|
|
784
|
+
0x0100: "ImageWidth",
|
|
785
|
+
0x0101: "ImageHeight",
|
|
786
|
+
0x0102: "BitsPerSample",
|
|
787
|
+
0x0103: "Compression",
|
|
788
|
+
0x0106: "PhotometricInterpretation",
|
|
789
|
+
0x0111: "StripOffsets",
|
|
790
|
+
0x0112: "Orientation",
|
|
791
|
+
0x0115: "SamplesPerPixel",
|
|
792
|
+
0x0116: "RowsPerStrip",
|
|
793
|
+
0x0117: "StripByteCounts",
|
|
794
|
+
0x011A: "XResolution",
|
|
795
|
+
0x011B: "YResolution",
|
|
796
|
+
0x011C: "PlanarConfiguration",
|
|
797
|
+
0x0128: "ResolutionUnit",
|
|
798
|
+
0x0201: "JpegIFOffset", // When image format is JPEG, this value show offset to JPEG data stored.(aka "ThumbnailOffset" or "JPEGInterchangeFormat")
|
|
799
|
+
0x0202: "JpegIFByteCount", // When image format is JPEG, this value shows data size of JPEG image (aka "ThumbnailLength" or "JPEGInterchangeFormatLength")
|
|
800
|
+
0x0211: "YCbCrCoefficients",
|
|
801
|
+
0x0212: "YCbCrSubSampling",
|
|
802
|
+
0x0213: "YCbCrPositioning",
|
|
803
|
+
0x0214: "ReferenceBlackWhite"
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
var StringValues = EXIF.StringValues = {
|
|
807
|
+
ExposureProgram : {
|
|
808
|
+
0 : "Not defined",
|
|
809
|
+
1 : "Manual",
|
|
810
|
+
2 : "Normal program",
|
|
811
|
+
3 : "Aperture priority",
|
|
812
|
+
4 : "Shutter priority",
|
|
813
|
+
5 : "Creative program",
|
|
814
|
+
6 : "Action program",
|
|
815
|
+
7 : "Portrait mode",
|
|
816
|
+
8 : "Landscape mode"
|
|
817
|
+
},
|
|
818
|
+
MeteringMode : {
|
|
819
|
+
0 : "Unknown",
|
|
820
|
+
1 : "Average",
|
|
821
|
+
2 : "CenterWeightedAverage",
|
|
822
|
+
3 : "Spot",
|
|
823
|
+
4 : "MultiSpot",
|
|
824
|
+
5 : "Pattern",
|
|
825
|
+
6 : "Partial",
|
|
826
|
+
255 : "Other"
|
|
827
|
+
},
|
|
828
|
+
LightSource : {
|
|
829
|
+
0 : "Unknown",
|
|
830
|
+
1 : "Daylight",
|
|
831
|
+
2 : "Fluorescent",
|
|
832
|
+
3 : "Tungsten (incandescent light)",
|
|
833
|
+
4 : "Flash",
|
|
834
|
+
9 : "Fine weather",
|
|
835
|
+
10 : "Cloudy weather",
|
|
836
|
+
11 : "Shade",
|
|
837
|
+
12 : "Daylight fluorescent (D 5700 - 7100K)",
|
|
838
|
+
13 : "Day white fluorescent (N 4600 - 5400K)",
|
|
839
|
+
14 : "Cool white fluorescent (W 3900 - 4500K)",
|
|
840
|
+
15 : "White fluorescent (WW 3200 - 3700K)",
|
|
841
|
+
17 : "Standard light A",
|
|
842
|
+
18 : "Standard light B",
|
|
843
|
+
19 : "Standard light C",
|
|
844
|
+
20 : "D55",
|
|
845
|
+
21 : "D65",
|
|
846
|
+
22 : "D75",
|
|
847
|
+
23 : "D50",
|
|
848
|
+
24 : "ISO studio tungsten",
|
|
849
|
+
255 : "Other"
|
|
850
|
+
},
|
|
851
|
+
Flash : {
|
|
852
|
+
0x0000 : "Flash did not fire",
|
|
853
|
+
0x0001 : "Flash fired",
|
|
854
|
+
0x0005 : "Strobe return light not detected",
|
|
855
|
+
0x0007 : "Strobe return light detected",
|
|
856
|
+
0x0009 : "Flash fired, compulsory flash mode",
|
|
857
|
+
0x000D : "Flash fired, compulsory flash mode, return light not detected",
|
|
858
|
+
0x000F : "Flash fired, compulsory flash mode, return light detected",
|
|
859
|
+
0x0010 : "Flash did not fire, compulsory flash mode",
|
|
860
|
+
0x0018 : "Flash did not fire, auto mode",
|
|
861
|
+
0x0019 : "Flash fired, auto mode",
|
|
862
|
+
0x001D : "Flash fired, auto mode, return light not detected",
|
|
863
|
+
0x001F : "Flash fired, auto mode, return light detected",
|
|
864
|
+
0x0020 : "No flash function",
|
|
865
|
+
0x0041 : "Flash fired, red-eye reduction mode",
|
|
866
|
+
0x0045 : "Flash fired, red-eye reduction mode, return light not detected",
|
|
867
|
+
0x0047 : "Flash fired, red-eye reduction mode, return light detected",
|
|
868
|
+
0x0049 : "Flash fired, compulsory flash mode, red-eye reduction mode",
|
|
869
|
+
0x004D : "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",
|
|
870
|
+
0x004F : "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",
|
|
871
|
+
0x0059 : "Flash fired, auto mode, red-eye reduction mode",
|
|
872
|
+
0x005D : "Flash fired, auto mode, return light not detected, red-eye reduction mode",
|
|
873
|
+
0x005F : "Flash fired, auto mode, return light detected, red-eye reduction mode"
|
|
874
|
+
},
|
|
875
|
+
SensingMethod : {
|
|
876
|
+
1 : "Not defined",
|
|
877
|
+
2 : "One-chip color area sensor",
|
|
878
|
+
3 : "Two-chip color area sensor",
|
|
879
|
+
4 : "Three-chip color area sensor",
|
|
880
|
+
5 : "Color sequential area sensor",
|
|
881
|
+
7 : "Trilinear sensor",
|
|
882
|
+
8 : "Color sequential linear sensor"
|
|
883
|
+
},
|
|
884
|
+
SceneCaptureType : {
|
|
885
|
+
0 : "Standard",
|
|
886
|
+
1 : "Landscape",
|
|
887
|
+
2 : "Portrait",
|
|
888
|
+
3 : "Night scene"
|
|
889
|
+
},
|
|
890
|
+
SceneType : {
|
|
891
|
+
1 : "Directly photographed"
|
|
892
|
+
},
|
|
893
|
+
CustomRendered : {
|
|
894
|
+
0 : "Normal process",
|
|
895
|
+
1 : "Custom process"
|
|
896
|
+
},
|
|
897
|
+
WhiteBalance : {
|
|
898
|
+
0 : "Auto white balance",
|
|
899
|
+
1 : "Manual white balance"
|
|
900
|
+
},
|
|
901
|
+
GainControl : {
|
|
902
|
+
0 : "None",
|
|
903
|
+
1 : "Low gain up",
|
|
904
|
+
2 : "High gain up",
|
|
905
|
+
3 : "Low gain down",
|
|
906
|
+
4 : "High gain down"
|
|
907
|
+
},
|
|
908
|
+
Contrast : {
|
|
909
|
+
0 : "Normal",
|
|
910
|
+
1 : "Soft",
|
|
911
|
+
2 : "Hard"
|
|
912
|
+
},
|
|
913
|
+
Saturation : {
|
|
914
|
+
0 : "Normal",
|
|
915
|
+
1 : "Low saturation",
|
|
916
|
+
2 : "High saturation"
|
|
917
|
+
},
|
|
918
|
+
Sharpness : {
|
|
919
|
+
0 : "Normal",
|
|
920
|
+
1 : "Soft",
|
|
921
|
+
2 : "Hard"
|
|
922
|
+
},
|
|
923
|
+
SubjectDistanceRange : {
|
|
924
|
+
0 : "Unknown",
|
|
925
|
+
1 : "Macro",
|
|
926
|
+
2 : "Close view",
|
|
927
|
+
3 : "Distant view"
|
|
928
|
+
},
|
|
929
|
+
FileSource : {
|
|
930
|
+
3 : "DSC"
|
|
931
|
+
},
|
|
932
|
+
|
|
933
|
+
Components : {
|
|
934
|
+
0 : "",
|
|
935
|
+
1 : "Y",
|
|
936
|
+
2 : "Cb",
|
|
937
|
+
3 : "Cr",
|
|
938
|
+
4 : "R",
|
|
939
|
+
5 : "G",
|
|
940
|
+
6 : "B"
|
|
941
|
+
}
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
function addEvent(element, event, handler) {
|
|
945
|
+
if (element.addEventListener) {
|
|
946
|
+
element.addEventListener(event, handler, false);
|
|
947
|
+
} else if (element.attachEvent) {
|
|
948
|
+
element.attachEvent("on" + event, handler);
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
function imageHasData(img) {
|
|
953
|
+
return !!(img.exifdata);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
function base64ToArrayBuffer(base64, contentType) {
|
|
958
|
+
contentType = contentType || base64.match(/^data\:([^\;]+)\;base64,/mi)[1] || ''; // e.g. 'data:image/jpeg;base64,...' => 'image/jpeg'
|
|
959
|
+
base64 = base64.replace(/^data\:([^\;]+)\;base64,/gmi, '');
|
|
960
|
+
var binary = atob(base64);
|
|
961
|
+
var len = binary.length;
|
|
962
|
+
var buffer = new ArrayBuffer(len);
|
|
963
|
+
var view = new Uint8Array(buffer);
|
|
964
|
+
for (var i = 0; i < len; i++) {
|
|
965
|
+
view[i] = binary.charCodeAt(i);
|
|
966
|
+
}
|
|
967
|
+
return buffer;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
function objectURLToBlob(url, callback) {
|
|
971
|
+
var http = new XMLHttpRequest();
|
|
972
|
+
http.open("GET", url, true);
|
|
973
|
+
http.responseType = "blob";
|
|
974
|
+
http.onload = function(e) {
|
|
975
|
+
if (this.status == 200 || this.status === 0) {
|
|
976
|
+
callback(this.response);
|
|
977
|
+
}
|
|
978
|
+
};
|
|
979
|
+
http.send();
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
function getImageData(img, callback) {
|
|
983
|
+
function handleBinaryFile(binFile) {
|
|
984
|
+
var data = findEXIFinJPEG(binFile);
|
|
985
|
+
img.exifdata = data || {};
|
|
986
|
+
var iptcdata = findIPTCinJPEG(binFile);
|
|
987
|
+
img.iptcdata = iptcdata || {};
|
|
988
|
+
if (EXIF.isXmpEnabled) {
|
|
989
|
+
var xmpdata= findXMPinJPEG(binFile);
|
|
990
|
+
img.xmpdata = xmpdata || {};
|
|
991
|
+
}
|
|
992
|
+
if (callback) {
|
|
993
|
+
callback.call(img);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
if (img.src) {
|
|
998
|
+
if (/^data\:/i.test(img.src)) { // Data URI
|
|
999
|
+
var arrayBuffer = base64ToArrayBuffer(img.src);
|
|
1000
|
+
handleBinaryFile(arrayBuffer);
|
|
1001
|
+
|
|
1002
|
+
} else if (/^blob\:/i.test(img.src)) { // Object URL
|
|
1003
|
+
var fileReader = new FileReader();
|
|
1004
|
+
fileReader.onload = function(e) {
|
|
1005
|
+
handleBinaryFile(e.target.result);
|
|
1006
|
+
};
|
|
1007
|
+
objectURLToBlob(img.src, function (blob) {
|
|
1008
|
+
fileReader.readAsArrayBuffer(blob);
|
|
1009
|
+
});
|
|
1010
|
+
} else {
|
|
1011
|
+
var http = new XMLHttpRequest();
|
|
1012
|
+
http.onload = function() {
|
|
1013
|
+
if (this.status == 200 || this.status === 0) {
|
|
1014
|
+
handleBinaryFile(http.response);
|
|
1015
|
+
} else {
|
|
1016
|
+
throw "Could not load image";
|
|
1017
|
+
}
|
|
1018
|
+
http = null;
|
|
1019
|
+
};
|
|
1020
|
+
http.open("GET", img.src, true);
|
|
1021
|
+
http.responseType = "arraybuffer";
|
|
1022
|
+
http.send(null);
|
|
1023
|
+
}
|
|
1024
|
+
} else if (self.FileReader && (img instanceof self.Blob || img instanceof self.File)) {
|
|
1025
|
+
var fileReader = new FileReader();
|
|
1026
|
+
fileReader.onload = function(e) {
|
|
1027
|
+
if (debug) console.log("Got file of length " + e.target.result.byteLength);
|
|
1028
|
+
handleBinaryFile(e.target.result);
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
fileReader.readAsArrayBuffer(img);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
function findEXIFinJPEG(file) {
|
|
1036
|
+
var dataView = new DataView(file);
|
|
1037
|
+
|
|
1038
|
+
if (debug) console.log("Got file of length " + file.byteLength);
|
|
1039
|
+
if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) {
|
|
1040
|
+
if (debug) console.log("Not a valid JPEG");
|
|
1041
|
+
return false; // not a valid jpeg
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
var offset = 2,
|
|
1045
|
+
length = file.byteLength,
|
|
1046
|
+
marker;
|
|
1047
|
+
|
|
1048
|
+
while (offset < length) {
|
|
1049
|
+
if (dataView.getUint8(offset) != 0xFF) {
|
|
1050
|
+
if (debug) console.log("Not a valid marker at offset " + offset + ", found: " + dataView.getUint8(offset));
|
|
1051
|
+
return false; // not a valid marker, something is wrong
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
marker = dataView.getUint8(offset + 1);
|
|
1055
|
+
if (debug) console.log(marker);
|
|
1056
|
+
|
|
1057
|
+
// we could implement handling for other markers here,
|
|
1058
|
+
// but we're only looking for 0xFFE1 for EXIF data
|
|
1059
|
+
|
|
1060
|
+
if (marker == 225) {
|
|
1061
|
+
if (debug) console.log("Found 0xFFE1 marker");
|
|
1062
|
+
|
|
1063
|
+
return readEXIFData(dataView, offset + 4, dataView.getUint16(offset + 2) - 2);
|
|
1064
|
+
|
|
1065
|
+
// offset += 2 + file.getShortAt(offset+2, true);
|
|
1066
|
+
|
|
1067
|
+
} else {
|
|
1068
|
+
offset += 2 + dataView.getUint16(offset+2);
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
function findIPTCinJPEG(file) {
|
|
1076
|
+
var dataView = new DataView(file);
|
|
1077
|
+
|
|
1078
|
+
if (debug) console.log("Got file of length " + file.byteLength);
|
|
1079
|
+
if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) {
|
|
1080
|
+
if (debug) console.log("Not a valid JPEG");
|
|
1081
|
+
return false; // not a valid jpeg
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
var offset = 2,
|
|
1085
|
+
length = file.byteLength;
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
var isFieldSegmentStart = function(dataView, offset){
|
|
1089
|
+
return (
|
|
1090
|
+
dataView.getUint8(offset) === 0x38 &&
|
|
1091
|
+
dataView.getUint8(offset+1) === 0x42 &&
|
|
1092
|
+
dataView.getUint8(offset+2) === 0x49 &&
|
|
1093
|
+
dataView.getUint8(offset+3) === 0x4D &&
|
|
1094
|
+
dataView.getUint8(offset+4) === 0x04 &&
|
|
1095
|
+
dataView.getUint8(offset+5) === 0x04
|
|
1096
|
+
);
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
while (offset < length) {
|
|
1100
|
+
|
|
1101
|
+
if ( isFieldSegmentStart(dataView, offset )){
|
|
1102
|
+
|
|
1103
|
+
// Get the length of the name header (which is padded to an even number of bytes)
|
|
1104
|
+
var nameHeaderLength = dataView.getUint8(offset+7);
|
|
1105
|
+
if(nameHeaderLength % 2 !== 0) nameHeaderLength += 1;
|
|
1106
|
+
// Check for pre photoshop 6 format
|
|
1107
|
+
if(nameHeaderLength === 0) {
|
|
1108
|
+
// Always 4
|
|
1109
|
+
nameHeaderLength = 4;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
var startOffset = offset + 8 + nameHeaderLength;
|
|
1113
|
+
var sectionLength = dataView.getUint16(offset + 6 + nameHeaderLength);
|
|
1114
|
+
|
|
1115
|
+
return readIPTCData(file, startOffset, sectionLength);
|
|
1116
|
+
|
|
1117
|
+
break;
|
|
1118
|
+
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
// Not the marker, continue searching
|
|
1123
|
+
offset++;
|
|
1124
|
+
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
}
|
|
1128
|
+
var IptcFieldMap = {
|
|
1129
|
+
0x78 : 'caption',
|
|
1130
|
+
0x6E : 'credit',
|
|
1131
|
+
0x19 : 'keywords',
|
|
1132
|
+
0x37 : 'dateCreated',
|
|
1133
|
+
0x50 : 'byline',
|
|
1134
|
+
0x55 : 'bylineTitle',
|
|
1135
|
+
0x7A : 'captionWriter',
|
|
1136
|
+
0x69 : 'headline',
|
|
1137
|
+
0x74 : 'copyright',
|
|
1138
|
+
0x0F : 'category'
|
|
1139
|
+
};
|
|
1140
|
+
function readIPTCData(file, startOffset, sectionLength){
|
|
1141
|
+
var dataView = new DataView(file);
|
|
1142
|
+
var data = {};
|
|
1143
|
+
var fieldValue, fieldName, dataSize, segmentType, segmentSize;
|
|
1144
|
+
var segmentStartPos = startOffset;
|
|
1145
|
+
while(segmentStartPos < startOffset+sectionLength) {
|
|
1146
|
+
if(dataView.getUint8(segmentStartPos) === 0x1C && dataView.getUint8(segmentStartPos+1) === 0x02){
|
|
1147
|
+
segmentType = dataView.getUint8(segmentStartPos+2);
|
|
1148
|
+
if(segmentType in IptcFieldMap) {
|
|
1149
|
+
dataSize = dataView.getInt16(segmentStartPos+3);
|
|
1150
|
+
segmentSize = dataSize + 5;
|
|
1151
|
+
fieldName = IptcFieldMap[segmentType];
|
|
1152
|
+
fieldValue = getStringFromDB(dataView, segmentStartPos+5, dataSize);
|
|
1153
|
+
// Check if we already stored a value with this name
|
|
1154
|
+
if(data.hasOwnProperty(fieldName)) {
|
|
1155
|
+
// Value already stored with this name, create multivalue field
|
|
1156
|
+
if(data[fieldName] instanceof Array) {
|
|
1157
|
+
data[fieldName].push(fieldValue);
|
|
1158
|
+
}
|
|
1159
|
+
else {
|
|
1160
|
+
data[fieldName] = [data[fieldName], fieldValue];
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
else {
|
|
1164
|
+
data[fieldName] = fieldValue;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
}
|
|
1169
|
+
segmentStartPos++;
|
|
1170
|
+
}
|
|
1171
|
+
return data;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
|
|
1176
|
+
function readTags(file, tiffStart, dirStart, strings, bigEnd) {
|
|
1177
|
+
var entries = file.getUint16(dirStart, !bigEnd),
|
|
1178
|
+
tags = {},
|
|
1179
|
+
entryOffset, tag,
|
|
1180
|
+
i;
|
|
1181
|
+
|
|
1182
|
+
for (i=0;i<entries;i++) {
|
|
1183
|
+
entryOffset = dirStart + i*12 + 2;
|
|
1184
|
+
tag = strings[file.getUint16(entryOffset, !bigEnd)];
|
|
1185
|
+
if (!tag && debug) console.log("Unknown tag: " + file.getUint16(entryOffset, !bigEnd));
|
|
1186
|
+
tags[tag] = readTagValue(file, entryOffset, tiffStart, dirStart, bigEnd);
|
|
1187
|
+
}
|
|
1188
|
+
return tags;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
function readTagValue(file, entryOffset, tiffStart, dirStart, bigEnd) {
|
|
1193
|
+
var type = file.getUint16(entryOffset+2, !bigEnd),
|
|
1194
|
+
numValues = file.getUint32(entryOffset+4, !bigEnd),
|
|
1195
|
+
valueOffset = file.getUint32(entryOffset+8, !bigEnd) + tiffStart,
|
|
1196
|
+
offset,
|
|
1197
|
+
vals, val, n,
|
|
1198
|
+
numerator, denominator;
|
|
1199
|
+
|
|
1200
|
+
switch (type) {
|
|
1201
|
+
case 1: // byte, 8-bit unsigned int
|
|
1202
|
+
case 7: // undefined, 8-bit byte, value depending on field
|
|
1203
|
+
if (numValues == 1) {
|
|
1204
|
+
return file.getUint8(entryOffset + 8, !bigEnd);
|
|
1205
|
+
} else {
|
|
1206
|
+
offset = numValues > 4 ? valueOffset : (entryOffset + 8);
|
|
1207
|
+
vals = [];
|
|
1208
|
+
for (n=0;n<numValues;n++) {
|
|
1209
|
+
vals[n] = file.getUint8(offset + n);
|
|
1210
|
+
}
|
|
1211
|
+
return vals;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
case 2: // ascii, 8-bit byte
|
|
1215
|
+
offset = numValues > 4 ? valueOffset : (entryOffset + 8);
|
|
1216
|
+
return getStringFromDB(file, offset, numValues-1);
|
|
1217
|
+
|
|
1218
|
+
case 3: // short, 16 bit int
|
|
1219
|
+
if (numValues == 1) {
|
|
1220
|
+
return file.getUint16(entryOffset + 8, !bigEnd);
|
|
1221
|
+
} else {
|
|
1222
|
+
offset = numValues > 2 ? valueOffset : (entryOffset + 8);
|
|
1223
|
+
vals = [];
|
|
1224
|
+
for (n=0;n<numValues;n++) {
|
|
1225
|
+
vals[n] = file.getUint16(offset + 2*n, !bigEnd);
|
|
1226
|
+
}
|
|
1227
|
+
return vals;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
case 4: // long, 32 bit int
|
|
1231
|
+
if (numValues == 1) {
|
|
1232
|
+
return file.getUint32(entryOffset + 8, !bigEnd);
|
|
1233
|
+
} else {
|
|
1234
|
+
vals = [];
|
|
1235
|
+
for (n=0;n<numValues;n++) {
|
|
1236
|
+
vals[n] = file.getUint32(valueOffset + 4*n, !bigEnd);
|
|
1237
|
+
}
|
|
1238
|
+
return vals;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
case 5: // rational = two long values, first is numerator, second is denominator
|
|
1242
|
+
if (numValues == 1) {
|
|
1243
|
+
numerator = file.getUint32(valueOffset, !bigEnd);
|
|
1244
|
+
denominator = file.getUint32(valueOffset+4, !bigEnd);
|
|
1245
|
+
val = new Number(numerator / denominator);
|
|
1246
|
+
val.numerator = numerator;
|
|
1247
|
+
val.denominator = denominator;
|
|
1248
|
+
return val;
|
|
1249
|
+
} else {
|
|
1250
|
+
vals = [];
|
|
1251
|
+
for (n=0;n<numValues;n++) {
|
|
1252
|
+
numerator = file.getUint32(valueOffset + 8*n, !bigEnd);
|
|
1253
|
+
denominator = file.getUint32(valueOffset+4 + 8*n, !bigEnd);
|
|
1254
|
+
vals[n] = new Number(numerator / denominator);
|
|
1255
|
+
vals[n].numerator = numerator;
|
|
1256
|
+
vals[n].denominator = denominator;
|
|
1257
|
+
}
|
|
1258
|
+
return vals;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
case 9: // slong, 32 bit signed int
|
|
1262
|
+
if (numValues == 1) {
|
|
1263
|
+
return file.getInt32(entryOffset + 8, !bigEnd);
|
|
1264
|
+
} else {
|
|
1265
|
+
vals = [];
|
|
1266
|
+
for (n=0;n<numValues;n++) {
|
|
1267
|
+
vals[n] = file.getInt32(valueOffset + 4*n, !bigEnd);
|
|
1268
|
+
}
|
|
1269
|
+
return vals;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
case 10: // signed rational, two slongs, first is numerator, second is denominator
|
|
1273
|
+
if (numValues == 1) {
|
|
1274
|
+
return file.getInt32(valueOffset, !bigEnd) / file.getInt32(valueOffset+4, !bigEnd);
|
|
1275
|
+
} else {
|
|
1276
|
+
vals = [];
|
|
1277
|
+
for (n=0;n<numValues;n++) {
|
|
1278
|
+
vals[n] = file.getInt32(valueOffset + 8*n, !bigEnd) / file.getInt32(valueOffset+4 + 8*n, !bigEnd);
|
|
1279
|
+
}
|
|
1280
|
+
return vals;
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Given an IFD (Image File Directory) start offset
|
|
1287
|
+
* returns an offset to next IFD or 0 if it's the last IFD.
|
|
1288
|
+
*/
|
|
1289
|
+
function getNextIFDOffset(dataView, dirStart, bigEnd){
|
|
1290
|
+
//the first 2bytes means the number of directory entries contains in this IFD
|
|
1291
|
+
var entries = dataView.getUint16(dirStart, !bigEnd);
|
|
1292
|
+
|
|
1293
|
+
// After last directory entry, there is a 4bytes of data,
|
|
1294
|
+
// it means an offset to next IFD.
|
|
1295
|
+
// If its value is '0x00000000', it means this is the last IFD and there is no linked IFD.
|
|
1296
|
+
|
|
1297
|
+
return dataView.getUint32(dirStart + 2 + entries * 12, !bigEnd); // each entry is 12 bytes long
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
function readThumbnailImage(dataView, tiffStart, firstIFDOffset, bigEnd){
|
|
1301
|
+
// get the IFD1 offset
|
|
1302
|
+
var IFD1OffsetPointer = getNextIFDOffset(dataView, tiffStart+firstIFDOffset, bigEnd);
|
|
1303
|
+
|
|
1304
|
+
if (!IFD1OffsetPointer) {
|
|
1305
|
+
// console.log('******** IFD1Offset is empty, image thumb not found ********');
|
|
1306
|
+
return {};
|
|
1307
|
+
}
|
|
1308
|
+
else if (IFD1OffsetPointer > dataView.byteLength) { // this should not happen
|
|
1309
|
+
// console.log('******** IFD1Offset is outside the bounds of the DataView ********');
|
|
1310
|
+
return {};
|
|
1311
|
+
}
|
|
1312
|
+
// console.log('******* thumbnail IFD offset (IFD1) is: %s', IFD1OffsetPointer);
|
|
1313
|
+
|
|
1314
|
+
var thumbTags = readTags(dataView, tiffStart, tiffStart + IFD1OffsetPointer, IFD1Tags, bigEnd)
|
|
1315
|
+
|
|
1316
|
+
// EXIF 2.3 specification for JPEG format thumbnail
|
|
1317
|
+
|
|
1318
|
+
// If the value of Compression(0x0103) Tag in IFD1 is '6', thumbnail image format is JPEG.
|
|
1319
|
+
// Most of Exif image uses JPEG format for thumbnail. In that case, you can get offset of thumbnail
|
|
1320
|
+
// by JpegIFOffset(0x0201) Tag in IFD1, size of thumbnail by JpegIFByteCount(0x0202) Tag.
|
|
1321
|
+
// Data format is ordinary JPEG format, starts from 0xFFD8 and ends by 0xFFD9. It seems that
|
|
1322
|
+
// JPEG format and 160x120pixels of size are recommended thumbnail format for Exif2.1 or later.
|
|
1323
|
+
|
|
1324
|
+
if (thumbTags['Compression']) {
|
|
1325
|
+
// console.log('Thumbnail image found!');
|
|
1326
|
+
|
|
1327
|
+
switch (thumbTags['Compression']) {
|
|
1328
|
+
case 6:
|
|
1329
|
+
// console.log('Thumbnail image format is JPEG');
|
|
1330
|
+
if (thumbTags.JpegIFOffset && thumbTags.JpegIFByteCount) {
|
|
1331
|
+
// extract the thumbnail
|
|
1332
|
+
var tOffset = tiffStart + thumbTags.JpegIFOffset;
|
|
1333
|
+
var tLength = thumbTags.JpegIFByteCount;
|
|
1334
|
+
thumbTags['blob'] = new Blob([new Uint8Array(dataView.buffer, tOffset, tLength)], {
|
|
1335
|
+
type: 'image/jpeg'
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
break;
|
|
1339
|
+
|
|
1340
|
+
case 1:
|
|
1341
|
+
console.log("Thumbnail image format is TIFF, which is not implemented.");
|
|
1342
|
+
break;
|
|
1343
|
+
default:
|
|
1344
|
+
console.log("Unknown thumbnail image format '%s'", thumbTags['Compression']);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
else if (thumbTags['PhotometricInterpretation'] == 2) {
|
|
1348
|
+
console.log("Thumbnail image format is RGB, which is not implemented.");
|
|
1349
|
+
}
|
|
1350
|
+
return thumbTags;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
function getStringFromDB(buffer, start, length) {
|
|
1354
|
+
var outstr = "";
|
|
1355
|
+
for (n = start; n < start+length; n++) {
|
|
1356
|
+
outstr += String.fromCharCode(buffer.getUint8(n));
|
|
1357
|
+
}
|
|
1358
|
+
return outstr;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
function readEXIFData(file, start) {
|
|
1362
|
+
if (getStringFromDB(file, start, 4) != "Exif") {
|
|
1363
|
+
if (debug) console.log("Not valid EXIF data! " + getStringFromDB(file, start, 4));
|
|
1364
|
+
return false;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
var bigEnd,
|
|
1368
|
+
tags, tag,
|
|
1369
|
+
exifData, gpsData,
|
|
1370
|
+
tiffOffset = start + 6;
|
|
1371
|
+
|
|
1372
|
+
// test for TIFF validity and endianness
|
|
1373
|
+
if (file.getUint16(tiffOffset) == 0x4949) {
|
|
1374
|
+
bigEnd = false;
|
|
1375
|
+
} else if (file.getUint16(tiffOffset) == 0x4D4D) {
|
|
1376
|
+
bigEnd = true;
|
|
1377
|
+
} else {
|
|
1378
|
+
if (debug) console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)");
|
|
1379
|
+
return false;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
if (file.getUint16(tiffOffset+2, !bigEnd) != 0x002A) {
|
|
1383
|
+
if (debug) console.log("Not valid TIFF data! (no 0x002A)");
|
|
1384
|
+
return false;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
var firstIFDOffset = file.getUint32(tiffOffset+4, !bigEnd);
|
|
1388
|
+
|
|
1389
|
+
if (firstIFDOffset < 0x00000008) {
|
|
1390
|
+
if (debug) console.log("Not valid TIFF data! (First offset less than 8)", file.getUint32(tiffOffset+4, !bigEnd));
|
|
1391
|
+
return false;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
tags = readTags(file, tiffOffset, tiffOffset + firstIFDOffset, TiffTags, bigEnd);
|
|
1395
|
+
|
|
1396
|
+
if (tags.ExifIFDPointer) {
|
|
1397
|
+
exifData = readTags(file, tiffOffset, tiffOffset + tags.ExifIFDPointer, ExifTags, bigEnd);
|
|
1398
|
+
for (tag in exifData) {
|
|
1399
|
+
switch (tag) {
|
|
1400
|
+
case "LightSource" :
|
|
1401
|
+
case "Flash" :
|
|
1402
|
+
case "MeteringMode" :
|
|
1403
|
+
case "ExposureProgram" :
|
|
1404
|
+
case "SensingMethod" :
|
|
1405
|
+
case "SceneCaptureType" :
|
|
1406
|
+
case "SceneType" :
|
|
1407
|
+
case "CustomRendered" :
|
|
1408
|
+
case "WhiteBalance" :
|
|
1409
|
+
case "GainControl" :
|
|
1410
|
+
case "Contrast" :
|
|
1411
|
+
case "Saturation" :
|
|
1412
|
+
case "Sharpness" :
|
|
1413
|
+
case "SubjectDistanceRange" :
|
|
1414
|
+
case "FileSource" :
|
|
1415
|
+
exifData[tag] = StringValues[tag][exifData[tag]];
|
|
1416
|
+
break;
|
|
1417
|
+
|
|
1418
|
+
case "ExifVersion" :
|
|
1419
|
+
case "FlashpixVersion" :
|
|
1420
|
+
exifData[tag] = String.fromCharCode(exifData[tag][0], exifData[tag][1], exifData[tag][2], exifData[tag][3]);
|
|
1421
|
+
break;
|
|
1422
|
+
|
|
1423
|
+
case "ComponentsConfiguration" :
|
|
1424
|
+
exifData[tag] =
|
|
1425
|
+
StringValues.Components[exifData[tag][0]] +
|
|
1426
|
+
StringValues.Components[exifData[tag][1]] +
|
|
1427
|
+
StringValues.Components[exifData[tag][2]] +
|
|
1428
|
+
StringValues.Components[exifData[tag][3]];
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1431
|
+
tags[tag] = exifData[tag];
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
if (tags.GPSInfoIFDPointer) {
|
|
1436
|
+
gpsData = readTags(file, tiffOffset, tiffOffset + tags.GPSInfoIFDPointer, GPSTags, bigEnd);
|
|
1437
|
+
for (tag in gpsData) {
|
|
1438
|
+
switch (tag) {
|
|
1439
|
+
case "GPSVersionID" :
|
|
1440
|
+
gpsData[tag] = gpsData[tag][0] +
|
|
1441
|
+
"." + gpsData[tag][1] +
|
|
1442
|
+
"." + gpsData[tag][2] +
|
|
1443
|
+
"." + gpsData[tag][3];
|
|
1444
|
+
break;
|
|
1445
|
+
}
|
|
1446
|
+
tags[tag] = gpsData[tag];
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
// extract thumbnail
|
|
1451
|
+
tags['thumbnail'] = readThumbnailImage(file, tiffOffset, firstIFDOffset, bigEnd);
|
|
1452
|
+
|
|
1453
|
+
return tags;
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
function findXMPinJPEG(file) {
|
|
1457
|
+
|
|
1458
|
+
if (!('DOMParser' in self)) {
|
|
1459
|
+
// console.warn('XML parsing not supported without DOMParser');
|
|
1460
|
+
return;
|
|
1461
|
+
}
|
|
1462
|
+
var dataView = new DataView(file);
|
|
1463
|
+
|
|
1464
|
+
if (debug) console.log("Got file of length " + file.byteLength);
|
|
1465
|
+
if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) {
|
|
1466
|
+
if (debug) console.log("Not a valid JPEG");
|
|
1467
|
+
return false; // not a valid jpeg
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
var offset = 2,
|
|
1471
|
+
length = file.byteLength,
|
|
1472
|
+
dom = new DOMParser();
|
|
1473
|
+
|
|
1474
|
+
while (offset < (length-4)) {
|
|
1475
|
+
if (getStringFromDB(dataView, offset, 4) == "http") {
|
|
1476
|
+
var startOffset = offset - 1;
|
|
1477
|
+
var sectionLength = dataView.getUint16(offset - 2) - 1;
|
|
1478
|
+
var xmpString = getStringFromDB(dataView, startOffset, sectionLength)
|
|
1479
|
+
var xmpEndIndex = xmpString.indexOf('xmpmeta>') + 8;
|
|
1480
|
+
xmpString = xmpString.substring( xmpString.indexOf( '<x:xmpmeta' ), xmpEndIndex );
|
|
1481
|
+
|
|
1482
|
+
var indexOfXmp = xmpString.indexOf('x:xmpmeta') + 10
|
|
1483
|
+
//Many custom written programs embed xmp/xml without any namespace. Following are some of them.
|
|
1484
|
+
//Without these namespaces, XML is thought to be invalid by parsers
|
|
1485
|
+
xmpString = xmpString.slice(0, indexOfXmp)
|
|
1486
|
+
+ 'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" '
|
|
1487
|
+
+ 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
|
|
1488
|
+
+ 'xmlns:tiff="http://ns.adobe.com/tiff/1.0/" '
|
|
1489
|
+
+ 'xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" '
|
|
1490
|
+
+ 'xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" '
|
|
1491
|
+
+ 'xmlns:exif="http://ns.adobe.com/exif/1.0/" '
|
|
1492
|
+
+ 'xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" '
|
|
1493
|
+
+ 'xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" '
|
|
1494
|
+
+ 'xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" '
|
|
1495
|
+
+ 'xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" '
|
|
1496
|
+
+ 'xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '
|
|
1497
|
+
+ xmpString.slice(indexOfXmp)
|
|
1498
|
+
|
|
1499
|
+
var domDocument = dom.parseFromString( xmpString, 'text/xml' );
|
|
1500
|
+
return xml2Object(domDocument);
|
|
1501
|
+
} else{
|
|
1502
|
+
offset++;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
function xml2json(xml) {
|
|
1508
|
+
var json = {};
|
|
1509
|
+
|
|
1510
|
+
if (xml.nodeType == 1) { // element node
|
|
1511
|
+
if (xml.attributes.length > 0) {
|
|
1512
|
+
json['@attributes'] = {};
|
|
1513
|
+
for (var j = 0; j < xml.attributes.length; j++) {
|
|
1514
|
+
var attribute = xml.attributes.item(j);
|
|
1515
|
+
json['@attributes'][attribute.nodeName] = attribute.nodeValue;
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
} else if (xml.nodeType == 3) { // text node
|
|
1519
|
+
return xml.nodeValue;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
// deal with children
|
|
1523
|
+
if (xml.hasChildNodes()) {
|
|
1524
|
+
for(var i = 0; i < xml.childNodes.length; i++) {
|
|
1525
|
+
var child = xml.childNodes.item(i);
|
|
1526
|
+
var nodeName = child.nodeName;
|
|
1527
|
+
if (json[nodeName] == null) {
|
|
1528
|
+
json[nodeName] = xml2json(child);
|
|
1529
|
+
} else {
|
|
1530
|
+
if (json[nodeName].push == null) {
|
|
1531
|
+
var old = json[nodeName];
|
|
1532
|
+
json[nodeName] = [];
|
|
1533
|
+
json[nodeName].push(old);
|
|
1534
|
+
}
|
|
1535
|
+
json[nodeName].push(xml2json(child));
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
return json;
|
|
1541
|
+
}
|
|
1542
|
+
|
|
1543
|
+
function xml2Object(xml) {
|
|
1544
|
+
try {
|
|
1545
|
+
var obj = {};
|
|
1546
|
+
if (xml.children.length > 0) {
|
|
1547
|
+
for (var i = 0; i < xml.children.length; i++) {
|
|
1548
|
+
var item = xml.children.item(i);
|
|
1549
|
+
var attributes = item.attributes;
|
|
1550
|
+
for(var idx in attributes) {
|
|
1551
|
+
var itemAtt = attributes[idx];
|
|
1552
|
+
var dataKey = itemAtt.nodeName;
|
|
1553
|
+
var dataValue = itemAtt.nodeValue;
|
|
1554
|
+
|
|
1555
|
+
if(dataKey !== undefined) {
|
|
1556
|
+
obj[dataKey] = dataValue;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
var nodeName = item.nodeName;
|
|
1560
|
+
|
|
1561
|
+
if (typeof (obj[nodeName]) == "undefined") {
|
|
1562
|
+
obj[nodeName] = xml2json(item);
|
|
1563
|
+
} else {
|
|
1564
|
+
if (typeof (obj[nodeName].push) == "undefined") {
|
|
1565
|
+
var old = obj[nodeName];
|
|
1566
|
+
|
|
1567
|
+
obj[nodeName] = [];
|
|
1568
|
+
obj[nodeName].push(old);
|
|
1569
|
+
}
|
|
1570
|
+
obj[nodeName].push(xml2json(item));
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
} else {
|
|
1574
|
+
obj = xml.textContent;
|
|
1575
|
+
}
|
|
1576
|
+
return obj;
|
|
1577
|
+
} catch (e) {
|
|
1578
|
+
console.log(e.message);
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
EXIF.enableXmp = function() {
|
|
1583
|
+
EXIF.isXmpEnabled = true;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
EXIF.disableXmp = function() {
|
|
1587
|
+
EXIF.isXmpEnabled = false;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
EXIF.getData = function(img, callback) {
|
|
1591
|
+
if (((self.Image && img instanceof self.Image)
|
|
1592
|
+
|| (self.HTMLImageElement && img instanceof self.HTMLImageElement))
|
|
1593
|
+
&& !img.complete)
|
|
1594
|
+
return false;
|
|
1595
|
+
|
|
1596
|
+
if (!imageHasData(img)) {
|
|
1597
|
+
getImageData(img, callback);
|
|
1598
|
+
} else {
|
|
1599
|
+
if (callback) {
|
|
1600
|
+
callback.call(img);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
return true;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
EXIF.getTag = function(img, tag) {
|
|
1607
|
+
if (!imageHasData(img)) return;
|
|
1608
|
+
return img.exifdata[tag];
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
EXIF.getIptcTag = function(img, tag) {
|
|
1612
|
+
if (!imageHasData(img)) return;
|
|
1613
|
+
return img.iptcdata[tag];
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
EXIF.getAllTags = function(img) {
|
|
1617
|
+
if (!imageHasData(img)) return {};
|
|
1618
|
+
var a,
|
|
1619
|
+
data = img.exifdata,
|
|
1620
|
+
tags = {};
|
|
1621
|
+
for (a in data) {
|
|
1622
|
+
if (data.hasOwnProperty(a)) {
|
|
1623
|
+
tags[a] = data[a];
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
return tags;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
EXIF.getAllIptcTags = function(img) {
|
|
1630
|
+
if (!imageHasData(img)) return {};
|
|
1631
|
+
var a,
|
|
1632
|
+
data = img.iptcdata,
|
|
1633
|
+
tags = {};
|
|
1634
|
+
for (a in data) {
|
|
1635
|
+
if (data.hasOwnProperty(a)) {
|
|
1636
|
+
tags[a] = data[a];
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
return tags;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
EXIF.pretty = function(img) {
|
|
1643
|
+
if (!imageHasData(img)) return "";
|
|
1644
|
+
var a,
|
|
1645
|
+
data = img.exifdata,
|
|
1646
|
+
strPretty = "";
|
|
1647
|
+
for (a in data) {
|
|
1648
|
+
if (data.hasOwnProperty(a)) {
|
|
1649
|
+
if (typeof data[a] == "object") {
|
|
1650
|
+
if (data[a] instanceof Number) {
|
|
1651
|
+
strPretty += a + " : " + data[a] + " [" + data[a].numerator + "/" + data[a].denominator + "]\r\n";
|
|
1652
|
+
} else {
|
|
1653
|
+
strPretty += a + " : [" + data[a].length + " values]\r\n";
|
|
1654
|
+
}
|
|
1655
|
+
} else {
|
|
1656
|
+
strPretty += a + " : " + data[a] + "\r\n";
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
return strPretty;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
EXIF.readFromBinaryFile = function(file) {
|
|
1664
|
+
return findEXIFinJPEG(file);
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
if (typeof define === 'function' && define.amd) {
|
|
1668
|
+
define('exif-js', [], function() {
|
|
1669
|
+
return EXIF;
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
}.call(this));
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
},{}],6:[function(require,module,exports){
|
|
615
1676
|
/*
|
|
616
1677
|
* International Telephone Input v16.1.0
|
|
617
1678
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
@@ -1943,13 +3004,13 @@ var hj=window.customElements,ij=!1,jj=null;hj.polyfillWrapFlushCallback&&hj.poly
|
|
|
1943
3004
|
};
|
|
1944
3005
|
}();
|
|
1945
3006
|
});
|
|
1946
|
-
},{}],
|
|
3007
|
+
},{}],7:[function(require,module,exports){
|
|
1947
3008
|
/**
|
|
1948
3009
|
* Exposing intl-tel-input as a component
|
|
1949
3010
|
*/
|
|
1950
3011
|
module.exports = require("./build/js/intlTelInput");
|
|
1951
3012
|
|
|
1952
|
-
},{"./build/js/intlTelInput":
|
|
3013
|
+
},{"./build/js/intlTelInput":6}],8:[function(require,module,exports){
|
|
1953
3014
|
// shim for using process in browser
|
|
1954
3015
|
var process = module.exports = {};
|
|
1955
3016
|
|
|
@@ -2135,7 +3196,7 @@ process.chdir = function (dir) {
|
|
|
2135
3196
|
};
|
|
2136
3197
|
process.umask = function() { return 0; };
|
|
2137
3198
|
|
|
2138
|
-
},{}],
|
|
3199
|
+
},{}],9:[function(require,module,exports){
|
|
2139
3200
|
(function (setImmediate,clearImmediate){(function (){
|
|
2140
3201
|
var nextTick = require('process/browser.js').nextTick;
|
|
2141
3202
|
var apply = Function.prototype.apply;
|
|
@@ -2215,7 +3276,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
|
|
|
2215
3276
|
};
|
|
2216
3277
|
}).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
|
|
2217
3278
|
|
|
2218
|
-
},{"process/browser.js":
|
|
3279
|
+
},{"process/browser.js":8,"timers":9}],10:[function(require,module,exports){
|
|
2219
3280
|
"use strict";
|
|
2220
3281
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2221
3282
|
exports.CustomForm = void 0;
|
|
@@ -2386,7 +3447,7 @@ var CustomForm = /** @class */ (function () {
|
|
|
2386
3447
|
}());
|
|
2387
3448
|
exports.CustomForm = CustomForm;
|
|
2388
3449
|
|
|
2389
|
-
},{"./elements/FileField/FileFieldElement":
|
|
3450
|
+
},{"./elements/FileField/FileFieldElement":26,"./framework/Utilities/ArrayUtil":62,"./framework/Utilities/MakeRequest":65}],11:[function(require,module,exports){
|
|
2390
3451
|
"use strict";
|
|
2391
3452
|
var __extends = (this && this.__extends) || (function () {
|
|
2392
3453
|
var extendStatics = function (d, b) {
|
|
@@ -2594,7 +3655,7 @@ var AddressElement = /** @class */ (function (_super) {
|
|
|
2594
3655
|
}(CustomInputElement_1.CustomInputElement));
|
|
2595
3656
|
exports.AddressElement = AddressElement;
|
|
2596
3657
|
|
|
2597
|
-
},{"../../framework/CustomEvents":
|
|
3658
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Language/Translator":60,"../../framework/Polyfills/getAttributeNamesPolyfill":61,"../../framework/Utilities/debouncer":68,"../../framework/custom-element.decorator":77}],12:[function(require,module,exports){
|
|
2598
3659
|
"use strict";
|
|
2599
3660
|
var __extends = (this && this.__extends) || (function () {
|
|
2600
3661
|
var extendStatics = function (d, b) {
|
|
@@ -2635,9 +3696,9 @@ var BankFieldElement = /** @class */ (function (_super) {
|
|
|
2635
3696
|
}
|
|
2636
3697
|
Object.defineProperty(BankFieldElement.prototype, "value", {
|
|
2637
3698
|
get: function () {
|
|
2638
|
-
var
|
|
2639
|
-
var
|
|
2640
|
-
return "" +
|
|
3699
|
+
var regNumber = this.regNumber.value || '';
|
|
3700
|
+
var account = this.account.value ? "," + this.account.value : '';
|
|
3701
|
+
return "" + regNumber + account;
|
|
2641
3702
|
},
|
|
2642
3703
|
set: function (value) {
|
|
2643
3704
|
var values = value.split(',');
|
|
@@ -2723,7 +3784,7 @@ var BankFieldElement = /** @class */ (function (_super) {
|
|
|
2723
3784
|
}(CustomInputElement_1.CustomInputElement));
|
|
2724
3785
|
exports.BankFieldElement = BankFieldElement;
|
|
2725
3786
|
|
|
2726
|
-
},{"../../framework/CustomEvents":
|
|
3787
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Language/Translator":60,"../../framework/Validation/Validators/BankAccount":69,"../../framework/Validation/Validators/BankAccountRegistrationNumber":70,"../../framework/custom-element.decorator":77}],13:[function(require,module,exports){
|
|
2727
3788
|
"use strict";
|
|
2728
3789
|
var __extends = (this && this.__extends) || (function () {
|
|
2729
3790
|
var extendStatics = function (d, b) {
|
|
@@ -2810,7 +3871,7 @@ var CPRElement = /** @class */ (function (_super) {
|
|
|
2810
3871
|
}(CustomInputElement_1.CustomInputElement));
|
|
2811
3872
|
exports.CPRElement = CPRElement;
|
|
2812
3873
|
|
|
2813
|
-
},{"../../framework/CustomEvents":
|
|
3874
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/CPR":73,"../../framework/custom-element.decorator":77}],14:[function(require,module,exports){
|
|
2814
3875
|
"use strict";
|
|
2815
3876
|
var __extends = (this && this.__extends) || (function () {
|
|
2816
3877
|
var extendStatics = function (d, b) {
|
|
@@ -2897,7 +3958,7 @@ var CVRElement = /** @class */ (function (_super) {
|
|
|
2897
3958
|
}(CustomInputElement_1.CustomInputElement));
|
|
2898
3959
|
exports.CVRElement = CVRElement;
|
|
2899
3960
|
|
|
2900
|
-
},{"../../framework/CustomEvents":
|
|
3961
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/CVR":74,"../../framework/custom-element.decorator":77}],15:[function(require,module,exports){
|
|
2901
3962
|
"use strict";
|
|
2902
3963
|
var __extends = (this && this.__extends) || (function () {
|
|
2903
3964
|
var extendStatics = function (d, b) {
|
|
@@ -2995,7 +4056,7 @@ var CheckBoxElement = /** @class */ (function (_super) {
|
|
|
2995
4056
|
}(CustomInputElement_1.CustomInputElement));
|
|
2996
4057
|
exports.CheckBoxElement = CheckBoxElement;
|
|
2997
4058
|
|
|
2998
|
-
},{"../../framework/CustomEvents":
|
|
4059
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/StringUtil":66,"../../framework/custom-element.decorator":77}],16:[function(require,module,exports){
|
|
2999
4060
|
"use strict";
|
|
3000
4061
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3001
4062
|
var CustomDatepickerStyles_1 = require("./CustomDatepickerStyles");
|
|
@@ -3387,13 +4448,13 @@ var CustomDatepicker = /** @class */ (function () {
|
|
|
3387
4448
|
}());
|
|
3388
4449
|
exports.default = CustomDatepicker;
|
|
3389
4450
|
|
|
3390
|
-
},{"./CustomDatepickerStyles":
|
|
4451
|
+
},{"./CustomDatepickerStyles":17,"./CustomDatepickerUtils":18,"./DatepickerTranslations":19}],17:[function(require,module,exports){
|
|
3391
4452
|
"use strict";
|
|
3392
4453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3393
4454
|
exports.CustomDatepickerStyles = void 0;
|
|
3394
4455
|
exports.CustomDatepickerStyles = "\n .custom-datepicker {\n position: fixed;\n background-color: #fff;\n display: none;\n width: 200px;\n border: 1px solid #ccc;\n border-radius: 5px;\n padding: 10px;\n margin: 0 auto;\n box-shadow: 0 0 10px 0 #ccc;\n font: 12px Arial, sans-serif;\n }\n\n .custom-datepicker .custom-datepicer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n }\n .custom-datepicker .weekdays {\n display: flex;\n justify-content: space-between;\n }\n .custom-datepicker .weekdays span {\n width: 14.28%;\n text-align: center;\n padding: 5px 0;\n }\n .custom-datepicker .days {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .days span {\n width: 14.28%;\n text-align: center;\n padding: 5px 0;\n }\n .custom-datepicker .days span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .days span.today {\n border: 1px solid #000;\n }\n .custom-datepicker .days span.selected-day {\n background-color: #0075ff;\n color: #fff;\n }\n .custom-datepicker .prev-month, .next-month {\n cursor: pointer;\n }\n .custom-datepicker .month-year {\n font-weight: bold;\n }\n .custom-datepicker .month-year:hover {\n cursor: pointer;\n }\n .custom-datepicker .select-month-year {\n display: none;\n width: 100%;\n overflow-y: auto;\n }\n .custom-datepicker .select-month-year .year {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #3f3d3d;\n padding: 5px 0;\n cursor: pointer;\n }\n .custom-datepicker .select-month-year .year .months {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .select-month-year .year .months span {\n width: 25%;\n text-align: center;\n padding: 10px 0;\n background-color: #fff;\n }\n .custom-datepicker .select-month-year .year .months span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .actions {\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n }\n .custom-datepicker .actions input {\n color: #0075ff;\n border: none;\n background-color: transparent;\n padding: 5px;\n border: 1px solid transparent;\n }\n .custom-datepicker .actions input:hover {\n background-color: #B2d5ff;\n border-color: #000;\n }\n";
|
|
3395
4456
|
|
|
3396
|
-
},{}],
|
|
4457
|
+
},{}],18:[function(require,module,exports){
|
|
3397
4458
|
"use strict";
|
|
3398
4459
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3399
4460
|
exports.validateDateString = exports.convertStringToDate = exports.isMobileDevice = exports.formatDate = exports.supportedDateFormats = exports.defaultDateFormat = exports.daysOfWeek = exports.months = void 0;
|
|
@@ -3523,7 +4584,7 @@ function validateDateString(dateString, dateFormat, language, allowEmpty) {
|
|
|
3523
4584
|
}
|
|
3524
4585
|
exports.validateDateString = validateDateString;
|
|
3525
4586
|
|
|
3526
|
-
},{"./DatepickerTranslations":
|
|
4587
|
+
},{"./DatepickerTranslations":19}],19:[function(require,module,exports){
|
|
3527
4588
|
"use strict";
|
|
3528
4589
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3529
4590
|
exports.Translate = exports.GetMonths = exports.GetWeekdays = void 0;
|
|
@@ -3821,7 +4882,7 @@ var dictionary = {
|
|
|
3821
4882
|
},
|
|
3822
4883
|
};
|
|
3823
4884
|
|
|
3824
|
-
},{}],
|
|
4885
|
+
},{}],20:[function(require,module,exports){
|
|
3825
4886
|
"use strict";
|
|
3826
4887
|
var __extends = (this && this.__extends) || (function () {
|
|
3827
4888
|
var extendStatics = function (d, b) {
|
|
@@ -3937,7 +4998,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
|
|
|
3937
4998
|
}(CustomInputElement_1.CustomInputElement));
|
|
3938
4999
|
exports.CustomFormatDateFieldElement = CustomFormatDateFieldElement;
|
|
3939
5000
|
|
|
3940
|
-
},{"../../framework/CustomEvents":
|
|
5001
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77,"./CustomDatepicker/CustomDatepicker":16,"./CustomDatepicker/CustomDatepickerUtils":18}],21:[function(require,module,exports){
|
|
3941
5002
|
"use strict";
|
|
3942
5003
|
var __extends = (this && this.__extends) || (function () {
|
|
3943
5004
|
var extendStatics = function (d, b) {
|
|
@@ -4030,7 +5091,7 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
|
|
|
4030
5091
|
}(CustomInputElement_1.CustomInputElement));
|
|
4031
5092
|
exports.CustomRegularExpressionElement = CustomRegularExpressionElement;
|
|
4032
5093
|
|
|
4033
|
-
},{"../../framework/CustomEvents":
|
|
5094
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],22:[function(require,module,exports){
|
|
4034
5095
|
"use strict";
|
|
4035
5096
|
var __extends = (this && this.__extends) || (function () {
|
|
4036
5097
|
var extendStatics = function (d, b) {
|
|
@@ -4120,7 +5181,7 @@ var DateFieldElement = /** @class */ (function (_super) {
|
|
|
4120
5181
|
}(CustomInputElement_1.CustomInputElement));
|
|
4121
5182
|
exports.DateFieldElement = DateFieldElement;
|
|
4122
5183
|
|
|
4123
|
-
},{"../../framework/CustomEvents":
|
|
5184
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],23:[function(require,module,exports){
|
|
4124
5185
|
"use strict";
|
|
4125
5186
|
var __extends = (this && this.__extends) || (function () {
|
|
4126
5187
|
var extendStatics = function (d, b) {
|
|
@@ -4227,7 +5288,7 @@ var DropDownListElement = /** @class */ (function (_super) {
|
|
|
4227
5288
|
}(CustomInputElement_1.CustomInputElement));
|
|
4228
5289
|
exports.DropDownListElement = DropDownListElement;
|
|
4229
5290
|
|
|
4230
|
-
},{"../../framework/CustomEvents":
|
|
5291
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/StringUtil":66,"../../framework/custom-element.decorator":77}],24:[function(require,module,exports){
|
|
4231
5292
|
"use strict";
|
|
4232
5293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4233
5294
|
exports.SECompanyRegistrationElement = exports.SEPersonalNumberElement = exports.TypeAheadElement = exports.BankFieldElement = exports.IdentificationElement = exports.CVRElement = exports.CPRElement = exports.IntPhoneFieldElement = exports.CustomFormatDateFieldElement = exports.DateFieldElement = exports.CustomRegularExpressionElement = exports.NumericFieldElement = exports.FileFieldElement = exports.DropDownListElement = exports.TextAreaElement = exports.RadioButtonGroupElement = exports.CheckBoxElement = exports.EmailFieldElement = exports.TextFieldElement = exports.AddressElement = void 0;
|
|
@@ -4272,7 +5333,7 @@ Object.defineProperty(exports, "SECompanyRegistrationElement", { enumerable: tru
|
|
|
4272
5333
|
var CustomFormatDateFieldElement_1 = require("./CustomFormatDateFieldElement/CustomFormatDateFieldElement");
|
|
4273
5334
|
Object.defineProperty(exports, "CustomFormatDateFieldElement", { enumerable: true, get: function () { return CustomFormatDateFieldElement_1.CustomFormatDateFieldElement; } });
|
|
4274
5335
|
|
|
4275
|
-
},{"./Address/AddressElement":
|
|
5336
|
+
},{"./Address/AddressElement":11,"./BankField/BankFieldElement":12,"./CPRElement/CPRElement":13,"./CVRElement/CVRElement":14,"./CheckBoxElement/CheckBoxElement":15,"./CustomFormatDateFieldElement/CustomFormatDateFieldElement":20,"./CustomRegularExpression/CustomRegularExpressionElement":21,"./DateField/DateFieldElement":22,"./DropDownList/DropDownListElement":23,"./EmailField/EmailFieldElement":25,"./FileField/FileFieldElement":26,"./IdentificationElement/IdentificationElement":27,"./InternationaPhoneNumber/InternationaPhoneNumberElement":30,"./NumericField/NumericFieldElement":31,"./RadioButtonGroup/RadioButtonGroupElement":32,"./SECompanyRegistrationElement/SECompanyRegistrationElement":33,"./SEPersonalNumberElement/SEPersonalNumberElement":34,"./TextAreaElement/TextAreaElement":35,"./TextField/TextFieldElement":36,"./TypeAhead/TypeAheadElement":37}],25:[function(require,module,exports){
|
|
4276
5337
|
"use strict";
|
|
4277
5338
|
var __extends = (this && this.__extends) || (function () {
|
|
4278
5339
|
var extendStatics = function (d, b) {
|
|
@@ -4363,7 +5424,7 @@ var EmailFieldElement = /** @class */ (function (_super) {
|
|
|
4363
5424
|
}(CustomInputElement_1.CustomInputElement));
|
|
4364
5425
|
exports.EmailFieldElement = EmailFieldElement;
|
|
4365
5426
|
|
|
4366
|
-
},{"../../framework/CustomEvents":
|
|
5427
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],26:[function(require,module,exports){
|
|
4367
5428
|
"use strict";
|
|
4368
5429
|
var __extends = (this && this.__extends) || (function () {
|
|
4369
5430
|
var extendStatics = function (d, b) {
|
|
@@ -4386,12 +5447,49 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4386
5447
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4387
5448
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4388
5449
|
};
|
|
5450
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5451
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5452
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5453
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5454
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5455
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
5456
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5457
|
+
});
|
|
5458
|
+
};
|
|
5459
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
5460
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5461
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5462
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
5463
|
+
function step(op) {
|
|
5464
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
5465
|
+
while (_) try {
|
|
5466
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
5467
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
5468
|
+
switch (op[0]) {
|
|
5469
|
+
case 0: case 1: t = op; break;
|
|
5470
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
5471
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
5472
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
5473
|
+
default:
|
|
5474
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
5475
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
5476
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
5477
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
5478
|
+
if (t[2]) _.ops.pop();
|
|
5479
|
+
_.trys.pop(); continue;
|
|
5480
|
+
}
|
|
5481
|
+
op = body.call(thisArg, _);
|
|
5482
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
5483
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5484
|
+
}
|
|
5485
|
+
};
|
|
4389
5486
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4390
5487
|
exports.FileFieldElement = void 0;
|
|
4391
5488
|
var custom_element_decorator_1 = require("../../framework/custom-element.decorator");
|
|
4392
5489
|
var CustomInputElement_1 = require("../../framework/CustomInputElement");
|
|
4393
5490
|
var CustomEvents_1 = require("../../framework/CustomEvents");
|
|
4394
5491
|
var getAttributeNamesPolyfill_1 = require("../../framework/Polyfills/getAttributeNamesPolyfill");
|
|
5492
|
+
var EXIF = require("exif-js");
|
|
4395
5493
|
var FileFieldElement = /** @class */ (function (_super) {
|
|
4396
5494
|
__extends(FileFieldElement, _super);
|
|
4397
5495
|
function FileFieldElement() {
|
|
@@ -4430,6 +5528,7 @@ var FileFieldElement = /** @class */ (function (_super) {
|
|
|
4430
5528
|
FileFieldElement.prototype.initChildInputs = function () {
|
|
4431
5529
|
this.file = _super.prototype.getChildInput.call(this, '#file-field');
|
|
4432
5530
|
this.file.addEventListener('change', this.change.bind(this));
|
|
5531
|
+
this.file.addEventListener('input', this.processImageFiles.bind(this));
|
|
4433
5532
|
if (this.required) {
|
|
4434
5533
|
this.file.setAttribute('required', '');
|
|
4435
5534
|
}
|
|
@@ -4454,8 +5553,194 @@ var FileFieldElement = /** @class */ (function (_super) {
|
|
|
4454
5553
|
case 'accept':
|
|
4455
5554
|
this.file.accept = newVal;
|
|
4456
5555
|
break;
|
|
5556
|
+
case 'resizeimages':
|
|
5557
|
+
this.resizeImages = true;
|
|
5558
|
+
break;
|
|
4457
5559
|
}
|
|
4458
5560
|
};
|
|
5561
|
+
FileFieldElement.prototype.processImageFiles = function (event) {
|
|
5562
|
+
var _a;
|
|
5563
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5564
|
+
var files, processedFiles, _i, files_1, file, mimeType, processedBlob;
|
|
5565
|
+
return __generator(this, function (_b) {
|
|
5566
|
+
switch (_b.label) {
|
|
5567
|
+
case 0:
|
|
5568
|
+
if (!this.resizeImages) {
|
|
5569
|
+
return [2 /*return*/];
|
|
5570
|
+
}
|
|
5571
|
+
files = Array.from(event.target.files);
|
|
5572
|
+
processedFiles = [];
|
|
5573
|
+
_i = 0, files_1 = files;
|
|
5574
|
+
_b.label = 1;
|
|
5575
|
+
case 1:
|
|
5576
|
+
if (!(_i < files_1.length)) return [3 /*break*/, 4];
|
|
5577
|
+
file = files_1[_i];
|
|
5578
|
+
if (!file.type.startsWith('image/')) {
|
|
5579
|
+
processedFiles.push(file);
|
|
5580
|
+
return [3 /*break*/, 3];
|
|
5581
|
+
}
|
|
5582
|
+
mimeType = (_a = file.type) !== null && _a !== void 0 ? _a : 'image/jpeg';
|
|
5583
|
+
return [4 /*yield*/, this.readAndProcessImage(file, mimeType)];
|
|
5584
|
+
case 2:
|
|
5585
|
+
processedBlob = _b.sent();
|
|
5586
|
+
processedFiles.push(new File([processedBlob], file.name, { type: file.type }));
|
|
5587
|
+
_b.label = 3;
|
|
5588
|
+
case 3:
|
|
5589
|
+
_i++;
|
|
5590
|
+
return [3 /*break*/, 1];
|
|
5591
|
+
case 4:
|
|
5592
|
+
this.replaceFiles(processedFiles);
|
|
5593
|
+
return [2 /*return*/];
|
|
5594
|
+
}
|
|
5595
|
+
});
|
|
5596
|
+
});
|
|
5597
|
+
};
|
|
5598
|
+
FileFieldElement.prototype.readAndProcessImage = function (file, mimeType) {
|
|
5599
|
+
var _this = this;
|
|
5600
|
+
return new Promise(function (resolve, reject) {
|
|
5601
|
+
var reader = new FileReader();
|
|
5602
|
+
reader.readAsDataURL(file);
|
|
5603
|
+
reader.onload = function (event) {
|
|
5604
|
+
var img = new Image();
|
|
5605
|
+
img.src = event.target.result;
|
|
5606
|
+
img.onload = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5607
|
+
var orientation, correctedImageBlob, correctedImage;
|
|
5608
|
+
var _this = this;
|
|
5609
|
+
return __generator(this, function (_a) {
|
|
5610
|
+
switch (_a.label) {
|
|
5611
|
+
case 0: return [4 /*yield*/, this.getImageOrientation(file)];
|
|
5612
|
+
case 1:
|
|
5613
|
+
orientation = _a.sent();
|
|
5614
|
+
return [4 /*yield*/, this.correctOrientation(img, orientation, mimeType)];
|
|
5615
|
+
case 2:
|
|
5616
|
+
correctedImageBlob = _a.sent();
|
|
5617
|
+
correctedImage = new Image();
|
|
5618
|
+
correctedImage.src = URL.createObjectURL(correctedImageBlob);
|
|
5619
|
+
correctedImage.onload = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5620
|
+
var a4Width, a4Height, isLandscape, resizedImageBlob;
|
|
5621
|
+
return __generator(this, function (_a) {
|
|
5622
|
+
switch (_a.label) {
|
|
5623
|
+
case 0:
|
|
5624
|
+
a4Width = 595;
|
|
5625
|
+
a4Height = 842;
|
|
5626
|
+
isLandscape = correctedImage.width > correctedImage.height;
|
|
5627
|
+
if (!(isLandscape && correctedImage.width > a4Height)) return [3 /*break*/, 2];
|
|
5628
|
+
return [4 /*yield*/, this.resizeImage(correctedImage, a4Height, a4Width, mimeType)];
|
|
5629
|
+
case 1:
|
|
5630
|
+
resizedImageBlob = _a.sent();
|
|
5631
|
+
return [3 /*break*/, 4];
|
|
5632
|
+
case 2:
|
|
5633
|
+
if (!(!isLandscape && correctedImage.height > a4Height)) return [3 /*break*/, 4];
|
|
5634
|
+
return [4 /*yield*/, this.resizeImage(correctedImage, a4Width, a4Height, mimeType)];
|
|
5635
|
+
case 3:
|
|
5636
|
+
resizedImageBlob = _a.sent();
|
|
5637
|
+
_a.label = 4;
|
|
5638
|
+
case 4:
|
|
5639
|
+
resolve(resizedImageBlob);
|
|
5640
|
+
return [2 /*return*/];
|
|
5641
|
+
}
|
|
5642
|
+
});
|
|
5643
|
+
}); };
|
|
5644
|
+
correctedImage.onerror = function (error) {
|
|
5645
|
+
reject(error);
|
|
5646
|
+
};
|
|
5647
|
+
return [2 /*return*/];
|
|
5648
|
+
}
|
|
5649
|
+
});
|
|
5650
|
+
}); };
|
|
5651
|
+
img.onerror = function (error) {
|
|
5652
|
+
reject(error);
|
|
5653
|
+
};
|
|
5654
|
+
};
|
|
5655
|
+
reader.onerror = function (error) {
|
|
5656
|
+
reject(error);
|
|
5657
|
+
};
|
|
5658
|
+
});
|
|
5659
|
+
};
|
|
5660
|
+
FileFieldElement.prototype.resizeImage = function (image, maxWidth, maxHeight, mimeType) {
|
|
5661
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5662
|
+
return __generator(this, function (_a) {
|
|
5663
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
5664
|
+
var canvas = document.createElement('canvas');
|
|
5665
|
+
var ctx = canvas.getContext('2d');
|
|
5666
|
+
var aspectRatio = image.width / image.height;
|
|
5667
|
+
if (image.width > maxWidth || image.height > maxHeight) {
|
|
5668
|
+
if (aspectRatio > 1) {
|
|
5669
|
+
canvas.width = maxWidth;
|
|
5670
|
+
canvas.height = maxWidth / aspectRatio;
|
|
5671
|
+
}
|
|
5672
|
+
else {
|
|
5673
|
+
canvas.height = maxHeight;
|
|
5674
|
+
canvas.width = maxHeight * aspectRatio;
|
|
5675
|
+
}
|
|
5676
|
+
}
|
|
5677
|
+
else {
|
|
5678
|
+
canvas.width = image.width;
|
|
5679
|
+
canvas.height = image.height;
|
|
5680
|
+
}
|
|
5681
|
+
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
5682
|
+
canvas.toBlob(function (blob) {
|
|
5683
|
+
resolve(blob);
|
|
5684
|
+
}, mimeType);
|
|
5685
|
+
})];
|
|
5686
|
+
});
|
|
5687
|
+
});
|
|
5688
|
+
};
|
|
5689
|
+
FileFieldElement.prototype.getImageOrientation = function (file) {
|
|
5690
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5691
|
+
return __generator(this, function (_a) {
|
|
5692
|
+
return [2 /*return*/, new Promise(function (resolve) {
|
|
5693
|
+
EXIF.getData(file, function () {
|
|
5694
|
+
var orientation = EXIF.getTag(this, "Orientation");
|
|
5695
|
+
resolve(orientation || 1);
|
|
5696
|
+
});
|
|
5697
|
+
})];
|
|
5698
|
+
});
|
|
5699
|
+
});
|
|
5700
|
+
};
|
|
5701
|
+
FileFieldElement.prototype.correctOrientation = function (image, orientation, mimeType) {
|
|
5702
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5703
|
+
return __generator(this, function (_a) {
|
|
5704
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
5705
|
+
var canvas = document.createElement('canvas');
|
|
5706
|
+
var ctx = canvas.getContext('2d');
|
|
5707
|
+
switch (orientation) {
|
|
5708
|
+
case 3:
|
|
5709
|
+
canvas.width = image.width;
|
|
5710
|
+
canvas.height = image.height;
|
|
5711
|
+
ctx.rotate(180 * Math.PI / 180);
|
|
5712
|
+
ctx.drawImage(image, -image.width, -image.height);
|
|
5713
|
+
break;
|
|
5714
|
+
case 6:
|
|
5715
|
+
canvas.width = image.height;
|
|
5716
|
+
canvas.height = image.width;
|
|
5717
|
+
ctx.rotate(-90 * Math.PI / 180);
|
|
5718
|
+
ctx.drawImage(image, -image.width, 0);
|
|
5719
|
+
break;
|
|
5720
|
+
case 8:
|
|
5721
|
+
canvas.width = image.height;
|
|
5722
|
+
canvas.height = image.width;
|
|
5723
|
+
ctx.rotate(90 * Math.PI / 180);
|
|
5724
|
+
ctx.drawImage(image, 0, -image.height);
|
|
5725
|
+
break;
|
|
5726
|
+
default:
|
|
5727
|
+
canvas.width = image.width;
|
|
5728
|
+
canvas.height = image.height;
|
|
5729
|
+
ctx.drawImage(image, 0, 0);
|
|
5730
|
+
break;
|
|
5731
|
+
}
|
|
5732
|
+
canvas.toBlob(function (blob) {
|
|
5733
|
+
resolve(blob);
|
|
5734
|
+
}, mimeType);
|
|
5735
|
+
})];
|
|
5736
|
+
});
|
|
5737
|
+
});
|
|
5738
|
+
};
|
|
5739
|
+
FileFieldElement.prototype.replaceFiles = function (newFiles) {
|
|
5740
|
+
var dataTransfer = new DataTransfer();
|
|
5741
|
+
newFiles.forEach(function (file) { return dataTransfer.items.add(file); });
|
|
5742
|
+
this.file.files = dataTransfer.files;
|
|
5743
|
+
};
|
|
4459
5744
|
FileFieldElement = __decorate([
|
|
4460
5745
|
(0, custom_element_decorator_1.default)({
|
|
4461
5746
|
selector: 'file-element',
|
|
@@ -4468,7 +5753,7 @@ var FileFieldElement = /** @class */ (function (_super) {
|
|
|
4468
5753
|
}(CustomInputElement_1.CustomInputElement));
|
|
4469
5754
|
exports.FileFieldElement = FileFieldElement;
|
|
4470
5755
|
|
|
4471
|
-
},{"../../framework/CustomEvents":
|
|
5756
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Polyfills/getAttributeNamesPolyfill":61,"../../framework/custom-element.decorator":77,"exif-js":5}],27:[function(require,module,exports){
|
|
4472
5757
|
"use strict";
|
|
4473
5758
|
var __extends = (this && this.__extends) || (function () {
|
|
4474
5759
|
var extendStatics = function (d, b) {
|
|
@@ -4564,7 +5849,7 @@ var IdentificationElement = /** @class */ (function (_super) {
|
|
|
4564
5849
|
}(CustomInputElement_1.CustomInputElement));
|
|
4565
5850
|
exports.IdentificationElement = IdentificationElement;
|
|
4566
5851
|
|
|
4567
|
-
},{"../../framework/CustomEvents":
|
|
5852
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/BankIdNorway":71,"../../framework/Validation/Validators/BankIdSweden":72,"../../framework/Validation/Validators/CPR":73,"../../framework/Validation/Validators/CVR":74,"../../framework/custom-element.decorator":77}],28:[function(require,module,exports){
|
|
4568
5853
|
"use strict";
|
|
4569
5854
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4570
5855
|
function GetFlagsUrl() {
|
|
@@ -4572,7 +5857,7 @@ function GetFlagsUrl() {
|
|
|
4572
5857
|
}
|
|
4573
5858
|
exports.default = GetFlagsUrl;
|
|
4574
5859
|
|
|
4575
|
-
},{}],
|
|
5860
|
+
},{}],29:[function(require,module,exports){
|
|
4576
5861
|
"use strict";
|
|
4577
5862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4578
5863
|
function GetFlags2XUrl() {
|
|
@@ -4580,7 +5865,7 @@ function GetFlags2XUrl() {
|
|
|
4580
5865
|
}
|
|
4581
5866
|
exports.default = GetFlags2XUrl;
|
|
4582
5867
|
|
|
4583
|
-
},{}],
|
|
5868
|
+
},{}],30:[function(require,module,exports){
|
|
4584
5869
|
"use strict";
|
|
4585
5870
|
var __extends = (this && this.__extends) || (function () {
|
|
4586
5871
|
var extendStatics = function (d, b) {
|
|
@@ -4712,7 +5997,7 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
|
|
|
4712
5997
|
}(CustomInputElement_1.CustomInputElement));
|
|
4713
5998
|
exports.IntPhoneFieldElement = IntPhoneFieldElement;
|
|
4714
5999
|
|
|
4715
|
-
},{"../../framework/CustomEvents":
|
|
6000
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/MakeRequest":65,"../../framework/custom-element.decorator":77,"./Flags":28,"./Flags2x":29,"intl-tel-input":7}],31:[function(require,module,exports){
|
|
4716
6001
|
"use strict";
|
|
4717
6002
|
var __extends = (this && this.__extends) || (function () {
|
|
4718
6003
|
var extendStatics = function (d, b) {
|
|
@@ -4811,7 +6096,7 @@ var NumericFieldElement = /** @class */ (function (_super) {
|
|
|
4811
6096
|
}(CustomInputElement_1.CustomInputElement));
|
|
4812
6097
|
exports.NumericFieldElement = NumericFieldElement;
|
|
4813
6098
|
|
|
4814
|
-
},{"../../framework/CustomEvents":
|
|
6099
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],32:[function(require,module,exports){
|
|
4815
6100
|
"use strict";
|
|
4816
6101
|
var __extends = (this && this.__extends) || (function () {
|
|
4817
6102
|
var extendStatics = function (d, b) {
|
|
@@ -4915,7 +6200,7 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
|
|
|
4915
6200
|
}(CustomInputElement_1.CustomInputElement));
|
|
4916
6201
|
exports.RadioButtonGroupElement = RadioButtonGroupElement;
|
|
4917
6202
|
|
|
4918
|
-
},{"../../framework/CustomEvents":
|
|
6203
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/StringUtil":66,"../../framework/custom-element.decorator":77}],33:[function(require,module,exports){
|
|
4919
6204
|
"use strict";
|
|
4920
6205
|
var __extends = (this && this.__extends) || (function () {
|
|
4921
6206
|
var extendStatics = function (d, b) {
|
|
@@ -5002,7 +6287,7 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
|
|
|
5002
6287
|
}(CustomInputElement_1.CustomInputElement));
|
|
5003
6288
|
exports.SECompanyRegistrationElement = SECompanyRegistrationElement;
|
|
5004
6289
|
|
|
5005
|
-
},{"../../framework/CustomEvents":
|
|
6290
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/SECompanyRegistration":75,"../../framework/custom-element.decorator":77}],34:[function(require,module,exports){
|
|
5006
6291
|
"use strict";
|
|
5007
6292
|
var __extends = (this && this.__extends) || (function () {
|
|
5008
6293
|
var extendStatics = function (d, b) {
|
|
@@ -5089,7 +6374,7 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
|
|
|
5089
6374
|
}(CustomInputElement_1.CustomInputElement));
|
|
5090
6375
|
exports.SEPersonalNumberElement = SEPersonalNumberElement;
|
|
5091
6376
|
|
|
5092
|
-
},{"../../framework/CustomEvents":
|
|
6377
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/SEPersonalNumber":76,"../../framework/custom-element.decorator":77}],35:[function(require,module,exports){
|
|
5093
6378
|
"use strict";
|
|
5094
6379
|
var __extends = (this && this.__extends) || (function () {
|
|
5095
6380
|
var extendStatics = function (d, b) {
|
|
@@ -5176,7 +6461,7 @@ var TextAreaElement = /** @class */ (function (_super) {
|
|
|
5176
6461
|
}(CustomInputElement_1.CustomInputElement));
|
|
5177
6462
|
exports.TextAreaElement = TextAreaElement;
|
|
5178
6463
|
|
|
5179
|
-
},{"../../framework/CustomEvents":
|
|
6464
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],36:[function(require,module,exports){
|
|
5180
6465
|
"use strict";
|
|
5181
6466
|
var __extends = (this && this.__extends) || (function () {
|
|
5182
6467
|
var extendStatics = function (d, b) {
|
|
@@ -5263,7 +6548,7 @@ var TextFieldElement = /** @class */ (function (_super) {
|
|
|
5263
6548
|
}(CustomInputElement_1.CustomInputElement));
|
|
5264
6549
|
exports.TextFieldElement = TextFieldElement;
|
|
5265
6550
|
|
|
5266
|
-
},{"../../framework/CustomEvents":
|
|
6551
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],37:[function(require,module,exports){
|
|
5267
6552
|
"use strict";
|
|
5268
6553
|
var __extends = (this && this.__extends) || (function () {
|
|
5269
6554
|
var extendStatics = function (d, b) {
|
|
@@ -5480,7 +6765,7 @@ var TypeAheadElement = /** @class */ (function (_super) {
|
|
|
5480
6765
|
}(CustomInputElement_1.CustomInputElement));
|
|
5481
6766
|
exports.TypeAheadElement = TypeAheadElement;
|
|
5482
6767
|
|
|
5483
|
-
},{"../../framework/CustomEvents":
|
|
6768
|
+
},{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/DomUtility":64,"../../framework/custom-element.decorator":77}],38:[function(require,module,exports){
|
|
5484
6769
|
"use strict";
|
|
5485
6770
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5486
6771
|
exports.CustomElementEvent = exports.CustomElementEventArgs = void 0;
|
|
@@ -5529,7 +6814,7 @@ var CustomElementEvent = /** @class */ (function () {
|
|
|
5529
6814
|
}());
|
|
5530
6815
|
exports.CustomElementEvent = CustomElementEvent;
|
|
5531
6816
|
|
|
5532
|
-
},{}],
|
|
6817
|
+
},{}],39:[function(require,module,exports){
|
|
5533
6818
|
"use strict";
|
|
5534
6819
|
var __extends = (this && this.__extends) || (function () {
|
|
5535
6820
|
var extendStatics = function (d, b) {
|
|
@@ -5792,7 +7077,7 @@ var CustomInputElement = /** @class */ (function (_super) {
|
|
|
5792
7077
|
}(HTMLElement));
|
|
5793
7078
|
exports.CustomInputElement = CustomInputElement;
|
|
5794
7079
|
|
|
5795
|
-
},{"./CustomEvents":
|
|
7080
|
+
},{"./CustomEvents":38,"./Utilities/ArrayUtil":62,"./Utilities/DomUtil":63}],40:[function(require,module,exports){
|
|
5796
7081
|
"use strict";
|
|
5797
7082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5798
7083
|
var BaseDictionary = /** @class */ (function () {
|
|
@@ -5814,7 +7099,7 @@ var BaseDictionary = /** @class */ (function () {
|
|
|
5814
7099
|
}());
|
|
5815
7100
|
exports.default = BaseDictionary;
|
|
5816
7101
|
|
|
5817
|
-
},{}],
|
|
7102
|
+
},{}],41:[function(require,module,exports){
|
|
5818
7103
|
"use strict";
|
|
5819
7104
|
var __extends = (this && this.__extends) || (function () {
|
|
5820
7105
|
var extendStatics = function (d, b) {
|
|
@@ -5855,7 +7140,7 @@ var CzechDictionary = /** @class */ (function (_super) {
|
|
|
5855
7140
|
}(BaseDictionary_1.default));
|
|
5856
7141
|
exports.default = CzechDictionary;
|
|
5857
7142
|
|
|
5858
|
-
},{"./Base/BaseDictionary":
|
|
7143
|
+
},{"./Base/BaseDictionary":40}],42:[function(require,module,exports){
|
|
5859
7144
|
"use strict";
|
|
5860
7145
|
var __extends = (this && this.__extends) || (function () {
|
|
5861
7146
|
var extendStatics = function (d, b) {
|
|
@@ -5896,7 +7181,7 @@ var DanishDictionary = /** @class */ (function (_super) {
|
|
|
5896
7181
|
}(BaseDictionary_1.default));
|
|
5897
7182
|
exports.default = DanishDictionary;
|
|
5898
7183
|
|
|
5899
|
-
},{"./Base/BaseDictionary":
|
|
7184
|
+
},{"./Base/BaseDictionary":40}],43:[function(require,module,exports){
|
|
5900
7185
|
"use strict";
|
|
5901
7186
|
var __extends = (this && this.__extends) || (function () {
|
|
5902
7187
|
var extendStatics = function (d, b) {
|
|
@@ -5937,7 +7222,7 @@ var DutchDictionary = /** @class */ (function (_super) {
|
|
|
5937
7222
|
}(BaseDictionary_1.default));
|
|
5938
7223
|
exports.default = DutchDictionary;
|
|
5939
7224
|
|
|
5940
|
-
},{"./Base/BaseDictionary":
|
|
7225
|
+
},{"./Base/BaseDictionary":40}],44:[function(require,module,exports){
|
|
5941
7226
|
"use strict";
|
|
5942
7227
|
var __extends = (this && this.__extends) || (function () {
|
|
5943
7228
|
var extendStatics = function (d, b) {
|
|
@@ -5978,7 +7263,7 @@ var EnglishDictionary = /** @class */ (function (_super) {
|
|
|
5978
7263
|
}(BaseDictionary_1.default));
|
|
5979
7264
|
exports.default = EnglishDictionary;
|
|
5980
7265
|
|
|
5981
|
-
},{"./Base/BaseDictionary":
|
|
7266
|
+
},{"./Base/BaseDictionary":40}],45:[function(require,module,exports){
|
|
5982
7267
|
"use strict";
|
|
5983
7268
|
var __extends = (this && this.__extends) || (function () {
|
|
5984
7269
|
var extendStatics = function (d, b) {
|
|
@@ -6019,7 +7304,7 @@ var EstonianDictionary = /** @class */ (function (_super) {
|
|
|
6019
7304
|
}(BaseDictionary_1.default));
|
|
6020
7305
|
exports.default = EstonianDictionary;
|
|
6021
7306
|
|
|
6022
|
-
},{"./Base/BaseDictionary":
|
|
7307
|
+
},{"./Base/BaseDictionary":40}],46:[function(require,module,exports){
|
|
6023
7308
|
"use strict";
|
|
6024
7309
|
var __extends = (this && this.__extends) || (function () {
|
|
6025
7310
|
var extendStatics = function (d, b) {
|
|
@@ -6060,7 +7345,7 @@ var FinnishDictionary = /** @class */ (function (_super) {
|
|
|
6060
7345
|
}(BaseDictionary_1.default));
|
|
6061
7346
|
exports.default = FinnishDictionary;
|
|
6062
7347
|
|
|
6063
|
-
},{"./Base/BaseDictionary":
|
|
7348
|
+
},{"./Base/BaseDictionary":40}],47:[function(require,module,exports){
|
|
6064
7349
|
"use strict";
|
|
6065
7350
|
var __extends = (this && this.__extends) || (function () {
|
|
6066
7351
|
var extendStatics = function (d, b) {
|
|
@@ -6101,7 +7386,7 @@ var FrenchDictionary = /** @class */ (function (_super) {
|
|
|
6101
7386
|
}(BaseDictionary_1.default));
|
|
6102
7387
|
exports.default = FrenchDictionary;
|
|
6103
7388
|
|
|
6104
|
-
},{"./Base/BaseDictionary":
|
|
7389
|
+
},{"./Base/BaseDictionary":40}],48:[function(require,module,exports){
|
|
6105
7390
|
"use strict";
|
|
6106
7391
|
var __extends = (this && this.__extends) || (function () {
|
|
6107
7392
|
var extendStatics = function (d, b) {
|
|
@@ -6142,7 +7427,7 @@ var GermanDictionary = /** @class */ (function (_super) {
|
|
|
6142
7427
|
}(BaseDictionary_1.default));
|
|
6143
7428
|
exports.default = GermanDictionary;
|
|
6144
7429
|
|
|
6145
|
-
},{"./Base/BaseDictionary":
|
|
7430
|
+
},{"./Base/BaseDictionary":40}],49:[function(require,module,exports){
|
|
6146
7431
|
"use strict";
|
|
6147
7432
|
var __extends = (this && this.__extends) || (function () {
|
|
6148
7433
|
var extendStatics = function (d, b) {
|
|
@@ -6183,7 +7468,7 @@ var GreekDictionary = /** @class */ (function (_super) {
|
|
|
6183
7468
|
}(BaseDictionary_1.default));
|
|
6184
7469
|
exports.default = GreekDictionary;
|
|
6185
7470
|
|
|
6186
|
-
},{"./Base/BaseDictionary":
|
|
7471
|
+
},{"./Base/BaseDictionary":40}],50:[function(require,module,exports){
|
|
6187
7472
|
"use strict";
|
|
6188
7473
|
var __extends = (this && this.__extends) || (function () {
|
|
6189
7474
|
var extendStatics = function (d, b) {
|
|
@@ -6224,7 +7509,7 @@ var HungarianDictionary = /** @class */ (function (_super) {
|
|
|
6224
7509
|
}(BaseDictionary_1.default));
|
|
6225
7510
|
exports.default = HungarianDictionary;
|
|
6226
7511
|
|
|
6227
|
-
},{"./Base/BaseDictionary":
|
|
7512
|
+
},{"./Base/BaseDictionary":40}],51:[function(require,module,exports){
|
|
6228
7513
|
"use strict";
|
|
6229
7514
|
var __extends = (this && this.__extends) || (function () {
|
|
6230
7515
|
var extendStatics = function (d, b) {
|
|
@@ -6265,7 +7550,7 @@ var IcelandicDictionary = /** @class */ (function (_super) {
|
|
|
6265
7550
|
}(BaseDictionary_1.default));
|
|
6266
7551
|
exports.default = IcelandicDictionary;
|
|
6267
7552
|
|
|
6268
|
-
},{"./Base/BaseDictionary":
|
|
7553
|
+
},{"./Base/BaseDictionary":40}],52:[function(require,module,exports){
|
|
6269
7554
|
"use strict";
|
|
6270
7555
|
var __extends = (this && this.__extends) || (function () {
|
|
6271
7556
|
var extendStatics = function (d, b) {
|
|
@@ -6306,7 +7591,7 @@ var ItalianDictionary = /** @class */ (function (_super) {
|
|
|
6306
7591
|
}(BaseDictionary_1.default));
|
|
6307
7592
|
exports.default = ItalianDictionary;
|
|
6308
7593
|
|
|
6309
|
-
},{"./Base/BaseDictionary":
|
|
7594
|
+
},{"./Base/BaseDictionary":40}],53:[function(require,module,exports){
|
|
6310
7595
|
"use strict";
|
|
6311
7596
|
var __extends = (this && this.__extends) || (function () {
|
|
6312
7597
|
var extendStatics = function (d, b) {
|
|
@@ -6347,7 +7632,7 @@ var LatvianDictionary = /** @class */ (function (_super) {
|
|
|
6347
7632
|
}(BaseDictionary_1.default));
|
|
6348
7633
|
exports.default = LatvianDictionary;
|
|
6349
7634
|
|
|
6350
|
-
},{"./Base/BaseDictionary":
|
|
7635
|
+
},{"./Base/BaseDictionary":40}],54:[function(require,module,exports){
|
|
6351
7636
|
"use strict";
|
|
6352
7637
|
var __extends = (this && this.__extends) || (function () {
|
|
6353
7638
|
var extendStatics = function (d, b) {
|
|
@@ -6388,7 +7673,7 @@ var LituanianDictionary = /** @class */ (function (_super) {
|
|
|
6388
7673
|
}(BaseDictionary_1.default));
|
|
6389
7674
|
exports.default = LituanianDictionary;
|
|
6390
7675
|
|
|
6391
|
-
},{"./Base/BaseDictionary":
|
|
7676
|
+
},{"./Base/BaseDictionary":40}],55:[function(require,module,exports){
|
|
6392
7677
|
"use strict";
|
|
6393
7678
|
var __extends = (this && this.__extends) || (function () {
|
|
6394
7679
|
var extendStatics = function (d, b) {
|
|
@@ -6429,7 +7714,7 @@ var NorwegianDictionary = /** @class */ (function (_super) {
|
|
|
6429
7714
|
}(BaseDictionary_1.default));
|
|
6430
7715
|
exports.default = NorwegianDictionary;
|
|
6431
7716
|
|
|
6432
|
-
},{"./Base/BaseDictionary":
|
|
7717
|
+
},{"./Base/BaseDictionary":40}],56:[function(require,module,exports){
|
|
6433
7718
|
"use strict";
|
|
6434
7719
|
var __extends = (this && this.__extends) || (function () {
|
|
6435
7720
|
var extendStatics = function (d, b) {
|
|
@@ -6470,7 +7755,7 @@ var PolishDictionary = /** @class */ (function (_super) {
|
|
|
6470
7755
|
}(BaseDictionary_1.default));
|
|
6471
7756
|
exports.default = PolishDictionary;
|
|
6472
7757
|
|
|
6473
|
-
},{"./Base/BaseDictionary":
|
|
7758
|
+
},{"./Base/BaseDictionary":40}],57:[function(require,module,exports){
|
|
6474
7759
|
"use strict";
|
|
6475
7760
|
var __extends = (this && this.__extends) || (function () {
|
|
6476
7761
|
var extendStatics = function (d, b) {
|
|
@@ -6511,7 +7796,7 @@ var PortugueseDictionary = /** @class */ (function (_super) {
|
|
|
6511
7796
|
}(BaseDictionary_1.default));
|
|
6512
7797
|
exports.default = PortugueseDictionary;
|
|
6513
7798
|
|
|
6514
|
-
},{"./Base/BaseDictionary":
|
|
7799
|
+
},{"./Base/BaseDictionary":40}],58:[function(require,module,exports){
|
|
6515
7800
|
"use strict";
|
|
6516
7801
|
var __extends = (this && this.__extends) || (function () {
|
|
6517
7802
|
var extendStatics = function (d, b) {
|
|
@@ -6552,7 +7837,7 @@ var SpanishDictionary = /** @class */ (function (_super) {
|
|
|
6552
7837
|
}(BaseDictionary_1.default));
|
|
6553
7838
|
exports.default = SpanishDictionary;
|
|
6554
7839
|
|
|
6555
|
-
},{"./Base/BaseDictionary":
|
|
7840
|
+
},{"./Base/BaseDictionary":40}],59:[function(require,module,exports){
|
|
6556
7841
|
"use strict";
|
|
6557
7842
|
var __extends = (this && this.__extends) || (function () {
|
|
6558
7843
|
var extendStatics = function (d, b) {
|
|
@@ -6593,7 +7878,7 @@ var SwedishDictionary = /** @class */ (function (_super) {
|
|
|
6593
7878
|
}(BaseDictionary_1.default));
|
|
6594
7879
|
exports.default = SwedishDictionary;
|
|
6595
7880
|
|
|
6596
|
-
},{"./Base/BaseDictionary":
|
|
7881
|
+
},{"./Base/BaseDictionary":40}],60:[function(require,module,exports){
|
|
6597
7882
|
"use strict";
|
|
6598
7883
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6599
7884
|
var DanishDictionary_1 = require("./Languages/DanishDictionary");
|
|
@@ -6710,7 +7995,7 @@ var Translator = /** @class */ (function () {
|
|
|
6710
7995
|
}());
|
|
6711
7996
|
exports.default = Translator;
|
|
6712
7997
|
|
|
6713
|
-
},{"./Languages/CzechDictionary":
|
|
7998
|
+
},{"./Languages/CzechDictionary":41,"./Languages/DanishDictionary":42,"./Languages/DutchDictionary":43,"./Languages/EnglishDictionary":44,"./Languages/EstonianDictionary":45,"./Languages/FinnishDictionary":46,"./Languages/FrenchDictionary":47,"./Languages/GermanDictionary":48,"./Languages/GreekDictionary":49,"./Languages/HungarianDictionary":50,"./Languages/IcelandicDictionary":51,"./Languages/ItalianDictionary":52,"./Languages/LatvianDictionary":53,"./Languages/LituanianDictionary":54,"./Languages/NorwegianDictionary":55,"./Languages/PolishDictionary":56,"./Languages/PortugueseDictionary":57,"./Languages/SpanishDictionary":58,"./Languages/SwedishDictionary":59}],61:[function(require,module,exports){
|
|
6714
7999
|
"use strict";
|
|
6715
8000
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6716
8001
|
function getAttributeNamesPolyfill() {
|
|
@@ -6729,7 +8014,7 @@ function getAttributeNamesPolyfill() {
|
|
|
6729
8014
|
exports.default = getAttributeNamesPolyfill;
|
|
6730
8015
|
;
|
|
6731
8016
|
|
|
6732
|
-
},{}],
|
|
8017
|
+
},{}],62:[function(require,module,exports){
|
|
6733
8018
|
"use strict";
|
|
6734
8019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6735
8020
|
var ArrayUtil = /** @class */ (function () {
|
|
@@ -6767,7 +8052,7 @@ var ArrayUtil = /** @class */ (function () {
|
|
|
6767
8052
|
}());
|
|
6768
8053
|
exports.default = ArrayUtil;
|
|
6769
8054
|
|
|
6770
|
-
},{}],
|
|
8055
|
+
},{}],63:[function(require,module,exports){
|
|
6771
8056
|
"use strict";
|
|
6772
8057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6773
8058
|
var ViewportUtil_1 = require("./ViewportUtil");
|
|
@@ -6870,7 +8155,7 @@ var DomUtil = /** @class */ (function () {
|
|
|
6870
8155
|
}());
|
|
6871
8156
|
exports.default = DomUtil;
|
|
6872
8157
|
|
|
6873
|
-
},{"./ViewportUtil":
|
|
8158
|
+
},{"./ViewportUtil":67}],64:[function(require,module,exports){
|
|
6874
8159
|
"use strict";
|
|
6875
8160
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6876
8161
|
var DomUtility = /** @class */ (function () {
|
|
@@ -6884,7 +8169,7 @@ var DomUtility = /** @class */ (function () {
|
|
|
6884
8169
|
}());
|
|
6885
8170
|
exports.default = DomUtility;
|
|
6886
8171
|
|
|
6887
|
-
},{}],
|
|
8172
|
+
},{}],65:[function(require,module,exports){
|
|
6888
8173
|
"use strict";
|
|
6889
8174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6890
8175
|
var MakeRequest = /** @class */ (function () {
|
|
@@ -6934,7 +8219,7 @@ var MakeRequest = /** @class */ (function () {
|
|
|
6934
8219
|
}());
|
|
6935
8220
|
exports.default = MakeRequest;
|
|
6936
8221
|
|
|
6937
|
-
},{}],
|
|
8222
|
+
},{}],66:[function(require,module,exports){
|
|
6938
8223
|
"use strict";
|
|
6939
8224
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6940
8225
|
exports.StringUtil = void 0;
|
|
@@ -6952,7 +8237,7 @@ var StringUtil = /** @class */ (function () {
|
|
|
6952
8237
|
}());
|
|
6953
8238
|
exports.StringUtil = StringUtil;
|
|
6954
8239
|
|
|
6955
|
-
},{}],
|
|
8240
|
+
},{}],67:[function(require,module,exports){
|
|
6956
8241
|
"use strict";
|
|
6957
8242
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6958
8243
|
exports.ViewportUtil = void 0;
|
|
@@ -6996,7 +8281,7 @@ var ViewportUtil = /** @class */ (function () {
|
|
|
6996
8281
|
}());
|
|
6997
8282
|
exports.ViewportUtil = ViewportUtil;
|
|
6998
8283
|
|
|
6999
|
-
},{}],
|
|
8284
|
+
},{}],68:[function(require,module,exports){
|
|
7000
8285
|
"use strict";
|
|
7001
8286
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7002
8287
|
var debouncer = function (func, wait, immediate) {
|
|
@@ -7049,7 +8334,7 @@ var debouncer = function (func, wait, immediate) {
|
|
|
7049
8334
|
};
|
|
7050
8335
|
exports.default = debouncer;
|
|
7051
8336
|
|
|
7052
|
-
},{}],
|
|
8337
|
+
},{}],69:[function(require,module,exports){
|
|
7053
8338
|
"use strict";
|
|
7054
8339
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7055
8340
|
var BankAccountValidator = /** @class */ (function () {
|
|
@@ -7063,7 +8348,7 @@ var BankAccountValidator = /** @class */ (function () {
|
|
|
7063
8348
|
}());
|
|
7064
8349
|
exports.default = BankAccountValidator;
|
|
7065
8350
|
|
|
7066
|
-
},{}],
|
|
8351
|
+
},{}],70:[function(require,module,exports){
|
|
7067
8352
|
"use strict";
|
|
7068
8353
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7069
8354
|
var BankAccountRegistrationNumberValidator = /** @class */ (function () {
|
|
@@ -7077,7 +8362,7 @@ var BankAccountRegistrationNumberValidator = /** @class */ (function () {
|
|
|
7077
8362
|
}());
|
|
7078
8363
|
exports.default = BankAccountRegistrationNumberValidator;
|
|
7079
8364
|
|
|
7080
|
-
},{}],
|
|
8365
|
+
},{}],71:[function(require,module,exports){
|
|
7081
8366
|
"use strict";
|
|
7082
8367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7083
8368
|
var BankIdNorwayValidator = /** @class */ (function () {
|
|
@@ -7100,7 +8385,7 @@ var BankIdNorwayValidator = /** @class */ (function () {
|
|
|
7100
8385
|
}());
|
|
7101
8386
|
exports.default = BankIdNorwayValidator;
|
|
7102
8387
|
|
|
7103
|
-
},{}],
|
|
8388
|
+
},{}],72:[function(require,module,exports){
|
|
7104
8389
|
"use strict";
|
|
7105
8390
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7106
8391
|
var BankIdSwedenValidator = /** @class */ (function () {
|
|
@@ -7123,7 +8408,7 @@ var BankIdSwedenValidator = /** @class */ (function () {
|
|
|
7123
8408
|
}());
|
|
7124
8409
|
exports.default = BankIdSwedenValidator;
|
|
7125
8410
|
|
|
7126
|
-
},{}],
|
|
8411
|
+
},{}],73:[function(require,module,exports){
|
|
7127
8412
|
"use strict";
|
|
7128
8413
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7129
8414
|
var CprValidator = /** @class */ (function () {
|
|
@@ -7200,7 +8485,7 @@ var CprValidator = /** @class */ (function () {
|
|
|
7200
8485
|
}());
|
|
7201
8486
|
exports.default = CprValidator;
|
|
7202
8487
|
|
|
7203
|
-
},{}],
|
|
8488
|
+
},{}],74:[function(require,module,exports){
|
|
7204
8489
|
"use strict";
|
|
7205
8490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7206
8491
|
var CvrValidator = /** @class */ (function () {
|
|
@@ -7232,7 +8517,7 @@ var CvrValidator = /** @class */ (function () {
|
|
|
7232
8517
|
}());
|
|
7233
8518
|
exports.default = CvrValidator;
|
|
7234
8519
|
|
|
7235
|
-
},{}],
|
|
8520
|
+
},{}],75:[function(require,module,exports){
|
|
7236
8521
|
"use strict";
|
|
7237
8522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7238
8523
|
var SECompanyRegistrationValidator = /** @class */ (function () {
|
|
@@ -7271,7 +8556,7 @@ var SECompanyRegistrationValidator = /** @class */ (function () {
|
|
|
7271
8556
|
}());
|
|
7272
8557
|
exports.default = SECompanyRegistrationValidator;
|
|
7273
8558
|
|
|
7274
|
-
},{}],
|
|
8559
|
+
},{}],76:[function(require,module,exports){
|
|
7275
8560
|
"use strict";
|
|
7276
8561
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7277
8562
|
var SEPersonalNumberValidator = /** @class */ (function () {
|
|
@@ -7315,7 +8600,7 @@ var SEPersonalNumberValidator = /** @class */ (function () {
|
|
|
7315
8600
|
}());
|
|
7316
8601
|
exports.default = SEPersonalNumberValidator;
|
|
7317
8602
|
|
|
7318
|
-
},{}],
|
|
8603
|
+
},{}],77:[function(require,module,exports){
|
|
7319
8604
|
"use strict";
|
|
7320
8605
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7321
8606
|
var elementConfig = /** @class */ (function () {
|
|
@@ -7368,7 +8653,7 @@ var CustomElement = function (config) {
|
|
|
7368
8653
|
};
|
|
7369
8654
|
exports.default = CustomElement;
|
|
7370
8655
|
|
|
7371
|
-
},{}],
|
|
8656
|
+
},{}],78:[function(require,module,exports){
|
|
7372
8657
|
"use strict";
|
|
7373
8658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7374
8659
|
exports.CustomInputElement = exports.elements = exports.CustomForm = void 0;
|
|
@@ -7384,6 +8669,6 @@ Object.defineProperty(exports, "CustomInputElement", { enumerable: true, get: fu
|
|
|
7384
8669
|
var elements = require("./elements/Elements");
|
|
7385
8670
|
exports.elements = elements;
|
|
7386
8671
|
|
|
7387
|
-
},{"./custom-form":
|
|
8672
|
+
},{"./custom-form":10,"./elements/Elements":24,"./framework/CustomInputElement":39,"@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js":2,"@webcomponents/webcomponentsjs/webcomponents-bundle":3,"@webcomponents/webcomponentsjs/webcomponents-loader.js":4}]},{},[1])
|
|
7388
8673
|
|
|
7389
8674
|
//# sourceMappingURL=index.min.js.map
|